Skip to content

Commit

Permalink
fix queryAccountPoint, cancelMessageStatus api endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
ywchang0612 committed Dec 6, 2021
1 parent 916e8c4 commit c875ff6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c875ff6

Please sign in to comment.