瀏覽代碼

优化修改学校信息和顾问信息接口

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

+ 1 - 4
TEAMModelBI/Controllers/BISchool/BatchSchoolController.cs

@@ -1030,18 +1030,15 @@ 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();
-                if (!jsonElement.TryGetProperty("assistId", out JsonElement _assistId)) 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);
                 jsonElement.TryGetProperty("dist", out JsonElement dist);
                 jsonElement.TryGetProperty("address", out JsonElement address);
 
-
                 jsonElement.TryGetProperty("assist", out JsonElement assist);
                 List<IdInfo> idInfos = assist.ToObject<List<IdInfo>>();
-
-
                 //jsonElement.TryGetProperty("site", out JsonElement site);//分开部署,就不需要,一站多用时,取消注释
 
                 var (_tmdId, _tmdName, pic, did, dname, dpic) = HttpJwtAnalysis.JwtXAuthBI(HttpContext.GetXAuth("AuthToken"), _option);