From a5b1d332a37bdba43d7c106bde69e2fc52a029e5 Mon Sep 17 00:00:00 2001 From: lqmac Date: Thu, 29 Feb 2024 16:00:41 +0800 Subject: [PATCH] 1 --- app/api/controller/Store.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/controller/Store.php b/app/api/controller/Store.php index daa2844d..4ea19fc0 100644 --- a/app/api/controller/Store.php +++ b/app/api/controller/Store.php @@ -170,7 +170,7 @@ class Store extends Controller public function getStorePriceInfo(int $type): Json { $storeid = request()->header()['storeid']; - $list = PriceSet::where('store_id',$storeid)->where('type', $params['type'] ?? 0)->field('category,code,min,max,add_price_rate')->group("category, min")->select()->toArray(); + $list = PriceSet::where('store_id',$storeid)->where('type', $type)->field('category,code,min,max,add_price_rate')->group("category, min")->select()->toArray(); $data = []; $arr = []; foreach ($list as $value) {