...
|
...
|
@@ -144,7 +144,7 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
}
|
|
|
|
|
|
AbstractOrderPaymentService paymentService = null;
|
|
|
|
|
|
logger.info("orderCode is {}, type is {}", orderCode, codeMeta.getType());
|
|
|
// 买家订单
|
|
|
if (codeMeta.getType() == OrderCodeType.BUYER_TYPE.getType()){
|
|
|
paymentService = this.buyerOrderPaymentService;
|
...
|
...
|
@@ -154,7 +154,7 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
}else if(codeMeta.getType() == OrderCodeType.SELLER_RECHARGE_EARNEST_TYPE.getType()){
|
|
|
paymentService = this.merchantOrderPaymentService;
|
|
|
}
|
|
|
|
|
|
logger.info("orderCode is {}, type is {}, service is {}", orderCode, codeMeta.getType(), paymentService);
|
|
|
return paymentService;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -576,7 +576,7 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
// 转账
|
|
|
try {
|
|
|
logger.info("transferMon开始调用阿里接口参数buyerOrderCode={}, alipayAccount={}, transferAmount={}", buyerOrderCode, alipayAccount, transferAmount);
|
|
|
JSONObject jsonObject = alipayService.transferMoney(Long.toString(buyerOrderCode), alipayAccount, transferAmount);
|
|
|
JSONObject jsonObject = alipayService.transferMoney(Long.toString(buyerOrderCode), null, alipayAccount, transferAmount);
|
|
|
if (jsonObject == null) {
|
|
|
logger.warn("transferMonErr 转账失败 , orderCode is {}", buyerOrderCode);
|
|
|
transfer.setStatus(3);
|
...
|
...
|
@@ -683,7 +683,7 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
// 转账
|
|
|
try {
|
|
|
logger.info("transAllEarnest开始调用阿里接口参数buyerOrderCode={}, alipayAccount={}, transferAmount={}", orderCode, alipayAccount, amount);
|
|
|
JSONObject jsonObject = alipayService.transferMoney(Long.toString(orderCode), alipayAccount, amount);
|
|
|
JSONObject jsonObject = alipayService.transferMoney(Long.toString(orderCode), null, alipayAccount, amount);
|
|
|
if (jsonObject == null) {
|
|
|
logger.warn("transAllEarnestErr 转账失败 , orderCode is {}", orderCode);
|
|
|
transfer.setStatus(3);
|
...
|
...
|
@@ -890,7 +890,7 @@ public class PaymentServiceImpl implements IPaymentService { |
|
|
throw new ServiceException(400, "转账记录已成功转账,流水id=" + tradeBillsId);
|
|
|
}
|
|
|
|
|
|
JSONObject jsonObject = alipayService.transferMoney(Long.toString(orderCode), alipayAccount, amount);
|
|
|
JSONObject jsonObject = alipayService.transferMoney(Long.toString(orderCode), null, alipayAccount, amount);
|
|
|
if (jsonObject == null) {
|
|
|
logger.warn("manualDeal 转账失败 , req is {}", req);
|
|
|
throw new ServiceException(500, "转账失败:阿里接口返回null");
|
...
|
...
|
|