You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
2.1 KiB
115 lines
2.1 KiB
<?php
|
|
/**
|
|
* 苏宁开放平台接口 -
|
|
*
|
|
* @author suning
|
|
* @date 2017-5-9
|
|
*/
|
|
class MainproductModifyRequest extends SuningRequest{
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $correctData;
|
|
|
|
/**
|
|
*
|
|
*/
|
|
private $productCode;
|
|
|
|
public function getCorrectData() {
|
|
return $this->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;
|
|
}
|
|
|
|
}
|
|
|
|
?>
|