Skip to content

Commit 1e9ef0c

Browse files
authored
Update helpers.php
1 parent c65c50b commit 1e9ef0c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/helpers.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,18 @@ function tap($value, $callback = null)
2424
}
2525
}
2626

27-
if (!function_exists('sendRequest')) {
27+
if (!function_exists('curl')) {
2828
/**
2929
* Http 请求
30-
*
30+
*
3131
* @param string $url 请求网址
3232
* @param string $method 请求方式
3333
* @param array $params 请求参数
3434
* @param array $headers 请求头
35-
*
36-
* @return bool|mixed
35+
*
36+
* @return bool|array
3737
*/
38-
function sendRequest(string $url, string $method = "GET", array $params = [], array $headers = [])
38+
function curl(string $url, string $method = "GET", array $params = [], array $headers = [])
3939
{
4040
$method = strtoupper($method);
4141

0 commit comments

Comments
 (0)