Test.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. // +----------------------------------------------------------------------
  3. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  4. // +----------------------------------------------------------------------
  5. // | Copyright (c) 2016~2024 https://www.crmeb.com All rights reserved.
  6. // +----------------------------------------------------------------------
  7. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  8. // +----------------------------------------------------------------------
  9. // | Author: CRMEB Team <admin@crmeb.com>
  10. // +----------------------------------------------------------------------
  11. declare (strict_types=1);
  12. namespace app\command;
  13. use app\common\repositories\user\AwardIntegralPriceRepository;
  14. use Swoole\Coroutine\MySQL\Exception;
  15. use think\console\Command;
  16. use think\console\Input;
  17. use think\console\input\Argument;
  18. use think\console\input\Option;
  19. use think\console\Output;
  20. use think\event\RouteLoaded;
  21. use think\facade\Route;
  22. use app\common\repositories\system\auth\MenuRepository;
  23. class Test extends Command
  24. {
  25. protected function configure()
  26. {
  27. // 指令配置
  28. $this->setName('test')
  29. ->setDescription('测试');
  30. }
  31. /**
  32. * 更新路由
  33. * @Author:Qinii
  34. * @Date: 2020/5/15
  35. * @param Input $input
  36. * @param Output $output
  37. * @return int|void|null
  38. */
  39. protected function execute(Input $input, Output $output)
  40. {
  41. $price = app()->make(AwardIntegralPriceRepository::class)->awardIntegralPrice();
  42. var_dump($price);
  43. }
  44. }