Commit 4af7a839 by 刘鹏

feat : 修复专家状态改造doctorid null问题

parent 6b02b248
......@@ -10,7 +10,7 @@ ext {
"m-fm" : "0.0.30.04",
"m-user" : "0.0.61.93",
"m-home" : "0.0.22.84",
"m-im" : "0.0.20.88",
"m-im" : "0.0.20.89",
"m-dynamic" : "0.0.7.35",
"m-article" : "0.0.0.10",
......@@ -93,7 +93,7 @@ ext {
"m-fm" : "0.0.30.07",
"m-user" : "0.0.61.93",
"m-home" : "0.0.22.83",
"m-im" : "0.0.20.88",
"m-im" : "0.0.20.89",
"m-dynamic" : "0.0.7.35",
"m-article" : "0.0.0.8",
......
......@@ -398,6 +398,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
//初始化私聊页面配置
initDefaultConfig();
if (ActionHandlerStorage.getL(sessionId).getInfo().doctorId != null){
// 获取专家是否在繁忙状态
ServiceImpl.Companion.getInstance().queryDoctorIsBusy(ActionHandlerStorage.getL(sessionId).getInfo().doctorId)
.subscribeOn(Schedulers.io())
......@@ -408,6 +409,8 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
});
}
}
@SuppressLint("CheckResult")
private void initDefaultConfig() {
ServiceImpl.Companion.getInstance().getChatViewConfig()
......@@ -475,7 +478,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
......@@ -492,21 +495,25 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
String year = bean.getContent();
userInfoDialogAge = Calendar.getInstance().get(Calendar.YEAR) - Integer.valueOf(year);
} catch (Exception e) {
e.printStackTrace();
}
} else if (TextUtils.equals(bean.getUserInfoType(), "gener")) {
try {
userInfoDialogSex = bean.getContent();
} catch (Exception e) {
e.printStackTrace();
}
} else if (TextUtils.equals(bean.getUserInfoType(), "questionType")) {
try {
userInfoDialogConsultType = bean.getContent();
} catch (Exception e) {
e.printStackTrace();
}
} else if (TextUtils.equals(bean.getUserInfoType(), "questionContent")) {
try {
userInfoDialogQuestionDes = bean.getContent();
} catch (Exception e) {
e.printStackTrace();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment