Sfoglia il codice sorgente

检验参数是否存在

family 1 anno fa
parent
commit
155f4e5dc3
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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;