Skip to content

Commit

Permalink
3.9 查询赠品信息接口
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorCho committed Sep 14, 2018
1 parent 132f662 commit 8076d2d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Product/GetSkuGiftClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
namespace Zeevin\Libjdvop\Product;


class GetSkuGiftClient
use Zeevin\Libjdvop\Core\BaseClient;

class GetSkuGiftClient extends BaseClient
{
protected $domain = 'product';
protected $prefix = 'getSkuGift';
Expand Down
27 changes: 27 additions & 0 deletions tests/Product_GetSkuGift.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php
/**
* @link https://www.init.lu
* @author Cao Kang(caokang@outlook.com)
* Date: 2018/8/22
* Time: 上午11:56
* Source: Product_CheckAreaLimit.php
* Project: libjdvop
*/

require 'autoloader.php';
$config = require './config.php';

$application = new \Zeevin\Libjdvop\Application($config);

/** @var \Zeevin\Libjdvop\Product\RequestAttribute\CheckAreaLimit\Request $request */
$request = new \Zeevin\Libjdvop\Product\RequestAttribute\GetSkuGift\Request();


$request->setSkuId(1651145)->setProvince(13)->setCity(1112)->setCounty(3535)->setTown(46682);
$reqData = $request->serialize();
//print_r($reqData);exit;
/** @var \Zeevin\Libjdvop\Product\GetSkuGiftClient $app */
$app = $application['Product.GetSkuGift'];
$ret = $app->request($reqData)->getResponse('array');

print_r($ret);

0 comments on commit 8076d2d

Please sign in to comment.