Repository navigation
收款人和站长可以改赞助的留言和是否匿名 - #340
Merged
Merged
Conversation
有群友登记时留言没填对,上墙后只能删不能改。改留言仍由收款人和站长来做,这样墙上的留言都经收款人看过(总体设计 §8.21)。
- 后台每条记录上直接改留言,清空保存就是删除,替换原来的"删除留言"按钮
- 接口 PATCH /admin/sponsorships/{id} 的 message 可以写新的留言,操作日志记下改前改后
有人登记时匿名选错了,本人在"我的赞助"里能改,但不一定知道,所以后台也能改。改成显示名字前弹窗确认是本人的意思,改动记操作日志(总体设计 §8.21)。 - 后台记录上的留言和实收金额按保存的值设 key,别人改过之后页面刷新就换成新值,不会拿旧值覆盖
保存后输入框按新值重建,请求期间还能输入的话,输入的内容会被保存的值盖掉。
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.
有群友登记赞助时留言没填对,或者匿名选错了。上墙后本人只能删留言,不能改;匿名本人能在"我的赞助"里改,但不一定知道。现在收款人和站长可以在后台直接改(总体设计 §8.21)。墙上的留言仍然都经收款人看过。
改了什么
PATCH /admin/sponsorships/{id}的message可以写新的留言(原来只能为null),新增anonymous;操作日志记下改前改后docs/design.md§8.21、docs/api.md同步对调用方的影响
只是放宽和新增字段,原来的请求照样有效。插件不调这个接口。
怎么验证的
pnpm check(396 个测试)、pnpm build、pnpm phone-check /admin/sponsor通过