1
arzusyume 2014-11-13 17:57:03 +08:00
private function _valid()
{ $signature = $_GET["signature"]; $timestamp = $_GET["timestamp"]; $nonce = $_GET["nonce"]; $token = $this->account['token']; $tmpArr = array($token, $timestamp, $nonce); sort($tmpArr); $tmpStr = implode( $tmpArr ); $tmpStr = sha1( $tmpStr ); if( $tmpStr == $signature ){ echo $_GET['echostr']; }else{ echo 0; } } 翻以前的代码反倒一段这个, 不知道现在规则变了没 |