Commit f14dbabc1da1f855f961bdbd97e2d362caa2cfce
1 parent
e98c4fb6
0.3.6 版本 添加 社区支付成功消息
Showing
5 changed files
with
19 additions
and
4 deletions
CNLiveNewIMAManagerKit.podspec
CNLiveNewIMAManagerKit/Classes/Playform/IMAConversationManager.m
| ... | ... | @@ -1074,6 +1074,12 @@ |
| 1074 | 1074 | //商家版申请退款消息 |
| 1075 | 1075 | [[NSNotificationCenter defaultCenter] postNotificationName:kIMAMSG_ApplyForRefundNotification object:nil userInfo:dic]; |
| 1076 | 1076 | } |
| 1077 | + else if ([dic[@"type"] integerValue] == CustomMsgTypeCommunityPaySuccess) | |
| 1078 | + { | |
| 1079 | + //社区支付成功 | |
| 1080 | + [[NSNotificationCenter defaultCenter] postNotificationName:kIMAMSG_CommunityPaySuccessNotification object:nil userInfo:dic]; | |
| 1081 | + isBreak = YES; | |
| 1082 | + } | |
| 1077 | 1083 | return isBreak; |
| 1078 | 1084 | } |
| 1079 | 1085 | ... | ... |
CNLiveNewIMAManagerKit/Classes/PublicHeader/IMANotification.h
| ... | ... | @@ -167,4 +167,7 @@ static NSString *const kIMAMSG_ApplyForRefundNotification = @"kIMAMSG_ApplyForRe |
| 167 | 167 | #pragma mark 收到IM新消息 |
| 168 | 168 | static NSString *const kIMAMSG_OnNewMessageNotification = @"kIMAMSG_OnNewMessageNotification"; |
| 169 | 169 | |
| 170 | +#pragma mark 社区支付成功 | |
| 171 | +static NSString *const kIMAMSG_CommunityPaySuccessNotification = @"kIMAMSG_CommunityPaySuccessNotification"; | |
| 172 | + | |
| 170 | 173 | #endif /* IMANotification_h */ | ... | ... |
CNLiveNewIMAManagerKit/Classes/TIMModel/MSG/IMAMsg.h
| ... | ... | @@ -102,6 +102,9 @@ typedef NS_ENUM(NSInteger, IMAMSGType) { |
| 102 | 102 | #pragma mark 亲情群相关 |
| 103 | 103 | EIMAMSG_FamilyHealthyStep , //健康步数 |
| 104 | 104 | EIMAMSG_HaveCoupon , //有代领优惠券 |
| 105 | +#pragma mark 社区 | |
| 106 | + EIMAMSG_CommunityPaySuccess , //社区支付成功 | |
| 107 | + | |
| 105 | 108 | #pragma mark 电商原生商品详情,电商原生订单详情 |
| 106 | 109 | EIMAMSG_ShopGoodsInfo , //电商原生商品详情 |
| 107 | 110 | EIMAMSG_ShopOrderDetail , //电商原生订单详情 |
| ... | ... | @@ -113,7 +116,7 @@ typedef NS_ENUM(NSInteger, IMAMSGType) { |
| 113 | 116 | EIMAMSG_OrederQrcodeReceived , //二维码收款 |
| 114 | 117 | EIMAMSG_OrederReminder , //推单 |
| 115 | 118 | EIMAMSG_NewOrderRemind , //新订单提醒 |
| 116 | - | |
| 119 | + | |
| 117 | 120 | }; |
| 118 | 121 | |
| 119 | 122 | |
| ... | ... | @@ -197,7 +200,10 @@ typedef NS_ENUM(NSUInteger, CustomMsgType) { |
| 197 | 200 | CustomMsgTypeBlackTip = 6002, //被拉黑后,发送消息进行提示 |
| 198 | 201 | |
| 199 | 202 | CustomMsgTypeBlackStatusChange = 5003, //添加或者移除黑名单,系统通知 |
| 200 | - | |
| 203 | + | |
| 204 | + ///社区支付成功 | |
| 205 | + CustomMsgTypeCommunityPaySuccess = 5004, | |
| 206 | + | |
| 201 | 207 | CustomMsgTypeSendCurrentLocation = 8000, // 发送当前位置 |
| 202 | 208 | |
| 203 | 209 | // CustomMsgTypeInitiatingSharedLocation = 8001, //发起位置共享 | ... | ... |
CNLiveNewIMAManagerKit/Classes/TIMModel/MSG/IMAMsg.m
| ... | ... | @@ -455,7 +455,7 @@ |
| 455 | 455 | NSDictionary *dic = [NSJSONSerialization JSONObjectWithData:cusElem.data |
| 456 | 456 | options:NSJSONReadingMutableContainers |
| 457 | 457 | error:&err]; |
| 458 | - if ([dic[@"type"] integerValue] == 1001) { | |
| 458 | + if ([dic[@"type"] integerValue] == CustomMsgTypeConfirm) { | |
| 459 | 459 | //核对订单 |
| 460 | 460 | type = EIMAMSG_OrderConfirm; |
| 461 | 461 | } else if ([dic[@"type"] integerValue] == CustomMsgTypeCnee) { | ... | ... |