yomi 游戏空头想问题修复
This commit is contained in:
parent
0a48c9296d
commit
2efe860daa
@ -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 概念,按协议传空
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user