mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-10-03 18:56:39 +08:00
bug fix
This commit is contained in:
parent
a1c3d1cb7e
commit
ac15aa35c9
@ -18,6 +18,13 @@ public class MyConfig implements WXPayConfig {
|
||||
|
||||
public String notify_url = "http://47.96.75.242:10086/smart-admin-api/royalcanin/updateOrderWX";
|
||||
|
||||
|
||||
// 微信支付h5 回调地址
|
||||
public static String NOTIFY_URL_H5 = "https://www.XXXXXX.com/server/weixin/WxQuery";
|
||||
|
||||
// 请求地址
|
||||
public static String UFDODER_URL = "https://api.mch.weixin.qq.com/pay/unifiedorder";
|
||||
|
||||
private byte[] certData;
|
||||
|
||||
public MyConfig() throws Exception {
|
||||
|
@ -126,17 +126,6 @@ public class WxpayService {
|
||||
data.put("body","皇家宠物食品官方商城");
|
||||
data.put("nonce_str", WXPayUtil.generateNonceStr());
|
||||
data.put("product_id",wxPayEntity.getProduct_id());
|
||||
|
||||
// data.put("appid", config.getAppID());
|
||||
// data.put("mch_id", config.getMchID());
|
||||
// data.put("nonce_str", WXPayUtil.generateNonceStr());
|
||||
// data.put("body", "H5订单支付");
|
||||
// data.put("out_trade_no", wxPayEntity.getOut_trade_no());//订单号
|
||||
// data.put("total_fee", "1");//支付金额
|
||||
// data.put("spbill_create_ip", SmartIPUtil.getLocalHostIP()); //自己的服务器IP地址
|
||||
// data.put("notify_url", config.notify_url);//异步通知地址(请注意必须是外网)
|
||||
// data.put("trade_type", config.getH5Type());//交易类型
|
||||
// data.put("attach", type);//附加数据,在查询API和支付通知中原样返回,该字段主要用于商户携带订单的自定义数据
|
||||
String s = WXPayUtil.generateSignature(data, config.getKey()); //签名
|
||||
data.put("sign", s);//签名
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user