فهرست منبع

屏蔽闯关礼金功能

gitxsm 2 ماه پیش
والد
کامیت
bb9626ad98
1فایلهای تغییر یافته به همراه44 افزوده شده و 44 حذف شده
  1. 44 44
      script/module/battle/BattleGift.lua

+ 44 - 44
script/module/battle/BattleGift.lua

@@ -163,72 +163,72 @@ end
 
 -- 外部调用,跨天处理
 function updateDaily(human)
-    local battleGiftData = getData(human)
-    if not battleGiftData then
-        calcBeforeVal(human)
-        updateRedDot(human)
-        return
-    end
+    -- local battleGiftData = getData(human)
+    -- if not battleGiftData then
+    --     calcBeforeVal(human)
+    --     updateRedDot(human)
+    --     return
+    -- end
 
-    resetData(human)
+    -- resetData(human)
 
-    updateRedDot(human)
+    -- updateRedDot(human)
 end
 
 -- 外部调用, 登录处理
 function onLogin(human)
-    local battleGiftData = getData(human)
-    if not battleGiftData then
-        calcBeforeVal(human)
-        updateRedDot(human)
-    end
+    -- local battleGiftData = getData(human)
+    -- if not battleGiftData then
+    --     calcBeforeVal(human)
+    --     updateRedDot(human)
+    -- end
 end
 
 -- 外部调用, 通关新的关卡
 function StageClearHandle(human, currentStage, stageType)
-    local val = getStageVal(stageType, currentStage)
-    if val > 0 then
-        addDailyStoreVal(human, val)
-    end
+    -- local val = getStageVal(stageType, currentStage)
+    -- if val > 0 then
+    --     addDailyStoreVal(human, val)
+    -- end
 end
 
 -- 外部调用, 入口处是否有红点
 function isDot(human)
-    local battleGiftData = getData(human)
-    if not battleGiftData then
-        return false
-    end
-
-    local dailyStoreVal = battleGiftData.dailyStoreVal or 0
-    if dailyStoreVal <= 0 then
-        return false
-    end
-
-    local dailyGetVal = battleGiftData.dailyGetVal or 0
-    local dailyMaxVal = calclDailyMaxGetVal(human)
-    if dailyGetVal >= dailyMaxVal then
-        return false
-    end
-
-    return true
+    -- local battleGiftData = getData(human)
+    -- if not battleGiftData then
+    --     return false
+    -- end
+
+    -- local dailyStoreVal = battleGiftData.dailyStoreVal or 0
+    -- if dailyStoreVal <= 0 then
+    --     return false
+    -- end
+
+    -- local dailyGetVal = battleGiftData.dailyGetVal or 0
+    -- local dailyMaxVal = calclDailyMaxGetVal(human)
+    -- if dailyGetVal >= dailyMaxVal then
+    --     return false
+    -- end
+
+    -- return true
 end
 
 -- 外部调用, 充值处理接口
 function charge(human, nAllPrice, buyID)
-    if not table.find(EliteDefine.BATTLEGIFT_BUYID_LIST, buyID) then
-        return
-    end
+    -- if not table.find(EliteDefine.BATTLEGIFT_BUYID_LIST, buyID) then
+    --     return
+    -- end
 
-    local battleGiftData = getData(human)
-    if battleGiftData and battleGiftData.buyIdList and table.find(battleGiftData.buyIdList, buyID) then
-        return
-    end
+    -- local battleGiftData = getData(human)
+    -- if battleGiftData and battleGiftData.buyIdList and table.find(battleGiftData.buyIdList, buyID) then
+    --     return
+    -- end
 
-    insertBuyIdList(human, buyID)
+    -- insertBuyIdList(human, buyID)
 
-    updateRedDot(human)
+    -- updateRedDot(human)
 
-    BattleGift_Query(human)
+    -- BattleGift_Query(human)
 end