Explorar el Código

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

萤火科技 hace 4 años
padre
commit
908ae37613
Se han modificado 1 ficheros con 2 adiciones y 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());