示例#1
0
                $friendService->addFriend($winduid, $value);
                $friendService->addFriend($value, $winduid);
            }
            $fid = $fid[0];
            $msg = getLangInfo('message', $return);
            break;
        case 'request_group':
            $return = $check == 1 ? $friendObj->checkJoinColony($cyid, $fid) : $friendObj->agreeJoinColony($cyid, $winduid, $windid);
            if ($return == 'colony_check_fail') {
                /*无权限审核,直接将该消息删除*/
                $messageServer->deleteMessages($winduid, $rids);
            }
            $msg = getLangInfo('message', $return);
            break;
        case 'request_app':
            $return = $friendObj->agreeWithApp(0);
            $msg = getLangInfo('message', $return);
            break;
        default:
            break;
    }
    if (in_array($return, array('app_add_success', 'colony_joinsuccess', 'friend_add_success', 'colony_check_success'))) {
        $messageServer->agreeRequests($winduid, $rids);
    } else {
        $messageServer->updateRequest(array('status' => 0), $winduid, $rids[0]);
    }
    ajaxExport($msg);
} elseif ('shield' == $action) {
    /* 屏蔽多人消息 */
    S::gp(array('rid', 'mid'), 'GP');
    (empty($rid) || empty($mid)) && ajaxExport("非法操作请返回");