SCFC 1 год назад
Родитель
Сommit
4fc3ef5ab7
2 измененных файлов с 9 добавлено и 2 удалено
  1. 5 0
      script/module/chat/Gm.lua
  2. 4 2
      script/module/present/NewFirstChargeLogic.lua

+ 5 - 0
script/module/chat/Gm.lua

@@ -24,6 +24,7 @@ local GiftLogic = require("topup.GiftLogic")
 local HeroSkinLogic = require("present.HeroSkinLogic")
 local DrawCardLogic = require("drawCard.DrawCardLogic")
 local WeekendLoopActManger = require("WeekendLoopActivity.WeekendLoopActManager")
+local NewFirstCharge = require("present.NewFirstChargeLogic")
 
 d3 = {}
 
@@ -1992,4 +1993,8 @@ function d3.mblv(human, value)
 	local level = tonumber(string.sub(value,pos+1,#value))
 	local TalismanLogic = require("talisman.TalismanLogic")
 	TalismanLogic.GmSetlevel(human, id, level)
+end
+
+function d3.clearnewcharge(human)
+	NewFirstCharge.NewFirstCharge_GMClear(human)
 end

+ 4 - 2
script/module/present/NewFirstChargeLogic.lua

@@ -381,11 +381,11 @@ end
 
 -- 充值回调
 function onCharge(human, nBuyID)
-    print("[NewFirstChargeLogic-onCharge] nBuyID = "..nBuyID)
+    --print("[NewFirstChargeLogic-onCharge] nBuyID = "..nBuyID)
     local tConfByBuyid = getNeedList()
     local isChange = false
     if tConfByBuyid[nBuyID] then
-        print("[onCharge] nType = ".. tConfByBuyid[nBuyID].nType.." nBuyID = "..nBuyID)
+        --print("[onCharge] nType = ".. tConfByBuyid[nBuyID].nType.." nBuyID = "..nBuyID)
         NewFirstCharge_SetBuyStatus(human, tConfByBuyid[nBuyID].nType)
         isChange = true
     else
@@ -399,6 +399,8 @@ function onCharge(human, nBuyID)
             YunYingLogic.updateIcon(YYInfo[k], human)
             break
         end
+
+        NewFirstCharge_Query(human)
     end
 end