CommissionCronTask.php 922 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. declare (strict_types=1);
  3. namespace app\command;
  4. use app\controller\api\cron\CommissionCron;
  5. use think\console\Command;
  6. use think\console\Input;
  7. use think\console\Output;
  8. /**
  9. * Class PensionTasks
  10. * @package app\command
  11. * @author: php迷途小书童
  12. * @created: 2021/3/19 9:14
  13. */
  14. class CommissionCronTask extends Command
  15. {
  16. /**
  17. * @var string
  18. */
  19. private $appid;
  20. /**
  21. * @var string
  22. */
  23. private $appKey;
  24. /**
  25. * @var string
  26. */
  27. private $secretKey;
  28. /**
  29. * @var string
  30. */
  31. private $url;
  32. protected function configure()
  33. {
  34. // 指令配置
  35. $this->setName('CommissionCronTask')
  36. ->setDescription('the CommissionCronTask command');
  37. }
  38. protected function execute(Input $input, Output $output)
  39. {
  40. $commissionCron = new CommissionCron();
  41. $commissionCron->platform_income_detail_get();
  42. }
  43. }