首先:安装
在composer.json文件的“require”项中加入 "guzzlehttp/guzzle": "^6.3",
然后执行 composer install
使用该服务完成post和get 请求
public function test1(){
$url="xxxxxxxxxxxxxxxxxxxx/health_list";
$postdata['doc_id']='1320001';
//use GuzzleHttp\Client;
$response = $this->client