feat:新增帮助中心与问题反馈闭环 - #41
Merged
Merged
Conversation
There was a problem hiding this comment.
Review summary: one issue in the new anonymous help flow. The public feedback API still goes through the shared client path that sends any stored bearer token, so a stale session can turn an intended no-login submission/query into a 401 until auth is cleared.
| return request("/api/auth/me"); | ||
| } | ||
|
|
||
| export function createHelpFeedback(feedback) { |
There was a problem hiding this comment.
These public help calls still use request(), which automatically attaches Authorization whenever a token exists. That means a stale/expired token in localStorage can make the anonymous feedback form fail with 401 before it reaches the public endpoint.
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.
变更说明
为 UniSpeaking 增加帮助中心页面,并建立可供未登录用户使用的问题反馈闭环。
主要功能
帮助中心
问题反馈
后端与安全
新增路由
/help/help/category/:categoryId/help/article/:articleId/help/feedback新增接口
POST /api/feedbacksGET /api/feedbacks/lookup/{feedbackNo}GET /api/feedbacks/mineGET /api/admin/feedbacksPATCH /api/admin/feedbacks/{feedbackNo}数据库变更
V5__user_feedback.sqluser_feedback表及相关索引验证结果
git diff --check:通过本期未包含
建议重点检查
/help