|
@@ -3265,10 +3265,12 @@ class NewsService implements NewsServiceInterface
|
|
}elseif ($web['status'] != 1){
|
|
}elseif ($web['status'] != 1){
|
|
return Result::error("网站已经关闭", 0);
|
|
return Result::error("网站已经关闭", 0);
|
|
}
|
|
}
|
|
- $whiteRouterInfo = WhiteRouter::whereJsonContains("website_id", $data['website_id'])->where('router_url', $data['all_route'])->first();
|
|
|
|
|
|
+ if (isset($data['other_route']) && !empty($data['other_route'])) {
|
|
|
|
+ $whiteRouterInfo = WhiteRouter::whereJsonContains("website_id", $data['website_id'])->where('router_url', $data['other_route'])->first();
|
|
if (!empty($whiteRouterInfo)) {
|
|
if (!empty($whiteRouterInfo)) {
|
|
return Result::success($whiteRouterInfo->toArray());
|
|
return Result::success($whiteRouterInfo->toArray());
|
|
}
|
|
}
|
|
|
|
+ }
|
|
// 验证栏目路由
|
|
// 验证栏目路由
|
|
$last_category = WebsiteCategory::where('website_id', $data['website_id'])
|
|
$last_category = WebsiteCategory::where('website_id', $data['website_id'])
|
|
->where('aLIas_pinyin', $data['last_route'])
|
|
->where('aLIas_pinyin', $data['last_route'])
|