|
@@ -23,7 +23,6 @@ import (
|
|
|
"hongze/hongze_yb/services/company"
|
|
|
elasticService "hongze/hongze_yb/services/elastic"
|
|
|
"hongze/hongze_yb/services/user"
|
|
|
- "hongze/hongze_yb/task"
|
|
|
"hongze/hongze_yb/utils"
|
|
|
"html"
|
|
|
"sort"
|
|
@@ -343,7 +342,7 @@ func GetPurchaseDetail(permissionIds []int, userId uint64, classifyIdFirst int,
|
|
|
ret.Paging = response.GetPaging(pageIndex, pageSize, int(total))
|
|
|
// 执行一个协程任务,新增用户浏览记录
|
|
|
//_, tErr := BatchInsertReportView(weekReportIds, userId, classifyNameFirst, classifyIdSeconds)
|
|
|
- task.Task(BatchInsertReportView, weekReportIds, userId, classifyNameFirst, classifyIdSeconds)
|
|
|
+ go BatchInsertReportView(userId, weekReportIds, classifyNameFirst, classifyIdSeconds)
|
|
|
/*if tErr != nil {
|
|
|
err = tErr
|
|
|
return
|
|
@@ -471,7 +470,7 @@ func GetReportDetail(userinfo user.UserInfo, reportId int) (reportDetail respons
|
|
|
var likeNum int64
|
|
|
var likeEnabled int8
|
|
|
if authOk {
|
|
|
- task.Task(AddViewRecord, userinfo, reportInfo.Id, reportInfo.ClassifyNameFirst, 0)
|
|
|
+ go AddViewRecord(userinfo, reportInfo.Id, reportInfo.ClassifyNameFirst, 0)
|
|
|
reportItem.Content = html.UnescapeString(reportInfo.Content)
|
|
|
reportItem.VideoUrl = reportInfo.VideoUrl
|
|
|
//查询点赞数
|
|
@@ -479,7 +478,7 @@ func GetReportDetail(userinfo user.UserInfo, reportId int) (reportDetail respons
|
|
|
}
|
|
|
|
|
|
//新增用户访问日志
|
|
|
- task.Task(AddUserAccessRecord, userinfo, reportInfo.Id, reportInfo.ClassifyNameFirst, 0, authOk)
|
|
|
+ go AddUserAccessRecord(userinfo, reportInfo.Id, reportInfo.ClassifyNameFirst, 0, authOk)
|
|
|
reportDetail.ReportInfo = reportItem
|
|
|
reportDetail.ReportChapterList = reportTypeList
|
|
|
reportDetail.PermissionCheck = &permissionCheckInfo
|