|
@@ -65,7 +65,7 @@ function http($url, $param, $method = 'post')
|
|
|
$client = new \GuzzleHttp\Client();
|
|
|
$response = $client->request($method, $url, $param);
|
|
|
$result = json_decode($response->getBody()->getContents(), true);
|
|
|
- \Illuminate\Support\Facades\Log::debug('url:'.$url.'param:'.json_encode($param).'response:'.json_encode($result));
|
|
|
+ \Illuminate\Support\Facades\Log::debug('url:'.$url.'param:'.json_encode($param).'response:'.json_encode($result));dd($result);
|
|
|
if (isset($result['code']) && $result['code'] == 0) {
|
|
|
return $result['data'];
|
|
|
} else {
|