Commit dc9b8f34 by 霍志良

feat:IM升级

parent 831dac7f
...@@ -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.56", "m-user" : "0.0.61.56",
"m-home" : "0.0.22.73", "m-home" : "0.0.22.73",
"m-im" : "0.0.19.79", "m-im" : "0.0.19.80",
"m-dynamic" : "0.0.7.29", "m-dynamic" : "0.0.7.29",
"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.04", "m-fm" : "0.0.30.04",
"m-user" : "0.0.61.56", "m-user" : "0.0.61.56",
"m-home" : "0.0.22.73", "m-home" : "0.0.22.73",
"m-im" : "0.0.19.79", "m-im" : "0.0.19.80",
"m-dynamic" : "0.0.7.29", "m-dynamic" : "0.0.7.29",
"m-article" : "0.0.0.8", "m-article" : "0.0.0.8",
......
...@@ -132,14 +132,18 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity { ...@@ -132,14 +132,18 @@ public class YDLP2PMessageActivity extends YDLBaseMessageActivity {
ImObserversHelper.Companion.getInstance().setImCustomNotificationCallBack(new IMRegisterObserverCustomNotificationCallBack() { ImObserversHelper.Companion.getInstance().setImCustomNotificationCallBack(new IMRegisterObserverCustomNotificationCallBack() {
@Override @Override
public void onObserverCustomNotification(@NotNull String fromUid, @NotNull String toUid, @NotNull String content) { public void onObserverCustomNotification(@NotNull String fromUid, @NotNull String toUid, @NotNull String content) {
ServiceBean serviceBean = new Gson().fromJson(content, ServiceBean.class); try {
// 切换到客服 ServiceBean serviceBean = new Gson().fromJson(content, ServiceBean.class);
if (serviceBean != null && serviceBean.getData() != null&&serviceBean.getBusiness()!=null && serviceBean.getBusiness().equals("change_doctor")) { // 切换到客服
isChangeDoctor = true; if (serviceBean != null && serviceBean.getData() != null&&serviceBean.getBusiness()!=null && serviceBean.getBusiness().equals("change_doctor")) {
String serviceUid = String.valueOf(serviceBean.getData().getToUid()); isChangeDoctor = true;
tb.setTitle(serviceBean.getData().getName()); String serviceUid = String.valueOf(serviceBean.getData().getToUid());
YDLP2PMessageActivity.startChangeDoctor(YDLP2PMessageActivity.this, serviceUid, SessionHelper.getP2pCustomization(-1), null, new P2PCustomActionHandlerImpl(serviceUid, serviceBean.getData().getName(), serviceUid)); tb.setTitle(serviceBean.getData().getName());
} YDLP2PMessageActivity.startChangeDoctor(YDLP2PMessageActivity.this, serviceUid, SessionHelper.getP2pCustomization(-1), null, new P2PCustomActionHandlerImpl(serviceUid, serviceBean.getData().getName(), serviceUid));
}
}catch (Exception e){
com.ydl.ydlcommon.utils.LogUtil.e("exception:"+e.getMessage());
}
} }
}); });
} }
......
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