取消File类的uniqid规则 改为自己传入即可

This commit is contained in:
thinkphp
2016-05-19 11:57:40 +08:00
parent 9c1d65addb
commit 34a6285ba2

View File

@@ -123,9 +123,6 @@ class File extends SplFileObject
$savename = call_user_func_array($this->rule, [$this]);
} else {
switch ($this->rule) {
case 'uniqid':
$savename = uniqid();
break;
case 'md5':
$md5 = md5_file($this->getRealPath());
$savename = substr($md5, 0, 2) . DS . substr($md5, 2);