Merge pull request '修复获取微信用户OpenId接口,没有存储openid等相关信息的问题' (#126) from 362270511/Admin.NET.Pro:main into main
Reviewed-on: http://101.43.53.74:3000/Admin.NET/Admin.NET.Pro/pulls/126
This commit is contained in:
commit
318745680b
@ -70,6 +70,10 @@ public class SysWechatService : IDynamicApiController, ITransient
|
||||
wxUser = resUserInfo.Adapt<SysOAuthUser>();
|
||||
wxUser.Avatar = resUserInfo.HeadImageUrl;
|
||||
wxUser.NickName = resUserInfo.Nickname;
|
||||
wxUser.OpenId = resOAuth2.OpenId;
|
||||
wxUser.UnionId = resOAuth2.UnionId;
|
||||
wxUser.AccessToken = resOAuth2.AccessToken;
|
||||
wxUser.RefreshToken = resOAuth2.RefreshToken;
|
||||
wxUser = await _sysOAuthUserRep.AsInsertable(wxUser).ExecuteReturnEntityAsync();
|
||||
}
|
||||
else
|
||||
|
||||
Loading…
Reference in New Issue
Block a user