Skip to content

Commit

Permalink
处理接收消息的策略
Browse files Browse the repository at this point in the history
  • Loading branch information
周先生 authored and 周先生 committed Dec 27, 2018
1 parent 590ec93 commit 8a52ddf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Receiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private function setParams()
$this->msg['at_users'] = explode(',', $at_user);
}

if (in_array($this->msg['msgType'], [$this::MSG_WECHAT_PUSH, $this::MSG_CALLBACK])) {
if (in_array($this->msg['msgType'], [$this::MSG_WECHAT_PUSH, $this::MSG_CALLBACK, 0])) {
if (strpos($this->msg['content'], '加入了群聊') !== false) {
$this->msg['msgType'] = $this::MSG_INVITE_USER;//'邀请\"周先生??\"加入了群聊'
$str = strstr($this->msg['content'], '邀请"');
Expand Down

0 comments on commit 8a52ddf

Please sign in to comment.