Browse Source

异常处理

zengjun 4 năm trước cách đây
mục cha
commit
b9320f3562
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/Http/Controllers/OrderDetailController.php

+ 1 - 1
app/Http/Controllers/OrderDetailController.php

@@ -33,6 +33,6 @@ class OrderDetailController extends Controller
         $order_detail = OrderDetail::query()->where('order_id',$request->input('order_id'))->first();
 
         $order_detail->update(['is_new_rejecting' => '已处理']);
-        return ['success' => success,'data' => $order_detail];
+        return ['success' => true,'data' => $order_detail];
     }
 }