UpgradeDaily.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace App\Console\Commands;
  3. use Illuminate\Console\Command;
  4. class UpgradeDaily extends Command
  5. {
  6. /**
  7. * The name and signature of the console command.
  8. *
  9. * @var string
  10. */
  11. protected $signature = 'upgrade:daily';
  12. /**
  13. * The console command description.
  14. *
  15. * @var string
  16. */
  17. protected $description = '每天的任务';
  18. /**
  19. * Create a new command instance.
  20. *
  21. * @return void
  22. */
  23. public function __construct()
  24. {
  25. parent::__construct();
  26. }
  27. /**
  28. * Execute the console command.
  29. *
  30. * @return int
  31. */
  32. public function handle()
  33. {
  34. # 刷巴利语句子uuid 仅调用一次
  35. $this->call('upgrade:palitextid');
  36. //巴利原文段落库目录结构改变时运行
  37. $this->call('upgrade:palitext');
  38. #巴利段落标签
  39. $this->call('upgrade:palitexttag');
  40. #译文进度
  41. $this->call('upgrade:progress');
  42. $this->call('upgrade:progresschapter');
  43. # 段落更新图
  44. $this->call('upgrade:chapterdynamic');
  45. # 逐词译数据库分析
  46. $this->call('upgrade:wbwanalyses');
  47. return 0;
  48. }
  49. }