Przeglądaj źródła

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

萤火科技 4 lat temu
rodzic
commit
908ae37613
1 zmienionych plików z 2 dodań i 1 usunięć
  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());