微信公众号测试提价token重提示 请求URL超时
服务器端代码如下:
Select Case e.path
Case "wefox" ,"wefox1"
Dim token = "weixinlemon" '必须和设置的Token相同
'messagebox.Show("weixinlemon")
Dim signature As String = e.Values("signature")
Dim timestamp As String = e.Values("timestamp")
Dim nonce As String = e.Values("nonce")
Dim echostr As String = e.Values("echostr")
Dim aryTmp() As String = {token,timestamp,nonce}
Array.Sort(aryTmp)
Dim strTmp As String = String.Join("", aryTmp)
strTmp = Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(strTmp, "SHA1")
If signature = strTmp.ToLower() Then
e.WriteString(echostr)
End If
End Select
查看了一下微信帮助文档 写的如下
需要将 e.WriteString(echostr) 改成 return true; ?
找不到原因了 请蓝老师指点 谢谢。