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 6afdea8..13202d1 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 @@ -39,7 +39,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) { @@ -59,6 +59,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(); @@ -86,7 +87,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); } }