wesmiler hai 3 meses
pai
achega
6ffe53b5e2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/Api/OrderService.php

+ 1 - 1
app/Services/Api/OrderService.php

@@ -560,7 +560,7 @@ class OrderService extends BaseService
         }
 
         DB::beginTransaction();
-        $this->model->where(['id' => $id])->update(['status' => '4', 'update_time' => time()]);
+        $this->model->where(['id' => $id])->update(['status' => 4, 'update_time' => time()]);
 
         // 商家订单数据统计
         $updateData = ['order_count' => DB::raw('order_count+1'), 'order_total' => DB::raw("order_total + {$orderTotal}")];