【登录】登录接口添加新的参数

dev_chengFeng
gaoxin 2021-05-31 15:15:20 +08:00
parent bddb02cf81
commit 3d412a4b85
2 changed files with 9 additions and 3 deletions

View File

@ -1,4 +1,4 @@
LoginManager = {}; LoginManager = {};
local this = LoginManager local this = LoginManager
this.sign = "d13b3e8ef74bf72d8aafce3a1c8672a0" this.sign = "d13b3e8ef74bf72d8aafce3a1c8672a0"
this.openId = nil this.openId = nil
@ -39,7 +39,7 @@ function this.Initialize()
if result[1] == SDK_RESULT.SUCCESS then if result[1] == SDK_RESULT.SUCCESS then
AppConst.SdkId = result[2] AppConst.SdkId = result[2]
AppConst.OpenId = result[2] AppConst.OpenId = result[2]
-- AppConst.SdkLoginTimeStamp = result[3] this.SdkLoginTimeStamp = result[3]
AppConst.TokenStr = result[4] AppConst.TokenStr = result[4]
AppConst.SdkChannel = result[5] AppConst.SdkChannel = result[5]
AppConst.SdkPackageName = AndroidDeviceInfo.Instance:GetPackageName() AppConst.SdkPackageName = AndroidDeviceInfo.Instance:GetPackageName()

View File

@ -568,10 +568,12 @@ function this.RequestHttpLogin()
.. "&serverId=" .. LoginManager.ServerId .. "&serverId=" .. LoginManager.ServerId
.. "&token=" .. AppConst.TokenStr .. "&token=" .. AppConst.TokenStr
.. "&platform=" .. 1 .. "&platform=" .. 1
.. "&channel=" .. LoginRoot_Channel
.. "&sub_channel=" .. LoginRoot_SubChannel .. "&sub_channel=" .. LoginRoot_SubChannel
.. "&pid=" .. AppConst.SdkChannel --LoginManager.pt_pId .. "&pid=" .. AppConst.SdkChannel --LoginManager.pt_pId
.. "&gid=" .. AppConst.SdkPackageName --LoginManager.pt_gId .. "&gid=" .. AppConst.SdkPackageName --LoginManager.pt_gId
.. "&version=" .. LoginRoot_PackageVersion .. "&version=" .. LoginRoot_PackageVersion
.. "&timeStamp="..LoginManager.SdkLoginTimeStamp
else else
if IsDevelopLogin then if IsDevelopLogin then
-- 开发用 -- 开发用
@ -582,18 +584,22 @@ function this.RequestHttpLogin()
.. "&serverId=" .. LoginManager.ServerId .. "&serverId=" .. LoginManager.ServerId
.. "&token=111" .. "&token=111"
.. "&platform=1" .. "&platform=1"
.. "&channel=" .. LoginRoot_Channel
.. "&sub_channel=" .. LoginRoot_SubChannel .. "&sub_channel=" .. LoginRoot_SubChannel
.. "&admin=d53b3e8ef74bf72d8aafce3a1c8671a0" .. "&admin=d53b3e8ef74bf72d8aafce3a1c8671a0"
.. "&version=" .. LoginRoot_PackageVersion .. "&version=" .. LoginRoot_PackageVersion
.. "&timeStamp=0"
else else
url = LoginRoot_Url url = LoginRoot_Url
.. "jl_loginserver/getUserInfo?openId=" ..LoginManager.openId .. "jl_loginserver/getUserInfo?openId=" ..LoginManager.openId
.. "&serverId=" .. LoginManager.ServerId .. "&serverId=" .. LoginManager.ServerId
.. "&token=" .. LoginManager.token .. "&token=" .. LoginManager.token
.. "&platform=4" .. "&platform=4"
.. "&channel=" .. LoginRoot_Channel
.. "&sub_channel=" .. LoginRoot_SubChannel .. "&sub_channel=" .. LoginRoot_SubChannel
.. "&admin=d53b3e8ef74bf72d8aafce3a1c8671a0" .. "&admin=d53b3e8ef74bf72d8aafce3a1c8671a0"
.. "&version=" .. LoginRoot_PackageVersion, .. "&version=" .. LoginRoot_PackageVersion
.. "&timeStamp=0",
this.OnReceiveLogin, nil, nil, nil this.OnReceiveLogin, nil, nil, nil
end end