This commit is contained in:
vipg
2025-11-29 15:04:50 +08:00
parent 62adbd70a4
commit 99741d44b5

View File

@@ -54,7 +54,7 @@ func LoginHandler(c *gin.Context) {
zap.Error(err), zap.Error(err),
zap.Any("请求体", c.Request.Body), zap.Any("请求体", c.Request.Body),
) )
c.JSON(http.StatusBadRequest, LoginResponse{ c.JSON(http.StatusOK, LoginResponse{
Success: false, Success: false,
Message: "账号或密码不能为空", Message: "账号或密码不能为空",
}) })
@@ -72,7 +72,7 @@ func LoginHandler(c *gin.Context) {
zap.String("reqID", reqID), zap.String("reqID", reqID),
zap.String("账号", req.Account), zap.String("账号", req.Account),
) )
c.JSON(http.StatusBadRequest, LoginResponse{ c.JSON(http.StatusOK, LoginResponse{
Success: false, Success: false,
Message: "账号或密码不能为空", Message: "账号或密码不能为空",
}) })