|
@@ -73,12 +73,13 @@ public class VistorController extends BaseController {
|
73
|
73
|
|
74
|
74
|
@ApiOperation(value = "查询是否开启了访客邀请的车辆", notes = "查询是否开启了访客邀请的车辆")
|
75
|
75
|
@ApiImplicitParams({
|
76
|
|
- @ApiImplicitParam(dataTypeClass = Integer.class, paramType = "query", name = "communityId", value = "小区Id")
|
|
76
|
+ @ApiImplicitParam(paramType = "header",dataType = "String",name = "X-Auth-Token",value = "Token"),
|
77
|
77
|
})
|
78
|
78
|
@RequestMapping(value = "/invate_license/bool", method = RequestMethod.GET)
|
79
|
|
- public ResponseBean invateBool(@RequestParam("communityId") Integer communityId) {
|
|
79
|
+ public ResponseBean invateBool(HttpSession session) {
|
80
|
80
|
ResponseBean responseBean = new ResponseBean();
|
81
|
|
- responseBean = vistorServiceI.invateBool(communityId);
|
|
81
|
+ UserElement userElement = getUserElement(session);
|
|
82
|
+ responseBean = vistorServiceI.invateBool(userElement);
|
82
|
83
|
return responseBean;
|
83
|
84
|
}
|
84
|
85
|
|