Index.php 952 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace app\index\controller;
  3. use app\common\controller\Frontend;
  4. use app\common\library\WxPublic;
  5. use app\common\model\Mobile;
  6. use app\common\service\MobileComputer;
  7. use app\service\byte_dance\ByteDance;
  8. use app\service\byte_dance\ByteDancePay;
  9. use app\service\id\IdVerify;
  10. use PhpOffice\PhpSpreadsheet\IOFactory;
  11. use think\helper\Str;
  12. class Index extends Frontend
  13. {
  14. protected $noNeedLogin = '*';
  15. protected $noNeedRight = '*';
  16. protected $layout = '';
  17. public function index()
  18. {
  19. $qr=(new WxPublic)->qr();
  20. dd($qr);
  21. }
  22. public function payment($a=null){
  23. if(!$a){
  24. return '';
  25. }
  26. $file=RUNTIME_PATH.'/payment/'.$a;
  27. if(!file_exists($file)){
  28. return '';
  29. }
  30. return file_get_contents($file);
  31. }
  32. public function test(){
  33. //dd(MobileComputer::setMobile(input('no'))->filter());
  34. dd($this->request->root(true));
  35. }
  36. }