Authored by tanling

微信支付

@@ -435,6 +435,7 @@ public class PaymentServiceImpl implements IPaymentService { @@ -435,6 +435,7 @@ public class PaymentServiceImpl implements IPaymentService {
435 private PaymentData convertQueryPaymentData(PayQueryBo payQueryBo) { 435 private PaymentData convertQueryPaymentData(PayQueryBo payQueryBo) {
436 PaymentData paymentData = new PaymentData(); 436 PaymentData paymentData = new PaymentData();
437 paymentData.setOrderCode(String.valueOf(payQueryBo.getOrderCode())); 437 paymentData.setOrderCode(String.valueOf(payQueryBo.getOrderCode()));
  438 + paymentData.setOutTradeNo(payQueryBo.getOrderCode());
438 paymentData.setTotalFee(payQueryBo.getAmount()); 439 paymentData.setTotalFee(payQueryBo.getAmount());
439 paymentData.setBankCode(payQueryBo.getBankCode()); 440 paymentData.setBankCode(payQueryBo.getBankCode());
440 paymentData.setBankName(payQueryBo.getBankName()); 441 paymentData.setBankName(payQueryBo.getBankName());
@@ -185,6 +185,7 @@ public abstract class AbstractWeixinPayService extends AbstractPayService { @@ -185,6 +185,7 @@ public abstract class AbstractWeixinPayService extends AbstractPayService {
185 try { 185 try {
186 // 把 YOHOBuy_XXXX 形式的订单号转换为 XXXX 186 // 把 YOHOBuy_XXXX 形式的订单号转换为 XXXX
187 String out_no_raw = paramsMap.get("out_trade_no"); 187 String out_no_raw = paramsMap.get("out_trade_no");
  188 + paymentData.setOutTradeNo(out_no_raw);
188 String out_trade_no = out_no_raw; 189 String out_trade_no = out_no_raw;
189 /*String[] sp = out_no_raw.split("_"); 190 /*String[] sp = out_no_raw.split("_");
190 out_trade_no = sp[1];*/ 191 out_trade_no = sp[1];*/