微信公众平台接口
vb.net吧
全部回复
仅看楼主
level 2
为什么怎么都通不过验证呢,高手来看看,这段代码究竟有何问题?
Private Function CheckSignature() As Boolean
Dim signature As String = Request.QueryString("signature").ToString()
Dim timestamp As String = Request.QueryString("timestamp").ToString()
Dim nonce As String = Request.QueryString("nonce").ToString()
Dim ArrTmp As String() = {Token, timestamp, nonce}
Array.Sort(ArrTmp) '字典排序
Dim tmpStr As String = String.Join("", ArrTmp)
tmpStr = FormsAuthentication.HashPasswordForStoringInConfigFile(tmpStr, "SHA1") tmpStr = tmpStr.ToLower()
If tmpStr = signature Then Return True Else Return False End If
End Function
Private Sub Valid()
Dim echoStr As String= Request.QueryString("echoStr").ToString()
If CheckSignature() Then
If Not String.IsNullOrEmpty(echoStr) Then
Response.Write(echoStr )
Response.[End]()
End If
End If
End Sub
2013年04月19日 09点04分 1
level 1
不知道LZ解决问题没有
2014年03月17日 09点03分 2
没,早就放弃了,搞了也没用
2014年04月02日 12点04分
level 12

2014年04月11日 10点04分 3
level 12
2014年11月10日 08点11分 4
1