* +---------------------------------------------------------------------- */ namespace App\Task\customer; use App\Http\Service\Client\CustomerService; use Hhxsv5\LaravelS\Swoole\Task\Task; use Illuminate\Support\Facades\Log; /** * 客户跟进提醒事件 * Class CustomerFollowTask. */ class CustomerFollowTask extends Task { public function __construct() {} public function handle(): void { try { $switch = (int) sys_config('follow_up_switch'); if ($switch < 1) { return; } app()->get(CustomerService::class)->followUpRemindTimer(); } catch (\Throwable $e) { Log::error('客户跟进提醒失败:' . $e->getMessage(), ['file' => $e->getFile(), 'line' => $e->getLine()]); } } }