Browse Source

个人课纲分享

CrazyIter_Bin 4 năm trước cách đây
mục cha
commit
14caabdf62
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      TEAMModelOS/Controllers/Syllabus/ShareController.cs

+ 1 - 1
TEAMModelOS/Controllers/Syllabus/ShareController.cs

@@ -239,7 +239,7 @@ namespace TEAMModelOS.Controllers
                 List<Share> shares = new List<Share>();
                 if (!request.TryGetProperty("code", out JsonElement code)) { return BadRequest(); }
                 if (!request.TryGetProperty("type", out JsonElement type)) { return BadRequest(); }
-                if (!request.TryGetProperty("id", out JsonElement id)) { return BadRequest(); }
+                request.TryGetProperty("id", out JsonElement id);
                 var client = _azureCosmos.GetCosmosClient();
                 StringBuilder queryText = new StringBuilder("select value(c) from c");
                 if (type.ValueKind.Equals(JsonValueKind.String) && type.GetString() == "coedit")