Explorar o código

Merge branch 'feature-v.4.8.1-适配linux系统-dsx' into test

dsx %!s(int64=2) %!d(string=hai) anos
pai
achega
614935b207

+ 9 - 1
src/main/java/com/fdkankan/download/service/impl/SceneDownloadHandlerServiceImpl.java

@@ -125,6 +125,12 @@ public class SceneDownloadHandlerServiceImpl {
     private String exeContent;
     @Value("${download.config.exe-content-v3}")
     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
     private RedisUtil redisUtil;
@@ -476,11 +482,13 @@ public class SceneDownloadHandlerServiceImpl {
 
     private void zipBat(String num, String version) throws Exception{
         String batContent = String.format(this.exeContent, num);
+        String commandContent = String.format(this.commandContent, num);
         if("v3".equals(version)){
             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(commandContent, String.format(this.sourceLocal, num, commandName));
 
         //更新进度为90%
         this.updateProgress(new BigDecimal("0.9").divide(new BigDecimal("0.8"), 6, BigDecimal.ROUND_HALF_UP), num,