Skip to content

Commit

Permalink
Fixed warning overtrue#339
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Jan 29, 2023
1 parent ae7cfb3 commit 7c0d08f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateways/AliyunGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function send(PhoneNumberInterface $to, MessageInterface $message, Config

$result = $this->get(self::ENDPOINT_URL, $params);

if ('OK' != $result['Code']) {
if (!empty($result['Code']) && 'OK' != $result['Code']) {
throw new GatewayErrorException($result['Message'], $result['Code'], $result);
}

Expand Down

0 comments on commit 7c0d08f

Please sign in to comment.