diff --git a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs index 860053d0..fa112e62 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_ExamRecordServices.cs @@ -1213,7 +1213,7 @@ public class Ghre_ExamRecordServices : BaseServices { "Status", "Score", "FinallyScore", "AdjustScore", "ActualEndTime", "ScoreStatus", "UpdateTime", "ExamDate", "AnswerCount" }, null, $"Id='{record.Id}'"); if (exampaper.ScoreMethod == DIC_EXAM_PAPER_SCORE_METHOD.SYSTEM) - await Task.Factory.StartNew(async () => await DealPass(Db, studyRecordId)); + await DealPass(Db, studyRecordId); return ServiceResult.OprateSuccess("提交成功!"); } diff --git a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs index 27c1b582..107d333c 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs @@ -1738,7 +1738,7 @@ WHERE A.Id = '{id}'"; .Where(it => it.Id == studyRecordId && it.StaffId == App.User.StaffId) .ExecuteCommandAsync(); - await Task.Factory.StartNew(async () => await GenerateStaffStudyRecord(Db, studyRecordId, duration.Value, attachmentId)); + await GenerateStaffStudyRecord(Db, studyRecordId, duration.Value, attachmentId); return ServiceResult.OprateSuccess("记录成功!");