...
|
...
|
@@ -110,12 +110,12 @@ class ProductController extends HomeBaseController{ |
|
|
$data = Db::name('portal_category_post') -> where('category_id',$id) -> select();
|
|
|
foreach ($data as $key => $value) {
|
|
|
$wzs = Db::name('portal_post') -> where('id',$value['post_id']) -> where('delete_time',0) -> find();
|
|
|
if($wzs['delete_time'] == 0){
|
|
|
if($wzs != null){
|
|
|
$arr[] = $wzs;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
dump($arr);die;
|
|
|
|
|
|
return json_encode($arr);
|
|
|
|
|
|
}
|
...
|
...
|
|