Jelajahi Sumber

add to locla

stanley-king 4 tahun lalu
induk
melakukan
3abe011a88
1 mengubah file dengan 14 tambahan dan 12 penghapusan
  1. 14 12
      mobile/signature.php

+ 14 - 12
mobile/signature.php

@@ -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;
+//}