V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
c0py7hat
V2EX  ›  程序员

如何判断在某 APP 外打开网站后跳转

  •  
  •   c0py7hat · Oct 24, 2020 · 920 views
    This topic created in 2015 days ago, the information mentioned may be changed or developed.
    如题。

    比如在 XXX APP 发送了个网站,打开后内容是 1.html 的内容,除这个 APP 外打开后显示的内容都是 2.html 的内容,包括手机,电脑浏览器。

    这种可以通过 UA 判断麽,还是可以写死,除了某 APP 其他都是 2.html 的内容
    2 replies    2020-10-30 12:14:37 +08:00
    xiyuesaves
        1
    xiyuesaves  
       Oct 28, 2020
    用 cookie 啊,服务器拿到请求根据 cookie 值来跳转就行了
    c0py7hat
        2
    c0py7hat  
    OP
       Oct 30, 2020
    @xiyuesaves 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2494 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 10:07 · PVG 18:07 · LAX 03:07 · JFK 06:07
    ♥ Do have faith in what you're doing.