From c73410fdd0589acf89a06b989e497a66740f25e9 Mon Sep 17 00:00:00 2001 From: gongfuxiang <2499232802@qq.com> Date: Fri, 19 Oct 2018 00:36:42 +0800 Subject: [PATCH] vide --- .../Admin/Controller/GoodsController.class.php | 11 +++++++++++ .../Admin/View/Default/Goods/SaveInfo.html | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/service/Application/Admin/Controller/GoodsController.class.php b/service/Application/Admin/Controller/GoodsController.class.php index ce89ab168..ffaf4b60e 100755 --- a/service/Application/Admin/Controller/GoodsController.class.php +++ b/service/Application/Admin/Controller/GoodsController.class.php @@ -272,6 +272,9 @@ class GoodsController extends CommonController */ public function Save() { + print_r($_POST); + print_r($_FILES); + die; // 是否ajax请求 if(!IS_AJAX) { @@ -307,6 +310,14 @@ class GoodsController extends CommonController $this->ajaxReturn($images['msg'], -4); } + // 视频 + $video_field = ['file_video']; + $video = $this->GetGoodsVideoParams($video_field); + if($video['status'] === false) + { + $this->ajaxReturn($video['msg'], -5); + } + // 基础数据 $data = [ 'title' => I('title'), diff --git a/service/Application/Admin/View/Default/Goods/SaveInfo.html b/service/Application/Admin/View/Default/Goods/SaveInfo.html index 50d46462a..1156ad37d 100755 --- a/service/Application/Admin/View/Default/Goods/SaveInfo.html +++ b/service/Application/Admin/View/Default/Goods/SaveInfo.html @@ -5,7 +5,7 @@
- +