解决方法


 try {
            $response = $this->httpClient->request('POST', $request_url, [
                'form_params' => $form,
                   
            ]);

            $body = $response->getBody()->getContents();
        } catch (ServerException $e) {
            $_error_code = $e->getCode();
            $_error_message = $e->getResponse()->getBody()->getContents();
        } catch (ClientException $e) {
            $_error_code = $e->getCode();
            $_error_message = $e->getResponse()->getBody()->getContents();
        } catch (RequestException $e) {
            $_error_code = $e->getCode();
            $_error_message = $e->getResponse()->getBody()->getContents();
        }

请联系我 商务合作、广告投放、题目勘误、侵权投诉

点赞(0)

Comment list 共有 0 条评论

暂无评论
立即
投稿
发表
评论
返回
顶部