Commit 38b95da0 by guojuxing

转账审批回调函数修改

parent 2d33f521
package com.gic.finance.service.outer.impl; package com.gic.finance.service.outer.impl;
import java.text.SimpleDateFormat;
import java.util.Date; import java.util.Date;
import org.apache.commons.lang.StringUtils; import org.apache.commons.lang.StringUtils;
...@@ -229,11 +230,19 @@ public class TransferAccountsApprovalApiServiceImpl implements TransferAccountsA ...@@ -229,11 +230,19 @@ public class TransferAccountsApprovalApiServiceImpl implements TransferAccountsA
private void callBack(TabTransferAccountsApproval tab) { private void callBack(TabTransferAccountsApproval tab) {
LOGGER.info("转账审批回调:{}" ,JSONObject.toJSONString(tab)); LOGGER.info("转账审批回调:{}" ,JSONObject.toJSONString(tab));
int orderType = tab.getOrderType().intValue();
boolean isBilling = orderType == OrderTypeEnum.RECHARGE.getCode() ||
orderType == OrderTypeEnum.SHORT_MESSAGE_PACKAGE.getCode();
String interfaceUrl = tab.getCallbackInterface(); String interfaceUrl;
String method = tab.getCallbackMethod(); String method;
if (StringUtils.isBlank(interfaceUrl) || StringUtils.isBlank(method)) { if (isBilling) {
return; interfaceUrl = "com.gic.enterprise.service.BillingPayInfoApiService";
method = "offlineCallBack";
} else {
//服务类型
interfaceUrl = "com.gic.open.api.service.market.PayCallbackApiService";
method = "payCallbackTransfer";
} }
RegistryConfig registry = new RegistryConfig(); RegistryConfig registry = new RegistryConfig();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment