|
@@ -781,15 +781,15 @@ class ApiController {
|
|
|
if (err.length == 0) {
|
|
if (err.length == 0) {
|
|
|
let batchInfo = await CDK.getCDKItemList(ctx,data.code)
|
|
let batchInfo = await CDK.getCDKItemList(ctx,data.code)
|
|
|
if (batchInfo.length <= 0) {
|
|
if (batchInfo.length <= 0) {
|
|
|
- err = "invalid code"
|
|
|
|
|
|
|
+ err = "cdk not found"
|
|
|
}else {
|
|
}else {
|
|
|
err = await CDK.checkCDK(ctx, data.code, data.serverId)
|
|
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"){
|
|
if(err == "cdk not found" || err == "server id invalid"){
|