request->get('type'); return $this->render('vrindex', ['type' => $type]); } //获取VR新版列表数据 public function actionVrindexform() { $server = new Vrserver(); $data = $server->getList(); return Help::JsonData(0, '成功', $data['count'], $data['data']); } public function actionVrset() { $server = new Vrserver(); $state = $server->vrSet(); if ($state === true) return Help::JsonCode(Help::SUCCESS, '执行成功'); return Help::JsonCode(Help::ERROR, '执行失败'); } }