Commit 035b8d49 authored by 杨培's avatar 杨培

Merge remote-tracking branch 'origin/master'

parents 18f5ebbb 6e2dc4f8
...@@ -11,4 +11,4 @@ use internalApi\bbs\Thread; ...@@ -11,4 +11,4 @@ use internalApi\bbs\Thread;
require __DIR__.'/_init.php'; require __DIR__.'/_init.php';
Thread::setDebug(true); Thread::setDebug(true);
print_r(Thread::getBlockThread(32)); print_r(Thread::getDigest(2));
\ No newline at end of file \ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: cx
* Date: 2018/8/15
* Time: 10:23
*/
use internalApi\sv\Video;
require __DIR__.'/_init.php';
Video::setDebug();
$list = Video::getMyVideoList(658, 1);
print_r($list);
...@@ -47,25 +47,6 @@ class Thread extends Client ...@@ -47,25 +47,6 @@ class Thread extends Client
return self::call('thread.getUnresolveQustion'); return self::call('thread.getUnresolveQustion');
} }
/**
* 获取未解决问题
* @return mixed
*/
public static function getQuestionList($page=1,$num=10)
{
return self::call('thread.getQuestionList',compact('page','num'));
}
/**
* 获取问题日志
* @return mixed
*/
public static function getMaintenanceLog($page=1,$num=10)
{
return self::call('thread.getMaintenanceLog',compact('page','num'));
}
/** /**
* 获取问题日志精华3 * 获取问题日志精华3
* @return mixed * @return mixed
...@@ -113,4 +94,14 @@ class Thread extends Client ...@@ -113,4 +94,14 @@ class Thread extends Client
{ {
return self::call('thread.getBlockThread',compact('bid')); return self::call('thread.getBlockThread',compact('bid'));
} }
/**
* 获取加精帖子
* @param $num
* @return mixed
*/
public static function getDigest($num)
{
return self::call('thread.getDigest',compact('num'));
}
} }
\ No newline at end of file
...@@ -17,6 +17,11 @@ $internalApiClientConfig = [ ...@@ -17,6 +17,11 @@ $internalApiClientConfig = [
'apiUrl' => 'http://u.yunya.com/test/api-server', 'apiUrl' => 'http://u.yunya.com/test/api-server',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'Kuy2dVHKRWKAFRXX2l6k' 'clientSecret' => 'Kuy2dVHKRWKAFRXX2l6k'
],
'sv' => [
'apiUrl' => 'http://sv.yunya.com/api/server',
'clientId' => 'common',
'clientSecret' => '6A23057D233DA902B5D603A758B0438E'
] ]
]; ];
......
...@@ -32,5 +32,10 @@ return [ ...@@ -32,5 +32,10 @@ return [
'apiUrl' => 'http://s.yunya.com/e/api/internal.php', 'apiUrl' => 'http://s.yunya.com/e/api/internal.php',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'TveYDczsq7LTllIUlM5t' 'clientSecret' => 'TveYDczsq7LTllIUlM5t'
],
'sv' => [
'apiUrl' => 'http://sv.yunya.com/api/server',
'clientId' => 'common',
'clientSecret' => '6A23057D233DA902B5D603A758B0438E'
] ]
]; ];
\ No newline at end of file
...@@ -31,5 +31,10 @@ return [ ...@@ -31,5 +31,10 @@ return [
'apiUrl' => 'http://s.ibanshou.cn/e/api/internal.php', 'apiUrl' => 'http://s.ibanshou.cn/e/api/internal.php',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'TveYDczsq7LTllIUlM5t' 'clientSecret' => 'TveYDczsq7LTllIUlM5t'
],
'sv' => [
'apiUrl' => 'http://sv.ibanshou.cn/api/server',
'clientId' => 'common',
'clientSecret' => '6A23057D233DA902B5D603A758B0438E'
] ]
]; ];
\ No newline at end of file
...@@ -31,5 +31,10 @@ return [ ...@@ -31,5 +31,10 @@ return [
'apiUrl' => 'http://s.test.yunyamooc.com/e/api/internal.php', 'apiUrl' => 'http://s.test.yunyamooc.com/e/api/internal.php',
'clientId' => 'common', 'clientId' => 'common',
'clientSecret' => 'TveYDczsq7LTllIUlM5t' 'clientSecret' => 'TveYDczsq7LTllIUlM5t'
],
'sv' => [
'apiUrl' => 'http://sv.test.yunyamooc.com/api/server',
'clientId' => 'common',
'clientSecret' => '6A23057D233DA902B5D603A758B0438E'
] ]
]; ];
\ No newline at end of file
<?php
/**
* Created by PhpStorm.
* User: QQ
* Date: 2018/4/20
* Time: 16:49
*/
namespace internalApi\sv;
use internalApi\base\Client;
class Video extends Client
{
/**
* 获取我的视频列表
* @return mixed
*/
public static function getMyVideoList($uid, $page)
{
return self::call('video.getMyVideoList', compact('uid', 'page'));
}
}
\ 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