Ver Fonte

修复moshou报错问题

mafei há 1 ano atrás
pai
commit
abec5578cd
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      script/module/moshou/MoshouLogic.lua

+ 1 - 1
script/module/moshou/MoshouLogic.lua

@@ -1070,7 +1070,7 @@ function CG_MOSHOU_XILIAN_GIFT_QUERY(human)
         end
         end
 
 
         local absCnt = 0
         local absCnt = 0
-        if absAct and absAct[config.buyID] then
+        if absAct and absAct ~= 0 and absAct[config.buyID] then
             absCnt = absAct[config.buyID].cnt or 0
             absCnt = absAct[config.buyID].cnt or 0
         end
         end
         local intCnt = getXilianInitDoubleCnt(human, config.buyID)
         local intCnt = getXilianInitDoubleCnt(human, config.buyID)