Commit 615ebc98 authored by wangjj's avatar wangjj

获取签到日期接口

parent 98152b7a
...@@ -12,5 +12,5 @@ require __DIR__.'/_init.php'; ...@@ -12,5 +12,5 @@ require __DIR__.'/_init.php';
User::setDebug(true); User::setDebug(true);
$uid = 42; $uid = 42;
$data = User::updateGoldCoin('18503078897', 5, '完工奖励', '完工奖励+5'); $data = User::getMonthSignList(582);
print_r($data); print_r($data);
\ No newline at end of file
...@@ -47,4 +47,14 @@ class User extends Client ...@@ -47,4 +47,14 @@ class User extends Client
return self::call('user.updateGoldCoin', compact('telephone','num','title','text')); return self::call('user.updateGoldCoin', compact('telephone','num','title','text'));
} }
/**
* 获取签到的日期
* @param int $userId
* @return mixed
*/
public static function getMonthSignList($userId)
{
return self::call('user.getMonthSignList',compact('userId'));
}
} }
\ 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