From 5b95bfcd498890a2c05f649bcbfe6589da76a878 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Mon, 22 Jul 2024 13:54:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E4=BA=86=E5=95=86?= =?UTF-8?q?=E5=93=81=E5=88=A0=E9=99=A4=E5=8A=9F=E8=83=BD=E5=92=8C=E8=B4=AD?= =?UTF-8?q?=E7=89=A9=E8=BD=A6=E5=88=97=E8=A1=A8API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../store_branch_product/StoreBranchProductController.php | 2 +- app/api/lists/order/CartList.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/admin/controller/store_branch_product/StoreBranchProductController.php b/app/admin/controller/store_branch_product/StoreBranchProductController.php index 8b97950eb..396b512ce 100644 --- a/app/admin/controller/store_branch_product/StoreBranchProductController.php +++ b/app/admin/controller/store_branch_product/StoreBranchProductController.php @@ -114,7 +114,7 @@ class StoreBranchProductController extends BaseAdminController public function delete() { $params = (new StoreProductValidate())->post()->goCheck('delete'); - StoreProductLogic::delete($params); + StoreBranchProductLogic::delete($params); return $this->success('删除成功', [], 1, 1); } diff --git a/app/api/lists/order/CartList.php b/app/api/lists/order/CartList.php index 5f6b1285f..877b335ad 100644 --- a/app/api/lists/order/CartList.php +++ b/app/api/lists/order/CartList.php @@ -65,9 +65,9 @@ class CartList extends BaseAdminDataLists implements ListsSearchInterface, Lists ->toArray(); $off_activity = Config::where('name', 'off_activity')->value('value'); $user_ship = User::where('id', $userId)->value('user_ship'); - $field='product_id,image,price,cost,store_name,unit,delete_time,vip_price'; + $field='product_id,image,price,cost,store_name,unit,delete_time,vip_price,top_cate_id'; if (in_array($user_ship, [4, 6, 7])) { - $field='product_id,image,cost price,cost,store_name,unit,delete_time,vip_price'; + $field='product_id,image,cost price,cost,store_name,unit,delete_time,vip_price,top_cate_id'; } $this->user_ship=$user_ship; $this->off_activity=$off_activity;