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
59750efe
Commit
59750efe
authored
Nov 30, 2020
by
xiabin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加接口
parent
9c1b004b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
149 additions
and
121 deletions
+149
-121
Member.php
src/ucenter/Member.php
+149
-121
No files found.
src/ucenter/Member.php
View file @
59750efe
...
@@ -31,7 +31,7 @@ class Member extends Client
...
@@ -31,7 +31,7 @@ class Member extends Client
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
* @throws \internalApi\base\ClientException
*/
*/
public
static
function
getMemberInfo
(
$uid
,
$opts
=
[
'info'
])
public
static
function
getMemberInfo
(
$uid
,
$opts
=
[
'info'
])
{
{
return
self
::
call
(
'member.getInfo'
,
compact
(
'uid'
,
'opts'
));
return
self
::
call
(
'member.getInfo'
,
compact
(
'uid'
,
'opts'
));
}
}
...
@@ -94,7 +94,7 @@ class Member extends Client
...
@@ -94,7 +94,7 @@ class Member extends Client
* @param array $expand 扩展信息数组,包含可选字段:mobile, mail, wx_openid, avatar
* @param array $expand 扩展信息数组,包含可选字段:mobile, mail, wx_openid, avatar
* @return array [bool state, string statusText, string|array message or user data]
* @return array [bool state, string statusText, string|array message or user data]
*/
*/
public
static
function
register
(
$username
,
$password
,
$nickname
,
$expand
=
[])
public
static
function
register
(
$username
,
$password
,
$nickname
,
$expand
=
[])
{
{
return
self
::
call
(
'member.register'
,
compact
(
'username'
,
'password'
,
'nickname'
,
'expand'
));
return
self
::
call
(
'member.register'
,
compact
(
'username'
,
'password'
,
'nickname'
,
'expand'
));
}
}
...
@@ -156,7 +156,7 @@ class Member extends Client
...
@@ -156,7 +156,7 @@ class Member extends Client
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
* @throws \internalApi\base\ClientException
*/
*/
public
static
function
updateExtOption
(
$uid
,
$option
,
$trigger
=
true
)
public
static
function
updateExtOption
(
$uid
,
$option
,
$trigger
=
true
)
{
{
return
self
::
call
(
'member.updateExtOption'
,
compact
(
'uid'
,
'option'
,
'trigger'
));
return
self
::
call
(
'member.updateExtOption'
,
compact
(
'uid'
,
'option'
,
'trigger'
));
}
}
...
@@ -201,4 +201,32 @@ class Member extends Client
...
@@ -201,4 +201,32 @@ class Member extends Client
return
self
::
call
(
'member.getUidByWxhuid'
,
compact
(
'wxhuid'
));
return
self
::
call
(
'member.getUidByWxhuid'
,
compact
(
'wxhuid'
));
}
}
/**
* 根据微信unionid获取用户信息
* @param $wxUnionid
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
getSyncByWxUnionid
(
$wxUnionid
)
{
return
self
::
call
(
'member.getSyncByWxUnionid'
,
compact
(
'wxUnionid'
));
}
/**
* @param $wxhUid
* @param $data
* ['loginName', 'mobile', 'email', 'unionid', 'name', 'password', 'photo']
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
updateSsoUserInfo
(
$wxhUid
,
$data
){
$ssoid
=
$wxhUid
;
return
self
::
call
(
'member.updateSsoUserInfo'
,
compact
(
'ssoid'
,
'data'
));
}
}
}
\ No newline at end of file
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