Commit 370f5b4f authored by 夏彬's avatar 夏彬

添加商城的sdk

parent a12d48f0
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/8/22
* Time: 13:49
*/
use internalApi\xue\User;
require __DIR__.'/_init.php';
\internalApi\shop\Customer::setDebug(true);
$data = \internalApi\shop\Customer::updateSync(42,array(
'nickname'=>'夏彬1',
'star'=>1,
'vip_grade'=>0,
'phone_number'=>'15395081587'
));
var_dump($data);
...@@ -32,5 +32,10 @@ return [ ...@@ -32,5 +32,10 @@ return [
'apiUrl' => 'http://s.yunya.com/e/api/internal.php', 'apiUrl' => 'http://s.yunya.com/e/api/internal.php',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'TveYDczsq7LTllIUlM5t' 'clientSecret' => 'TveYDczsq7LTllIUlM5t'
] ],
]; 'shop' => [
\ No newline at end of file 'apiUrl' => 'http://appapi.fecshoptest.com/v1/internalapi',
'clientId' => 'common',
'clientSecret' => 'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
]
];
...@@ -31,5 +31,10 @@ return [ ...@@ -31,5 +31,10 @@ return [
'apiUrl' => 'http://s.ibanshou.cn/e/api/internal.php', 'apiUrl' => 'http://s.ibanshou.cn/e/api/internal.php',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'TveYDczsq7LTllIUlM5t' 'clientSecret' => 'TveYDczsq7LTllIUlM5t'
] ],
]; 'shop' => [
\ No newline at end of file 'apiUrl' => 'http://api-shop.banshouhui.com/internalapi/api',
'clientId' => 'common',
'clientSecret' => 'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
]
];
...@@ -31,5 +31,10 @@ return [ ...@@ -31,5 +31,10 @@ return [
'apiUrl' => 'http://s.test.yunyamooc.com/e/api/internal.php', 'apiUrl' => 'http://s.test.yunyamooc.com/e/api/internal.php',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'TveYDczsq7LTllIUlM5t' 'clientSecret' => 'TveYDczsq7LTllIUlM5t'
] ],
]; 'shop' => [
\ No newline at end of file 'apiUrl' => 'http://api-shop.test.yunyamooc.com/internalapi/api',
'clientId' => 'common',
'clientSecret' => 'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
]
];
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2019-01-26
* Time: 14:57
*/
namespace internalApi\shop;
use internalApi\base\Client;
class Customer extends Client
{
public static function updateSync($uid,$data){
return self::call('customer.updateSync',compact('uid','data'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment