强子迅联踢线

This commit is contained in:
“wanyongkang”
2021-05-16 17:19:08 +08:00
parent 1b351fe979
commit a8addff848

View File

@@ -20,7 +20,7 @@ class KillOut
$content = linkcurl($url,'GET',false,$header);
preg_match_all("/<table(.*?)<\/table>/is", $content, $result);
echo $result[0][0];
echo str_replace('/agent/clientDisconnect?','/product/killOut/kill?priduct=1&',$result[0][0]);
$header2[] = $xunlian['Token'];
$url2 = 'http://47.92.65.184:2223/agent/clientOnlineList';
@@ -29,6 +29,29 @@ class KillOut
$content2 = linkcurl($url2,'GET',false,$header2);
preg_match_all("/<table(.*?)<\/table>/is", $content2, $result2);
echo $result2[0][0];
echo str_replace('/agent/clientDisconnect?','/product/killOut/kill?priduct=2&',$result2[0][0]);
}
public function kill()
{
$data = $_GET;
if($data['priduct'] == 1){
$url = 'http://47.92.116.14:2222/agent/clientDisconnect?token='.$data['token'];
$product_model = new PoductModel;
$product = $product_model->getOne(['Id'=>1]);
$header[] = $product['Token'];
linkcurl($url,'GET',false,$header);
} else {
$url = 'http://47.92.65.184:2223/agent/clientDisconnect?token='.$data['token'];
$product_model = new PoductModel;
$product = $product_model->getOne(['Id'=>2]);
$header[] = $product['Token'];
linkcurl($url,'GET',false,$header);
}
header("refresh:3;url=http://php-api.juip.com/product/killOut/list");
print('踢线成功,请稍等...<br>3秒后返回。');
}
}