mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-10 11:19:50 +08:00
fix: 新增 API 验证增加响应完整性检查
- 站点地址字段在无官方地址时改为必填 - 验证成功时检查用户信息和余额是否完整返回
This commit is contained in:
@@ -21,11 +21,12 @@ export const newApiTemplate: AuthTemplate = {
|
||||
fields: [
|
||||
{
|
||||
key: 'base_url',
|
||||
label: 'API 地址',
|
||||
label: '站点地址',
|
||||
type: 'text',
|
||||
placeholder: providerWebsite || 'https://api.example.com',
|
||||
helpText: '提供商的 API 基础地址,留空则使用提供商官网',
|
||||
required: false,
|
||||
placeholder: providerWebsite
|
||||
? `${providerWebsite}`
|
||||
: '请填写站点地址',
|
||||
required: !providerWebsite,
|
||||
},
|
||||
{
|
||||
key: 'api_key',
|
||||
|
||||
Reference in New Issue
Block a user