change path image
This commit is contained in:
parent
df39cdf602
commit
0c9bbd3314
|
@ -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([
|
||||
|
|
|
@ -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
|
||||
]
|
||||
];
|
||||
};
|
||||
|
|
|
@ -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>";
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user