111
parent
b4754c6299
commit
052f19a6fd
|
|
@ -52,7 +52,7 @@ namespace New_College.Controllers
|
|||
client_secret = CasdoorConfig.ClientSecret
|
||||
}),
|
||||
Encoding.UTF8, "application/json"));//
|
||||
if (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();
|
||||
if (user != null)
|
||||
|
|
|
|||
Loading…
Reference in New Issue