【登录】修改判断提审和正式服的方式
parent
e3eff1e553
commit
f7e5775495
|
@ -341,7 +341,15 @@ function this.RequestServerVersion(func)
|
|||
else
|
||||
local json = require 'cjson'
|
||||
local context = json.decode(str)
|
||||
SERVER_VERSION = context.serverInfo or SERVER_VERSION
|
||||
if IsSDKLogin then
|
||||
-- 当前包的版本号小于GM配置的版本号则包连接正式服,否则连接提审服
|
||||
local vcode = ServerConfigManager.GetSDKVersionCode()
|
||||
if vcode <= context.serverInfo then
|
||||
SERVER_VERSION = 0 -- 正式服
|
||||
else
|
||||
SERVER_VERSION = 1 -- 提审服
|
||||
end
|
||||
end
|
||||
end
|
||||
--
|
||||
if func then
|
||||
|
|
Loading…
Reference in New Issue