|
@@ -729,10 +729,9 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
|
|
TransferBillsResult transferBillsResult = transferService.transferBills(request);
|
|
TransferBillsResult transferBillsResult = transferService.transferBills(request);
|
|
logger.info("商家转账支付完成:[msg:{}]", transferBillsResult);
|
|
logger.info("商家转账支付完成:[msg:{}]", transferBillsResult);
|
|
return R.ok("发送红包成功").put("data", transferBillsResult);
|
|
return R.ok("发送红包成功").put("data", transferBillsResult);
|
|
- } catch (WxPayException e) {
|
|
|
|
- e.printStackTrace();
|
|
|
|
- logger.info("商家转账支付失败:[msg:{}]", e.getMessage());
|
|
|
|
- return R.error("发送失败");
|
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ logger.error("商家转账支付失败:参数: {} :原因: {}",JSON.toJSONString(param), e.getMessage(),e);
|
|
|
|
+ throw new RuntimeException(e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -781,9 +780,9 @@ public class FsStorePaymentServiceImpl implements IFsStorePaymentService {
|
|
try {
|
|
try {
|
|
TransferBatchesResult transferBatchesResult = transferService.transferBatches(request);
|
|
TransferBatchesResult transferBatchesResult = transferService.transferBatches(request);
|
|
return R.ok("发送红包成功").put("orderCode", transferBatchesResult.getOutBatchNo()).put("batchId", transferBatchesResult.getBatchId());
|
|
return R.ok("发送红包成功").put("orderCode", transferBatchesResult.getOutBatchNo()).put("batchId", transferBatchesResult.getBatchId());
|
|
- } catch (WxPayException e) {
|
|
|
|
- e.printStackTrace();
|
|
|
|
- return R.error("发送失败");
|
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ logger.error("商家转账支付失败:参数: {} :原因: {}",JSON.toJSONString(param), e.getMessage(),e);
|
|
|
|
+ throw new RuntimeException(e);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|