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 @@