[fix] preview image in admin page
This commit is contained in:
parent
5d4edab2a4
commit
840de1ac0e
1 changed files with 5 additions and 5 deletions
|
@ -226,9 +226,9 @@ if (isset($ui['log']) && ($ui['log'] === 'suspect' || $ui['log'] === 'retry' ||
|
||||||
if (isset($ui['keep']) && (int)$ui['keep'] === 1) {
|
if (isset($ui['keep']) && (int)$ui['keep'] === 1) {
|
||||||
keepThisThumb($ui['hash'], $ui['log']);
|
keepThisThumb($ui['hash'], $ui['log']);
|
||||||
}
|
}
|
||||||
if (isset($ui['mGen']) && (int)$ui['mGen'] === 1)
|
if (isset($ui['mGen']) && (int)$ui['mGen'] === 1) {
|
||||||
$success = manualGen($ui['hash'], $ui['log']);
|
$success = manualGen($ui['hash'], $ui['log']);
|
||||||
$success['base64'] = 'data:image/png;base64,'.base64_encode(file_get_contents($success['filePath']));
|
}
|
||||||
}
|
}
|
||||||
$logs = parseFailLog($ui['log']);
|
$logs = parseFailLog($ui['log']);
|
||||||
if (!empty($logs)) {
|
if (!empty($logs)) {
|
||||||
|
|
Loading…
Reference in a new issue