From a9b9d4f802ebce253814713c4c03f4e68e9bd02c Mon Sep 17 00:00:00 2001 From: luhaoling <2198702716@qq.com> Date: Mon, 11 Mar 2024 15:42:55 +0800 Subject: [PATCH] fix: fix the upate admin info error --- internal/api/admin.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/api/admin.go b/internal/api/admin.go index 62c358d2..97d9244c 100644 --- a/internal/api/admin.go +++ b/internal/api/admin.go @@ -109,7 +109,7 @@ func (o *AdminApi) AdminUpdateInfo(c *gin.Context) { apiresp.GinError(c, err) return } - apiresp.GinSuccess(c, nil) + imAdminUserID := config.GetIMAdmin(resp.UserID) imToken, err := o.imApiCaller.UserToken(c, imAdminUserID, constant.AdminPlatformID) if err != nil { @@ -119,6 +119,7 @@ func (o *AdminApi) AdminUpdateInfo(c *gin.Context) { if err := o.imApiCaller.UpdateUserInfo(mctx.WithApiToken(c, imToken), imAdminUserID, resp.Nickname, resp.FaceURL); err != nil { log.ZError(c, "AdminUpdateInfo UpdateUserInfo", err, "userID", resp.UserID, "nickName", resp.Nickname, "faceURL", resp.FaceURL) } + apiresp.GinSuccess(c, nil) } func (o *AdminApi) AdminInfo(c *gin.Context) {