Ken hace 3 días
padre
commit
bd1f66f5ca
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app/Services/SmsService.php

+ 1 - 1
app/Services/SmsService.php

@@ -40,6 +40,6 @@ class SmsService
         if (!empty(static::$errors[$code])) {
             throw new Exception(static::$errors[$code], HttpStatus::CUSTOM_ERROR);
         }
-        if ($code != 0) throw new Exception("发送失败", HttpStatus::CUSTOM_ERROR);
+        if ($code != 0) throw new Exception("发送失败:$code", HttpStatus::CUSTOM_ERROR);
     }
 }