This commit is contained in:
2020-07-09 09:23:09 +08:00
parent c523462b82
commit c0095c1af9
48 changed files with 553 additions and 297 deletions

View File

@@ -109,7 +109,7 @@ end
NetProto.sendGet = function(cmd, map, callback, failedCallback, orgs, _baseUrl)
if isNilOrEmpty(NetProto.sign) and (cmd ~= NetProto.cmds.getTokenForAPI) then
CLAlert.add("与服务器失去联络,请重试!", Color.white, 1)
MyUtl.toastE("与服务器失去联络,请重试!")
NetProto.init()
return
end
@@ -152,12 +152,12 @@ function NetProto.init(callback)
onGetToken(data.result)
Utl.doCallback(callback, true)
else
CLAlert.add(data.msg, Color.white, 1)
MyUtl.toastW(data.msg)
Utl.doCallback(callback, false)
end
end,
function()
CLAlert.add("取得会话ID失败", Color.white, 1)
MyUtl.toastE("取得会话ID失败")
Utl.doCallback(callback, false)
end
)