|
|
@@ -465,8 +465,8 @@ public class AiHookServiceImpl implements AiHookService {
|
|
|
}
|
|
|
|
|
|
//对用户处理的内容做处理,去除手机号替换
|
|
|
- //String maskedContent = processContent(qwContent);
|
|
|
- String contentEmj = replaceWxEmo(qwContent);
|
|
|
+ String maskedContent = processContent(qwContent);
|
|
|
+ String contentEmj = replaceWxEmo(maskedContent);
|
|
|
if(!contentEmj.contains("表情包")){
|
|
|
if(!contentEmj.isEmpty()){
|
|
|
addSaveAiMsg(1,1,contentEmj,user,fastGptChatSession.getSessionId(),role.getRoleId(),qwExternalContacts,fastGptChatSession.getUserId(),null,null,null);
|
|
|
@@ -972,7 +972,8 @@ public class AiHookServiceImpl implements AiHookService {
|
|
|
* @return
|
|
|
*/
|
|
|
private @Nullable String processContent(String qwContent) {
|
|
|
- String maskedContent = SensitiveDataUtils.maskMobileNumbers(qwContent);
|
|
|
+ //String maskedContent = SensitiveDataUtils.maskMobileNumbers(qwContent);
|
|
|
+ String maskedContent = qwContent;
|
|
|
if(maskedContent != null && !maskedContent.isEmpty()){
|
|
|
FastGptChatReplaceText fastGptChatReplaceText = new FastGptChatReplaceText();
|
|
|
fastGptChatReplaceText.setStatus(1);
|