소스 검색

'优化微信永天综合智慧云-跳转首页权限接口,获取前端传过来的openid值'

james 9 달 전
부모
커밋
9558e6d531
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      service-iot/service-iot-biz/src/main/java/com/usky/iot/controller/web/WeChatController.java

+ 2 - 3
service-iot/service-iot-biz/src/main/java/com/usky/iot/controller/web/WeChatController.java

@@ -114,11 +114,10 @@ public class WeChatController {
      * 跳转首页权限
      */
     @GetMapping("/getPageAuthorization")
-    public void getPageAuthorization() throws UnsupportedEncodingException {
+    public void getPageAuthorization(@RequestParam(value = "openId",required = false) String openId) throws UnsupportedEncodingException {
         String http = "https://";
         String code = request.getParameter("code");
-        String userAgent = request.getHeader("User-Agent");
-        String openId = request.getParameter("openId");
+
         if((openId != null) && (StringUtils.isNotBlank(openId))){
             try{
                 LambdaQueryWrapper<MceMbuser> queryWrapper = Wrappers.lambdaQuery();