feat(密钥面板): 青果下架——供应商单选不再出现,存量青果配置照常回显

2026-11-08 用户拍板「先屏蔽掉,代码留着」:api-secret-channel.ts 加 QINGGUO_ENABLED=false+SELECTABLE_PROXY_PROVIDER_OPTIONS 过滤列表,面板 radiogroup 只渲染过滤后列表;拼链/检测/保存/标签回显(composeQingguoLink、proxyCheckValue、proxyProviderLabel)全量保留,存量已存青果账密仍按本机/服务端值回显可检测,翻回 true 即整体恢复。判据:tests/青果账密拼提取链接.test.ts 钉可选列表只剩极客+标签字典仍全量;mount 测试钉单选区只剩极客+存量配置回显。
This commit is contained in:
2026-11-08 23:30:48 +08:00
parent b36c52e4d0
commit 7c7712e7f3
4 changed files with 58 additions and 3 deletions
@@ -264,6 +264,26 @@ describe('青果放开检测:按钮、送检链接与结果文案', () => {
})
})
describe('青果下架(2026-11-08):入口屏蔽,存量配置照常回显', () => {
it('供应商单选里不再出现青果,只剩极客(开关在 api-secret-channel.ts,不许模板里自己过滤)', async () => {
const panel = await mountPanel()
const options = proxyCard(panel).findAll('.source-option')
expect(options.map((option) => option.find('.source-option-label').text())).toEqual(['极客'])
// 单选区(不是整卡):存量青果配置的说明文案里本来就有青果域名,那是「照常回显」
expect(options.map((option) => option.find('.source-option-hint').text())).toEqual(['api.jikip.com(默认)'])
})
it('存量青果配置仍按青果回显:货源标签与账密输入原样在,检测照常可点', async () => {
const panel = await mountPanel()
expect(proxyCard(panel).find('.source-tag').text()).toBe('青果')
expect(proxyCard(panel).text()).toContain('隧道代理账号')
expect(proxyCheckButton(panel).attributes('disabled')).toBeUndefined()
expect(proxyCheckButton(panel).text()).toContain('检测配置代理')
})
})
describe('货源标签与代理余量:按供应商,不套 LLM 渠道字典', () => {
it('代理卡标题下的货源是供应商名(青果),不是 LLM 渠道名', async () => {
const panel = await mountPanel()