Browse Source

数据汇聚

孙永军 2 years ago
parent
commit
388217b13f

+ 7 - 1
src/main/java/com/sxtvs/open/api/odata/controller/OauthRestController.java

@@ -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();