Ver Fonte

修复CDK问题

mafei há 1 ano atrás
pai
commit
7c2bb6b333
1 ficheiros alterados com 7 adições e 7 exclusões
  1. 7 7
      webServer/src/controller/ApiController.ts

+ 7 - 7
webServer/src/controller/ApiController.ts

@@ -781,15 +781,15 @@ class ApiController {
         if (err.length == 0) {
             let batchInfo = await CDK.getCDKItemList(ctx,data.code)
             if (batchInfo.length <= 0) {
-                err = "invalid code"
+                err = "cdk not found"
             }else {
                 err = await CDK.checkCDK(ctx, data.code, data.serverId)
-            }
-            param = JSON.stringify({
-                type:"UseCDK",
-                err:err,
-                batchInfo:batchInfo
-            })
+                param = JSON.stringify({
+                    type:"UseCDK",
+                    err:err,
+                    batchInfo:batchInfo
+                })
+            } 
         }
         // 固定码
         if(err == "cdk not found" || err == "server id invalid"){