|
@@ -571,6 +571,7 @@ namespace TEAMModelOS.Controllers
|
|
|
{
|
|
|
(string auth_token, string blob_uri, string blob_sas, object classinfo, List<object> courses, AuthenticationResult token) = await StudentCheck(school,$"{id}", $"{classId}", $"{school_code}", $"{picture}", $"{name}", schoolClient, teacherClient, school.areaId,ip, client, student);
|
|
|
int countAuthorized = await GetStudentAuthNumByScale($"{school_code}", school);
|
|
|
+ await SystemService.RecordAccumulateData(_azureRedis, _dingDing, new SDK.Models.Dtos.Accumulate { client="web", count=1, id=school.id, key="student_login", name=school.name, scope="school", target=school.id });
|
|
|
return Ok(new {school.scale, countAuthorized, location = _option.Location, error = 0, auth_token, blob_uri, blob_sas, classinfo, courses, token = new { access_token = token.AccessToken, expires_in = token.ExpiresOn, id_token = auth_token, token_type = token.TokenType } });
|
|
|
}
|
|
|
else
|
|
@@ -826,6 +827,7 @@ namespace TEAMModelOS.Controllers
|
|
|
//Login流程回傳值
|
|
|
(string auth_token, string blob_uri, string blob_sas, object classinfo, List<object> courses, AuthenticationResult token) = await StudentCheck(school, $"{stuinfo.id}", $"{stuinfo.classId}", $"{schShortCode}", $"{stuinfo.picture}", $"{stuinfo.name}", schoolClient, teacherClient, school.areaId, ip, client, stuinfo);
|
|
|
int countAuthorized = await GetStudentAuthNumByScale($"{school.id}", school);
|
|
|
+ await SystemService.RecordAccumulateData(_azureRedis, _dingDing, new SDK.Models.Dtos.Accumulate { client="web", count=1, id=school.id, key="student_login", name=school.name, scope="school", target=school.id });
|
|
|
return Ok(new { school.scale, countAuthorized, location = _option.Location, error = 0, auth_token, blob_uri, blob_sas, classinfo, courses, token = new { access_token = token.AccessToken, expires_in = token.ExpiresOn, id_token = auth_token, token_type = token.TokenType } });
|
|
|
}
|
|
|
//分歧2 無此學生 => 取得該校同名學生資訊
|
|
@@ -960,6 +962,7 @@ namespace TEAMModelOS.Controllers
|
|
|
stuResultRow.gradeName = (!string.IsNullOrWhiteSpace(gradeInfo.name)) ? gradeInfo.name : string.Empty;
|
|
|
stuResult.Add(stuResultRow);
|
|
|
}
|
|
|
+ await SystemService.RecordAccumulateData(_azureRedis, _dingDing, new SDK.Models.Dtos.Accumulate { client="web", count=1, id=school.id, key="student_login", name=school.name, scope="school", target=school.id });
|
|
|
//回傳值
|
|
|
return Ok(new { openToken = encOpenToken, school = schResult, students = stuResult } );
|
|
|
}
|
|
@@ -1301,6 +1304,7 @@ namespace TEAMModelOS.Controllers
|
|
|
//其他訊息
|
|
|
dynamic school = new ExpandoObject();
|
|
|
//回傳
|
|
|
+ await SystemService.RecordAccumulateData(_azureRedis, _dingDing, new SDK.Models.Dtos.Accumulate { client="web", count=1, id=schoolInfo.id, key="student_login", name=schoolInfo.name , scope="school", target=schoolInfo.id });
|
|
|
return Ok(new { error = 0, auth_token, classinfo, user });
|
|
|
}
|
|
|
else
|