mirror of
https://gitee.com/egzosn/pay-java-parent.git
synced 2026-05-07 19:46:15 +08:00
微信二次签名
This commit is contained in:
@@ -223,8 +223,8 @@ public class WxPayService extends BasePayService {
|
||||
params.put("noncestr", result.get("nonce_str"));
|
||||
params.put("package", "Sign=WXPay");
|
||||
}
|
||||
// String paySign = createSign(SignUtils.parameterText(params), payConfigStorage.getInputCharset());
|
||||
params.put(SIGN, result.get(SIGN));
|
||||
String paySign = createSign(SignUtils.parameterText(params), payConfigStorage.getInputCharset());
|
||||
params.put(SIGN, paySign);
|
||||
return params;
|
||||
}
|
||||
throw new PayErrorException(new WxPayError(result.getString(RETURN_CODE), result.getString("return_msg"), "Invalid sign value"));
|
||||
|
||||
Reference in New Issue
Block a user