强子迅联火狐踢线
This commit is contained in:
@@ -12,6 +12,7 @@ class KillOut
|
|||||||
$product_model = new PoductModel;
|
$product_model = new PoductModel;
|
||||||
$qiangzi = $product_model->getOne(['Id'=>1]);
|
$qiangzi = $product_model->getOne(['Id'=>1]);
|
||||||
$xunlian = $product_model->getOne(['Id'=>2]);
|
$xunlian = $product_model->getOne(['Id'=>2]);
|
||||||
|
$huohu = $product_model->getOne(['Id'=>19]);
|
||||||
|
|
||||||
$header[] = $qiangzi['Token'];
|
$header[] = $qiangzi['Token'];
|
||||||
$url = 'http://47.92.116.14:2222/agent/clientOnlineList';
|
$url = 'http://47.92.116.14:2222/agent/clientOnlineList';
|
||||||
@@ -30,6 +31,15 @@ class KillOut
|
|||||||
|
|
||||||
preg_match_all("/<table(.*?)<\/table>/is", $content2, $result2);
|
preg_match_all("/<table(.*?)<\/table>/is", $content2, $result2);
|
||||||
echo str_replace('/agent/clientDisconnect?','/product/killOut/kill?priduct=2&',$result2[0][0]);
|
echo str_replace('/agent/clientDisconnect?','/product/killOut/kill?priduct=2&',$result2[0][0]);
|
||||||
|
|
||||||
|
$header3[] = $huohu['Token'];
|
||||||
|
$url3 = 'http://106.52.152.33:8899/agent/clientOnlineList';
|
||||||
|
$content3 = '';
|
||||||
|
$result3 = [];
|
||||||
|
$content3 = linkcurl($url3,'GET',false,$header3);
|
||||||
|
|
||||||
|
preg_match_all("/<table(.*?)<\/table>/is", $content3, $result3);
|
||||||
|
echo str_replace('/agent/clientDisconnect?','/product/killOut/kill?priduct=19&',$result3[0][0]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function kill()
|
public function kill()
|
||||||
@@ -42,11 +52,18 @@ class KillOut
|
|||||||
|
|
||||||
$header[] = $product['Token'];
|
$header[] = $product['Token'];
|
||||||
linkcurl($url,'GET',false,$header);
|
linkcurl($url,'GET',false,$header);
|
||||||
} else {
|
} elseif($data['priduct'] == 2) {
|
||||||
$url = 'http://47.92.65.184:2223/agent/clientDisconnect?token='.$data['token'];
|
$url = 'http://47.92.65.184:2223/agent/clientDisconnect?token='.$data['token'];
|
||||||
$product_model = new PoductModel;
|
$product_model = new PoductModel;
|
||||||
$product = $product_model->getOne(['Id'=>2]);
|
$product = $product_model->getOne(['Id'=>2]);
|
||||||
|
|
||||||
|
$header[] = $product['Token'];
|
||||||
|
linkcurl($url,'GET',false,$header);
|
||||||
|
} else {
|
||||||
|
$url = 'http://106.52.152.33:8899/agent/clientDisconnect?token='.$data['token'];
|
||||||
|
$product_model = new PoductModel;
|
||||||
|
$product = $product_model->getOne(['Id'=>19]);
|
||||||
|
|
||||||
$header[] = $product['Token'];
|
$header[] = $product['Token'];
|
||||||
linkcurl($url,'GET',false,$header);
|
linkcurl($url,'GET',false,$header);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user