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