Li 2 年之前
父節點
當前提交
6a745d91f7
共有 1 個文件被更改,包括 7 次插入7 次删除
  1. 7 7
      TEAMModelBI/Controllers/BISchool/BatchSchoolController.cs

+ 7 - 7
TEAMModelBI/Controllers/BISchool/BatchSchoolController.cs

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