diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java index cb556be..192ffad 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/mservice/ApiService.java @@ -458,7 +458,7 @@ public class ApiService { } in.close(); // 替换 \n 为实际的换行符 - formattedContent = content.toString().replace("\\n", "\n").replace("\\", ""); + formattedContent = content.toString().replace("\\n", "\n"); } else { formattedContent = "响应失败"; } diff --git a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/task/PushTaskPlugin.java b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/task/PushTaskPlugin.java index 375f092..043c99a 100644 --- a/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/task/PushTaskPlugin.java +++ b/sys/shkd-sys-sys/src/main/java/shkd/sys/sys/plugin/task/PushTaskPlugin.java @@ -92,6 +92,7 @@ public class PushTaskPlugin extends AbstractTask implements Plugin { String finalBillName = billName; dynamicObjects.forEach(dynamicObject -> { String responseBody = ApiService.paymentSlipsJson(dynamicObject, "BIP"); + logger.info("推送 → {} → 开始\n推送单据编号:{}\n接口响应数据:{}", finalBillName, dynamicObject.getString("billno"), responseBody); if (!responseBody.contains("失败")) { JSONObject jsonObject = JSON.parseObject(responseBody); String code = jsonObject.getString("code");