可信空间连接器入住接口
Showing
1 changed file
with
4 additions
and
0 deletions
| ... | @@ -16,6 +16,7 @@ import io.swagger.v3.oas.annotations.Parameter; | ... | @@ -16,6 +16,7 @@ import io.swagger.v3.oas.annotations.Parameter; |
| 16 | import io.swagger.v3.oas.annotations.tags.Tag; | 16 | import io.swagger.v3.oas.annotations.tags.Tag; |
| 17 | import jakarta.annotation.Resource; | 17 | import jakarta.annotation.Resource; |
| 18 | import jakarta.validation.Valid; | 18 | import jakarta.validation.Valid; |
| 19 | import org.apache.commons.lang3.ObjectUtils; | ||
| 19 | import org.apache.commons.lang3.StringUtils; | 20 | import org.apache.commons.lang3.StringUtils; |
| 20 | import org.springframework.web.bind.annotation.*; | 21 | import org.springframework.web.bind.annotation.*; |
| 21 | 22 | ||
| ... | @@ -127,6 +128,9 @@ public class TdsConnectorIdentityController { | ... | @@ -127,6 +128,9 @@ public class TdsConnectorIdentityController { |
| 127 | @SystemLog(value = "连接器身份信息-查询有效的连接器信息") | 128 | @SystemLog(value = "连接器身份信息-查询有效的连接器信息") |
| 128 | public CommonRes<String> getConnector() { | 129 | public CommonRes<String> getConnector() { |
| 129 | TdsConnectorIdentityRSVO vo = tdsConnectorIdentityService.getEffectiveConnector(); | 130 | TdsConnectorIdentityRSVO vo = tdsConnectorIdentityService.getEffectiveConnector(); |
| 131 | if(ObjectUtils.isEmpty(vo)){ | ||
| 132 | return CommonRes.success(""); | ||
| 133 | } | ||
| 130 | return CommonRes.success(vo.getConnectorIdentity()); | 134 | return CommonRes.success(vo.getConnectorIdentity()); |
| 131 | } | 135 | } |
| 132 | 136 | ... | ... |
-
Please register or sign in to post a comment