Skip to content

Commit

Permalink
Update HttpHelper.php
Browse files Browse the repository at this point in the history
  • Loading branch information
funadmin authored May 23, 2022
1 parent bde8629 commit 2f2d32e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helper/HttpHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class HttpHelper
*/
public static function post($url, $params = [], $header = [], $options = [], $cookies = [])
{
$req = self::sendRequest($url, $params, 'POST', $header = [], $options, $cookies);
$req = self::sendRequest($url, $params, 'POST', $header, $options, $cookies);
return $req['ret'] ? $req['msg'] : '';
}

Expand All @@ -38,7 +38,7 @@ public static function post($url, $params = [], $header = [], $options = [], $co
*/
public static function get($url, $params = [], $header = [], $options = [], $cookies = [])
{
$req = self::sendRequest($url, $params, 'GET', $header = [], $options, $cookies);
$req = self::sendRequest($url, $params, 'GET', $header, $options, $cookies);
return $req['ret'] ? $req['msg'] : '';
}

Expand Down

0 comments on commit 2f2d32e

Please sign in to comment.