From c5b11642ece9183c1fd24ec21aafe8279ef2963e Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Tue, 23 Jan 2024 17:57:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/store/order/StoreProcessing.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controller/api/store/order/StoreProcessing.php b/app/controller/api/store/order/StoreProcessing.php index 66c7a46b..b5f1fc45 100644 --- a/app/controller/api/store/order/StoreProcessing.php +++ b/app/controller/api/store/order/StoreProcessing.php @@ -73,6 +73,7 @@ class StoreProcessing extends BaseController $arr[$key]['order_id'] = $order_id; $arr[$key]['source'] = 104; unset($arr[$key]['order_product_id']); + Db::name('store_product')->where('product_id',$value['product_id'])->dec('stock'); } // $financialRecordRepository->insertAll($finance); Db::name('store_order_product_other')->insertAll($arr);