vide
parent
1ce94380ff
commit
c73410fdd0
|
|
@ -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'),
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<div class="content">
|
||||
<!-- form start -->
|
||||
<form class="am-form form-validation view-save" action="{{:U('Admin/Goods/Save')}}" method="POST" request-type="ajax-url" request-value="{{:U('Admin/Goods/Index')}}" enctype="multipart/form-data">
|
||||
<input type="hidden" name="max_file_size" value="{{:MyC('home_max_limit_image', 2048000)}}" />
|
||||
<input type="hidden" name="max_file_size" value="{{:MyC('home_max_limit_video', 102400000)}}" />
|
||||
<legend>
|
||||
<span class="fs-16">
|
||||
<if condition="empty($data['id'])">
|
||||
|
|
|
|||
Loading…
Reference in New Issue