|
|
@ -17,6 +17,7 @@ class WxServer extends BaseController |
|
|
|
{ |
|
|
|
{ |
|
|
|
$data = $this->request->post(); |
|
|
|
$data = $this->request->post(); |
|
|
|
$xmlData = file_get_contents("php://input"); // 获取原始的XML数据 |
|
|
|
$xmlData = file_get_contents("php://input"); // 获取原始的XML数据 |
|
|
|
|
|
|
|
Db::table('yoshop_wx_server')->insertGetId(['content' => '进来了', 'created_at' => date('Y-m-d H:i:s')]); |
|
|
|
// 解析XML数据 |
|
|
|
// 解析XML数据 |
|
|
|
// $xml = simplexml_load_string($xmlData, 'SimpleXMLElement', LIBXML_NOCDATA); |
|
|
|
// $xml = simplexml_load_string($xmlData, 'SimpleXMLElement', LIBXML_NOCDATA); |
|
|
|
// $fromUser = $xml->FromUserName; |
|
|
|
// $fromUser = $xml->FromUserName; |
|
|
|