|
@@ -188,7 +188,10 @@ class PostController extends Controller
|
|
|
foreach($floor[$key + 1]['data'] as $item){
|
|
|
if($item['type'] == 1){
|
|
|
$postType = Post::where('id', $item['link_content_id'])->value('type');
|
|
|
- if(!$postType) continue;
|
|
|
+ if(!$postType){
|
|
|
+ Log::info('banner类型为内容,未找到内容,被丢弃'.json_encode($item));
|
|
|
+ continue;
|
|
|
+ }
|
|
|
$bannerData[] = array_merge($item, ['post_type' => $postType]);
|
|
|
}else{
|
|
|
$bannerData[] = $item;
|