Parcourir la source

优化微信登录
// 带shenzeVue 的url 会经nginx 重定向到 http://szwltest.sunzee.com.cn/shenze/#/xxx
// openWeixin 的url 会经nginx 重定向到 https://open.weixin.qq.com/xxx
// SZWL-SERVER 的url 会经nginx 重定向到 http://szwltest.sunzee.com.cn:49011 (即该应用)

wuhongshuang il y a 2 ans
Parent
commit
2554983020
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      src/main/java/com/szwl/controller/WxLoginController.java

+ 3 - 0
src/main/java/com/szwl/controller/WxLoginController.java

@@ -48,6 +48,9 @@ public class WxLoginController {
     @ApiOperation(value = "用户默认授权,获取code")
     @GetMapping("/menuOauth")
     public R<String> getOpenid() {
+        // 带shenzeVue 的url 会经nginx 重定向到 http://szwltest.sunzee.com.cn/shenze/#/xxx
+        // openWeixin 的url 会经nginx 重定向到 https://open.weixin.qq.com/xxx
+        // SZWL-SERVER 的url 会经nginx 重定向到 http://szwltest.sunzee.com.cn:49011 (即该应用)
         String path = http + "/shenzeVue/wxLogin";
         try {
             String redirectUrl = URLEncoder.encode(path, "UTF-8");