You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-13 11:43:58 +08:00
v2.8.1
This commit is contained in:
@@ -27,11 +27,12 @@ if (empty($_FILES['file'])) {
|
||||
));
|
||||
}
|
||||
|
||||
// sign
|
||||
if (empty($_POST['sign']) || $_POST['sign'] !== date('YmdH')) {
|
||||
// sign : 前端生成的时间戳 time() - $_POST['sign'] = 从选择文件到上传完毕的耗费时间
|
||||
if (empty($_POST['sign']) || time() - $_POST['sign'] > 12306) {
|
||||
exit(json_encode(array(
|
||||
"result" => "failed",
|
||||
"code" => 403,
|
||||
"code" => 403,
|
||||
"systime" => time(),
|
||||
"message" => "上传签名错误,请刷新重试",
|
||||
)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user