Home >Backend Development >PHP Tutorial >How does WeChat's built-in browser know whether it is opened from Moments or a chat window?

How does WeChat's built-in browser know whether it is opened from Moments or a chat window?

WBOY
WBOYOriginal
2016-08-18 09:16:111349browse

The same link
1. Send the link as content to Moments,
2. Send the link to the chat window.
How to know which side clicked the link, and distinguish whether it is the Moments or the chat window

Reply content:

The same link
1. Send the link as content to Moments,
2. Send the link to the chat window.
How to know which side clicked the link, and distinguish whether it is the Moments or the chat window

You can set the shared page to have different parameters when being shared to distinguish it.

After testing, it was found that clicking on the circle of friends will bring parameters
$url?from=timeline&isappinstalled=0

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn