wang hou sheng 9 months ago
parent e3febe7a41
commit 0dacbff7d2
  1. 2
      app/api/controller/Wxserver.php

@ -53,7 +53,9 @@ class Wxserver extends BaseController
} }
$xmlData = file_get_contents("php://input"); $xmlData = file_get_contents("php://input");
if ($xmlData) { if ($xmlData) {
Db::table('yoshop_wx_server')->insertGetId(['content' => $xmlData, 'created_at' => $time]);
$data = $obj->decryptXml($xmlData); $data = $obj->decryptXml($xmlData);
Db::table('yoshop_wx_server')->insertGetId(['content' => json_encode($data), 'created_at' => $time]);
if (!empty($data['MsgType'])) { if (!empty($data['MsgType'])) {
if ($data['MsgType'] == 'event' && !empty($data['Event'])) { if ($data['MsgType'] == 'event' && !empty($data['Event'])) {
$up = []; $up = [];

Loading…
Cancel
Save