This commit is contained in:
18401019693 2022-07-26 13:37:47 +08:00
parent 1b53016056
commit af24e4a785

View File

@ -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 {