From c6c83c86fd06ac85ea618a3f92e02abe956e0836 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 5 Nov 2019 00:12:04 +0800 Subject: [PATCH] update --- app/Events/ServerLogSaveEvent.php | 38 ------------------------- app/Listeners/ServerLogSaveListener.php | 32 --------------------- app/Models/ServerLog.php | 1 - app/Providers/EventServiceProvider.php | 3 -- 4 files changed, 74 deletions(-) delete mode 100644 app/Events/ServerLogSaveEvent.php delete mode 100644 app/Listeners/ServerLogSaveListener.php diff --git a/app/Events/ServerLogSaveEvent.php b/app/Events/ServerLogSaveEvent.php deleted file mode 100644 index 50582587..00000000 --- a/app/Events/ServerLogSaveEvent.php +++ /dev/null @@ -1,38 +0,0 @@ -serverLog = $serverLog; - } - - /** - * Get the channels the event should broadcast on. - * - * @return \Illuminate\Broadcasting\Channel|array - */ - public function broadcastOn() - { - return new PrivateChannel('channel-name'); - } -} - diff --git a/app/Listeners/ServerLogSaveListener.php b/app/Listeners/ServerLogSaveListener.php deleted file mode 100644 index 47468a48..00000000 --- a/app/Listeners/ServerLogSaveListener.php +++ /dev/null @@ -1,32 +0,0 @@ -serverLog->user_id; - Redis::set($redisKey, time()); - info($redisKey); - } -} diff --git a/app/Models/ServerLog.php b/app/Models/ServerLog.php index b62b723e..efd23a76 100644 --- a/app/Models/ServerLog.php +++ b/app/Models/ServerLog.php @@ -10,6 +10,5 @@ class ServerLog extends Model protected $table = 'v2_server_log'; protected $dateFormat = 'U'; protected $dispatchesEvents = [ - 'saving' => ServerLogSaveEvent::class, ]; } diff --git a/app/Providers/EventServiceProvider.php b/app/Providers/EventServiceProvider.php index a50542dd..e2d14974 100755 --- a/app/Providers/EventServiceProvider.php +++ b/app/Providers/EventServiceProvider.php @@ -13,9 +13,6 @@ class EventServiceProvider extends ServiceProvider * @var array */ protected $listen = [ - 'App\Events\ServerLogSaveEvent' => [ - 'App\Listeners\ServerLogSaveListener', - ], ]; /**