mirror of
https://github.com/Wei-Shaw/claude-relay-service.git
synced 2026-01-23 21:01:24 +00:00
fix: 修复SMTP平台测试按钮缺少必要字段的问题
- 在testPlatform函数中添加SMTP平台的完整字段传递 - 确保测试时包含host, port, user, pass, to等必填字段
This commit is contained in:
@@ -1514,6 +1514,15 @@ const testPlatform = async (platform) => {
|
||||
testData.level = platform.level
|
||||
testData.sound = platform.sound
|
||||
testData.group = platform.group
|
||||
} else if (platform.type === 'smtp') {
|
||||
testData.host = platform.host
|
||||
testData.port = platform.port
|
||||
testData.secure = platform.secure
|
||||
testData.user = platform.user
|
||||
testData.pass = platform.pass
|
||||
testData.from = platform.from
|
||||
testData.to = platform.to
|
||||
testData.ignoreTLS = platform.ignoreTLS
|
||||
} else {
|
||||
testData.url = platform.url
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user