|
|
@@ -126,7 +126,7 @@ public class AdminController {
|
|
|
*/
|
|
|
@PutMapping("/put")
|
|
|
public Result<String> editAdmin(@RequestBody Admin admin) throws Exception {
|
|
|
- Long adminId = StpUserUtil.getLoginIdAsLong();
|
|
|
+ Long adminId = StpUtil.getLoginIdAsLong();
|
|
|
Admin exist = adminService.getById(adminId);
|
|
|
if (exist == null) {
|
|
|
throw BusinessRuntimeException.getInstance("账号不存在,请重新登录");
|
|
|
@@ -148,7 +148,7 @@ public class AdminController {
|
|
|
admin.setPassWord(encodePasscode);
|
|
|
}
|
|
|
adminService.saveOrUpdate(admin);
|
|
|
- StpUserUtil.logoutByLoginId(admin.getId());
|
|
|
+ StpUtil.logoutByLoginId(admin.getId());
|
|
|
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult("编辑成功");
|
|
|
}
|