Skip to content

Commit 88a7ac3

Browse files
committed
Merge branch 'wxMenuRule' into develop
2 parents d64f502 + f6c24ac commit 88a7ac3

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

weixin-java-common/src/main/java/me/chanjar/weixin/common/bean/WxMenu.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,20 +131,20 @@ public String toString() {
131131
}
132132

133133
public static class WxMenuRule {
134-
private String groupId;
134+
private String tagId;
135135
private String sex;
136136
private String country;
137137
private String province;
138138
private String city;
139139
private String clientPlatformType;
140140
private String language;
141141

142-
public String getGroupId() {
143-
return groupId;
142+
public String getTagId() {
143+
return tagId;
144144
}
145145

146-
public void setGroupId(String groupId) {
147-
this.groupId = groupId;
146+
public void setTagId(String tagId) {
147+
this.tagId = tagId;
148148
}
149149

150150
public String getSex() {
@@ -198,7 +198,7 @@ public void setLanguage(String language) {
198198
@Override
199199
public String toString() {
200200
return "matchrule:{" +
201-
"group_id='" + groupId + '\'' +
201+
"tag_id='" + tagId + '\'' +
202202
", sex='" + sex + '\'' +
203203
", country" + country + '\'' +
204204
", province" + province + '\'' +

weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json/WxMenuGsonAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected JsonObject convertToJson(WxMenu.WxMenuButton button) {
6262

6363
protected JsonObject convertToJson(WxMenu.WxMenuRule menuRule){
6464
JsonObject matchRule = new JsonObject();
65-
matchRule.addProperty("group_id",menuRule.getGroupId());
65+
matchRule.addProperty("tag_id",menuRule.getTagId());
6666
matchRule.addProperty("sex",menuRule.getSex());
6767
matchRule.addProperty("country",menuRule.getCountry());
6868
matchRule.addProperty("province",menuRule.getProvince());

weixin-java-common/src/test/java/me/chanjar/weixin/common/bean/WxMenuTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public void testAddConditionalToJson(String json) {
6767
menu.getButtons().add(button1);
6868

6969
WxMenu.WxMenuRule wxMenuRule = new WxMenu.WxMenuRule();
70-
wxMenuRule.setGroupId("2");
70+
wxMenuRule.setTagId("2");
7171
wxMenuRule.setSex("1");
7272
wxMenuRule.setCountry("中国");
7373
wxMenuRule.setProvince("广东");

0 commit comments

Comments
 (0)