HomeController.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. namespace App\Http\Controllers;
  3. use App\Servers\AdminLogsServer;
  4. use App\Servers\Icon\Address;
  5. use App\Servers\Icon\BanRPC;
  6. use App\Servers\IndentNumServer;
  7. use App\Servers\PassServer;
  8. use App\Servers\RedisDataServer;
  9. class HomeController extends FrontController
  10. {
  11. public function __construct()
  12. {
  13. parent::__construct();
  14. }
  15. /**
  16. * Show the application dashboard.
  17. *
  18. * @return \Illuminate\Http\Response
  19. */
  20. public function index()
  21. {
  22. $data=Address::generate();
  23. dd($data);
  24. $ret=BanRPC::creatServer()->getTransactionReceipt('0xc47a91e730e44c1beb80182f69c117b74dfdf9e6b2fdbb81def8bc704cd0cb5b');
  25. dd($ret);
  26. dd(1212);
  27. // $user_info = PassServer::creatServer(123456)->creatPassword();
  28. // dd($user_info);
  29. // RedisDataServer::creatServer()->delData('ac_num_1');
  30. $sn_str = IndentNumServer::creatServer()->getIndentNum(1);
  31. AdminLogsServer::write('获取编号----' . $sn_str);
  32. // IndentNumServer::creatServer()->verifyNum(1);
  33. // file_put_contents('code_num.txt','获取编号----'.$sn_str.PHP_EOL,FILE_APPEND);
  34. // dd($sn_str);
  35. // RedisDataServer::creatServer()->setData('3423',60);
  36. // $bun= RedisDataServer::creatServer()->getData('3423');
  37. // event(new NumEvent(1));
  38. // dd($bun);
  39. }
  40. function indexTwo()
  41. {
  42. }
  43. }