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