|
|
|
|
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
|
}
|