Use c.ResponseOk() for all places.

This commit is contained in:
Yang Luo
2021-08-08 16:00:19 +08:00
parent a5783598ff
commit 9feefc31f9
5 changed files with 24 additions and 27 deletions

View File

@ -157,10 +157,7 @@ func (c *ApiController) GetEmailAndPhone() {
contentType = "username"
}
resp = Response{Status: "ok", Msg: "", Data: respUser, Data2: contentType}
c.Data["json"] = resp
c.ServeJSON()
c.ResponseOk(respUser, contentType)
}
// SetPassword