|
@@ -1209,7 +1209,7 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
@Override
|
|
|
public Map<String, String> refund(String out_refund_no, String transaction_id, BigDecimal refund_fee, BigDecimal total_fee) {
|
|
|
initData();
|
|
|
- WxSmallConfig config = new WxSmallConfig(appid, mchid, key);
|
|
|
+ WxSmallConfig config = new WxSmallConfig(gzhAppid, mchid, key);
|
|
|
BigDecimal unit = new BigDecimal(100);
|
|
|
refund_fee = refund_fee.multiply(unit);
|
|
|
total_fee = total_fee.multiply(unit);
|
|
@@ -1223,7 +1223,7 @@ public class WxPayServiceImpl implements IWxPayService {
|
|
|
data.put("refund_fee", refund_fee.intValue() + "");
|
|
|
data.put("total_fee", total_fee.intValue() + "");
|
|
|
Map<String, String> result = new HashMap<>();
|
|
|
- result.put("appId", appid);
|
|
|
+ result.put("appId", gzhAppid);
|
|
|
result.put("nonceStr", WXPayUtil.generateNonceStr());
|
|
|
result.put("signType", "MD5");
|
|
|
result.put("sign", WXPayUtil.generateSignature(result, key, WXPayConstants.SignType.MD5));
|