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));
|
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() {
|
.execute(new HttpCallback() {
|
||||||
@Override
|
@Override
|
||||||
public void onSuccess(int code, String msg, String[] info) {
|
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);
|
userInfo = new Gson().fromJson(info[0], IMLoginModel.class);
|
||||||
EventBus.getDefault().post(new DataUserInfoEvent().setUpDataSuccess(true));
|
EventBus.getDefault().post(new DataUserInfoEvent().setUpDataSuccess(true));
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user