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 @@ -131,20 +131,20 @@ public String toString() {
131
131
}
132
132
133
133
public static class WxMenuRule {
134
- private String groupId ;
134
+ private String tagId ;
135
135
private String sex ;
136
136
private String country ;
137
137
private String province ;
138
138
private String city ;
139
139
private String clientPlatformType ;
140
140
private String language ;
141
141
142
- public String getGroupId () {
143
- return groupId ;
142
+ public String getTagId () {
143
+ return tagId ;
144
144
}
145
145
146
- public void setGroupId (String groupId ) {
147
- this .groupId = groupId ;
146
+ public void setTagId (String tagId ) {
147
+ this .tagId = tagId ;
148
148
}
149
149
150
150
public String getSex () {
@@ -198,7 +198,7 @@ public void setLanguage(String language) {
198
198
@ Override
199
199
public String toString () {
200
200
return "matchrule:{" +
201
- "group_id ='" + groupId + '\'' +
201
+ "tag_id ='" + tagId + '\'' +
202
202
", sex='" + sex + '\'' +
203
203
", country" + country + '\'' +
204
204
", 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