From d5817c0257bba48b24179e21d165bbe73e5d8b43 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Thu, 3 Jul 2025 16:25:32 +0800 Subject: [PATCH] no message --- app/Services/TG/Hook/Mod/Box.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/app/Services/TG/Hook/Mod/Box.php b/app/Services/TG/Hook/Mod/Box.php index 5e995018..78806639 100644 --- a/app/Services/TG/Hook/Mod/Box.php +++ b/app/Services/TG/Hook/Mod/Box.php @@ -61,10 +61,10 @@ class Box extends Base { public function github_tag_add($aParam) { - $aTag = $aParam["aArg"] ?? false; + $sTag = $aParam["aArg"][1] ?? false; $sType = $aParam["aArg"][2] ?? false; - if (!$aTag) { + if (!$sTag) { return "需要arg[1],tag。"; } @@ -72,8 +72,6 @@ class Box extends Base { return "需要arg[2],cn中文,en英文。"; } - $sTag = implode(" ", $aTag); - $oGithubTag = new GithubTag(); $oGithubTag->tag = $sTag; $oGithubTag->type = $sType; @@ -86,7 +84,7 @@ class Box extends Base { { $iId = $aParam["aOption"][1] ?? false; $sField = $aParam["aOption"][2] ?? false; - $aValue = $aParam["aArg"] ?? false; + $sValue = $aParam["aArg"][1] ?? false; if (!$iId) { return "需要option[1],id。"; @@ -96,12 +94,10 @@ class Box extends Base { return "需要option[2],field。"; } - if (!$aValue) { + if (!$sValue) { return "需要arg[1],value。"; } - $sValue = implode(" ", $aValue); - $oGithubTag = GithubTag::find($iId); if (!$oGithubTag) {