Commit cf153565 authored by xiabin's avatar xiabin

Merge remote-tracking branch 'origin/master'

parents 6c5191b6 9fc27ff0
......@@ -60,10 +60,10 @@ return [
'url' => 'http://dev.qdn.pp.cc/'
],
'video' => [
'bucket' => 'pp-classroom-video',
'bucket' => 'pp-classroom-private',
'fsizeLimit' => pow(1024, 3) * 2, //2GB
'mimeLimit' => 'video/*;flv-application/octet-stream',
'url' => 'http://oe8x9mpvz.bkt.clouddn.com/'
'url' => 'http://oe9d6dr84.bkt.clouddn.com/'
]
]
]
......
......@@ -146,6 +146,9 @@ class MyCourseController extends \yii\web\Controller
$videoFile = UploadPools::getFileInfo($vuid);
if ($videoFile) {
/**
* @var $qiniu \common\components\Qiniu;
*/
$qiniu = Yii::$app->qiniu;
$bucket = $qiniu->getStorageConfig($videoFile['storage'], 'bucket');
$auth = $qiniu->getAuthInstance();
......@@ -161,7 +164,7 @@ class MyCourseController extends \yii\web\Controller
}
//读取视频信息
$avUrl = $videoFile['url'].'?avinfo';
$avUrl = $auth->privateDownloadUrl($videoFile['url'].'?avinfo');
$response = (new \GuzzleHttp\Client())->get($avUrl);
$avInfo = $response->getBody();
......
......@@ -4,6 +4,9 @@ namespace frontend\controllers;
class MyIncomeController extends \yii\web\Controller
{
public $layout = 'classCenter';
public function actionIndex()
{
return $this->render('index');
......
......@@ -39,7 +39,7 @@ $this->beginContent('@app/views/layouts/center.php');
<li>
<div class="link"><i class="icon-bell"></i>知识有价<i class="icon-navigate_next"></i></div>
<ul class="submenu">
<li><a href="#">购买记录</a></li>
<li><a href="/my-income">购买记录</a></li>
</ul>
</li>
</ul>
......
<?php
/* @var $this yii\web\View */
$this->title = '知识有价';
?>
<h1>my-income/index</h1>
<div class="con-md-12">
<div class="table-responsive table-box">
<table class="table table-hover">
<thead>
<tr>
<th>订单</th>
<th>会员信息</th>
<th>课程</th>
<th>价格</th>
<th>状态</th>
</tr>
</thead>
<tbody>
<tr>
<td>
20012313131<br/>
2016-12-11
</td>
<td>18788860327 / 百丐洪七公</td>
<td>《中国为什么这么久还没有进入社会主义社会》</td>
<td>¥123.00</td>
<td>审核中</td>
</tr>
<tr>
<td>
20012313131<br/>
2016-12-11
</td>
<td>18788860327 / 百丐洪七公</td>
<td>《中国为什么这么久还没有进入社会主义社会》</td>
<td>¥123.00</td>
<td>审核中</td>
</tr>
</tbody>
</table>
<p>
You may change the content of this page by modifying
the file <code><?= __FILE__; ?></code>.
</p>
<div class="text-center hide">
<ul class="pagination pagination-sm">
<li><a href="#">&laquo;</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">&raquo;</a></li>
</ul>
</div>
</div>
</div>
\ No newline at end of file
......@@ -148,7 +148,6 @@ var vm = new Vue({
if (t.status) {
location.replace("/my-course/result?id=" + t.data.course_id + "&action=publish");
} else {
alert(t.message);
layer.alert(t.message, {icon:5, title:"提示"});
}
}, "json");
......
......@@ -148,8 +148,21 @@
</div>
</div>
</div>
</div>
</div>
<div class="container text-center">
<ul class="pagination">
<li><a href="#">&laquo;</a></li>
<li><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">&raquo;</a></li>
</ul>
</div>
</div>
</div>
......
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