Commit 0c34839e by 霍志良

Merge remote-tracking branch 'origin/4.1.67' into 4.1.67

# Conflicts:
#	config.gradle
parents 3a2e560e e9897a9e
...@@ -10,8 +10,8 @@ ext { ...@@ -10,8 +10,8 @@ ext {
"m-fm" : "0.0.30.01", "m-fm" : "0.0.30.01",
"m-user" : "0.0.61.04", "m-user" : "0.0.61.04",
"m-home" : "0.0.22.53", "m-home" : "0.0.22.53",
"m-im" : "0.0.18.34", "m-im" : "0.0.18.35",
"m-dynamic" : "0.0.7.16", "m-dynamic" : "0.0.7.15",
"m-article" : "0.0.0.6", "m-article" : "0.0.0.6",
"m-muse" : "0.0.28.20", "m-muse" : "0.0.28.20",
......
...@@ -96,10 +96,10 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -96,10 +96,10 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
public P2PCustomActionHandlerImpl(String toChatUsername, public P2PCustomActionHandlerImpl(String toChatUsername,
IMExpertBuild expert) { IMExpertBuild expert) {
setExpertInfo(toChatUsername,expert); setExpertInfo(toChatUsername, expert);
} }
public void setExpertInfo(String toChatUsername,IMExpertBuild expert) { public void setExpertInfo(String toChatUsername, IMExpertBuild expert) {
blackStatus = Integer.valueOf(expert.shareData.blackStatus); blackStatus = Integer.valueOf(expert.shareData.blackStatus);
this.toChatUsername = toChatUsername; this.toChatUsername = toChatUsername;
...@@ -199,7 +199,7 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -199,7 +199,7 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
// Bundle bundle = new Bundle(); // Bundle bundle = new Bundle();
// bundle.putString("to_uid",toChatUsername); // bundle.putString("to_uid",toChatUsername);
// ImIn.INSTANCE.SendRedPacketActivity(activity,bundle,44); // ImIn.INSTANCE.SendRedPacketActivity(activity,bundle,44);
ImIn.INSTANCE.sendRedPacketIntent(activity, toChatUsername,44); ImIn.INSTANCE.sendRedPacketIntent(activity, toChatUsername, 44);
} }
//判定是否是今天第一次发送提醒上线通知,不是的话则不发消息通知|普通消息 //判定是否是今天第一次发送提醒上线通知,不是的话则不发消息通知|普通消息
...@@ -257,7 +257,7 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -257,7 +257,7 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
String share_title = name + "咨询工作室"; String share_title = name + "咨询工作室";
String share_head = cover; String share_head = cover;
String share_context = ""; String share_context = "";
String share_url = ImIn.INSTANCE.getShareExpertHost()+ doctorId; String share_url = ImIn.INSTANCE.getShareExpertHost() + doctorId;
H5Params h5Params = new H5Params(junmpurl, null); H5Params h5Params = new H5Params(junmpurl, null);
if (!TextUtils.isEmpty(share_url)) { if (!TextUtils.isEmpty(share_url)) {
...@@ -501,9 +501,6 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -501,9 +501,6 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
builder1.create().show(); builder1.create().show();
} }
private List<String> list = new ArrayList<>();
// ChooseListDialogFragment chooseListDialogFragment_ = ChooseListDialogFragment_.builder().build();
@Override @Override
public DocInfo getInfo() { public DocInfo getInfo() {
...@@ -581,13 +578,12 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -581,13 +578,12 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
@Override @Override
public void clickMoreIcon() { public void clickMoreIcon() {
if (mActivity == null || mActivity.isFinishing()) {
if (mActivity == null || mActivity.isFinishing()) return; return;
}
list.clear(); List<String> list = new ArrayList<>();
if (ImConstants.KEFUXIAOYI.equals(toChatUsername) || "4108805".equals(toChatUsername)) { if (ImConstants.KEFUXIAOYI.equals(toChatUsername) || "4108805".equals(toChatUsername)) {
list.add("历史聊天记录"); list.add("历史聊天记录");
// list.add("返回首页");
list.add("客服热线"); list.add("客服热线");
} else { } else {
list.add("投诉反馈"); list.add("投诉反馈");
...@@ -596,7 +592,6 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -596,7 +592,6 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
} else if (blackStatus == 2) { } else if (blackStatus == 2) {
list.add("取消拉黑"); list.add("取消拉黑");
} }
// list.add("返回首页");
if (userType == 1) { if (userType == 1) {
list.add("ta的主页"); list.add("ta的主页");
} }
...@@ -605,56 +600,49 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -605,56 +600,49 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
list.add("历史聊天记录"); list.add("历史聊天记录");
list.add("删除聊天记录"); list.add("删除聊天记录");
} }
ListDialog.Builder builderm = new ListDialog.Builder(mActivity, list, 0); ListDialog.Builder dialog = new ListDialog.Builder(mActivity, list, 0);
builderm.SetLastStr("取消"); dialog.SetLastStr("取消");
builderm.SetLastButton("取消", new DialogInterface.OnClickListener() { dialog.create().show();
dialog.SetLastButton("取消", new DialogInterface.OnClickListener() {
@Override @Override
public void onClick(DialogInterface dialog, int which) { public void onClick(DialogInterface dialog, int which) {
dialog.dismiss(); dialog.dismiss();
} }
}); });
builderm.SetOnItemClickLister(new ListDialog.Builder.OnItemClickLister() { dialog.SetOnItemClickLister(new ListDialog.Builder.OnItemClickLister() {
@Override @Override
public void onItemClick(Dialog dialog, View view, int position) { public void onItemClick(Dialog dialog, View view, int position) {
LogHelper.Companion.getInstance().writeLogSync(String.format("聊天界面:%s", list.get(position))); LogHelper.Companion.getInstance().writeLogSync(String.format("聊天界面:%s", list.get(position)));
switch (list.get(position)) { switch (list.get(position)) {
case "投诉反馈": case "投诉反馈":
startFeedback(mActivity); startFeedback(mActivity);
dialog.dismiss();
break; break;
case "返回首页": case "返回首页":
ImIn.INSTANCE.mainIntent(mActivity, 0); ImIn.INSTANCE.mainIntent(mActivity, 0);
dialog.dismiss();
break; break;
case "客服热线": case "客服热线":
showCallDialog(); showCallDialog();
dialog.dismiss();
break; break;
case "访问专家主页": case "访问专家主页":
skip2ExpertHome(); skip2ExpertHome();
dialog.dismiss();
break; break;
case "历史聊天记录": case "历史聊天记录":
historyMsg(); historyMsg();
dialog.dismiss();
break; break;
case "拉黑": case "拉黑":
setBlack(); setBlack();
dialog.dismiss();
break; break;
case "取消拉黑": case "取消拉黑":
rmBlack(); rmBlack();
dialog.dismiss();
break; break;
case "删除聊天记录": case "删除聊天记录":
deleteChatHistory(); deleteChatHistory();
dialog.dismiss();
break; break;
case "ta的主页": case "ta的主页":
showUserHome(); showUserHome();
dialog.dismiss();
break; break;
} }
dialog.dismiss();
} }
@Override @Override
...@@ -662,9 +650,6 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -662,9 +650,6 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
} }
}); });
builderm.create().show();
} }
//删除聊天记录 //删除聊天记录
...@@ -737,7 +722,7 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -737,7 +722,7 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
// } // }
private void skip2ExpertHome() {//跳转到专家主页 private void skip2ExpertHome() {//跳转到专家主页
// 跳转到专家主页 // 跳转到专家主页
String junmpurl = ImIn.INSTANCE.getExpertHost()+ docInfo.doctorId; String junmpurl = ImIn.INSTANCE.getExpertHost() + docInfo.doctorId;
String share_title = docInfo.name + "咨询工作室"; String share_title = docInfo.name + "咨询工作室";
String share_head = docInfo.cover; String share_head = docInfo.cover;
String share_context = ""; String share_context = "";
...@@ -922,12 +907,12 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -922,12 +907,12 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
private void showCallDialog() { private void showCallDialog() {
try { try {
final String tel = PlatformDataManager.INSTANCE.getRam().getGlobalInfo() == null ? "400-765-1010" : PlatformDataManager.INSTANCE.getRam().getGlobalInfo() .info.tel; final String tel = PlatformDataManager.INSTANCE.getRam().getGlobalInfo() == null ? "400-765-1010" : PlatformDataManager.INSTANCE.getRam().getGlobalInfo().info.tel;
String con = "\n400-765-1010\n早8:30-凌晨2:00"; String con = "\n400-765-1010\n早8:30-凌晨2:00";
if (PlatformDataManager.INSTANCE.getRam().getGlobalInfo() != null && PlatformDataManager.INSTANCE.getRam().getGlobalInfo() .info != null) { if (PlatformDataManager.INSTANCE.getRam().getGlobalInfo() != null && PlatformDataManager.INSTANCE.getRam().getGlobalInfo().info != null) {
con = PlatformDataManager.INSTANCE.getRam().getGlobalInfo() .info.tel + "\n" + PlatformDataManager.INSTANCE.getRam().getGlobalInfo() .info.work_time; con = PlatformDataManager.INSTANCE.getRam().getGlobalInfo().info.tel + "\n" + PlatformDataManager.INSTANCE.getRam().getGlobalInfo().info.work_time;
} }
new CommonDialog(mActivity) new CommonDialog(mActivity)
...@@ -956,7 +941,7 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler { ...@@ -956,7 +941,7 @@ public class P2PCustomActionHandlerImpl implements IP2PCustomActionHandler {
@Override @Override
public void startHelp(Context context) { public void startHelp(Context context) {
H5Params params = new H5Params(HttpConfig.Companion.getH5_URL() + "help/", ""); H5Params params = new H5Params(HttpConfig.Companion.getH5_URL() + "help/", "");
params.setShowMenu(true); params.setShowMenu(true);
NewH5Activity.start(context, params); NewH5Activity.start(context, params);
......
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