Google#u客户端收据验证:Class';GuzzleHttp\Psr7\UriResolver';在\vendor\guzzlehttp\guzzle\src\Client.php第147行中找不到

Google#u客户端收据验证:Class';GuzzleHttp\Psr7\UriResolver';在\vendor\guzzlehttp\guzzle\src\Client.php第147行中找不到,php,laravel,receipt-validation,lumen-5.3,Php,Laravel,Receipt Validation,Lumen 5.3,我使用的是Lumen版本Laravel框架版本Lumen(5.3.3)(Laravel组件5.3.*)。下面是我的代码。但是抛出异常: 在\vendor\GuzzleHttp\guzzle\src\Client.php第147行中找不到类“GuzzleHttp\Psr7\UriResolver” 代码: 问题解决:)我所做的是降低了适用于Lumen 5.33的api客户端的级别。这是版本“google/apiclient”:“1.1.8”,“laravel/lumen framework”:“5

我使用的是Lumen版本Laravel框架版本Lumen(5.3.3)(Laravel组件5.3.*)。下面是我的代码。但是抛出异常:

在\vendor\GuzzleHttp\guzzle\src\Client.php第147行中找不到类“GuzzleHttp\Psr7\UriResolver”

代码:

问题解决:)我所做的是降低了适用于Lumen 5.33的api客户端的级别。这是版本“google/apiclient”:“1.1.8”,“laravel/lumen framework”:“5.3.*”,问题解决:)我所做的是降低了适用于lumen 5.33的api客户端的级别。这是版本“google/apiclient”:“1.1.8”,“laravel/lumen框架”:“5.3.*”,
$applicationName = 'xxx';
$configLocation = storage_path() . '/receiptValidation/GooglePlayAndroidDeveloper-7cb840b98626.json';
$scope = ['https://www.googleapis.com/auth/androidpublisher'];
$packageName = 'xxxxx';
$productId = 'xxxxx';
$purchaseToken = 'xxxxx';

$client = new \Google_Client();
$client->setApplicationName($applicationName);
$client->setAuthConfig($configLocation);
$client->setScopes($scope);

$validator = new PlayValidator(new \Google_Service_AndroidPublisher($client));

try {
$response = $validator->setPackageName($packageName)
    ->setProductId($productId)
    ->setPurchaseToken($purchaseToken)
    ->validatePurchase();
} catch (Exception $e) {
    var_dump($e->getMessage());
    // example message: Error calling GET ....: (404) Product not found for this application.
}