shawenguan 1 rok pred
rodič
commit
9a7e640fe7
1 zmenil súbory, kde vykonal 4 pridanie a 1 odobranie
  1. 4 1
      Scripts/wubian/wubianSynthesis.js

+ 4 - 1
Scripts/wubian/wubianSynthesis.js

@@ -282,13 +282,16 @@ function getSynthesizeCombination(retCvtData) {
 }
 
 function getActivityType(key) {
+    let nType = 0;
+    if (!key || key.length == 0) {
+        return nType;
+    }
     let typeMap = {
         1: '合成活动',
         2: '置换活动',
         3: '分解活动',
         4: '兑换活动'
     };
-    let nType = 0;
     for (let k in typeMap) {
         if (typeMap[k].indexOf(key) != -1) {
             nType = parseInt(k);