浏览代码

显示隐藏公告

jason 6 月之前
父节点
当前提交
b26fe1a308
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      application/api/controller/Announcement.php

+ 2 - 1
application/api/controller/Announcement.php

@@ -34,7 +34,8 @@ class Announcement extends Api
     {
         $info = (new AnnouncementModel)
             ->where('id', $id)
-            ->where('status', 1)->where('to_lang', $this->lan)
+            //->where('status', 1)
+            ->where('to_lang', $this->lan)
             ->field('id,img_url,to_lang,createtime,title,introduction,body')
             ->find();
         if(empty($info)){