|
@@ -7,16 +7,18 @@ $timestamp = $_GET["timestamp"];
|
|
|
$nonce = $_GET["nonce"];
|
|
|
$echostr = $_GET["echostr"];
|
|
|
|
|
|
-echo("{$echostr}");
|
|
|
+echo ('SUCCESS');
|
|
|
|
|
|
-$token = 'stanleykinghelloworld';
|
|
|
-$tmpArr = [$token, $timestamp, $nonce];
|
|
|
-sort($tmpArr, SORT_STRING);
|
|
|
-$tmpStr = implode( $tmpArr );
|
|
|
-$tmpStr = sha1( $tmpStr );
|
|
|
-
|
|
|
-if( $tmpStr == $signature ){
|
|
|
- return true;
|
|
|
-}else{
|
|
|
- return false;
|
|
|
-}
|
|
|
+//echo("{$echostr}");
|
|
|
+//
|
|
|
+//$token = 'stanleykinghelloworld';
|
|
|
+//$tmpArr = [$token, $timestamp, $nonce];
|
|
|
+//sort($tmpArr, SORT_STRING);
|
|
|
+//$tmpStr = implode( $tmpArr );
|
|
|
+//$tmpStr = sha1( $tmpStr );
|
|
|
+//
|
|
|
+//if( $tmpStr == $signature ){
|
|
|
+// return true;
|
|
|
+//}else{
|
|
|
+// return false;
|
|
|
+//}
|