您的位置:首页技术文章
文章详情页

微信$data =file_get_contents(’php://input’)取不到数据,抓包

【字号: 日期:2022-06-01 09:35:53浏览:76作者:猪猪

问题描述

$timestamp = $_GET['timestamp'];

$nonce = $_GET["nonce"];

$msg_signature = $_GET['msg_signature'];

$encrypt_type = $_GET['encrypt_type'];

$openid=$_GET['openid'];

$xmldata =file_get_contents('php://input');//抓包显示有数据,但是获取不了。求大神。

问题解答

回答1:

穿回来是JSON数据好像,你json_decode就可以了

回答2:

好像还要json_decode

标签: 微信
相关文章: