update database

This commit is contained in:
2020-12-09 14:45:49 +07:00
parent ee3c869d71
commit 24e3347d43
4 changed files with 17 additions and 7 deletions

View File

@@ -70,7 +70,8 @@ class ApiController extends Controller {
$model->create([
"Staff" => $post["id"],
"Time" => $time,
"Image" => $fileName
"Image" => $fileName,
"Confidence" => $post["confidence"]
]);
Yii::$app->response->format = "json";
return ["status" => "success"];