|
@@ -232,7 +232,7 @@ Hello {tmdname}, here is the summary report of the homework tasks you have poste
|
|
|
string key = score.Element.ToString();
|
|
|
//homework_going.Add(key, val);
|
|
|
homework_submit_today.TryAdd(key, val);
|
|
|
-
|
|
|
+ keys.Add(key);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -329,6 +329,10 @@ Hello {tmdname}, here is the summary report of the homework tasks you have poste
|
|
|
//{
|
|
|
// continue;
|
|
|
//}
|
|
|
+ //if (!(teacher.id.Equals("1535418750")))
|
|
|
+ //{
|
|
|
+ // continue;
|
|
|
+ //}
|
|
|
StringBuilder notify = new StringBuilder();
|
|
|
#if DEBUG
|
|
|
int sendTime_pm = now.Hour;
|
|
@@ -410,7 +414,7 @@ Hello {tmdname}, here is the summary report of the homework tasks you have poste
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- await dingDing.SendBotMsg($"{teacher.name},{homework_submit_today.ToJsonString()},pm:{pm},am:{am},tztH:{tzt.Hour},sendPm:{sendTime_pm},sendAm:{sendTime_am}", GroupNames.成都开发測試群組);
|
|
|
+
|
|
|
foreach (var homeworksm in homework_submit)
|
|
|
{
|
|
|
|
|
@@ -548,6 +552,8 @@ Hello {tmdname}, here is the summary report of the homework tasks you have poste
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ // await dingDing.SendBotMsg($"{teacher.name},{homework_submit_today.ToJsonString()},pm:{pm},am:{am},tztH:{tzt.Hour},sendPm:{sendTime_pm},sendAm:{sendTime_am},examCount:{examCount},lessonCount:{lessonCount},homeworkCount:{homeworkCount}", GroupNames.成都开发測試群組);
|
|
|
if (tzt.Hour==sendTime_pm && (examCount>0 || lessonCount>0 || homeworkCount>0 || (grouplist.Count>0 && !string.IsNullOrWhiteSpace(grouplistSB.ToString()))))
|
|
|
{
|
|
|
string template=string.Empty;
|