|
@@ -3265,14 +3265,10 @@ class NewsService implements NewsServiceInterface
|
|
}elseif ($web['status'] != 1){
|
|
}elseif ($web['status'] != 1){
|
|
return Result::error("网站已经关闭", 0);
|
|
return Result::error("网站已经关闭", 0);
|
|
}
|
|
}
|
|
- if (isset($data['all_route']) && !empty($data['all_route'])) {
|
|
|
|
$whiteRouterInfo = WhiteRouter::whereJsonContains("website_id", $data['website_id'])->where('router_url', $data['all_route'])->first();
|
|
$whiteRouterInfo = WhiteRouter::whereJsonContains("website_id", $data['website_id'])->where('router_url', $data['all_route'])->first();
|
|
- if (empty($whiteRouterInfo)) {
|
|
|
|
- return Result::error("非法路径地址", 0);
|
|
|
|
- } else {
|
|
|
|
- return Result::success($whiteRouterInfo->toArray());
|
|
|
|
|
|
+ if (!empty($whiteRouterInfo)) {
|
|
|
|
+ return Result::success($whiteRouterInfo->toArray());
|
|
}
|
|
}
|
|
- } else {
|
|
|
|
// 验证栏目路由
|
|
// 验证栏目路由
|
|
$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'])
|
|
@@ -3388,7 +3384,7 @@ class NewsService implements NewsServiceInterface
|
|
} else {
|
|
} else {
|
|
return Result::success($pinyin);
|
|
return Result::success($pinyin);
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 招工招聘 - 获取推荐职位
|
|
* 招工招聘 - 获取推荐职位
|