🎨 优化部分代码,部分map字段赋初始值,避免未配置时空指针

This commit is contained in:
J 2023-07-27 06:38:08 +00:00 committed by Binary Wang
parent 2aa27cf12d
commit f74b00cf56
3 changed files with 8 additions and 6 deletions

View File

@ -90,7 +90,7 @@ public abstract class BaseWxMaServiceImpl<H, P> implements WxMaService, RequestH
private final WxMaOpenApiService wxMaOpenApiService = new WxMaOpenApiServiceImpl(this);
private Map<String, WxMaConfig> configMap;
private Map<String, WxMaConfig> configMap = new HashMap<>();
private int retrySleepMillis = 1000;
private int maxRetryTimes = 5;

View File

@ -73,8 +73,9 @@ public class FavorStocksQueryRequest implements Serializable {
* 是否必填
* 类型string[1,64]
* 描述
* 起始创建时间遵循rfc3339标准格式格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONEYYYY-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss.sss表示时分秒毫秒TIMEZONE表示时区+08:00表示东八区时间领先UTC 8小时即北京时间例如2015-05-20T13:29:35.120+08:00表示北京时间2015年5月20日 13点29分35秒
* 示例值2015-05-20T13:29:35.120+08:00
* 起始创建时间起始创建时间遵循rfc3339标准格式格式为yyyy-MM-DDTHH:mm:ss+TIMEZONEyyyy-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss表示时分秒TIMEZONE表示时区+08:00表示东八区时间领先UTC 8小时即北京时间例如2015-05-20T13:29:35+08:00表示北京时间2015年5月20日 13点29分35秒
* 校验规则get请求参数在 url中需要进行 url 编码传递
* 示例值2015-05-20T13:29:35+08:00
* </pre>
*/
@SerializedName(value = "create_start_time")
@ -87,8 +88,9 @@ public class FavorStocksQueryRequest implements Serializable {
* 是否必填
* 类型string[1,64]
* 描述
* 终止创建时间遵循rfc3339标准格式格式为YYYY-MM-DDTHH:mm:ss.sss+TIMEZONEYYYY-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss.sss表示时分秒毫秒TIMEZONE表示时区+08:00表示东八区时间领先UTC 8小时即北京时间例如2015-05-20T13:29:35.120+08:00表示北京时间2015年5月20日 13点29分35秒
* 示例值2015-05-20T13:29:35.120+08:00
* 终止创建时间遵循rfc3339标准格式格式为yyyy-MM-DDTHH:mm:ss+TIMEZONEyyyy-MM-DD表示年月日T出现在字符串中表示time元素的开头HH:mm:ss表示时分秒TIMEZONE表示时区+08:00表示东八区时间领先UTC 8小时即北京时间例如2015-05-20T13:29:35+08:00表示北京时间2015年5月20日 13点29分35秒
* 校验规则get请求参数在 url中需要进行 url 编码传递
* 示例值2015-05-20T13:29:35+08:00
* </pre>
*/
@SerializedName(value = "create_end_time")

View File

@ -128,7 +128,7 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
@Getter
private final BrandMerchantTransferService brandMerchantTransferService = new BrandMerchantTransferServiceImpl(this);
protected Map<String, WxPayConfig> configMap;
protected Map<String, WxPayConfig> configMap = new HashMap<>();
@Override
public WxPayConfig getConfig() {