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
09c3c13b
Commit
09c3c13b
authored
Jan 26, 2019
by
杨培
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
ad6b7b54
65aaf969
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
65 additions
and
3 deletions
+65
-3
shop_customer.php
example/shop_customer.php
+21
-0
client_config_dev.php
src/client_config_dev.php
+7
-1
client_config_prod.php
src/client_config_prod.php
+7
-1
client_config_test.php
src/client_config_test.php
+7
-1
Customer.php
src/shop/Customer.php
+23
-0
No files found.
example/shop_customer.php
0 → 100644
View file @
09c3c13b
<?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 @
09c3c13b
...
@@ -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'
]
];
src/client_config_prod.php
View file @
09c3c13b
...
@@ -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'
]
];
src/client_config_test.php
View file @
09c3c13b
...
@@ -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
src/shop/Customer.php
0 → 100644
View file @
09c3c13b
<?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