Asking for help: Put an h5 website into three different official accounts, and the source of the official accounts is displayed in the background. Please give me some ideas.

WBOY
Release: 2023-03-03 09:32:01
Original
1967 people have browsed it

I met a requirement: I made an h5 website and put it in different official accounts (that is, click on the custom menu bar of the official account). I need to record the source of the official account (that is, record the order placed from different official accounts). Which official account placed the order specifically? Do you have any ideas?

Reply content:

I met a requirement: I made an h5 website and put it in different official accounts (that is, click on the custom menu bar of the official account). I need to record the source of the official account (that is, record the order placed from different official accounts). Which official account placed the order specifically? Do you have any ideas?

Just add a get parameter after the connection to identify the source

I don’t know exactly what payment method you use. The data sent by the callback after successful WeChat payment has an appid that is the appid of the official account. Platforms can be distinguished

When configuring payment on the website, you can only bind one official account, so it has nothing to do with which official account is bound to the payment. Wherever it is linked, payment will be made to one account, and the official account payment page must be configured. Each account (public account) No.) It seems that only three websites can be configured, so it has nothing to do with this. But how the user opens the page can be obtained. Open the page through
https://mp.weixin.qq.com/wiki...
The interface obtains the openid. Each user corresponds to the openid of each public account. It is unique, and you can determine the source of which public account.

Related labels:
php
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!