fix(测试跟踪): 没有填写第三方平台账号信息,创建TAPD缺陷报错

--bug=1021427 --user=陈建星 【测试跟踪】缺陷管理-提交缺陷到azure失败 https://www.tapd.cn/55049933/s/1321476
This commit is contained in:
chenjianxing 2022-12-30 13:49:42 +08:00 committed by jianxing
parent 8e5455a00c
commit 1155378c4b
1 changed files with 5 additions and 1 deletions

View File

@ -19,7 +19,11 @@ public class UserService {
UserMapper userMapper;
public UserDTO.PlatformInfo getCurrentPlatformInfo(String workspaceId) {
return JSON.parseObject(getCurrentPlatformInfoStr(workspaceId), UserDTO.PlatformInfo.class);
String currentPlatformInfoStr = getCurrentPlatformInfoStr(workspaceId);
if (StringUtils.isNotBlank(currentPlatformInfoStr)) {
JSON.parseObject(currentPlatformInfoStr, UserDTO.PlatformInfo.class);
}
return null;
}
public String getCurrentPlatformInfoStr(String workspaceId) {