Browse Source

微信改用get

zhaops 5 years ago
parent
commit
97d0854cdc
1 changed files with 4 additions and 1 deletions
  1. 4 1
      zzcx-service/src/main/java/com/diagbot/web/WexinController.java

+ 4 - 1
zzcx-service/src/main/java/com/diagbot/web/WexinController.java

@@ -39,7 +39,10 @@ public class WexinController {
     @GetMapping("/getConfig")
     public RespDTO<Map> getConfig(HttpServletRequest request) {
         WeixinVO weixinVO = new WeixinVO();
-        weixinVO.setUrl(request.getRequestURL().toString());
+//        System.out.println(request.getRequestURL().toString());
+//        System.out.println(request.getQueryString());
+//        System.out.println(request.getRequestURL().toString() + "?" + request.getQueryString());
+        weixinVO.setUrl(request.getRequestURL().toString() + "?" + request.getQueryString());
         Map<String, String> map = weixinFacade.getConfig(weixinVO);
         return RespDTO.onSuc(map);
     }