<?php
$xml = simplexml_load_string($GLOBALS['HTTP_RAW_POST_DATA']);
$arr = array( 'appid'=> (string)$xml->AppId, 'appkey'=>$appkey, 'issubscribe'=> (string)$xml->IsSubscribe, 'noncestr'=> (string)$xml->NonceStr, 'openid'=> (string)$xml->OpenId, 'timestamp'=> (string)$xml->TimeStamp ); $sign = sha1( http_build_query($arr) ); if( $sign == $xml->AppSignature){ echo "success"; } ?>

 

相关文章:

  • 2021-12-03
  • 2021-11-07
  • 2022-12-23
  • 2022-12-23
  • 2021-12-01
  • 2021-08-04
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2021-10-17
  • 2021-09-16
  • 2021-11-11
  • 2022-12-23
  • 2021-11-17
  • 2022-02-10
相关资源
相似解决方案