After more than a year, the last step of the ticket-grabbing demo tricked by a friend was finally completed, and tickets were successfully generated on January 9, 2014.
The demo was only tested by myself and was not tested during the peak period. The code quality is very poor because it was rushed and last year's template was applied without using design patterns.
12306 The ticket grabbing tool code has the following BUG:
1) Code usage. Net4.5 events, if you use students with 4.0 or below, please change the events according to the error prompts. Two versions (.net4.0.net4.5) have been uploaded.
2) The functions of adding and refreshing frequently used contacts are missing and the buttons are blocked. Please add it on the official website and log in to the software again to refresh.
3) The verification code is entered manually and does not support automatic recognition. The reasons for not doing it are as follows: 1. I am too lazy, 2. The verification code changes frequently to prevent it from becoming a formula calculation, Chinese recognition and other special circumstances.
Time was short, and the overall structure of the code was from last year. The code written was rubbish. No design patterns were used. It was only based on purpose and did not consider any issues such as efficiency, compatibility, security, maintainability, etc. Experts, please take a detour and don't spray, thank you.
Note: This source code is for learning only, please do not use it to grab tickets.