diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..800e6f3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/.DS_Store +/.idea +/.php_cs.cache \ No newline at end of file diff --git a/src/Operations/FindAeProductById.php b/src/Operations/FindAeProductById.php index f2b64e2..0a99766 100644 --- a/src/Operations/FindAeProductById.php +++ b/src/Operations/FindAeProductById.php @@ -5,17 +5,24 @@ class FindAeProductById extends AbstractOperation { public function __construct() { - $this->parameter['v'] = '1.1'; + $this->parameter['v'] = '2.0'; } public function getName() { - return 'dh.product.get'; + return 'dh.item.get'; } - public function setItemcode($itemcode) + public function setItemCode($itemCode) { - $this->parameter['itemcode'] = $itemcode; + $this->parameter['itemCode'] = $itemCode; return $this; } + + public function setSiteId($siteId) + { + $this->parameter['siteId'] = $siteId; + return $this; + } + } \ No newline at end of file diff --git a/src/Operations/ProductInfoList.php b/src/Operations/ProductInfoList.php index b9907f4..e2a9bbe 100644 --- a/src/Operations/ProductInfoList.php +++ b/src/Operations/ProductInfoList.php @@ -5,12 +5,18 @@ class ProductInfoList extends AbstractOperation { public function __construct() { - $this->parameter['v'] = '1.0'; + $this->parameter['v'] = '2.0'; } - + public function getName() { - return 'dh.products.get'; + return 'dh.item.list'; + } + + public function setOperateDateStart($operateDateStart) + { + $this->parameter['operateDateStart'] = $operateDateStart; + return $this; } public function setPages($pages) @@ -19,15 +25,15 @@ public function setPages($pages) return $this; } - public function setPagesize($pagesize) + public function setPageSize($pageSize) { - $this->parameter['pagesize'] = $pagesize; + $this->parameter['pageSize'] = $pageSize; return $this; } - public function setProductQueryVo($productQueryVo) + public function setState($state) { - $this->parameter['productQueryVo'] = $productQueryVo; + $this->parameter['state'] = $state; return $this; }