|
@@ -80,7 +80,7 @@ func (this *BillController) Detail() {
|
|
|
createDate = user.LastUpdatedTime.Format("2006年01月02日")
|
|
|
}
|
|
|
if togetherDay == "0" {
|
|
|
- togetherDay="1"
|
|
|
+ togetherDay = "1"
|
|
|
}
|
|
|
//uid = 41555
|
|
|
|
|
@@ -170,11 +170,11 @@ func (this *BillController) Detail() {
|
|
|
}
|
|
|
totalReadDuration := 0.00
|
|
|
if rddpTotal <= 0 {
|
|
|
- totalReadDuration = rddpTotalPlaySeconds + float64(weekTotal)*(float64(utils.GetRandInt(150, 155))/float64(10.00))
|
|
|
+ totalReadDuration = rddpTotalPlaySeconds + float64(weekTotal)*float64(120.00) //(float64(utils.GetRandInt(150, 155))/float64(10.00))
|
|
|
} else {
|
|
|
- totalReadDuration = rddpTotalPlaySeconds + (rddpTotalPlaySeconds/float64(rddpTotal))*float64(weekTotal)
|
|
|
+ totalReadDuration = rddpTotalPlaySeconds + float64(weekTotal)*float64(120.00) //(rddpTotalPlaySeconds/float64(rddpTotal))*float64(weekTotal)
|
|
|
}
|
|
|
-
|
|
|
+ fmt.Println(uid, rddpTotalPlaySeconds, weekTotal, totalReadDuration)
|
|
|
dayType := `day`
|
|
|
dayTotal, err := models.GetWeekTotalReadByType(uid, dayType, startDate)
|
|
|
if err != nil && err.Error() != utils.ErrNoRow() {
|
|
@@ -276,34 +276,34 @@ func (this *BillController) Detail() {
|
|
|
{
|
|
|
|
|
|
annualReport := new(models.AnnualReport)
|
|
|
- annualReport.AnnualReportDate="2020"
|
|
|
- annualReport.UserId=uid
|
|
|
- annualReport.Mobile=userInfo.Mobile
|
|
|
- annualReport.Email=userInfo.Email
|
|
|
- annualReport.CompanyId=userInfo.CompanyId
|
|
|
- annualReport.RealName=realName
|
|
|
- annualReport.TogetherDay=togetherDay
|
|
|
- annualReport.CreateDate=createDate
|
|
|
- annualReport.FirstReadReportType=firstReadReportType
|
|
|
- annualReport.FirstReadReportTitle=firstReadReportTitle
|
|
|
- annualReport.ListenReportCount=listenCount
|
|
|
- annualReport.ListenReportDuration=listenVideoPlaySeconds
|
|
|
- annualReport.MaxReadReportDate=resp.MaxReadReportDate
|
|
|
- annualReport.MaxReadReportCount=resp.MaxReadReportCount
|
|
|
- annualReport.LatestReadReportDate=resp.LatestReadReportDate
|
|
|
- annualReport.LatestReadReportTime=resp.LatestReadReportTime
|
|
|
- annualReport.LatestReadReportDateDuration=resp.LatestReadReportDateDuration
|
|
|
- annualReport.MaxOpenReportClassify=resp.MaxOpenReportClassify
|
|
|
- annualReport.MaxOpenReportCount=resp.MaxOpenReportCount
|
|
|
- annualReport.TotalReadDuration=resp.TotalReadDuration
|
|
|
- annualReport.TotalReportDayCount=resp.TotalReportDayCount
|
|
|
- annualReport.TotalReportWeekCount=resp.TotalReportWeekCount
|
|
|
- annualReport.TotalReportMonthCount=resp.TotalReportMonthCount
|
|
|
- annualReport.TotalReportTwoWeekCount=resp.TotalReportTwoWeekCount
|
|
|
- annualReport.TotalReportRddpCount=resp.TotalReportRddpCount
|
|
|
- annualReport.TotalReport=resp.TotalReport
|
|
|
- annualReport.LearnDay=resp.LearnDay
|
|
|
- annualReport.CreateTime=time.Now()
|
|
|
+ annualReport.AnnualReportDate = "2020"
|
|
|
+ annualReport.UserId = uid
|
|
|
+ annualReport.Mobile = userInfo.Mobile
|
|
|
+ annualReport.Email = userInfo.Email
|
|
|
+ annualReport.CompanyId = userInfo.CompanyId
|
|
|
+ annualReport.RealName = realName
|
|
|
+ annualReport.TogetherDay = togetherDay
|
|
|
+ annualReport.CreateDate = createDate
|
|
|
+ annualReport.FirstReadReportType = firstReadReportType
|
|
|
+ annualReport.FirstReadReportTitle = firstReadReportTitle
|
|
|
+ annualReport.ListenReportCount = listenCount
|
|
|
+ annualReport.ListenReportDuration = listenVideoPlaySeconds
|
|
|
+ annualReport.MaxReadReportDate = resp.MaxReadReportDate
|
|
|
+ annualReport.MaxReadReportCount = resp.MaxReadReportCount
|
|
|
+ annualReport.LatestReadReportDate = resp.LatestReadReportDate
|
|
|
+ annualReport.LatestReadReportTime = resp.LatestReadReportTime
|
|
|
+ annualReport.LatestReadReportDateDuration = resp.LatestReadReportDateDuration
|
|
|
+ annualReport.MaxOpenReportClassify = resp.MaxOpenReportClassify
|
|
|
+ annualReport.MaxOpenReportCount = resp.MaxOpenReportCount
|
|
|
+ annualReport.TotalReadDuration = resp.TotalReadDuration
|
|
|
+ annualReport.TotalReportDayCount = resp.TotalReportDayCount
|
|
|
+ annualReport.TotalReportWeekCount = resp.TotalReportWeekCount
|
|
|
+ annualReport.TotalReportMonthCount = resp.TotalReportMonthCount
|
|
|
+ annualReport.TotalReportTwoWeekCount = resp.TotalReportTwoWeekCount
|
|
|
+ annualReport.TotalReportRddpCount = resp.TotalReportRddpCount
|
|
|
+ annualReport.TotalReport = resp.TotalReport
|
|
|
+ annualReport.LearnDay = resp.LearnDay
|
|
|
+ annualReport.CreateTime = time.Now()
|
|
|
go models.AddAnnualReport(annualReport)
|
|
|
}
|
|
|
br.Ret = 200
|