打印出$_GET为空值
我想看$_GET的值,可是传递过来的值为空,不知道怎么回事啊,求解答~
public function index1(){
dump($_GET);die;
$nonce = $_GET['nonce'];
$token = '6fJHwzWWTMlMiuvR5QaqP';
$timestamp = $_GET['timestamp'];
$echostr = $_GET['echostr'];
$signature = $_GET['signature'];
$array = array();
$array = array($nonce,$timestamp,$token);
sort($array);
$str = sha1(implode($array));
if($str == $signature){
echo 123;
exit;
}
}