lizhen_gitee пре 1 година
родитељ
комит
cbb43b65b2
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      application/api/controller/Gift.php

+ 1 - 1
application/api/controller/Gift.php

@@ -31,7 +31,7 @@ class Gift extends Api
         $pageStart = ($page-1)*$pageNum;
 
         // 获取基本信息
-        $where = [];
+        $where = ['is_show'=>1];
         $type != '' && $where["type"] = $type;
 //        $giftList = $this->giftModel->where($where)->limit($pageStart,$pageNum)->select();
         $giftList = $this->giftModel->where($where)->order("sort","asc")->select();