update
This commit is contained in:
@@ -261,6 +261,26 @@ public class IMLoginModel extends BaseModel {
|
||||
private String online;
|
||||
@SerializedName("isAttention")
|
||||
private int isAttention;//0 未关注 1被关注 2已关注 3互相关注
|
||||
@SerializedName("user_info_complete")
|
||||
private int userInfoComplete;
|
||||
@SerializedName("login_type")
|
||||
private String loginType;
|
||||
|
||||
public String getLoginType() {
|
||||
return loginType;
|
||||
}
|
||||
|
||||
public void setLoginType(String loginType) {
|
||||
this.loginType = loginType;
|
||||
}
|
||||
|
||||
public int getUserInfoComplete() {
|
||||
return userInfoComplete;
|
||||
}
|
||||
|
||||
public void setUserInfoComplete(int userInfoComplete) {
|
||||
this.userInfoComplete = userInfoComplete;
|
||||
}
|
||||
|
||||
public int getIsAttention() {
|
||||
return isAttention;
|
||||
|
||||
@@ -377,12 +377,16 @@ public class IMLoginManager extends BaseCacheManager {
|
||||
netHandler.post(isInstructorRunnable);
|
||||
}
|
||||
|
||||
boolean initInstructor = false;
|
||||
/**
|
||||
* 获取是不是新手指导员的身份
|
||||
*/
|
||||
private Runnable isInstructorRunnable = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (initInstructor) {
|
||||
return;
|
||||
}
|
||||
HttpClient.getInstance().get("User.isInstructor", "isInstructor")
|
||||
.params("uid", userInfo.getId(), true)
|
||||
.params("token", userInfo.getToken(), true)
|
||||
@@ -397,6 +401,7 @@ public class IMLoginManager extends BaseCacheManager {
|
||||
userInfo.setIsAdmin("0");
|
||||
}
|
||||
}
|
||||
initInstructor = true;
|
||||
put(KEY_USER_INFO, new Gson().toJson(userInfo));
|
||||
//兼容老模块(之后要把用户维护的类更换掉)
|
||||
SpUtil.getInstance().setStringValue(SpUtil.USER_INFO, new Gson().toJson(userInfo));
|
||||
|
||||
Reference in New Issue
Block a user