|
@ -1571,6 +1571,15 @@ public class ConsultTeamService extends ConsultService {
|
|
for (String url : imgs)
|
|
for (String url : imgs)
|
|
ImUtill.sendTopicIM(doctorTemp.getCode(), doctorTemp.getName(), consult.getCode(), "2", url);
|
|
ImUtill.sendTopicIM(doctorTemp.getCode(), doctorTemp.getName(), consult.getCode(), "2", url);
|
|
}
|
|
}
|
|
|
|
}else if(oldConsult != null && isSend == 0){
|
|
|
|
JSONObject messages = ImUtill.getCreateTopicMessage(doctorTemp.getCode(), doctorTemp.getName(), consult.getTitle(), content, oldConsult.getImages());
|
|
|
|
JSONObject jsonObject = new JSONObject();
|
|
|
|
jsonObject.put(ct.getPatient(), 0);
|
|
|
|
jsonObject.put(ct.getDoctor(), 0);
|
|
|
|
JSONObject obj = ImUtill.createTopics(null, consult.getCode(), doctorTemp.getName(), jsonObject, messages, "2");
|
|
|
|
if (obj == null || obj.getInt("status") == -1) {
|
|
|
|
throw new RuntimeException("im消息创建异常!" + obj == null ? "" : obj.getString("message"));
|
|
|
|
}
|
|
}
|
|
}
|
|
JSONObject qiuzuObj = new JSONObject();
|
|
JSONObject qiuzuObj = new JSONObject();
|
|
qiuzuObj.put("session_id", oldConsult.getPatient() + "_consult_" + consult.getType());
|
|
qiuzuObj.put("session_id", oldConsult.getPatient() + "_consult_" + consult.getType());
|