LhcSettlement.php 694 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace App\Console\Commands;
  3. use Illuminate\Console\Command;
  4. use App\Services\LhcSettlementService;
  5. class LhcSettlement extends Command
  6. {
  7. /**
  8. * 命令名称和签名
  9. *
  10. * @var string
  11. */
  12. protected $signature = 'lhc:settlement';
  13. /**
  14. * 命令描述
  15. *
  16. * @var string
  17. */
  18. protected $description = '六合彩结算方法';
  19. /**
  20. * 执行命令
  21. *
  22. * @return int
  23. */
  24. public function handle(LhcSettlementService $service)
  25. {
  26. $issue = $this->argument('issue');
  27. $this->info("开始结算期号: {$issue}...");
  28. $result = $service->settle($issue);
  29. $this->info($result);
  30. }
  31. }