wesmiler 5 dni temu
rodzic
commit
f55d4c2284

+ 1 - 1
app/Models/GoodsCategoryModel.php

@@ -35,7 +35,7 @@ class GoodsCategoryModel extends BaseModel
     {
         return $value ? get_image_path($value) : '';
     }
-    
+
     public function getTypeNameAttribute()
     {
         $types = ['',1=>'自营品专区',2=>'延时专区',3=>'深度体验',4=>'男神玩具',5=>'女神玩具',6=>'私密养护',7=>'情趣服饰(香水)',8=>'SM房趣(套装)',9=>'体感娃娃',10=>'周边产品'];

+ 1 - 1
app/Services/Common/GoodsCategoryService.php

@@ -55,7 +55,7 @@ class GoodsCategoryService extends BaseService
                 }
 
                 // 类型
-                if (isset($params['type']) && $params['type'] !== null && $params['type'] !== '') {
+                if (isset($params['type']) && $params['type'] !== null && $params['type']>0) {
                     $query->where('type', intval($params['type']));
                 }
             })