| | |
| | | import com.yami.trading.bean.model.User; |
| | | import com.yami.trading.bean.model.UserSafewordApply; |
| | | import com.yami.trading.bean.user.dto.UserSafewordApplyDto; |
| | | import com.yami.trading.common.constants.Constants; |
| | | import com.yami.trading.common.constants.TipConstants; |
| | | import com.yami.trading.common.domain.BaseEntity; |
| | | import com.yami.trading.common.exception.YamiShopBindException; |
| | |
| | | String idcard_path_hold_path = ""; |
| | | |
| | | if (!StringUtils.isNullOrEmpty(apply.getIdcardPathFront())) { |
| | | idcard_path_front_path = awsS3OSSFileService.getUrl(apply.getIdcardPathFront()); |
| | | idcard_path_front_path = Constants.IMAGES_HTTP+apply.getIdcardPathFront(); |
| | | } |
| | | result.put("idcard_path_front_path", idcard_path_front_path); |
| | | |
| | | if (!StringUtils.isNullOrEmpty(apply.getIdcardPathBack())) { |
| | | idcard_path_back_path =awsS3OSSFileService.getUrl(apply.getIdcardPathBack()); |
| | | idcard_path_back_path =Constants.IMAGES_HTTP+apply.getIdcardPathBack(); |
| | | } |
| | | |
| | | result.put("idcard_path_back_path", idcard_path_back_path); |
| | | |
| | | if (!StringUtils.isNullOrEmpty(apply.getIdcardPathHold())) { |
| | | idcard_path_hold_path = awsS3OSSFileService.getUrl(apply.getIdcardPathHold()); |
| | | idcard_path_hold_path = Constants.IMAGES_HTTP+apply.getIdcardPathHold(); |
| | | } |
| | | result.put("idcard_path_hold_path", idcard_path_hold_path); |
| | | |
| | |
| | | // 操作类型 operate: 0/修改资金密码;1/取消谷歌绑定;2/取消手机绑定;3/取消邮箱绑定; |
| | | switch (apply.getOperate()) { |
| | | case 0: |
| | | user.setSafePassword(passwordEncoder.encode(apply.getSafeword())); |
| | | user.setSafePassword(apply.getSafeword()); |
| | | break; |
| | | case 1: |
| | | // if (!user.isGoogleAuthBind()) { |