diff --git a/群发消息.md b/群发消息.md index 1cbf549..31cea01 100644 --- a/群发消息.md +++ b/群发消息.md @@ -19,7 +19,7 @@ $broadcast = new Broadcast($appId, $secret); + `$broadcast->send($message)->to();` 群发消息给所有粉丝 + `$broadcast->send($message)->to($groupId);` 群发消息给指定组 -+ `$broadcast->send($message)->to(array($openId1, $openId2));` 群发消息给指定用户,可以是一个用户,也可以使多个用户,但必须是数组 ++ `$broadcast->send($message)->to(array($openId1, $openId2));` 群发消息给指定用户,可以是一个用户,也可以是多个用户,但必须是数组 + `$broadcast->send($message)->preview($groupId);` 发送预览群发消息给指定的openid用户 + `$broadcast->send($message)->preview($wxname, Broadcast::PREVIEW_BY_WXH);` 发送预览群发消息给指定的微信号用户 + `$broadcast->delete($msgId);` 删除群发消息