public function show()
{
//echo 'wjp';die;
# 接收的数据
$signature = I('get.signature');
$timestamp = I('get.timestamp');
$nonce = I('get.nonce');
$token = 'weixin';
$temp = [$token, $timestamp, $nonce];
sort($temp, SORT_STRING);
$tmpstr=implode('',$temp);
$user_signature = sha1($tmpstr);
if($user_signature==$signature)
{
echo I('get.echostr');
exit;
}
# 校验合法性
// return $this->valid() ? I('get.echostr') : '';
}
{
//echo 'wjp';die;
# 接收的数据
$signature = I('get.signature');
$timestamp = I('get.timestamp');
$nonce = I('get.nonce');
$token = 'weixin';
$temp = [$token, $timestamp, $nonce];
sort($temp, SORT_STRING);
$tmpstr=implode('',$temp);
$user_signature = sha1($tmpstr);
if($user_signature==$signature)
{
echo I('get.echostr');
exit;
}
# 校验合法性
// return $this->valid() ? I('get.echostr') : '';
}