change path image

This commit is contained in:
2020-12-04 11:52:16 +07:00
parent df39cdf602
commit 0c9bbd3314
4 changed files with 6 additions and 6 deletions

View File

@@ -81,7 +81,7 @@ class ListManagementController extends Controller {
if ($add) {
$features = json_decode(common::requestToEngine("/get-feature", [
"image_paths" => [
["url" => "/home/sonhh/Pictures/10929_HongBI.jpg", "type" => "raw"]
["url" => "/var/www/html/BiFace_Server_Lite/web/data/uploads/face/" . $url, "type" => "raw"]
]
]), true);
$images[] = ["url" => $url, "features" => $features['results'][0]['feature']];
@@ -92,7 +92,7 @@ class ListManagementController extends Controller {
} else {
$features = json_decode(common::requestToEngine("/get-feature", [
"image_paths" => [
["url" => "sex.png", "type" => "raw"]
["url" => "/var/www/html/BiFace_Server_Lite/web/data/uploads/face/" . $url, "type" => "raw"]
]
]), true);
$data['image'] = json_encode([