正在显示
1 个修改的文件
包含
4 行增加
和
0 行删除
@@ -114,6 +114,7 @@ class Index extends Frontend | @@ -114,6 +114,7 @@ class Index extends Frontend | ||
114 | 114 | ||
115 | $data = Db::name('savemes') | 115 | $data = Db::name('savemes') |
116 | ->where('id',$file_id) | 116 | ->where('id',$file_id) |
117 | + ->where('is_up',1) | ||
117 | ->find(); | 118 | ->find(); |
118 | if(!$data) { | 119 | if(!$data) { |
119 | $rotor = Db::name('rotor') | 120 | $rotor = Db::name('rotor') |
@@ -122,6 +123,7 @@ class Index extends Frontend | @@ -122,6 +123,7 @@ class Index extends Frontend | ||
122 | if(!$rotor) $this->error('数据不存在'); | 123 | if(!$rotor) $this->error('数据不存在'); |
123 | $data = Db::name('savemes') | 124 | $data = Db::name('savemes') |
124 | ->where('id',$rotor['savemes_id']) | 125 | ->where('id',$rotor['savemes_id']) |
126 | + ->where('is_up',1) | ||
125 | ->find(); | 127 | ->find(); |
126 | } | 128 | } |
127 | if($data['is_open'] == 2){ | 129 | if($data['is_open'] == 2){ |
@@ -312,6 +314,7 @@ class Index extends Frontend | @@ -312,6 +314,7 @@ class Index extends Frontend | ||
312 | $data = Db::name('savemes') | 314 | $data = Db::name('savemes') |
313 | ->where($where) | 315 | ->where($where) |
314 | ->where('type',$type) | 316 | ->where('type',$type) |
317 | + ->where('is_up',1) | ||
315 | ->field('id,user_id,type,name,share_url,images,video,content,is_open,is_up,createtime') | 318 | ->field('id,user_id,type,name,share_url,images,video,content,is_open,is_up,createtime') |
316 | ->order('createtime desc') | 319 | ->order('createtime desc') |
317 | ->select(); | 320 | ->select(); |
@@ -324,6 +327,7 @@ class Index extends Frontend | @@ -324,6 +327,7 @@ class Index extends Frontend | ||
324 | ->join('savemes b','a.savemes_id = b.id') | 327 | ->join('savemes b','a.savemes_id = b.id') |
325 | ->field('a.id,a.user_id as unloading_user_id,a.savemes_id,a.folder_id,b.user_id,b.share_url,b.name,b.type,b.images,b.video,b.content,b.is_open,b.is_up,a.createtime') | 328 | ->field('a.id,a.user_id as unloading_user_id,a.savemes_id,a.folder_id,b.user_id,b.share_url,b.name,b.type,b.images,b.video,b.content,b.is_open,b.is_up,a.createtime') |
326 | ->where('b.type',$type) | 329 | ->where('b.type',$type) |
330 | + ->where('b.is_up',1) | ||
327 | ->where($tiao) | 331 | ->where($tiao) |
328 | ->order('a.createtime desc') | 332 | ->order('a.createtime desc') |
329 | ->select(); | 333 | ->select(); |
-
请 注册 或 登录 后发表评论