From 579177ac64462d0fec885eb10af3097245134f80 Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Tue, 02 Jun 2026 10:28:11 +0800
Subject: [PATCH] 1

---
 trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiC2cAdvertController.java |   28 ++++++++++++++--------------
 1 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiC2cAdvertController.java b/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiC2cAdvertController.java
index 397e9d2..cd555c6 100644
--- a/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiC2cAdvertController.java
+++ b/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);
@@ -226,7 +226,7 @@
                         mso.put("thirty_days_order", thirtyDaysOrderBase + thirtyDaysOrder);
                         mso.put("thirty_days_order_ratio", 0 != thirtyDaysOrderRatioBase ? thirtyDaysOrderRatioBase : thirtyDaysOrderRatio);
                         if (null != mso.get("head_img") && StringUtils.isNotEmpty(mso.get("head_img").toString())) {
-                            String path = awsS3OSSFileService.getUrl(mso.get("head_img").toString());
+                            String path = Constants.IMAGES_HTTP+mso.get("head_img").toString();
                             mso.put("head_img", path);
                         }
                         if (mso.get("pay_type") != null && StringUtils.isNotEmpty(mso.get("pay_type").toString())) {
@@ -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());
@@ -494,7 +494,7 @@
         data.put("user_code", c2cParty.getUserCode());
         data.put("user_name", c2cParty.getUserName());
         if (StringUtils.isNotEmpty(c2cUser.getHeadImg())) {
-            String path = awsS3OSSFileService.getUrl(c2cUser.getHeadImg());
+            String path = Constants.IMAGES_HTTP+c2cUser.getHeadImg();
             data.put("head_img", path);
         } else {
             data.put("head_img", "");
@@ -563,22 +563,22 @@
 //
     private String verif(String direction, String currency, String symbol, String method_type, String amount) {
         if (!StringUtils.isEmptyString(direction) && !Arrays.asList("buy", "sell").contains(direction)) {
-            return "买卖方式不正确";
+            return "Invalid trade direction";
         }
         Map<String, String> currencyMap = this.c2cAdvertService.getCurrencyMap();
         Map<String, String> symbolMap = this.c2cAdvertService.getSymbolMap();
         if (!StringUtils.isEmptyString(currency) && null != currencyMap && !currencyMap.containsKey(currency)) {
-            return "支付币种不正确";
+            return "Invalid payment currency";
         }
         if (!StringUtils.isEmptyString(symbol) && null != symbolMap && !symbolMap.containsKey(symbol)) {
-            return "上架币种不正确";
+            return "Invalid listed currency";
         }
         Map<String, String> pmtMap = this.c2cAdvertService.getC2cSyspara("c2c_payment_method_type");
         if (!StringUtils.isEmptyString(method_type) && !pmtMap.keySet().contains(method_type)) {
-            return "支付方式类型不正确";
+            return "Invalid payment method type";
         }
         if (!StringUtils.isEmptyString(amount) && (!StringUtils.isDouble(amount) || Double.valueOf(amount).doubleValue() < 0)) {
-            return "支付金额不正确";
+            return "Invalid payment amount";
         }
         return null;
     }

--
Gitblit v1.9.3