提交增加重复检测调试3

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

@ -275,7 +275,7 @@ class Task extends BaseController
return json($this->json_data);
}
}
$cache_name = md5($params);
$cache_name = md5(http_build_query($params));
if (Cache::get($cache_name)) {
$this->json_data['code'] = 0;
$this->json_data['msg'] = '表单已提交,请勿重复操作';

Loading…
Cancel
Save