xiyou_yueNanZhengshi
parent
e020470bca
commit
4bbb046510
|
|
@ -3,5 +3,5 @@ guid: 2520a089882a2e54cb1444ec5339c11a
|
|||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName: lz4/prefabs/effect/floating/s_jieling_hs_3006_skeff_casting_buff_nuqi
|
||||
assetBundleName: lz4/prefabs/effect/floating/s_jieling_hs_3006_skeff_casting_buff_nuqi_en
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@ guid: 928d0605582aea641b012aedae653fda
|
|||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName: lz4/prefabs/effect/floating/s_jieling_hs_3006_skeff_casting_buff_nuqi
|
||||
assetBundleName: lz4/prefabs/effect/floating/s_jieling_hs_3006_skeff_casting_buff_nuqi_vi
|
||||
assetBundleVariant: unity3d
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load Diff
|
|
@ -37,7 +37,9 @@ SDKSubMitType = {
|
|||
TYPE_GETSERVERLISTSUCCESS = 101,
|
||||
TYPE_CLICKRECHARGEPACKAGE = 102,
|
||||
TYPE_BUYRECHARGEPACKAGE = 103,
|
||||
TYPE_PLAYTIME = 104
|
||||
TYPE_PLAYTIME = 104,
|
||||
TYPE_RESOURCE_DOWNLOAD_BEGAIN = 105,
|
||||
TYPE_RESOURCE_DOWNLOAD_SUCCESS = 106
|
||||
}
|
||||
|
||||
SDK_RESULT = {
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ function Game.LateUpdate()
|
|||
end
|
||||
|
||||
function Game.Logout()
|
||||
PlayerPrefs.SetInt("language", PlayerPrefs.GetInt("language_flag"))
|
||||
PlayerPrefs.SetInt("language", PlayerPrefs.GetInt("language_flag", GetCurLanguage()))
|
||||
if AppConst.isSDKLogin then
|
||||
SDKMgr:Logout()
|
||||
else
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ function this.Initialize()
|
|||
-- 防沉迷检测
|
||||
this.CheckRealName()
|
||||
end)
|
||||
SubmitExtraData({ type = SDKSubMitType.TYPE_RESOURCE_DOWNLOAD_BEGAIN })
|
||||
else
|
||||
local errCode = result[2]
|
||||
if not errCode then
|
||||
|
|
@ -99,6 +100,7 @@ function this.Initialize()
|
|||
Game.GlobalEvent:DispatchEvent(GameEvent.LoginSuccess.OnLogout)
|
||||
end
|
||||
end
|
||||
|
||||
--
|
||||
local _Time
|
||||
function this.CheckRealName()
|
||||
|
|
@ -146,7 +148,10 @@ function this.CheckUserId(extData, func)
|
|||
if extData then
|
||||
local context = json.decode(extData)
|
||||
if context then
|
||||
HttpManager:SendGetHttp(LoginRoot_Url .. "jl_loginserver/getKTGameUserInfo?gid=".. context.gid .. "&pid=".. context.pid .. "&access_token=" .. AppConst.TokenStr,
|
||||
HttpManager:SendGetHttp(
|
||||
LoginRoot_Url ..
|
||||
"jl_loginserver/getKTGameUserInfo?gid=" ..
|
||||
context.gid .. "&pid=" .. context.pid .. "&access_token=" .. AppConst.TokenStr,
|
||||
function(str)
|
||||
if str then
|
||||
Log(str)
|
||||
|
|
@ -196,10 +201,9 @@ function this.SaveLoginInfo(user, pw)
|
|||
PlayerPrefs.SetString(this.GameName.."Account", this.CurAccount);
|
||||
PlayerPrefs.SetString(this.GameName.."Session", this.CurSession);
|
||||
PlayerPrefs.Save();
|
||||
]]--
|
||||
]]
|
||||
--
|
||||
--sdkMgr:SaveSession(this.CurLoginWay)
|
||||
|
||||
|
||||
end
|
||||
|
||||
function this.RequestRegist(name, pw, call)
|
||||
|
|
@ -207,7 +211,9 @@ function this.RequestRegist(name, pw, call)
|
|||
pw, this.sign))
|
||||
|
||||
RequestPanel.Show(Language[11708])
|
||||
HttpManager:SendGetHttp(LoginRoot_Url .. "jl_loginserver/registerUser?userName=".. name .. "&password=".. pw .."&repeat=".. pw .. "&sign=" .. sign,
|
||||
HttpManager:SendGetHttp(
|
||||
LoginRoot_Url ..
|
||||
"jl_loginserver/registerUser?userName=" .. name .. "&password=" .. pw .. "&repeat=" .. pw .. "&sign=" .. sign,
|
||||
function(str)
|
||||
RequestPanel.Hide()
|
||||
if str == nil then
|
||||
|
|
@ -233,7 +239,9 @@ function this.RequestUser(name, pw, call)
|
|||
pw, this.sign))
|
||||
|
||||
RequestPanel.Show(Language[11710])
|
||||
HttpManager:SendGetHttp(LoginRoot_Url .. "jl_loginserver/userLogin?userName=".. name .. "&password=".. pw .. "&sign=" .. sign, function(str)
|
||||
HttpManager:SendGetHttp(
|
||||
LoginRoot_Url .. "jl_loginserver/userLogin?userName=" .. name .. "&password=" .. pw .. "&sign=" .. sign,
|
||||
function(str)
|
||||
RequestPanel.Hide()
|
||||
if str == nil then
|
||||
return
|
||||
|
|
@ -275,13 +283,12 @@ function this.IsServerStateEnterable(state)
|
|||
return true
|
||||
end
|
||||
|
||||
|
||||
|
||||
-- 初始化包信息
|
||||
function this.InitPackInfo()
|
||||
local LoginRoot_Url = ServerConfigManager.GetVersionInfo("serverUrl")
|
||||
local LoginRoot_Channel = ServerConfigManager.GetVersionInfo("channel")
|
||||
local LoginRoot_UserChannel = ServerConfigManager.GetSettingValue(ServerConfigManager.SettingConfig.USER_CHANNEL) or ""
|
||||
local LoginRoot_UserChannel = ServerConfigManager.GetSettingValue(ServerConfigManager.SettingConfig.USER_CHANNEL) or
|
||||
""
|
||||
local ChannelID = LoginRoot_UserChannel == "" and LoginRoot_Channel or LoginRoot_UserChannel
|
||||
local packId = PackageManager.GetPackageID()
|
||||
if packId then
|
||||
|
|
@ -298,5 +305,4 @@ function this.InitPackInfo()
|
|||
end)
|
||||
end
|
||||
|
||||
|
||||
return this
|
||||
|
|
@ -302,6 +302,7 @@ function this:OnOpen(...)
|
|||
-- local data="body;高级基金;notify_url;http://82.157.34.193:9991/delivery/OhayooCallback;open_id;32AtGSX36PYLuNbx;custom_callback_info;20001190_78_4001_IOS;order_no;200011901931657796390;product_id;78;sign_type;MD5;subject;高级基金;total_amount;12800;trade_time;1657796390;valid_time;2592000"
|
||||
-- HttpManager:SendPostHttp(url,data, this.OnReceiveLogin, nil, nil, nil)
|
||||
--设置背景
|
||||
SubmitExtraData({ type = SDKSubMitType.TYPE_RESOURCE_DOWNLOAD_SUCCESS })
|
||||
PackageManager.SetVideo(this.video, this.bg)
|
||||
if AppConst.Code ~= "" then
|
||||
MsgPanel.ShowOne(GetLanguageStrById(AppConst.Code))
|
||||
|
|
|
|||
Loading…
Reference in New Issue