From 41ffefcd4894b74e894a7d792adb513931be98d9 Mon Sep 17 00:00:00 2001 From: xiaochong0302 Date: Tue, 15 Apr 2025 10:02:58 +0800 Subject: [PATCH] LiveChapter -> LiveChat --- app/Http/Api/Controllers/LiveController.php | 12 ++++++------ app/Http/Home/Controllers/LiveController.php | 12 ++++++------ .../Logic/Live/{LiveChapter.php => LiveChat.php} | 2 +- 3 files changed, 13 insertions(+), 13 deletions(-) rename app/Services/Logic/Live/{LiveChapter.php => LiveChat.php} (98%) diff --git a/app/Http/Api/Controllers/LiveController.php b/app/Http/Api/Controllers/LiveController.php index 6b5203bf..4f539306 100644 --- a/app/Http/Api/Controllers/LiveController.php +++ b/app/Http/Api/Controllers/LiveController.php @@ -7,7 +7,7 @@ namespace App\Http\Api\Controllers; -use App\Services\Logic\Live\LiveChapter as LiveChapterService; +use App\Services\Logic\Live\LiveChat as LiveChatService; use App\Services\Logic\Live\LiveList as LiveListService; /** @@ -33,7 +33,7 @@ class LiveController extends Controller */ public function chatsAction($id) { - $service = new LiveChapterService(); + $service = new LiveChatService(); $chats = $service->getRecentChats($id); @@ -45,7 +45,7 @@ class LiveController extends Controller */ public function statsAction($id) { - $service = new LiveChapterService(); + $service = new LiveChatService(); $stats = $service->getStats($id); @@ -57,7 +57,7 @@ class LiveController extends Controller */ public function statusAction($id) { - $service = new LiveChapterService(); + $service = new LiveChatService(); $status = $service->getStatus($id); @@ -69,7 +69,7 @@ class LiveController extends Controller */ public function bindUserAction($id) { - $service = new LiveChapterService(); + $service = new LiveChatService(); $service->bindUser($id); @@ -81,7 +81,7 @@ class LiveController extends Controller */ public function sendMessageAction($id) { - $service = new LiveChapterService(); + $service = new LiveChatService(); $message = $service->sendMessage($id); diff --git a/app/Http/Home/Controllers/LiveController.php b/app/Http/Home/Controllers/LiveController.php index a6d572df..d2b76985 100644 --- a/app/Http/Home/Controllers/LiveController.php +++ b/app/Http/Home/Controllers/LiveController.php @@ -7,7 +7,7 @@ namespace App\Http\Home\Controllers; -use App\Services\Logic\Live\LiveChapter as LiveChapterService; +use App\Services\Logic\Live\LiveChat as LiveChatService; use Phalcon\Mvc\View; /** @@ -21,7 +21,7 @@ class LiveController extends Controller */ public function chatsAction($id) { - $service = new LiveChapterService(); + $service = new LiveChatService(); $chats = $service->getRecentChats($id); @@ -35,7 +35,7 @@ class LiveController extends Controller */ public function statsAction($id) { - $service = new LiveChapterService(); + $service = new LiveChatService(); $stats = $service->getStats($id); @@ -47,7 +47,7 @@ class LiveController extends Controller */ public function statusAction($id) { - $service = new LiveChapterService(); + $service = new LiveChatService(); $status = $service->getStatus($id); @@ -59,7 +59,7 @@ class LiveController extends Controller */ public function bindUserAction($id) { - $service = new LiveChapterService(); + $service = new LiveChatService(); $service->bindUser($id); @@ -71,7 +71,7 @@ class LiveController extends Controller */ public function sendMessageAction($id) { - $service = new LiveChapterService(); + $service = new LiveChatService(); $response = $service->sendMessage($id); diff --git a/app/Services/Logic/Live/LiveChapter.php b/app/Services/Logic/Live/LiveChat.php similarity index 98% rename from app/Services/Logic/Live/LiveChapter.php rename to app/Services/Logic/Live/LiveChat.php index 8efa260d..2d8f4f50 100644 --- a/app/Services/Logic/Live/LiveChapter.php +++ b/app/Services/Logic/Live/LiveChat.php @@ -12,7 +12,7 @@ use App\Services\Logic\Service as LogicService; use App\Validators\Live as LiveValidator; use GatewayClient\Gateway; -class LiveChapter extends LogicService +class LiveChat extends LogicService { use ChapterTrait;