1
This commit is contained in:
parent
9f3242cb26
commit
cb70d63465
@ -80,8 +80,15 @@ class SPNetwork: NSObject {
|
|||||||
}
|
}
|
||||||
completion?(res)
|
completion?(res)
|
||||||
} else {
|
} else {
|
||||||
|
if code == 402, parameters.isToast {
|
||||||
|
SPToast.show(text: "kNetworkToast02".localized)
|
||||||
|
}
|
||||||
///重新获取token
|
///重新获取token
|
||||||
self.requestToken(completer: nil)
|
self.requestToken { token in
|
||||||
|
if token != nil {
|
||||||
|
SPLoginManager.manager.updateUserInfo(completer: nil)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
///将请求失败数据重新请求
|
///将请求失败数据重新请求
|
||||||
if let tokenOperation = self.tokenOperation, parameters.path != "/customer/register" {
|
if let tokenOperation = self.tokenOperation, parameters.path != "/customer/register" {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user