rdluck преди 4 години
родител
ревизия
966ddeff9d
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      controllers/bill.go

+ 3 - 1
controllers/bill.go

@@ -79,7 +79,9 @@ func (this *BillController) Detail() {
 		togetherDay = expireDay
 		createDate = user.LastUpdatedTime.Format("2006年01月02日")
 	}
-
+	if togetherDay == "0" {
+		togetherDay="1"
+	}
 	//uid = 41555
 
 	firstReadReportType, firstReadReportTitle, err := models.GetFirstReportInfo(uid, startDate)