Redefinition of parameter $quotaMax
1. in /home/wwwroot/amz.codecenter.cn/frontend/controllers/MarketplaceWebServiceProducts/Model/ResponseHeaderMetadata.phpat line 31
const REQUEST_ID = 'x-mws-request-id';
const RESPONSE_CONTEXT = 'x-mws-response-context';
const TIMESTAMP = 'x-mws-timestamp';
const QUOTA_MAX = 'x-mws-quota-max';
const QUOTA_REMAINING = 'x-mws-quota-remaining';
const QUOTA_RESETS_AT = 'x-mws-quota-resetsOn';
private $metadata = array();
public function __construct($requestId = null, $responseContext = null, $timestamp = null,$quotaMax = null, $quotaMax = null, $quotaResetsAt = null) {
// public function __construct($requestId = null, $responseContext = null, $timestamp = null,$quotaMax = null, $quotaRemaining = null, $quotaResetsAt = null) {
$this->metadata[self::REQUEST_ID] = $requestId;
$this->metadata[self::RESPONSE_CONTEXT] = $responseContext;
$this->metadata[self::TIMESTAMP] = $timestamp;
$this->metadata[self::QUOTA_MAX] = $quotaMax;
$this->metadata[self::QUOTA_REMAINING] = $quotaMax;
$this->metadata[self::QUOTA_RESETS_AT] = $quotaResetsAt;
}
解决办法
修改一下文件
MarketplaceWebServiceProducts/Model/ResponseHeaderMetadata.php
修改前
public function __construct($requestId = null, $responseContext = null, $timestamp = null,$quotaMax = null, $quotaMax = null, $quotaResetsAt = null) {
$this->metadata[self::REQUEST_ID] = $requestId;
$this->metadata[self::RESPONSE_CONTEXT] = $responseContext;
$this->metadata[self::TIMESTAMP] = $timestamp;
$this->metadata[self::QUOTA_MAX] = $quotaMax;
$this->metadata[self::QUOTA_REMAINING] = $quotaMax;
$this->metadata[self::QUOTA_RESETS_AT] = $quotaResetsAt;
}
修改后
public function __construct($requestId = null, $responseContext = null, $timestamp = null,$quotaMax = null, $quotaRemaining = null, $quotaResetsAt = null) {
$this->metadata[self::REQUEST_ID] = $requestId;
$this->metadata[self::RESPONSE_CONTEXT] = $responseContext;
$this->metadata[self::TIMESTAMP] = $timestamp;
$this->metadata[self::QUOTA_MAX] = $quotaMax;
$this->metadata[self::QUOTA_REMAINING] = $quotaRemaining;
$this->metadata[self::QUOTA_RESETS_AT] = $quotaResetsAt;
}