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) {