feat(REQ-3114) - 完善消息提示内容格式

This commit is contained in:
wangli 2024-10-29 10:29:48 +08:00
parent cdfc90e761
commit e0f1a1411f
3 changed files with 7 additions and 3 deletions

View File

@ -39,7 +39,7 @@ public class GroupRegisterKeywordProcessor extends AbstractKeywordProcessor {
" \n " +
" \n " +
"### 使用示例: \n " +
"appReg workflowEngine");
"groupReg workflowEngine");
}
/**

View File

@ -41,7 +41,7 @@ public class TransferToMQStrategy extends AbstractRobotHandleStrategy {
private String activeProfile;
@Resource
private ThirdDingtalkConversationService thirdDingtalkConversationService;
private final Map</*会话 ID*/String, ThirdDingtalkConversation> conversationMap = new HashMap<>();
public static final Map</*会话 ID*/String, ThirdDingtalkConversation> conversationMap = new HashMap<>();
@PostConstruct
public void init() {
@ -62,7 +62,7 @@ public class TransferToMQStrategy extends AbstractRobotHandleStrategy {
ThirdDingtalkConversation conversation = checkConversationExists(chatbotMessage);
if (Objects.isNull(conversation)) {
return SampleText.from("当前群未关联后端服务,请@机器人发送“groupRegister”或“群注册”");
return SampleText.from("当前群未关联后端服务,请@机器人发送“groupReg”或“群注册”查看注册帮助!");
}
SampleMessageQueue messageQueue = SampleMessageQueue.from(conversation.getApplicationName(), getContent(chatbotMessage));

View File

@ -18,6 +18,8 @@ import java.util.Collections;
import java.util.List;
import java.util.Objects;
import static cn.axzo.riven.dingtalk.callback.robot.strategy.impl.TransferToMQStrategy.conversationMap;
/**
* 三方钉钉群会话信息
*
@ -29,6 +31,7 @@ import java.util.Objects;
public class ThirdDingtalkConversationServiceImpl implements ThirdDingtalkConversationService {
private final ThirdDingtalkConversationMapper thirdDingtalkConversationMapper;
@Override
public void upsert(ThirdDingtalkConversation conversation) {
ThirdDingtalkConversation oldEntity = thirdDingtalkConversationMapper
@ -39,6 +42,7 @@ public class ThirdDingtalkConversationServiceImpl implements ThirdDingtalkConver
thirdDingtalkConversationMapper.updateById(oldEntity);
} else {
thirdDingtalkConversationMapper.insert(conversation);
conversationMap.put(conversation.getConversationId(), conversation);
}
}