Closed dudashuang closed 2 years ago
EasyWeChat\Kernel\Messages\MiniProgramPage
EasyWeChat\Work\Message\Messager
send
agent_id
// vendor/overtrue/wechat/src/Work/Message/Messenger.php:164 public function send($message = null) { if ($message) { $this->message($message); } if (empty($this->message)) { throw new RuntimeException('No message to send.'); } if (is_null($this->agentId)) { throw new RuntimeException('No agentid specified.'); } $message = $this->message->transformForJsonRequest(array_merge([ 'agentid' => $this->agentId, 'safe' => intval($this->secretive), ], $this->to)); $this->secretive = false; return $this->client->send($message); }
强烈关注,在V5出来之前有没有替代方案?
我用的环境
问题及现象
EasyWeChat\Kernel\Messages\MiniProgramPage
小程序通知模板只考虑了公众号消息,没有适配企业微信,参数不一致。EasyWeChat\Work\Message\Messager
中的send
方法校验了agent_id
,但是企业微信发送小程序通知的时候是没有应用id的。