Просмотр исходного кода

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

萤火科技 4 лет назад
Родитель
Сommit
908ae37613
1 измененных файлов с 2 добавлено и 1 удалено
  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());