mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-20 00:44:25 +08:00
🎨 #3639 【小程序】修复多账号starter不支持设置数据格式,导致消息解析出错的问题
This commit is contained in:
parent
d4cf48d059
commit
3e4ee57e1c
@ -108,12 +108,12 @@ public abstract class AbstractWxMaConfiguration {
|
||||
return wxMaService;
|
||||
}
|
||||
|
||||
private void configApp(WxMaDefaultConfigImpl config, WxMaSingleProperties corpProperties) {
|
||||
String appId = corpProperties.getAppId();
|
||||
String appSecret = corpProperties.getAppSecret();
|
||||
String token = corpProperties.getToken();
|
||||
String aesKey = corpProperties.getAesKey();
|
||||
boolean useStableAccessToken = corpProperties.isUseStableAccessToken();
|
||||
private void configApp(WxMaDefaultConfigImpl config, WxMaSingleProperties properties) {
|
||||
String appId = properties.getAppId();
|
||||
String appSecret = properties.getAppSecret();
|
||||
String token = properties.getToken();
|
||||
String aesKey = properties.getAesKey();
|
||||
boolean useStableAccessToken = properties.isUseStableAccessToken();
|
||||
|
||||
config.setAppid(appId);
|
||||
config.setSecret(appSecret);
|
||||
@ -123,6 +123,7 @@ public abstract class AbstractWxMaConfiguration {
|
||||
if (StringUtils.isNotBlank(aesKey)) {
|
||||
config.setAesKey(aesKey);
|
||||
}
|
||||
config.setMsgDataFormat(properties.getMsgDataFormat());
|
||||
config.useStableAccessToken(useStableAccessToken);
|
||||
}
|
||||
|
||||
|
@ -33,6 +33,11 @@ public class WxMaSingleProperties implements Serializable {
|
||||
*/
|
||||
private String aesKey;
|
||||
|
||||
/**
|
||||
* 消息格式,XML或者JSON.
|
||||
*/
|
||||
private String msgDataFormat;
|
||||
|
||||
/**
|
||||
* 是否使用稳定版 Access Token
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user