Przeglądaj źródła

答题卡配置

CrazyIter_Bin 3 lat temu
rodzic
commit
232fe1a348

+ 13 - 0
TEAMModelOS.SDK/Models/Cosmos/Common/SheetConfig.cs

@@ -59,4 +59,17 @@ namespace TEAMModelOS.SDK.Models.Cosmos.Common
         /// </summary>
         public List<ConfigContent> contents { get; set; }
     }
+    public class ConfigContent
+    {
+        public int type { get; set; }
+        public int x { get; set; }
+        public int y { get; set; }
+        public int width { get; set; }
+        public int height { get; set; }
+        public int pageNum { get; set; }
+        public int vblockCount { get; set; }
+        public int hblockCount { get; set; }
+        public string id { get; set; }
+        public bool isFix { get; set; }
+    }
 }

+ 1 - 10
TEAMModelOS.SDK/Models/Cosmos/School/ExamInfo.cs

@@ -130,16 +130,7 @@ namespace TEAMModelOS.SDK.Models
 
    
 
-    public class ConfigContent {
-        public int type { get; set; }
-        public int x { get; set; }
-        public int y { get; set; }
-        public int width { get; set; }
-        public int height { get; set; }
-        public int pageNum { get; set; }
-        public int vblockCount { get; set; }
-        public int hblockCount { get; set; }
-    }
+   
     /*public class Condition
     {
         public string period { get; set; }

+ 1 - 1
TEAMModelOS/Controllers/Common/SheetConfigController.cs

@@ -88,7 +88,7 @@ namespace TEAMModelOS.Controllers.Common
             catch (Exception ex) {
 
                 await _dingDing.SendBotMsg($"OS,{_option.Location},common/SheetConfig/upsert()\n{ex.Message}", GroupNames.醍摩豆服務運維群組);
-                return BadRequest(e.StackTrace);
+                return BadRequest(ex.StackTrace);
             }
         }
         /// <summary>