|
@@ -26,6 +26,7 @@ import eu.bitwalker.useragentutils.UserAgent;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
@@ -52,6 +53,8 @@ public class CdnDoaminServiceImpl extends ServiceImpl<CdnDomainMapper, CdnDomain
|
|
|
private final CdnDomainTimeRuleMapper domainTimeRuleMapper;
|
|
|
private final CdnCityMapper cityMapper;
|
|
|
private final VideoM3u8Mapper m3u8Mapper;
|
|
|
+ @Value("${project.address}")
|
|
|
+ private String address;
|
|
|
|
|
|
@Override
|
|
|
public Result<IPage<CdnDomain>> listPage(DomainQueryDto queryDto) {
|
|
@@ -208,7 +211,7 @@ public class CdnDoaminServiceImpl extends ServiceImpl<CdnDomainMapper, CdnDomain
|
|
|
m3u8 = videoM3u8s.get(0);
|
|
|
}
|
|
|
if (!StringUtils.isBlank(type)) {
|
|
|
- String downLoadFileUrl = "http://127.0.0.1:8088/api/cdnDomain/downLoadM3u8File?cdn=" + cdnDomain.getDomain() + "&id=" + m3u8.getId();
|
|
|
+ String downLoadFileUrl = address + "/api/cdnDomain/downLoadM3u8File?cdn=" + cdnDomain.getDomain() + "&id=" + m3u8.getId();
|
|
|
throw new ResultException(888, downLoadFileUrl);
|
|
|
}
|
|
|
String tsListStr = m3u8.getTsListStr();
|