Browse Source

调整生成任务类型

wangq 3 years ago
parent
commit
7fd4fb39ad

+ 6 - 4
xxl-job-admin/src/main/java/com/xxl/job/admin/controller/LongChiController.java

@@ -41,15 +41,17 @@ public class LongChiController {
 //        System.err.println("executeName==" + executeName);
 //        System.err.println("author==" + author);
         System.err.println(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>");
-
-        boolean isProgram = executeName.indexOf("program") >= 0;
         executeName = executeName.substring(executeName.indexOf("_") + 1, executeName.length());
         executeName = executeName.replaceAll(" ", "+");
 
-        if (isProgram) {
+        if (executeName.indexOf("program") >= 0) {
             executeName = "【节目】" + Base64Util.decodeReplace(executeName);
-        } else {
+        } else if(executeName.indexOf("strategy") >= 0){
             executeName = "【照明策略】" + Base64Util.decodeReplace(executeName);
+        } else if(executeName.indexOf("ipCast") >= 0){
+            executeName = "【IP广播】" + Base64Util.decodeReplace(executeName);
+        } else {
+            executeName = "【智能照明系统】" + Base64Util.decodeReplace(executeName);
         }
 
         XxlJobInfo xxlJobInfo = new XxlJobInfo();