fix: add app_name to API response, fix UiSwitch binding in version pages

This commit is contained in:
Trae AI
2026-06-20 06:09:58 +08:00
parent a32d3bc863
commit 7f8bb5d6c3
3 changed files with 10 additions and 8 deletions
+2
View File
@@ -115,6 +115,7 @@ func handleAppCheckUpdate(c *gin.Context) {
result := gin.H{
"has_update": true,
"app_name": app.Name,
"latest_version": latestVersion.Version,
"download_url": downloadURL,
"file_size": downloadSize,
@@ -253,6 +254,7 @@ func handleAppCheckUpdate(c *gin.Context) {
// 构建返回结果
result := map[string]interface{}{
"has_update": true,
"app_name": app.Name,
"current_version": clientVersion,
"latest_version": latestVersion.Version,
"download_url": downloadURL,