beContact($event->uid, $event->isLikeUid); $friendContact = new FriendContact(); $friendContact->setEachLike($event->uid, $event->isLikeUid, 1); } public function unEachLike(UnEachLike $event) { $friendContact = new FriendContact(); $friendContact->setEachLike($event->uid, $event->unLikeUid, 0); } /** * 分配对象活动-匹配成功 * @param PairSuccess $event * @throws \Throwable */ public function pairSuccess(PairSuccess $event) { $friendManager = new FriendManager(); $friendManager->beContact($event->uid, $event->pairUid); } /** * 分配对象活动-双方同意 * @param PairTwoSideAgree $event * @throws \Throwable */ public function pairTwoSideAgree(PairTwoSideAgree $event) { $friendManager = new FriendManager(); $friendManager->beFriend($event->uid, $event->pairUid); } }