Преглед изворни кода

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

萤火科技 пре 4 година
родитељ
комит
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());