Bladeren bron

no message

xingzai 9 maanden geleden
bovenliggende
commit
978179a6c2
2 gewijzigde bestanden met toevoegingen van 3 en 1 verwijderingen
  1. 1 1
      models/cygx_yanxuan_special_user.go
  2. 2 0
      services/resource_data.go

+ 1 - 1
models/cygx_yanxuan_special_user.go

@@ -244,7 +244,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
 }

+ 2 - 0
services/resource_data.go

@@ -835,6 +835,8 @@ 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 {