|
@@ -125,6 +125,12 @@ public class SceneDownloadHandlerServiceImpl {
|
|
private String exeContent;
|
|
private String exeContent;
|
|
@Value("${download.config.exe-content-v3}")
|
|
@Value("${download.config.exe-content-v3}")
|
|
private String exeContentV3;
|
|
private String exeContentV3;
|
|
|
|
+ @Value("${download.config.command-name}")
|
|
|
|
+ private String commandName;
|
|
|
|
+ @Value("${download.config.command-content}")
|
|
|
|
+ private String commandContent;
|
|
|
|
+ @Value("${download.config.command-content-v3}")
|
|
|
|
+ private String commandContentV3;
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
private RedisUtil redisUtil;
|
|
private RedisUtil redisUtil;
|
|
@@ -476,11 +482,13 @@ public class SceneDownloadHandlerServiceImpl {
|
|
|
|
|
|
private void zipBat(String num, String version) throws Exception{
|
|
private void zipBat(String num, String version) throws Exception{
|
|
String batContent = String.format(this.exeContent, num);
|
|
String batContent = String.format(this.exeContent, num);
|
|
|
|
+ String commandContent = String.format(this.commandContent, num);
|
|
if("v3".equals(version)){
|
|
if("v3".equals(version)){
|
|
batContent = String.format(this.exeContentV3, num);
|
|
batContent = String.format(this.exeContentV3, num);
|
|
|
|
+ commandContent = String.format(this.commandContentV3, num);
|
|
}
|
|
}
|
|
-// this.zipBytes(out, exeName, batContent.getBytes());
|
|
|
|
FileUtil.writeUtf8String(batContent, String.format(this.sourceLocal, num, exeName));
|
|
FileUtil.writeUtf8String(batContent, String.format(this.sourceLocal, num, exeName));
|
|
|
|
+ FileUtil.writeUtf8String(commandContent, String.format(this.sourceLocal, num, commandName));
|
|
|
|
|
|
//更新进度为90%
|
|
//更新进度为90%
|
|
this.updateProgress(new BigDecimal("0.9").divide(new BigDecimal("0.8"), 6, BigDecimal.ROUND_HALF_UP), num,
|
|
this.updateProgress(new BigDecimal("0.9").divide(new BigDecimal("0.8"), 6, BigDecimal.ROUND_HALF_UP), num,
|