| 1234567891011121314151617181920212223242526 |
- <?php
- namespace App\Jobs;
- use App\Repositories\Utils\TelegramRepository;
- use Hyperf\AsyncQueue\Job;
- class TelegramCommonMessageJob extends Job
- {
- protected $params = [];
- public function __construct($params = [])
- {
- $this->params = $params;
- }
- public function handle()
- {
- $taskName = '';
- if (!empty($this->params['task_name'])) {
- $taskName = $this->params['task_name'];
- }
- make(TelegramRepository::class)->sendCommonText($this->params['content'], $taskName);
- }
- }
|