HomeController.php 1.1 KB

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