zhouj1203@hotmail.com 1 год назад
Родитель
Сommit
17b453de46
1 измененных файлов с 7 добавлено и 0 удалено
  1. 7 0
      TEAMModelOS.FunctionV4/CosmosDB/TriggerExam.cs

+ 7 - 0
TEAMModelOS.FunctionV4/CosmosDB/TriggerExam.cs

@@ -1542,6 +1542,10 @@ namespace TEAMModelOS.FunctionV4
                 errorItems.Add(item);
             }
             try {
+               /* bool isError =  examClassResults.SelectMany(c => c.status).ToList().Exists(z => z == 1);
+                if () { 
+                
+                }*/
                 if (errorItems.Count == 0)
                 {
                     // 新增逻辑 收集错题内容
@@ -1654,6 +1658,9 @@ namespace TEAMModelOS.FunctionV4
                             }
                             index_item++;
                         }
+                        if (index.Count == 0) {
+                            continue;
+                        }
                         //int[] item_index = ss[n];
                         foreach (var item in index)
                         {