Browse Source

feat:查看原文调整

fuwencai 1 year ago
parent
commit
c11b05955c
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/jfw/modules/publicapply/src/userbase/entity/entity.go

+ 2 - 2
src/jfw/modules/publicapply/src/userbase/entity/entity.go

@@ -464,8 +464,8 @@ func (o *OriginalPower) SavePowerRecord(originalUrl string) {
 	if rs != nil && len(*rs) > 0 && util.IntAll((*rs)[0]["id"]) != 0 {
 		// 存在则直接次数加一,更新更新时间
 		id := util.IntAll((*rs)[0]["id"])
-		updateSql := fmt.Sprintf("update  %s set views_times = views_times+1,update_time=? where id =?", TabelOriginalPowerRecord)
-		_, err := db.Mysql.ExecBySql(updateSql, date.NowFormat(date.Date_Full_Layout), id)
+		updateSql := fmt.Sprintf("update  %s set views_times = views_times+1,update_time=?,client=? where id =?", TabelOriginalPowerRecord)
+		_, err := db.Mysql.ExecBySql(updateSql, date.NowFormat(date.Date_Full_Layout),o.Client, id)
 		if err != nil {
 			log.Println("更新浏览次数失败:", err, updateSql, date.NowFormat(date.Date_Full_Layout), id)
 		}