| 55 | }; |
| 56 | |
| 57 | function type2secretPrompt(type) { |
| 58 | // inputs.type === 15 ? '按照如下格式输入:APIKey|SecretKey' : (inputs.type === 18 ? '按照如下格式输入:APPID|APISecret|APIKey' : '请输入渠道对应的鉴权密钥') |
| 59 | switch (type) { |
| 60 | case 15: |
| 61 | return '按照如下格式输入:APIKey|SecretKey'; |
| 62 | case 18: |
| 63 | return '按照如下格式输入:APPID|APISecret|APIKey'; |
| 64 | case 22: |
| 65 | return '按照如下格式输入:APIKey-AppId,例如:fastgpt-0sp2gtvfdgyi4k30jwlgwf1i-64f335d84283f05518e9e041'; |
| 66 | case 23: |
| 67 | return '按照如下格式输入:AppId|SecretId|SecretKey'; |
| 68 | case 33: |
| 69 | return '按照如下格式输入:Ak|Sk|Region'; |
| 70 | case 50: |
| 71 | return '按照如下格式输入: AccessKey|SecretKey'; |
| 72 | case 51: |
| 73 | return '按照如下格式输入: Access Key ID|Secret Access Key'; |
| 74 | default: |
| 75 | return '请输入渠道对应的鉴权密钥'; |
| 76 | } |
| 77 | } |
| 78 | |
| 79 | const EditChannel = (props) => { |
| 80 | const { t } = useTranslation(); |