【登录】修改判断提审和正式服的方式

dev_chengFeng
gaoxin 2021-07-09 17:33:21 +08:00
parent e3eff1e553
commit f7e5775495
1 changed files with 9 additions and 1 deletions

View File

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