Commit 46d46201 authored by xiabin's avatar xiabin

修改支付后的弹窗问题

parent 3f361c70
...@@ -150,8 +150,10 @@ class HomeController extends \yii\web\Controller ...@@ -150,8 +150,10 @@ class HomeController extends \yii\web\Controller
} }
if ($coursewareInfo['isShop']) { if ($coursewareInfo['isShop']) {
$coursewareInfo['videoUrl'] = Yii::$app->qiniu->getUrl('video', $coursewareInfo['src_stand']); $coursewareInfo['videoUrl'] = Yii::$app->qiniu->getUrl('video', $coursewareInfo['src_stand']);
} else { } else if($course->free_time > 0) {
$coursewareInfo['videoUrl'] = Yii::$app->qiniu->getUrl('video', $coursewareInfo['src_free']); $coursewareInfo['videoUrl'] = Yii::$app->qiniu->getUrl('video', $coursewareInfo['src_free']);
}else{
$coursewareInfo['videoUrl'] = NULL;
} }
unset($coursewareInfo['src_stand']); unset($coursewareInfo['src_stand']);
unset($coursewareInfo['src_free']); unset($coursewareInfo['src_free']);
......
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