a
This commit is contained in:
parent
9204141880
commit
78619b22cd
|
|
@ -152,9 +152,13 @@ class FacialVerificationAPI {
|
|||
mkdir($uploadDir, 0755, true);
|
||||
}
|
||||
|
||||
/*
|
||||
$imageData = explode(',', $imageBase64)[1];
|
||||
$imageData = base64_decode($imageData);
|
||||
*/
|
||||
|
||||
$imageData = base64_decode($imageBase64);
|
||||
|
||||
$filename = $uploadDir . $assureId . '_' . time() . '.jpg';
|
||||
file_put_contents($filename, $imageData);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user