feat:兼容开发

main
gzydong 2022-01-22 20:08:19 +08:00
parent 6bfb98b659
commit 428a44a614
54 changed files with 74 additions and 74 deletions

View File

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace App\Cache; namespace App\Cache;
use App\Cache\Repository\HashRedis; use App\Cache\Repository\HashRedis;
use App\Helpers\JsonHelper; use App\Helper\JsonHelper;
use App\Support\IpAddress; use App\Support\IpAddress;
class IpAddressCache extends HashRedis class IpAddressCache extends HashRedis

View File

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace App\Command; namespace App\Command;
use App\Cache\IpAddressCache; use App\Cache\IpAddressCache;
use App\Constants\RobotConstant; use App\Constant\RobotConstant;
use App\Model\Contact\Contact; use App\Model\Contact\Contact;
use App\Repository\ExampleRepository; use App\Repository\ExampleRepository;
use App\Repository\RobotRepository; use App\Repository\RobotRepository;

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Constants; namespace App\Constant;
class FileDriveConstant class FileDriveConstant
{ {

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Constants; namespace App\Constant;
/** /**
* Class MediaTypeConstant * Class MediaTypeConstant

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Constants; namespace App\Constant;
class RedisSubscribeChan class RedisSubscribeChan
{ {

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Constants; namespace App\Constant;
/** /**
* HTTP 响应状态码枚举 * HTTP 响应状态码枚举

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Constants; namespace App\Constant;
/** /**
* 定义系统机器人ID * 定义系统机器人ID

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Constants; namespace App\Constant;
class SmsConstant class SmsConstant
{ {

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Constants; namespace App\Constant;
/** /**
* WebSocket 消息事件枚举 * WebSocket 消息事件枚举

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Constants; namespace App\Constant;
/** /**
* Class TalkMessageType * Class TalkMessageType

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Constants; namespace App\Constant;
/** /**
* 聊天对话模式 * 聊天对话模式

View File

@ -18,7 +18,7 @@ use Hyperf\HttpServer\Contract\ResponseInterface;
use Psr\Container\ContainerInterface; use Psr\Container\ContainerInterface;
use Hyperf\Validation\Contract\ValidatorFactoryInterface; use Hyperf\Validation\Contract\ValidatorFactoryInterface;
use App\Exception\ValidateException; use App\Exception\ValidateException;
use App\Constants\ResponseCode; use App\Constant\ResponseCode;
abstract class AbstractController abstract class AbstractController
{ {

View File

@ -3,9 +3,9 @@ declare(strict_types=1);
namespace App\Controller\Api\V1\Article; namespace App\Controller\Api\V1\Article;
use App\Constants\FileDriveConstant; use App\Constant\FileDriveConstant;
use App\Controller\Api\V1\CController; use App\Controller\Api\V1\CController;
use App\Helpers\DateHelper; use App\Helper\DateHelper;
use App\Model\Article\ArticleAnnex; use App\Model\Article\ArticleAnnex;
use App\Service\ArticleService; use App\Service\ArticleService;
use Hyperf\Di\Annotation\Inject; use Hyperf\Di\Annotation\Inject;

View File

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace App\Controller\Api\V1\Article; namespace App\Controller\Api\V1\Article;
use App\Controller\Api\V1\CController; use App\Controller\Api\V1\CController;
use App\Helpers\StringHelper; use App\Helper\StringHelper;
use App\Service\ArticleService; use App\Service\ArticleService;
use Hyperf\Di\Annotation\Inject; use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller; use Hyperf\HttpServer\Annotation\Controller;

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Controller\Api\V1; namespace App\Controller\Api\V1;
use App\Constants\SmsConstant; use App\Constant\SmsConstant;
use App\Event\LoginEvent; use App\Event\LoginEvent;
use Hyperf\Di\Annotation\Inject; use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller; use Hyperf\HttpServer\Annotation\Controller;

View File

@ -9,7 +9,7 @@ use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller; use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping; use Hyperf\HttpServer\Annotation\RequestMapping;
use App\Service\SmsCodeService; use App\Service\SmsCodeService;
use App\Constants\SmsConstant; use App\Constant\SmsConstant;
use App\Service\UserService; use App\Service\UserService;
/** /**

View File

@ -4,7 +4,7 @@ namespace App\Controller\Api\V1\Contact;
use App\Cache\FriendRemark; use App\Cache\FriendRemark;
use App\Cache\ServerRunID; use App\Cache\ServerRunID;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Controller\Api\V1\CController; use App\Controller\Api\V1\CController;
use App\Middleware\JWTAuthMiddleware; use App\Middleware\JWTAuthMiddleware;
use App\Repository\Contact\ContactRepository; use App\Repository\Contact\ContactRepository;

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Controller\Api\V1\Group; namespace App\Controller\Api\V1\Group;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Controller\Api\V1\CController; use App\Controller\Api\V1\CController;
use App\Model\Group\Group; use App\Model\Group\Group;
use App\Model\Group\GroupNotice; use App\Model\Group\GroupNotice;

View File

@ -4,9 +4,9 @@ declare(strict_types=1);
namespace App\Controller\Api\V1\Talk; namespace App\Controller\Api\V1\Talk;
use App\Cache\UnreadTalkCache; use App\Cache\UnreadTalkCache;
use App\Constants\MediaTypeConstant; use App\Constant\MediaTypeConstant;
use App\Constants\TalkEventConstant; use App\Constant\TalkEventConstant;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Controller\Api\V1\CController; use App\Controller\Api\V1\CController;
use App\Event\TalkEvent; use App\Event\TalkEvent;
use App\Model\Emoticon\EmoticonItem; use App\Model\Emoticon\EmoticonItem;

View File

@ -3,9 +3,9 @@ declare(strict_types=1);
namespace App\Controller\Api\V1\Talk; namespace App\Controller\Api\V1\Talk;
use App\Constants\FileDriveConstant; use App\Constant\FileDriveConstant;
use App\Constants\TalkMessageType; use App\Constant\TalkMessageType;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Controller\Api\V1\CController; use App\Controller\Api\V1\CController;
use App\Model\Talk\TalkRecords; use App\Model\Talk\TalkRecords;
use App\Model\Talk\TalkRecordsFile; use App\Model\Talk\TalkRecordsFile;

View File

@ -6,7 +6,7 @@ namespace App\Controller\Api\V1\Talk;
use App\Cache\LastMessage; use App\Cache\LastMessage;
use App\Cache\Repository\LockRedis; use App\Cache\Repository\LockRedis;
use App\Cache\UnreadTalkCache; use App\Cache\UnreadTalkCache;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Controller\Api\V1\CController; use App\Controller\Api\V1\CController;
use App\Model\Group\Group; use App\Model\Group\Group;
use App\Model\Talk\TalkSession; use App\Model\Talk\TalkSession;

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Controller\Api\V1; namespace App\Controller\Api\V1;
use App\Constants\SmsConstant; use App\Constant\SmsConstant;
use Hyperf\Di\Annotation\Inject; use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller; use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping; use Hyperf\HttpServer\Annotation\RequestMapping;
@ -11,7 +11,7 @@ use Hyperf\HttpServer\Annotation\Middleware;
use App\Middleware\JWTAuthMiddleware; use App\Middleware\JWTAuthMiddleware;
use App\Model\User; use App\Model\User;
use App\Support\SendEmailCode; use App\Support\SendEmailCode;
use App\Helpers\HashHelper; use App\Helper\HashHelper;
use App\Service\UserService; use App\Service\UserService;
use App\Service\SmsCodeService; use App\Service\SmsCodeService;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;

View File

@ -16,7 +16,7 @@ use App\Cache\SocketRoom;
use App\Service\Group\GroupMemberService; use App\Service\Group\GroupMemberService;
use App\Service\Message\ReceiveHandleService; use App\Service\Message\ReceiveHandleService;
use Hyperf\Di\Annotation\Inject; use Hyperf\Di\Annotation\Inject;
use App\Constants\TalkEventConstant; use App\Constant\TalkEventConstant;
use Hyperf\Contract\OnCloseInterface; use Hyperf\Contract\OnCloseInterface;
use Hyperf\Contract\OnMessageInterface; use Hyperf\Contract\OnMessageInterface;
use Hyperf\Contract\OnOpenInterface; use Hyperf\Contract\OnOpenInterface;

View File

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace App\Exception\Handler; namespace App\Exception\Handler;
use App\Cache\Repository\LockRedis; use App\Cache\Repository\LockRedis;
use App\Constants\ResponseCode; use App\Constant\ResponseCode;
use App\Templates\MailerTemplate; use App\Templates\MailerTemplate;
use Hyperf\Contract\StdoutLoggerInterface; use Hyperf\Contract\StdoutLoggerInterface;
use Hyperf\ExceptionHandler\ExceptionHandler; use Hyperf\ExceptionHandler\ExceptionHandler;

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Helpers; namespace App\Helper;
class ArrayHelper class ArrayHelper
{ {
@ -31,7 +31,7 @@ class ArrayHelper
* @param int $sort 排序方式 * @param int $sort 排序方式
* @return array * @return array
*/ */
public static function sort(array $array, string $field, $sort = SORT_DESC): array public static function sort(array $array, string $field, int $sort = SORT_DESC): array
{ {
array_multisort(array_column($array, $field), $sort, $array); array_multisort(array_column($array, $field), $sort, $array);
return $array; return $array;

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Helpers; namespace App\Helper;
/** /**
* 时间处理助手 * 时间处理助手

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Helpers; namespace App\Helper;
/** /**
* Hash 密码加密辅助类 * Hash 密码加密辅助类

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Helpers; namespace App\Helper;
use Hashids\Hashids; use Hashids\Hashids;

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Helpers; namespace App\Helper;
/** /**
* Json 字符串助手 * Json 字符串助手

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Helpers; namespace App\Helper;
/** /**
* 正则验证助手 * 正则验证助手

View File

@ -1,7 +1,7 @@
<?php <?php
declare(strict_types=1); declare(strict_types=1);
namespace App\Helpers; namespace App\Helper;
/** /**
* 字符串助手类 * 字符串助手类

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Listener; namespace App\Listener;
use App\Helpers\RegularHelper; use App\Helper\RegularHelper;
use Hyperf\Event\Contract\ListenerInterface; use Hyperf\Event\Contract\ListenerInterface;
use Hyperf\Validation\Contract\ValidatorFactoryInterface; use Hyperf\Validation\Contract\ValidatorFactoryInterface;
use Hyperf\Validation\Event\ValidatorFactoryResolved; use Hyperf\Validation\Event\ValidatorFactoryResolved;

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Process; namespace App\Process;
use App\Constants\RedisSubscribeChan; use App\Constant\RedisSubscribeChan;
use App\Service\Message\SubscribeHandleService; use App\Service\Message\SubscribeHandleService;
use Hyperf\Process\AbstractProcess; use Hyperf\Process\AbstractProcess;
use Hyperf\Process\Annotation\Process; use Hyperf\Process\Annotation\Process;

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Repository; namespace App\Repository;
use App\Helpers\HashHelper; use App\Helper\HashHelper;
use App\Model\Talk\TalkRecords; use App\Model\Talk\TalkRecords;
use App\Model\User; use App\Model\User;
use Hyperf\Utils\Str; use Hyperf\Utils\Str;

View File

@ -3,7 +3,7 @@
namespace App\Service\Contact; namespace App\Service\Contact;
use App\Cache\FriendApply; use App\Cache\FriendApply;
use App\Constants\TalkEventConstant; use App\Constant\TalkEventConstant;
use App\Event\TalkEvent; use App\Event\TalkEvent;
use App\Model\Contact\Contact; use App\Model\Contact\Contact;
use App\Model\Contact\ContactApply; use App\Model\Contact\ContactApply;

View File

@ -3,8 +3,8 @@ declare(strict_types=1);
namespace App\Service; namespace App\Service;
use App\Constants\TalkMessageType; use App\Constant\TalkMessageType;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Model\Talk\TalkRecords; use App\Model\Talk\TalkRecords;
use App\Model\Talk\TalkRecordsFile; use App\Model\Talk\TalkRecordsFile;
use App\Model\Emoticon\EmoticonItem; use App\Model\Emoticon\EmoticonItem;

View File

@ -5,9 +5,9 @@ namespace App\Service\Group;
use App\Cache\LastMessage; use App\Cache\LastMessage;
use App\Cache\SocketRoom; use App\Cache\SocketRoom;
use App\Constants\TalkEventConstant; use App\Constant\TalkEventConstant;
use App\Constants\TalkMessageType; use App\Constant\TalkMessageType;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Event\TalkEvent; use App\Event\TalkEvent;
use App\Model\Talk\TalkRecords; use App\Model\Talk\TalkRecords;
use App\Model\Talk\TalkRecordsInvite; use App\Model\Talk\TalkRecordsInvite;

View File

@ -5,7 +5,7 @@ namespace App\Service\Message;
use App\Cache\VoteCache; use App\Cache\VoteCache;
use App\Cache\VoteStatisticsCache; use App\Cache\VoteStatisticsCache;
use App\Constants\TalkMessageType; use App\Constant\TalkMessageType;
use App\Model\Talk\TalkRecordsCode; use App\Model\Talk\TalkRecordsCode;
use App\Model\Talk\TalkRecordsFile; use App\Model\Talk\TalkRecordsFile;
use App\Model\Talk\TalkRecordsForward; use App\Model\Talk\TalkRecordsForward;

View File

@ -3,8 +3,8 @@ declare(strict_types=1);
namespace App\Service\Message; namespace App\Service\Message;
use App\Constants\TalkEventConstant; use App\Constant\TalkEventConstant;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Event\TalkEvent; use App\Event\TalkEvent;
use App\Service\SocketClientService; use App\Service\SocketClientService;
use App\Service\TalkMessageService; use App\Service\TalkMessageService;

View File

@ -5,8 +5,8 @@ namespace App\Service\Message;
use App\Cache\GroupCache; use App\Cache\GroupCache;
use App\Cache\SocketRoom; use App\Cache\SocketRoom;
use App\Constants\TalkEventConstant; use App\Constant\TalkEventConstant;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Model\Talk\TalkRecords; use App\Model\Talk\TalkRecords;
use App\Model\User; use App\Model\User;
use App\Model\Contact\ContactApply; use App\Model\Contact\ContactApply;

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Service; namespace App\Service;
use App\Helpers\HashHelper; use App\Helper\HashHelper;
use App\Model\Robot; use App\Model\Robot;
use App\Model\User; use App\Model\User;
use Hyperf\DbConnection\Db; use Hyperf\DbConnection\Db;

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Service; namespace App\Service;
use App\Constants\FileDriveConstant; use App\Constant\FileDriveConstant;
use App\Model\SplitUpload; use App\Model\SplitUpload;
use Hyperf\HttpMessage\Upload\UploadedFile; use Hyperf\HttpMessage\Upload\UploadedFile;
use League\Flysystem\Filesystem; use League\Flysystem\Filesystem;

View File

@ -6,8 +6,8 @@ namespace App\Service;
use App\Model\Talk\TalkRecordsCode; use App\Model\Talk\TalkRecordsCode;
use App\Model\Talk\TalkRecordsFile; use App\Model\Talk\TalkRecordsFile;
use Exception; use Exception;
use App\Constants\TalkMessageType; use App\Constant\TalkMessageType;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Model\Talk\TalkRecords; use App\Model\Talk\TalkRecords;
use App\Model\Talk\TalkRecordsForward; use App\Model\Talk\TalkRecordsForward;
use Hyperf\DbConnection\Db; use Hyperf\DbConnection\Db;

View File

@ -7,10 +7,10 @@ use App\Cache\LastMessage;
use App\Cache\UnreadTalkCache; use App\Cache\UnreadTalkCache;
use App\Cache\VoteCache; use App\Cache\VoteCache;
use App\Cache\VoteStatisticsCache; use App\Cache\VoteStatisticsCache;
use App\Constants\RobotConstant; use App\Constant\RobotConstant;
use App\Constants\TalkEventConstant; use App\Constant\TalkEventConstant;
use App\Constants\TalkMessageType; use App\Constant\TalkMessageType;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Event\TalkEvent; use App\Event\TalkEvent;
use App\Model\Group\GroupMember; use App\Model\Group\GroupMember;
use App\Model\Talk\TalkRecordsCode; use App\Model\Talk\TalkRecordsCode;
@ -20,7 +20,7 @@ use App\Model\Talk\TalkRecordsVoteAnswer;
use App\Repository\RobotRepository; use App\Repository\RobotRepository;
use App\Support\UserRelation; use App\Support\UserRelation;
use Exception; use Exception;
use App\Constants\MediaTypeConstant; use App\Constant\MediaTypeConstant;
use App\Model\Talk\TalkRecords; use App\Model\Talk\TalkRecords;
use App\Model\Talk\TalkRecordsFile; use App\Model\Talk\TalkRecordsFile;
use Hyperf\DbConnection\Db; use Hyperf\DbConnection\Db;

View File

@ -3,9 +3,9 @@ declare(strict_types=1);
namespace App\Service; namespace App\Service;
use App\Constants\TalkEventConstant; use App\Constant\TalkEventConstant;
use App\Constants\TalkMessageType; use App\Constant\TalkMessageType;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Event\TalkEvent; use App\Event\TalkEvent;
use App\Model\Robot; use App\Model\Robot;
use App\Service\Group\GroupMemberService; use App\Service\Group\GroupMemberService;

View File

@ -6,7 +6,7 @@ namespace App\Service;
use App\Cache\LastMessage; use App\Cache\LastMessage;
use App\Cache\ServerRunID; use App\Cache\ServerRunID;
use App\Cache\UnreadTalkCache; use App\Cache\UnreadTalkCache;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Model\Talk\TalkSession; use App\Model\Talk\TalkSession;
use App\Repository\Talk\TalkSessionRepository; use App\Repository\Talk\TalkSessionRepository;
use Carbon\Carbon; use Carbon\Carbon;

View File

@ -2,7 +2,7 @@
namespace App\Service; namespace App\Service;
use App\Helpers\HashHelper; use App\Helper\HashHelper;
use App\Model\Contact\ContactApply; use App\Model\Contact\ContactApply;
use App\Repository\Article\ArticleClassRepository; use App\Repository\Article\ArticleClassRepository;
use App\Repository\UserRepository; use App\Repository\UserRepository;

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Support; namespace App\Support;
use App\Constants\RedisSubscribeChan; use App\Constant\RedisSubscribeChan;
class Message class Message
{ {

View File

@ -6,7 +6,7 @@ namespace App\Support;
use Hyperf\Di\Annotation\Inject; use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Contract\ResponseInterface; use Hyperf\HttpServer\Contract\ResponseInterface;
use Psr\Http\Message\ResponseInterface as PsrResponseInterface; use Psr\Http\Message\ResponseInterface as PsrResponseInterface;
use App\Constants\ResponseCode; use App\Constant\ResponseCode;
class Response class Response
{ {

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Support; namespace App\Support;
use App\Constants\TalkModeConstant; use App\Constant\TalkModeConstant;
use App\Service\Group\GroupMemberService; use App\Service\Group\GroupMemberService;
use App\Service\UserFriendService; use App\Service\UserFriendService;

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace App\Traits; namespace App\Traits;
use App\Helpers\ArrayHelper; use App\Helper\ArrayHelper;
use Hyperf\Database\Model\Builder; use Hyperf\Database\Model\Builder;
use Hyperf\Database\Model\Model; use Hyperf\Database\Model\Model;
use Hyperf\DbConnection\Db; use Hyperf\DbConnection\Db;

View File

@ -2,7 +2,7 @@
declare(strict_types=1); declare(strict_types=1);
use App\Helpers\HashHelper; use App\Helper\HashHelper;
use Hyperf\Database\Seeders\Seeder; use Hyperf\Database\Seeders\Seeder;
use App\Model\User; use App\Model\User;
use App\Model\Article\ArticleClass; use App\Model\Article\ArticleClass;
@ -69,7 +69,7 @@ class Initialize extends Seeder
$service = new \App\Service\TalkSessionService(); $service = new \App\Service\TalkSessionService();
foreach ($list as $item) { foreach ($list as $item) {
$service->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);
} }
} }
} }

View File

@ -4,7 +4,7 @@ declare(strict_types=1);
namespace HyperfTest\Cases\Helper; namespace HyperfTest\Cases\Helper;
use App\Helpers\ArrayHelper; use App\Helper\ArrayHelper;
use HyperfTest\HttpTestCase; use HyperfTest\HttpTestCase;
class ArrayHelperTest extends HttpTestCase class ArrayHelperTest extends HttpTestCase

View File

@ -3,7 +3,7 @@ declare(strict_types=1);
namespace HyperfTest\Cases\Helper; namespace HyperfTest\Cases\Helper;
use App\Helpers\RegularHelper; use App\Helper\RegularHelper;
use HyperfTest\HttpTestCase; use HyperfTest\HttpTestCase;
class RegularHelperTest extends HttpTestCase class RegularHelperTest extends HttpTestCase