try catch reset device

This commit is contained in:
dongpd 2021-01-19 15:47:47 +07:00
parent 32939a05cb
commit 3f22f89654

View File

@ -336,7 +336,11 @@ class ConfigController extends Controller {
\Yii::$app->db->createCommand()->truncateTable('capture_logs')->execute(); \Yii::$app->db->createCommand()->truncateTable('capture_logs')->execute();
\Yii::$app->db->createCommand()->truncateTable('list_management')->execute(); \Yii::$app->db->createCommand()->truncateTable('list_management')->execute();
array_map('unlink', glob("/var/www/html/BiFace_Server_Lite/web/data/uploads/face/*.*")); array_map('unlink', glob("/var/www/html/BiFace_Server_Lite/web/data/uploads/face/*.*"));
file_get_contents("http://localhost:2305/update-feature"); try {
file_get_contents("http://localhost:2305/update-feature");
} catch (Exception $exc) {
echo $exc->getTraceAsString();
}
} }
return Url::to(['/config']); return Url::to(['/config']);
} else { } else {