mirror of
https://gitee.com/dromara/dax-pay
synced 2026-08-08 14:15:34 +08:00
i18n(audit-log): IP归属地文案国际化, log.json 新增 region.unknown/innerIp, 10语种同步
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package cn.daxpay.open.platform.capability.audit.log.service.ip2region;
|
||||
|
||||
import cn.daxpay.open.platform.common.config.properties.PlatformStarterProperties;
|
||||
import cn.daxpay.open.platform.common.i18n.util.I18nUtil;
|
||||
import cn.hutool.core.lang.PatternPool;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
@@ -123,7 +124,8 @@ public class IpToRegionService {
|
||||
IpRegion region = this.getRegionByIp(ip);
|
||||
// 未查询到
|
||||
if (Objects.isNull(region)) {
|
||||
return "未知";
|
||||
// 未知归属地
|
||||
return I18nUtil.get("log.region.unknown");
|
||||
}
|
||||
// 中国 港澳台
|
||||
if (region.isBigChina()) {
|
||||
@@ -139,7 +141,8 @@ public class IpToRegionService {
|
||||
}
|
||||
// 内网
|
||||
else if (region.isInnerIp()) {
|
||||
return "内网地址";
|
||||
// 内网地址
|
||||
return I18nUtil.get("log.region.innerIp");
|
||||
}
|
||||
// 国外
|
||||
else {
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
"create": "Create refund, order no: {0}, refund amount: {1}",
|
||||
"success": "Refund success, order no: {0}",
|
||||
"fail": "Refund failed, order no: {0}, reason: {1}"
|
||||
},
|
||||
"region": {
|
||||
"unknown": "Unknown",
|
||||
"innerIp": "Internal Network"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
"create": "Buat pengembalian dana, nomor pesanan: {0}, jumlah pengembalian dana: {1}",
|
||||
"success": "Pengembalian dana berhasil, no pesanan: {0}",
|
||||
"fail": "Pengembalian dana gagal, nomor pesanan: {0}, alasan: {1}"
|
||||
},
|
||||
"region": {
|
||||
"unknown": "Tidak diketahui",
|
||||
"innerIp": "Jaringan Internal"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
"create": "払い戻しを作成、注文番号: {0}、払い戻し金額: {1}",
|
||||
"success": "返金成功、注文番号: {0}",
|
||||
"fail": "返金に失敗しました。注文番号: {0}、理由: {1}"
|
||||
},
|
||||
"region": {
|
||||
"unknown": "不明",
|
||||
"innerIp": "プライベートネットワーク"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
"create": "환불 생성, 주문 번호: {0}, 환불 금액: {1}",
|
||||
"success": "환불 성공, 주문 번호: {0}",
|
||||
"fail": "환불 실패, 주문 번호: {0}, 이유: {1}"
|
||||
},
|
||||
"region": {
|
||||
"unknown": "알 수 없음",
|
||||
"innerIp": "사설망"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
"create": "Buat bayaran balik, no pesanan: {0}, jumlah bayaran balik: {1}",
|
||||
"success": "Bayaran balik kejayaan, no pesanan: {0}",
|
||||
"fail": "Bayaran balik gagal, no pesanan: {0}, sebab: {1}"
|
||||
},
|
||||
"region": {
|
||||
"unknown": "Tidak diketahui",
|
||||
"innerIp": "Rangkaian Dalaman"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
"create": "สร้างการคืนเงิน หมายเลขคำสั่งซื้อ: {0} จำนวนเงินคืน: {1}",
|
||||
"success": "การคืนเงินสำเร็จ หมายเลขคำสั่งซื้อ: {0}",
|
||||
"fail": "การคืนเงินล้มเหลว หมายเลขคำสั่งซื้อ: {0} เหตุผล: {1}"
|
||||
},
|
||||
"region": {
|
||||
"unknown": "ไม่ทราบ",
|
||||
"innerIp": "เครือข่ายภายใน"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
"create": "Tạo khoản tiền hoàn lại, số đơn hàng: {0}, số tiền hoàn lại: {1}",
|
||||
"success": "Hoàn tiền thành công, số đơn hàng: {0}",
|
||||
"fail": "Hoàn tiền không thành công, số đơn hàng: {0}, lý do: {1}"
|
||||
},
|
||||
"region": {
|
||||
"unknown": "Không xác định",
|
||||
"innerIp": "Mạng nội bộ"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
"create": "创建退款,订单号:{0},退款金额:{1}",
|
||||
"success": "退款成功,订单号:{0}",
|
||||
"fail": "退款失败,订单号:{0},原因:{1}"
|
||||
},
|
||||
"region": {
|
||||
"unknown": "未知",
|
||||
"innerIp": "内网地址"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
"create": "創建退款,訂單號:{0},退款金額:{1}",
|
||||
"success": "退款成功,訂單號:{0}",
|
||||
"fail": "退款失敗,訂單號:{0},原因:{1}"
|
||||
},
|
||||
"region": {
|
||||
"unknown": "未知",
|
||||
"innerIp": "內網位址"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -9,5 +9,9 @@
|
||||
"create": "建立退款,訂單號:{0},退款金額:{1}",
|
||||
"success": "退款成功,訂單號:{0}",
|
||||
"fail": "退款失敗,訂單號:{0},原因:{1}"
|
||||
},
|
||||
"region": {
|
||||
"unknown": "未知",
|
||||
"innerIp": "內網位址"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user