hw android sdk .lua change

zhangqiang 2020-08-13 15:06:19 +08:00
parent e8e94525d4
commit b6e6cd1f84
6 changed files with 13 additions and 10 deletions

View File

@ -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/"}

View File

@ -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
}

View File

@ -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

View File

@ -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

View File

@ -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)
)

View File

@ -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/"}