• 请不要在回答技术问题时复制粘贴 AI 生成的内容
c0py7hat
V2EX  ›  程序员

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

  •  
  •   c0py7hat · Oct 24, 2020 · 952 views
    This topic created in 2035 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   ·   2744 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 12:46 · PVG 20:46 · LAX 05:46 · JFK 08:46
    ♥ Do have faith in what you're doing.