add
This commit is contained in:
@@ -54,7 +54,7 @@ func LoginHandler(c *gin.Context) {
|
||||
zap.Error(err),
|
||||
zap.Any("请求体", c.Request.Body),
|
||||
)
|
||||
c.JSON(http.StatusBadRequest, LoginResponse{
|
||||
c.JSON(http.StatusOK, LoginResponse{
|
||||
Success: false,
|
||||
Message: "账号或密码不能为空",
|
||||
})
|
||||
@@ -72,7 +72,7 @@ func LoginHandler(c *gin.Context) {
|
||||
zap.String("reqID", reqID),
|
||||
zap.String("账号", req.Account),
|
||||
)
|
||||
c.JSON(http.StatusBadRequest, LoginResponse{
|
||||
c.JSON(http.StatusOK, LoginResponse{
|
||||
Success: false,
|
||||
Message: "账号或密码不能为空",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user