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

httpPost() public method

Http Post 请求
public httpPost ( $url, array $postOptions, array $options = [] ) : mixed
$url
$postOptions array
$options array
return mixed
    public function httpPost($url, array $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 => $postOptions]);
        }, $this->httpBuildQuery($url, $options), $postOptions);
    }