fix: return param error when version not found in database

Change 404 to 400 with "版本号参数错误" message

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-29 13:21:54 +08:00
parent 7af4da30d3
commit 275698a32b
+2 -2
View File
@@ -146,9 +146,9 @@ func handleAppCheckUpdate(c *gin.Context) {
} }
} }
// 客户端版本不存在于服务器版本列表中,返回错误 // 客户端版本不存在于服务器版本列表中,返回参数错误
if clientVersionRecord == nil { if clientVersionRecord == nil {
response.Error(c, 404, "客户端版本不存在") response.Error(c, 400, "版本号参数错误")
return return
} }