添加用于定位商品充值成功后无法刷新界面问题的log
parent
210668d51d
commit
3fabc33ab6
|
@ -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 })
|
||||
|
|
Loading…
Reference in New Issue