打开editor/filemanager/connectors/php目录下commands.php,找到FileUpload函数,在复制代码 代码如下:$sExtension = substr( $sFileName, ( strrpos($sFileName, ‘.’) + 1 ) ) ; $sExtension = strtolower( $sExtension ) ;后添加复制代码 代码如下:$sFileName = rand(0,100).”.”.$sExtension;此处rand函