Skip to content

Commit c11dd99

Browse files
committed
通知中心 新增了「打赏」类型
1 parent 4d8f014 commit c11dd99

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

Coding_iOS/.DS_Store

0 Bytes
Binary file not shown.

Coding_iOS/Models/CodingTips.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ - (NSString *)toTipsPath{
6767
- (NSDictionary *)toTipsParams{
6868
NSDictionary *params;
6969
if (_type == 0) {
70-
params = @{@"type" : [NSNumber numberWithInteger:0],
70+
params = @{@"type" : @(0),
7171
@"page" : _willLoadMore? [NSNumber numberWithInteger:_page.integerValue +1]: [NSNumber numberWithInteger:1],
7272
@"pageSize" : _pageSize};
7373
}else if (_type == 1){
74-
params = @{@"type" : [NSArray arrayWithObjects:[NSNumber numberWithInteger:1], [NSNumber numberWithInteger:2], nil],
74+
params = @{@"type" : @[@(1), @(2)],
7575
@"page" : _willLoadMore? [NSNumber numberWithInteger:_page.integerValue +1]: [NSNumber numberWithInteger:1],
7676
@"pageSize" : _pageSize};
7777
}else if (_type == 2){
78-
params = @{@"type" : [NSNumber numberWithInteger:4],
78+
params = @{@"type" : @[@(4), @(6)],
7979
@"page" : _willLoadMore? [NSNumber numberWithInteger:_page.integerValue +1]: [NSNumber numberWithInteger:1],
8080
@"pageSize" : _pageSize};
8181
}

Coding_iOS/Util/Manager/Coding_NetAPIManager.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ - (void)request_UnReadCountWithBlock:(void (^)(id data, NSError *error))block{
3737
}
3838
- (void)request_UnReadNotificationsWithBlock:(void (^)(id data, NSError *error))block{
3939
NSMutableDictionary *notificationDict = [[NSMutableDictionary alloc] init];
40-
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/notification/unread-count" withParams:@{@"type" : [NSNumber numberWithInteger:0]} withMethodType:Get andBlock:^(id data, NSError *error) {
40+
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/notification/unread-count" withParams:@{@"type" : @(0)} withMethodType:Get andBlock:^(id data, NSError *error) {
4141
if (data) {
4242
// @我的
4343
[notificationDict setObject:[data valueForKeyPath:@"data"] forKey:kUnReadKey_notification_AT];
44-
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/notification/unread-count" withParams:@{@"type" : [NSArray arrayWithObjects:[NSNumber numberWithInteger:1], [NSNumber numberWithInteger:2], nil]} withMethodType:Get andBlock:^(id dataComment, NSError *errorComment) {
44+
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/notification/unread-count" withParams:@{@"type" : @[@(1), @(2)]} withMethodType:Get andBlock:^(id dataComment, NSError *errorComment) {
4545
if (dataComment) {
4646
// 评论
4747
[notificationDict setObject:[dataComment valueForKeyPath:@"data"] forKey:kUnReadKey_notification_Comment];
48-
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/notification/unread-count" withParams:@{@"type" : [NSNumber numberWithInteger:4]} withMethodType:Get andBlock:^(id dataSystem, NSError *errorSystem) {
48+
[[CodingNetAPIClient sharedJsonClient] requestJsonDataWithPath:@"api/notification/unread-count" withParams:@{@"type" : @[@(4),@(6)]} withMethodType:Get andBlock:^(id dataSystem, NSError *errorSystem) {
4949
if (dataSystem) {
5050
// 系统
5151
[MobClick event:kUmeng_Event_Request_Notification label:@"消息页面的红点通知"];

0 commit comments

Comments
 (0)