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