|
@@ -2134,6 +2134,22 @@ class WebsiteService implements WebsiteServiceInterface
|
|
|
}
|
|
|
return Result::success($result);
|
|
|
}
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 获取网站底部信息
|
|
|
+ * @param array $data
|
|
|
+ */
|
|
|
+ public function getWebsiteRoute(array $data): array
|
|
|
+ {
|
|
|
+ $website = Website::where('id',$data['website_id'])->where('status',1)->first();
|
|
|
+ if (empty($website)) {
|
|
|
+ return Result::error("暂无该网站",0);
|
|
|
+ }
|
|
|
+ // return Result::success($data);
|
|
|
+ $result = WebsiteCategory::where('website_id',$data['website_id'])->where('aLIas_pinyin',$data['pinyin'])->first(['category_id']);
|
|
|
+ if (empty($result)) {
|
|
|
+ return Result::error("暂无此导航",0);
|
|
|
+ }
|
|
|
+ return Result::success($result['category_id']);
|
|
|
+ }
|
|
|
|
|
|
}
|