/* 获取文件hash */ if($this->hash){ $file['md5'] = md5($file['tmp_name']); $file['sha1'] = sha1_file($file['tmp_name']); }