Skip to content

Commit 587936f

Browse files
committed
bugfix
1 parent 696a421 commit 587936f

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

Coding_iOS/Coding_iOS-Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</dict>
3838
</array>
3939
<key>CFBundleVersion</key>
40-
<string>4.9.5.201712061200</string>
40+
<string>4.9.5.201712281100</string>
4141
<key>ITSAppUsesNonExemptEncryption</key>
4242
<false/>
4343
<key>LSApplicationQueriesSchemes</key>

Coding_iOS/Controllers/Login/LoginViewController.m

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,8 +586,12 @@ - (void)p_thridPlatformLogin:(UMSocialResponse *)resp{
586586
if (data) {
587587
[((AppDelegate *)[UIApplication sharedApplication].delegate) setupTabViewController];
588588
[weakSelf doSomethingAfterLogin];
589-
}else{
590-
[NSObject showError:error];
589+
}else if (error){
590+
if (error.userInfo[@"msg"][@"oauth_account_not_bound"]) {
591+
kTipAlert(@"抱歉,你还未绑定微信,请前往 Coding 主站完成微信绑定操作");
592+
}else{
593+
[NSObject showError:error];
594+
}
591595
}
592596
}];
593597
}

Coding_iOS/Controllers/MeSetting/SettingSkillsViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ - (void)refresh{
5353

5454
- (void)setupContent{
5555
User *curUser = [Login curLoginUser];
56-
self.skills = curUser.skills.mutableCopy;
56+
self.skills = curUser.skills.mutableCopy ?: @[].mutableCopy;
5757
[self.navigationItem setRightBarButtonItem:[UIBarButtonItem itemWithBtnTitle:@"完成" target:self action:@selector(doneBtnClicked:)] animated:YES];
5858

5959
__weak typeof(self) weakSelf = self;

Coding_iOS/Util/Manager/Coding_NetAPIManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ - (void)request_Login_With_UMSocialResponse:(UMSocialResponse *)resp andBlock:(v
121121
params[@"account"] = resp.unionId;
122122
params[@"oauth_access_token"] = resp.accessToken;
123123
params[@"response"] = [NSString stringWithFormat:@"{\"access_token\":\"%@\",\"openid\":\"%@\"}", resp.accessToken, resp.openid];
124-
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/oauth/wechat/mobile/login" withParams:params withMethodType:Post andBlock:^(id data, NSError *error) {
124+
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/oauth/wechat/mobile/login" withParams:params withMethodType:Post autoShowError:NO andBlock:^(id data, NSError *error) {
125125
id resultData = [data valueForKeyPath:@"data"];
126126
if (resultData) {
127127
[MobClick event:kUmeng_Event_Request_ActionOfServer label:@"登录_第三方登录"];

0 commit comments

Comments
 (0)