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

+ 1 - 1
app/Http/Controllers/Api/V1/OrderController.php

xqd
@@ -690,7 +690,7 @@ class OrderController extends AuthController
         ]);
         $user = $this->user;
 
-        $order = Order::with(['orderPatient'])->where('id', $req['order_id'])->first();
+        $order = Order::with(['orderPatient'])->where('id', $req['order_id'])->first()->toArray();
         if ($order['order_status'] == 4) {
             return out(null, 10001, '订单已完成,不能取消了');
         }