|
@@ -744,11 +744,11 @@ namespace TEAMModelOS.Controllers
|
|
|
var auth_token = JwtAuthExtension.CreateAuthToken(_option.HostName, id, name, picture, _option.JwtSecretKey, scope: Constant.ScopeStudent, Website: "IES", timezone: timezone, areaId: areaId, schoolID: school_code, roles: new[] { "student" }, expire: 4,year: student.year);
|
|
|
|
|
|
//用户在线记录
|
|
|
- try
|
|
|
- {
|
|
|
- _ = _httpTrigger.RequestHttpTrigger(new { school = school_code, scope = $"{Constant.ScopeStudent}", id = $"{id}", ip = $"{ip}", expire = 1 }, _option.Location, "online-record");
|
|
|
- }
|
|
|
- catch {}
|
|
|
+ //try
|
|
|
+ //{
|
|
|
+ // _ = _httpTrigger.RequestHttpTrigger(new { school = school_code, scope = $"{Constant.ScopeStudent}", id = $"{id}", ip = $"{ip}", expire = 1 }, _option.Location, "online-record");
|
|
|
+ //}
|
|
|
+ //catch {}
|
|
|
|
|
|
await cosmosClient.GetContainer("TEAMModelOS", "Student").ReplaceItemAsync<Student>(student, id, new PartitionKey($"Base-{school_code}"));
|
|
|
|
|
@@ -1337,11 +1337,11 @@ namespace TEAMModelOS.Controllers
|
|
|
var auth_token = JwtAuthExtension.CreateAuthToken(_option.HostName, id.GetString(), name.GetString(), picture.GetString(), _option.JwtSecretKey, Website: "IES", timezone: timezone, areaId: schoolInfo.areaId, scope: Constant.ScopeStudent, schoolID: school_code.GetString(), roles: new[] { "student" }, expire: 4);
|
|
|
|
|
|
//用户在线记录
|
|
|
- try
|
|
|
- {
|
|
|
- _ = _httpTrigger.RequestHttpTrigger(new { school = school_code.GetString(), scope = $"{Constant.ScopeStudent}", id = $"{id}", ip = $"{ip}", expire = 1 }, _option.Location, "online-record");
|
|
|
- }
|
|
|
- catch { }
|
|
|
+ //try
|
|
|
+ //{
|
|
|
+ // _ = _httpTrigger.RequestHttpTrigger(new { school = school_code.GetString(), scope = $"{Constant.ScopeStudent}", id = $"{id}", ip = $"{ip}", expire = 1 }, _option.Location, "online-record");
|
|
|
+ //}
|
|
|
+ //catch { }
|
|
|
|
|
|
|
|
|
//保存学生登录信息
|