Wayne 9 months ago
commit 7e8e7f670a
  1. 2
      app/api/controller/Store.php

@ -170,7 +170,7 @@ class Store extends Controller
public function getStorePriceInfo(int $type): Json public function getStorePriceInfo(int $type): Json
{ {
$storeid = request()->header()['storeid']; $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 = []; $data = [];
$arr = []; $arr = [];
foreach ($list as $value) { foreach ($list as $value) {

Loading…
Cancel
Save