|
...
|
...
|
@@ -167,7 +167,21 @@ class LoginController extends BaseController |
|
|
|
public function eventMessage(){
|
|
|
|
$message = file_get_contents("php://input");
|
|
|
|
$message = simplexml_load_string($message, 'SimpleXMLElement', LIBXML_NOCDATA | LIBXML_NOERROR);
|
|
|
|
<<<<<<< HEAD
|
|
|
|
@file_put_contents(storage_path('logs/hook/wx.log'), var_export($message, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
=======
|
|
|
|
$arr = [
|
|
|
|
'ToUserName' => 'gh_27174ac5c9d8',
|
|
|
|
'FromUserName' => 'oMbcI6gRzvfrU8ssGsEyvzXOO94w',
|
|
|
|
'CreateTime' => '1693385898',
|
|
|
|
'MsgType' => 'event',
|
|
|
|
'Event' => 'subscribe',
|
|
|
|
'EventKey' => 'qrscene_global-v6_v6',
|
|
|
|
'Ticket' => 'gQF27zwAAAAAAAAAAS5odHRwOi8vd2VpeGluLnFxLmNvbS9xLzAyWnppdHhWTlRjOEcxTlBpTE5BY2IAAgRjBO9kAwQQDgAA',
|
|
|
|
];
|
|
|
|
|
|
|
|
@file_put_contents(storage_path('logs/lyh_error.log'), var_export($message, true) . PHP_EOL, FILE_APPEND);
|
|
|
|
>>>>>>> cb4013abb5967a24f5c482c21f3a93a48789077d
|
|
|
|
return "<xml>
|
|
|
|
<ToUserName><![CDATA[$message->FromUserName]]></ToUserName>
|
|
|
|
<FromUserName><![CDATA[$message->ToUserName]]></FromUserName>
|
...
|
...
|
|