HoriXMPP文档
目录结构
|-- Core
|-- Parse
| |-- Factory
| |-- OSS
| |-- SmartCommunity
| |-- HoriXMPPParse.h
|-- Utilities
|-- XMPPFramework
|-- HoriXMPPFramework.h
- XMPPFramework是XMPP框架;
- Core为HoriXMPP的核心代码;
- Parse为不同项目的业务代码;
- Utilities为公共的类。
Core
|-- Core
| |-- HoriXMPPConfiguration.h
| |-- HoriXMPPConfiguration.m
| |-- HoriXMPPManager+DatabaseOperation.h
| |-- HoriXMPPManager+DatabaseOperation.m
| |-- HoriXMPPManager+Room.h
| |-- HoriXMPPManager+Room.m
| |-- HoriXMPPManager+Roster.h
| |-- HoriXMPPManager+Roster.m
| |-- HoriXMPPManager.h
| |-- HoriXMPPManager.m
| |-- HoriXMPPRoster.h
| `-- HoriXMPPRoster.m
- HoriXMPPManager是HoriXMPP的核心类,主要实现了XMPP的连接、ping、roster、reconnect等;
- HoriXMPPConfiguration参数配置类,配置XMPP的参数;
- HoriXMPPManager+Roster分类,处理好友有关的操作:添加好友、删除好友、查询好友信息等;
- HoriXMPPManager+Room分类,处理创建群聊房间的一些操作;
- HoriXMPPManager+DatabaseOperation分类,对数据库的进行操作;
- HoriXMPPRoster是XMPPRoster的子类,重写、添加了一些方法。
Parse
项目的业务代码必须遵守HoriXMPPParse协议
联享家SmartCommunity
|-- SmartCommunity
| | |-- Core
| | | |-- HoriXMPPSmartCommunityParse.m
| | | |-- HoriXMPPSmartCommunityParse.h
| | | |-- HoriXMPPSmartCommunityParse+Chat.h
| | | |-- HoriXMPPSmartCommunityParse+Chat.m
| | | |-- HoriXMPPSmartCommunityParse+Friend.h
| | | |-- HoriXMPPSmartCommunityParse+Friend.m
| | | |-- HoriXMPPSmartCommunityParse+BodyType.h
| | | `-- HoriXMPPSmartCommunityParse+BodyType.m
| | |-- Model
| | | |-- HoriXMPPSmartCommunityBBSInteractiveModel.h
| | | |-- HoriXMPPSmartCommunityBBSInteractiveModel.m
| | | |-- HoriXMPPSmartCommunityCallRecordModel.h
| | | |-- HoriXMPPSmartCommunityCallRecordModel.m
| | | |-- HoriXMPPSmartCommunityChatSessionModel.h
| | | |-- HoriXMPPSmartCommunityChatSessionModel.m
| | | |-- HoriXMPPSmartCommunityGroupModel.h
| | | |-- HoriXMPPSmartCommunityGroupModel.m
| | | |-- HoriXMPPSmartCommunityIntegrationModel.h
| | | |-- HoriXMPPSmartCommunityIntegrationModel.m
| | | |-- HoriXMPPSmartCommunityIntercomSettingsModel.h
| | | |-- HoriXMPPSmartCommunityIntercomSettingsModel.m
| | | |-- HoriXMPPSmartCommunityMallModel.h
| | | |-- HoriXMPPSmartCommunityMallModel.m
| | | |-- HoriXMPPSmartCommunityMessageModel.h
| | | |-- HoriXMPPSmartCommunityMessageModel.m
| | | |-- HoriXMPPSmartCommunityOperatorModel.h
| | | |-- HoriXMPPSmartCommunityOperatorModel.m
| | | |-- HoriXMPPSmartCommunityPropertyAnnouncementModel.h
| | | |-- HoriXMPPSmartCommunityPropertyAnnouncementModel.m
| | | |-- HoriXMPPSmartCommunityUserModel.h
| | | `-- HoriXMPPSmartCommunityUserModel.m
| | `-- HoriXMPPSmartCommunity.h
Core(核心类)
- HoriXMPPSmartCommunityParse为联享家解析数据的核心类,它遵守
HoriXMPPParse协议; - HoriXMPPSmartCommunityParse+Chat解析用户之间的通讯信息;
- HoriXMPPSmartCommunityParse+Friend解析与roster相关的信息;
- HoriXMPPSmartCommunityParse+BodyType解析XMPP发送的广播信息。
Model(模型类)
- HoriXMPPSmartCommunityUserModel和HoriXMPPSmartCommunityGroupModel是和好友有关的模型,其中Group代表一个分组,User代表一个好友,一个Group中会有 >= 1个User;
- HoriXMPPSmartCommunityMessageModel和HoriXMPPSmartCommunityChatSessionModel是用户之间通讯的模型,Session代表一个会话,Message代表一条信息,一个Session中会有 >= 1个Message;
- HoriXMPPSmartCommunityCallRecordModel是Sip通话记录模型;
- HoriXMPPSmartCommunityPropertyAnnouncementModel是物业公告模型;
- HoriXMPPSmartCommunityBBSInteractiveModel是BBS互动消息模型;
- HoriXMPPSmartCommunityIntegrationModel是积分模型;
- HoriXMPPSmartCommunityIntercomSettingsModel对讲设置模型(绑定/解绑/添加分机..);
- HoriXMPPSmartCommunityMallModel商城消息模型;
- HoriXMPPSmartCommunityOperatorModel运营商消息模型;
联享家XMPP通知分类
通知种类
<主要>
- HoriXMPPSmartCommunityDidReceiveFriendRequestNotification:添加好友请求
- HoriXMPPSmartCommunityDidReceiveChatMessageNotification:聊天消息
- HoriXMPPSmartCommunityDidReceiveSipCallRecordMessageNotification:SIP通话记录
- HoriXMPPSmartCommunityPropertyAnnouncementNotification:物业公告
- HoriXMPPSmartCommunityIntercomSettingsNotification:对讲设置
- HoriXMPPSmartCommunityMallNotification:商城消息
- HoriXMPPSmartCommunityOperatorNotification:运营商消息
- HoriXMPPSmartCommunityBBSInteractiveNotification:BBS互动消息
- HoriXMPPSmartCommunityIntegrationNotification:积分消息
<其他>
- HoriXMPPSmartCommunityChangeOpeningMethodNotification:开门方式的改变
通知所带的参数
通知参数统一使用userInfo包装的,使用HoriXMPPNotificationKey作为Key,再对应一个字典,如: 其中HoriXMPPNotificationKey和HoriXMPPNotificationModelIDKey是必带的。 HoriXMPPNotificationModelIDKey是模型的ID,通过这个ID可以获取对应的数据模型。
NSDictionary *userInfo =
@{HoriXMPPNotificationKey : @{HoriXMPPNotificationModelIDKey : @"模型中的id"}};
dispatch_async(dispatch_get_main_queue(), ^{
[[NSNotificationCenter defaultCenter]
postNotificationName:HoriXMPPSmartCommunityDidReceiveFriendRequestNotification
object:nil
userInfo:userInfo];
});
1、HoriXMPPSmartCommunityDidReceiveFriendRequestNotification
对应模型有:HoriXMPPSmartCommunityUserModel、HoriXMPPSmartCommunityGroupModel
NSDictionary *userInfo = @{HoriXMPPNotificationKey : @{HoriXMPPNotificationModelIDKey : @"模型中的id"}};
2、HoriXMPPSmartCommunityDidReceiveChatMessageNotification
对应模型有:HoriXMPPSmartCommunityMessageModel、HoriXMPPSmartCommunityChatSessionModel
NSDictionary *userInfo = @{HoriXMPPNotificationKey : @{HoriXMPPNotificationModelIDKey : @"模型中的id"}};
3、HoriXMPPSmartCommunityDidReceiveSipCallRecordMessageNotification
对应模型有:HoriXMPPSmartCommunityCallRecordModel
NSDictionary *userInfo = @{HoriXMPPNotificationKey : @{HoriXMPPNotificationModelIDKey : @"模型中的id"}};
4、HoriXMPPSmartCommunityPropertyAnnouncementNotification
对应模型有:HoriXMPPSmartCommunityPropertyAnnouncementModel
NSDictionary *userInfo = @{HoriXMPPNotificationKey : @{HoriXMPPNotificationModelIDKey : @"模型中的id"}};
5、HoriXMPPSmartCommunityIntercomSettingsNotification
HoriXMPPNotificationNeedUpdateTR069如果没有,默认为NO,不需要更新TR069
对应模型有:HoriXMPPSmartCommunityIntercomSettingsModel
NSDictionary *userInfo = @{HoriXMPPNotificationKey : @{HoriXMPPNotificationModelIDKey : @"模型中的id", HoriXMPPNotificationNeedUpdateTR069Key : @(YES)}};
6、HoriXMPPSmartCommunityMallNotification
对应模型有:HoriXMPPSmartCommunityMallModel
NSDictionary *userInfo = @{HoriXMPPNotificationKey : @{HoriXMPPNotificationModelIDKey : @"模型中的id"}};
7、HoriXMPPSmartCommunityOperatorNotification
对应模型有:HoriXMPPSmartCommunityOperatorModel
NSDictionary *userInfo = @{HoriXMPPNotificationKey : @{HoriXMPPNotificationModelIDKey : @"模型中的id"}};
8、HoriXMPPSmartCommunityBBSInteractiveNotification
对应模型有:HoriXMPPSmartCommunityBBSInteractiveModel
NSDictionary *userInfo = @{HoriXMPPNotificationKey : @{HoriXMPPNotificationModelIDKey : @"模型中的id"}};
9、HoriXMPPSmartCommunityIntegrationNotification
对应模型有:HoriXMPPSmartCommunityIntegrationModel
NSDictionary *userInfo = @{HoriXMPPNotificationKey : @{HoriXMPPNotificationModelIDKey : @"模型中的id"}};
10、HoriXMPPSmartCommunityMessageBodyTypeChangeOpeningMethod
NSDictionary *userInfo = @{HoriXMPPNotificationKey : @{HoriXMPPNotificationAppOpenTypeKey : appOpenType, HoriXMPPNotificationOrganizationSeqKey : organizationSeq}};
联享家XMPP消息种类
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// chat聊天,用户之间的通讯
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
=========================================================
发送文字/表情消息
=========================================================
<message xmlns="jabber:client"
id="C3E4601E-1EC6-4FF3-8846-FE02B06A063A"
to="92166641@cluster.openfire"
from="09991104@cluster.openfire"
type="chat">
<body>你好</body>
<subject>0</subject>
</message>
=========================================================
发送语音消息
=========================================================
<message xmlns="jabber:client"
id="93E9DB3B-099E-46A5-B5AD-B5B90DCBE006"
to="92166641@cluster.openfire"
from="09991104@cluster.openfire"
type="chat">
<body>
http://tt.hori-gz.com:8090/upload/files/20180821/201808211418489781070.amr;4
</body>
<subject>1</subject>
</message>
=========================================================
发送图片的消息
=========================================================
<message xmlns="jabber:client"
id="FDEEBC8F-8487-4B98-A8A9-699CC116AE39"
to="92166641@cluster.openfire"
from="09991104@cluster.openfire"
type="chat">
<body>
http://tt.hori-gz.com:8090/upload/images/20180821/201808211201106310917_thumbnail.jpg;http://tt.hori-gz.com:8090/upload/images/20180821/201808211201106310917.jpg
</body>
<subject>2</subject>
</message>
=========================================================
离线消息
=========================================================
<message id="3A46C707-A4CE-4681-8FFE-17A5F37312D2"
to="09991104@cluster.openfire"
from="emnthwgq@cluster.openfire/lxj_u"
type="chat">
<body>一二三</body>
<subject>0</subject>
<delay xmlns="urn:xmpp:delay" from="cluster.openfire" stamp="2018-08-21T06:53:53.936Z"/>
</message>
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// 100开头消息为运营商消息或原医疗系统消息
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
=========================================================
1000005:运营商消息push
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1000005","content":{"yyTitle":"010001","yyTime":"2017-09-23 18:40:30","yyCoverPic":"","introduce":"","yyType":2,"yyContent":"物流通知填写地址商家已审核通过你发起的xxx(指商品名称)售后申请,请将商品及时邮寄到如下地址:广州大学城长洲岛5号唐军鹏,电话:13631285249","targetUrl":"","url":"https://www.lxj-gz.com/chims/h5/yyMsg.html?id=xxx","messageId":"09896"}}
</body>
</message>
=========================================================
1000090:BBS中点赞/评论等互动消息
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1000090","content":{"picturePath":null,"userNick":"LXJemnthwgq","createTime":"2018-09-03 12:02:38","backContent":"评论1234","userAccount":"emnthwgq","operateType":"3","userHeadPicUrl":"http://tt.hori-gz.com:8090/upload/images/20180529/201805291359424602499.jpg","current_back_id":"153594735819fcebed25e2174da79620","channelType":"2","id":"15359473374942e9ce2ba2e7495896e5","stContent":"测测试试","back_id":""}}
</body>
</message>
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1000090","content":{"picturePath":null,"userNick":"LXJemnthwgq","createTime":"2018-09-03 12:06:29","backContent":"该评论已删除","userAccount":"emnthwgq","operateType":"4","userHeadPicUrl":"http://tt.hori-gz.com:8090/upload/images/20180529/201805291359424602499.jpg","current_back_id":"153594735819fcebed25e2174da79620","channelType":"2","id":"15359473374942e9ce2ba2e7495896e5","stContent":"测测试试","back_id":""}}
</body>
</message>
=========================================================
1000100:用户获取到积分后给app推送的提示消息
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1000100","content":{"appActionCode":"010001","appActionName":"注册成功","score":5,"scoreType":1}}
</body>
</message>
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// 101开头消息对讲消息
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
=========================================================
1010001:解除绑定
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010001","householdSerial":"8320000110100101012050","content":"您的账号与贵族山庄测试A区测试1单元1205房已解除关联"}
</body>
</message>
=========================================================
1010002:新增绑定
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010002","householdSerial":"8320000110100101012050","content":"您的账号与贵族山庄测试A区测试1栋测试1单元1205房已关联,APP门禁权限到期时间:不限。"}
</body>
</message>
=========================================================
1010003:申请成为住房分机
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010003","content":{"applyType":"1","applyAccount":"16020182002","applyContent":"川川","id":"153507637903347d44b5e6cb4d05b891","householdAccount":"18170957509","userType":"2","householdAddress":"","applyDate":"2018-08-24 10:06","householdSerial":""}}
</body>
</message>
=========================================================
1010004:分号推送加入住房操作结果
=========================================================
<message from="cluster.openfire" to="emnthwgq@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010004","content":{"msgContent":"您已加入贵族山庄测试A区测试1栋测试1单元0102B房,成为分机","isView":"0","id":"1535075913847711a408a3a340ac98ed","receiverAccount":"16020182002","sendTime":"2018-08-24 09:58"}}
</body>
</message>
=========================================================
1010005:主号拒绝申请
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010005","content":{"msgContent":"160****2002 已拒绝您的分号申请","isView":"0","id":"15350809325081d51ca9886a4bff8932","receiverAccount":"18170957509","sendTime":"2018-08-24 11:22"}}
</body>
</message>
=========================================================
1010006:账号启动、停用消息
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010006","householdSerial":"5130004324234234435435","content":"云对讲小区01A区1栋1单元0805房,云对讲小区02A区2栋2单元0101房,15645451515已回复门禁","sendTime":"2014-5-5 11:29","valid":"1","validDate":"不限""}
</body>
</message>
=========================================================
1010007:门口机、管理机等硬件终端上下线
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010007","content":{"callNumber":"+8683900011A01001010000001","terminalSerial":"01100300HL1000100201511250000006","terminalName":"" 1区1栋1单元2号门禁控制器","terminalType":"A","areaName":"测试小区","alarmTime":"2016-5-5 11:29:30","onLineStatus":"1"}}
</body>
</message>
=========================================================
1010008:账号有效期变更
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010008","householdSerial":"514435435345345345435","validDate":"不限","content":"海富花园1区1栋1单元101房主机号 13611112222,APP门禁权限到期时间更新为2016-12-31 24:00。","sendTime":"2014-5-5 11:29"}
</body>
</message>
=========================================================
1010009:主机变更
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010009","content":"您的账号已变更为海富花园1栋1区1单元101房的主号,请重新登录。","sendTime":"2014-5-5 11:29"}
</body>
</message>
=========================================================
1010010:声波密钥变更
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010010","sendTime":"2014-5-5 11:29"}
</body>
</message>
=========================================================
1010011:APP主号推送拒绝邀请成为分号消息
=========================================================
<message from="cluster.openfire" to="emnthwgq@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010011","content":"父亲 拒绝成为[贵族山庄测试A区测试1栋测试1单元1025房]的家属。"}
</body>
</message>
=========================================================
1010012:APP主号推送同意邀请成为分号消息
=========================================================
<message from="cluster.openfire" to="emnthwgq@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010012","content":"陈江川 已同意您的邀请称为[贵族山庄测试A区测试1栋测试1单元1205房]的家属。"}
</body>
</message>
=========================================================
1010013:小区开门方式变更
=========================================================
<message from="cluster.openfire" to="emnthwgq@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010013","appOpenType":"1","organizationSeq":"44000044","sendTime":"2016-12-12 12:12"}
</body>
</message>
=========================================================
1010014:sip通话记录
=========================================================
<message from="cluster.openfire"
to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1010014","content":{"duration":"0","terminalName":"","answerAccount":"","areaName":"","answerType":"","organizationSeq":"4400100001","callTime":"2018-08-28 10:11","callType":"1","isAnswer":"0"},"sendTime":"2018-08-28 10:11:12"}
</body>
</message>
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// 102开头消息为物业消息
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
=========================================================
1020001:物业公告
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1020001","content":{"msgPageUrl":"http://tt.hori-gz.com:8090/tsms/servlet/showMsgContent?id=153500719472f1490a143863488d0425","publishTime":"2018-08-31 10:11","areaName":"合立测试小区","subType":"通知","msgRemark":"<p>不要不要测试20180927不要不要测试20180927<\/p>","id":"153500719472f1490a143863488d0425","title":"不要不要测试20180927"}}
</body>
</message>
=========================================================
1020002:上门服务订单任务
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1020002","content":{"id":"14264774724590e7f60f15d24c550002","title":"上门服务","msgRemark":"维修内容","publishTime":"2018-8-31 11:24"}}
</body>
</message>
=========================================================
1020003:投诉维修单任务
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1020003","content":{"id":"14264774724590e7f60f15d24c550003","title":"物业投诉","msgRemark":"投诉内容","publishTime":"2018-8-31 14:20"}}
</body>
</message>
=========================================================
1020004:水费账单
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1020004","content":{"id":"14264774724590e7f60f15d24c020004","title":"7月水费", "subType":"账单通知","msgRemark":"本月账单费用为560元,详情请点击","publishTime":"2018-8-31 11:17","year":"2018","month":"7"}}
</body>
</message>
=========================================================
1020005:电费账单
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1020005","content":{"id":"14264774724590e7f60f15d24c5520005", "title":"8月电费", "subType":"账单通知","msgRemark":"本月账单费用为888元,详情请点击","publishTime":"2018-8-31 11:24","year":"2018","month":"8"}}
</body>
</message>
=========================================================
1020006:燃气费账单
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1020006","content":{"id":"14264774724590e7f60f15d24c550006", "title":"8月燃气费", "subType":"账单通知","msgRemark":"本月账单费用为888元,详情请点击","publishTime":"2018-8-31 11:24","year":"2018","month":"8"}}
</body>
</message>
=========================================================
1020007:物业管理费账单
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1020007","content":{"id":"14264774724590e7f60f15d24c550007", "title":"8月物业费", "subType":"账单通知","msgRemark":"本月账单费用为888元,详情请点击","publishTime":"2018-8-31 11:24","year":"2018","month":"8"}}
</body>
</message>
=========================================================
1020008:未支付上门服务订单
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1020008","content":{"id":"14264774724590e7f60f15d24c550008", "title":"上门服务", ,"msgRemark":"您有一个未支付的订单,请点击查看","publishTime":"2018-8-31 11:24"}}
</body>
</message>
=========================================================
1020009:催缴
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1020009","content":{"id":"14264774724590e7f60f15d24c550009", "title":"物业催缴", ,"msgRemark":"缴费缴费","publishTime":"2018-8-31 11:24"}}
</body>
</message>
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// 103开头消息为商城消息
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
=========================================================
1030001:团购券自动过期
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1030001","content":{"id":"12e12312","title":"订单通知","msgRemark":"尊敬的联享家用户,由于您所购买的[棉花糖]团购券已过期,我们将尽快为您退款","publishTime":"2018-09-01 09:53"}}
</body>
</message>
=========================================================
1030002:福分活动消息
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1030002","content":{"id":"8978687687","title":"活动通知","activityState":"1","beginDate":"2018-09-01 10:00:00","endDate":"2018-09-07 10:00:00","publishTime":"2018-09-01 09:53"}}
</body>
</message>
=========================================================
1030003:商品有关的推送消息
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1030003","content":{"title":"商品通知","msgMark":"xx商品很好用的哟","publishTime":"2018-09-01 10:04:40"}}
</body>
</message>
=========================================================
1030004:订单有关的推送消息
=========================================================
<message from="cluster.openfire" to="09991104@cluster.openfire/lxj_u">
<subject></subject>
<body>
{"type":"1030004","content":{"title":"订单通知","msgMark":"您的订单123已经付款","publishTime":"2018-09-01 10:05:34"}}
</body>
</message>