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

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

@@ -165,7 +165,7 @@ class StoreProduct extends BaseController
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($params['mer_id']){
168
+        } elseif(isset($params['mer_id']) && $params['mer_id']){
169
             $merId=$params['mer_id'];
169
             $merId=$params['mer_id'];
170
         } else{
170
         } else{
171
             $merId=321;
171
             $merId=321;