From ddf104f158f4d7da970bdc0c936e650864c1b6e9 Mon Sep 17 00:00:00 2001 From: hellcat Date: Sun, 20 Sep 2026 13:45:00 +0800 Subject: [PATCH] no message --- app/Http/Controllers/SakaiController.php | 16 +++++++++++++--- app/Services/ServiceFnPoolV2rayTo.php | 11 +++++++++++ 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/SakaiController.php b/app/Http/Controllers/SakaiController.php index 5b296dfb..64b16743 100755 --- a/app/Http/Controllers/SakaiController.php +++ b/app/Http/Controllers/SakaiController.php @@ -27,6 +27,16 @@ class SakaiController public function test1() { + + $s = "tcp#kkkkkkkk"; + $s = "xxa"; + + $t = explode("#", $s); + + $tt = $t[0] ?? ''; + + tt($tt); + // TeleSlave::warn()->send("⚠️ [Umami 报表失败]: 无法获取 Auth Token,请检查账号密码。"); // echo 111; // exit; @@ -34,9 +44,9 @@ class SakaiController // $oReportUmami = new ReportUmami(); // $oReportUmami->handle(); - (new ReportUmami())->handle(); - - exit; +// (new ReportUmami())->handle(); +// +// exit; // $s = "vmess://eyJ2IjoiMiIsInBzIjoi8J+HuvCfh7hVU18yNHwxMDNLQi9zfEIwMDctMjYwNjE4IiwiYWRkIjoiMTI5LjE0Ni43Ny4yNDgiLCJwb3J0IjoiMzk0OTUiLCJpZCI6ImY4MzZjNzM2LTg3ZmMtNGZkZS1hYWJjLTAwODU3ZWNkZmYzZSIsImFpZCI6IjAiLCJzY3kiOiJhdXRvIiwibmV0Ijoid3MiLCJ0eXBlIjoiIiwidGxzIjoiIiwicGF0aCI6Ii9jY3R2MTMubTN1OCJ9"; // diff --git a/app/Services/ServiceFnPoolV2rayTo.php b/app/Services/ServiceFnPoolV2rayTo.php index fb9953f5..02b348fa 100644 --- a/app/Services/ServiceFnPoolV2rayTo.php +++ b/app/Services/ServiceFnPoolV2rayTo.php @@ -188,6 +188,7 @@ class ServiceFnPoolV2rayTo // 7. 构建 Transport 传输层配置 $sNetType = $aCustom['type'] ?? 'tcp'; + $sNetType = $this->ex1($sNetType); $aTransport = []; if ($sNetType === 'ws') { @@ -404,6 +405,7 @@ class ServiceFnPoolV2rayTo // 3. 传输层 (Transport) 映射逻辑 $sV2rayNet = strtolower((string) ($aConfig['net'] ?? 'tcp')); + $sV2rayNet = $this->ex1($sV2rayNet); $sV2rayType = strtolower((string) ($aConfig['type'] ?? 'none')); $sRawPath = (string) ($aConfig['path'] ?? ''); $sPath = !empty($sRawPath) ? rawurldecode($sRawPath) : '/'; @@ -508,6 +510,7 @@ class ServiceFnPoolV2rayTo // 6. 构建 Transport 传输层配置 $aTransport = []; $sRawType = $aQueryParams['type'] ?? 'tcp'; + $sRawType = $this->ex1($sRawType); $sHeaderType = $aQueryParams['headerType'] ?? ''; if ($sRawType === 'ws') { @@ -664,6 +667,14 @@ class ServiceFnPoolV2rayTo return !empty($sSni) ? $sSni : $sFallbackServer; } + // explode取第一个 + private function ex1($s) + { + $a = explode("#", $s); + $s = $a[0] ?? ''; + return $s; + } + // private function mod_to_vless($aV2ray) // { // $sConfig = $aV2ray['config'] ?? '';