|
@@ -136,7 +136,13 @@ public class OauthRestController {
|
|
|
|
|
|
@RequestMapping("weixin/code")
|
|
|
@LoginRequired
|
|
|
- public ModelAndView weixinQrCode() {
|
|
|
+ public RedirectDto weixinQrCode() {
|
|
|
+ return new RedirectDto("https://open.sxtvs.net/oauth/code/v1");
|
|
|
+ }
|
|
|
+
|
|
|
+ @RequestMapping("weixin/code/v1")
|
|
|
+ @LoginRequired
|
|
|
+ public ModelAndView weixinQrCodeV1() {
|
|
|
var token = HttpContextUtil.mustToken();
|
|
|
logger.info("key", "oauth/weixin/code", "token", token);
|
|
|
WxApiCreatePreAuthCodeResponse preAuthCodeResponse = wxRestService.createPreAuthCodeResponse();
|