Ver Fonte

礼物上下架

lizhen_gitee há 1 ano atrás
pai
commit
cbb43b65b2
1 ficheiros alterados com 1 adições e 1 exclusões
  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();