Authored by tanling

微信支付

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