change path image

This commit is contained in:
dongpd 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([

View File

@ -36,7 +36,7 @@ class CaptureLogsGrid {
public static function image() {
return function($model) {
return Html::img("/BiFace/data/uploads/face/" . $model->image, [
return Html::img("/data/uploads/face/" . $model->image, [
"class" => "img-thumbnail",
"style" => "width: 150px;height:150px;"
]);
@ -56,7 +56,7 @@ class CaptureLogsGrid {
"style" => "cursor: pointer;",
"data" => [
"id" => $model->id,
"img" => "/BiFace/data/uploads/face/" . $model->image
"img" => "/data/uploads/face/" . $model->image
]
];
};

View File

@ -53,7 +53,7 @@ class ListManagementGrid {
"data-id" => $model->id,
"data-href" => Url::to(["/list-management/delete-feature"])
]);
$return[] = "<div class='feature-img'>" . Html::img("/BiFace/data/uploads/face/" . $value['url'], [
$return[] = "<div class='feature-img'>" . Html::img("/data/uploads/face/" . $value['url'], [
"class" => "img-thumbnail",
"style" => "width: 100px;height:100px;"
]) . $removeBtn . "</div>";

View File

@ -186,7 +186,7 @@ function batchDelete(e) {
function _form() {
$("#form").removeClass("hidden");
$("#FaceImage").attr("src", "/BiFace/images/user2-160x160.jpg");
$("#FaceImage").attr("src", "/images/user2-160x160.jpg");
}
function btnImage() {