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 = [];