新版仿ok交易所-后端
C2C
zyy
2025-10-23 a81d07227a9aa1033b70dc488575dad9830d5852
trading-order-service/src/main/java/com/yami/trading/service/c2c/impl/C2cOrderServiceImpl.java
@@ -517,13 +517,12 @@
            throw new YamiShopBindException("承兑商的用户信息不存在");
        }
        C2cPaymentMethod method = this.c2cPaymentMethodService.get(c2cOrder.getPaymentMethodId());
        if (C2cAdvert.DIRECTION_SELL.equals(c2cAdvert.getDirection())) {
        if (null == method) {
            throw new YamiShopBindException("支付方式不存在");
        }
        if (C2cAdvert.DIRECTION_SELL.equals(c2cAdvert.getDirection())) {
            if (!party.isWithdrawAuthority()) {
                throw new YamiShopBindException( "无权限");
            }
@@ -536,9 +535,9 @@
            }
        } else {
            if (!method.getPartyId().equals(c2cUser.getC2cUserPartyId())) {
            /*if (!method.getPartyId().equals(c2cUser.getC2cUserPartyId())) {
                throw new YamiShopBindException("支付方式不匹配该承兑商");
            }
            }*/
        }
        c2cOrder.setC2cUserType(c2cUser.getC2cUserType());
@@ -554,6 +553,9 @@
        c2cOrder.setPayRate(c2cAdvert.getPayRate());
        c2cOrder.setSymbolValue(c2cAdvert.getSymbolValue());
        c2cOrder.setExpireTime(c2cAdvert.getExpireTime());
        if (C2cAdvert.DIRECTION_SELL.equals(c2cAdvert.getDirection())) {
        c2cOrder.setMethodType(method.getMethodType());
        c2cOrder.setMethodName(method.getMethodName());
        c2cOrder.setMethodImg(method.getMethodImg());
@@ -589,6 +591,8 @@
        c2cOrder.setParamName15(method.getParamName15());
        c2cOrder.setParamValue15(method.getParamValue15());
        c2cOrder.setQrcode(method.getQrcode());
        }
        c2cOrder.setCreateTime(new Date());
        c2cOrder.setHandleTime(null);
        c2cOrder.setCloseTime(DateUtils.addMinute(c2cOrder.getCreateTime(), c2cOrder.getExpireTime()));