|
@@ -934,7 +934,10 @@ export default {
|
|
// 判断输入的是否是转人工字段
|
|
// 判断输入的是否是转人工字段
|
|
// const manMade = ['人工', '客服', '人工客服']
|
|
// const manMade = ['人工', '客服', '人工客服']
|
|
const manMade = this.customerKeywords
|
|
const manMade = this.customerKeywords
|
|
- if (manMade.includes(params.content.toLocaleLowerCase())) {
|
|
|
|
|
|
+ const isHave = manMade.some((keyword) => {
|
|
|
|
+ return params.content.toLowerCase().includes(keyword.toLowerCase())
|
|
|
|
+ })
|
|
|
|
+ if (isHave) {
|
|
if (this.timer) clearTimeout(this.timer)
|
|
if (this.timer) clearTimeout(this.timer)
|
|
this.timer = setTimeout(() => {
|
|
this.timer = setTimeout(() => {
|
|
this.setCustomer({type: '2'}, 'input')
|
|
this.setCustomer({type: '2'}, 'input')
|
|
@@ -1462,7 +1465,10 @@ export default {
|
|
// 判断输入的是否是转人工字段
|
|
// 判断输入的是否是转人工字段
|
|
// const manMade = ['人工', '客服', '人工客服']
|
|
// const manMade = ['人工', '客服', '人工客服']
|
|
const manMade = this.customerKeywords
|
|
const manMade = this.customerKeywords
|
|
- if (manMade.includes(data.question.toLocaleLowerCase())) {
|
|
|
|
|
|
+ const isHave = manMade.some((keyword) => {
|
|
|
|
+ return data.question.toLowerCase().includes(keyword.toLowerCase())
|
|
|
|
+ })
|
|
|
|
+ if (isHave) {
|
|
// this.setCustomer({type: '2'})
|
|
// this.setCustomer({type: '2'})
|
|
} else {
|
|
} else {
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|