From d141ce58db8d80b448f11e37c16d4d5d194a3ec7 Mon Sep 17 00:00:00 2001 From: xiaochanghai Date: Wed, 7 May 2025 15:21:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=94=AF=E4=BA=9A=E5=A8=81=20=E7=8E=B0?= =?UTF-8?q?=E5=9C=A8=E9=97=AE=E9=A2=98=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs index b8dbcae0..e511ea9f 100644 --- a/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs +++ b/Tiobon.Core.Services/Ghre/Ghre_StudyRecordServices.cs @@ -1092,6 +1092,13 @@ public class Ghre_StudyRecordServices : BaseServices= x.CourseBeginDate && dt <= x.CourseEndDate) + x.DisableStudyBtn = false; + else + x.DisableStudyBtn = true; }); return new ServicePageResult(filter.pageNum, total, filter.pageSize, entitys); @@ -1816,7 +1823,9 @@ WHERE A.Id = '{id}'"; await ExamHelper.MarkCompleteStatusAsync(Db, record); } - var studyProgress1 = studyProgress.ObjToInt(); + var studyProgress1 = Convert.ToInt32(studyProgress); + _logger.LogInformation($"【记录学习时长】studyProgress2:{studyProgress}"); + _logger.LogInformation($"【记录学习时长】studyProgress3:{studyProgress1}"); if (studyProgress > 0) await Db.Updateable() .SetColumns(it => new Ghre_StudyRecord()