From 1178558c4e20a4e0932d80d20edb97a6920e36bc Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Fri, 7 Mar 2025 09:45:08 +0800 Subject: [PATCH] 1 --- Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs index f4fcfac2..14bd8240 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs @@ -1047,7 +1047,7 @@ public class Ghre_StudyRecordServices : BaseServices= 100 || !(x.CourseBeginDate.Value.Date <= DateTime.Now.Date && x.CourseEndDate.Value.Date >= DateTime.Now.Date)) // x.DisableStudyBtn = true; - if (x.StudyProgress < 100 || x.ExamId.IsNull()) + if ((x.StudyProgress < 100 || x.ExamId.IsNull()) && x.IsRequireStudy != false) x.DisableExamBtn = true; if (x.ExamId.IsNotEmptyOrNull() && (x.ExamBeginDate > dt || dt > x.ExamEndDate)) x.DisableExamBtn = true;