From b51c34494d5d8573c78b50cca79c385f3c668b32 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Mon, 21 Apr 2025 18:50:24 +0800 Subject: [PATCH] no message --- src/Services/Tg/Hook/Mod/Tk.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Services/Tg/Hook/Mod/Tk.php b/src/Services/Tg/Hook/Mod/Tk.php index 8382cf1f..f343bbf1 100644 --- a/src/Services/Tg/Hook/Mod/Tk.php +++ b/src/Services/Tg/Hook/Mod/Tk.php @@ -78,9 +78,15 @@ final class Tk extends Base unset($row['datetime']); unset($row['status']); unset($row['type']); - $row['content_'] = json_decode($row['content']); + $aContent = json_decode($row['content'], 1); unset($row['content']); + foreach ($aContent as &$row2) { + $row2['datetime'] = date("Y-m-d H:i:s", $row2['datetime']); + } + + $row['content'] = $aContent; + $sMsg = json_encode($row, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT); $this->oTGHttp->sendToTG($sMsg);