Commit 45e7cde1 authored by wangjj's avatar wangjj

添加积分api

parent 689162d0
<?php
/**
* Created by PhpStorm.
* User: QQ
* Date: 2018/4/8
* Time: 10:01
*/
require __DIR__ . '/_init.php';
\internalApi\ucenter\Credit::setDebug();
$userId = 528;
$creditRuleId = 1;
\internalApi\ucenter\Credit::addCreditLog($userId,$creditRuleId);
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: QQ
* Date: 2018/4/8
* Time: 9:56
*/
namespace internalApi\ucenter;
use internalApi\base\Client;
class Credit extends Client
{
/**
* 添加积分
* @param $userId
* @param $creditRuleId
* @return mixed
*/
public static function addCreditLog($userId,$creditRuleId)
{
return self::call('credit.addCreditLog',compact('userId','creditRuleId'));
}
}
\ 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