소스 검색

礼物上下架

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