Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaoming committed Jan 3, 2020
1 parent 6889b2c commit 8071c29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Bryce/OpenApi/Sms.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public function send(string $mobile)

$res = Tools::dealCurlResult($res);

if ($res->status == Error::_OK) {
if ($res->code == Error::_OK) {
return true;
} else {
throw new SmsException($res->msg, $res->status);
throw new SmsException($res->msg, $res->code);
}
}

Expand Down

0 comments on commit 8071c29

Please sign in to comment.