From 2efe860daa1eff4fec4f5036c6102859c5750f13 Mon Sep 17 00:00:00 2001 From: tianfeng <769204422@qq.com> Date: Thu, 28 May 2026 15:32:28 +0800 Subject: [PATCH] =?UTF-8?q?yomi=20=E6=B8=B8=E6=88=8F=E7=A9=BA=E5=A4=B4?= =?UTF-8?q?=E6=83=B3=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../red/circle/other/app/service/game/YomiGameServiceImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/YomiGameServiceImpl.java b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/YomiGameServiceImpl.java index 3c02437f..876c585b 100644 --- a/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/YomiGameServiceImpl.java +++ b/rc-service/rc-service-other/other-application/src/main/java/com/red/circle/other/app/service/game/YomiGameServiceImpl.java @@ -82,7 +82,8 @@ public class YomiGameServiceImpl implements YomiGameService { long expireAt = System.currentTimeMillis() / 1000 + yomiConfig.getTokenExpireSeconds(); redisTemplate.opsForValue().set(buildTokenCacheKey(token), cmd.getPlatUserId(), yomiConfig.getTokenExpireSeconds(), TimeUnit.SECONDS); - String avatar = profile.getUserAvatar().isBlank() ? "-" : profile.getUserAvatar(); + String userAvatar = profile.getUserAvatar(); + String avatar = userAvatar != null && !userAvatar.isEmpty() ? userAvatar : "-"; return YomiTokenCO.builder() .platUserId(cmd.getPlatUserId()) .platUserOpenId("") // 项目暂无 openId 概念,按协议传空