Commit 7c7a077e authored by 杨培's avatar 杨培

Merge remote-tracking branch 'origin/master'

parents b46f700b 5b359ef2
<?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
<?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
......@@ -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
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment