From c875ff6df12035199c968db6fe112227fd10ddb0 Mon Sep 17 00:00:00 2001 From: Yu Wei Chang Date: Tue, 7 Dec 2021 01:39:28 +0800 Subject: [PATCH] fix queryAccountPoint, cancelMessageStatus api endpoint --- src/API.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/API.php b/src/API.php index 4ddc650..4e4d3f8 100644 --- a/src/API.php +++ b/src/API.php @@ -139,8 +139,8 @@ public function sendLongMessage(Message\LongMessage $message) public function queryAccountPoint() { $request = $this->client->newRequest( - 'GET', - $this->client->buildUriWithQuery('/SmQueryGet.asp') + 'POST', + $this->client->buildUriWithQuery('/api/mtk/SmQuery') ); $response = $this->client->sendRequest($request); @@ -181,8 +181,8 @@ public function queryMessageStatus(array $ids) public function cancelMessageStatus(array $ids) { $request = $this->client->newRequest( - 'GET', - $this->client->buildUriWithQuery('/SmCancel.asp', ['msgid' => implode(",", $ids)]) + 'POST', + $this->client->buildUriWithQuery('/api/mtk/SmCancel', ['msgid' => implode(",", $ids)]) ); $response = $this->client->sendRequest($request);