|
|
@@ -98,6 +98,7 @@ class Merchant extends BaseController
|
|
98
|
98
|
$domain = $this->request->domain();
|
|
99
|
99
|
$id=0;
|
|
100
|
100
|
$type439=true;
|
|
|
101
|
+ $is_commercetrade = 0;
|
|
101
|
102
|
if($name=='dingsheng'){
|
|
102
|
103
|
$id=486;
|
|
103
|
104
|
}else if($name=='jingpin'){
|
|
|
@@ -114,6 +115,10 @@ class Merchant extends BaseController
|
|
114
|
115
|
}
|
|
115
|
116
|
}else if($name=='fugou'){
|
|
116
|
117
|
$id=491;
|
|
|
118
|
+ }// 商贸区
|
|
|
119
|
+ else if($name=='commercetrade'){
|
|
|
120
|
+ $id=$this->merId;
|
|
|
121
|
+ $is_commercetrade = 1;
|
|
117
|
122
|
}
|
|
118
|
123
|
[$page, $limit] = $this->getPage();
|
|
119
|
124
|
if($params['pageNum']!=''){
|
|
|
@@ -132,7 +137,7 @@ class Merchant extends BaseController
|
|
132
|
137
|
$where['cate_id'] = $params['mer_cate_id'];
|
|
133
|
138
|
}
|
|
134
|
139
|
|
|
135
|
|
- return app('json')->success($this->repository->productList($id,$where, $page, $limit,$this->userInfo,$type439));
|
|
|
140
|
+ return app('json')->success($this->repository->productList($id,$where, $page, $limit,$this->userInfo,$type439,$is_commercetrade));
|
|
136
|
141
|
}
|
|
137
|
142
|
|
|
138
|
143
|
/**
|