界面修改,指导员可以点击头像进主页

This commit is contained in:
18401019693
2022-09-06 17:45:59 +08:00
parent ecca0ca854
commit 5d7370e5dc
4 changed files with 32 additions and 12 deletions

View File

@@ -200,7 +200,7 @@ public class MessageIMManager {
if (!TextUtils.isEmpty(userInfo.getExtra())) {
IMLoginModel model = new Gson().fromJson(userInfo.getExtra(), IMLoginModel.class);
long userId = IMLoginManager.get(context).getUserInfo().getId();
if (!TextUtils.equals(model.getIsAdmin(), "1") && userId != model.getId()) {
if (userId != model.getId()) {
RouteUtil.forwardUserHome(mContext, userInfo.getUserId(), 0);
} else if (userId == model.getId()) {
RouteUtil.forwardUserHome(mContext, userInfo.getUserId(), 2);