Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
teg1c opened this issue Jul 23, 2021 · 4 comments
Open

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

teg1c opened this issue Jul 23, 2021 · 4 comments

Comments

@teg1c
Copy link

teg1c commented Jul 23, 2021

....
$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
Copy link
Author

teg1c commented Jul 23, 2021

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

@XueSiLf
Copy link
Collaborator

XueSiLf commented Aug 25, 2021

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

@ld0574
Copy link

ld0574 commented Nov 6, 2023

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

@XueSiLf
Copy link
Collaborator

XueSiLf commented Nov 7, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants