|
|
@@ -29,9 +29,8 @@ function football()
|
|
|
curl_setopt($ch, CURLOPT_URL, $url); // 不用拼接查询字符串
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
|
|
curl_setopt($ch, CURLOPT_HTTPHEADER, [
|
|
|
- "x-rapidapi-key: {$key}",
|
|
|
- "Accept: application/json",
|
|
|
- "User-Agent: PHP"
|
|
|
+ "x-rapidapi-key: {$key}"
|
|
|
+
|
|
|
]);
|
|
|
|
|
|
// 使用 POSTFIELDS 设置 GET 参数
|