|
@@ -584,6 +584,7 @@ func (this *ArticleController) AddStopTime() {
|
|
articleId := req.ArticleId
|
|
articleId := req.ArticleId
|
|
stopTime := req.StopTime
|
|
stopTime := req.StopTime
|
|
outType := req.OutType
|
|
outType := req.OutType
|
|
|
|
+ source := req.Source
|
|
if articleId <= 0 {
|
|
if articleId <= 0 {
|
|
br.Msg = "参数错误"
|
|
br.Msg = "参数错误"
|
|
br.ErrMsg = "参数错误"
|
|
br.ErrMsg = "参数错误"
|
|
@@ -595,6 +596,10 @@ func (this *ArticleController) AddStopTime() {
|
|
if outType != 2 {
|
|
if outType != 2 {
|
|
outType = 1
|
|
outType = 1
|
|
}
|
|
}
|
|
|
|
+ if source != "PC" {
|
|
|
|
+ source = "MOBILE"
|
|
|
|
+ }
|
|
|
|
+
|
|
detail := new(models.ArticleDetail)
|
|
detail := new(models.ArticleDetail)
|
|
hasPermission := 0
|
|
hasPermission := 0
|
|
hasFree := 0
|
|
hasFree := 0
|
|
@@ -679,6 +684,7 @@ func (this *ArticleController) AddStopTime() {
|
|
record.CompanyName = user.CompanyName
|
|
record.CompanyName = user.CompanyName
|
|
record.StopTime = stopTime
|
|
record.StopTime = stopTime
|
|
record.OutType = outType
|
|
record.OutType = outType
|
|
|
|
+ record.Source = source
|
|
if !utils.Rc.IsExist(key) || outType != 2 {
|
|
if !utils.Rc.IsExist(key) || outType != 2 {
|
|
//新增浏览记录
|
|
//新增浏览记录
|
|
go models.AddCygxArticleViewRecordNewpv(record)
|
|
go models.AddCygxArticleViewRecordNewpv(record)
|