落地页视频上传和显示

master
liuweiwen 5 years ago
parent 4aa33ad48b
commit fb5d9afded

@ -86,7 +86,9 @@ class FileController extends AdminController
if (I('get.typee') == 1) {
$uploader->set('path', './Uploads/Ios/description');
}
if (strpos(I('type'),'video') !== false) {
$uploader->set('path', './Uploads/Video');
}
// var_dump($_POST);
// exit;
//用于断点续传,验证指定分块是否已经存在,避免重复上传

@ -346,6 +346,7 @@ class GameController extends ThinkController
$phone['back_describe'] = $sibling['back_describe'];
$phone['dow_icon'] = $sibling['dow_icon'];
$phone['back_map'] = $sibling['back_map'];
$phone['flooring_page_video'] = $sibling['flooring_page_video'];
M('Game', 'tab_')->data($phone)->where(array('id' => $another['id']))->save();
//同时修改代充游戏折扣
$set_fidel['status'] = 1;

@ -177,7 +177,8 @@ class HomeController extends Controller
'game_score',
'recommend_level',
'game_size',
'introduction'
'introduction',
'flooring_page_video',
];
$map = ['id' => intval($gameId)];
$game = M('game', 'tab_')->field($columns)->where($map)->find();

@ -42,6 +42,11 @@
<div class="home">
<?php if (!empty($game['flooring_page_video'])):?>
<div class="home-video">
<video src="{$game['flooring_page_video']}" autoplay controls></video>
</div>
<?php endif;?>
<div class="home-box">
<div class="heard">
<div style="height: 2.5rem;width: 2.5rem">

Loading…
Cancel
Save