From d8d68636d02d1c51d0edd7aaa854813f6747bf8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?= Date: Fri, 8 Nov 2019 18:32:21 +0800 Subject: [PATCH] Fixed #1722 --- src/OfficialAccount/Broadcasting/Client.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OfficialAccount/Broadcasting/Client.php b/src/OfficialAccount/Broadcasting/Client.php index 7ab151354..6c2eee1d3 100644 --- a/src/OfficialAccount/Broadcasting/Client.php +++ b/src/OfficialAccount/Broadcasting/Client.php @@ -78,16 +78,18 @@ public function preview(array $message) * Delete a broadcast. * * @param string $msgId + * @param int $index * * @return \Psr\Http\Message\ResponseInterface|\EasyWeChat\Kernel\Support\Collection|array|object|string * * @throws \EasyWeChat\Kernel\Exceptions\InvalidConfigException * @throws \GuzzleHttp\Exception\GuzzleException */ - public function delete(string $msgId) + public function delete(string $msgId, int $index = 0) { $options = [ 'msg_id' => $msgId, + 'article_idx' => $index, ]; return $this->httpPostJson('cgi-bin/message/mass/delete', $options);