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

美团外卖商家链接是怎样做到经常变动的,如 http://waimai.meituan.com/restaurant/144831100206798332,最后的参数( 144831100206798332)一直在变化,这是什么原理?

  •  1
     
  •   Jessss · May 25, 2017 · 5740 views
    This topic created in 3456 days ago, the information mentioned may be changed or developed.
    2 replies  •  2017-05-26 10:22:46 +08:00
    bazingaterry
    bazingaterry
    May 25, 2017 via iPhone
    1
    反爬虫呗,另外美团外卖有一个固定的 ID,叫 poi id 还是啥来着。
    Morriaty
    Morriaty
    May 26, 2017
    2
    假设一个最简单的

    ```
    fake_id = id + currentTime()
    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2347 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 00:16 · PVG 08:16 · LAX 16:16 · JFK 19:16
    ♥ Do have faith in what you're doing.