更新
This commit is contained in:
@@ -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,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user