From 07001a12cd0bfebdd00d0c76314dc7e862562bd6 Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Wed, 24 Jul 2024 16:33:14 +0800 Subject: [PATCH] =?UTF-8?q?release:=20=E4=BF=AE=E6=94=B9=E6=98=B5=E7=A7=B0?= =?UTF-8?q?=E7=A7=AF=E5=88=86=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/luoo/user/controller/MyController.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java index 05c388c..dc0d3bb 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java @@ -132,11 +132,8 @@ public class MyController extends BaseController { } } - boolean isChangeNickName = false; - if(!Objects.equals(nickName, user.getNickName())) { - // 修改了昵称 - isChangeNickName = true; - } + // 修改了昵称 + boolean isChangeNickName = !Objects.equals(nickName, user.getNickName()); if (!StringTools.isEmpty(nickName)) { user.setNickName(nickName);