From b1a4b60b79959f308db35b786348392a387a553a Mon Sep 17 00:00:00 2001 From: mzr Date: Wed, 9 Apr 2025 14:06:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=90=8E=E5=90=8C=E6=AD=A5?= =?UTF-8?q?=E4=BF=AE=E6=94=B9BIP=E7=9A=84=E5=BC=80=E7=A5=A8=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=E5=AD=98=E7=9A=84NCC=E4=BF=A1=E6=81=AF-=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=9C=B0=E5=9D=80=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../m32/maintain/rule/delete/SyncBipBillRuleForDelete.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/so/src/private/nc/bs/so/m32/maintain/rule/delete/SyncBipBillRuleForDelete.java b/so/src/private/nc/bs/so/m32/maintain/rule/delete/SyncBipBillRuleForDelete.java index e9867d0..97d98af 100644 --- a/so/src/private/nc/bs/so/m32/maintain/rule/delete/SyncBipBillRuleForDelete.java +++ b/so/src/private/nc/bs/so/m32/maintain/rule/delete/SyncBipBillRuleForDelete.java @@ -38,7 +38,7 @@ public class SyncBipBillRuleForDelete implements IRule { private String appSecret = ""; private String baseUrl = "https://www.tkkfbip.com"; private String tokenUrl = "/iuap-api-auth/open-auth/selfAppAuth/getAccessToken"; - private String toBipUrl = "/iuap-api-gateway/oxp4h3x6/current_yonbip_default_sys/KKAPI/invoiceApplication/updateInvoice?access_token="; + private String toBipUrl = ""; @Override public void process(SaleInvoiceVO[] vos) { @@ -58,6 +58,7 @@ public class SyncBipBillRuleForDelete implements IRule { baseUrl = bipParamMap.get("baseUrl"); appKey = bipParamMap.get("appKey"); appSecret = bipParamMap.get("appSecret"); + toBipUrl = bipParamMap.get("updateInvoice"); NCCForUAPLogger.debug(String.format("SyncBipBillRuleForDelete-baseUrl = [%s],appKey1 = [%s],appSecret = [%s],", baseUrl, appKey, appSecret)); String access_token = getAccessToken(); @@ -85,7 +86,8 @@ public class SyncBipBillRuleForDelete implements IRule { updateJson.put("id", vdef38); updateJson.put("saleInvoiceId", ""); updateJson.put("contractInvoiceApplicationDetailList", childrenList); - String bipRes = doPost(baseUrl + toBipUrl + access_token, updateJson); + String url = baseUrl + toBipUrl + "?access_token=" + access_token; + String bipRes = doPost(url, updateJson); NCCForUAPLogger.debug("SyncBipBillRuleForDelete-bipRes = " + bipRes); } }