一直提示失败
try {
$signature = $_GET["signature"];
$timestamp = $_GET["timestamp"];
$nonce = $_GET["nonce"];
$token = 'libertines';
$tmpArr = array($token, $timestamp, $nonce);
sort($tmpArr, SORT_STRING);
$tmpStr = implode( $tmpArr );
$tmpStr = sha1( $tmpStr );
if( $tmpStr == $signature ){
// return true;
return $_GET["echostr"];
}else{
return false;
}
} catch (\Exception $th) {
Log::record('测试日志信息');
}