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

@ -51,7 +51,5 @@ func (c *ApiController) Unlink() {
object.ClearUserOAuthProperties(user, providerType)
object.LinkUserAccount(user, providerType, "")
resp = Response{Status: "ok", Msg: ""}
c.Data["json"] = resp
c.ServeJSON()
c.ResponseOk()
}