Commit b1bb6f28 authored by 夏彬's avatar 夏彬

添加接口以及更新demo

parent 70365ef4
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 11/09/2017
* Time: 11:54 AM
*/
use internalApi\bbs\User;
require __DIR__.'/_init.php';
User::setDebug(true);
$uid = 42;
$data = User::getGoldCoin($uid);
print_r($data);
\ No newline at end of file
...@@ -25,4 +25,14 @@ class User extends Client ...@@ -25,4 +25,14 @@ class User extends Client
return self::call('user.updateSync', compact('uid', 'data')); return self::call('user.updateSync', compact('uid', 'data'));
} }
/**
* 获取金币
* @param $uid
* @return mixed
*/
public static function getGoldCoin($uid)
{
return self::call('user.getGoldCoin', compact('uid'));
}
} }
\ 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