2312删除销售发票同步BIP增加日志

This commit is contained in:
mzr 2025-04-16 10:31:02 +08:00
parent a78c7a2e19
commit abf524b597
1 changed files with 4 additions and 1 deletions

View File

@ -60,7 +60,9 @@ public class SyncBipBillRuleForDelete implements IRule<SaleInvoiceVO> {
appKey = bipParamMap.get("appKey");
appSecret = bipParamMap.get("appSecret");
toBipUrl = bipParamMap.get("updateInvoice");
NCCForUAPLogger.debug(String.format("SyncBipBillRuleForDelete-baseUrl = [%s],appKey1 = [%s],appSecret = [%s],",
NCCForUAPLogger.debug(String.format("SyncBipBillRuleForDelete-baseUrl = [%s],appKey = [%s],appSecret = [%s],",
baseUrl, appKey, appSecret));
Logger.error(String.format("SyncBipBillRuleForDelete-baseUrl = [%s],appKey = [%s],appSecret = [%s],",
baseUrl, appKey, appSecret));
String access_token = getAccessToken();
for (SaleInvoiceVO invoiceVO : vos) {
@ -132,6 +134,7 @@ public class SyncBipBillRuleForDelete implements IRule<SaleInvoiceVO> {
String signature = URLEncoder.encode(base64String, "UTF-8");
params.put("signature", signature);
String responseString = doGet(baseUrl + tokenUrl, params);
Logger.error("SyncBipBillRuleForDelete-responseString = " + responseString);
Gson gson = new Gson();
Map result = gson.fromJson(responseString, Map.class);
if (StringUtils.equals("00000", result.getOrDefault("code", "") + "")) {