| | |
| | | import com.xcong.excoin.common.system.dao.WtWordDao; |
| | | import com.xcong.excoin.common.system.dto.OutCenterRegisterDto; |
| | | import com.xcong.excoin.common.system.dto.RegisterDto; |
| | | import com.xcong.excoin.common.system.dto.WtWalletDto; |
| | | import com.xcong.excoin.common.system.entity.WtToken; |
| | | import com.xcong.excoin.common.system.entity.WtWallet; |
| | | import com.xcong.excoin.common.system.entity.WtWalletDetail; |
| | |
| | | |
| | | @Transactional |
| | | @Override |
| | | public Result recovery(WtWallet wallet) { |
| | | public Result recovery(WtWalletDto wtWalletDto) { |
| | | |
| | | LoginVo loginVo = new LoginVo(); |
| | | |
| | | /** |
| | | * 判断钱包是否存在 |
| | | */ |
| | | List<String> mnemonicWordList = wallet.getMnemonicWordList(); |
| | | List<String> mnemonicWordList = wtWalletDto.getMnemonicWordList(); |
| | | if(CollectionUtils.isEmpty(mnemonicWordList)){ |
| | | return Result.fail(MessageSourceUtils.getString("login_recovery_001")); |
| | | } |
| | |
| | | */ |
| | | MemberEntity member = new MemberEntity(); |
| | | member.setAddress(address); |
| | | member.setPassword(MD5Util.strToMD5(wallet.getPassword())); |
| | | member.setTradePassword(MD5Util.strToMD5(wallet.getPassword())); |
| | | member.setPassword(MD5Util.strToMD5(wtWalletDto.getPassword())); |
| | | member.setTradePassword(MD5Util.strToMD5(wtWalletDto.getPassword())); |
| | | member.setAccountStatus(MemberEntity.ACCOUNT_STATUS_ENABLE); |
| | | member.setAccountType(MemberEntity.ACCOUNT_TYPE_NORMAL); |
| | | member.setAgentLevel(MemberEntity.ACCOUNT_AGENT_LEVEL); |