This commit is contained in:
18401019693
2022-07-26 13:14:43 +08:00
parent 69ad6efb65
commit 1b53016056
5 changed files with 14 additions and 30 deletions

View File

@@ -131,13 +131,14 @@ public class IMLoginManager extends BaseCacheManager {
String[] uidAndToken = SpUtil.getInstance().getMultiStringValue(new String[]{SpUtil.UID, SpUtil.TOKEN});
String uid = uidAndToken[0];
String token = uidAndToken[1];
if (TextUtils.isEmpty(token)) return;
HttpClient.getInstance().get("User.getBaseInfos", "getBaseInfo")
.params("uid", uid)
.params("token", token)
.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 {