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