新版仿ok交易所-后端
zyy
2025-09-06 1445a0ef76299a76ebc1ea61a334100fe71414c4
C2C修复
1 files modified
4 ■■■■ changed files
trading-order-service/src/main/java/com/yami/trading/service/c2c/impl/C2cOrderServiceImpl.java 4 ●●●● patch | view | raw | blame | history
trading-order-service/src/main/java/com/yami/trading/service/c2c/impl/C2cOrderServiceImpl.java
@@ -638,14 +638,14 @@
        RealNameAuthRecord party_kyc = realNameAuthRecordService.getByUserId(partyId);
        Object objKyc = this.sysparaService.find("c2c_sell_by_kyc");
        if (null != objKyc) {
            if (!(party_kyc.getStatus() == 2) && "true".equals(this.sysparaService.find("c2c_sell_by_kyc").getSvalue())) {
            if ("true".equals(this.sysparaService.find("c2c_sell_by_kyc").getSvalue()) && !(party_kyc.getStatus() == 2)) {
                throw new BusinessException(401, "无权限");
            }
        }
        HighLevelAuthRecord  party_kycHighLevel = highLevelAuthRecordService.findByUserId(partyId);
        Object objKycHigh = this.sysparaService.find("c2c_sell_by_high_kyc");
        if (null != objKycHigh) {
            if (!(party_kycHighLevel.getStatus() == 2) && "true".equals(this.sysparaService.find("c2c_sell_by_high_kyc").getSvalue())) {
            if ("true".equals(this.sysparaService.find("c2c_sell_by_high_kyc").getSvalue()) && !(party_kycHighLevel.getStatus() == 2)) {
                throw new BusinessException(1, "请先通过高级认证");
            }
        }