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
45e7cde1
Commit
45e7cde1
authored
Apr 08, 2018
by
wangjj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加积分api
parent
689162d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
0 deletions
+37
-0
ucenter_credit.php
example/ucenter_credit.php
+14
-0
Credit.php
src/ucenter/Credit.php
+23
-0
No files found.
example/ucenter_credit.php
0 → 100644
View file @
45e7cde1
<?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
src/ucenter/Credit.php
0 → 100644
View file @
45e7cde1
<?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
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