From 98533d8c2406462993d7d7242511d31e55fe6338 Mon Sep 17 00:00:00 2001 From: luqingjie <544309509@qq.com> Date: Thu, 29 Oct 2026 06:27:44 -0400 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/system/rental/RentalPaymentClient.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/rental/RentalPaymentClient.java b/ruoyi-system/src/main/java/com/ruoyi/system/rental/RentalPaymentClient.java index 5a7f01c..a1e5e6e 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/rental/RentalPaymentClient.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/rental/RentalPaymentClient.java @@ -1,5 +1,6 @@ package com.ruoyi.system.rental; +import com.alibaba.fastjson.JSONObject; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import com.ruoyi.system.security.RsaKeyUtil; @@ -63,7 +64,7 @@ public class RentalPaymentClient { if ("create-transaction".equals(operation)) { parameters.putAll(map("amount", amount(order, "requested_amount").setScale(2).toPlainString(), "amount_currency", "USDT", "network", text(order, "network"), - "walletUserName", "rent:" + text(order, "topup_no"), "notify_url", text(order, "notify_url"))); + "walletUserName", "rent:" + text(order, "user_id"), "notify_url", text(order, "notify_url"))); } Object encrypted = SecureClient.encrypt(text(order, "payment_api_key"), channel.getApiSecret(), RsaKeyUtil.loadPublicKey(text(order, "payment_public_key")), parameters); @@ -94,8 +95,8 @@ public class RentalPaymentClient { throw exception; } require(result != null, "支付返回JSON为空"); - LOG.info("充值支付业务响应 topupNo={} operation={} businessCode={} dataObject={}", - text(order, "topup_no"), operation, number(result, "code"), result.get("data") instanceof Map); + LOG.info("充值支付业务响应 topupNo={} operation={} businessCode={} dataObject={},result {}", + text(order, "topup_no"), operation, number(result, "code"), result.get("data") instanceof Map, JSONObject.toJSONString(result)); if (number(result, "code") != 200 || !(result.get("data") instanceof Map)) { String safeMessage = safeBusinessMessage(result.get("msg")); LOG.warn("充值支付业务失败 topupNo={} operation={} httpStatus={} businessCode={} dataType={} safeMessage={} responseChars={}",