|
|
|
@ -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(); |
|
|
|
|