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
7c7a077e
Commit
7c7a077e
authored
Jun 29, 2017
by
杨培
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
b46f700b
5b359ef2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
2 deletions
+43
-2
.gitignore
.gitignore
+1
-0
bbs_basic.php
example/bbs_basic.php
+10
-0
Thread.php
src/bbs/Thread.php
+20
-0
client_config_dev.php
src/client_config_dev.php
+6
-1
client_config_test.php
src/client_config_test.php
+6
-1
No files found.
.gitignore
0 → 100644
View file @
7c7a077e
.idea
example/bbs_basic.php
0 → 100644
View file @
7c7a077e
<?php
use
internalApi\bbs\Thread
;
require
__DIR__
.
'/_init.php'
;
//Thread::setDebug(true);
$thread
=
Thread
::
getHotThreads
(
14
);
var_dump
(
$thread
);
\ No newline at end of file
src/bbs/Thread.php
0 → 100644
View file @
7c7a077e
<?php
/**
* Created by PhpStorm.
* User: LinJiangL
* Date: 17/6/28
* Time: 下午5:43
*/
namespace
internalApi\bbs
;
use
internalApi\base\Client
;
class
Thread
extends
Client
{
public
static
function
getHotThreads
(
$num
=
1
)
{
return
self
::
call
(
'thread.getHotThreads'
,
compact
(
'num'
));
}
}
\ No newline at end of file
src/client_config_dev.php
View file @
7c7a077e
...
...
@@ -22,5 +22,10 @@ return [
'apiUrl'
=>
'http://dev.wxherr.com/site/api-server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'1BO1WQwnpjc2GfjzrOuq'
]
],
'bbs'
=>
[
'apiUrl'
=>
'http://bbs.yunya.com/api/server.php'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'U2FsdGVkX19ZiutUoO6F'
],
];
\ No newline at end of file
src/client_config_test.php
View file @
7c7a077e
...
...
@@ -21,5 +21,10 @@ return [
'apiUrl'
=>
'http://testserv.pp.cc/wxherr/site/api-server'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'VBz7nU9qIeKUCjY89poG'
]
],
'bbs'
=>
[
'apiUrl'
=>
'http://bbs.test.yunyamooc.com/api/server.php'
,
'clientId'
=>
'common'
,
'clientSecret'
=>
'AJmfi4ORZURS0JwSkdiq3r'
],
];
\ 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