Foxtable(狐表)用户栏目专家坐堂 → 如何控制域名子目录的详情授权?


  共有2731人关注过本帖树形打印复制链接

主题:如何控制域名子目录的详情授权?

帅哥哟,离线,有人找我吗?
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106081 积分:539504 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/10/13 11:50:00 [显示全部帖子]

参考:http://www.foxtable.com/mobilehelp/topics/0006.htm
如:
……
If e.host = "www.abc.com" Then '授权测试
    Select Case e.Path
        Case "
list\a.htm","list\b.htm"
    Dim UserName As String
    Dim OpenID As String
……
    Else
        UserName = e.Cookies("username"'
cookie获取用户名和openid
        OpenID = e.Cookies("openid")
        If userName = "" OrElse OpenID = "" Then
            Dim ul As String  = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx8acdb7df5beb68fd&redirect_uri=http%3a%2f%2fwexin.foxtable.com
%2f" & UrlEncode(e.Path.replace("\","/")) & "&response_type=code&scope=snsapi_userinfo&state=123#wechat_redirect"
            sb.Append("<meta http-equiv='Refresh' c>"'跳转到授权链接
            e.WriteString(sb.ToString)
            Return
        End If
    End If

 回到顶部