JM-WechatMini/initialize/kp.go

15 lines
285 B
Go
Raw Permalink Normal View History

2023-11-10 09:30:29 +08:00
package initialize
import (
"miniapp/global"
"miniapp/service"
"miniapp/utils/flashtext"
)
func InitKp() *flashtext.KeywordProcessor {
Kp := flashtext.NewKeywordProcessor(false)
global.GVA_Kp = Kp
service.ServiceGroupApp.AppServiceGroup.AiKefuService.AddKeyWord()
return Kp
}