correctData; } public function setCorrectData($correctData) { $this->correctData = $correctData; $arr = array(); foreach ($correctData as $temp){ array_push($arr,$temp->getApiParams()); } $this->apiParams["correctData"] = $arr; } public function getProductCode() { return $this->productCode; } public function setProductCode($productCode) { $this->productCode = $productCode; $this->apiParams["productCode"] = $productCode; } public function getApiMethodName(){ return 'suning.saleoff.mainproduct.modify'; } public function getApiParams(){ return $this->apiParams; } public function check(){ //非空校验 RequestCheckUtil::checkNotNull($this->productCode, 'productCode'); } public function getBizName(){ return "modifyMainproduct"; } } class CorrectData { private $apiParams = array(); private $barpic; private $correctKey; private $correctValue; private $subCode; public function getBarpic() { return $this->barpic; } public function setBarpic($barpic) { $this->barpic = $barpic; $this->apiParams["barpic"] = $barpic; } public function getCorrectKey() { return $this->correctKey; } public function setCorrectKey($correctKey) { $this->correctKey = $correctKey; $this->apiParams["correctKey"] = $correctKey; } public function getCorrectValue() { return $this->correctValue; } public function setCorrectValue($correctValue) { $this->correctValue = $correctValue; $this->apiParams["correctValue"] = $correctValue; } public function getSubCode() { return $this->subCode; } public function setSubCode($subCode) { $this->subCode = $subCode; $this->apiParams["subCode"] = $subCode; } public function getApiParams(){ return $this->apiParams; } } ?>