fix: 修复SMTP平台测试按钮缺少必要字段的问题

- 在testPlatform函数中添加SMTP平台的完整字段传递
- 确保测试时包含host, port, user, pass, to等必填字段
This commit is contained in:
Edric Li
2025-09-09 04:02:13 +08:00
parent 283362acd0
commit 268a262281

View File

@@ -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
}