Index.php 619 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace app\index\controller;
  3. use app\common\controller\Frontend;
  4. use app\common\model\Mobile;
  5. use app\common\service\MobileComputer;
  6. use think\helper\Str;
  7. class Index extends Frontend
  8. {
  9. protected $noNeedLogin = '*';
  10. protected $noNeedRight = '*';
  11. protected $layout = '';
  12. public function index()
  13. {
  14. return $this->view->fetch();
  15. }
  16. public function payment($a=null){
  17. if(!$a){
  18. return '';
  19. }
  20. $file=RUNTIME_PATH.'/payment/'.$a;
  21. if(!file_exists($file)){
  22. return '';
  23. }
  24. return file_get_contents($file);
  25. }
  26. }