update export excel
This commit is contained in:
@@ -5,14 +5,6 @@ namespace app\controllers;
|
||||
use Yii;
|
||||
use yii\web\Controller;
|
||||
use yii\filters\VerbFilter;
|
||||
use yii\helpers\FileHelper;
|
||||
use app\models\User;
|
||||
use app\models\Gate;
|
||||
use app\models\Camera;
|
||||
use app\models\Card;
|
||||
use app\models\CardGroup;
|
||||
use app\models\Logs;
|
||||
use app\models\Config;
|
||||
|
||||
/**
|
||||
* CardController implements the CRUD actions for Card model.
|
||||
@@ -33,10 +25,13 @@ class ApiController extends Controller {
|
||||
];
|
||||
}
|
||||
|
||||
public function actionLogin() {
|
||||
public function actionSaveLogs() {
|
||||
if (Yii::$app->request->post()) {
|
||||
$post = Yii::$app->request->bodyParams;
|
||||
|
||||
$model = new \app\models\FaceLogs();
|
||||
$model->create($post);
|
||||
Yii::$app->response->format = "json";
|
||||
return ["stt" => true];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user