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();