easyswoole使用WordsMatch实现过滤敏感词

use EasySwoole\WordsMatch\WordsMatchClient;
use EasySwoole\WordsMatch\WordsMatchServer;

$res = WordsMatchClient::getInstance()->search(‘php是最好的语言’);
if(!empty($res)){
$this->writeJson(300,$res,’存在敏感词’);
}

This entry was posted in 编程 by .

发表评论

电子邮件地址不会被公开。 必填项已用*标注