xiaoyong931011
2020-11-23 bd141be68f96cf8c18949c160d65df7eff0cdb98
src/main/java/com/xcong/excoin/modules/member/service/impl/MemberServiceImpl.java
@@ -21,6 +21,7 @@
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;
@@ -1266,14 +1267,14 @@
   @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"));
        }
@@ -1300,8 +1301,8 @@
             */
          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);