Index.php 532 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. namespace app\index\controller;
  3. use app\common\controller\Frontend;
  4. class Index extends Frontend
  5. {
  6. protected $noNeedLogin = '*';
  7. protected $noNeedRight = '*';
  8. protected $layout = '';
  9. public function index()
  10. {
  11. return $this->view->fetch();
  12. }
  13. public function code()
  14. {
  15. $code = $this->request->request('code');
  16. echo $code;
  17. /**/
  18. $encode = encrypt($code);
  19. echo $encode;
  20. echo decrypt($encode);
  21. return $this->view->fetch();
  22. }
  23. }