From af24e4a785d3bd431035418667e1e120270a3612 Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Tue, 26 Jul 2022 13:37:47 +0800 Subject: [PATCH] 11111 --- .../main/java/com/yunbao/common/manager/IMLoginManager.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java index e4dd0a116..101df0ad5 100644 --- a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java +++ b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java @@ -90,6 +90,8 @@ public class IMLoginManager extends BaseCacheManager { } } put(KEY_USER_INFO, new Gson().toJson(userInfo)); + //兼容老模块(之后要把用户维护的类更换掉) + SpUtil.getInstance().setStringValue(SpUtil.USER_INFO, new Gson().toJson(userInfo)); } }); @@ -138,7 +140,7 @@ public class IMLoginManager extends BaseCacheManager { .execute(new HttpCallback() { @Override public void onSuccess(int code, String msg, String[] info) { - if (code == 0 && info.length > 0 ) { + if (code == 0 && info.length > 0) { userInfo = new Gson().fromJson(info[0], IMLoginModel.class); EventBus.getDefault().post(new DataUserInfoEvent().setUpDataSuccess(true)); } else {