mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
[更新]修改公众号消息处理
This commit is contained in:
parent
1c60f56298
commit
7586860d92
@ -97,7 +97,7 @@ class Push
|
|||||||
}
|
}
|
||||||
// text,event,image,location
|
// text,event,image,location
|
||||||
if (method_exists($this, ($method = $this->receive['MsgType']))) {
|
if (method_exists($this, ($method = $this->receive['MsgType']))) {
|
||||||
return $this->$method();
|
$this->$method();
|
||||||
}
|
}
|
||||||
return 'success';
|
return 'success';
|
||||||
}
|
}
|
||||||
@ -237,7 +237,6 @@ class Push
|
|||||||
protected function sendMessage($type, $data)
|
protected function sendMessage($type, $data)
|
||||||
{
|
{
|
||||||
$msgData = ['touser' => $this->openid, 'msgtype' => $type, "{$type}" => $data];
|
$msgData = ['touser' => $this->openid, 'msgtype' => $type, "{$type}" => $data];
|
||||||
p($msgData);
|
|
||||||
return WechatService::custom()->send($msgData);
|
return WechatService::custom()->send($msgData);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user