lqmac 7 months ago
parent cdebd6e226
commit 7b9b49cfea
  1. 2
      app/api/controller/Goods.php
  2. 6
      config/allowapi.php

@ -110,6 +110,7 @@ class Goods extends Controller
}
switch ($goods->channel) {
case 'sn':
case 'sn1':
//$city = Region::withoutGlobalScope()->where('name', $params['city'])->where('level', 2)->find();
$district = Region::withoutGlobalScope()->where('name', $params['district'])->where('level', 3)->find();
$suning = new \app\common\service\Suning();
@ -122,6 +123,7 @@ class Goods extends Controller
break;
case 'jd':
case 'jd1':
case 'jd2':
$province = Region::withoutGlobalScope()->where('name', $params['province'])->where('level', 1)->find();
//$city = Region::withoutGlobalScope()->where('name', $params['city'])->where('level', 2)->find();
$district = Region::withoutGlobalScope()->where('name', $params['district'])->where('level', 3)->find();

@ -6,6 +6,12 @@
"/goods/export",
"/goods/collector",
"/goods/import",
"/goods/category",
"/goods/setRank",
"/goods/setInstore",
"/goods/setNew",
"/goods/setBrand",
"/goods/pool",
"/merchant/getMerchantGoodsCate",
"/merchant/setMerchantGoodsCate",
"/merchant/getShopCategory",

Loading…
Cancel
Save