|
|
@@ -599,7 +599,7 @@ public class BgServiceImpl implements BgService {
|
|
|
List<String> allIcode = videoInfoMapper.findAllIcode();
|
|
|
|
|
|
// 获取码池图片保存路径
|
|
|
- String machiPath = WebAppConfig.dicCodeList.stream().filter(x -> 1 == x.getType() && "machi_path".equals(x.getCodeKey())).findFirst().get().getCodeValue();
|
|
|
+ String machiPath = WebAppConfig.dicCodeList.stream().filter(x -> 1 == x.getType() && env.equals(x.getEnv()) && "apics_path".equals(x.getCodeKey())).findFirst().get().getCodeValue();
|
|
|
|
|
|
// 遍历
|
|
|
Document document;
|
|
|
@@ -607,7 +607,6 @@ public class BgServiceImpl implements BgService {
|
|
|
String javbusUrl;
|
|
|
int j = 0;
|
|
|
for (int i = 0; i < icodePoolList.size(); i++) {
|
|
|
-
|
|
|
long start = System.currentTimeMillis();
|
|
|
String identificationCode = icodePoolList.get(i);
|
|
|
|
|
|
@@ -780,7 +779,7 @@ public class BgServiceImpl implements BgService {
|
|
|
}
|
|
|
fileName = fileName.concat(".jpg");
|
|
|
|
|
|
- saveFile(response.bodyStream(), machiPath.concat(fileName));
|
|
|
+ saveFile(response.bodyStream(), machiPath.concat("码池/").concat(fileName));
|
|
|
long end = System.currentTimeMillis();
|
|
|
|
|
|
videoInfoPool.setImgUrl(fileName);
|