Browse Source

fix:设置暂停时间,如果没有设置,那么返回空串

Roc 7 months ago
parent
commit
56ba659740
1 changed files with 7 additions and 0 deletions
  1. 7 0
      controllers/report.go

+ 7 - 0
controllers/report.go

@@ -102,6 +102,13 @@ func (this *ReportController) GetDayWeekReportChapterTypeList() {
 					v.PauseStartTime = ``
 					v.PauseEndTime = ``
 				}
+			} else {
+				if v.PauseStartTime == `0001-01-01` {
+					v.PauseStartTime = ``
+				}
+				if v.PauseEndTime == `0001-01-01` {
+					v.PauseEndTime = ``
+				}
 			}
 			dayList = append(dayList, v)
 		}