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

群发消息接口 send_ignore_reprint 参数,无法设置 #1379

Closed
oyrm opened this issue Oct 20, 2018 · 1 comment
Closed

群发消息接口 send_ignore_reprint 参数,无法设置 #1379

oyrm opened this issue Oct 20, 2018 · 1 comment

Comments

@oyrm
Copy link

oyrm commented Oct 20, 2018

我用的环境

PHP 版本:7.2
overtrue/wechat 版本:4.0
是否使用了框架?框架名称:laravel5.5

问题及现象

群发接口 send_ignore_reprint 参数,开发者可以对群发接口的 send_ignore_reprint 参数进行设置,指定待群发的文章被判定为转载时,是否继续群发。

MP群发接口数据格式:
{
"filter":{
"is_to_all":false,
"tag_id":2
},
"mpnews":{
"media_id":"123dsdajkasd231jhksad"
},
"msgtype":"mpnews",
"send_ignore_reprint":0
}

easywechat文档:
$app->broadcasting->sendMessage(Message $message, array | int $to = null);
看代码没有找到传入send_ignore_reprint 或者自定义参数的方法。

不知道是我没找到设置的方法还目前版本没做这个支持,谢谢。

@overtrue
Copy link
Collaborator

$app->broadcasting->sendMessage($message, $to, $attributes);

放到 $attributes 里即可。

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

2 participants