[ 'id' => '32459197', 'limit' => 20, ], ]; $client = new Client(['verify' => false]); try { $response = $client->get('https://netease.api.x-lf.cn/artist/songs', $data); print_r(json_decode($response->getBody()->getContents())); $this->assertTrue(true, "可以访问"); } catch (GuzzleException $e) { echo $e; $this->fail("发生错误"); } } }