Ver Fonte

other:微调

zhangyuantao há 1 ano atrás
pai
commit
10749818a7

+ 1 - 1
src/main/java/com/tao/listener/StepExecutor.java

@@ -22,7 +22,7 @@ public class StepExecutor implements Runnable {
     public void startStreamTask() {
         try {
             System.out.println("=========> 启动成功!请访问:http://localhost:8085");
-            Runtime.getRuntime().exec("cmd /c start http://localhost:8085");
+//            Runtime.getRuntime().exec("cmd /c start http://localhost:8085");
         } catch (Exception ex) {
             ex.printStackTrace();
         }

+ 1 - 0
src/main/resources/templates/index.html

@@ -406,6 +406,7 @@
             , avatar: 'static/chatgpt.png'
             , id: -2
         });
+        layim.setChatMin();
 
         // 发送消息事件
         layim.on('sendMessage', function (res) {

+ 5 - 4
src/test/java/com/tao/ElementSyncApplicationTests.java

@@ -2,6 +2,7 @@ package com.tao;
 
 import cn.hutool.core.io.file.FileReader;
 import cn.hutool.core.util.ReUtil;
+import cn.hutool.core.util.RuntimeUtil;
 import com.tao.pojo.AppElement;
 import com.tao.pojo.AppPage;
 import com.tao.service.AppElementService;
@@ -10,7 +11,10 @@ import org.junit.jupiter.api.Test;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 
+import javax.xml.bind.DatatypeConverter;
+import java.io.*;
 import java.util.ArrayList;
+import java.util.Base64;
 import java.util.List;
 import java.util.regex.Pattern;
 
@@ -21,10 +25,7 @@ class ElementSyncApplicationTests {
     AppElementService appElementService;
 
     @Test
-    void contextLoads() {
-        // List<AppElement> agree = appElementService.selectAppElementListFuzzy(new AppElement(null, "agree", null, null, null, null, null, null));
-        // System.out.println("agree = " + agree);
-        System.out.println("测试代码");
+    void contextLoads() throws InterruptedException {
     }
 
 }