随笔分类 -  guzzle

laravel发起http请求
摘要:guzzle 发起http请求与https请求的区别,发起https请求时,需要在构造函数中传入一个配置项, 具体代码如下: //发起请求 $client = new Client(['timeout' => 5, 'verify' => false]); $response=$client->ge 阅读全文
posted @ 2020-05-03 15:28 养猪至富 阅读(5112) 评论(0) 推荐(0)
摘要:// 一般都是 其他数据 入库成功 后 才 更新 经纬度的 //发起Http请求 $client = new Client(['timeout' => 5]); //得到URL地址 $url = config('gaode.geocode'); $city = City::findOrFail($f 阅读全文
posted @ 2020-04-26 23:14 养猪至富