Commit 3bcdb518 by konghaorui

升级im版本号

parent bafecd11
...@@ -21,7 +21,7 @@ public final class DemoGlobalConfig implements IConfigModule { ...@@ -21,7 +21,7 @@ public final class DemoGlobalConfig implements IConfigModule {
String APP_DOMAIN = "https://api.github.com/"; String APP_DOMAIN = "https://api.github.com/";
// public static String appEnv = YDLConstants.ENV_AUTO_TEST; // public static String appEnv = YDLConstants.ENV_AUTO_TEST;
// public static String appEnv = YDLConstants.ENV_TEST; // public static String appEnv = YDLConstants.ENV_TEST;
public static String appEnv = YDLConstants.ENV_TEST; public static String appEnv = YDLConstants.ENV_PROD;
@Override @Override
public void injectAppLifecycle(@NotNull Context context, @NotNull List<IAppLifecycles> lifecycles) { public void injectAppLifecycle(@NotNull Context context, @NotNull List<IAppLifecycles> lifecycles) {
......
...@@ -52,7 +52,7 @@ ext { ...@@ -52,7 +52,7 @@ ext {
"m-muse" : "0.0.20.4", "m-muse" : "0.0.20.4",
"m-tests" : "0.0.15.3", "m-tests" : "0.0.15.3",
"m-course" : "0.0.34.4", "m-course" : "0.0.34.4",
"m-im" : "0.0.3.7", "m-im" : "0.0.3.8",
"m-dynamic" : "0.0.1.5", "m-dynamic" : "0.0.1.5",
......
...@@ -125,63 +125,64 @@ public class MsgListAdapter extends CommonAdapter<MsgData> { ...@@ -125,63 +125,64 @@ public class MsgListAdapter extends CommonAdapter<MsgData> {
ToastHelper.Companion.show(msg); ToastHelper.Companion.show(msg);
} }
}); });
return;//如果是动态消息则到此结束,其它消息类型走下面流程 //如果是动态消息则到此结束,其它消息类型走下面流程
} }else {
((BaseActivity) context).showProgressDialog("正在中转"); Disposable di = httpHelper.getMsgDetail(new MsgDetailParam(mDataList.get(position).id))
Disposable di = httpHelper.getMsgDetail(new MsgDetailParam(mDataList.get(position).id)) .compose(RxUtils.applySchedulers(lifecycleable))
.compose(RxUtils.applySchedulers(lifecycleable)) .compose(RxUtils.resultData())
.compose(RxUtils.resultData()) .subscribe(msgDetail -> {
.subscribe(msgDetail -> { mDataList.get(position).is_read = 2;
mDataList.get(position).is_read = 2; EventBus.getDefault().post(new UpdateTabUnreadNumEvent());
((BaseActivity) context).dismissProgressDialog(); switch (msgDetail.type) {
EventBus.getDefault().post(new UpdateTabUnreadNumEvent()); case 1:
switch (msgDetail.type) { case 2:
case 1: case 501:
case 2: case 502:
case 501: case 506:
case 502: //预约详情
case 506: H5Params h5Params = new H5Params(ImIn.INSTANCE.getReserveHost() + msgDetail.relation_id1, null);
//预约详情 NewH5Activity.start(context, h5Params);
H5Params h5Params = new H5Params(ImIn.INSTANCE.getReserveHost() + msgDetail.relation_id1, null); break;
NewH5Activity.start(context, h5Params); case 504:
break; case 505:
case 504: //微问诊列表
case 505: H5Params h5Paramswe = new H5Params(ImConstants.Companion.getMY_CHAT(), null);
//微问诊列表 NewH5Activity.start(context, h5Paramswe);
H5Params h5Paramswe = new H5Params(ImConstants.Companion.getMY_CHAT(), null); break;
NewH5Activity.start(context, h5Paramswe); case 507:
break; case 508:
case 507: case 509:
case 508: //预约评价 微问诊评价 倾诉评价
case 509:
//预约评价 微问诊评价 倾诉评价 H5Params h5Paramspi = new H5Params(ImConstants.Companion.getYYPJ() + msgDetail.relation_id1, null);
NewH5Activity.start(context, h5Paramspi);
H5Params h5Paramspi = new H5Params(ImConstants.Companion.getYYPJ() + msgDetail.relation_id1, null); break;
NewH5Activity.start(context, h5Paramspi); case 510:
break; //免费体验详情
case 510: H5Params h5Paramsmi = new H5Params(ImConstants.Companion.getFREEDTAIL() + msgDetail.relation_id1, null);
//免费体验详情 NewH5Activity.start(context, h5Paramsmi);
H5Params h5Paramsmi = new H5Params(ImConstants.Companion.getFREEDTAIL() + msgDetail.relation_id1, null); break;
NewH5Activity.start(context, h5Paramsmi); case 503:
break; case 1001:
case 503: case 1002:
case 1001: case 1004://老板心事心事详情
case 1002: break;
case 1004://老板心事心事详情
break; case 1003:
case 1003:
// ImIn.INSTANCE.MyRedPackActivity(context,null); // ImIn.INSTANCE.MyRedPackActivity(context,null);
ImIn.INSTANCE.myRedPockIntent(context); ImIn.INSTANCE.myRedPockIntent(context);
break; break;
} }
}, new ThrowableConsumer() { }, new ThrowableConsumer() {
@Override @Override
public void accept(@NotNull String msg) { public void accept(@NotNull String msg) {
((BaseActivity) context).dismissProgressDialog(); ((BaseActivity) context).dismissProgressDialog();
ToastHelper.Companion.show(msg); ToastHelper.Companion.show(msg);
} }
}); });
}
} }
}); });
return convertView; return convertView;
......
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