|
|
@@ -29,7 +29,7 @@ function football()
|
|
|
curl_setopt($ch, CURLOPT_URL, $url); // 不用拼接查询字符串
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
|
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
|
|
- "x-rapidapi-key: your-api-key",
|
|
|
+ "x-rapidapi-key: {$key}",
|
|
|
"Accept: application/json",
|
|
|
"User-Agent: PHP"
|
|
|
]);
|