Ken hai 1 semana
pai
achega
7952701616
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);
 
     }