Browse Source

生成图片测试

zhangheng 3 years ago
parent
commit
689495280a

+ 1 - 1
server/src/main/java/edp/davinci/service/screenshot/ScreenshotUtil.java

@@ -229,7 +229,7 @@ public class ScreenshotUtil {
 
         System.out.println("CHROME_DRIVER_PATH>>>"+ CHROME_DRIVER_PATH);
         File file = new File(CHROME_DRIVER_PATH);
-        System.out.println(file.getPath()+"["+file.getName()+"]********************"+file.length());
+        System.out.println(file.getAbsolutePath()+"["+file.getName()+"]********************"+file.length());
         if (!file.canExecute()) {
             if (!file.setExecutable(true)) {
                 throw new ExecutionException(new Exception(CHROME_DRIVER_PATH + " is not executable!"));

BIN
server/src/main/resources/chrome-driver/window/chromedriver.exe


+ 2 - 2
server/src/main/resources/config/application-ext.yml

@@ -103,8 +103,8 @@ spring:
     isEnable: true
 
   ## standalone config
-    host: 127.0.0.1
-    port: 6379
+    host: 61.132.52.38
+    port: 20003
 
   ## cluster config
   #  cluster:

+ 2 - 1
webapp/app/containers/Display/sagas.ts

@@ -139,7 +139,8 @@ export function* uploadCurrentSlideCover (action: DisplayActionType) {
     return
   }
 
-  const { cover, slide } = action.payload
+  const { displayId,cover, slide } = action.payload
+  console.log("action payload >>>>" + JSON.stringify(action.payload))
   const {
     currentSlideCoverUploaded,
     uploadCurrentSlideCoverFail