Refactor and optimize code: streamline error

handling, remove redundant return statements,
correct gorm tag syntax, and improve type
assertions in relay.go
This commit is contained in:
cktsun1031
2023-11-06 16:04:13 +08:00
parent 5c5aed7919
commit fa008e7196
32 changed files with 234 additions and 155 deletions

View File

@@ -640,10 +640,13 @@
"请检查你的浏览器地址是否正确": "Please check if your browser address is correct",
"重新启用之前被自动禁用的故障通道": "Re-enable the failed channel automatically disabled before",
"Turnstile 部件测试: (如果您的 Turnstile 模式设置为 不可见 模式,则不会显示此部件。)": "Turnstile widget test: (If your Turnstile mode is set to Invisible mode, this widget will not be displayed.)",
"Turnstile 部件测试: (如果您的 Turnstile 模式设置为 不可见 模式,则不会显示此部件。)": "Turnstile widget test: (If your Turnstile mode is set to Invisible mode, this widget will not be displayed.)",
"通道「%s」#%d已被重新启用": "Channel '%s' (#%d) has been re-enabled",
"通道「%s」#%d通道现在满足了服务器要求, 已被重新启用并重新开始运行": "Channel '%s' (#%d) now meets the server requirements, has been re-enabled and restarted",
"解析请求体失败": "Failed to parse request body",
"从 .env 文件加载环境变量": "Load environment variables from .env file",
"本项目 OneAPI 原作 JustSong ,由 ckt1031 改进,本源代码遵循 MIT 协议": "OneAPI by JustSong, improved by ckt1031, and follows MIT license",
"警告": "Warning",
"确定": "Confirm",