|
@@ -84,10 +84,9 @@ public class ExtracurricularExercisesMessageServiceImpl extends BaseServiceImpl<
|
|
|
|
|
|
Map<Integer, String> userMap = new HashMap<>();
|
|
|
userMap.put(extracurricularExercisesReply.getUserId(),extracurricularExercisesReply.getUserId().toString());
|
|
|
- String notifyUrl = "3?courseScheduleID=" + extracurricularExercisesReply.getId() + "&studentCourseHomeworkId=" + extracurricularExercisesReply.getId()+ "&extra=1";
|
|
|
- String extra = "";
|
|
|
+ String notifyUrl = "?courseScheduleID=" + extracurricularExercisesReply.getId() + "&studentCourseHomeworkId=" + extracurricularExercisesReply.getId()+ "&extra=1";
|
|
|
+ String extra = "dayaedu" + notifyUrl + "&userId=" + extracurricularExercisesReply.getUserId();
|
|
|
if (extracurricularExercisesMessage.getMsgType() != ImSendTypeEnum.TXT){
|
|
|
- extra = "dayaedu?courseScheduleID=" + extracurricularExercisesReply.getId() + "&studentCourseHomeworkId=" + extracurricularExercisesReply.getId()+ "&extra=1&" + "userId=" + extracurricularExercisesReply.getUserId();
|
|
|
sysMessageService.batchSendImMessage(MessageTypeEnum.EXTRA_TEACHER_REPLY_IM,extracurricularExercises.getTeacherId().toString(),extra,
|
|
|
new String[]{extracurricularExercisesReply.getUserId().toString()},
|
|
|
null, extracurricularExercises.getTitle(), SysConfigService.NEW_MSG_PUSH);
|
|
@@ -97,7 +96,7 @@ public class ExtracurricularExercisesMessageServiceImpl extends BaseServiceImpl<
|
|
|
null, extracurricularExercises.getTitle(), extracurricularExercisesMessage.getContent());
|
|
|
}
|
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.EXTRA_TEACHER_REPLY_PUSH,
|
|
|
- userMap, null, 0, notifyUrl, "STUDENT", extracurricularExercises.getTitle());
|
|
|
+ userMap, null, 0, 3+notifyUrl, "STUDENT", extracurricularExercises.getTitle());
|
|
|
}else if("STUDENT".equals(extracurricularExercisesMessage.getRole())&&Objects.nonNull(extracurricularExercisesReply.getAttachments())){
|
|
|
Map<Integer, String> userMap = new HashMap<>();
|
|
|
userMap.put(extracurricularExercises.getTeacherId(), extracurricularExercises.getTeacherId().toString());
|
|
@@ -105,19 +104,17 @@ public class ExtracurricularExercisesMessageServiceImpl extends BaseServiceImpl<
|
|
|
|
|
|
String notifyUrl = "9?courseScheduleID=" + extracurricularExercisesReply.getId() +
|
|
|
"&userId=" + extracurricularExercisesReply.getUserId() + "&studentCourseHomeworkId=" + extracurricularExercisesReply.getId()+ "&extra=1";
|
|
|
- String extra = "";
|
|
|
if (extracurricularExercisesMessage.getMsgType() != ImSendTypeEnum.TXT){
|
|
|
- extra = "dayaedu?courseScheduleID=" + extracurricularExercisesReply.getId() + "&userId=" + extracurricularExercisesReply.getUserId() + "&studentCourseHomeworkId=" + extracurricularExercisesReply.getId()+ "&extra=1";
|
|
|
- sysMessageService.batchSendImMessage(MessageTypeEnum.EXTRA_STUDENT_REPLY_IM,extracurricularExercisesReply.getUserId().toString(),extra,
|
|
|
+ sysMessageService.batchSendImMessage(MessageTypeEnum.EXTRA_STUDENT_REPLY_IM,extracurricularExercisesReply.getUserId().toString(),"dayaedu"+notifyUrl,
|
|
|
new String[]{extracurricularExercises.getTeacherId().toString()},
|
|
|
null,extracurricularExercises.getTitle(), SysConfigService.NEW_MSG_PUSH);
|
|
|
}else {
|
|
|
- sysMessageService.batchSendImMessage(MessageTypeEnum.EXTRA_STUDENT_REPLY_IM,extracurricularExercisesReply.getUserId().toString(),extra,
|
|
|
+ sysMessageService.batchSendImMessage(MessageTypeEnum.EXTRA_STUDENT_REPLY_IM,extracurricularExercisesReply.getUserId().toString(),"dayaedu"+notifyUrl,
|
|
|
new String[]{extracurricularExercises.getTeacherId().toString()},
|
|
|
null,extracurricularExercises.getTitle(), extracurricularExercisesMessage.getContent());
|
|
|
}
|
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.EXTRA_STUDENT_REPLY_PUSH,
|
|
|
- userMap, null, 0, notifyUrl, "TEACHER", extracurricularExercises.getTitle(), user.getUsername());
|
|
|
+ userMap, null, 0, 9+notifyUrl, "TEACHER", extracurricularExercises.getTitle(), user.getUsername());
|
|
|
}
|
|
|
}
|
|
|
|