refactor(个人中心): 第三方平台账号获取

This commit is contained in:
song-cc-rock 2024-01-25 19:23:34 +08:00 committed by 刘瑞斌
parent 0b03b3acbc
commit a7509b47dc
1 changed files with 1 additions and 2 deletions

View File

@ -15,7 +15,6 @@ import io.metersphere.system.log.dto.LogDTO;
import io.metersphere.system.log.service.OperationLogService;
import io.metersphere.system.mapper.UserExtendMapper;
import jakarta.annotation.Resource;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
@ -97,7 +96,7 @@ public class UserPlatformAccountService {
*/
public Map<String, Object> get(String userId, String orgId) {
UserExtend userExtend = userExtendMapper.selectByPrimaryKey(userId);
if (userExtend == null || StringUtils.isBlank(new String(userExtend.getPlatformInfo()))) {
if (userExtend == null || userExtend.getPlatformInfo() == null) {
return null;
}
// noinspection unchecked