wangchuanjin il y a 4 ans
Parent
commit
237f7cdbc5
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      points/points.go

+ 1 - 1
points/points.go

@@ -100,7 +100,7 @@ func jyweb_article_open(msg *model.Message) {
 
 //
 func jy_open(msg *model.Message, point int64) {
-	key := fmt.Sprintf("jypoints_share_article_open_%s_%s", date.NowFormat(date.Date_yyyyMMdd), msg.E_userId)
+	key := fmt.Sprintf("jypoints_share_article_open_%s", msg.E_userId)
 	if redis.Incr(Redis_Main, key) <= Config.DocPoints.Open.Max {
 		now := time.Now()
 		redis.SetExpire(Redis_Main, key, int(time.Date(now.Year(), now.Month(), now.Day()+1, 0, 0, 0, 0, time.Local).Unix()-now.Unix()))