Explorar o código

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

shizhongqi hai 11 meses
pai
achega
33d984828a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)