Refactor ChatConnect and related classes to use dynamic typing for properties and method parameters. Update event handling to use a consistent naming convention for emitted events. Adjust WebSocket message handling methods to accept event arrays instead of specific data structures. Update configuration for Swoole to increase ping intervals and timeouts.
This commit is contained in:
@@ -18,7 +18,7 @@ class ChatQuickReply extends Model
|
||||
/**
|
||||
* 获取启用的快捷回复列表
|
||||
*/
|
||||
public static function getEnabledList(?string $category = null): array
|
||||
public static function getEnabledList($category = null)
|
||||
{
|
||||
$query = self::where('status', 1);
|
||||
if ($category !== null) {
|
||||
@@ -33,7 +33,7 @@ class ChatQuickReply extends Model
|
||||
/**
|
||||
* 获取分类列表
|
||||
*/
|
||||
public static function getCategories(): array
|
||||
public static function getCategories()
|
||||
{
|
||||
return self::where('status', 1)
|
||||
->whereNotNull('category')
|
||||
|
||||
Reference in New Issue
Block a user