diff --git a/api/del.php b/api/del.php index 36d2ecd..cf8c7ac 100644 --- a/api/del.php +++ b/api/del.php @@ -24,7 +24,7 @@ if (empty($_REQUEST)) { // 解密删除 if (isset($_GET['hash'])) { $delFile = $_GET['hash']; - $delFile = ulrHash($delFile, 1); + $delFile = urlHash($delFile, 1); getDel($delFile); } diff --git a/api/index.php b/api/index.php index cfbac5a..2aaa3a5 100644 --- a/api/index.php +++ b/api/index.php @@ -91,7 +91,7 @@ if ($handle->uploaded) { // 上传成功后返回json数据 $imageUrl = $config['domain'] . config_path() . $handle->file_dst_name; - $delUrl = $config['domain'] . '/api/del.php?hash=' . ulrHash(config_path() . $handle->file_dst_name, 0); + $delUrl = $config['domain'] . '/api/del.php?hash=' . urlHash(config_path() . $handle->file_dst_name, 0); $reJson = array( "result" => 'success', diff --git a/config/config.php b/config/config.php index 225d1f7..759cfd7 100644 --- a/config/config.php +++ b/config/config.php @@ -6,7 +6,7 @@ * @author icret * @email lemonim@qq.com * @Github https://github.com/icret/easyImages2.0 - * @Last 2021-5-4 18:08:08 + * @Last 2021-5-5 04:33:16 * 上传后请打开check.php先检查服务器配置,更改密码等操作 * 安装完毕后请删除README.md,check.php,LICENSE等非必要文件 @@ -54,7 +54,7 @@ $config = array( // 每次最多上传图片数 'maxUploadFiles' => 30, // 是否开启登录上传 开启:true 关闭:false - 'mustLogin' => true, + 'mustLogin' => false, // 是否开启tinyfilemanager文件管理 开启:true 关闭:false 'tinyfilemanager' => true, // 登录上传和后台管理密码,管理用户名为:admin @@ -112,7 +112,7 @@ $config = array( 'customize' => '