Commit 495f9e22 authored by 杨培's avatar 杨培

清理

parent 1bff106a
...@@ -11,7 +11,7 @@ use internalApi\bbs\Task; ...@@ -11,7 +11,7 @@ use internalApi\bbs\Task;
require __DIR__.'/_init.php'; require __DIR__.'/_init.php';
Credit::setDebug(true); //Credit::setDebug(true);
Task::setDebug(true); Task::setDebug(true);
//$kk = Credit::updateExp(12, 1, '', 0, '测试加分RuleText', '测试加分Title', '测试加分Memo'); //$kk = Credit::updateExp(12, 1, '', 0, '测试加分RuleText', '测试加分Title', '测试加分Memo');
...@@ -19,4 +19,9 @@ Task::setDebug(true); ...@@ -19,4 +19,9 @@ Task::setDebug(true);
//$kk = Credit::updateExp(12, 1, 'watch_video', 15, '测试加分RuleText', '测试加分Title', '看视频'); //$kk = Credit::updateExp(12, 1, 'watch_video', 15, '测试加分RuleText', '测试加分Title', '看视频');
//Credit::updateCreditByAction('reply', 12); //Credit::updateCreditByAction('reply', 12);
Task::trigger('wxh_medal_task:share', 12); $ret = Credit::updateCoin(12, 10, '', 0, '', '抽奖奖励扳手币', '抽奖奖励扳手币');
var_dump($ret);
//$ret = Task::trigger('wxh_medal_task:share', 12);
//var_dump($ret);
\ No newline at end of file
...@@ -23,7 +23,7 @@ class Credit extends Client ...@@ -23,7 +23,7 @@ class Credit extends Client
* @param string $ruletxt 提醒文字,默认为空即可 * @param string $ruletxt 提醒文字,默认为空即可
* @param string $customtitle 记录标题 * @param string $customtitle 记录标题
* @param string $custommemo 记录备注 * @param string $custommemo 记录备注
* @return bool * @return bool 返回 false 代表更新失败,否则视为成功
* @throws \internalApi\base\ApiException|\internalApi\base\ClientException * @throws \internalApi\base\ApiException|\internalApi\base\ClientException
*/ */
public static function updateCoin($ucid, $paycredits, $operation = '', $relatedid = 0, $ruletxt = '', $customtitle = '', $custommemo = '') public static function updateCoin($ucid, $paycredits, $operation = '', $relatedid = 0, $ruletxt = '', $customtitle = '', $custommemo = '')
...@@ -41,7 +41,7 @@ class Credit extends Client ...@@ -41,7 +41,7 @@ class Credit extends Client
* @param string $ruletxt 提醒文字,默认为空即可 * @param string $ruletxt 提醒文字,默认为空即可
* @param string $customtitle 记录标题 * @param string $customtitle 记录标题
* @param string $custommemo 记录备注 * @param string $custommemo 记录备注
* @return bool * @return bool 返回 false 代表更新失败,否则视为成功
* @throws \internalApi\base\ApiException|\internalApi\base\ClientException * @throws \internalApi\base\ApiException|\internalApi\base\ClientException
*/ */
public static function updateExp($ucid, $paycredits, $operation = '', $relatedid = 0, $ruletxt = '', $customtitle = '', $custommemo = '') public static function updateExp($ucid, $paycredits, $operation = '', $relatedid = 0, $ruletxt = '', $customtitle = '', $custommemo = '')
......
...@@ -15,4 +15,5 @@ class MemberRedpack extends Client ...@@ -15,4 +15,5 @@ class MemberRedpack extends Client
{ {
return self::call('memberRedpack.firstRedpack',compact('userId')); return self::call('memberRedpack.firstRedpack',compact('userId'));
} }
} }
\ No newline at end of file
...@@ -38,4 +38,5 @@ class Timeline extends Client ...@@ -38,4 +38,5 @@ class Timeline extends Client
{ {
return self::call('Timeline.removeTimeline', compact('key')); return self::call('Timeline.removeTimeline', compact('key'));
} }
} }
\ 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