我以前能提交成功现在为什么不行了?
<?php
namespace Home\Controller;
use Common\Model\ShowModel;
use Think\Controller;
class IndexController extends Controller {
public function index(){
$nonce =$_GET['nonce'];
$token ='18817797900';
$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 $echostr;
exit;
}
}
public function reponseMsg(){
$postArr = $GLOBALS['HTTP_RAW_POST_DATA'];
}
}