提交增加重复检测调试2

master
zhaocheng 2 years ago
parent d7f3bb9cab
commit 48cf26ce1f
  1. 2
      app/controller/Task.php

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

Loading…
Cancel
Save