develop
old易 2024-09-29 16:33:54 +08:00
parent b4754c6299
commit 052f19a6fd
1 changed files with 1 additions and 1 deletions

View File

@ -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)