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={}",