find(); $content = ''; if($info) { $content = $info->content??''; } switch($t) { case 1: case 4: $title = 'APP服务协议'; break; case 2: case 3: $title = 'APP隐私协议'; break; case 5: $title = '关于我们'; break; case 6: $title = '用户注册协议'; break; default: $title = '其它政策协议'; } $this->view->assign('content', $content); $this->view->assign('title', $title); return $this->view->fetch('index/privacy'); } }