Can sync update from 2nd DB.

This commit is contained in:
Yang Luo
2021-05-08 22:04:45 +08:00
parent c76a432003
commit de67ee9014
6 changed files with 57 additions and 23 deletions

View File

@ -198,7 +198,7 @@ func (c *ApiController) UploadAvatar() {
return
}
user.Avatar = fmt.Sprintf("%s%s.png?time=%s", object.GetAvatarPath(), user.Name, util.GetCurrentUnixTime())
object.UpdateUser(user.Owner+"/"+user.Name, user)
object.UpdateUser(user.GetId(), user)
resp = Response{Status: "ok", Msg: ""}
c.Data["json"] = resp
c.ServeJSON()