新版仿ok交易所-后端
1
zj
19 hours ago 640ccb9229224642515527daf87f308a7aa9bdf4
trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiC2cAdvertController.java
@@ -159,17 +159,17 @@
                page_no = "1";
            }
            if (!StringUtils.isInteger(page_no)) {
                throw new YamiShopBindException("页码不是整数");
                throw new YamiShopBindException("Page number must be an integer");
            }
            if (Integer.valueOf(page_no).intValue() <= 0) {
                throw new YamiShopBindException("页码不能小于等于0");
                throw new YamiShopBindException("Page number must be greater than 0");
            }
            int page_no_int = Integer.valueOf(page_no).intValue();
            String partyId = SecurityUtils.getUser().getUserId();
             String c2cUserId = "";
            User party = userService.getById(partyId);
            if (null == party) {
                throw new YamiShopBindException("用户不存在");
                throw new YamiShopBindException("User does not exist");
            }
            if (Arrays.asList(1, 2).contains(party.getC2cUserType())) {
                C2cUser c2cUser = c2cUserService.getByPartyId(partyId);
@@ -451,19 +451,19 @@
        String id = request.getParameter("id");
        String language = request.getParameter("language");
        if (StringUtils.isEmptyString(id)) {
            throw new YamiShopBindException("C2C广告id不正确");
            throw new YamiShopBindException("Invalid C2C advertisement ID");
        }
        C2cAdvert c2cAdvert = c2cAdvertService.getById(id);
        if (null == c2cAdvert) {
            throw new YamiShopBindException("广告不存在");
            throw new YamiShopBindException("Advertisement does not exist");
        }
        C2cUser c2cUser = this.c2cUserService.getById(c2cAdvert.getC2cUserId());
        if (null == c2cUser) {
            throw new YamiShopBindException("承兑商不存在");
            throw new YamiShopBindException("Merchant does not exist");
        }
        User c2cParty = userService.getById(c2cUser.getC2cUserPartyId());
        if (null == c2cParty) {
            throw new YamiShopBindException("承兑商的用户信息不存在");
            throw new YamiShopBindException("Merchant user info does not exist");
        }
        Map<String, String> data = new HashMap<String, String>();
        data.put("id", c2cAdvert.getUuid().toString());