Skip to content

Commit

Permalink
手机区号加上前缀加号(+) (#320)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesse7866 authored Jan 4, 2022
1 parent 30b9484 commit e092cef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Gateways/QcloudGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function send(PhoneNumberInterface $to, MessageInterface $message, Config

unset($data['sign_name']);

$phone = ($to->getIDDCode() ?: "+86"). $to->getNumber();
$phone = !\is_null($to->getIDDCode()) ? strval($to->getUniversalNumber()) : $to->getNumber();
$params = [
'PhoneNumberSet' => [
$phone
Expand Down

0 comments on commit e092cef

Please sign in to comment.