Ken vor 6 Tagen
Ursprung
Commit
f876ab3c16
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  1. 1 3
      app/Http/Controllers/admin/PaymentOrder.php

+ 1 - 3
app/Http/Controllers/admin/PaymentOrder.php

@@ -42,9 +42,7 @@ class PaymentOrder extends Controller
                     if ($ret['code'] !== 0) throw new Exception($ret['msg'], HttpStatus::CUSTOM_ERROR);
                 }
             }
-            if ($count < 1) {
-                throw new Exception('操作失败', HttpStatus::CUSTOM_ERROR);
-            }
+            if ($count < 1) throw new Exception('操作失败', HttpStatus::CUSTOM_ERROR);
             DB::commit();
         } catch (ValidationException $e) {
             DB::rollBack();