Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2e654b0

Browse files
CodingTip 的 id 类型错误的 bug
1 parent 231918d commit 2e654b0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎Coding_iOS/Controllers/TipsViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ - (void)p_markReadTip:(CodingTip *)tip{
157157
return;
158158
}
159159
@weakify(self);
160-
[[Coding_NetAPIManager sharedManager] request_markReadWithCodingTipIdStr:tip.id andBlock:^(id data, NSError *error) {
160+
[[Coding_NetAPIManager sharedManager] request_markReadWithCodingTipIdStr:tip.id.stringValue andBlock:^(id data, NSError *error) {
161161
@strongify(self);
162162
DebugLog(@"%@: %@", data, error);
163163
if (data) {

‎Coding_iOS/Models/CodingTip.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
@interface CodingTip : NSObject
1414

1515
@property (readwrite, nonatomic, strong) NSNumber *status;
16-
@property (strong, nonatomic) NSString *id, *owner_id, *target_id, *type;
16+
@property (strong, nonatomic) NSNumber *id, *owner_id, *target_id, *type;
1717
@property (readwrite, nonatomic, strong) NSDate *created_at;
1818
@property (readwrite, nonatomic, strong) NSString *content, *target_type;
1919
@property (readwrite, nonatomic, strong) HtmlMedia *htmlMedia;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /