upgrade
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user