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/ApiPaymentMethod2Controller.java | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiPaymentMethod2Controller.java b/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiPaymentMethod2Controller.java
index cea29af..c15d052 100644
--- a/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiPaymentMethod2Controller.java
+++ b/trading-order-admin/src/main/java/com/yami/trading/api/controller/ApiPaymentMethod2Controller.java
@@ -115,7 +115,7 @@
String id = request.getParameter("id");
List<C2cOrder> order = c2cOrderService.getByPayId(id);
if (ObjectUtils.isNotEmpty(order)) {
- throw new YamiShopBindException("当前支付方式有未处理完成的订单!");
+ throw new YamiShopBindException("Pending orders exist for this payment method");
}
this.c2cPaymentMethodService.removeById(id);
return Result.succeed();
@@ -130,7 +130,7 @@
String language = request.getParameter("language");
C2cPaymentMethod method = this.c2cPaymentMethodService.getById(id);
if (null == method) {
- throw new BusinessException("支付方式不存在");
+ throw new BusinessException("Payment method does not exist");
}
if (StringUtils.isNotEmpty(method.getMethodImg())) {
method.setMethodImg(Constants.IMAGES_HTTP+method.getMethodImg());
@@ -167,24 +167,24 @@
String qrcode = request.getParameter("qrcode");
String remark = request.getParameter("remark");
if (StringUtils.isNullOrEmpty(method_config_id)) {
- throw new BusinessException("支付方式模板不正确");
+ throw new BusinessException("Invalid payment method template");
}
if (StringUtils.isNullOrEmpty(real_name)) {
- throw new BusinessException("真实姓名必填");
+ throw new BusinessException("Real name is required");
}
if (StringUtils.isNullOrEmpty(param_value1)) {
- throw new BusinessException("参数值1必填");
+ throw new BusinessException("Parameter value 1 is required");
}
C2cPaymentMethodConfig methodConfig = this.c2cPaymentMethodConfigService.getById(method_config_id);
if (null == methodConfig) {
- throw new BusinessException("支付方式模板不存在");
+ throw new BusinessException("Payment method template does not exist");
}
// C2C用户和承兑商添加支付方式最大数量
Map<String, C2cPaymentMethod> methodMap = this.c2cPaymentMethodService.getByPartyId(SecurityUtils.getCurrentUserId());
Object obj = this.sysparaService.find("c2c_payment_method_count_max");
if (null != obj) {
if (methodMap.size() >= Integer.valueOf(this.sysparaService.find("c2c_payment_method_count_max").getSvalue()).intValue()) {
- throw new BusinessException("支付方式数量已达上限");
+ throw new BusinessException("Payment method limit reached");
}
}
C2cPaymentMethod method = new C2cPaymentMethod();
@@ -286,18 +286,18 @@
String qrcode = request.getParameter("qrcode");
String remark = request.getParameter("remark");
if (StringUtils.isNullOrEmpty(real_name)) {
- throw new BusinessException("真实姓名必填");
+ throw new BusinessException("Real name is required");
}
if (StringUtils.isNullOrEmpty(param_value1)) {
- throw new BusinessException("参数值1必填");
+ throw new BusinessException("Parameter value 1 is required");
}
C2cPaymentMethod method = this.c2cPaymentMethodService.getById(id);
if (null == method) {
- throw new BusinessException("支付方式不存在");
+ throw new BusinessException("Payment method does not exist");
}
String partyId = SecurityUtils.getCurrentUserId();
if (!method.getPartyId().equals(partyId)) {
- throw new BusinessException("支付方式不匹配该用户");
+ throw new BusinessException("Payment method does not match this user");
}
String log = MessageFormat.format("ip:" + IPHelper.getIpAddr()
+ ",用户修改支付方式,id:{0},原用户PARTY_ID:{1},原支付方式模板:{2},原支付方式类型:{3},原支付方式名称:{4},原支付方式图片:{5},原真实姓名:{6},"
@@ -385,15 +385,15 @@
String id = request.getParameter("id");
String language = request.getParameter("language");
if (StringUtils.isEmptyString(id)) {
- throw new YamiShopBindException("广告id不正确");
+ throw new YamiShopBindException("Invalid 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");
}
List<C2cPaymentMethod> list = new ArrayList<C2cPaymentMethod>();
Map<String, C2cPaymentMethod> map = this.c2cPaymentMethodService.getByPartyId(c2cUser.getC2cUserPartyId());
@@ -405,7 +405,7 @@
}
}
if (null == list || 0 == list.size()) {
- throw new YamiShopBindException("承兑商支付方式未配置");
+ throw new YamiShopBindException("Merchant payment method not configured");
}
String[] payTypes = c2cAdvert.getPayType().split(",");
List<C2cPaymentMethod> resList = new ArrayList<C2cPaymentMethod>();
@@ -419,7 +419,7 @@
}
}
if (null == resList || 0 == resList.size()) {
- throw new YamiShopBindException("承兑商广告支付方式未配置");
+ throw new YamiShopBindException("Merchant ad payment method not configured");
}
for (int i = 0; i < resList.size(); i++) {
C2cPaymentMethod method = resList.get(i);
--
Gitblit v1.9.3