...
|
...
|
@@ -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);
|
...
|
...
|
|