瀏覽代碼

Merge branch 'master' of http://8.136.199.33:3000/cxzhang/hongze_mfyx into mfyx_3.3.1

xingzai 9 月之前
父節點
當前提交
954f3445cb
共有 2 個文件被更改,包括 2 次插入1 次删除
  1. 1 1
      models/cygx_yanxuan_special_user.go
  2. 1 0
      services/cygx_yanxuan_special.go

+ 1 - 1
models/cygx_yanxuan_special_user.go

@@ -247,7 +247,7 @@ func UpdateYanxuanSpecialAuthorFansNum(fansNum, userId int) (err error) {
 func UdpateYanxuanSpecialauthorArticleNum(articleNum, userId int) (err error) {
 	o := orm.NewOrm()
 	sql := ``
-	sql = `UPDATE cygx_yanxuan_special_author SET article_num = ? WHERE user_id = ? `
+	sql = `UPDATE cygx_yanxuan_special_author SET article_num = ? ,article_publish_time = NOW(), modify_time = NOW()   WHERE user_id = ? `
 	_, err = o.Raw(sql, articleNum, userId).Exec()
 	return
 }

+ 1 - 0
services/cygx_yanxuan_special.go

@@ -272,6 +272,7 @@ func UpdateYanxuanSpecialResourceData(sourceId int) {
 		item.SearchTitle = detail.Title
 		item.SearchContent = ""
 		item.SearchOrderTime = publishDate
+		item.ChartPermissionId = utils.CHART_PERMISSION_ID_YANXUAN
 		if totalData == 0 {
 			_, e := models.AddCygxResourceData(item)
 			if e != nil {