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:
- Because the. NET Framework environment on the server is only 2.0 and 4.0, my project uses 3.5.
- 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)
- There is no log, and finally a log4net log is added.
Through this project, recalled the following several points:
- XML operations
- Configure Log4net
Summarize:
- The length of the URL is limited.
- 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.