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
d9a8d30c
Commit
d9a8d30c
authored
Jun 29, 2017
by
蒋林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bbs
parent
6dd78c8a
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
_init.php
example/_init.php
+1
-1
bbs_basic.php
example/bbs_basic.php
+2
-2
Thread.php
src/bbs/Thread.php
+5
-0
No files found.
example/_init.php
View file @
d9a8d30c
...
@@ -7,6 +7,6 @@
...
@@ -7,6 +7,6 @@
*/
*/
require
__DIR__
.
'/../src/autoload.php'
;
require
__DIR__
.
'/../src/autoload.php'
;
\internalApi\base\Client
::
config
(
include
__DIR__
.
'/../src/client_config_
dev
.php'
);
\internalApi\base\Client
::
config
(
include
__DIR__
.
'/../src/client_config_
test
.php'
);
header
(
'Content-Type: text/html; charset=utf-8'
);
header
(
'Content-Type: text/html; charset=utf-8'
);
example/bbs_basic.php
View file @
d9a8d30c
...
@@ -4,7 +4,7 @@ use internalApi\bbs\Thread;
...
@@ -4,7 +4,7 @@ use internalApi\bbs\Thread;
require
__DIR__
.
'/_init.php'
;
require
__DIR__
.
'/_init.php'
;
//
Thread::setDebug(true);
Thread
::
setDebug
(
true
);
$thread
=
Thread
::
getHotThreads
(
14
);
$thread
=
Thread
::
getHotThreads
(
5
);
var_dump
(
$thread
);
var_dump
(
$thread
);
\ No newline at end of file
src/bbs/Thread.php
View file @
d9a8d30c
...
@@ -17,4 +17,9 @@ class Thread extends Client
...
@@ -17,4 +17,9 @@ class Thread extends Client
{
{
return
self
::
call
(
'thread.getHotThreads'
,
compact
(
'num'
));
return
self
::
call
(
'thread.getHotThreads'
,
compact
(
'num'
));
}
}
public
static
function
countThreads
(
$uid
)
{
return
self
::
call
(
'thread.countThreads'
,
compact
(
'uid'
));
}
}
}
\ 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