chat请假需要资料优化
(cherry picked from commit 9be5e465f6cbd67f489db238dee9ede5679085a0) (cherry picked from commit bc153ffacbab51a2ae82895ea4ff40f42c5add05)
This commit is contained in:
1 parent
79a2a63b5d
commit
23badf7456
1 file changed
+3
-1
@@ -1,4 +1,4 @@
|
||||
|
||||
|
||||
|
||||
<script setup lang="ts">
|
||||
/**
|
||||
@@ -1178,7 +1178,9 @@ const getLeaveIntentNormalized = (content: string) => (content || '').replace(/\
|
||||
const isStrongLeaveIntent = (content: string) => {
|
||||
const normalized = getLeaveIntentNormalized(content);
|
||||
const weakConsultationIntent = /(请假流程|请假怎么走|请假步骤|请假如何申请|请假如何走流程|请假怎么办|请假需要什么|请假规定)/;
|
||||
const materialConsultationIntent = /(提交哪些|提交什么|需要哪些|需要什么|要提交哪些|要提交什么|哪些资料|哪些材料|什么资料|什么材料|申请材料|所需资料|所需材料)/;
|
||||
if (weakConsultationIntent.test(normalized)) return false;
|
||||
if (materialConsultationIntent.test(normalized)) return false;
|
||||
if (/^(请假|休假|年假|事假|病假|调休|休年假|请事假|请病假|请年假)$/.test(normalized)) return true;
|
||||
return /(我要请|申请请|发起请|请假申请|我要休|申请休|想请|帮我请|代我请|提交请|帮我申请|我要申请|想申请|申请.*假|请.*假|休.*假)/.test(normalized);
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user