mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-04-05 17:38:05 +08:00
🎨 modifier order
This commit is contained in:
parent
a2042dd7c2
commit
44e4ee4416
@ -18,7 +18,7 @@ import java.util.Map;
|
||||
*/
|
||||
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<>();
|
||||
protected final Logger log = LoggerFactory.getLogger(WxDnsResolver.class);
|
||||
private String wxApiIp;
|
||||
|
@ -20,19 +20,19 @@ public class WxCpRedissonConfigImpl extends WxCpDefaultConfigImpl {
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
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.
|
||||
*/
|
||||
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;
|
||||
/**
|
||||
* redis 存储的 key 的前缀,可为空
|
||||
|
@ -18,10 +18,10 @@ import java.util.concurrent.locks.Lock;
|
||||
*/
|
||||
public class WxMaRedissonConfigImpl extends WxMaDefaultConfigImpl {
|
||||
|
||||
protected final static String LOCK_KEY = "wechat_ma_lock:";
|
||||
protected final static String MA_ACCESS_TOKEN_KEY = "wechat_ma_access_token_key:";
|
||||
protected final static 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 LOCK_KEY = "wechat_ma_lock:";
|
||||
protected static final String MA_ACCESS_TOKEN_KEY = "wechat_ma_access_token_key:";
|
||||
protected static final String MA_JSAPI_TICKET_KEY = "wechat_ma_jsapi_ticket_key:";
|
||||
protected static final String MA_CARD_API_TICKET_KEY = "wechat_ma_card_api_ticket_key:";
|
||||
|
||||
/**
|
||||
* redis 存储的 key 的前缀,可为空
|
||||
|
@ -7,7 +7,7 @@ package cn.binarywang.wx.miniapp.util;
|
||||
* @date 2020-08-16
|
||||
*/
|
||||
public class WxMaConfigHolder {
|
||||
private final static ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
|
||||
private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
|
||||
@Override
|
||||
protected String initialValue() {
|
||||
return "default";
|
||||
|
@ -5,7 +5,7 @@ package me.chanjar.weixin.mp.util;
|
||||
* @date 2019-03-20 22:06
|
||||
*/
|
||||
public class WxMpConfigStorageHolder {
|
||||
private final static ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
|
||||
private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
|
||||
@Override
|
||||
protected String initialValue() {
|
||||
return "default";
|
||||
|
@ -8,16 +8,16 @@ import org.apache.commons.lang3.StringUtils;
|
||||
* @date 2020/01/09
|
||||
**/
|
||||
public abstract class AbstractWxOpenInRedisConfigStorage extends WxOpenInMemoryConfigStorage {
|
||||
protected final static 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_VERIFY_TICKET_KEY = "wechat_component_verify_ticket:";
|
||||
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 final static String AUTHORIZER_ACCESS_TOKEN_KEY = "wechat_authorizer_access_token:";
|
||||
protected static final String AUTHORIZER_REFRESH_TOKEN_KEY = "wechat_authorizer_refresh_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 final static String CARD_API_TICKET_KEY = "wechat_card_api_ticket:";
|
||||
protected static final String JSAPI_TICKET_KEY = "wechat_jsapi_ticket:";
|
||||
protected static final String CARD_API_TICKET_KEY = "wechat_card_api_ticket:";
|
||||
|
||||
/**
|
||||
* redis 存储的 key 的前缀,可为空
|
||||
|
@ -322,7 +322,7 @@ public abstract class BaseWxPayRequest implements Serializable {
|
||||
*
|
||||
* @param map 传入的属性Map
|
||||
*/
|
||||
abstract protected void storeMap(Map<String, String> map);
|
||||
protected abstract void storeMap(Map<String, String> map);
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
|
@ -5,7 +5,7 @@ package me.chanjar.weixin.qidian.util;
|
||||
* @date 2020年12月26日
|
||||
*/
|
||||
public class WxQidianConfigStorageHolder {
|
||||
private final static ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
|
||||
private static final ThreadLocal<String> THREAD_LOCAL = new ThreadLocal<String>() {
|
||||
@Override
|
||||
protected String initialValue() {
|
||||
return "default";
|
||||
|
Loading…
Reference in New Issue
Block a user