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
18050765
Commit
18050765
authored
Nov 22, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加testapi
parent
2ea977fd
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
38 additions
and
1 deletion
+38
-1
bbs_test.php
example/bbs_test.php
+15
-0
bbs_user.php
example/bbs_user.php
+1
-1
Test.php
src/bbs/Test.php
+21
-0
User.php
src/bbs/User.php
+1
-0
No files found.
example/bbs_test.php
0 → 100644
View file @
18050765
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 22/11/2017
* Time: 4:13 PM
*/
use
internalApi\bbs\User
;
require
__DIR__
.
'/_init.php'
;
\internalApi\bbs\Test
::
setDebug
(
true
);
$data
=
\internalApi\bbs\Test
::
index
(
'123123'
);
print_r
(
$data
);
\ No newline at end of file
example/bbs_user.php
View file @
18050765
...
@@ -12,5 +12,5 @@ require __DIR__.'/_init.php';
...
@@ -12,5 +12,5 @@ require __DIR__.'/_init.php';
User
::
setDebug
(
true
);
User
::
setDebug
(
true
);
$uid
=
42
;
$uid
=
42
;
$data
=
User
::
getGoldCoin
(
$uid
);
$data
=
User
::
updateGoldCoin
(
'15395081586'
,
10
,
'测试'
,
'测试内容'
);
print_r
(
$data
);
print_r
(
$data
);
\ No newline at end of file
src/bbs/Test.php
0 → 100644
View file @
18050765
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 22/11/2017
* Time: 4:12 PM
*/
namespace
internalApi\bbs
;
use
internalApi\base\Client
;
class
Test
extends
Client
{
public
static
function
index
(
$test
){
return
self
::
call
(
'test.index'
,
compact
(
'test'
));
}
}
\ No newline at end of file
src/bbs/User.php
View file @
18050765
...
@@ -46,4 +46,5 @@ class User extends Client
...
@@ -46,4 +46,5 @@ class User extends Client
public
static
function
updateGoldCoin
(
$telephone
,
$num
,
$title
,
$text
){
public
static
function
updateGoldCoin
(
$telephone
,
$num
,
$title
,
$text
){
return
self
::
call
(
'user.updateGoldCoin'
,
compact
(
'telephone'
,
'num'
,
'title'
,
'text'
));
return
self
::
call
(
'user.updateGoldCoin'
,
compact
(
'telephone'
,
'num'
,
'title'
,
'text'
));
}
}
}
}
\ 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