调整授权逻辑
parent
e284337730
commit
46b729b567
|
|
@ -63,7 +63,7 @@ namespace New_College.Controllers
|
||||||
Encoding.UTF8, "application/json"));//
|
Encoding.UTF8, "application/json"));//
|
||||||
if (userinfo != null && userinfo.code == 200 && userinfo.type == "success")
|
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)
|
if (user == null)
|
||||||
{
|
{
|
||||||
//没有用户则注册一个新用户
|
//没有用户则注册一个新用户
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue