File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
main/java/me/chanjar/weixin/common
test/java/me/chanjar/weixin/common/bean Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -129,20 +129,20 @@ public String toString() {
129
129
}
130
130
131
131
public static class WxMenuRule {
132
- private String groupId ;
132
+ private String tagId ;
133
133
private String sex ;
134
134
private String country ;
135
135
private String province ;
136
136
private String city ;
137
137
private String clientPlatformType ;
138
138
private String language ;
139
139
140
- public String getGroupId () {
141
- return groupId ;
140
+ public String getTagId () {
141
+ return tagId ;
142
142
}
143
143
144
- public void setGroupId (String groupId ) {
145
- this .groupId = groupId ;
144
+ public void setTagId (String tagId ) {
145
+ this .tagId = tagId ;
146
146
}
147
147
148
148
public String getSex () {
@@ -196,7 +196,7 @@ public void setLanguage(String language) {
196
196
@ Override
197
197
public String toString () {
198
198
return "matchrule:{" +
199
- "group_id ='" + groupId + '\'' +
199
+ "tag_id ='" + tagId + '\'' +
200
200
", sex='" + sex + '\'' +
201
201
", country" + country + '\'' +
202
202
", province" + province + '\'' +
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ protected JsonObject convertToJson(WxMenu.WxMenuButton button) {
62
62
63
63
protected JsonObject convertToJson (WxMenu .WxMenuRule menuRule ){
64
64
JsonObject matchRule = new JsonObject ();
65
- matchRule .addProperty ("group_id " ,menuRule .getGroupId ());
65
+ matchRule .addProperty ("tag_id " ,menuRule .getTagId ());
66
66
matchRule .addProperty ("sex" ,menuRule .getSex ());
67
67
matchRule .addProperty ("country" ,menuRule .getCountry ());
68
68
matchRule .addProperty ("province" ,menuRule .getProvince ());
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ public void testAddConditionalToJson(String json) {
67
67
menu .getButtons ().add (button1 );
68
68
69
69
WxMenu .WxMenuRule wxMenuRule = new WxMenu .WxMenuRule ();
70
- wxMenuRule .setGroupId ("2" );
70
+ wxMenuRule .setTagId ("2" );
71
71
wxMenuRule .setSex ("1" );
72
72
wxMenuRule .setCountry ("中国" );
73
73
wxMenuRule .setProvince ("广东" );
You can’t perform that action at this time.
0 commit comments