$value = array_combine(array('host', 'port', 'password'), $value);
                        $value['method'] = 'aes-256-cfb';
                        // 解决http://dvel.cc/这个网站的问题,可以用一个参数来解决所有类似网站
                        break;
                }
                $key = base64_encode($value['method'] . ':' . $value['password'] . '@' . $value['host'] . ':' . $value['port']);
                $value['ss'] = 'ss://' . $key;
                // 生成快速访问链接
                $value['update'] = $this->time;
                $value['url'] = $arg['url'];
                $value['description'] = $arg['description'];
                $key = base64_encode($value['host']);
                // 以网站名来保存该服务器
                $this->ss[$key] = array_merge((array) $this->ss[$key], $value);
                // 按网站地址索引,便于更新,同一网站两个端口两个账号的只留最后一人
                unset($key, $value);
            }, $arg);
        }
        unset($response, $time, $arg, $matches);
    }
    /**
     * 将账户写入数据库
     */
    function __destruct()
    {
        update_option('me_ss', $this->ss);
        // 最后提交数据库
    }
}
meShadowsocks::init();
<?php

require '../wp-load.php';
echo '<pre>';
// var_dump(wp_get_schedules());
// var_dump(_get_cron_array());
$shadowsocks = new meShadowsocks();
$telegram = new meTelegram();
// $content = $telegram->getUpdates ();
$update = file_get_contents("php://input");
if (empty($update)) {
    $shadowsocks->ss();
    // var_dump ( $shadowsocks->ss );
    exit;
}
$update = json_decode($update, true);
// $update = $update ['result'] ['0'];
if (!$update) {
    $telegram->debug('消息内容为空,发送出错');
    exit;
}
if (isset($update["message"])) {
    if ('bot_command' == $update['message']['entities']['0']['type'] && '/start' == substr($update["message"]['text'], $update["message"]['entities']['0']['offset'], $update["message"]['entities']['0']['length'])) {
        $text = '发送任意消息获取一个随机的服务器,为了支持网上免费服务器,大家可以进去看看,点点广告啥的,就算自己不能支持,让广告商赞助也不错,是这个道理吧🤔。';
        $text .= '使用的时候复制整条消息直接导入就好了,Shadowsocks 客户端会自动识别';
        $temp = $telegram->send('sendMessage', array('chat_id' => $update["message"]["chat"]['id'], 'text' => $text));
        exit;
    }
    if ('bot_command' == $update['message']['entities']['0']['type'] && '/help' == substr($update["message"]['text'], $update["message"]['entities']['0']['offset'], $update["message"]['entities']['0']['length'])) {
        $text = '使用的时候复制整条消息直接导入就好了,Shadowsocks 客户端会自动识别,/help 加内容可以发消息给作者,有啥子事就说。';
        $temp = $telegram->send('sendMessage', array('chat_id' => $update["message"]["chat"]['id'], 'text' => $text));