dongpu1881 2019-07-06 19:07
浏览 31

寻找一种方法来创建链接到2个独立数据库的动态QR码

I'm a coding noob and I'm brainstorming on a project for work. I need a way to connect a dynamic QR code to two separate databases.

Here's how it would work:

  • User signs up and enters personal information: Phone#, address, etc. (Database A) Let's call this person the owner.
  • A unique dynamic QR is made for that particular user, updating itself if the account information ever changes (Database A)
  • An authorized device scans it (only authorized devices should be able to activate the QR codes) and the following information is recoded automatically: location, time, and date (Database B)
  • QR code owner is notified of scan via text (Database A)

Any help or advice would be very much appreciated, thank you so much!

  • 写回答

1条回答 默认 最新

  • douzhi3586 2019-07-06 19:43
    关注

    You are mixing many concepts. A QR code is just a mechanism to render data, so to simplify your problem, just ignore it and assume that instead of a QR code, you have a string representing the record on dB A. If record in DB A changes, if you try to view it, of course it is changed.

    Now the third point is unclear, if the qrcode is visible after accessing a secured page for example, you can log to DB B the information you can gather from the authorized user, but even if shown you can't tell if the qrcode was scanned or not.

    Instead if you are the "owner" of the application which is meant to be used to scan the QRcode, then there after a successful scan, I would send for example an Ajax request to your service responsible to manage the data in DB B.

    Whatever component you use to store data in DB B, can be used to invoke an action to ask another component to notify the user associated to the QR, for example using signalR.

    评论

报告相同问题?

悬赏问题

  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 基于卷积神经网络的声纹识别
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 CSAPPattacklab
  • ¥15 一直显示正在等待HID—ISP