Commit 4af7a839 by 刘鹏

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

parent 6b02b248
...@@ -10,7 +10,7 @@ ext { ...@@ -10,7 +10,7 @@ ext {
"m-fm" : "0.0.30.04", "m-fm" : "0.0.30.04",
"m-user" : "0.0.61.93", "m-user" : "0.0.61.93",
"m-home" : "0.0.22.84", "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-dynamic" : "0.0.7.35",
"m-article" : "0.0.0.10", "m-article" : "0.0.0.10",
...@@ -93,7 +93,7 @@ ext { ...@@ -93,7 +93,7 @@ ext {
"m-fm" : "0.0.30.07", "m-fm" : "0.0.30.07",
"m-user" : "0.0.61.93", "m-user" : "0.0.61.93",
"m-home" : "0.0.22.83", "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-dynamic" : "0.0.7.35",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
......
...@@ -398,6 +398,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy { ...@@ -398,6 +398,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
//初始化私聊页面配置 //初始化私聊页面配置
initDefaultConfig(); initDefaultConfig();
if (ActionHandlerStorage.getL(sessionId).getInfo().doctorId != null){
// 获取专家是否在繁忙状态 // 获取专家是否在繁忙状态
ServiceImpl.Companion.getInstance().queryDoctorIsBusy(ActionHandlerStorage.getL(sessionId).getInfo().doctorId) ServiceImpl.Companion.getInstance().queryDoctorIsBusy(ActionHandlerStorage.getL(sessionId).getInfo().doctorId)
.subscribeOn(Schedulers.io()) .subscribeOn(Schedulers.io())
...@@ -408,6 +409,8 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy { ...@@ -408,6 +409,8 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
}); });
} }
}
@SuppressLint("CheckResult") @SuppressLint("CheckResult")
private void initDefaultConfig() { private void initDefaultConfig() {
ServiceImpl.Companion.getInstance().getChatViewConfig() ServiceImpl.Companion.getInstance().getChatViewConfig()
...@@ -475,7 +478,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy { ...@@ -475,7 +478,7 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
} }
} }
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
} }
} }
} }
...@@ -492,21 +495,25 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy { ...@@ -492,21 +495,25 @@ public class YDLMessageFragment extends TFragment implements ModuleProxy {
String year = bean.getContent(); String year = bean.getContent();
userInfoDialogAge = Calendar.getInstance().get(Calendar.YEAR) - Integer.valueOf(year); userInfoDialogAge = Calendar.getInstance().get(Calendar.YEAR) - Integer.valueOf(year);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
} }
} else if (TextUtils.equals(bean.getUserInfoType(), "gener")) { } else if (TextUtils.equals(bean.getUserInfoType(), "gener")) {
try { try {
userInfoDialogSex = bean.getContent(); userInfoDialogSex = bean.getContent();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
} }
} else if (TextUtils.equals(bean.getUserInfoType(), "questionType")) { } else if (TextUtils.equals(bean.getUserInfoType(), "questionType")) {
try { try {
userInfoDialogConsultType = bean.getContent(); userInfoDialogConsultType = bean.getContent();
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace();
} }
} else if (TextUtils.equals(bean.getUserInfoType(), "questionContent")) { } else if (TextUtils.equals(bean.getUserInfoType(), "questionContent")) {
try { try {
userInfoDialogQuestionDes = bean.getContent(); userInfoDialogQuestionDes = bean.getContent();
} catch (Exception e) { } 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