Commit f77ce5a6 authored by 刘小敏's avatar 刘小敏

优化

parent f5a62acc
......@@ -46,7 +46,7 @@ class User extends Common
}
// 1. 生成上传目录(按日期分目录)
$dir = 'upload/' . date('Ymd') . '/';
$dir = 'uploads/' . date('Ymd') . '/';
// 2. 生成 Policy(有效期 1 小时)
$expireTime = time() + 3600; // 1小时后过期
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment