search

Home  >  Q&A  >  body text

WeChat $data =file_get_contents('php://input') cannot get the data and capture the packet

$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' );//The packet capture shows that there is data, but it cannot be obtained. Ask God.

手机用户1576494449手机用户15764944491863 days ago971

reply all(2)I'll reply

  • 自

    2020-01-03 11:16:27

    It seems that the JSON data that comes back is just json_decode

    reply
    0
  • 自

    2020-01-03 11:15:49

    It seems we need json_decode

    reply
    0
  • Cancelreply