hw android sdk .lua change
parent
e8e94525d4
commit
b6e6cd1f84
|
@ -1 +1 @@
|
|||
{"buglyId":"261348dcd3", "channel":"MHT", "resUrl":"http://cdn-jl.lanjingshidai.com/mht_test/", "packageVersion":"0.4", "subChannel":"1000", "version":"0.1.0", "serverUrl":"http://106.52.122.168:8080/"}
|
||||
{"buglyId":"261348dcd3", "channel":"MHT", "resUrl":"http://cdn-jl.lanjingshidai.com/mht_test/", "packageVersion":"0.4", "subChannel":"1000", "version":"0.1.0", "serverUrl":"http://119.28.117.110:8080/"}
|
|
@ -111,7 +111,7 @@ function this.CommitClickStatus(clickFirst, clickSecond)
|
|||
end
|
||||
|
||||
--角色充值事件
|
||||
function this.CommitPayStatus(rechargeType,payOrderId,validState, price)
|
||||
function this.CommitPayStatus(rechargeType,validState, price)--,payOrderId
|
||||
if not AppConst.isSDK then
|
||||
return
|
||||
end
|
||||
|
@ -148,7 +148,7 @@ function this.CommitPayStatus(rechargeType,payOrderId,validState, price)
|
|||
event_s = {
|
||||
"sdkpay_3_d",
|
||||
rechargeType,
|
||||
payOrderId,
|
||||
-- payOrderId,
|
||||
validState,
|
||||
price
|
||||
}
|
||||
|
|
|
@ -88,8 +88,11 @@ function this.InitMsg(msg)
|
|||
-- id, startTime, endTime))
|
||||
|
||||
-- 用于标记是否解锁使用
|
||||
local typeId = AllActSetConfig[id].IsIDdSame
|
||||
this.serData[id].isActive = this.SingleFuncState(typeId)
|
||||
LogGreen("id ------````````-------- "..id)
|
||||
if AllActSetConfig[id] then
|
||||
local typeId = AllActSetConfig[id].IsIDdSame
|
||||
this.serData[id].isActive = this.SingleFuncState(typeId)
|
||||
end
|
||||
end
|
||||
this.WatchFuncState()
|
||||
end
|
||||
|
|
|
@ -520,7 +520,7 @@ function this.OnConnect(network)
|
|||
.. "&gid=" .. AppConst.SdkPackageName --LoginManager.pt_gId
|
||||
.. "&version=" .. LoginRoot_PackageVersion)
|
||||
networkMgr:SendGetHttp(LoginRoot_Url
|
||||
.. "jl_loginserver/getUserInfo?openId=" .. AppConst.OpenId
|
||||
.. "jl_loginserver/getHwUserInfo?openId=" .. AppConst.OpenId
|
||||
.. "&serverId=" .. LoginManager.ServerId
|
||||
.. "&token=" .. AppConst.TokenStr
|
||||
.. "&platform=" .. 1
|
||||
|
|
|
@ -33,18 +33,18 @@ function this.RequestPay(context)
|
|||
Log("onPayCallback::"..payResp)
|
||||
local str = string.split(payResp, "#")
|
||||
local result = tonumber(str[1])
|
||||
local orderId = str[2]
|
||||
-- local orderId = str[2]
|
||||
if result == SDK_RESULT.SUCCESS then
|
||||
DataCenterManager.CommitPayStatus(
|
||||
"IN_GAME_"..context.Type,
|
||||
SDKMgr:GetPayOrderID(),
|
||||
-- SDKMgr:GetPayOrderID(),
|
||||
"VALID",
|
||||
tostring(context.Price)
|
||||
)
|
||||
elseif result == SDK_RESULT.FAILED then
|
||||
DataCenterManager.CommitPayStatus(
|
||||
"IN_GAME_"..context.Type,
|
||||
SDKMgr:GetPayOrderID(),
|
||||
-- SDKMgr:GetPayOrderID(),
|
||||
"INVALID",
|
||||
tostring(context.Price)
|
||||
)
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"subChannel":"1000", "buglyId":"261348dcd3", "channel":"MHT", "resUrl":"http://cdn-jl.lanjingshidai.com/mht_test/", "packageVersion":"0.4", "version":"0.1.0", "serverUrl":"http://106.52.122.168:8080/"}
|
||||
{"buglyId":"261348dcd3", "channel":"MHT", "resUrl":"http://cdn-jl.lanjingshidai.com/mht_test/", "packageVersion":"0.4", "subChannel":"1000", "version":"0.1.0", "serverUrl":"http://119.28.117.110:8080/"}
|
Loading…
Reference in New Issue