lrf402788946 4 年之前
父节点
当前提交
ecd20f48b3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/lesson.js

+ 1 - 1
app/service/lesson.js

@@ -322,7 +322,7 @@ class LessonService extends CrudService {
       let lydata = await this.getLyTeacherMsg(classInfo);
       let lydata = await this.getLyTeacherMsg(classInfo);
       // 整理信息
       // 整理信息
       data = { ...data, ...defaults, termid, classid, planyearid, planid };
       data = { ...data, ...defaults, termid, classid, planyearid, planid };
-      const dirIsBefore = moment().isSameOrBefore(classInfo.startdate);
+      const dirIsBefore = moment().isBefore(classInfo.startdate); // isSameOrBefore
       console.log(`${classInfo.headteacher}-${dirIsBefore}`);
       console.log(`${classInfo.headteacher}-${dirIsBefore}`);
       if (dirIsBefore) {
       if (dirIsBefore) {
         noticeList.push(data);
         noticeList.push(data);