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

+ 3 - 3
app/controller/api/store/product/StoreProduct.php

@@ -161,12 +161,12 @@ class StoreProduct extends BaseController
161
      */
161
      */
162
     public function recommendList()
162
     public function recommendList()
163
     {
163
     {
164
-        $params= $this->request->params(['mer_id']);
164
+        $mer_id = (int)$this->request->param('mer_id',0);
165
         [$page, $limit] = $this->getPage();
165
         [$page, $limit] = $this->getPage();
166
         if($this->source=='yhc' && $this->merId){
166
         if($this->source=='yhc' && $this->merId){
167
             $merId=$this->merId;
167
             $merId=$this->merId;
168
-        } elseif(isset($params['mer_id']) && $params['mer_id']){
169
-            $merId=$params['mer_id'];
168
+        } elseif($mer_id){
169
+            $merId=$mer_id;
170
         } else{
170
         } else{
171
             $merId=321;
171
             $merId=321;
172
         }
172
         }