Conversation
- 新字段 replaceCodes: string[],取代原 replaceCode: string - 发现目标课有余量时依次退选所有替换课程,全部成功后再抢课 - 任意一门退选失败则中止本次,等待下次轮询 - UI 输入框支持逗号分隔多个课程号,与 timeFilter/teacherFilter 风格一致 - README 同步更新换课说明与代码示例
Owner
|
@ceilf6/repo-guard |
Contributor
代码评审报告: feat: 支持退选多门替换课程(replaceCodes 字段)风险等级: 高 级联分析
问题发现
行级发现
Karpathy 评审
缺失覆盖
|
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.
变更内容
原来的换课功能
replaceCode只支持退选一门课,本 PR 将其扩展为支持多门。replaceCodes: string[](数组),取代原replaceCode: stringreplaceCodes中所有课程,全部成功后再抢课;任意一门失败则中止本次timeFilter/teacherFilter风格一致使用场景
想选 A 课,但需要同时腾出两门课的时间位置:
```javascript
{
code: '23306049',
priority: 1,
replaceCodes: ['23306047', '23306050'] // 依次退选这两门,再抢目标课
}
```
UI 面板替换课程输入框填写:
23306047,23306050测试
🤖 Generated with Claude Code