easy-swoole / wechat

Wechat based on easyswoole.
82 stars 28 forks source link

根据文档要求,添加模板需要在请求头中加入:content-type: application/json #156

Closed browningweb closed 2 years ago

browningweb commented 2 years ago

https://github.com/easy-swoole/wechat/blob/cee56dd04f66109171ebf3009ccb52d5c177313d/src/MiniProgram/SubscribeMessage/Client.php#L62

根据微信 添加模板文档,需要在请求头中加入:content-type: application/json,否则会报:200014 missing parameter tid

https://github.com/easy-swoole/wechat/blob/cee56dd04f66109171ebf3009ccb52d5c177313d/src/MiniProgram/SubscribeMessage/Client.php#L87

删除同样需要加请求头。

XueSiLf commented 2 years ago

好的,感谢反馈,这边稍后就修复。

XueSiLf commented 2 years ago

此问题已修复 #157