Repository navigation
Merge upstream/main while preserving fork customizations - #24
Merged
Merged
Conversation
…ntumNous#8287) DeepSeek Chat Completions rejects the developer role. Rewrite developer messages as system messages before sending them upstream; the Responses API accepts developer and is left unchanged.
* feat(payment): 易支付支持 RSA 签名方式 支付设置新增「签名方式」,可在 MD5 与 RSA 之间二选一。默认 MD5,已配置 MD5 的站点升级后行为不变。 - RSA 模式用商户私钥签名下单请求,跳转 /api/pay/submit;充值和订阅回调用平台公钥验签,MD5 签名的回调会被拒绝 - 保存时校验密钥:RSA 生效期间商户私钥和平台公钥必须能解析,切换到 RSA 前要先保存两把密钥;读取设置时不返回密钥 - 设置页选择 MD5 时只显示商户密钥,选择 RSA 时显示商户私钥和平台公钥;七种语言补齐文案 - go-epay 升级到 v0.0.6 * refactor(payment): 易支付签名设置改用 payment_setting 注册配置 签名方式、商户私钥、平台公钥改为 PaymentSetting 的字段,键名为 payment_setting.epay_sign_type、payment_setting.epay_merchant_private_key、payment_setting.epay_platform_public_key,由配置管理器统一加载和保存,不再在 option.go 里逐项初始化和赋值。 - 保存校验移到 operation_setting.ValidateEpaySignOption,规则不变 - 读取设置时不返回以 private_key 结尾的配置项;平台公钥可以正常显示和修改
Brings in EPay RSA signing (QuantumNous#8291) and the DeepSeek developer-role mapping (QuantumNous#8287). The only conflicts were in the seven frontend locale files, where both sides added keys next to each other: every key from both sides is kept, and the fork's "Playground" wording (在线体验 / 線上體驗) wins over upstream's 游乐场 / 遊樂場. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.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.
Agent
本 PR 的合并冲突由 AI 辅助解决(提交者不是 new-api 的历史核心开发者)。
Links
User request
Out of scope — refuse
Open gate — do not open unless all are satisfied
go buildor tests passed: yesKind
Issue facts
main落后上游 2 个提交,GitHub 的「Sync fork」提示有冲突,只给「Discard 147 commits」选项。developer角色映射为system。Change
upstream/main(579573ac)到分叉main(3e6a2ea4)。web/src/i18n/locales/*.json,都是两边在相邻位置各自加了键:Playground两边都改了值,保留分叉的「在线体验 / 線上體驗」,不用上游的「游乐场 / 遊樂場」。Research
Duplicate / prior art
Docs and code
main的键全部还在;上游有、合并结果没有的,只有合并基点 bd6bb53 里就有、后来被分叉删掉的键。Alternatives considered
Files
web/src/i18n/locales/{en,fr,ja,ru,vi,zh,zh-TW}.jsonBehavior
Verification
go build -o /tmp/newapi-sync-check .(临时放一个web/dist/index.html满足 embed,构建后已删除):成功。go vet ./controller/ ./relay/channel/deepseek/ ./setting/operation_setting/ ./model/:无输出。go test ./controller/ ./relay/channel/deepseek/ ./setting/operation_setting/ ./model/:全部 ok。bunx vitest run src/features/system-settings src/features/home src/i18n(在web/):39 个文件、357 个测试全部通过,包括上游新增的epay-sign-settings.test.tsx。bunx -p typescript tsc -b(在web/):退出码 0。model包测试只用 SQLite;没有跑 MySQL、PostgreSQL。上游 feat(payment): 易支付支持 RSA 签名方式 QuantumNous/new-api#8291 在model/option.go只加了保存设置前的签名配置校验,没有改表结构。Risks
Playground选了分叉的译法;如果想要上游的译法需要再改。payment_setting.go)。没有改计费。Scope check
🤖 Generated with Claude Code