This commit is contained in:
hajimi
2026-06-11 16:22:12 +08:00
parent 96efa1d905
commit 21aa11bf17
368 changed files with 2741 additions and 554 deletions
@@ -12,6 +12,7 @@ class PrivateChatService
{
public const MESSAGE_TYPE_TEXT = PrivateChatMessage::TYPE_TEXT;
public const MESSAGE_TYPE_IMAGE = PrivateChatMessage::TYPE_IMAGE;
public const RELATIONSHIP_NOT_MUTUAL_TEXT = '对方还未添加你为好友';
public static function open(int $userId, int $targetUserId, bool $requireFollow = true): array
{
@@ -182,7 +183,7 @@ class PrivateChatService
'is_followed_by_me' => $isFollowedByMe,
'is_following_me' => $isFollowingMe,
'is_mutual' => $isMutual,
'relationship_text' => $isMutual ? '互相关注' : '不是好友',
'relationship_text' => $isMutual ? '互相关注' : self::RELATIONSHIP_NOT_MUTUAL_TEXT,
];
}