添加用于定位商品充值成功后无法刷新界面问题的log

dev_chengFeng
gaoxin 2020-09-12 19:24:49 +08:00 committed by JieLing
parent 210668d51d
commit 3fabc33ab6
1 changed files with 3 additions and 0 deletions

View File

@ -23,6 +23,7 @@ end
this.EventTrigger = {}
function this.onSdkPayResult(id)
LogError("收到sdk支付成功回调商品id = "..id)
if this.EventTrigger[id] then
this.EventTrigger[id](id)
this.EventTrigger[id] = nil
@ -34,10 +35,12 @@ function this.Pay(id, func)
func = function()end
end
if this.EventTrigger[id] then
LogError("重复发起购买商品的请求商品id = "..id..", uid = "..PlayerManager.uid)
PopupTipPanel.ShowTip("您有一个相同的订单正在处理,请稍后再试")
return
end
this.EventTrigger[id] = func
LogError("发起购买商品的请求商品id = "..id)
--直购商品
if AppConst.isSDKLogin then
PayManager.SdkPay({ Id = id })