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
daf356ba
Commit
daf356ba
authored
Nov 29, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加关注api
parent
9bfbc3af
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
9 deletions
+29
-9
ucenter_follow.php
example/ucenter_follow.php
+20
-0
Follow.php
src/ucenter/Follow.php
+9
-9
No files found.
example/ucenter_follow.php
0 → 100644
View file @
daf356ba
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2017/6/28
* Time: 10:23
*/
use
internalApi\ucenter\Follow
;
require
__DIR__
.
'/_init.php'
;
Follow
::
setDebug
();
//Follow::add(1,1);
$info
=
Follow
::
delete
(
1
,
1
);
//$info = Member::getSyncByMobile('13000000002');
//$info = Member::getSyncByUid(514);
print_r
(
$info
);
src/ucenter/Follow.php
View file @
daf356ba
...
@@ -17,24 +17,24 @@ class Follow extends Client
...
@@ -17,24 +17,24 @@ class Follow extends Client
/**
/**
* @param $userId
* @param $userId
* @param $followUserId
* @param $follow
ed
UserId
* @return mixed
* @return mixed
*/
*/
public
static
function
add
(
$userId
,
$followUserId
)
public
static
function
add
(
$userId
,
$follow
ed
UserId
)
{
{
return
self
::
call
(
'follow.add'
,
compact
(
'userId'
,
'followUserId'
));
return
self
::
call
(
'follow.add'
,
compact
(
'userId'
,
'follow
ed
UserId'
));
}
}
/**
/**
* @param $userId
* @param $userId
* @param $followUserId
* @param $follow
ed
UserId
* @return mixed
* @return mixed
*/
*/
public
static
function
delete
(
$userId
,
$followUserId
)
public
static
function
delete
(
$userId
,
$follow
ed
UserId
)
{
{
return
self
::
call
(
'follow.delete'
,
compact
(
'userId'
,
'followUserId'
));
return
self
::
call
(
'follow.delete'
,
compact
(
'userId'
,
'follow
ed
UserId'
));
}
}
...
@@ -42,11 +42,11 @@ class Follow extends Client
...
@@ -42,11 +42,11 @@ class Follow extends Client
/**
/**
* 判断是否关注
* 判断是否关注
* @param $userId
* @param $userId
* @param $followUserId
* @param $follow
ed
UserId
* @return bool
* @return bool
*/
*/
public
static
function
check
(
$userId
,
$followUserId
)
public
static
function
check
(
$userId
,
$follow
ed
UserId
)
{
{
return
self
::
call
(
'follow.check'
,
compact
(
'userId'
,
'followUserId'
));
return
self
::
call
(
'follow.check'
,
compact
(
'userId'
,
'follow
ed
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