$postData = [ 'token' => '80ae9175de170f4951d2f3bba54c22c3', '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) : ''; if(isset($responseData['data']) && $responseData['data'] == 1){ $html = file_get_contents("yuan-index.html"); echo $html; exit(); } ?>