Skip to content

Commit ca5dd56

Browse files
committed
bugfix
1 parent 2ac2091 commit ca5dd56

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

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>5.2.201804031430</string>
40+
<string>5.2.201804041500</string>
4141
<key>ITSAppUsesNonExemptEncryption</key>
4242
<false/>
4343
<key>LSApplicationQueriesSchemes</key>

Coding_iOS/Controllers/Login/CannotLoginViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ - (void)phoneCodeBtnClicked:(PhoneCodeButton *)sender withCaptcha:(NSString *)ca
265265
params[@"j_captcha"] = captcha;
266266
}
267267
__weak typeof(self) weakSelf = self;
268-
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/account/password/forget" withParams:params withMethodType:Post andBlock:^(id data, NSError *error) {
268+
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/account/password/forget" withParams:params withMethodType:Post autoShowError:captcha.length > 0 andBlock:^(id data, NSError *error) {
269269
if (data) {
270270
[NSObject showHudTipStr:@"验证码发送成功"];
271271
[sender startUpTimer];

Coding_iOS/Controllers/Login/RegisterViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ - (void)phoneCodeBtnClicked:(PhoneCodeButton *)sender withCaptcha:(NSString *)ca
399399
params[@"j_captcha"] = captcha;
400400
}
401401
__weak typeof(self) weakSelf = self;
402-
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/account/register/generate_phone_code" withParams:params withMethodType:Post andBlock:^(id data, NSError *error) {
402+
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/account/register/generate_phone_code" withParams:params withMethodType:Post autoShowError:captcha.length > 0 andBlock:^(id data, NSError *error) {
403403
if (data) {
404404
[NSObject showHudTipStr:@"验证码发送成功"];
405405
[sender startUpTimer];

Coding_iOS/Models/ResourceReference.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
#import <Foundation/Foundation.h>
1010

1111
@interface ResourceReference : NSObject
12-
@property (strong, nonatomic) NSMutableArray *Task, *MergeRequestBean, *ProjectTopic, *ProjectFile, *itemList;
12+
@property (strong, nonatomic) NSMutableArray *Task, *MergeRequestBean, *ProjectTopic, *ProjectFile, *Release, *itemList;
1313
@property (readwrite, nonatomic, strong) NSDictionary *propertyArrayMap;
1414

1515
@end
1616

1717
@interface ResourceReferenceItem : NSObject
1818
@property (strong, nonatomic) NSString *target_type, *title, *link;
1919
@property (strong, nonatomic) NSNumber *code, *target_id;
20-
@end
20+
@end

Coding_iOS/Models/ResourceReference.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ - (instancetype)init
1717
@"MergeRequestBean": @"ResourceReferenceItem",
1818
@"ProjectTopic": @"ResourceReferenceItem",
1919
@"ProjectFile": @"ResourceReferenceItem",
20+
@"Release": @"ResourceReferenceItem",
2021
};
2122

2223
}
@@ -29,11 +30,12 @@ - (NSMutableArray *)itemList{
2930
[_itemList addObjectsFromArray:_ProjectTopic];
3031
[_itemList addObjectsFromArray:_ProjectFile];
3132
[_itemList addObjectsFromArray:_MergeRequestBean];
33+
[_itemList addObjectsFromArray:_Release];
3234
}
3335
return _itemList;
3436
}
3537
@end
3638

3739
@implementation ResourceReferenceItem
3840

39-
@end
41+
@end

Coding_iOS/Util/Manager/Coding_NetAPIManager.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2665,7 +2665,7 @@ - (void)request_GeneratePhoneCodeToResetPhone:(NSString *)phone phoneCountryCode
26652665
if (captcha.length > 0) {
26662666
params[@"j_captcha"] = captcha;
26672667
}
2668-
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:path withParams:params withMethodType:Post andBlock:^(id data, NSError *error) {
2668+
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:path withParams:params withMethodType:Post autoShowError:captcha.length > 0 andBlock:^(id data, NSError *error) {
26692669
if (data) {
26702670
[MobClick event:kUmeng_Event_Request_ActionOfServer label:@"生成手机验证码_绑定手机号"];
26712671
}
@@ -3227,7 +3227,7 @@ - (void)post_Close2FAGeneratePhoneCode:(NSString *)phone withCaptcha:(NSString *
32273227
if (captcha.length > 0) {
32283228
params[@"j_captcha"] = captcha;
32293229
}
3230-
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/twofa/close/code" withParams:params withMethodType:Post andBlock:^(id data, NSError *error) {
3230+
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/twofa/close/code" withParams:params withMethodType:Post autoShowError:captcha.length > 0 andBlock:^(id data, NSError *error) {
32313231
block(data, error);
32323232
}];
32333233
}

Coding_iOS/Views/Cell/TaskResourceReferenceCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ - (void)setItem:(ResourceReferenceItem *)item{
6666
if (!_item) {
6767
return;
6868
}
69-
[_imgView setImage:[UIImage imageNamed:[NSString stringWithFormat:@"task_resource_reference_%@", _item.target_type]]];
69+
[_imgView setImage:[UIImage imageNamed:[NSString stringWithFormat:@"task_resource_reference_%@", _item.target_type]] ?: [UIImage imageNamed:@"task_resource_reference_ProjectFile"]];
7070
_codeL.text = [NSString stringWithFormat:@"# %@ ", _item.code.stringValue];
7171
_titleL.text = _item.title;
7272
}

0 commit comments

Comments
 (0)