77 lines
1.9 KiB
PHP
77 lines
1.9 KiB
PHP
<?php
|
|
|
|
/**
|
|
* @author Any
|
|
* @description KISS
|
|
* @date 2020-11-5
|
|
* @version 1.0.0
|
|
*
|
|
* _____LOG_____
|
|
*
|
|
*/
|
|
namespace app\modules\admin\controllers;
|
|
use app\models\Store;
|
|
use app\modules\admin\behaviors\LoginBehavior;
|
|
use app\modules\admin\models\BindLogListForm;
|
|
|
|
class BindLogController extends Controller
|
|
{
|
|
|
|
public function behaviors()
|
|
{
|
|
return array_merge(parent::behaviors(), [
|
|
'login' => [
|
|
'class' => LoginBehavior::className(),
|
|
],
|
|
]);
|
|
}
|
|
|
|
//绑定记录
|
|
public function actionIndex()
|
|
{
|
|
$time = time();
|
|
$date = date('Y-m-d H:00:00',$time-60*60*12)." - ".date('Y-m-d H:00:00',$time);
|
|
$store = Store::find()->select('id,name')->where(['is_delete' => 0])->asArray()->all();
|
|
return $this->render('index',[
|
|
'store' => $store,
|
|
'date' => $date,
|
|
]);
|
|
}
|
|
|
|
/**
|
|
* @ Author : Lw
|
|
* @ CreateTime : 2022-11-15
|
|
* @ Info : 获取租赁数据
|
|
*/
|
|
public function actionGetZlData(){
|
|
$obj = new BindLogListForm();
|
|
$obj->attributes = \Yii::$app->request->get();
|
|
$res = $obj->actionGetZlData();
|
|
return $this->responseHandler($res);
|
|
}
|
|
|
|
/**
|
|
* @ Author : Lw
|
|
* @ CreateTime : 2022-11-15
|
|
* @ Info : 获取球车扫码数据
|
|
*/
|
|
public function actionGetQrData(){
|
|
$obj = new BindLogListForm();
|
|
$obj->attributes = \Yii::$app->request->get();
|
|
$res = $obj->actionGetQrData();
|
|
return $this->responseHandler($res);
|
|
}
|
|
|
|
/**
|
|
* @ Author : Lw
|
|
* @ CreateTime : 2022-11-15
|
|
* @ Info : 获取场地扫码数据
|
|
*/
|
|
public function actionGetCdQrData(){
|
|
$obj = new BindLogListForm();
|
|
$obj->attributes = \Yii::$app->request->get();
|
|
$res = $obj->actionGetCdQrData();
|
|
return $this->responseHandler($res);
|
|
}
|
|
|
|
} |