From 0dacbff7d27523c08dc7906cddadcb674a233d61 Mon Sep 17 00:00:00 2001 From: wang hou sheng <76928547+wanghousheng@users.noreply.github.com> Date: Thu, 11 Apr 2024 09:45:43 +0800 Subject: [PATCH] 1 --- app/api/controller/Wxserver.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/api/controller/Wxserver.php b/app/api/controller/Wxserver.php index 4ff20504..d9d01abf 100644 --- a/app/api/controller/Wxserver.php +++ b/app/api/controller/Wxserver.php @@ -53,7 +53,9 @@ class Wxserver extends BaseController } $xmlData = file_get_contents("php://input"); if ($xmlData) { + Db::table('yoshop_wx_server')->insertGetId(['content' => $xmlData, 'created_at' => $time]); $data = $obj->decryptXml($xmlData); + Db::table('yoshop_wx_server')->insertGetId(['content' => json_encode($data), 'created_at' => $time]); if (!empty($data['MsgType'])) { if ($data['MsgType'] == 'event' && !empty($data['Event'])) { $up = [];