dieu chinh update tung doi tuong neu so luong <10

This commit is contained in:
2020-12-25 15:58:02 +07:00
parent dc75b88bd8
commit ddcf67ba9c
6 changed files with 130 additions and 15 deletions

View File

@@ -108,7 +108,12 @@ class ControlLogsController extends Controller {
];
$listManagement->image = json_encode($images);
$listManagement->save();
file_get_contents("http://localhost:2305/update-feature");
common::updateFeature([
"cmd" => "update",
"id" => $listManagement->id,
"name" => common::convert_vi_to_en($listManagement->name),
"features" => $listManagement->allFeatures
]);
return ["status" => true];
}
return ["status" => false, "text" => "Hình ảnh này đã được chọn làm mẫu cho đối tượng này!"];