signature.php 559 B

12345678910111213141516171819202122232425
  1. <?php
  2. //Log::record("This is signatrue file.");
  3. //
  4. //$signature = $_GET["signature"];
  5. //$timestamp = $_GET["timestamp"];
  6. //$nonce = $_GET["nonce"];
  7. //$echostr = $_GET["echostr"];
  8. $data = json_encode($_POST);
  9. Log::record("signature data : {$data}",Log::DEBUG);
  10. echo ('SUCCESS');
  11. //echo("{$echostr}");
  12. //
  13. //$token = 'stanleykinghelloworld';
  14. //$tmpArr = [$token, $timestamp, $nonce];
  15. //sort($tmpArr, SORT_STRING);
  16. //$tmpStr = implode( $tmpArr );
  17. //$tmpStr = sha1( $tmpStr );
  18. //
  19. //if( $tmpStr == $signature ){
  20. // return true;
  21. //}else{
  22. // return false;
  23. //}