|
|
@ -108,7 +108,6 @@ class Task extends BaseController |
|
|
|
public function save() |
|
|
|
public function save() |
|
|
|
{ |
|
|
|
{ |
|
|
|
$params = $this->request->param(); |
|
|
|
$params = $this->request->param(); |
|
|
|
Cache::set($cache_name, 1, 60); |
|
|
|
|
|
|
|
$type = $this->request->param('task_type', '0'); |
|
|
|
$type = $this->request->param('task_type', '0'); |
|
|
|
$original_filename = $this->request->param('original_filename'); |
|
|
|
$original_filename = $this->request->param('original_filename'); |
|
|
|
$filename = $this->request->param('filename'); |
|
|
|
$filename = $this->request->param('filename'); |
|
|
@ -282,6 +281,7 @@ class Task extends BaseController |
|
|
|
$this->json_data['msg'] = '表单已提交,请勿重复操作'; |
|
|
|
$this->json_data['msg'] = '表单已提交,请勿重复操作'; |
|
|
|
return json($this->json_data); |
|
|
|
return json($this->json_data); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
Cache::set($cache_name, 1, 60); |
|
|
|
$action = [ |
|
|
|
$action = [ |
|
|
|
'1'=>'import', |
|
|
|
'1'=>'import', |
|
|
|
'2'=>'export', |
|
|
|
'2'=>'export', |
|
|
|