123456789101112131415161718192021222324252627282930 |
- <?php
- namespace app\index\controller;
- use app\common\controller\Frontend;
- class Index extends Frontend
- {
- protected $noNeedLogin = '*';
- protected $noNeedRight = '*';
- protected $layout = '';
- public function index()
- {
- return $this->view->fetch();
- }
- public function code()
- {
- $code = $this->request->request('code');
- echo $code;
- /**/
- $encode = encrypt($code);
- echo $encode;
- echo decrypt($encode);
- return $this->view->fetch();
- }
- }
|