作者 anyv
1 个管道 的构建 通过 耗费 0 秒

产品

... ... @@ -88,7 +88,7 @@ class ListController extends HomeBaseController
}
}
$zuixin = Db::name('portal_post') -> where('id','in',$arr3) -> order('create_time desc') -> limit(1) -> select();
$zuixin = Db::name('portal_post') -> where('id','in',$arr3) -> where('delete_time',0) -> order('create_time desc') -> limit(1) -> select();
$zzz = $zuixin[0];
$zzz['post_content'] = cmf_replace_content_file_url(htmlspecialchars_decode($zzz['post_content']));
... ...
... ... @@ -109,7 +109,11 @@ class ProductController extends HomeBaseController{
$id = input('post.id');
$data = Db::name('portal_category_post') -> where('category_id',$id) -> select();
foreach ($data as $key => $value) {
$arr[$key] = Db::name('portal_post') -> where('id',$value['post_id']) -> find();
$wzs = Db::name('portal_post') -> where('id',$value['post_id']) -> where('delete_time',0) -> find();
if($wzs['delete_time'] == 0){
$arr[$key] = $wzs;
}
}
return json_encode($arr);
... ...