mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 02:28:25 +08:00 
			
		
		
		
	🎨 modifier order
This commit is contained in:
		| @ -18,7 +18,7 @@ import java.util.Map; | |||||||
|  */ |  */ | ||||||
| public class WxDnsResolver implements DnsResolver { | public class WxDnsResolver implements DnsResolver { | ||||||
|  |  | ||||||
|   private final static String WECHAT_API_URL = "api.weixin.qq.com"; |   private static final String WECHAT_API_URL = "api.weixin.qq.com"; | ||||||
|   private static Map<String, InetAddress[]> MAPPINGS = new HashMap<>(); |   private static Map<String, InetAddress[]> MAPPINGS = new HashMap<>(); | ||||||
|   protected final Logger log = LoggerFactory.getLogger(WxDnsResolver.class); |   protected final Logger log = LoggerFactory.getLogger(WxDnsResolver.class); | ||||||
|   private String wxApiIp; |   private String wxApiIp; | ||||||
|  | |||||||
| @ -20,19 +20,19 @@ public class WxCpRedissonConfigImpl extends WxCpDefaultConfigImpl { | |||||||
|   /** |   /** | ||||||
|    * The constant LOCK_KEY. |    * The constant LOCK_KEY. | ||||||
|    */ |    */ | ||||||
|   protected final static String LOCK_KEY = "wechat_cp_lock:"; |   protected static final String LOCK_KEY = "wechat_cp_lock:"; | ||||||
|   /** |   /** | ||||||
|    * The constant CP_ACCESS_TOKEN_KEY. |    * The constant CP_ACCESS_TOKEN_KEY. | ||||||
|    */ |    */ | ||||||
|   protected final static String CP_ACCESS_TOKEN_KEY = "wechat_cp_access_token_key:"; |   protected static final String CP_ACCESS_TOKEN_KEY = "wechat_cp_access_token_key:"; | ||||||
|   /** |   /** | ||||||
|    * The constant CP_JSAPI_TICKET_KEY. |    * The constant CP_JSAPI_TICKET_KEY. | ||||||
|    */ |    */ | ||||||
|   protected final static String CP_JSAPI_TICKET_KEY = "wechat_cp_jsapi_ticket_key:"; |   protected static final String CP_JSAPI_TICKET_KEY = "wechat_cp_jsapi_ticket_key:"; | ||||||
|   /** |   /** | ||||||
|    * The constant CP_AGENT_JSAPI_TICKET_KEY. |    * The constant CP_AGENT_JSAPI_TICKET_KEY. | ||||||
|    */ |    */ | ||||||
|   protected final static String CP_AGENT_JSAPI_TICKET_KEY = "wechat_cp_agent_jsapi_ticket_key:"; |   protected static final String CP_AGENT_JSAPI_TICKET_KEY = "wechat_cp_agent_jsapi_ticket_key:"; | ||||||
|   private final WxRedisOps redisOps; |   private final WxRedisOps redisOps; | ||||||
|   /** |   /** | ||||||
|    * redis 存储的 key 的前缀,可为空 |    * redis 存储的 key 的前缀,可为空 | ||||||
|  | |||||||
| @ -18,10 +18,10 @@ import java.util.concurrent.locks.Lock; | |||||||
|  */ |  */ | ||||||
| public class WxMaRedissonConfigImpl extends WxMaDefaultConfigImpl { | public class WxMaRedissonConfigImpl extends WxMaDefaultConfigImpl { | ||||||
|  |  | ||||||
|   protected final static String LOCK_KEY = "wechat_ma_lock:"; |   protected static final String LOCK_KEY = "wechat_ma_lock:"; | ||||||
|   protected final static String MA_ACCESS_TOKEN_KEY = "wechat_ma_access_token_key:"; |   protected static final String MA_ACCESS_TOKEN_KEY = "wechat_ma_access_token_key:"; | ||||||
|   protected final static String MA_JSAPI_TICKET_KEY = "wechat_ma_jsapi_ticket_key:"; |   protected static final String MA_JSAPI_TICKET_KEY = "wechat_ma_jsapi_ticket_key:"; | ||||||
|   protected final static String MA_CARD_API_TICKET_KEY = "wechat_ma_card_api_ticket_key:"; |   protected static final String MA_CARD_API_TICKET_KEY = "wechat_ma_card_api_ticket_key:"; | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
|    * redis 存储的 key 的前缀,可为空 |    * redis 存储的 key 的前缀,可为空 | ||||||
|  | |||||||
| @ -7,7 +7,7 @@ package cn.binarywang.wx.miniapp.util; | |||||||
|  * @date 2020-08-16 |  * @date 2020-08-16 | ||||||
|  */ |  */ | ||||||
| public class WxMaConfigHolder { | public class WxMaConfigHolder { | ||||||
|   private final static ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() { |   private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() { | ||||||
|     @Override |     @Override | ||||||
|     protected String initialValue() { |     protected String initialValue() { | ||||||
|       return "default"; |       return "default"; | ||||||
|  | |||||||
| @ -5,7 +5,7 @@ package me.chanjar.weixin.mp.util; | |||||||
|  * @date 2019-03-20 22:06 |  * @date 2019-03-20 22:06 | ||||||
|  */ |  */ | ||||||
| public class WxMpConfigStorageHolder { | public class WxMpConfigStorageHolder { | ||||||
|   private final static ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() { |   private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() { | ||||||
|     @Override |     @Override | ||||||
|     protected String initialValue() { |     protected String initialValue() { | ||||||
|       return "default"; |       return "default"; | ||||||
|  | |||||||
| @ -8,16 +8,16 @@ import org.apache.commons.lang3.StringUtils; | |||||||
|  * @date 2020/01/09 |  * @date 2020/01/09 | ||||||
|  **/ |  **/ | ||||||
| public abstract class AbstractWxOpenInRedisConfigStorage extends WxOpenInMemoryConfigStorage { | public abstract class AbstractWxOpenInRedisConfigStorage extends WxOpenInMemoryConfigStorage { | ||||||
|   protected final static String COMPONENT_VERIFY_TICKET_KEY = "wechat_component_verify_ticket:"; |   protected static final String COMPONENT_VERIFY_TICKET_KEY = "wechat_component_verify_ticket:"; | ||||||
|   protected final static String COMPONENT_ACCESS_TOKEN_KEY = "wechat_component_access_token:"; |   protected static final String COMPONENT_ACCESS_TOKEN_KEY = "wechat_component_access_token:"; | ||||||
|  |  | ||||||
|   protected final static String AUTHORIZER_REFRESH_TOKEN_KEY = "wechat_authorizer_refresh_token:"; |   protected static final String AUTHORIZER_REFRESH_TOKEN_KEY = "wechat_authorizer_refresh_token:"; | ||||||
|   protected final static String AUTHORIZER_ACCESS_TOKEN_KEY = "wechat_authorizer_access_token:"; |   protected static final String AUTHORIZER_ACCESS_TOKEN_KEY = "wechat_authorizer_access_token:"; | ||||||
|  |  | ||||||
|   protected final static String LOCK_KEY = "wechat_lock:"; |   protected static final String LOCK_KEY = "wechat_lock:"; | ||||||
|  |  | ||||||
|   protected final static String JSAPI_TICKET_KEY = "wechat_jsapi_ticket:"; |   protected static final String JSAPI_TICKET_KEY = "wechat_jsapi_ticket:"; | ||||||
|   protected final static String CARD_API_TICKET_KEY = "wechat_card_api_ticket:"; |   protected static final String CARD_API_TICKET_KEY = "wechat_card_api_ticket:"; | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
|    * redis 存储的 key 的前缀,可为空 |    * redis 存储的 key 的前缀,可为空 | ||||||
|  | |||||||
| @ -322,7 +322,7 @@ public abstract class BaseWxPayRequest implements Serializable { | |||||||
|    * |    * | ||||||
|    * @param map 传入的属性Map |    * @param map 传入的属性Map | ||||||
|    */ |    */ | ||||||
|   abstract protected void storeMap(Map<String, String> map); |   protected abstract void storeMap(Map<String, String> map); | ||||||
|  |  | ||||||
|   /** |   /** | ||||||
|    * <pre> |    * <pre> | ||||||
|  | |||||||
| @ -5,7 +5,7 @@ package me.chanjar.weixin.qidian.util; | |||||||
|  * @date 2020年12月26日 |  * @date 2020年12月26日 | ||||||
|  */ |  */ | ||||||
| public class WxQidianConfigStorageHolder { | public class WxQidianConfigStorageHolder { | ||||||
|   private final static ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() { |   private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() { | ||||||
|     @Override |     @Override | ||||||
|     protected String initialValue() { |     protected String initialValue() { | ||||||
|       return "default"; |       return "default"; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Kyle Scully
					Kyle Scully