flower_city/src/main/java/com/dg/core/controller/UserController.java
@@ -241,7 +241,7 @@ @ApiOperation("修改用户接口") @PostMapping("/update") @Authorization public ResultData updateConfig(@RequestBody SysUser config) public ResultData updateConfig(@RequestBody SysUser config,@CurrentUser SysUser sys) { if(config.getUserId()==null) { @@ -254,6 +254,8 @@ } config.setUserType("3"); config.setUpdateBy(sys.getUserId()+""); return toAjax(IUserService.updateConfig(config)); } @@ -331,6 +333,8 @@ return error("输入密码与原密码不能相同!"); } return toAjax(IUserService.updateConfig(config)); }