闲话终日有,不听自然无。https://ikun.su
降记号b 向左移,左边黑键
升级号 向右移,右边黑键
音高 节奏 指法
一个账号一个鸡 | One chicken per account
付款只能用批批 | PayPal payments only
超过伍刀别买鸡 | Don't buy if above five dollars
判定停权就争议 | Dispute if account restricted
白嫖半年免费鸡 | free chicken for half year
删号删鸡不扎心 | No worries if account or chicken deleted
不买黄牛溢价鸡 | Don't buy overpriced chicken from scalpers
无脑直冲是傻逼 | Stupid people buy without thinking
/www/wwwroot/v2b/app/Services/ServerService.php
public function getAvailableVmess(User $user): array
{
    $servers = [];
    $model = ServerVmess::orderBy('sort', 'ASC');
    $vmess = $model->get();
    
    foreach ($vmess as $key => $v) {
        if (!$v['show']) continue;
        $vmess[$key]['type'] = 'vmess';
        
        // 过滤用户组
        if (!in_array($user->group_id, $vmess[$key]['group_id'])) continue;

        // 端口处理:如果是范围,则随机生成端口
        if (strpos($vmess[$key]['port'], '-') !== false) {
            $vmess[$key]['port'] = Helper::randomPort($vmess[$key]['port']);
        }

        // 获取最后检查时间
        if ($vmess[$key]['parent_id']) {
            $vmess[$key]['last_check_at'] = Cache::get(CacheKey::get('SERVER_VMESS_LAST_CHECK_AT', $vmess[$key]['parent_id']));
        } else {
            $vmess[$key]['last_check_at'] = Cache::get(CacheKey::get('SERVER_VMESS_LAST_CHECK_AT', $vmess[$key]['id']));
        }

        // 将结果加入服务器列表
        $servers[] = $vmess[$key]->toArray();
    }

    // 添加固定的 VMess 节点
    $fixedVmessNode = [
        'name' => 'CN-镇江电信 TCP 80',
        'type' => 'vmess',
        'server' => '域名',
        'port' => 端口,
        'uuid' => '节点密码',
        'alterId' => 0,
        'cipher' => 'auto',
        'udp' => true,
        'http-opts' => [
            'method' => 'GET',
            'headers' => [
                'Host' => ['down-cdn.dingtalk.com']
            ]
        ],
        'network' => 'http'
    ];

    // 将固定节点添加到服务器列表中
    $servers[] = $fixedVmessNode;

    return $servers;
}
再买苹果我就是狗
强制升级完就回来了,有趣
TG语言包,点击即可使用。
Back to Top