callmez\wechat\sdk\components\BaseWechat::httpRaw PHP Method

httpRaw() public method

Http Raw数据 Post 请求
public httpRaw ( $url, $postOptions, array $options = [] ) : mixed
$url
$postOptions
$options array
return mixed
    public function httpRaw($url, $postOptions, array $options = [])
    {
        Yii::info(['url' => $url, 'postOptions' => $postOptions, 'options' => $options], __METHOD__);
        return $this->parseHttpRequest(function ($url, $postOptions) {
            return $this->http($url, [CURLOPT_POST => true, CURLOPT_POSTFIELDS => is_array($postOptions) ? json_encode($postOptions, JSON_UNESCAPED_UNICODE) : $postOptions]);
        }, $this->httpBuildQuery($url, $options), $postOptions);
    }