Server and application login method

By introducing the course service subsystem and account subsystem into the server, automatic registration and correction of account data that have not been successfully stored solve the problems of complicated login and login failure in existing applications, and improve the user experience and success rate.

CN114065159BActive Publication Date: 2024-08-23青岛聚看云科技有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111366844.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-18
Publication Date
2024-08-23
Estimated Expiration
2041-11-18

AI Technical Summary

Technical Problem

The existing application login method is complicated. Users who have not registered an account must first register and then log in, which affects the user experience. Moreover, the login fails because the subsystem data is not successfully stored, and the user needs to register again.

Method used

The server includes a course service subsystem and an account subsystem, which automatically registers accounts when users enter account information and verification information. If one subsystem does not store successful data, the other subsystem will re-obtain the data during the login process to avoid login failures.

Benefits of technology

It reduces user operation steps, improves the login success rate, improves the user login experience, and solves the problem of login failure caused by failure to store subsystem data successfully.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114065159B
    Figure CN114065159B
Patent Text Reader

Abstract

The embodiment of the present application provides a server and application login method, the server includes a course service subsystem and an account subsystem, the course service subsystem is configured to: receive a login request from a display device; in response to the login request, if the user data of the account information is queried in the course database of the course service subsystem, send a login request to the account subsystem, if an error code indicating that the user does not exist is received and returned by the account subsystem, the error code indicating that the user does not exist is not returned to the display device, a registration request is sent to the account subsystem, and after receiving the login parameters, the login parameters are returned to the display device; in response to the login request, if the user data of the account information is not queried in the course database of the course service subsystem, a registration request is sent to the account subsystem, and after receiving the login parameters returned by the account subsystem, the login parameters are returned to the display device. The embodiment of the present application improves the user experience of application login.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of server technology, and in particular to a server and application login method. Background Art

[0002] Nowadays, some applications have a login method of registering first and then logging in. If the user has not registered an account for the application before this login, he / she needs to register an account at the registration entrance of the application and then log in at the login entrance of the application. If the user has registered an account for the application before this login, he / she can directly enter the account and password at the login entrance of the application to log in. For this login method, if the user has not registered an account for the application before this login, he / she needs to register first to log in to the application, which makes the process of user login to the application more cumbersome and affects the user's login experience. Summary of the invention

[0003] In order to solve the technical problem of complex application login operations, the present application provides a server and application login method.

[0004] In a first aspect, the present application provides a server, the server comprising a course service subsystem and an account subsystem, the course service subsystem being configured as follows:

[0005] Receiving a login request from a display device, wherein the login request includes account information and verification information;

[0006] In response to the login request, if the user data of the account information is queried in the course database of the course service subsystem, the login request is sent to the account subsystem, if an error code indicating that the user does not exist is received from the account subsystem, the error code indicating that the user does not exist is not returned to the display device, a registration request is sent to the account subsystem so that the account subsystem performs account registration, the login parameters are obtained and returned to the course service subsystem, and after receiving the login parameters, the login parameters are returned to the display device so that the display device determines that the login is successful according to the received login parameters, and the login parameters include a user identity identifier and a login token;

[0007] In response to the login request, if the user data of the account information is not found in the course database of the course service subsystem, the registration request is sent to the account subsystem, and after receiving the login parameters returned by the account subsystem, the login parameters are returned to the display device.

[0008] In some embodiments, the course service subsystem is further configured to:

[0009] If no user data of the account information is found, before sending the registration request to the account subsystem, an account corresponding to the account information is also created;

[0010] After the account is created, if a login request containing the account information is received from another display device, a prompt message indicating that the account has been occupied is sent to the other display device.

[0011] In some embodiments, creating an account corresponding to the account information includes:

[0012] Create an account with an account name corresponding to the account information;

[0013] Setting the user identity of the account to a default value;

[0014] The value of the user identity is updated by the course service subsystem according to the login parameters returned by the account subsystem.

[0015] In some embodiments, the server further includes an account database, and an error code indicating that the user does not exist is generated when the account subsystem cannot find registration data corresponding to the account information in the account database.

[0016] In some embodiments, the course service subsystem is further configured to:

[0017] In response to the login request, if the user data of the account information is found, the login request is sent to the account subsystem, and if the login parameters returned by the account subsystem are received, the login parameters are returned to the display device.

[0018] In a second aspect, the present application provides a server, the server comprising a course service subsystem and an account subsystem, the account subsystem being configured as follows:

[0019] Receiving a registration request from the course service subsystem, wherein the registration request includes account information and verification information;

[0020] In response to the registration request, if the login parameters of the account information are found in the account database of the account subsystem, the login parameters are sent to the course service subsystem, and no error code indicating that the registration has been completed is fed back to the course service subsystem, so that the course service subsystem determines that the login is successful according to the received login parameters, wherein the login parameters include a user identity and a login token;

[0021] In response to the registration request, if the login parameters of the account information cannot be found in the account database of the account subsystem, account registration is performed to obtain and return the login parameters to the course service subsystem.

[0022] In a third aspect, the present application provides an application login method for a course service subsystem in a server, wherein the server further includes an account subsystem, and the application login method includes:

[0023] Receiving a login request from a display device, wherein the login request includes account information and verification information;

[0024] In response to the login request, if the user data of the account information is queried in the course database of the course service subsystem, the login request is sent to the account subsystem, if an error code indicating that the user does not exist is received from the account subsystem, the error code indicating that the user does not exist is not returned to the display device, a registration request is sent to the account subsystem so that the account subsystem performs account registration, the login parameters are obtained and returned to the course service subsystem, and after receiving the login parameters, the login parameters are returned to the display device so that the display device determines that the login is successful according to the received login parameters, and the login parameters include a user identity identifier and a login token;

[0025] In response to the login request, if the user data of the account information is not found in the course database of the course service subsystem, the registration request is sent to the account subsystem, and after receiving the login parameters returned by the account subsystem, the login parameters are returned to the display device.

[0026] In a fourth aspect, the present application provides an application login method for an account service subsystem in a server, wherein the server further includes a course service subsystem, and the application login method includes:

[0027] Receiving a registration request from the course service subsystem, wherein the registration request includes account information and verification information;

[0028] In response to the registration request, if the login parameters of the account information are found in the account database of the account subsystem, the login parameters are sent to the course service subsystem, and no error code indicating that the registration has been completed is fed back to the course service subsystem, so that the course service subsystem determines that the login is successful according to the received login parameters, wherein the login parameters include a user identity and a login token;

[0029] In response to the registration request, if the login parameters of the account information cannot be found in the account database of the account subsystem, account registration is performed to obtain and return the login parameters to the course service subsystem.

[0030] The beneficial effects of the server and application login method provided by this application include:

[0031] In the embodiment of the present application, when logging into the application, if the user has not registered an account with the application, the user only needs to enter the correct account information and verification information. The server can automatically register the account according to the account information entered by the user, and then return the login parameters generated during the registration to the display device. The user does not need to manually register and then log in, which reduces the user's operation steps when logging in to the application; and, if the user has registered an account when logging into the application before, but one of the subsystems has not successfully stored the data of the account, the present application controls the subsystem that has not successfully stored the account data to re-acquire the account data during the current user login process, thereby correcting the previous registration and solving the problem that the server returns a message of failed login to the display device due to the failure to store the data of a certain subsystem during the previous account registration, resulting in the user needing to register again, thereby improving the login success rate and enhancing the user's application login experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0033] Figure 1 An operation scenario between a display device and a control device according to some embodiments is shown;

[0034] Figure 2 A schematic diagram of a login interface according to some embodiments is shown;

[0035] Figure 3 A schematic diagram showing a flow chart of an application login method according to some embodiments;

[0036] Figure 4 A schematic diagram showing a flow chart of an application login method according to some embodiments;

[0037] Figure 5 : shows a timing diagram of an application login process according to some embodiments;

[0038] Figure 6 A timing diagram of the application login process according to some embodiments is shown in FIG. DETAILED DESCRIPTION

[0039] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0040] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0041] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0042] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0043] The display device provided in the embodiments of the present application may have various implementation forms, for example, it may be a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, etc. Figure 1 This is a specific implementation of the display device of the present application.

[0044] Figure 1 FIG. 1 is a schematic diagram of an operation scenario between a display device and a control device according to an embodiment. Figure 1 As shown, the user can operate the display device 200 through the smart device 300 or the control apparatus 100 .

[0045] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the display device 200 is controlled wirelessly or wired. The user may control the display device 200 by inputting user commands through buttons on the remote controller, voice input, control panel input, etc.

[0046] In some embodiments, a smart device 300 (such as a mobile terminal, a tablet computer, a computer, a laptop computer, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on the smart device.

[0047] In some embodiments, the display device may not use the above-mentioned smart device or control device to receive instructions, but may receive user control through touch or gestures.

[0048] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the display device 200, or the user's voice command control can be received through a voice control device set outside the display device 200.

[0049] In some embodiments, the display device 200 also communicates data with the server 400. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. The server 400 may be one cluster or multiple clusters, and may include one or more types of servers.

[0050] In some embodiments, multiple applications may be installed on the display device 200 , and the application management interface of the display device may display the multiple applications. The user may click on one of the applications to experience the functions of the application.

[0051] In some embodiments, some applications on the display device 200 support a login mode of mobile phone number plus verification code. These applications set the user's mobile phone number as a data to determine the user's identity, and can distinguish different users by mobile phone number. This login mode uses the verification code as the verification information for application login instead of the password as the verification information for application login, and does not require the user to remember the password, which can improve the convenience of login.

[0052] In some embodiments, when a user enters an application, an application that supports the above login mode may display a login interface, see Figure 2 , is a schematic diagram of a login interface according to some embodiments, such as Figure 2 As shown, the login interface can display the application name, the account input box control 501, the verification information input box control 502 and the verification information acquisition control 503. For example, the application name is XXXX. The user can enter the mobile phone number in the account input box control 501, and then click the verification information acquisition control 503 to trigger the control. The display device 200 is triggered according to the verification information acquisition control 503, and requests the server to send the verification information of the corresponding user input account.

[0053] It should be noted that, in actual applications, the account input by the user can be any of the common account forms such as mobile phone number, email address, user nickname, etc., and the verification information can be in the form of verification code, etc. Exemplarily, the account input by the user is a mobile phone number, the account input box control 501 can be a mobile phone number input box control, the verification information input box control can be a verification code input control, and the verification information acquisition control can be a verification code acquisition control.

[0054] In some embodiments, after receiving the verification information request of the display device, the server can generate a verification code and send it to the user's smart device 300 equipped with the mobile phone number, such as a mobile phone. The user can read the verification code on the smart device 300 and input it into the verification information input box control 502 on the display device 200.

[0055] In some embodiments, after receiving the verification code input by the user, the display device 200 may send the mobile phone number and the verification code to the server for verification by the server.

[0056] In some embodiments, after receiving the mobile phone number and the verification code, the server can determine whether the mobile phone number has been registered. If not, an account is registered for the mobile phone number, and then the verification code is verified. If the verification is successful, a message indicating a successful login is sent to the display device, so that the user does not need to perform a registration operation before logging in, but the registration operation is automatically performed by the server; if it has been registered, a verification code is verified, and if the verification is successful, a message indicating a successful login is sent to the display device.

[0057] In some embodiments, the functions of some applications are relatively complex, and multiple functional systems associated with these applications are set on one or more servers, and these functional systems can be called subsystems. When a user logs in to the application for the first time, the application needs to register an account for the user first. When registering an account, it involves data interaction of the subsystems. It may happen that the data call of a subsystem fails, resulting in registration failure. At this time, the server will return a login failure message to the display device 200, causing the user to need to enter the mobile phone number again or even multiple times or re-obtain the verification code to log in again, which brings a bad login experience to the user. In some embodiments, a subsystem associated with an exemplary application Yizhi Classroom on the server may include a course service subsystem and an account subsystem, wherein the account subsystem can issue a verification code. If a user successfully registers an account of the application, the course service subsystem can store some user data of the account, such as role data, and the role data can represent the identity of the creator of the account. For example, there are two types of role data, one role data represents a teacher, and the other role data represents a student. The role data of account A represents that the identity of the creator of account A is a teacher, and the role data of account B represents that the identity of the creator of account B is a student. If a user successfully registers an account for the application, the account subsystem can store some registration data of the account, such as the user ID. In some embodiments, the account subsystem not only provides account services for Yizhi Classroom, but also provides account services for other applications, such as a video player application, that is, multiple applications share an account subsystem. In this scenario, when a user logs in to an application for the first time, the account subsystem may store the user ID, but the application-specific subsystem does not have the user data of the account. For example, the registration data stored in the account subsystem is the data of the account of the display device. After the user registers an account for a display device, the Yizhi Classroom application can use the account for account management. When a user enters the Yizhi Classroom application for the first time, there will be a scene where the application-specific subsystem, such as the course service subsystem, does not store the user data of the account, but the account subsystem stores the registration data of the account. Taking Yizhi Classroom as an example, the login process is as follows: the display device sends a login request containing the user's input mobile phone number and verification code to the course service subsystem. The course service subsystem processes the login request and interacts with the account subsystem for data. Finally, it returns login parameters to the display device or returns an error code indicating a failed login. The login parameters may include customerID (user identity) and login token (token). CustomerID can also be called user ID. During the login process, one of the following scenarios may occur:

[0058] Scenario 1: Verification code verification failed.

[0059] Scenario 2: The course service subsystem can query the user data of the mobile phone number, but the account subsystem cannot query the registration data of the mobile phone number.

[0060] Scenario 3: The course service subsystem cannot query the user data of the mobile phone number, but the account subsystem can query the registration data of the mobile phone number.

[0061] Scenario 4: The verification code is successfully verified, and the course service subsystem can query the user data of the mobile phone number, and the account subsystem can query the registration data of the mobile phone number.

[0062] Among them, the reason for scenario 1 is that the user fills in the verification code incorrectly, which will cause the login to fail.

[0063] The reason for scenario 2 may be that the user has logged into the application before, but the course service subsystem has not successfully stored the user data due to network fluctuations, while the account subsystem has successfully stored the registration data of the mobile phone number; or it may be that multiple applications share an account subsystem and the user has not logged into the application.

[0064] The reason for scenario 3 is that the user has logged into the application before, but the account subsystem has not stored the successful user data due to network fluctuations and other reasons.

[0065] The reason for scenario 4 is that the user has logged in to the application before, and the course service subsystem has successfully stored the user data, and the account subsystem has also successfully stored the registration data of the mobile phone number, that is, there is no need to register an account before this login; or the user may not have logged in to the application before, and registered an account before this login. After the account registration, the course service subsystem has successfully stored the user data, and the account subsystem has also successfully stored the registration data of the mobile phone number.

[0066] In some embodiments, since the application can only log in successfully if all subsystems store the user's data, if scenarios 2 and 3 occur, the login will fail, and the course service subsystem and the account subsystem will roll back the data of the mobile phone number and prompt the user to log in again. Of course, if scenario 1 occurs, the login will also fail, and if scenario 4 occurs, the login will be successful.

[0067] In order to improve the success rate of application login, the embodiment of the present application discloses an application login method, which is applied to the course service subsystem and can still successfully log in when scenario 2 occurs. Figure 3 , the method may include the following steps:

[0068] Step S101: receiving a login request from a display device, wherein the login request includes account information and verification information.

[0069] In some embodiments, after a user clicks an application on a display device, the user can enter the login interface of the application, which can display a mobile phone number input box control and a verification code acquisition control. After the user enters a mobile phone number in the mobile phone number input box control, the user clicks the verification code acquisition control to trigger the control, and the display device is triggered according to the verification code acquisition control, and requests the server to send a verification code. The verification code is sent by the account subsystem.

[0070] In some embodiments, after the user enters a verification code on the login interface, the display device may generate a login request, which includes account information and verification information, wherein the account information may be a mobile phone number entered by the user, and the verification information may be a verification code entered by the user.

[0071] After generating a login request, the display device sends the login request to the server, and the course service subsystem in the server processes the login request.

[0072] Step S102: In response to the login request, if the user data of the account information is queried in the course database of the course service subsystem, the login request is sent to the account subsystem, if an error code indicating that the user does not exist is received from the account subsystem, the error code indicating that the user does not exist is not returned to the display device, and a registration request is sent to the account subsystem so that the account subsystem registers the account, and the login parameters are obtained and returned to the course service subsystem. After receiving the login parameters, the login parameters are returned to the display device so that the display device determines that the login is successful based on the received login parameters, and the login parameters include a user identity and a login token.

[0073] In some embodiments, the server is also provided with a database of the course service subsystem, which can be called a course database. If the course service subsystem finds the user data of the mobile phone number input by the user in the course database, such as role data, the login request can be forwarded to the account subsystem. The course service subsystem can perform data operations such as calling, adding, deleting and updating the data in the course database.

[0074] In some embodiments, after receiving the login request, the account subsystem can perform a verification code verification. If the verification is successful, it can query whether there is registration data for the mobile phone number. Specifically, it can query the user ID of the mobile phone number. If no registration data is found, it can return an error code indicating that the user does not exist to the course service subsystem.

[0075] In some embodiments, the server is also provided with a database of the account subsystem, which can be called an account database, and the account subsystem queries the user ID of the mobile phone number in the database. The account subsystem can perform data operations such as calling, adding, deleting and updating the data in the account database.

[0076] In some embodiments, if the course service subsystem receives an error code indicating that the user does not exist returned by the account subsystem, the error code indicating that the user does not exist is not returned to the display device to avoid the user from logging in again. The course service subsystem can determine that it has queried the user data of the mobile phone number without querying again based on the fact that it previously sent a login request to the server. At this time, the course service subsystem can generate a registration request including the mobile phone number and the verification code, and send the registration request to the account subsystem.

[0077] In some embodiments, after receiving the registration request, the account subsystem can register the account, generate a user ID after successful registration, and generate a login token after obtaining the user ID, or generate a login token while registering the account, and return the login parameters including the user ID and the login token to the course service subsystem. Before or during the account registration, a verification code check may be included. If the check fails, the account registration is terminated. If the check fails, the account registration continues. Before registering the account, it is also possible to check whether there is registration data for the mobile phone number, so as to avoid the problem of duplicate registration due to the previous query error, which results in the registration data not being found.

[0078] In some embodiments, if the course service subsystem receives the login parameters, the login parameters may be returned to the display device, so that the display device determines that the login is successful based on the received login parameters.

[0079] Step S103: In response to the login request, if the user data of the account information is not found in the course database of the course service subsystem, the registration request is sent to the account subsystem, and after receiving the login parameters returned by the account subsystem, the login parameters are returned to the display device.

[0080] In some embodiments, if the course service subsystem fails to find user data, such as role data, of the mobile phone number input by the user in the course database, a registration request may be generated and sent to the account server.

[0081] In some embodiments, after receiving the registration request, the account subsystem can perform account registration, generate a user ID after successful registration, and generate a login token after obtaining the user ID. Alternatively, a login token can be generated while performing account registration, and the login parameters including the user ID and login token can be returned to the course service subsystem.

[0082] In some embodiments, if the course service subsystem receives the login parameters, the login parameters may be returned to the display device, so that the display device determines that the login is successful based on the received login parameters.

[0083] Depend on Figure 3 visible, Figure 3 In the method shown, when the course service subsystem queries the user data but the account subsystem cannot query the registration data, the course service subsystem does not roll back the data and return a login failure message to the display device to request the user to log in again. Instead, it automatically requests the account subsystem to register the account, thereby completing the registration and then login without the user's awareness, which can increase the login success rate and enhance the user's login experience.

[0084] In order to further improve the success rate of application login, the present application embodiment discloses an application login method, which is applied to the account subsystem and can still successfully log in when scenario 3 occurs. Figure 4 , the method may include the following steps:

[0085] Step S201: receiving a registration request from the course service subsystem, wherein the registration request includes account information and verification information.

[0086] In some embodiments, the course service subsystem may send a registration request to the account subsystem based on the fact that the course service subsystem cannot find the user data of the mobile phone number input by the user in the course database.

[0087] Step S202: In response to the registration request, if the login parameters of the account information are found in the account database of the account subsystem, the login parameters are sent to the course service subsystem, and no error code indicating that the registration has already been completed is fed back to the course service subsystem, so that the course service subsystem determines that the login is successful based on the received login parameters, wherein the login parameters include a user identity and a login token.

[0088] In some embodiments, after receiving the registration request, the account subsystem may not immediately register the account, but instead query the account database to see whether there is registration data for the mobile phone number to avoid duplicate registration. The queried registration data may be the user ID. Before querying the registration data, a verification code check may be performed first. If the check fails, a corresponding error code is returned to the course service subsystem. If the check succeeds, the registration data is queried again.

[0089] In some embodiments, if the account subsystem queries the registration data after receiving the registration request, it may not feedback an error code indicating that it has already been registered to the course service subsystem, but instead directly extract the user ID and login token from the registration data, and feedback the login parameters including the user ID and login token to the course service subsystem.

[0090] In some embodiments, if the course service subsystem receives the login parameters, the login parameters may be returned to the display device, so that the display device determines that the login is successful based on the received login parameters.

[0091] Step S203: In response to the registration request, if the login parameters of the account information cannot be found in the account database of the account subsystem, account registration is performed to obtain and return the login parameters to the course service subsystem.

[0092] In some embodiments, if the account subsystem cannot find registration data after receiving a registration request, it can perform account registration to generate a user ID, then generate a login token, and feed back login parameters including the user ID and login token to the course service subsystem.

[0093] In some embodiments, if the course service subsystem receives the login parameters, the login parameters may be returned to the display device, so that the display device determines that the login is successful based on the received login parameters.

[0094] Depend on Figure 4 visible, Figure 4 In the method shown, when the course service subsystem cannot find user data but the account subsystem finds registration data, the account subsystem does not return an error code indicating that the course service subsystem has been registered to the course service subsystem, but directly obtains login parameters and returns the login parameters to the course service subsystem, so that the course service subsystem is unaware of whether the account subsystem has been registered and only needs to wait for a period of time to obtain the login parameters returned by the account subsystem, instead of returning a login failure result to the display device after receiving a registered error code to request the user to log in again, thereby completing the login without the user's awareness, which can increase the login success rate and enhance the user's login experience.

[0095] It should be noted that, in some embodiments, a login token may be generated by the account subsystem each time a login request or a registration request is received, or a login token with a set validity period may be generated when an account is registered. Before the login token expires, if a login request or a registration request is received, the login token can be obtained. After the login token expires, if a login request or a registration request is received, the login token will be updated.

[0096] It should be noted that, in some embodiments, the course service subsystem also stores user data before sending a registration request to the account subsystem. The specific method may be: creating an account with an account name corresponding to the account information; setting the user identity of the account to a default value; wherein the default value may be 0, and the value of the user identity is updated by the course service subsystem based on the data received and returned by the account subsystem.

[0097] After the course service subsystem creates an account with an account name corresponding to the account information, if it receives a login request containing the account information from another display device, it sends a prompt message to the other display device indicating that the account is occupied, thereby avoiding the account being registered by another display device when one display device logs in to the account.

[0098] In some embodiments, the course service subsystem creates the above-mentioned account in the course database, and after creating the above-mentioned account, sends a registration request including the account information and verification information to the account subsystem.

[0099] As can be seen from the above embodiments, when the server includes two subsystems, the course subsystem and the account subsystem, there is a data call between the two subsystems during the account registration process. Therefore, when the user has not registered the application, when logging into the application, the server will automatically register the account in each subsystem and generate corresponding data respectively. Due to network fluctuations and other reasons, one or two subsystems may have a situation where the registration data storage fails, resulting in the user still needing to register again when logging into the application next time. Through the method described in the embodiments of the present application, as long as one subsystem can query the data other than the verification code corresponding to the mobile phone number entered by the user, it can control other subsystems that do not store registration data to automatically obtain the corresponding data to correct the result of the last registration, so that the user cannot perceive that the registration of a subsystem failed last time, and there is no need to enter the mobile phone number and verification code again to re-register. Even if all subsystems cannot query the registration data, they can still automatically register according to the mobile phone number and verification code entered by the user at the beginning, without the user having to perform complex operations, thereby improving the login experience.

[0100] To further illustrate the application login method provided by this application, the application login process will be introduced in conjunction with a specific application.

[0101] In some embodiments, an application that supports mobile phone number plus verification code login is Yizhi Classroom. Yizhi Classroom is a live learning application, through which teachers can give lectures and students can watch the teachers' lectures.

[0102] In some embodiments, the Yizhi Classroom application may be provided with two versions of application interfaces, namely a teacher version and a student version. The two versions are different clients, wherein the teacher version is for teachers to log in, and the student version is for students to log in.

[0103] In some embodiments, Yizhi Classroom may have only one version of the client, and the login interface of the client may be provided with a teacher login entrance and a student login entrance. Teachers may log in at the teacher login entrance, and students may log in at the student login entrance.

[0104] Figure 5-Figure 6 Taking the Yizhi Classroom application as an example, the account login process is introduced.

[0105] See also Figure 5 , is a timing diagram of an application login process according to some embodiments, Figure 5 The schematic diagram shown is a scenario where a user has previously registered the application but some subsystems have not been successfully registered. Specifically, Figure 5 This is a scenario where registration with the course service subsystem fails but registration with the account subsystem succeeds.

[0106] Figure 5 In the example, the display device can be a terminal device such as a smart phone, smart TV, computer, tablet computer, etc. These display devices are equipped with applications that support the mobile phone number plus verification code login mode, such as Yizhi Classroom.

[0107] Figure 5 In the example, the server may be provided with a LessonService (course service) subsystem, a Lesson-DB MYSQL (course SQL database), an Account (account) subsystem, and an Account-DB MYSQL (account SQL database), wherein the Course SQL database is a course database, and the stored data may include registration data generated when the Course Service subsystem registers an account, the Account SQL database is an account database, and the stored data may include registration data generated when the Account subsystem registers an account. These subsystems and databases may be provided on one hardware device, or may be provided on multiple hardware devices respectively.

[0108] In some embodiments, after the user enters the Yizhi Classroom application on the display device, the display device may display a login interface, which may display a mobile phone number input box control and a verification code acquisition control. The user may enter a mobile phone number in the mobile phone number input box control, and then click the verification code control, and the display device may send a verification code request to the account subsystem.

[0109] In some embodiments, after receiving the verification code request, the account subsystem may extract the mobile phone number from the verification code request, then generate a verification code corresponding to the mobile phone number, and send the verification code to the operator of the mobile phone number, which then sends the verification code to the user's mobile communication device equipped with the mobile phone number, so that the user receives the verification code. The account subsystem may also send a message to the display device that the verification code has been sent, so that the display device displays a prompt message that the verification code has been sent, to prompt the user to check the verification code.

[0110] In some embodiments, after receiving the verification code, the user may enter the verification code on the display device. After receiving the verification code entered by the user, the display device may generate a login request. The login request may include the mobile phone number and the verification code entered by the user. The display device sends the login request to the course service subsystem.

[0111] In some embodiments, after receiving a login request, the course service subsystem can extract the mobile phone number from the login request, and then query the course SQL database for user data corresponding to the mobile phone number. If the query can be found, the query result generated by the course SQL database is the user data of the mobile phone number, or a notification message of finding the user data, indicating that the mobile phone number has successfully stored user data in the course service subsystem. Otherwise, it means that the mobile phone number has not successfully stored user data in the course service subsystem.

[0112] After the course SQL database returns the query results to the course service subsystem, the course service subsystem can determine whether the course database already has user data for the mobile phone number based on the query results.

[0113] Figure 5 Take the query result obtained by the course service subsystem as an example that there is no user data for the mobile phone number. In addition to sending a registration request to the account subsystem, the course service subsystem also starts the account creation process of this system to create user data corresponding to the mobile phone number in the course database.

[0114] In some embodiments, after receiving a registration request, the account subsystem can extract the mobile phone number and verification code from the registration request, find the verification code generated for the mobile phone number, and then verify the verification code. If the verification is successful, the account SQL database is queried to see whether the mobile phone number has been registered. In an actual embodiment, the identity identifier of the mobile phone number can be queried to determine whether the mobile phone number has been registered. If the queried user ID is empty, that is, the user identity identifier is null (empty), it is determined that the user has failed to register with the account subsystem before. At this time, the account can be registered in the account SQL database through the account subsystem. The registration result after registration includes the user ID. If the verification fails, an error code indicating that the verification code is wrong is generated, and the error code is returned to the course service subsystem.

[0115] Figure 5 The query result obtained by the account subsystem is that the value of the user ID is not empty. After obtaining the user ID, the account subsystem does not return an error code indicating that the user has been registered to the course service subsystem, but returns the login parameters including the user ID and the login token to the course service subsystem.

[0116] In some embodiments, after receiving the login parameter, the course subsystem may return the login parameter to the display device. After receiving the login parameter, the display device may carry the login token in the login parameter and request the home page data from the course service subsystem to display the application home page.

[0117] In some embodiments, after receiving an error code indicating that the verification code is incorrectly input, the course subsystem returns the error code to the display device. After receiving the error code, the display device may generate a prompt message corresponding to the error code, such as: "Verification code error". After seeing the prompt message, the user may re-enter the verification code or re-obtain the verification code.

[0118] See also Figure 6 , is a timing diagram of an application login process according to some embodiments, Figure 6 The schematic diagram shown is a scenario where a user has previously registered the application but some subsystems have not been successfully registered. Specifically, Figure 6 This is a scenario where the course service subsystem registration succeeds but the account subsystem registration fails.

[0119] like Figure 6 As shown, in some embodiments, after the user enters the Yizhi Classroom application on the display device, the display device may display Figure 2 The login interface is shown.

[0120] After the user enters the mobile phone number and verification code in the login interface, the display device may generate a login request. The login request may include the mobile phone number and verification code entered by the user. The display device sends the login request to the course service subsystem.

[0121] In some embodiments, after receiving a login request, the course service subsystem can extract the mobile phone number from the login request, and then query the course SQL database for user data corresponding to the mobile phone number. If the query can be found, the query result generated by the course SQL database is the user data of the mobile phone number, or a notification message of finding the user data, indicating that the mobile phone number has successfully stored user data in the course service subsystem. Otherwise, it means that the mobile phone number has not successfully stored user data in the course service subsystem.

[0122] After the course SQL database returns the query results to the course service subsystem, the course service subsystem can determine based on the query results that the mobile phone number has successfully stored user data in the course service subsystem.

[0123] Figure 6 Taking the query result obtained by the course service subsystem as an example, the mobile phone number has successfully stored user data in the course service subsystem. The course service subsystem can send a login request to the account subsystem without starting the account creation process of this system.

[0124] In some embodiments, after receiving a login request, the account subsystem can extract the mobile phone number and verification code from the login request, find the verification code generated for the mobile phone number, and then verify the verification code. If the verification is successful, the account SQL database is queried to see whether the mobile phone number has been registered. In an actual embodiment, the identity identifier of the mobile phone number can be queried to determine whether the mobile phone number has been registered. If the queried user ID is empty, that is, the user identity identifier is null (empty), then an error code indicating that the user does not exist can be returned to the course service subsystem. If the verification code verification fails, an error code indicating that the verification code is wrong is generated, and the error code is returned to the course service subsystem.

[0125] Figure 6 The query result obtained by the account subsystem is that the value of the user ID is empty. In some embodiments, after the account subsystem obtains the value of the user ID is empty, the course service system can send a registration request to the account subsystem after receiving the error code. After receiving the registration request, the account subsystem can verify the verification code. If the verification is successful, the account registration can be performed, and the registration data is generated in the account database. Then, the user ID is obtained from the registration data and a login token is generated. In addition to the account registration, the account subsystem also generates a login token for the mobile phone number and returns the login parameters including the user ID and the login token to the course service subsystem.

[0126] In some embodiments, if the account subsystem fails to register, after generating an error code indicating the account registration failure, the error code is not returned to the course service subsystem, and the account registration can be automatically re-performed.

[0127] In some embodiments, after receiving the login parameters, the course subsystem may return the login parameters to the display device.

[0128] In some embodiments, after receiving the login parameters, the display device may carry the login token in the login parameters and request the home page data from the course service subsystem to display the application home page.

[0129] In some embodiments, after receiving an error code indicating that the verification code is incorrectly input, the course subsystem returns the error code to the display device. After receiving the error code, the display device may generate a prompt message corresponding to the error code, such as: "Verification code error". After seeing the prompt message, the user may re-enter the verification code or re-obtain the verification code.

[0130] It can be seen from the above embodiments that, in the embodiments of the present application, when logging into the application, if the user has not registered an account in the application, the user only needs to enter the correct account information and verification information. The server can automatically register the account according to the account information entered by the user, and then return the login parameters generated during registration to the display device. The user does not need to manually register and then log in, which reduces the user's operation steps when logging in to the application; and, if the user has registered an account when logging into the application before, but one of the subsystems has not successfully stored the data of the account, the present application controls the subsystem that has not successfully stored the account data to re-acquire the account data during the current user login process, thereby correcting the previous registration and solving the problem that the server returns a message of failed login to the display device due to the failure to store the data of a certain subsystem during the previous account registration, resulting in the user needing to register again, thereby improving the login success rate and being able to enhance the user's application login experience.

[0131] Since the above embodiments are all described by citing and combining with other embodiments, different embodiments have the same parts, and the same and similar parts between the embodiments in this specification can be referred to each other. No further detailed description is given here.

[0132] It should be noted that, in this specification, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a circuit structure, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such circuit structure, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the circuit structure, article or device including the element.

[0133] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the disclosure of the invention herein. The present application is intended to cover any modification, use or adaptation of the present invention, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present application are indicated by the content of the claims.

[0134] The above implementation modes of the present application do not constitute a limitation on the protection scope of the present application.

Claims

1. A server, characterized in that: The server includes a course service subsystem and an account subsystem. The course service subsystem corresponds to a first application on a display device, and the account subsystem corresponds to a plurality of applications on the display device including the first application. The course service subsystem is configured as follows: Receiving a login request for the first application sent by a display device, wherein the login request includes account information and verification information; In response to the login request, if the user data of the account information is found in the course database of the course service subsystem, indicating that the account corresponding to the account information has registered the first application, the login request is sent to the account subsystem, so that the account subsystem queries the registration data of the account information according to the login request; if the registration data cannot be found, an error code indicating that the user does not exist is returned to the course service subsystem; if the course service subsystem receives the error code indicating that the user does not exist returned by the account subsystem and the user data of the account information is found in the course database, indicating that the registration data has not been successfully saved to the account subsystem, the user data of the account information is not rolled back, and the error code indicating that the user does not exist is not returned to the display device; a registration request including the account information and verification information is sent to the account subsystem, so that the account subsystem performs account registration according to the account information and verification information, obtains and returns login parameters to the course service subsystem, and after receiving the login parameters, returns the login parameters to the display device, so that the display device determines that the login is successful according to the received login parameters, and the login parameters include a user identity identifier and a login token; In response to the login request, if the user data of the account information is not found in the course database of the course service subsystem, the registration request is sent to the account subsystem, and after receiving the login parameters returned by the account subsystem, the login parameters are returned to the display device.

2. The server according to claim 1, characterized in that: The course service subsystem is also configured as follows: If no user data of the account information is found, before sending the registration request to the account subsystem, an account corresponding to the account information is also created; After the account is created, if a login request containing the account information is received from another display device, a prompt message indicating that the account has been occupied is sent to the other display device.

3. The server according to claim 2, characterized in that: Create an account corresponding to the account information, including: Create an account with an account name corresponding to the account information; Setting the user identity of the account to a default value; The value of the user identity is updated by the course service subsystem according to the login parameters returned by the account subsystem.

4. The server according to claim 1, characterized in that: The server also includes an account database, and the error code indicating that the user does not exist is generated when the account subsystem cannot find the registration data corresponding to the account information in the account database.

5. The server according to claim 1, characterized in that: The course service subsystem is also configured as follows: In response to the login request, if the user data of the account information is found, the login request is sent to the account subsystem, and if the login parameters returned by the account subsystem are received, the login parameters are returned to the display device.

6. A server, characterized in that: The server comprises the course service subsystem and the account subsystem according to any one of claims 1 to 5, and the account subsystem is configured as follows: Receiving a registration request from the course service subsystem, wherein the registration request includes account information and verification information; In response to the registration request, if the login parameters of the account information are found in the account database of the account subsystem, indicating that the account corresponding to the account information has registered at least one application corresponding to the account subsystem on the display device, the login parameters are sent to the course service subsystem, and no error code indicating that the registration has been done is fed back to the course service subsystem, so that the course service subsystem determines that the login is successful according to the received login parameters, wherein the login parameters include a user identity and a login token; In response to the registration request, if the login parameters of the account information cannot be found in the account database of the account subsystem, account registration is performed to obtain and return the login parameters to the course service subsystem.

7. The server according to claim 6, characterized in that: The account subsystem is also configured to: Receiving a login request from the course service subsystem, wherein the login request includes account information and verification information; In response to the login request, if the login parameters of the account information are found in the account database of the account subsystem, the login parameters are sent to the course service subsystem; In response to the login request, if the login parameters of the account information cannot be found in the account database of the account subsystem, an error code indicating that the user does not exist is returned to the course service subsystem, so that the course service subsystem sends the registration request to the account subsystem based on the received error code indicating that the user does not exist.

8. The server according to claim 6, characterized in that: The account subsystem is also configured to: in response to the registration request, if the verification information fails to be verified, return prompt information indicating that the verification information has failed to be verified to the course service subsystem, so that the course service subsystem returns the prompt information indicating that the verification information has failed to be verified to the display device.

9. An application login method, characterized in that: A course service subsystem in a server, the server further comprising an account subsystem, the course service subsystem corresponding to a first application on a display device, the account subsystem corresponding to a plurality of applications on the display device including the first application, the application login method comprising: Receiving a login request for the first application sent by a display device, wherein the login request includes account information and verification information; In response to the login request, if the user data of the account information is found in the course database of the course service subsystem, indicating that the account corresponding to the account information has registered the first application, the login request is sent to the account subsystem, so that the account subsystem queries the registration data of the account information according to the login request; if the registration data cannot be found, an error code indicating that the user does not exist is returned to the course service subsystem; if the course service subsystem receives the error code indicating that the user does not exist returned by the account subsystem and the user data of the account information is found in the course database, indicating that the registration data has not been successfully saved to the account subsystem, the user data of the account information is not rolled back, and the error code indicating that the user does not exist is not returned to the display device; a registration request including the account information and verification information is sent to the account subsystem, so that the account subsystem performs account registration according to the account information and verification information, obtains and returns login parameters to the course service subsystem, and after receiving the login parameters, returns the login parameters to the display device, so that the display device determines that the login is successful according to the received login parameters, and the login parameters include a user identity identifier and a login token; In response to the login request, if the user data of the account information is not found in the course database of the course service subsystem, the registration request is sent to the account subsystem, and after receiving the login parameters returned by the account subsystem, the login parameters are returned to the display device.

10. An application login method, characterized in that: An account subsystem in a server, wherein the server further comprises a course service subsystem as claimed in any one of claims 1 to 5, and the application login method comprises: Receiving a registration request from the course service subsystem, wherein the registration request includes account information and verification information; In response to the registration request, if the login parameters of the account information are found in the account database of the account subsystem, indicating that the account corresponding to the account information has registered at least one application corresponding to the account subsystem on the display device, the login parameters are sent to the course service subsystem, and no error code indicating that the registration has been done is fed back to the course service subsystem, so that the course service subsystem determines that the login is successful according to the received login parameters, wherein the login parameters include a user identity and a login token; In response to the registration request, if the login parameters of the account information cannot be found in the account database of the account subsystem, account registration is performed to obtain and return the login parameters to the course service subsystem.