0

这是我的控制器

  $http = new \GuzzleHttp\Client; $response = $http->post('http://127.0.0.1:8000/oauth/token', [
            'form_params' => [
                'grant_type' => 'password',
                'client_id' => 2,
                'client_secret' => 'vZ2wi8dOIJLueXRzP4Dqvraad0V1GBj3DDy8RaXj,
                'username' => $request->username,
                'password' => $request->password,
            ]
        ]);
  return $response->getBody();

当我发布如下参数时 在此处输入图像描述

得不到回应。请帮我

4

0 回答 0