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

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

Loading…
Cancel
Save