Skip to content

Commit 2172068

Browse files
committed
更换手机号之后,更新 Login 数据
1 parent 874f69d commit 2172068

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Coding_iOS/Controllers/MeSetting/SettingPhoneViewController.m

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -218,15 +218,15 @@ - (void)doneBtnClicked:(id)sender{
218218
__weak typeof(self) weakSelf = self;
219219
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/account/phone/change" withParams:params withMethodType:Post andBlock:^(id data, NSError *error) {
220220
if (data) {
221-
[weakSelf.navigationController popViewControllerAnimated:YES];
222221
if (![Login curLoginUser].is_phone_validated.boolValue) {//之前没有绑定过手机号的,奖励码币
223-
[Login curLoginUser].is_phone_validated = @(YES);
224-
[Login curLoginUser].phone = weakSelf.phone;
225-
[Login curLoginUser].phone_country_code = weakSelf.phone_country_code;
226222
[RewardTipManager showTipWithTitle:@"成功完成手机验证 !" rewardPoint:@"0.1 MB"];
227223
}else{
228224
[NSObject showHudTipStr:@"手机号码绑定成功"];
229225
}
226+
[Login curLoginUser].is_phone_validated = @(YES);
227+
[Login curLoginUser].phone = weakSelf.phone;
228+
[Login curLoginUser].phone_country_code = weakSelf.phone_country_code;
229+
[weakSelf.navigationController popViewControllerAnimated:YES];
230230
}
231231
}];
232232
}

0 commit comments

Comments
 (0)