From 93c1b8e96dbdfb2c97d8cffb597a65eb1c790312 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9Cwanyongkang=E2=80=9D?= <“937888580@qq.com”>
Date: Thu, 30 Sep 2021 16:32:55 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BC=BA=E5=AD=90=E8=BF=85=E8=81=94=E7=81=AB?=
=?UTF-8?q?=E7=8B=90=E8=B8=A2=E7=BA=BF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/product/controller/KillOut.php | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/app/product/controller/KillOut.php b/app/product/controller/KillOut.php
index 526fcbd..155c986 100644
--- a/app/product/controller/KillOut.php
+++ b/app/product/controller/KillOut.php
@@ -12,6 +12,7 @@ class KillOut
$product_model = new PoductModel;
$qiangzi = $product_model->getOne(['Id'=>1]);
$xunlian = $product_model->getOne(['Id'=>2]);
+ $huohu = $product_model->getOne(['Id'=>19]);
$header[] = $qiangzi['Token'];
$url = 'http://47.92.116.14:2222/agent/clientOnlineList';
@@ -30,6 +31,15 @@ class KillOut
preg_match_all("/
/is", $content2, $result2);
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("//is", $content3, $result3);
+ echo str_replace('/agent/clientDisconnect?','/product/killOut/kill?priduct=19&',$result3[0][0]);
}
public function kill()
@@ -42,11 +52,18 @@ class KillOut
$header[] = $product['Token'];
linkcurl($url,'GET',false,$header);
- } else {
+ } elseif($data['priduct'] == 2) {
$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);
+ } 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'];
linkcurl($url,'GET',false,$header);
}