添加日志
This commit is contained in:
1 parent
beb7f6de8a
commit
98533d8c24
1 file changed
+4
-3
@@ -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={}",
|
||||
|
||||
Reference in new issue
Block a user