Commit d0b7b5f8 authored by 万继龙's avatar 万继龙

Merge branch 'develop' into 'test'

add: fix HttpUtil::post bug

See merge request bp/pay!21
parents a1e03fe5 ed6531e6
......@@ -4,6 +4,7 @@ namespace Helpers;
use Api\PhpUtils\Log\FileLog;
use Helpers\Tracer;
use Api\PhpUtils\Http\HttpUtil;
use Api\PhpUtils\Http\Request;
use App\Exception\BaseException;
/**
......@@ -27,7 +28,8 @@ class Sdk {
];
$headers = array_merge($headers, $header);
$data = HttpUtil::post($url, $params, 2000, 1, $headers);
//$data = HttpUtil::post($url, $params, 2000, 1, $headers);
$data = (new Request())->post($url, $params,2000, 'json', $headers);
/*
[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment