Prechádzať zdrojové kódy

服务器繁忙等待

123 1 rok pred
rodič
commit
1d0383bd59

+ 2 - 1
Assets/Content/Config/LanguagePackage_cn.csv

@@ -10025,4 +10025,5 @@ DiffTaskTitleTxt,任务
 DiffGroupTaskConditionTxt,任务完成:{0}/{1}
 WanTxt,万
 YiTxt,亿
-ItemTypeDes_56,道具
+ItemTypeDes_56,道具
+LoginGetServerListError,当前玩家用户过多,请稍后再试

+ 5 - 5
Assets/Lua/Core/PlatformPack.lua

@@ -1,9 +1,9 @@
 local PlatformPack = {
-	URL_KEY = 'http://110.40.223.119:81//',
-	SERVERLIST_URL = 'http://110.40.223.119:81//serverlist',
-	NOTIFY_URL = 'http://cxzcdn.hkhappygame.com/res/TestServerNotice/',
-	SPECIAL_INFO_URL = 'http://110.40.223.119:81//channel',
-	CUSTOMER_SERVICE_INFO_URL = 'http://110.40.223.119:81//vipService',
+	URL_KEY = 'http://103.239.245.64:81//',
+	SERVERLIST_URL = 'http://103.239.245.64:81//serverlist',
+	NOTIFY_URL = 'http://weix.vvfyj.cn/res/TestServerNotice/',
+	SPECIAL_INFO_URL = 'http://weix.vvfyj.cn/res/Channel/agreement.json',
+	CUSTOMER_SERVICE_INFO_URL = 'http://103.239.245.64:81//vipService',
 }
 
 return PlatformPack

+ 9 - 2
Assets/Lua/Managers/LoginMgr.lua

@@ -487,21 +487,27 @@ function LoginMgr:StartCheckServer(isAgain)
     LogWarning('checkWWW-----'..url)
     self.preLoginStatus = self.loginStatus
     self.loginStatus = LoginStatus.CheckServer
+    --url = "http://103.239.245.64:81/serverlist/test"
     self.checkWWW = UnityEngine.WWW(url)
 end
 
 function LoginMgr:CheckServerFail()
     self.preLoginStatus = self.loginStatus
     self.loginStatus = LoginStatus.Error
+    local error = self.checkWWW.error
     if self.checkWWW then
         self.checkWWW:Dispose()
     end
     self.checkWWW = nil
     self.checkServerAgain = nil
-    
+    local data = {"LoginTips4", nil, nil, self, self.InternalRelogin, self.QuitGame}
+    if error == "429 Too Many Requests" then
+        data = {"LoginTips14", nil, nil, self, self.InternalRelogin, self.QuitGame}
+    end
 
+    --LoginTips14
     ManagerContainer.LuaUIMgr:CloseNetWaiting()
-    local data = {"LoginTips4", nil, nil, self, self.InternalRelogin, self.QuitGame}
+    
     ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UISystemNoticeTips, data, nil, nil, nil, Enum.UISibling[Enum.UIType.Top + 1] + 10)
     ManagerContainer.LuaGameMgr:ClearServerData()
     ManagerContainer.LuaEventMgr:Dispatch(UIEventNames.CURRENT_SERVER_CHANGED)
@@ -514,6 +520,7 @@ function LoginMgr:CheckServerSuccess()
     end
     if self.checkWWW.error and self.checkWWW.error ~= '' then
         LogError("[wboy] CheckServer error = " .. tostring(self.checkWWW.error))
+        LogError("[wboy] CheckServer Text = " .. tostring(self.checkWWW.text))
         self:CheckServerFail()
         return
     end

+ 1 - 0
Assets/Lua/UI/UICommonTips/UINoticeTipsView.lua

@@ -14,6 +14,7 @@ local NoticeList = {
 	["LoginTips2"] = {title = "GameLogin08", notice = "GameLogin02", btnSure = "GameLogin07", btnCancle = "GameLogin06", hideClose=true},
 	["LoginTips3"] = {title = "GameLogin08", notice = "GameLogin03", btnSure = "GameLogin07", btnCancle = "GameLogin06", hideClose=true},
 	["LoginTips4"] = {title = "GameLogin08", notice = "GameLogin04", btnSure = "GameLogin07", btnCancle = "GameLogin06", hideClose=true},
+	["LoginTips14"] = {title = "GameLogin08", notice = "LoginGetServerListError", btnSure = "GameLogin07",btnCancle = "GameLogin06", hideClose=true},
 	["LoginTips5"] = {title = "GameLogin08", notice = "GameLogin10", btnSure = "GameLogin07", btnCancle = "GameLogin06", hideClose=true},
 	["LoginTips6"] = {title = "GameLogin08", notice = "GameLogin09", btnSure = "GameLogin15", btnCancle = "GameLogin06", hideClose=true},
 	["LoginTips7"] = {title = "GameLogin08", notice = "GameLogin12", btnSure = "GameLogin15", btnCancle = "GameLogin06", hideClose=true},

+ 2 - 2
ProjectSettings/ProjectSettings.asset

@@ -13,7 +13,7 @@ PlayerSettings:
   useOnDemandResources: 0
   accelerometerFrequency: 60
   companyName: WentingTec
-  productName: "\u5FC3\u529B\u7269\u8BED"
+  productName: "\u8D85\u5192\u9669\u5C0F\u9547\u7269\u8BED2"
   defaultCursor: {fileID: 0}
   cursorHotspot: {x: 0, y: 0}
   m_SplashScreenBackgroundColor: {r: 1, g: 1, b: 1, a: 1}
@@ -845,7 +845,7 @@ PlayerSettings:
   webGLDecompressionFallback: 1
   webGLPowerPreference: 1
   scriptingDefineSymbols:
-    Android: USE_LUA;VUPLEX_CCU;BUGLY;FPS_DISABLE;GAME_DEBUG
+    Android: USE_LUA;VUPLEX_CCU;BUGLY;FPS_DISABLE;CN_I7GAME_0_1
     Standalone: USE_LUA;VUPLEX_CCU
     WebGL: USE_LUA;VUPLEX_CCU
     iPhone: USE_LUA;VUPLEX_CCU