[fix] no image after manual gen
This commit is contained in:
parent
72059fd95e
commit
47df04fbfc
1 changed files with 1 additions and 0 deletions
|
@ -88,6 +88,7 @@ function manualGen($hash, $log) {
|
||||||
if ((int)$result[0] === 1) {
|
if ((int)$result[0] === 1) {
|
||||||
$res['success'] = 1;
|
$res['success'] = 1;
|
||||||
$res['filePath'] = pathForFile($line[4], $hash).'.png';
|
$res['filePath'] = pathForFile($line[4], $hash).'.png';
|
||||||
|
$res['base64'] = 'data:image/png;base64,'.base64_encode(file_get_contents($res['filePath']));
|
||||||
return $res;
|
return $res;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue