魏熙美 6 年 前
コミット
b76c5192c5
共有1 個のファイルを変更した3 個の追加3 個の削除を含む
  1. 3
    3
      whole-estate/src/main/java/com/example/wholeestate/controller/WxUserController.java

+ 3
- 3
whole-estate/src/main/java/com/example/wholeestate/controller/WxUserController.java ファイルの表示

52
         return responseBean;
52
         return responseBean;
53
     }
53
     }
54
 
54
 
55
-    @RequestMapping(value = "/wx/getOpenid/{code}", method = RequestMethod.GET)
55
+    @RequestMapping(value = "/wx/getOpenid", method = RequestMethod.GET)
56
     @ApiOperation(value = "微信小程序获取 openid", notes = "微信小程序获取 openid")
56
     @ApiOperation(value = "微信小程序获取 openid", notes = "微信小程序获取 openid")
57
     @ApiImplicitParams({
57
     @ApiImplicitParams({
58
-            @ApiImplicitParam(paramType = "path", dataTypeClass=String.class, name = "code", value = "code"),
58
+            @ApiImplicitParam(paramType = "query", dataTypeClass=String.class, name = "code", value = "code"),
59
     })
59
     })
60
-    public ResponseBean getOpenid(@PathVariable(value = "code") String code, HttpSession session){
60
+    public ResponseBean getOpenid(@RequestParam(value = "code") String code, HttpSession session){
61
         ResponseBean  responseBean = iCustomerService.wxOpenid(code);
61
         ResponseBean  responseBean = iCustomerService.wxOpenid(code);
62
         return responseBean;
62
         return responseBean;
63
     }
63
     }