@@ -43,7 +43,7 @@ public WxMenuController(WxMpService wxService) {
43
43
*/
44
44
@ PostMapping ("/create" )
45
45
public String menuCreate (@ PathVariable String appid , @ RequestBody WxMenu menu ) throws WxErrorException {
46
- return this .wxService .switchover1 (appid ).getMenuService ().menuCreate (menu );
46
+ return this .wxService .switchoverTo (appid ).getMenuService ().menuCreate (menu );
47
47
}
48
48
49
49
@ GetMapping ("/create" )
@@ -92,7 +92,7 @@ public String menuCreateSample(@PathVariable String appid) throws WxErrorExcepti
92
92
if (servletRequestAttributes != null ) {
93
93
HttpServletRequest request = servletRequestAttributes .getRequest ();
94
94
URL requestURL = new URL (request .getRequestURL ().toString ());
95
- String url = this .wxService .switchover1 (appid ).oauth2buildAuthorizationUrl (
95
+ String url = this .wxService .switchoverTo (appid ).oauth2buildAuthorizationUrl (
96
96
String .format ("%s://%s/wx/redirect/%s/greet" , requestURL .getProtocol (), requestURL .getHost (), appid ),
97
97
WxConsts .OAuth2Scope .SNSAPI_USERINFO , null );
98
98
button34 .setUrl (url );
@@ -119,7 +119,7 @@ public String menuCreateSample(@PathVariable String appid) throws WxErrorExcepti
119
119
*/
120
120
@ PostMapping ("/createByJson" )
121
121
public String menuCreate (@ PathVariable String appid , @ RequestBody String json ) throws WxErrorException {
122
- return this .wxService .switchover1 (appid ).getMenuService ().menuCreate (json );
122
+ return this .wxService .switchoverTo (appid ).getMenuService ().menuCreate (json );
123
123
}
124
124
125
125
/**
@@ -130,7 +130,7 @@ public String menuCreate(@PathVariable String appid, @RequestBody String json) t
130
130
*/
131
131
@ GetMapping ("/delete" )
132
132
public void menuDelete (@ PathVariable String appid ) throws WxErrorException {
133
- this .wxService .switchover1 (appid ).getMenuService ().menuDelete ();
133
+ this .wxService .switchoverTo (appid ).getMenuService ().menuDelete ();
134
134
}
135
135
136
136
/**
@@ -143,7 +143,7 @@ public void menuDelete(@PathVariable String appid) throws WxErrorException {
143
143
*/
144
144
@ GetMapping ("/delete/{menuId}" )
145
145
public void menuDelete (@ PathVariable String appid , @ PathVariable String menuId ) throws WxErrorException {
146
- this .wxService .switchover1 (appid ).getMenuService ().menuDelete (menuId );
146
+ this .wxService .switchoverTo (appid ).getMenuService ().menuDelete (menuId );
147
147
}
148
148
149
149
/**
@@ -154,7 +154,7 @@ public void menuDelete(@PathVariable String appid, @PathVariable String menuId)
154
154
*/
155
155
@ GetMapping ("/get" )
156
156
public WxMpMenu menuGet (@ PathVariable String appid ) throws WxErrorException {
157
- return this .wxService .switchover1 (appid ).getMenuService ().menuGet ();
157
+ return this .wxService .switchoverTo (appid ).getMenuService ().menuGet ();
158
158
}
159
159
160
160
/**
@@ -167,7 +167,7 @@ public WxMpMenu menuGet(@PathVariable String appid) throws WxErrorException {
167
167
*/
168
168
@ GetMapping ("/menuTryMatch/{userid}" )
169
169
public WxMenu menuTryMatch (@ PathVariable String appid , @ PathVariable String userid ) throws WxErrorException {
170
- return this .wxService .switchover1 (appid ).getMenuService ().menuTryMatch (userid );
170
+ return this .wxService .switchoverTo (appid ).getMenuService ().menuTryMatch (userid );
171
171
}
172
172
173
173
/**
@@ -187,6 +187,6 @@ public WxMenu menuTryMatch(@PathVariable String appid, @PathVariable String user
187
187
*/
188
188
@ GetMapping ("/getSelfMenuInfo" )
189
189
public WxMpGetSelfMenuInfoResult getSelfMenuInfo (@ PathVariable String appid ) throws WxErrorException {
190
- return this .wxService .switchover1 (appid ).getMenuService ().getSelfMenuInfo ();
190
+ return this .wxService .switchoverTo (appid ).getMenuService ().getSelfMenuInfo ();
191
191
}
192
192
}
0 commit comments