如何生成特定人员才能识别的带参小程序码?

小程序 文章 2020-08-06 09:21 599 0 全屏看文

AI助手支持GPT4.0

如何生成特定人员才能识别的带参小程序码?How to generate a small program code with parameters that can only be recognized by a specific person?

如何生成特定人员才能识别的带参小程序码?

背景:一个检票的小程序。用户购买入场券,检票员扫码检验。

需求描述:

购买后生成 入场券 二维码(小程序码)

  1. 检票员使用 微信扫码,扫描二维码(小程序码) 自动跳转到小程序并查验二维码有效性。
  2. 普通用户扫描二维码(小程序码),则不跳转至此小程序。

问题:如何生成特定人员才能识别的带参小程序码?

Background: a small program for checking in. When the user purchases the ticket, the ticket inspector scans the code for inspection. Demand Description: after purchase, the ticket two-dimensional code (small program code) is generated, and the ticket inspector uses wechat to scan the code, scan the two-dimensional code (small program code) to automatically jump to the small program and check the validity of the two-dimensional code. Ordinary users scan two-dimensional code (applet code), then do not jump to this small program. Question: how to generate a small program code with parameters that can be recognized by a specific person?

回答:

garField:

第一步改改就行了,检票员先打开小程序,用小程序扫码。

验票的时候也验一下检票员的身份。

จุ๊บ:

只要生成小程序码就都可以跳转,只是跳转之后的逻辑需要处理而已。你可以区分用户是普通用户还是检票员啊,普通用户扫码跳转之后给提示就行了,检票员才进行后面业务逻辑处理

angel:

我都是后端php生成的带参数的小程序二维码 。网上有很多写好的https://www.jianshu.com/p/c975232706b0

citizen four:

用户分组

-EOF-

AI助手支持GPT4.0