update export excel

This commit is contained in:
2020-03-27 13:52:40 +07:00
parent 2c38348e19
commit c2e025d1d9
9 changed files with 344 additions and 15 deletions

View File

@@ -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];
}
}