以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  网页授权通过后  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=132326)

--  作者:石四
--  发布时间:2019/3/19 21:01:00
--  网页授权通过后

如何进入网页?

 If e.host = "wexin.foxtable.com" Then \'需要授权才能访问的域名

 ...............
   
    If Verified = False Then
        sb.AppendLine(
"
你无权访问本系统")
    Else
        sb.AppendLine(
"
欢迎" & UserName & " , <a href=\'http://wexin.foxtable.com\'>刷新页面</a>")
    End If
    e.WriteString(sb.ToString)

End
If

欢迎页面出现了,刷新页面又来一次授权,打转转进不去呢,这里<a href=\'http://wexin.foxtable.com\'>刷新页面</a>")换成另外项目的页面能进去,比如<a href=\'http://uyht.foxtable.com\'>刷新页面</a>")。

难道授权需单独一个项目?


--  作者:有点蓝
--  发布时间:2019/3/19 21:30:00
--  
1、可以设置只有主页或者登陆页面才需要授权、其他页面只需要判断cookie是否有openid的值即可

2、
If Verified = False Then
    sb.AppendLine("你无权访问本系统")
Else
    Select Case e.Path
        Case "index1.htm"
            Functions.Execute("index1",e)
        Case "index2.htm"
            Functions.Execute("index2",e)
        Case "index3.htm"
            Functions.Execute("index3",e)
……
    End Select
End If

--  作者:石四
--  发布时间:2019/3/19 22:02:00
--  
页面进去了。但是有扫码的页面调不出,可能和自定义函数掏嵌有关。明天再试
--  作者:有点甜
--  发布时间:2019/3/20 9:29:00
--  
以下是引用石四在2019/3/19 22:02:00的发言:
页面进去了。但是有扫码的页面调不出,可能和自定义函数掏嵌有关。明天再试

 

请使用web调试工具,测试报什么错

 

https://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1455784140