Commit 09c3c13b authored by 杨培's avatar 杨培

Merge remote-tracking branch 'origin/master'

parents ad6b7b54 65aaf969
<?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);
...@@ -38,4 +38,10 @@ return [ ...@@ -38,4 +38,10 @@ return [
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => '6A23057D233DA902B5D603A758B0438E' 'clientSecret' => '6A23057D233DA902B5D603A758B0438E'
] ]
]; ],
\ No newline at end of file 'shop' => [
'apiUrl' => 'http://appapi.fecshoptest.com/v1/internalapi',
'clientId' => 'common',
'clientSecret' => 'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
]
];
...@@ -37,4 +37,10 @@ return [ ...@@ -37,4 +37,10 @@ return [
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => '6A23057D233DA902B5D603A758B0438E' 'clientSecret' => '6A23057D233DA902B5D603A758B0438E'
] ]
]; ],
\ No newline at end of file 'shop' => [
'apiUrl' => 'http://api-shop.banshouhui.com/internalapi/api',
'clientId' => 'common',
'clientSecret' => 'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
]
];
...@@ -32,9 +32,15 @@ return [ ...@@ -32,9 +32,15 @@ return [
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'TveYDczsq7LTllIUlM5t' 'clientSecret' => 'TveYDczsq7LTllIUlM5t'
], ],
'shop' => [
'apiUrl' => 'http://api-shop.test.yunyamooc.com/internalapi/api',
'clientId' => 'common',
'clientSecret' => 'qlOCFMUfxWjOhK2bdL88e3w2DjdhUDIA'
]
],
'sv' => [ 'sv' => [
'apiUrl' => 'http://sv.test.yunyamooc.com/api/server', 'apiUrl' => 'http://sv.test.yunyamooc.com/api/server',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => '6A23057D233DA902B5D603A758B0438E' 'clientSecret' => '6A23057D233DA902B5D603A758B0438E'
] ]
]; ];
\ No newline at end of file
<?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