fix(login): return real userId/nickname/redId in checkLoginStatus#3
Merged
Conversation
從 sidebar Me 連結解析真實 userID,取代 hardcoded fallback。 海外版 DOM 顯示 i18n "Me" 而非暱稱,故無法直接讀暱稱; userID 至少能標識實際登入帳號,要看暱稱可呼叫 getMyProfile。 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…s response - check_login_status 未登入時回傳 hint 引導 LLM 呼叫 get_login_qrcode - 強化 check_login_status / get_login_qrcode / search / list_feeds 的 description - 讓 LLM 在被風控擋下時知道該先檢查登入並引導使用者掃碼 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
問題
checkLoginStatus之前回傳 hardcodedusername: 'rednote-mcp'(fallback 常數),無法識別真實登入帳號。修復
Me連結/user/profile/<id>解析真實 userIDUserProfileAction.getMyProfileViaSidebar()取 nickname / redId驗證
{"isLoggedIn":true,"userId":"6246ed75...","nickname":"KK","redId":"4782487630","username":"KK"}Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com