Commit daf356ba authored by 夏彬's avatar 夏彬

添加关注api

parent 9bfbc3af
<?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);
......@@ -17,24 +17,24 @@ class Follow extends Client
/**
* @param $userId
* @param $followUserId
* @param $followedUserId
* @return mixed
*/
public static function add($userId, $followUserId)
public static function add($userId, $followedUserId)
{
return self::call('follow.add', compact('userId', 'followUserId'));
return self::call('follow.add', compact('userId', 'followedUserId'));
}
/**
* @param $userId
* @param $followUserId
* @param $followedUserId
* @return mixed
*/
public static function delete($userId, $followUserId)
public static function delete($userId, $followedUserId)
{
return self::call('follow.delete', compact('userId', 'followUserId'));
return self::call('follow.delete', compact('userId', 'followedUserId'));
}
......@@ -42,11 +42,11 @@ class Follow extends Client
/**
* 判断是否关注
* @param $userId
* @param $followUserId
* @param $followedUserId
* @return bool
*/
public static function check($userId, $followUserId)
public static function check($userId, $followedUserId)
{
return self::call('follow.check', compact('userId', 'followUserId'));
return self::call('follow.check', compact('userId', 'followedUserId'));
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment