Commit 82a24101 authored by 杨培's avatar 杨培

增加积分增减相关接口

parent e0c0ffd2
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2018/10/19
* Time: 11:50
*/
use internalApi\bbs\Credit;
require __DIR__.'/_init.php';
Credit::setDebug(true);
//$kk = Credit::updateExp(12, 1, '', 0, '测试加分RuleText', '测试加分Title', '测试加分Memo');
//$kk = Credit::updateCoin(12, 1, '', 0, '测试加分RuleText', '测试加分Title', '测试加分Memo');
$kk = Credit::updateExp(12, 1, 'watch_video', 15, '测试加分RuleText', '测试加分Title', '看视频');
//
<?php
/**
* Created by PhpStorm.
* User: pader
* Date: 2018/10/19
* Time: 09:35
*/
namespace internalApi\bbs;
use internalApi\base\Client;
class Credit extends Client
{
public static function updateCoin($ucid, $paycredits, $operation = '', $relatedid = 0, $ruletxt = '', $customtitle = '', $custommemo = '')
{
return self::call('credit.updateCoin', compact('ucid', 'paycredits', 'operation', 'relatedid', 'ruletxt', 'customtitle', 'custommemo'));
}
public static function updateExp($ucid, $paycredits, $operation = '', $relatedid = 0, $ruletxt = '', $customtitle = '', $custommemo = '')
{
return self::call('credit.updateExp', compact('ucid', 'paycredits', 'operation', 'relatedid', 'ruletxt', 'customtitle', 'custommemo'));
}
}
\ 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