Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wxh_internal_api
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
杨培培
wxh_internal_api
Commits
495f9e22
Commit
495f9e22
authored
Dec 11, 2018
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
清理
parent
1bff106a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
4 deletions
+11
-4
bbs_credit.php
example/bbs_credit.php
+7
-2
Credit.php
src/bbs/Credit.php
+2
-2
MemberRedpack.php
src/ucenter/MemberRedpack.php
+1
-0
Timeline.php
src/ucenter/Timeline.php
+1
-0
No files found.
example/bbs_credit.php
View file @
495f9e22
...
@@ -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
src/bbs/Credit.php
View file @
495f9e22
...
@@ -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
=
''
)
...
...
src/ucenter/MemberRedpack.php
View file @
495f9e22
...
@@ -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
src/ucenter/Timeline.php
View file @
495f9e22
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment