Commit 073e08b3 authored by 杨培's avatar 杨培

Merge remote-tracking branch 'origin/master'

parents 22a2117c 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);
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 29/11/2017
* Time: 2:53 PM
*/
namespace internalApi\ucenter;
use internalApi\base\Client;
class Follow extends Client
{
/**
* @param $userId
* @param $followedUserId
* @return mixed
*/
public static function add($userId, $followedUserId)
{
return self::call('follow.add', compact('userId', 'followedUserId'));
}
/**
* @param $userId
* @param $followedUserId
* @return mixed
*/
public static function delete($userId, $followedUserId)
{
return self::call('follow.delete', compact('userId', 'followedUserId'));
}
/**
* 判断是否关注
* @param $userId
* @param $followedUserId
* @return bool
*/
public static function check($userId, $followedUserId)
{
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