wesmiler 3 miesięcy temu
rodzic
commit
6ffe53b5e2
1 zmienionych plików z 1 dodań i 1 usunięć
  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}")];