Ken пре 6 дана
родитељ
комит
f876ab3c16
1 измењених фајлова са 1 додато и 3 уклоњено
  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 ($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();
             DB::commit();
         } catch (ValidationException $e) {
         } catch (ValidationException $e) {
             DB::rollBack();
             DB::rollBack();