Skip to content

Commit

Permalink
Merge pull request #1 from foundVanting/master
Browse files Browse the repository at this point in the history
更新获取产品接口版本
  • Loading branch information
reddrake authored Aug 14, 2019
2 parents a7f362b + 8a23a5f commit 262b0ad
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 11 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.DS_Store
/.idea
/.php_cs.cache
15 changes: 11 additions & 4 deletions src/Operations/FindAeProductById.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

}
20 changes: 13 additions & 7 deletions src/Operations/ProductInfoList.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}

Expand Down

0 comments on commit 262b0ad

Please sign in to comment.