11111
This commit is contained in:
parent
1b53016056
commit
af24e4a785
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user