|
|
@@ -29,6 +29,7 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
+import java.util.ArrayList;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@@ -171,6 +172,19 @@ public class IpadSendServer {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public void sendTxtAtMsg(BaseVo vo) {
|
|
|
+ WxSendTextAtMsgTwoDTO dto = new WxSendTextAtMsgTwoDTO();
|
|
|
+ List<WxSendTextAtMsgTwoDTO.Contentva> contentvaList = new ArrayList<>();
|
|
|
+ WxSendTextAtMsgTwoDTO.Contentva contentva = new WxSendTextAtMsgTwoDTO.Contentva();
|
|
|
+ contentva.setMsgtype(5);
|
|
|
+ contentva.setVid(0);
|
|
|
+ contentvaList.add(contentva);
|
|
|
+ dto.setContentva(contentvaList);
|
|
|
+ dto.setBase(vo);
|
|
|
+ dto.setSend_userid(ipadSendUtils.userIds(vo));
|
|
|
+ ipadSendUtils.sendTxtAtMsgVo(dto, vo.getServerId());
|
|
|
+ }
|
|
|
+
|
|
|
public void sendVoice(BaseVo vo, QwSopCourseFinishTempSetting.Setting content) {
|
|
|
if (StringUtils.isEmpty(content.getVoiceUrl()) || StringUtils.isEmpty(content.getVoiceDuration())) {
|
|
|
log.debug("语音未生成无法发送,转文字发送:{}", vo);
|
|
|
@@ -375,6 +389,10 @@ public class IpadSendServer {
|
|
|
// 语音
|
|
|
sendWxVideo(vo, content);
|
|
|
break;
|
|
|
+ case "99":
|
|
|
+ // 群发
|
|
|
+ sendTxtAtMsg(vo);
|
|
|
+ break;
|
|
|
default:
|
|
|
// 未知类型,记录警告
|
|
|
log.error("SOP_LOG_ID:{}错误的发送类型: {}", qwSopLogs.getId(), content.getContentType());
|