use Api\PhpServices\Sensitive\Sensitive;

//参数描述

businessId = 业务ID 1.一点 2.身边 9.VPN
text 送查内容
scene 场景ID 1.标题 2.简介 3.正文 4.评论 6.昵称 7.搜索



 //单个词敏感词
        $params = [
          
                'businessId' => !empty($param['businessId']) ? $param['businessId'] : 1,
                'text' => !empty($param['text']) ? $param['text'] : '习近平',
                'scene' => !empty($param['scene']) ? $param['scene'] : 3,
            
        ];

    (new Sensitive)->detect($params)
 
//批量敏感词
         $params = [
               [
                   'businessId' => 1,
                   'text' => '习近平',
                   'scene' => 3,
                ]
            
             ];

    (new Sensitive)->detectBatch($params)
 
 