The invention discloses a code-scanning login method based on a parameter-containing two-dimensional code of a wechat official account. The method includes the following steps that 1, an application in a weak interaction terminal builds socket connection with a server terminal; 2, a server generates a unique socketId to return the unique socketId to the terminal through a communication channel; 3, the terminal obtains the socketId and the unique deviceId of equipment and requests the parameter-containing two-dimensional code from the server terminal; 4, the server terminal makes the socketId, and the deviceId bound with a scene Id of the two-dimensional code, stores the socketId and the deviceId into a database or a cache, and returns the parameter-containing two-dimensional code to the terminal; 5, a user uses the wechat for scanning the code; 6, the server terminal obtains a user code-scanning event parameter fed back by the wechat official account, the socketId is obtained from the code-scanning event parameter, according to the socketId and the deviceId bound with the scene Id, logged-in information and skip parameters are fed back to the terminal, and meanwhile, and according to the user openid in the code-scanning event parameter, operation prompt information is pushed to the user. The rapid login method is achieved, the user is guided to perform complex operation on a mobile phone and other mobile devices, and meanwhile the Wechat official account is automatically subscribed.