request($method, $url, $param); $result = json_decode($response->getBody()->getContents(), true); if ($result['code'] == 0) { return $result['data']; } else { return []; } } catch (\Exception $exception) { return []; } }