Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
s_ibanshou
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
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋林
s_ibanshou
Commits
2a73d20c
Commit
2a73d20c
authored
Nov 20, 2017
by
夏彬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加问题求助数量获取的api
parent
d92024a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
1 deletion
+38
-1
unquestion.php
e/action/unquestion.php
+12
-0
Thread.php
e/extend/internalApi/bbs/Thread.php
+26
-1
No files found.
e/action/unquestion.php
0 → 100644
View file @
2a73d20c
<?php
/**
* Created by PhpStorm.
* User: xiabin
* Date: 20/11/2017
* Time: 5:04 PM
*/
require_once
'../extend/internalApi/autoload.php'
;
require_once
'../config/config_ibanshou.php'
;
\internalApi\base\Client
::
config
(
$config
[
'wxh.internal'
][
'client'
]);
echo
\internalApi\bbs\Thread
::
getUnresolveQustion
();
\ No newline at end of file
e/extend/internalApi/bbs/Thread.php
View file @
2a73d20c
...
@@ -13,13 +13,38 @@ use internalApi\base\Client;
...
@@ -13,13 +13,38 @@ use internalApi\base\Client;
class
Thread
extends
Client
class
Thread
extends
Client
{
{
public
static
function
getHotThreads
(
$num
=
1
)
public
static
function
getHotThreads
(
$num
=
1
)
{
{
return
self
::
call
(
'thread.getHotThreads'
,
compact
(
'num'
));
return
self
::
call
(
'thread.getHotThreads'
,
compact
(
'num'
));
}
}
/**
* 获取指定用户发表的帖子的数量
* @param int $uid
* @return int
*/
public
static
function
countThreads
(
$uid
)
public
static
function
countThreads
(
$uid
)
{
{
return
self
::
call
(
'thread.countThreads'
,
compact
(
'uid'
));
return
self
::
call
(
'thread.countThreads'
,
compact
(
'uid'
));
}
}
/**
* 根据帖子ID获取帖子信息
* @param int $tid
* @return array|null
*/
public
static
function
info
(
$tid
)
{
return
self
::
call
(
'thread.info'
,
compact
(
'tid'
));
}
/**
* 获取未解决问题数量
* @return mixed
*/
public
static
function
getUnresolveQustion
()
{
return
self
::
call
(
'thread.getUnresolveQustion'
);
}
}
}
\ 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