This commit is contained in:
2020-07-16 23:06:09 +08:00
parent 22546a0c6c
commit 4221cf486c
20 changed files with 84 additions and 62 deletions

View File

@@ -65,7 +65,7 @@ local dispatch = function(content, params)
printe(joinStr("cmd:[", cmd, "]code:[", code, "]msg:", msg))
-- retInfor.msg = Localization.Get(joinStr("Error_", succ))
if not isNilOrEmpty(msg) then
MyUtl.toastE(msg)
MyUtl.toastW(msg)
end
hideHotWheel()
else
@@ -106,7 +106,7 @@ end
NetProto.sendGet = function(cmd, map, callback, failedCallback, orgs, _baseUrl)
if isNilOrEmpty(NetProto.sign) and (cmd ~= NetProto.cmds.getTokenForAPI) then
MyUtl.toastE("与服务器失去联络,请重试!")
MyUtl.toastW("与服务器失去联络,请重试!")
NetProto.init()
return
end
@@ -154,7 +154,7 @@ function NetProto.init(callback)
end
end,
function()
MyUtl.toastE("取得会话ID失败")
MyUtl.toastW("取得会话ID失败")
Utl.doCallback(callback, false)
end
)