| | |
| | | import com.xcong.excoin.modules.platform.dao.PlatformSymbolsCoinDao; |
| | | import com.xcong.excoin.modules.platform.entity.PlatformFeeSettingEntity; |
| | | import com.xcong.excoin.modules.platform.entity.PlatformSymbolsCoinEntity; |
| | | import com.xcong.excoin.modules.yunding.dao.YdBasicLevelSettingDao; |
| | | import com.xcong.excoin.modules.yunding.entity.YdBasicLevelSettingEntity; |
| | | import com.xcong.excoin.utils.MessageSourceUtils; |
| | | import com.xcong.excoin.utils.RedisUtils; |
| | | import com.xcong.excoin.utils.ShareCodeUtil; |
| | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import org.apache.commons.collections4.Put; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.security.core.context.SecurityContextHolder; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | |
| | | |
| | | @Resource |
| | | private MemberWalletContractSimulateDao memberWalletContractSimulateDao; |
| | | |
| | | @Autowired |
| | | private YdBasicLevelSettingDao ydBasicLevelSettingDao; |
| | | |
| | | @Transactional() |
| | | @Override |
| | |
| | | //获取用户ID |
| | | Long memberId = LoginUserUtils.getAppLoginUser().getId(); |
| | | MemberEntity memberEntity = memberDao.selectById(memberId); |
| | | |
| | | MemberInfoVo memberInfoVo = new MemberInfoVo(); |
| | | if (ObjectUtil.isNotEmpty(memberEntity)) { |
| | | String email = memberEntity.getEmail(); |
| | |
| | | memberInfoVo.setPhone(email); |
| | | } |
| | | |
| | | if (memberEntity.getAgentLevel() != null) { |
| | | YdBasicLevelSettingEntity agent = ydBasicLevelSettingDao.selectById(memberEntity.getAgentLevel().longValue()); |
| | | memberInfoVo.setAgentName(agent.getName()); |
| | | memberInfoVo.setAgentId(agent.getId()); |
| | | } |
| | | memberInfoVo.setInviteId(memberEntity.getInviteId()); |
| | | } |
| | | return Result.ok(memberInfoVo); |