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
81fbcf37
Commit
81fbcf37
authored
Mar 05, 2019
by
杨培
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
f0abd244
5a928a52
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
5 deletions
+66
-5
ucenter_label.php
example/ucenter_label.php
+19
-0
Customer.php
src/shop/Customer.php
+12
-5
Label.php
src/ucenter/Label.php
+35
-0
No files found.
example/ucenter_label.php
0 → 100644
View file @
81fbcf37
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2019-03-05
* Time: 11:32
*/
use
internalApi\ucenter\Label
;
require
__DIR__
.
'/_init.php'
;
Label
::
setDebug
();
//$info = Group::getPotentialGroupMemberList('worker-71318');
$info
=
Label
::
getLabels
(
Label
::
TYPE_BRAND
);
print_r
(
$info
);
src/shop/Customer.php
View file @
81fbcf37
...
@@ -15,9 +15,16 @@ use internalApi\base\Client;
...
@@ -15,9 +15,16 @@ use internalApi\base\Client;
class
Customer
extends
Client
class
Customer
extends
Client
{
{
public
static
function
updateSync
(
$uid
,
$data
){
/**
return
self
::
call
(
'customer.updateSync'
,
compact
(
'uid'
,
'data'
));
* 同步用户中心数据
* @param int $uid 用户中心uid
}
* @param array $data 用户数据
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
updateSync
(
$uid
,
$data
)
{
return
self
::
call
(
'customer.updateSync'
,
compact
(
'uid'
,
'data'
));
}
}
}
src/ucenter/Label.php
0 → 100644
View file @
81fbcf37
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 2019-03-05
* Time: 11:25
*/
namespace
internalApi\ucenter
;
use
internalApi\base\Client
;
class
Label
extends
Client
{
//类型 1=>认证 2=>品类 3=>品牌
const
TYPE_AUTH
=
1
;
//认证
const
TYPE_CATEGORY
=
2
;
//品类
const
TYPE_BRAND
=
3
;
//品牌
/**
* @param array/int $type 1=>认证 2=>品类 3=>品牌
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
getLabels
(
$type
=
null
)
{
return
self
::
call
(
'label.getLabels'
,
compact
(
'type'
));
}
}
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