[ '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); } }