TestCommands.php 536 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Module\GameItems\Commands;
  3. use App\Module\Test\Services\TestService;
  4. use Illuminate\Console\Command;
  5. class TestCommands extends Command
  6. {
  7. /**
  8. * 控制台命令的名称和签名
  9. *
  10. * @var string
  11. */
  12. protected $signature = 'GameItems-test';
  13. /**
  14. * 命令描述
  15. *
  16. * @var string
  17. */
  18. protected $description = 'Test commands';
  19. /**
  20. * 执行命令
  21. */
  22. public function handle()
  23. {
  24. TestService::verify(1);
  25. echo '完成';
  26. }
  27. }