mirror of
				https://github.com/YunaiV/ruoyi-vue-pro.git
				synced 2025-11-04 08:06:12 +08:00 
			
		
		
		
	处理表情符号,content解析问题
This commit is contained in:
		@ -25,10 +25,10 @@ public class MjUtil {
 | 
				
			|||||||
        if (CharSequenceUtil.isBlank(content)) {
 | 
					        if (CharSequenceUtil.isBlank(content)) {
 | 
				
			||||||
            return null;
 | 
					            return null;
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        if (!content.contains("raw**")) {
 | 
					        if (!content.contains("<@")) {
 | 
				
			||||||
            return mjContent.setPrompt(content);
 | 
					            return mjContent.setPrompt(content);
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        int rawIndex = content.indexOf("raw**") + 5;
 | 
					        int rawIndex = content.indexOf("<@") - 3;
 | 
				
			||||||
        String prompt = content.substring(0, rawIndex).trim();
 | 
					        String prompt = content.substring(0, rawIndex).trim();
 | 
				
			||||||
        String contentTail = content.substring(rawIndex).trim();
 | 
					        String contentTail = content.substring(rawIndex).trim();
 | 
				
			||||||
        // 检查是否存在进度条
 | 
					        // 检查是否存在进度条
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user