From e702f786fd7841c5c5fb4206290d67940adfc7e8 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 29 Jun 2024 17:38:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(config):=20=E6=9B=B4=E6=96=B0=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E7=9B=91=E5=90=AC=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../logic/user_product_storage/UserProductStorageLogic.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/common/logic/user_product_storage/UserProductStorageLogic.php b/app/common/logic/user_product_storage/UserProductStorageLogic.php index 27d4c9cff..1c15f4b3e 100644 --- a/app/common/logic/user_product_storage/UserProductStorageLogic.php +++ b/app/common/logic/user_product_storage/UserProductStorageLogic.php @@ -51,6 +51,7 @@ class UserProductStorageLogic extends BaseLogic if($find){ if($find['nums']<$v['nums']){ self::setError('库存不足'); + Db::commit(); return false; } $nums=bcsub($find['nums'],$v['nums']); @@ -69,6 +70,7 @@ class UserProductStorageLogic extends BaseLogic $data_log[$k]['status']=$status; }else{ self::setError('没有查询到该商品'); + Db::commit(); return false; } }