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
cf048ce7
Commit
cf048ce7
authored
Mar 05, 2019
by
夏彬
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
45f8a843
81fbcf37
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
7 deletions
+20
-7
ucenter_basic.php
example/ucenter_basic.php
+1
-1
Customer.php
src/shop/Customer.php
+12
-5
Member.php
src/ucenter/Member.php
+7
-1
No files found.
example/ucenter_basic.php
View file @
cf048ce7
...
...
@@ -18,7 +18,7 @@ Member::setDebug();
//Member::updateAvatar(12, 'jpg', base64_encode($bin));
//$ret = Member::getWechatInfoFromCode('dasfasdfsdaf');
$ret
=
Member
::
getMemberInfo
(
793
,
[
'basic'
,
'vip'
,
'
other
'
]);
$ret
=
Member
::
getMemberInfo
(
793
,
[
'basic'
,
'vip'
,
'
verify
'
]);
print_r
(
$ret
);
//$info = Member::getMemberInfo(12);
...
...
src/shop/Customer.php
View file @
cf048ce7
...
...
@@ -15,9 +15,16 @@ use internalApi\base\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/Member.php
View file @
cf048ce7
...
...
@@ -18,7 +18,13 @@ class Member extends Client
*
* @param int $uid
* @param array $opts 指定返回值类别,可指定多个
* 目前可选:info 用户表全部信息,basic 基本信息,related 关联信息(如SSO UID,微信OpenId等),vip 服务星等级信息,other 其它信息
* 目前可选:
* info 用户表基本信息
* basic 基本信息
* related 关联信息(如SSO UID,微信OpenId等)
* vip 服务星等级信息
* other 其它信息
* verify 基本认证信息,例如姓名、地区等
* 如指定 ['basic', 'vip'] 即代表取基本信息与服务星等级信息
* 当指定 vip 时,如 vip_grade 字段返回值为 -1 则代表该成员只是准服务星,还需完善资料。
* @return array|null
...
...
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