From 7573187bd6f9ec2d76aae48edeb5aa9c6fbbf59f Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Wed, 31 Dec 2025 16:32:19 +0800 Subject: [PATCH] no message --- app/Services/Tg/Hook/Dog.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/Services/Tg/Hook/Dog.php b/app/Services/Tg/Hook/Dog.php index 55c5b8c6..479615c7 100644 --- a/app/Services/Tg/Hook/Dog.php +++ b/app/Services/Tg/Hook/Dog.php @@ -215,7 +215,7 @@ class Dog extends Mod\Base { // foreach ($oSelfList as &$oSelfListRow) { // $oSelfListRow = $this->filterRow($oSelfListRow); // } -// +// // return $oSelfList; // } @@ -284,15 +284,15 @@ class Dog extends Mod\Base { // private function filterRow($oSelfRow) // { -// +// // foreach ($this->aStrField as $v) { // $oSelfRow->{$v} = $this->subStr($oSelfRow->{$v}); // } -// +// // foreach ($this->aJsonField as $v) { // $oSelfRow->{$v} = json_decode($oSelfRow->{$v}); // } -// +// // return $oSelfRow; // } @@ -611,11 +611,11 @@ class Dog extends Mod\Base { } foreach ($this->aStrField as $sStrField) { - $aData[$sStrField] = $this->subStr($aData[$sStrField]); + $aData[$sStrField] = $this->subStr($aData[$sStrField] ?? ''); } foreach ($this->aJsonField as $sJsonField) { - $aData[$sJsonField] = json_decode($aData[$sJsonField]); + $aData[$sJsonField] = json_decode($aData[$sJsonField] ?? ''); } foreach ($this->aOutFormat as $sFormatField => $sFormatType) {