refactor: remove WeChat unionId to properties (#985)

This commit is contained in:
Mikey
2022-08-08 18:43:12 +08:00
committed by GitHub
parent b14554a5ba
commit 802995ed16
2 changed files with 35 additions and 28 deletions

View File

@ -703,13 +703,16 @@ func GetWechatMiniProgramToken(application *Application, code string, host strin
Avatar: avatar,
SignupApplication: application.Name,
WeChat: openId,
WeChatUnionId: unionId,
Type: "normal-user",
CreatedTime: util.GetCurrentTime(),
IsAdmin: false,
IsGlobalAdmin: false,
IsForbidden: false,
IsDeleted: false,
Properties: map[string]string{
USER_PROPERTIES_WECHAT_OPEN_ID: openId,
USER_PROPERTIES_WECHAT_UNION_ID: unionId,
},
}
AddUser(user)
}