调整授权逻辑

develop
old易 2024-10-10 11:01:56 +08:00
parent e284337730
commit 46b729b567
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ namespace New_College.Controllers
Encoding.UTF8, "application/json"));//
if (userinfo != null && userinfo.code == 200 && userinfo.type == "success")
{
var user = (await _CustomerInfoServices.Query(q => q.UUID == userinfo.result.UnionId)).FirstOrDefault();//判断移动端是否已完成unionid替换
var user = (await _CustomerInfoServices.Query(q => q.OpenId == userinfo.result.OpenId)).FirstOrDefault();//判断移动端是否已完成unionid替换
if (user == null)
{
//没有用户则注册一个新用户