系统繁忙的原因看34楼。
这样调试看看
OpenID = e.Cookies("openid")
Dim dr As DataRow = DataTables("雇主").SQLFind("openid ='" & Openid & "'") '根据openid找出对应的行
MsgBox("tjr= " & (e.GetValues.ContainsKey("tjr"))) '-----------------------------------------------------------------------------
If (dr Is Nothing OrElse UserName = "" OrElse OpenID = "") andalso e.GetValues.ContainsKey("tjr") Then '空
Dim url As String = e.Request.URL.ToString
' MsgBox(url) '--------------------------------------------------------------------------------------------
' msgbox("判断名 openid 行 空", 64, "提示")
Dim ul As String = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=w.................&redirect_uri=http%3a%2f%2fwww.123.com&response_type=code&scope=snsapi_userinfo&state=" & UrlEncode(e.GetValues("tjr")) & "#wechat_redirect"
MsgBox(ul ) '--------------------------------------------------------------------------------------------
sb.Append("<meta http-equiv='Refresh' c>") '跳转到授权链接
e.WriteString(sb.ToString)
' msgbox("跳转授权链接", 64, "提示")
Return
End If
End If