return [self POST:@""
parameters:requestDic
headers:@{@"onlycode": deviceId ? deviceId : @""}
progress:nil
success:^(NSURLSessionDataTask * _Nonnull task, id _Nullable responseObject) {
[BFModule(TransitionModuleService) dismissLoading];
// [WTLoadingView dismissGifLoading];
NSString *responseStr =
[BFModule(LMEncryptToolModuleService) dencryptResponse:[responseObject objectForKey:@"body"] withKey:nil vector:nil];
NSDictionary *responseDic = [self getDicWithString:responseStr];
NSString *result_code = [responseDic valueForKey:@"result_code"];
if ([result_code isEqualToString:kLMHttpLoginErrorCode]) {
[[NSNotificationCenter defaultCenter] postNotificationName:kUserKickOutNotify object:nil];
} else {
if (success) success(task, responseDic);
}
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
[BFModule(TransitionModuleService) dismissLoading];
if (failure) failure(task, error);
}];
0 Comments latest
No comments.