فهرست منبع

fix bug: 给门店新增消息数的 member 值不对

shizhongqi 11 ماه پیش
والد
کامیت
33d984828a
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      wsClient/redis.go

+ 1 - 1
wsClient/redis.go

@@ -200,7 +200,7 @@ func UpdateRecentContacts(client *Client) error {
 			score := calculateScore(currentTime, unreadCount)
 			redisClient.ZAdd(ctx, key, redis.Z{
 				Score:  score,
-				Member: strconv.Itoa(int(client.userInfo.ShopId)),
+				Member: strconv.Itoa(int(client.userInfo.CustomId)),
 			})
 			// 设置过期时间
 			redisClient.Expire(ctx, key, ContactTTL)