|
@@ -1030,7 +1030,6 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
if (!jsonElement.TryGetProperty("picture", out JsonElement picture)) return BadRequest();
|
|
|
if (!jsonElement.TryGetProperty("size", out JsonElement size)) return BadRequest();
|
|
|
if (!jsonElement.TryGetProperty("scale", out JsonElement scale)) return BadRequest();
|
|
|
- jsonElement.TryGetProperty("assistId", out JsonElement _assistId); //对接V2.0 删除该信息
|
|
|
if (!jsonElement.TryGetProperty("type", out JsonElement _type)) return BadRequest();
|
|
|
jsonElement.TryGetProperty("province", out JsonElement province);
|
|
|
jsonElement.TryGetProperty("city", out JsonElement city);
|
|
@@ -1043,9 +1042,6 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
|
|
|
var (_tmdId, _tmdName, pic, did, dname, dpic) = HttpJwtAnalysis.JwtXAuthBI(HttpContext.GetXAuth("AuthToken"), _option);
|
|
|
|
|
|
- List<string> assistId = _assistId.ToObject<List<string>>();
|
|
|
- //List<string> periodS = period.ToObject<List<string>>();
|
|
|
- Dictionary<string, List<Dictionary<string, string>>> haveSchoolManger = new();
|
|
|
var cosmosClient = _azureCosmos.GetCosmosClient();
|
|
|
var tableClient = _azureStorage.GetCloudTableClient();
|
|
|
var blobClient = _azureStorage.GetBlobContainerClient(containerName: "0-public");
|
|
@@ -1148,6 +1144,10 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
}
|
|
|
|
|
|
////需要重大修改后移除
|
|
|
+ //jsonElement.TryGetProperty("assistId", out JsonElement _assistId); //对接V2.0 删除该信息
|
|
|
+ //List<string> assistId = _assistId.ToObject<List<string>>();
|
|
|
+ //List<string> periodS = period.ToObject<List<string>>();
|
|
|
+ //Dictionary<string, List<Dictionary<string, string>>> haveSchoolManger = new();
|
|
|
//if (assistId.Count > 0)
|
|
|
//{
|
|
|
// //修改学校顾问
|
|
@@ -1252,15 +1252,15 @@ namespace TEAMModelBI.Controllers.BISchool
|
|
|
// }
|
|
|
// }
|
|
|
//}
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
|
|
|
//保存操作记录
|
|
|
- await AzureStorageBlobExtensions.SaveBILog(blobClient, tableClient, "school-update", $"{_tmdName}【{_tmdId}】修改学校功能,修改的学校:{_schoolId},{_type},{picture},{size},{string.Join("|", assistId.ToArray())}", _dingDing, httpContext: HttpContext);
|
|
|
+ await AzureStorageBlobExtensions.SaveBILog(blobClient, tableClient, "school-update", $"{_tmdName}【{_tmdId}】修改学校功能,修改的学校:{_schoolId},{_type},{picture},{size},{idInfos.ToArray()}", _dingDing, httpContext: HttpContext);
|
|
|
|
|
|
return Ok(new { state = 200 });
|
|
|
}
|
|
|
- catch (Exception ex)
|
|
|
+ catch (Exception ex)
|
|
|
{
|
|
|
await _dingDing.SendBotMsg($"BI, {_option.Location} /batchschool/upd-schoolassist \n {ex.Message}\n{ex.StackTrace}", GroupNames.成都开发測試群組);
|
|
|
return BadRequest();
|