Commit e665564d authored by IOS-张 博's avatar IOS-张 博

解除授权loading时机修改

parent a4f09d8b
......@@ -240,19 +240,21 @@ typedef NS_ENUM(NSInteger,QGAuthStatus){
QGTalosNetwork *networking = [QGTalosNetwork shareManager];
// [QGLoginRequestApi urlWithQGLoginRequestServerMethod:QGLoginRequestServerMethodUnBindWeChat]
//@"http://yapi.quantgroups.com/mock/305/vcc/external/login/weChat/unbind"
[networking GET:[QGLoginRequestApi urlWithQGLoginRequestServerMethod:QGLoginRequestServerMethodUnBindWeChat] parameters:nil success:^(id _Nonnull responseObject) {
if ([QGTalosNetwork checkBusinessCodeAndCodeWithResponseObjectObject:responseObject]) {
/// 刷新页面
self.wxAuthStatus = QGAuthStatusUnAuth;
[self initData];
[QGHUDManager showHud:@""];
}else{
NSString *msg = responseObject[@"msg"]?responseObject[@"msg"]:@"解除授权错误";
[QGHUDManager showHud:msg];
}
} failure:^(NSURLSessionDataTask * _Nonnull task, NSError * _Nonnull error) {
[QGHUDManager showHud:@"网络错误,请稍后再试"];
}];
[QGHUDManager showHud:@""];
[networking GET:[QGLoginRequestApi urlWithQGLoginRequestServerMethod:QGLoginRequestServerMethodUnBindWeChat] parameters:nil success:^(id _Nonnull responseObject) {
[QGHUDManager hideHud];
if ([QGTalosNetwork checkBusinessCodeAndCodeWithResponseObjectObject:responseObject]) {
/// 刷新页面
self.wxAuthStatus = QGAuthStatusUnAuth;
[self initData];
}else{
NSString *msg = responseObject[@"msg"]?responseObject[@"msg"]:@"解除授权错误";
[QGHUDManager showHud:msg];
}
} failure:^(NSURLSessionDataTask * _Nonnull task, NSError * _Nonnull error) {
[QGHUDManager showHud:@"网络错误,请稍后再试"];
}];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment