Skip to content
This repository was archived by the owner on Jan 23, 2019. It is now read-only.

Commit 5756538

Browse files
committed
update
1 parent 68c4798 commit 5756538

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/helpers/CurlHelper.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ public static function get($url, array $params = [], array $headers = [])
103103
/**
104104
* send POST request
105105
*
106-
* @param string $url url
107-
* @param array $data url params
108-
* @param array $headers HEADER info
106+
* @param string $url submit url
107+
* @param array|string $data post data. array: form data, string: json data
108+
* @param array $headers HEADER info
109109
* @return string
110110
*/
111-
public static function post($url, array $data = [], array $headers = [])
111+
public static function post($url, $data = [], array $headers = [])
112112
{
113113
// $headers = [ 'Content-Type: application/json' ];
114114

0 commit comments

Comments
 (0)