|
@@ -1571,13 +1571,10 @@ class WebService implements WebServiceInterface
|
|
|
}
|
|
}
|
|
|
$result = [
|
|
$result = [
|
|
|
'content' => $foot_content,
|
|
'content' => $foot_content,
|
|
|
- 'commend_art' => $commend_art
|
|
|
|
|
|
|
+ 'commend_art' => $commend_art ?? []
|
|
|
];
|
|
];
|
|
|
}else{
|
|
}else{
|
|
|
- $result = WebsiteCategory::where('website_id', $data['website_id'])->where('category_id', $data['fcat_id'])->first();
|
|
|
|
|
- if (empty($fcatid)) {
|
|
|
|
|
- return Result::error("单页id错误", 0);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ $result = WebsiteCategory::where('website_id', $data['website_id'])->where('category_id', $data['fcat_id'])->first();
|
|
|
}
|
|
}
|
|
|
if (empty($result)) {
|
|
if (empty($result)) {
|
|
|
return Result::error("暂无底部导航内容", 0);
|
|
return Result::error("暂无底部导航内容", 0);
|