|
@@ -134,7 +134,13 @@ func (this *ArticleController) Detail() {
|
|
|
|
|
|
if strings.Contains(companyPermission, articlePermissionPermissionName) {
|
|
if strings.Contains(companyPermission, articlePermissionPermissionName) {
|
|
hasPermission = 1
|
|
hasPermission = 1
|
|
- recordCount, _ := models.GetNoAddStoptimeArticleCount(uid, articleId)
|
|
|
|
|
|
+ detailNew, err := models.GetNewArticleHistoryRecord(uid, articleId)
|
|
|
|
+ if err != nil {
|
|
|
|
+ br.Msg = "获取信息失败"
|
|
|
|
+ br.ErrMsg = "获取信息失败,Err:" + err.Error()
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ recordCount, _ := models.GetNoAddStoptimeArticleCount(detailNew.Id)
|
|
if recordCount < 1 {
|
|
if recordCount < 1 {
|
|
historyRecord := new(models.CygxArticleHistoryRecord)
|
|
historyRecord := new(models.CygxArticleHistoryRecord)
|
|
historyRecord.UserId = uid
|
|
historyRecord.UserId = uid
|