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
82a24101
Commit
82a24101
authored
Oct 22, 2018
by
杨培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加积分增减相关接口
parent
e0c0ffd2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
45 additions
and
0 deletions
+45
-0
bbs_credit.php
example/bbs_credit.php
+19
-0
Credit.php
src/bbs/Credit.php
+26
-0
No files found.
example/bbs_credit.php
0 → 100644
View file @
82a24101
<?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'
,
'看视频'
);
//
src/bbs/Credit.php
0 → 100644
View file @
82a24101
<?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
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