File tree Expand file tree Collapse file tree
main/java/me/chanjar/weixin/common
test/java/me/chanjar/weixin/common/bean Expand file tree Collapse file tree Original file line number Diff line number Diff 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 + '\'' +
Original file line number Diff line number Diff 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 ());
Original file line number Diff line number Diff 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 ("广东" );
You can’t perform that action at this time.
0 commit comments