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) {