Merge pull request #22 from rico93/dev

Merge Rico
no_ymq_dev
GeekQu 8 years ago committed by GitHub
commit dcd09b9607
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -41,7 +41,7 @@ class TelegramProcess
$bot->sendMessage($user->get_user_attributes("telegram_id"), "两种方法:\n 方法一:\n 1.点击打开以下配置文件\n 2. 选择分享->拷贝到\"Quantumult\"\n 3.选择更新配置\n 方法二:\n 1.长按配置文件\n 2. 选择更多->分享->拷贝\n 3.点击跳转APP,到Quan中保存" , $parseMode = null, $disablePreview = false, $replyToMessageId = null,$replyMarkup=$keyboard);
$filepath ='/tmp/tg_'.$ssr_sub_token.'.txt';
$fh = fopen($filepath, 'w+');
$string = LinkController::GetQuantumult($user,0,3);
$string = LinkController::GetQuantumult($user,3);
fwrite($fh, $string);
fclose($fh);
$bot->sendDocument($user->get_user_attributes("telegram_id"), new \CURLFile($filepath,'','quantumult_'.$ssr_sub_token.'.conf'));

@ -296,7 +296,11 @@ class URL
];
$item['ps'] = $node->name;
$item['add'] = $node_explode[0];
$item['port'] = $node_explode[1];
if ($node_explode[1]=="0" or $node_explode[1]==""){
$item['port'] = "443";
}else{
$item['port'] = $node_explode[1];
}
$item['id'] = $user->getUuid();
$item['aid'] = $node_explode[2];
$item['net'] = "tcp";

Loading…
Cancel
Save