From 8076d2d7c1560af7e0b370a2cdc615e83d3f193f Mon Sep 17 00:00:00 2001 From: ConnorCho Date: Fri, 14 Sep 2018 11:25:08 +0800 Subject: [PATCH] =?UTF-8?q?3.9=20=E6=9F=A5=E8=AF=A2=E8=B5=A0=E5=93=81?= =?UTF-8?q?=E4=BF=A1=E6=81=AF=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Product/GetSkuGiftClient.php | 4 +++- tests/Product_GetSkuGift.php | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 tests/Product_GetSkuGift.php diff --git a/src/Product/GetSkuGiftClient.php b/src/Product/GetSkuGiftClient.php index 33d4877..e70877c 100644 --- a/src/Product/GetSkuGiftClient.php +++ b/src/Product/GetSkuGiftClient.php @@ -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'; diff --git a/tests/Product_GetSkuGift.php b/tests/Product_GetSkuGift.php new file mode 100644 index 0000000..fa3abda --- /dev/null +++ b/tests/Product_GetSkuGift.php @@ -0,0 +1,27 @@ +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); \ No newline at end of file