浏览代码

add - 状态

liugc 11 月之前
父节点
当前提交
5297eeac80
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      app/api/logic/GoodsLogic.php

+ 1 - 0
app/api/logic/GoodsLogic.php

@@ -32,6 +32,7 @@ class GoodsLogic extends BaseLogic
         $platform_appid = $params['platform_appid']??0;
         $platform_appid = $params['platform_appid']??0;
         $platform_value = 0;
         $platform_value = 0;
         if($type == 'category'){
         if($type == 'category'){
+            $where[] = ['goods_status','=',1];
             $where[] = ['goods_category_id','=',$id];
             $where[] = ['goods_category_id','=',$id];
             $where[] = ['user_id','=',0];
             $where[] = ['user_id','=',0];
             $where[] = ['is_agent','=',0];
             $where[] = ['is_agent','=',0];