yomi 游戏空头想问题修复

This commit is contained in:
tianfeng 2026-05-28 15:32:28 +08:00
parent 0a48c9296d
commit 2efe860daa

View File

@ -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 概念按协议传空