refactor: update AWS key format in EditChannelModal for consistency
Some checks failed
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (amd64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Build & push (arm64) [native] (push) Has been cancelled
Publish Docker image (Multi Registries, native amd64+arm64) / Create multi-arch manifests (Docker Hub) (push) Has been cancelled
Build Electron App / build (windows-latest) (push) Has been cancelled
Build Electron App / release (push) Has been cancelled
Release (Linux, macOS, Windows) / Linux Release (push) Has been cancelled
Release (Linux, macOS, Windows) / macOS Release (push) Has been cancelled
Release (Linux, macOS, Windows) / Windows Release (push) Has been cancelled

This commit is contained in:
CaIon 2025-10-15 17:38:21 +08:00
parent 59caea8f34
commit 5bee54a11d

View File

@ -110,7 +110,7 @@ function type2secretPrompt(type) {
case 50: case 50:
return '按照如下格式输入: AccessKey|SecretKey, 如果上游是New API则直接输ApiKey'; return '按照如下格式输入: AccessKey|SecretKey, 如果上游是New API则直接输ApiKey';
case 51: case 51:
return '按照如下格式输入: Access Key ID|Secret Access Key'; return '按照如下格式输入: AccessKey|SecretAccessKey';
default: default:
return '请输入渠道对应的鉴权密钥'; return '请输入渠道对应的鉴权密钥';
} }
@ -1489,7 +1489,7 @@ const EditChannelModal = (props) => {
placeholder={t('请选择密钥格式')} placeholder={t('请选择密钥格式')}
optionList={[ optionList={[
{ {
label: 'Access Key ID / Secret Access Key', label: 'AccessKey / SecretAccessKey',
value: 'ak_sk', value: 'ak_sk',
}, },
{ label: 'API Key', value: 'api_key' }, { label: 'API Key', value: 'api_key' },
@ -1500,7 +1500,7 @@ const EditChannelModal = (props) => {
handleChannelOtherSettingsChange('aws_key_type', value); handleChannelOtherSettingsChange('aws_key_type', value);
}} }}
extraText={t( extraText={t(
'AK/SK 模式:使用 Access Key ID 和 Secret Access KeyAPI Key 模式:使用 API Key', 'AK/SK 模式:使用 AccessKey 和 SecretAccessKeyAPI Key 模式:使用 API Key',
)} )}
/> />
</> </>
@ -1577,9 +1577,9 @@ const EditChannelModal = (props) => {
placeholder={ placeholder={
inputs.type === 33 inputs.type === 33
? inputs.aws_key_type === 'api_key' ? inputs.aws_key_type === 'api_key'
? t('请输入 API Key一行一个格式API Key|Region') ? t('请输入 API Key一行一个格式APIKey|Region')
: t( : t(
'请输入密钥一行一个格式Access Key ID|Secret Access Key|Region', '请输入密钥一行一个格式AccessKey|SecretAccessKey|Region',
) )
: t('请输入密钥,一行一个') : t('请输入密钥,一行一个')
} }
@ -1779,8 +1779,8 @@ const EditChannelModal = (props) => {
placeholder={ placeholder={
inputs.type === 33 inputs.type === 33
? inputs.aws_key_type === 'api_key' ? inputs.aws_key_type === 'api_key'
? t('请输入 API Key格式API Key|Region') ? t('请输入 API Key格式APIKey|Region')
: t('按照如下格式输入Access Key ID|Secret Access Key|Region') : t('按照如下格式输入AccessKey|SecretAccessKey|Region')
: t(type2secretPrompt(inputs.type)) : t(type2secretPrompt(inputs.type))
} }
rules={ rules={