微信预下单返回签名算法

This commit is contained in:
songmingsong
2024-12-11 14:27:43 +08:00
parent c5977252fc
commit 87075c7e5e
2 changed files with 6 additions and 0 deletions

View File

@ -38,4 +38,9 @@ public class WxPayRespVO implements Serializable {
*/
@ApiModelProperty("签名")
private String paySign;
/**
* 签名签名算法
*/
@ApiModelProperty("签名算法")
private String signType;
}

View File

@ -106,6 +106,7 @@ public class WxPayServiceImpl implements WxPayService {
.collect(Collectors.joining("\n", "", "\n"));
String sign = WXPayUtil.getSign(signatureStr, wechatConfig.getKeyPath());
vo.setPaySign(sign);
vo.setSignType("RSA-SHA256");
vo.setPrepayId("prepay_id=" + response.getPrepayId());
return vo;
} catch (ServiceException e) {