fix a recently added md5 api field
This commit is contained in:
parent
629b1c92a6
commit
ef53af04ec
@ -113,7 +113,7 @@ class Api {
|
|||||||
$apiPost['ext'] = substr($file->file, $dotPos);
|
$apiPost['ext'] = substr($file->file, $dotPos);
|
||||||
$dotPos = strrpos($file->file, '.');
|
$dotPos = strrpos($file->file, '.');
|
||||||
$apiPost['tim'] = substr($file->file, 0, $dotPos);
|
$apiPost['tim'] = substr($file->file, 0, $dotPos);
|
||||||
$apiPost['md5'] = base64_encode(md5_file($file->file_path, true));
|
$apiPost['md5'] = base64_encode(hex2bin($post->filehash));
|
||||||
}
|
}
|
||||||
|
|
||||||
return $apiPost;
|
return $apiPost;
|
||||||
|
Loading…
Reference in New Issue
Block a user