Ken преди 4 дни
родител
ревизия
bd1f66f5ca
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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);
     }
 }