Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
370f5b4f
Commit
370f5b4f
authored
Jan 26, 2019
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加商城的sdk
parent
a12d48f0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
6 deletions
+65
-6
shop_customer.php
example/shop_customer.php
+21
-0
client_config_dev.php
src/client_config_dev.php
+7
-2
client_config_prod.php
src/client_config_prod.php
+7
-2
client_config_test.php
src/client_config_test.php
+7
-2
Customer.php
src/shop/Customer.php
+23
-0
No files found.
example/shop_customer.php
0 → 100644
View file @
370f5b4f
<?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
);
src/client_config_dev.php
View file @
370f5b4f
...
@@ -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'
]
];
src/client_config_prod.php
View file @
370f5b4f
...
@@ -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'
]
];
src/client_config_test.php
View file @
370f5b4f
...
@@ -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'
]
];
src/shop/Customer.php
0 → 100644
View file @
370f5b4f
<?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'
));
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment