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:
@@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user