lqmac 9 months ago
parent 0d5b8e8631
commit a5b1d332a3
  1. 2
      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) {

Loading…
Cancel
Save