Przeglądaj źródła

新增科目信息

zj 2 lat temu
rodzic
commit
5f04b247c3

+ 1 - 0
TEAMModelOS.FunctionV4/CosmosDB/TriggerArt.cs

@@ -151,6 +151,7 @@ namespace TEAMModelOS.FunctionV4.CosmosDB
                                         blob = null,
                                         owner = art.owner,
                                         createTime = DateTimeOffset.UtcNow.ToUnixTimeMilliseconds(),
+                                        ext = new Dictionary<string, JsonElement>() { { "subjects", art.subjects.ToJsonString().ToObject<JsonElement>() } },
                                         taskStatus = -1,
                                         classIds = classIds.ToList()
                                     });

+ 2 - 1
TEAMModelOS.FunctionV4/CosmosDB/TriggerExam.cs

@@ -828,7 +828,8 @@ namespace TEAMModelOS.FunctionV4
                         createTime = info.createTime,
                         taskStatus = ts,
                         qamode = info.qamode,
-                        ext = new Dictionary<string, JsonElement>() { { "type", info.examType.ToJsonString().ToObject<JsonElement>() } },
+                        ext = new Dictionary<string, JsonElement>() { { "type", info.examType.ToJsonString().ToObject<JsonElement>() },
+                            { "subjects", info.subjects.ToJsonString().ToObject<JsonElement>() } },
                         sStatus = iss ? 1 : 0,
                         classIds = classIds.ToList()
 

+ 7 - 0
TEAMModelOS.FunctionV4/Properties/launchSettings.json

@@ -0,0 +1,7 @@
+{
+  "profiles": {
+    "TEAMModelOS.FunctionV4": {
+      "commandName": "Project"
+    }
+  }
+}