Explorar o código

优化;短信发送失败记录日志

萤火科技 %!s(int64=4) %!d(string=hai) anos
pai
achega
908ae37613
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/common/library/sms/Driver.php

+ 2 - 1
app/common/library/sms/Driver.php

@@ -80,7 +80,8 @@ class Driver
             'acceptPhone' => $acceptPhone,
             'templateCode' => $templateCode,
             'templateParams' => $templateParams,
-            'sendStatus' => $sendStatus,
+            'sendStatus' => $sendStatus ? 'true' : 'false',
+            'sendErrMsg' => $this->getError(),
         ]);
         // 存在异常时抛错
         $sendStatus === false && throwError($this->getError());