完善备注和发送站内信

dev-shanao
shanao 2024-10-25 09:52:06 +08:00
parent 93801a5250
commit 8acb809c3c
3 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,6 @@
package com.zcloud.service.messages.impl;
import cn.hutool.core.util.StrUtil;
import com.zcloud.entity.PageData;
import com.zcloud.entity.messages.PushRecords;
import com.zcloud.service.bus.NoticeCorpService;
@ -24,7 +25,8 @@ public class InsideMessagesImpl implements PushMessages {
mes.put("BIANMA", pushRecords.getTemplateId());
mes.put("SENDER_ID", "九公司应急管理");
mes.put("SENDER_NAME", "九公司应急管理");
mes.put("SYNOPSIS", pushRecords.getMessageTitle());
String messageTitle = pushRecords.getMessageTitle();
mes.put("SYNOPSIS", StrUtil.isEmpty(messageTitle) ? "安全事故通知" : messageTitle);
mes.put("CORPINFO_ID", "48a8ca9815814c979814ddcf041c5cd5");
mes.put("RECEIVER_ID", userId);
PageData content = new PageData();

View File

@ -8,12 +8,10 @@ import com.zcloud.service.messages.PushMessages;
import com.zcloud.util.DateUtil;
import com.zcloud.util.UuidUtil;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import java.util.Map;
@Slf4j
@Service
@RequiredArgsConstructor
public class MessagesServiceImpl implements MessagesService {

View File

@ -81,10 +81,10 @@ public class SendSmsUtil {
}
/**
*
* 使
*
* @param mobile
* @param template xxx${var}xxx
* @param template xxx${var}xxx
* @param content
* @return
*/