代金券发放API优化

This commit is contained in:
xiafang
2020-11-25 17:46:04 +08:00
parent c307ea12c2
commit d69db1788f

View File

@@ -240,7 +240,10 @@ public class WechatPayApi {
private RequestEntity<?> sendStocksFunction(WechatPayV3Type type, StocksSendParams params) {
WechatPayProperties.V3 v3 = wechatMetaBean.getWechatPayProperties().getV3();
// 服务号
params.setAppid(v3.getMp().getAppId());
params.setStockCreatorMchid(v3.getMchId());
String httpUrl = type.uri(WeChatServer.CHINA);
URI uri = UriComponentsBuilder.fromHttpUrl(httpUrl).build().expand(params.getOpenid()).toUri();
params.setOpenid(null);