|
@@ -50,7 +50,7 @@ public class WxPayServiceImpl implements WxPayServiceI {
|
50
|
50
|
Map<String, String> data = new HashMap<String, String>();
|
51
|
51
|
data.put("body", "支付测试");
|
52
|
52
|
//商品号唯一
|
53
|
|
- data.put("out_trade_no", String.valueOf(System.currentTimeMillis()));
|
|
53
|
+ data.put("out_trade_no", String.valueOf(System.currentTimeMillis()) + billInvoiceId);
|
54
|
54
|
data.put("device_info", "");
|
55
|
55
|
data.put("fee_type", "CNY");
|
56
|
56
|
//金额 后台计算
|
|
@@ -63,6 +63,7 @@ public class WxPayServiceImpl implements WxPayServiceI {
|
63
|
63
|
data.put("trade_type", "APP");
|
64
|
64
|
Map<String, String> resp = wxpay.unifiedOrder(data);
|
65
|
65
|
log.info("下单成功:{}", resp);
|
|
66
|
+ //插入下单记录表
|
66
|
67
|
|
67
|
68
|
//第二次重新生成签名
|
68
|
69
|
Map<String, String> secondSignData = new HashMap<String, String>();
|