|
@@ -2687,8 +2687,12 @@ private function fetchArticles($catId, $website, $limit, $isImageArticle = false
|
|
|
}
|
|
|
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)) {
|
|
|
+ $whiteRouterInfo = WhiteRouter::where("router_type", 1)->where('router_url', $data['other_route'])->first();
|
|
|
+ }
|
|
|
if (!empty($whiteRouterInfo)) {
|
|
|
- return Result::success($whiteRouterInfo->toArray());
|
|
|
+ return Result::success($whiteRouterInfo->toArray());
|
|
|
}
|
|
|
}
|
|
|
// 验证栏目路由
|