fix: add app_name to API response, fix UiSwitch binding in version pages
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user