-
Notifications
You must be signed in to change notification settings - Fork 711
点击联系人Touch
HanSon edited this page Mar 16, 2017
·
1 revision
属性 | 类型 | 含义 |
---|---|---|
msg | array | 消息的原始数组 |
(
[MsgId] => 6627049133900361255
[FromUserName] => @28a357bdc0706af4d783a9a84133b4c9
[ToUserName] => @b9a6f284c6419226c66cb2758562ce3c9850779fe253b877d46a31e814cd3af0
[MsgType] => 51
[Content] => <msg><op id='2'><username>wxid_8vepeho7ognb22</username></op></msg>
[Status] => 3
[ImgStatus] => 1
[CreateTime] => 1484705057
[VoiceLength] => 0
[PlayLength] => 0
[FileName] =>
[FileSize] =>
[MediaId] =>
[Url] =>
[AppMsgType] => 0
[StatusNotifyCode] => 2
[StatusNotifyUserName] => @b9a6f284c6419226c66cb2758562ce3c9850779fe253b877d46a31e814cd3af0
[RecommendInfo] => Array
(
[UserName] =>
[NickName] =>
[QQNum] => 0
[Province] =>
[City] =>
[Content] =>
[Signature] =>
[Alias] =>
[Scene] => 0
[VerifyFlag] => 0
[AttrStatus] => 0
[Sex] => 0
[Ticket] =>
[OpCode] => 0
)
[ForwardFlag] => 0
[AppInfo] => Array
(
[AppID] =>
[Type] => 0
)
[HasProductId] => 0
[Ticket] =>
[ImgHeight] => 0
[ImgWidth] => 0
[SubMsgType] => 0
[NewMsgId] => 6627049133900361255
[OriContent] =>
)
$robot->server->setMessageHandler(function ($message){
// 手机点击聊天事件
if($message instanceof Touch){
Text::send($message->msg['ToUserName'], "我点击了此聊天");
}
});