添加一些报错打印

dev_chengFeng
JieLing 2020-09-12 11:02:33 +08:00
parent 3d594a7d8e
commit 64fdc8784a
3 changed files with 16 additions and 1 deletions

View File

@ -213,12 +213,16 @@ function Network:ReceiveErrorInfo(buffer)
elseif errorCfg.ShowType == 2 then --弹窗
local contexts = string.split(errorCfg.Desc, "#") --标题#内容
MsgPanel.ShowOne(string.format(contexts[2], unpack(msg.errParams)), nil, nil, contexts[1])
else
PopupTipPanel.ShowTip(msg.errMsg)
end
else
if msg.errCode == -101 or msg.errCode == -102 then
--被顶号或者被封号
Game.Logout()
AppConst.Code = msg.errMsg --TODO:重登会重置所有lua变量信息用一个不用的C#变量记录,用于记录异常退出信息
else
PopupTipPanel.ShowTip(msg.errMsg)
end
end
end

View File

@ -463,22 +463,33 @@ function this.ExecuteLoading()
[32] = function() NetManager.GetSituationInfoRequest(LoadingPanel.OnStep) end,
[33] = function() NetManager.RefreshTimeSLRequest(LoadingPanel.OnStep) end,
[34] = function() -- 登录请求最终接口,所有请求放在此接口之前
LogError("开始进入游戏")
if AppConst.isGuide then
if GuideManager.GetCurId(GuideType.Force) == 1 and PlayerManager.nickName == tostring(PlayerManager.uid) then
LogError("开始引导")
--创号阶段先进入剧情对话,进入假战斗,然后对话起名,最后进入主界面
local exBattle = function ()
PatFaceManager.isLogin = true
LogError("开始加载主界面")
UIManager.OpenPanelAsync(UIName.MainPanel, function ()
LogError("开始打开挂机界面")
UIManager.OpenPanel(UIName.FightPointPassMainPanel)
LogError("关闭loading")
LoadingPanel.End()
LogError("成功进入游戏")
end)
end
StoryManager.EventTrigger(100001, exBattle)
else
LogError("不需要引导")
PatFaceManager.isLogin = true
LogError("开始加载主界面")
UIManager.OpenPanelAsync(UIName.MainPanel, function ()
LogError("开始打开挂机界面")
UIManager.OpenPanel(UIName.FightPointPassMainPanel)
LogError("关闭loading")
LoadingPanel.End()
LogError("成功进入游戏")
end)
end
else

View File

@ -13,7 +13,7 @@ function LoadingPanel:InitComponent()
end
local callList = {}
local curIndex
local curIndex = 0
local lerp = 0
local maxIndex = 0
local function update()