修改方格注册时的调用url

release
路明慧 2 years ago
parent a19af8c479
commit cc6a1a8a15
  1. 17
      order-management-consumer/src/main/java/com/dxhy/order/consumer/openapi/service/impl/FangGeInterfaceServiceImpl.java
  2. 6
      order-management-invoice/src/main/java/com/dxhy/order/invoice/config/InvoiceConfig.java

@ -2241,7 +2241,22 @@ public class FangGeInterfaceServiceImpl implements FangGeInterfaceService {
if (OrderInfoEnum.TAX_EQUIPMENT_C48.getKey().equals(terminalCode) || OrderInfoEnum.TAX_EQUIPMENT_D60.getKey().equals(terminalCode)) {
terminalCode = OrderInfoEnum.TAX_EQUIPMENT_FGHX.getKey();
}
SqZcxxResponse sqZcxxResponse = HttpInvoiceRequestUtilFg.sqZcxx(invoiceConfig.configSqZcxxFg(), sqZcxxParam, terminalCode);
String fgSkKpShList = baseServiceConfig.getFgSkKpShList();
String url = invoiceConfig.configSqZcxxFg();
if (StringUtils.isNotBlank(fgSkKpShList) && StringUtils.isNotBlank(sqZcxxParam.getNSRSBH())) {
String[] fgSkKpList = fgSkKpShList.split(ConfigureConstant.STRING_POINT2);
for (String fgSkKp : fgSkKpList) {
if (sqZcxxParam.getNSRSBH().equals(fgSkKp)) {
url = invoiceConfig.configSqZcxxFg2();
}
}
}
SqZcxxResponse sqZcxxResponse = HttpInvoiceRequestUtilFg.sqZcxx(url, sqZcxxParam, terminalCode);
if (ConfigureConstant.STRING_0000.equals(sqZcxxResponse.getCode())) {
//注册成功,返回注册码
String zcm = "";

@ -31,6 +31,9 @@ public class InvoiceConfig {
@Value("${order.url.A9}")
private String interfaceA9BusinessUrl;
@Value("${order.url.jdc}")
private String interfaceJdcBusinessUrl;
/**
* 预览pdf水印
*/
@ -554,6 +557,9 @@ public class InvoiceConfig {
public String configSqZcxxFg() {
return interfaceA9BusinessUrl + "/invoice/business/v1.0/sqZcxx";
}
public String configSqZcxxFg2() {
return interfaceJdcBusinessUrl + "/invoice/business/v1.0/sqZcxx";
}
/**
* 调用获取pdf地址

Loading…
Cancel
Save