更改加密方式

This commit is contained in:
icret
2021-05-05 04:35:06 +08:00
parent 8e6dd829f0
commit 6b65bf579d
5 changed files with 10 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ if (empty($_REQUEST)) {
// 解密删除
if (isset($_GET['hash'])) {
$delFile = $_GET['hash'];
$delFile = ulrHash($delFile, 1);
$delFile = urlHash($delFile, 1);
getDel($delFile);
}

View File

@@ -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',