diff --git a/Application/Admin/Controller/FileController.class.php b/Application/Admin/Controller/FileController.class.php index c96c5d31d..bb6b721df 100644 --- a/Application/Admin/Controller/FileController.class.php +++ b/Application/Admin/Controller/FileController.class.php @@ -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; //用于断点续传,验证指定分块是否已经存在,避免重复上传 diff --git a/Application/Admin/Controller/GameController.class.php b/Application/Admin/Controller/GameController.class.php index 6cf6890e9..c77d8e563 100644 --- a/Application/Admin/Controller/GameController.class.php +++ b/Application/Admin/Controller/GameController.class.php @@ -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; diff --git a/Application/Home/Controller/HomeController.class.php b/Application/Home/Controller/HomeController.class.php index 07d67af4e..7a99c684a 100644 --- a/Application/Home/Controller/HomeController.class.php +++ b/Application/Home/Controller/HomeController.class.php @@ -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(); diff --git a/Application/Home/View/default/Home/landingPage.html b/Application/Home/View/default/Home/landingPage.html index 33b897948..5269cd9c2 100644 --- a/Application/Home/View/default/Home/landingPage.html +++ b/Application/Home/View/default/Home/landingPage.html @@ -42,6 +42,11 @@
+ +
+ +
+