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(); }
微信里点“发现”,扫一下
二维码便可将本文分享至朋友圈。
发表评论 取消回复