QR Cod.

Source: Internet
Author: User
Tags log4net

Late April, a feature was received.

The customer gave three URLs to jump to the connection via a QR code. Each URL corresponds to 10 QR code, which is 3*10=30 QR code, and each QR code will have its own number. Customer recommended to generate QR code URL is: www.liantu.com. Because the original project can not move, so can only create new website, to jump. What I need to do is, when the user scans the QR code, the database records the QR code number, the time, the IP and the URL to jump to, and then jumps to the corresponding URL.

At first, the idea was to generate a QR code with the URL and code number as a parameter, and later, leader said that the URL would need to be stored in an XML file or set, and not be placed directly in the address bar.

There are a few issues when the feature is deployed:

  1. Because the. NET Framework environment on the server is only 2.0 and 4.0, my project uses 3.5.
  2. The project changed the profile properties when it was written, resulting in a project deployment that could not be easy to find configuration files. (Typically, the properties of the configuration file do not change)
  3. There is no log, and finally a log4net log is added.

Through this project, recalled the following several points:

  1. XML operations
  2. Configure Log4net

Summarize:

  1. The length of the URL is limited.
  2. The smaller project also configures log.

Originally wanted to paste on their own code, later thought, or forget, because now online a lot of code, do not have to write their own, what to use, search a bit on it.

QR Cod.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.