From 692c66eebc2f4bcf28f48f15fb30bb321b2372c1 Mon Sep 17 00:00:00 2001 From: lzk Date: Fri, 18 Oct 2024 12:08:09 +0800 Subject: [PATCH] fix(route/weibo): Solve the problem that Weibo Radar rules cannot be generated correctly (#17144) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 修复配置 ACCESS_KEY 导致 healthcheck 失败的问题 * 修复微博Radar规则未正确生成的问题 * Revert "修复配置 ACCESS_KEY 导致 healthcheck 失败的问题" This reverts commit 6f81cbcdc966176297fbede4474ff8b37c702e6d. --------- Co-authored-by: linzhikang --- lib/routes/weibo/user.ts | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/routes/weibo/user.ts b/lib/routes/weibo/user.ts index bcf48479d..1938df7b1 100644 --- a/lib/routes/weibo/user.ts +++ b/lib/routes/weibo/user.ts @@ -30,7 +30,15 @@ export const route: Route = { }, radar: [ { - source: ['m.weibo.cn/u/:uid', 'm.weibo.cn/profile/:uid', 'weibo.com/u/:uid', 'www.weibo.com/u/:uid'], + source: ['m.weibo.cn/u/:uid', 'm.weibo.cn/profile/:uid'], + target: '/user/:uid', + }, + { + source: ['weibo.com/u/:uid'], + target: '/user/:uid', + }, + { + source: ['www.weibo.com/u/:uid'], target: '/user/:uid', }, ],