From e092cefdca017117cc12f2f27c83ceb9341ba0ee Mon Sep 17 00:00:00 2001 From: Jesse Chen Date: Tue, 4 Jan 2022 15:01:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8C=BA=E5=8F=B7=E5=8A=A0?= =?UTF-8?q?=E4=B8=8A=E5=89=8D=E7=BC=80=E5=8A=A0=E5=8F=B7=EF=BC=88+?= =?UTF-8?q?=EF=BC=89=20(#320)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Gateways/QcloudGateway.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gateways/QcloudGateway.php b/src/Gateways/QcloudGateway.php index b4fdb3b..d0a298d 100644 --- a/src/Gateways/QcloudGateway.php +++ b/src/Gateways/QcloudGateway.php @@ -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