新版仿ok交易所-后端
1
zyy
2026-03-09 4164ba59cb88d33b191f42d3bef122f6f7af6312
trading-order-service/src/main/java/com/yami/trading/service/impl/UserSafewordApplyServiceImpl.java
@@ -8,6 +8,7 @@
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;
@@ -93,18 +94,18 @@
        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);
@@ -210,7 +211,7 @@
            // 操作类型 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()) {