deason há 6 anos atrás
pai
commit
b77a99caef

+ 2 - 1
examcloud-core-print-common/src/main/java/cn/com/qmth/examcloud/core/print/common/utils/ElectronUtils.java

@@ -14,6 +14,7 @@ import org.slf4j.LoggerFactory;
 import java.io.BufferedReader;
 import java.io.IOException;
 import java.io.InputStreamReader;
+import java.util.Arrays;
 
 /**
  * @author: fengdesheng
@@ -38,7 +39,6 @@ public class ElectronUtils {
             if (path.indexOf(":") > 0 && path.startsWith("/")) {
                 path = path.replaceFirst("/", "");
             }
-
             String[] cmd = new String[]{WIN_PREFIX + String.format(script, url, path)};
             return executeCommand(cmd, "GBK");
         } else {
@@ -50,6 +50,7 @@ public class ElectronUtils {
                     "Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &",
                     "cd /usr/local/nodejs/node_global/bin", cmd
             };
+            log.debug(Arrays.toString(commands));
             return executeCommand(commands, "UTF-8");
         }
     }

+ 1 - 1
examcloud-core-print-starter/src/main/resources/application.properties

@@ -1,5 +1,5 @@
 #debug=true
-spring.profiles.active=dev
+spring.profiles.active=test
 #mvc config
 server.port=8089
 spring.http.multipart.max-file-size=100Mb