rdluck 4 жил өмнө
parent
commit
c08a369eb4
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      controllers/bill.go

+ 2 - 2
controllers/bill.go

@@ -170,7 +170,7 @@ func (this *BillController) Detail() {
 	}
 	totalReadDuration := 0.00
 	if rddpTotal <= 0 {
-		totalReadDuration = rddpTotalPlaySeconds + float64(weekTotal)*(float64(utils.GetRandInt(3, 300))/float64(10.00))
+		totalReadDuration = rddpTotalPlaySeconds + float64(weekTotal)*(float64(utils.GetRandInt(150, 155))/float64(10.00))
 	} else {
 		totalReadDuration = rddpTotalPlaySeconds + (rddpTotalPlaySeconds/float64(rddpTotal))*float64(weekTotal)
 	}
@@ -254,7 +254,7 @@ func (this *BillController) Detail() {
 	resp.ListenReportDuration = utils.FixFloat((listenVideoPlaySeconds / 60.00), 2)
 	resp.MaxReadReportCount = maxReadReportCount
 	resp.MaxReadReportDate = maxReadReportDate.Format("2006年01月02日")
-	if lastestCreateDate != "" {
+	if lastestCreateDate == "" {
 		resp.LatestReadReportDate = ""
 	} else {
 		lastestDate, _ := time.Parse("2006-01-02", lastestCreateDate)