Ken 1 Minggu lalu
induk
melakukan
7952701616
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app/Services/BackflowService.php

+ 1 - 1
app/Services/BackflowService.php

@@ -54,7 +54,7 @@ class BackflowService extends BaseService
         }
         $backflow->status = 1;
         if (false !== $backflow->save()) return true;
-        return false;
+        throw new Exception('发放失败', HttpStatus::CUSTOM_ERROR);
 
     }