protected function checkToken()
    {
        $query = $this->query;
        $signature = $this->sign(
            $this->token,
            isset($query['timestamp']) ? $query['timestamp'] : '',
            isset($query['nonce']) ? $query['nonce'] : ''
        );
        return isset($query['signature']) && $signature === $query['signature'];
    }
protected function checkToken()
    {
        $query = $this->query;
        $signature = $this->sign(
            $this->token,
            isset($query['timestamp']) ? $query['timestamp'] : '',
            isset($query['nonce']) ? $query['nonce'] : ''
        );
        return isset($query['signature']) && $signature === $query['signature'];
    }
protected function checkToken ( ) { $ query = $ this -> query ; $ signature = $ this -> sign ( $ this -> token , isset ( $ query [ 'timestamp' ] ) ? $ query [ 'timestamp' ] : '' , isset ( $ query [ 'nonce' ] ) ? $ query [ 'nonce' ] : '' ) ; return isset ( $ query [ 'signature' ] ) && $ signature === $ query [ 'signature' ] ; }
Check if the WeChat server signature is valid
Check if the WeChat server signature is valid