mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-20 18:47:38 +08:00
🐛 #1405 微信支付创建订单接口中交易类型为JSAPI时的签名方法不默认为MD5,从请求对象中获取
This commit is contained in:
@@ -322,7 +322,11 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
|
||||
}
|
||||
|
||||
case TradeType.JSAPI: {
|
||||
String signType = SignType.MD5;
|
||||
String signType = request.getSignType();
|
||||
if (signType == null) {
|
||||
signType = SignType.MD5;
|
||||
}
|
||||
|
||||
String appid = unifiedOrderResult.getAppid();
|
||||
if (StringUtils.isNotEmpty(unifiedOrderResult.getSubAppId())) {
|
||||
appid = unifiedOrderResult.getSubAppId();
|
||||
|
Reference in New Issue
Block a user