family пре 1 година
родитељ
комит
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
     public function recommendList()
162
     public function recommendList()
163
     {
163
     {
164
+        $params= $this->request->params(['mer_id']);
164
         [$page, $limit] = $this->getPage();
165
         [$page, $limit] = $this->getPage();
165
         if($this->source=='yhc' && $this->merId){
166
         if($this->source=='yhc' && $this->merId){
166
             $merId=$this->merId;
167
             $merId=$this->merId;
167
-        }else{
168
+        } elseif($params['mer_id']){
169
+            $merId=$params['mer_id'];
170
+        } else{
168
             $merId=321;
171
             $merId=321;
169
         }
172
         }
170
         return app('json')->success($this->repository->recommend($this->userInfo, $merId, $page, $limit, null, 'create_time', 5));
173
         return app('json')->success($this->repository->recommend($this->userInfo, $merId, $page, $limit, null, 'create_time', 5));