Skip to content

Commit

Permalink
🎨 完善部分代码注释,修复 yaml 未自动提示 hosts 配置问题
Browse files Browse the repository at this point in the history
  • Loading branch information
foreveryang321 authored and binarywang committed Aug 15, 2024
1 parent 606e932 commit 39a152b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,19 @@ public class WxMpMultiProperties implements Serializable {
public static class HostConfig implements Serializable {
private static final long serialVersionUID = -4172767630740346001L;

/**
* 对应于:https://api.weixin.qq.com
*/
private String apiHost;

/**
* 对应于:https://open.weixin.qq.com
*/
private String openHost;

/**
* 对应于:https://mp.weixin.qq.com
*/
private String mpHost;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,19 @@ public class HostConfig implements Serializable {

private static final long serialVersionUID = -4172767630740346001L;

/**
* 对应于:https://api.weixin.qq.com
*/
private String apiHost;

/**
* 对应于:https://open.weixin.qq.com
*/
private String openHost;

/**
* 对应于:https://mp.weixin.qq.com
*/
private String mpHost;

}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class WxMpProperties {
* 设置微信公众号的EncodingAESKey.
*/
private String aesKey;

/**
* 是否使用稳定版 Access Token
*/
Expand All @@ -49,6 +49,7 @@ public class WxMpProperties {
/**
* 自定义host配置
*/
@NestedConfigurationProperty
private HostConfig hosts;

/**
Expand Down

0 comments on commit 39a152b

Please sign in to comment.