change path image
This commit is contained in:
parent
df39cdf602
commit
0c9bbd3314
|
@ -81,7 +81,7 @@ class ListManagementController extends Controller {
|
||||||
if ($add) {
|
if ($add) {
|
||||||
$features = json_decode(common::requestToEngine("/get-feature", [
|
$features = json_decode(common::requestToEngine("/get-feature", [
|
||||||
"image_paths" => [
|
"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);
|
]), true);
|
||||||
$images[] = ["url" => $url, "features" => $features['results'][0]['feature']];
|
$images[] = ["url" => $url, "features" => $features['results'][0]['feature']];
|
||||||
|
@ -92,7 +92,7 @@ class ListManagementController extends Controller {
|
||||||
} else {
|
} else {
|
||||||
$features = json_decode(common::requestToEngine("/get-feature", [
|
$features = json_decode(common::requestToEngine("/get-feature", [
|
||||||
"image_paths" => [
|
"image_paths" => [
|
||||||
["url" => "sex.png", "type" => "raw"]
|
["url" => "/var/www/html/BiFace_Server_Lite/web/data/uploads/face/" . $url, "type" => "raw"]
|
||||||
]
|
]
|
||||||
]), true);
|
]), true);
|
||||||
$data['image'] = json_encode([
|
$data['image'] = json_encode([
|
||||||
|
|
|
@ -36,7 +36,7 @@ class CaptureLogsGrid {
|
||||||
|
|
||||||
public static function image() {
|
public static function image() {
|
||||||
return function($model) {
|
return function($model) {
|
||||||
return Html::img("/BiFace/data/uploads/face/" . $model->image, [
|
return Html::img("/data/uploads/face/" . $model->image, [
|
||||||
"class" => "img-thumbnail",
|
"class" => "img-thumbnail",
|
||||||
"style" => "width: 150px;height:150px;"
|
"style" => "width: 150px;height:150px;"
|
||||||
]);
|
]);
|
||||||
|
@ -56,7 +56,7 @@ class CaptureLogsGrid {
|
||||||
"style" => "cursor: pointer;",
|
"style" => "cursor: pointer;",
|
||||||
"data" => [
|
"data" => [
|
||||||
"id" => $model->id,
|
"id" => $model->id,
|
||||||
"img" => "/BiFace/data/uploads/face/" . $model->image
|
"img" => "/data/uploads/face/" . $model->image
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -53,7 +53,7 @@ class ListManagementGrid {
|
||||||
"data-id" => $model->id,
|
"data-id" => $model->id,
|
||||||
"data-href" => Url::to(["/list-management/delete-feature"])
|
"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",
|
"class" => "img-thumbnail",
|
||||||
"style" => "width: 100px;height:100px;"
|
"style" => "width: 100px;height:100px;"
|
||||||
]) . $removeBtn . "</div>";
|
]) . $removeBtn . "</div>";
|
||||||
|
|
|
@ -186,7 +186,7 @@ function batchDelete(e) {
|
||||||
|
|
||||||
function _form() {
|
function _form() {
|
||||||
$("#form").removeClass("hidden");
|
$("#form").removeClass("hidden");
|
||||||
$("#FaceImage").attr("src", "/BiFace/images/user2-160x160.jpg");
|
$("#FaceImage").attr("src", "/images/user2-160x160.jpg");
|
||||||
}
|
}
|
||||||
|
|
||||||
function btnImage() {
|
function btnImage() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user