From 428a44a61449816b1530dae553e394047f057a02 Mon Sep 17 00:00:00 2001 From: gzydong <837215079@qq.com> Date: Sat, 22 Jan 2022 20:08:19 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=85=BC=E5=AE=B9=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Cache/IpAddressCache.php | 2 +- app/Command/TestCommand.php | 2 +- app/{Constants => Constant}/FileDriveConstant.php | 2 +- app/{Constants => Constant}/MediaTypeConstant.php | 2 +- app/{Constants => Constant}/RedisSubscribeChan.php | 2 +- app/{Constants => Constant}/ResponseCode.php | 2 +- app/{Constants => Constant}/RobotConstant.php | 2 +- app/{Constants => Constant}/SmsConstant.php | 2 +- app/{Constants => Constant}/TalkEventConstant.php | 2 +- app/{Constants => Constant}/TalkMessageType.php | 2 +- app/{Constants => Constant}/TalkModeConstant.php | 2 +- app/Controller/AbstractController.php | 2 +- app/Controller/Api/V1/Article/AnnexController.php | 4 ++-- app/Controller/Api/V1/Article/ArticleController.php | 2 +- app/Controller/Api/V1/AuthController.php | 2 +- app/Controller/Api/V1/CommonController.php | 2 +- app/Controller/Api/V1/Contact/ContactController.php | 2 +- app/Controller/Api/V1/Group/GroupController.php | 2 +- app/Controller/Api/V1/Talk/MessageController.php | 6 +++--- app/Controller/Api/V1/Talk/RecordsController.php | 6 +++--- app/Controller/Api/V1/Talk/TalkController.php | 2 +- app/Controller/Api/V1/UsersController.php | 4 ++-- app/Controller/WebSocketController.php | 2 +- app/Exception/Handler/AppExceptionHandler.php | 2 +- app/{Helpers => Helper}/ArrayHelper.php | 4 ++-- app/{Helpers => Helper}/DateHelper.php | 2 +- app/{Helpers => Helper}/HashHelper.php | 2 +- app/{Helpers => Helper}/HashIdsHelper.php | 2 +- app/{Helpers => Helper}/JsonHelper.php | 2 +- app/{Helpers => Helper}/RegularHelper.php | 2 +- app/{Helpers => Helper}/StringHelper.php | 2 +- app/Listener/ValidatorFactoryResolvedListener.php | 2 +- app/Process/RedisWebsocketSubscribe.php | 2 +- app/Repository/ExampleRepository.php | 2 +- app/Service/Contact/ContactApplyService.php | 2 +- app/Service/EmoticonService.php | 4 ++-- app/Service/Group/GroupService.php | 6 +++--- app/Service/Message/FormatMessageService.php | 2 +- app/Service/Message/ReceiveHandleService.php | 4 ++-- app/Service/Message/SubscribeHandleService.php | 4 ++-- app/Service/RobotService.php | 2 +- app/Service/SplitUploadService.php | 2 +- app/Service/TalkForwardService.php | 4 ++-- app/Service/TalkMessageService.php | 10 +++++----- app/Service/TalkService.php | 6 +++--- app/Service/TalkSessionService.php | 2 +- app/Service/UserService.php | 2 +- app/Support/Message.php | 2 +- app/Support/Response.php | 2 +- app/Support/UserRelation.php | 2 +- app/Traits/RepositoryTrait.php | 2 +- seeders/initialize.php | 4 ++-- test/Cases/Helper/ArrayHelperTest.php | 2 +- test/Cases/Helper/RegularHelperTest.php | 2 +- 54 files changed, 74 insertions(+), 74 deletions(-) rename app/{Constants => Constant}/FileDriveConstant.php (84%) rename app/{Constants => Constant}/MediaTypeConstant.php (97%) rename app/{Constants => Constant}/RedisSubscribeChan.php (86%) rename app/{Constants => Constant}/ResponseCode.php (93%) rename app/{Constants => Constant}/RobotConstant.php (89%) rename app/{Constants => Constant}/SmsConstant.php (91%) rename app/{Constants => Constant}/TalkEventConstant.php (97%) rename app/{Constants => Constant}/TalkMessageType.php (97%) rename app/{Constants => Constant}/TalkModeConstant.php (93%) rename app/{Helpers => Helper}/ArrayHelper.php (86%) rename app/{Helpers => Helper}/DateHelper.php (96%) rename app/{Helpers => Helper}/HashHelper.php (96%) rename app/{Helpers => Helper}/HashIdsHelper.php (98%) rename app/{Helpers => Helper}/JsonHelper.php (95%) rename app/{Helpers => Helper}/RegularHelper.php (97%) rename app/{Helpers => Helper}/StringHelper.php (98%) diff --git a/app/Cache/IpAddressCache.php b/app/Cache/IpAddressCache.php index d363158..58c8d9c 100644 --- a/app/Cache/IpAddressCache.php +++ b/app/Cache/IpAddressCache.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace App\Cache; use App\Cache\Repository\HashRedis; -use App\Helpers\JsonHelper; +use App\Helper\JsonHelper; use App\Support\IpAddress; class IpAddressCache extends HashRedis diff --git a/app/Command/TestCommand.php b/app/Command/TestCommand.php index 97eb535..76af0ce 100644 --- a/app/Command/TestCommand.php +++ b/app/Command/TestCommand.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace App\Command; use App\Cache\IpAddressCache; -use App\Constants\RobotConstant; +use App\Constant\RobotConstant; use App\Model\Contact\Contact; use App\Repository\ExampleRepository; use App\Repository\RobotRepository; diff --git a/app/Constants/FileDriveConstant.php b/app/Constant/FileDriveConstant.php similarity index 84% rename from app/Constants/FileDriveConstant.php rename to app/Constant/FileDriveConstant.php index b7b8eef..cf5a86c 100644 --- a/app/Constants/FileDriveConstant.php +++ b/app/Constant/FileDriveConstant.php @@ -1,7 +1,7 @@ create($item->user_id, $item->friend_id, \App\Constants\TalkModeConstant::PRIVATE_CHAT); + $service->create($item->user_id, $item->friend_id, \App\Constant\TalkModeConstant::PRIVATE_CHAT); } } } diff --git a/test/Cases/Helper/ArrayHelperTest.php b/test/Cases/Helper/ArrayHelperTest.php index fc91cb4..51ca8d5 100644 --- a/test/Cases/Helper/ArrayHelperTest.php +++ b/test/Cases/Helper/ArrayHelperTest.php @@ -4,7 +4,7 @@ declare(strict_types=1); namespace HyperfTest\Cases\Helper; -use App\Helpers\ArrayHelper; +use App\Helper\ArrayHelper; use HyperfTest\HttpTestCase; class ArrayHelperTest extends HttpTestCase diff --git a/test/Cases/Helper/RegularHelperTest.php b/test/Cases/Helper/RegularHelperTest.php index e94081f..b2a5c6d 100644 --- a/test/Cases/Helper/RegularHelperTest.php +++ b/test/Cases/Helper/RegularHelperTest.php @@ -3,7 +3,7 @@ declare(strict_types=1); namespace HyperfTest\Cases\Helper; -use App\Helpers\RegularHelper; +use App\Helper\RegularHelper; use HyperfTest\HttpTestCase; class RegularHelperTest extends HttpTestCase