Browse Source

首充购买后刷新

SCFC 1 year ago
parent
commit
ad2e759e73
2 changed files with 3 additions and 7 deletions
  1. 0 5
      script/core/ObjHuman.lua
  2. 3 2
      script/module/present/NewFirstChargeLogic.lua

+ 0 - 5
script/core/ObjHuman.lua

@@ -652,17 +652,12 @@ function sendHumanInfo(human,isNew)
 	mm.nSpeed[1] = 0
 	mm.nSpeed[2] = 0
 	mm.nSpeed[3] = 0
-	print("[sendHumanInfo] 1111")
 	if human.db.nSpeed then
-		print("[sendHumanInfo] 222")
-		table.print_lua_table( human.db.nSpeed)
-		print("\n")
 		mm.nSpeed[1] = human.db.nSpeed[1] and human.db.nSpeed[1] or 0
 		mm.nSpeed[2] = human.db.nSpeed[2] and human.db.nSpeed[2] or 0
 		mm.nSpeed[3] = human.db.nSpeed[3] and human.db.nSpeed[3] or 0
 	end
 	
-	table.print_lua_table(mm.nSpeed)
 
 	Msg.send(mm, human.fd)
 end

+ 3 - 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,7 @@ function onCharge(human, nBuyID)
             YunYingLogic.updateIcon(YYInfo[k], human)
             break
         end
+        NewFirstCharge_Query(human)
     end
 end