mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-11-01 03:25:35 +08:00 
			
		
		
		
	🎨 #3261【公众号】增加是否启用 StableAccessToken的配置
This commit is contained in:
		| @ -9,8 +9,8 @@ import lombok.extern.slf4j.Slf4j; | ||||
| import me.chanjar.weixin.common.redis.JedisWxRedisOps; | ||||
| import me.chanjar.weixin.common.redis.RedisTemplateWxRedisOps; | ||||
| import me.chanjar.weixin.common.redis.WxRedisOps; | ||||
| import me.chanjar.weixin.mp.config.WxMpHostConfig; | ||||
| import me.chanjar.weixin.mp.config.WxMpConfigStorage; | ||||
| import me.chanjar.weixin.mp.config.WxMpHostConfig; | ||||
| import me.chanjar.weixin.mp.config.impl.WxMpDefaultConfigImpl; | ||||
| import me.chanjar.weixin.mp.config.impl.WxMpRedisConfigImpl; | ||||
| import org.apache.commons.lang3.StringUtils; | ||||
| @ -122,7 +122,7 @@ public class WxMpStorageAutoConfiguration { | ||||
|     config.setSecret(properties.getSecret()); | ||||
|     config.setToken(properties.getToken()); | ||||
|     config.setAesKey(properties.getAesKey()); | ||||
|  | ||||
|     config.setUseStableAccessToken(wxMpProperties.isUseStableAccessToken()); | ||||
|     config.setHttpProxyHost(configStorageProperties.getHttpProxyHost()); | ||||
|     config.setHttpProxyUsername(configStorageProperties.getHttpProxyUsername()); | ||||
|     config.setHttpProxyPassword(configStorageProperties.getHttpProxyPassword()); | ||||
|  | ||||
| @ -40,6 +40,11 @@ public class WxMpProperties { | ||||
|    * 设置微信公众号的EncodingAESKey. | ||||
|    */ | ||||
|   private String aesKey; | ||||
|    | ||||
|   /** | ||||
|    * 是否使用稳定版 Access Token | ||||
|    */ | ||||
|   private boolean useStableAccessToken = false; | ||||
|  | ||||
|   /** | ||||
|    * 自定义host配置 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 foreveryang321
					foreveryang321