fix: stabilize weibo insight ui and cookie flow

This commit is contained in:
Jason
2026-04-12 23:36:20 +08:00
parent 6225df296c
commit 24eceef6cb
3 changed files with 146 additions and 8 deletions

View File

@@ -184,7 +184,9 @@ class WeiboService {
try {
const uid = normalizeWeiboUid(uidInput)
const cookie = normalizeWeiboCookieInput(cookieInput)
if (!cookie) return { success: false, error: '请先填写有效的微博 Cookie' }
if (!cookie) {
return { success: true, uid }
}
const timeline = await this.fetchTimeline(uid, cookie)
const firstItem = timeline.data?.list?.[0]