记得上下班打卡 | git大法好,push需谨慎

Commit da8c90bc authored by anjiabin's avatar anjiabin

增加xuper用户同步接口

parent 8c85baad
...@@ -78,6 +78,13 @@ public class GalaxyUserController { ...@@ -78,6 +78,13 @@ public class GalaxyUserController {
@ApiOperation(value = "NFT百度用户同步") @ApiOperation(value = "NFT百度用户同步")
@PostMapping(value = {"xuperUserSync"}) @PostMapping(value = {"xuperUserSync"})
public boolean xuperUserSync(@Valid @RequestBody GalaxyUserRegisterReqDto reqDto) { public boolean xuperUserSync(@Valid @RequestBody GalaxyUserRegisterReqDto reqDto) {
//判断百度链用户是否已经存在
GalaxyUserInfoBo xuperUserInfoBo = dataUtils.getGalaxyUserInfo(GalaxyEnum.RouterTypeEnum.XUPER.getCode(), reqDto.getUserId());
if(StringUtil.isNotNull(xuperUserInfoBo)&&StringUtil.isNotEmpty(xuperUserInfoBo.getBlockChainAddress())){
log.error("NFT百度用户同步 error 该用户百度链用户已经开通成功无需再次开通 reqParam:{}", JsonUtils.toJson(reqDto));
return true;
}
//获取至信链用户开通信息
GalaxyUserInfoBo userInfoBo = dataUtils.getGalaxyUserInfo(reqDto.getRouterType(), reqDto.getUserId()); GalaxyUserInfoBo userInfoBo = dataUtils.getGalaxyUserInfo(reqDto.getRouterType(), reqDto.getUserId());
if(StringUtil.isNotEmpty(userInfoBo.getBlockChainAddress())){ if(StringUtil.isNotEmpty(userInfoBo.getBlockChainAddress())){
reqDto.setRouterType(GalaxyEnum.RouterTypeEnum.XUPER.getCode()); reqDto.setRouterType(GalaxyEnum.RouterTypeEnum.XUPER.getCode());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment