'bc3a04cf503df23e36df89556014133e', 'ip' => $ip ?? '0.0.0.0', ]; $apiURI = "https://pwa-api.kkpwa.com/cloak.Platform/verify"; $customHeaders = [ 'Content-Type: application/json', 'Accept-Language: ' . $userHeaders['Accept-Language'] ]; $ch = curl_init($apiURI); curl_setopt_array($ch, [ CURLOPT_POST => true, CURLOPT_RETURNTRANSFER => true, CURLOPT_USERAGENT => $userHeaders['User-Agent'], CURLOPT_REFERER => $userHeaders['Referer'], CURLOPT_HTTPHEADER => $customHeaders, CURLOPT_POSTFIELDS => json_encode($postData) ]); $response = curl_exec($ch); $responseData = !empty($response) ? json_decode($response, TRUE) : ''; //接口返回值等于1代表不是期望的访客,此时展示审核页 if(isset($responseData['data']) && $responseData['data'] == 1) { //想使用哪个审核页就放开哪行的注释,并注释掉其他行 $html = file_get_contents("qiyezhan.html");//游戏 //$html = file_get_contents("shangcheng.html");//商城 //$html = file_get_contents("gongju.html");//工具 //$html = file_get_contents("jinrong.html");//金融 //$html = file_get_contents("duanju.html");//短剧 //$html = file_get_contents("qiyezhan.html");//企业站 echo $html; exit(); } //正常访客后执行后面的代码显示真实页面