| | |
| | | import com.xcong.excoin.common.enumerates.CoinTypeEnum; |
| | | import com.xcong.excoin.common.enumerates.SymbolEnum; |
| | | import com.xcong.excoin.common.response.Result; |
| | | import com.xcong.excoin.common.system.dao.WalletDetailDao; |
| | | import com.xcong.excoin.common.system.dao.WtTokenDao; |
| | | import com.xcong.excoin.common.system.dao.WtWalletDao; |
| | | 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.entity.WtToken; |
| | | import com.xcong.excoin.common.system.entity.WtWallet; |
| | | import com.xcong.excoin.common.system.entity.WtWalletDetail; |
| | | import com.xcong.excoin.common.system.dto.WtWalletDto; |
| | | import com.xcong.excoin.common.system.service.CommonService; |
| | | import com.xcong.excoin.common.system.vo.LoginVo; |
| | | import com.xcong.excoin.modules.coin.dao.MemberAccountMoneyChangeDao; |
| | | import com.xcong.excoin.modules.coin.entity.MemberAccountMoneyChange; |
| | | import com.xcong.excoin.modules.login.dao.WalletDetailDao; |
| | | import com.xcong.excoin.modules.login.dao.WtTokenDao; |
| | | import com.xcong.excoin.modules.login.dao.WtWalletDao; |
| | | import com.xcong.excoin.modules.login.dao.WtWordDao; |
| | | import com.xcong.excoin.modules.login.entity.WtToken; |
| | | import com.xcong.excoin.modules.login.entity.WtWallet; |
| | | import com.xcong.excoin.modules.login.entity.WtWalletDetail; |
| | | import com.xcong.excoin.modules.login.vo.LoginVo; |
| | | import com.xcong.excoin.modules.member.dao.*; |
| | | import com.xcong.excoin.modules.member.entity.*; |
| | | import com.xcong.excoin.modules.member.parameter.dto.MemberAddCoinAddressDto; |
| | |
| | | |
| | | @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); |