You've already forked EasyImages2.0
mirror of
https://github.com/icret/EasyImages2.0.git
synced 2025-12-13 11:43:58 +08:00
更改加密方式
This commit is contained in:
@@ -24,7 +24,7 @@ if (empty($_REQUEST)) {
|
||||
// 解密删除
|
||||
if (isset($_GET['hash'])) {
|
||||
$delFile = $_GET['hash'];
|
||||
$delFile = ulrHash($delFile, 1);
|
||||
$delFile = urlHash($delFile, 1);
|
||||
getDel($delFile);
|
||||
}
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user