easy-swoole / wechat

Wechat based on easyswoole.
82 stars 27 forks source link

企业微信发送文本, message: (40008) invalid message type #147

Open teg1c opened 3 years ago

teg1c commented 3 years ago
....
$messenger = $work->messenger;
$messenger->toUser('easyswoole')->send('你的请假单(单号:1928373)已经审批通过!');

Response:

Fatal error: Uncaught EasySwoole\WeChat\Kernel\Exceptions\HttpException: request wechat error, message: (40008) invalid message type],

我用 overtrue/wechat 的包没问题

teg1c commented 3 years ago

看了一下 src/Kernel/Messages/Message.php 这个类的 transformForJsonRequest 方法有问题,并没有吧 msgtype merge 进去

XueSiLf commented 3 years ago

好的,感谢反馈。这边晚点处理。

ld0574 commented 1 year ago

处理了没有,我还是报错的 @XueSiLf request wechat error, message: (40008) invalid message type,more info at https://open.work.weixin.qq.com/devtool/query?e=40008

XueSiLf commented 1 year ago

处理了没有,我还是报错的 @XueSiLf request wechat error, message: (40008) invalid message type,more info at https://open.work.weixin.qq.com/devtool/query?e=40008

我处理好了 这里到时通知你 你记得关注下