family 1 год назад
Родитель
Сommit
856ee90ace
1 измененных файлов с 4 добавлено и 1 удалено
  1. 4 1
      app/controller/api/store/product/StoreProduct.php

+ 4 - 1
app/controller/api/store/product/StoreProduct.php

@@ -161,10 +161,13 @@ class StoreProduct extends BaseController
161 161
      */
162 162
     public function recommendList()
163 163
     {
164
+        $params= $this->request->params(['mer_id']);
164 165
         [$page, $limit] = $this->getPage();
165 166
         if($this->source=='yhc' && $this->merId){
166 167
             $merId=$this->merId;
167
-        }else{
168
+        } elseif($params['mer_id']){
169
+            $merId=$params['mer_id'];
170
+        } else{
168 171
             $merId=321;
169 172
         }
170 173
         return app('json')->success($this->repository->recommend($this->userInfo, $merId, $page, $limit, null, 'create_time', 5));