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
c1179627
Commit
c1179627
authored
Mar 06, 2018
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加获取关注用户的接口
parent
cc691e5f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
ucenter_follow.php
example/ucenter_follow.php
+2
-1
Follow.php
src/ucenter/Follow.php
+12
-0
No files found.
example/ucenter_follow.php
View file @
c1179627
...
@@ -14,7 +14,8 @@ require __DIR__.'/_init.php';
...
@@ -14,7 +14,8 @@ require __DIR__.'/_init.php';
Follow
::
setDebug
();
Follow
::
setDebug
();
//Follow::add(1,1);
//Follow::add(1,1);
$info
=
Follow
::
delete
(
1
,
1
);
//
$info = Follow::delete(1,1);
//$info = Member::getSyncByMobile('13000000002');
//$info = Member::getSyncByMobile('13000000002');
//$info = Member::getSyncByUid(514);
//$info = Member::getSyncByUid(514);
$info
=
Follow
::
getFollowUser
(
42
);
print_r
(
$info
);
print_r
(
$info
);
src/ucenter/Follow.php
View file @
c1179627
...
@@ -49,4 +49,16 @@ class Follow extends Client
...
@@ -49,4 +49,16 @@ class Follow extends Client
{
{
return
self
::
call
(
'follow.check'
,
compact
(
'userId'
,
'followedUserId'
));
return
self
::
call
(
'follow.check'
,
compact
(
'userId'
,
'followedUserId'
));
}
}
/**
* 获取关注用户
* @param $userId
* @return mixed
* @throws \internalApi\base\ApiException
* @throws \internalApi\base\ClientException
*/
public
static
function
getFollowUser
(
$userId
)
{
return
self
::
call
(
'follow.getFollowUser'
,
compact
(
'userId'
));
}
}
}
\ 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