Account cross-terminal login method and device, equipment and storage medium
By displaying the identification code image on the TV side and using the client to scan it, conversational interaction between the server and the TV side is achieved, solving the problem of cumbersome TV side account login and improving login efficiency and user experience.
Patent Information
- Application Number
- CN202410479879.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-19
- Publication Date
- 2024-08-23
AI Technical Summary
When logging in to a game account on the TV, the process of using the remote control to enter the account password is cumbersome, time-consuming and difficult, resulting in low login efficiency.
The server generates an identification code link, converts it into an image and displays it on the TV login interface. The user uses the client to scan to obtain the session ID, and sends a synchronous login request to the server through the session ID to achieve cross-terminal login of the TV account.
The TV account login operation is simplified, login efficiency is improved, and user operation difficulty is reduced.
Smart Images

Figure CN118540547A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method, device, equipment and storage medium for cross-terminal account login. Background Art
[0002] Most game logins are designed for mobile phones, which makes it more difficult to log in to a game account on a TV than on a mobile phone. In particular, when using an account and password to log in on a TV, you need to operate the remote control to input the keystrokes, which is time-consuming, cumbersome, and difficult. Therefore, a convenient account login method is urgently needed. Summary of the invention
[0003] Embodiments of the present invention provide a method, apparatus, device and storage medium for cross-terminal account login, so as to reduce the complexity of account login operation on a television.
[0004] In a first aspect, an embodiment of the present invention provides an account cross-terminal login method, which is applied to a server, and the method includes:
[0005] Receiving an identification code login request sent by a TV terminal, wherein the identification code login request includes device information of the TV terminal;
[0006] Based on the identification code login request, generating an identification code link, wherein the identification code link includes a session identifier corresponding to the device information;
[0007] Sending the identification code link to the TV end, so that the TV end converts the identification code link into an identification code image and displays it on the account login interface corresponding to the TV end, so that the user can scan the identification code image through the client to obtain the session identifier, and based on the session identifier, sending an account synchronization login request to the server end, wherein the account synchronization login request includes user login information and the session identifier;
[0008] receiving a polling request sent by the TV terminal, and querying user login information corresponding to the session identifier based on the polling request;
[0009] If user login information corresponding to the session identifier is queried, the user login information is sent to the TV end, so that the TV end logs in the user account corresponding to the client in the account login interface corresponding to the TV end based on the user login information.
[0010] In a second aspect, an embodiment of the present invention provides an account cross-terminal login device, which is applied to a server, and the device includes:
[0011] A receiving module, used for receiving an identification code login request sent by a TV terminal, wherein the identification code login request includes device information of the TV terminal;
[0012] A generating module, configured to generate an identification code link based on the identification code login request, wherein the identification code link includes a session identifier corresponding to the device information;
[0013] A first sending module, configured to send the identification code link to the TV end, so that the TV end converts the identification code link into an identification code image and displays it on the account login interface corresponding to the TV end, so that the user can scan the identification code image through the client to obtain the session identifier, and send an account synchronization login request to the server based on the session identifier, wherein the account synchronization login request includes user login information and the session identifier;
[0014] A query module, configured to receive a polling request sent by the TV terminal, and query user login information corresponding to the session identifier based on the polling request;
[0015] The second sending module is used to send the user login information corresponding to the session identifier to the TV end if the user login information corresponding to the session identifier is queried, so that the TV end logs in the user account corresponding to the client in the account login interface corresponding to the TV end based on the user login information.
[0016] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a communication interface; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor can at least implement the account cross-terminal login method as described in the first aspect.
[0017] In a fourth aspect, an embodiment of the present invention provides a non-temporary machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of a network device, the processor can at least implement the cross-terminal account login method as described in the first aspect.
[0018] In a fifth aspect, an embodiment of the present invention provides an account cross-terminal login method, which is applied to a television terminal, and the method includes:
[0019] In response to an account login request triggered by a user through an account login interface corresponding to the television end, sending an identification code login request to a server end, so that the server end generates an identification code link based on the identification code login request, wherein the identification code link includes a session identifier;
[0020] receiving the identification code link sent by the server, and converting the identification code link into an identification code image;
[0021] Displaying the identification code image on the account login interface so that the user can scan the identification code image through the client to obtain the session identifier, and sending an account synchronization login request to the server based on the session identifier, wherein the account synchronization login request includes user login information and the session identifier;
[0022] Based on the session identifier, polling the server for the user login information, so that the server queries the user login information corresponding to the session identifier based on the polling request, and sends the queried user login information to the television end;
[0023] Receive the user login information sent by the server, and log in the user account corresponding to the client in the account login interface corresponding to the TV based on the user login information.
[0024] In a sixth aspect, an embodiment of the present invention provides an account cross-terminal login device, which is applied to a television terminal, and the device includes:
[0025] a response module, configured to respond to an account login request triggered by a user through an account login interface corresponding to the television end, and send an identification code login request to a server end, so that the server end generates an identification code link based on the identification code login request, wherein the identification code link includes a session identifier;
[0026] A receiving module, used for receiving the identification code link sent by the server, and converting the identification code link into an identification code image;
[0027] a display module, configured to display the identification code image on the account login interface so that the user can scan the identification code image through the client to obtain the session identifier, and send an account synchronization login request to the server based on the session identifier, wherein the account synchronization login request includes user login information and the session identifier;
[0028] A request module, configured to poll the server for the user login information based on the session identifier, so that the server queries the user login information corresponding to the session identifier based on the polling request, and sends the queried user login information to the television end;
[0029] The login module is used to receive the user login information sent by the server, and log in the user account corresponding to the client in the account login interface corresponding to the TV based on the user login information.
[0030] In the seventh aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a communication interface; wherein, the memory stores executable code, and when the executable code is executed by the processor, the processor can at least implement the account cross-terminal login method as described in the fifth aspect.
[0031] In the eighth aspect, an embodiment of the present invention provides a non-temporary machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of a network device, the processor can at least implement the cross-terminal account login method as described in the fifth aspect.
[0032] In the account cross-terminal login scheme provided by the embodiment of the present invention, the user scans the identification code image displayed on the TV end to log in the client account on the TV end to realize the account cross-terminal login. Specifically, when the user wants to log in the account on the TV end, the user can trigger the account login request to the server end through the TV end. The server end receives the identification code login request sent by the TV end. Among them, the identification code login request includes the device information of the TV end. Then, the server end generates an identification code link based on the identification code login request, and sends the identification code link to the TV end, so that the TV end converts the identification code link into an identification code image and displays it on the account login interface corresponding to the TV end. Among them, the identification code link includes a session identifier corresponding to the device information. The user scans the identification code image through the client to obtain the session identifier, and sends an account synchronization login request to the server end based on the session identifier. The account synchronization login request includes the user login information and the session identifier, so that the user login information and the session identifier are stored in the server end. Next, the server receives the polling request sent by the TV, and based on the polling request, queries the user login information corresponding to the session identifier. If the user login information corresponding to the session identifier is queried, the user login information is sent to the TV, so that the TV logs in to the user account corresponding to the client in the account login interface corresponding to the TV based on the user login information.
[0033] In the above scheme, after the server receives the identification code login request sent by the TV, it generates a session identifier corresponding to the TV, splices the session identifier into an identification code link and sends it to the TV, so that the TV converts the identification code link into an identification code image, so that the user can obtain the session identifier by scanning the identification code image through the client, and sends the user login information of the client to the server through the session identifier, so that the server can send the user login information corresponding to the session identifier to the TV to log in the user account corresponding to the client on the TV, so that the user can scan the identification code image displayed on the TV through the client, and log in the user account corresponding to the client on the TV, simplifying the account login operation process of the TV. That is, the client and the TV exchange data through the session identifier generated by the server, so as to forward the user login information corresponding to the client to the TV, and log in the user account corresponding to the client on the TV, thereby improving the account login efficiency of the TV. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0035] Figure 1 A schematic diagram of an application of a cross-terminal account login system provided by an embodiment of the present invention;
[0036] Figure 2 A flowchart of a cross-terminal account login method provided by an embodiment of the present invention;
[0037] Figure 3 A flowchart of a cross-terminal account login method provided by an embodiment of the present invention;
[0038] Figure 4 A schematic diagram of the structure of a device for cross-terminal account login provided by an embodiment of the present invention;
[0039] Figure 5 For Figure 4 A schematic diagram of the structure of an electronic device corresponding to the cross-terminal account login device provided in the illustrated embodiment;
[0040] Figure 6 A schematic diagram of the structure of a device for cross-terminal account login provided by an embodiment of the present invention;
[0041] Figure 7 For Figure 6 A schematic diagram of the structure of an electronic device corresponding to the cross-terminal account login device provided in the illustrated embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "said" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the inclusion of at least one.
[0044] In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.
[0045] Most game logins are designed for mobile phones, which makes it more difficult to log in to a game account on a TV than on a mobile phone. In particular, when using an account and password to log in on a TV, you need to use the remote control buttons to input the information. The operation process is long, cumbersome, and difficult.
[0046] In order to solve the above technical problems, an embodiment of the present invention provides an account cross-terminal login method. After receiving the identification code login request sent by the TV end, the server generates a session identifier corresponding to the TV end, establishes a session between the client and the TV end, and enables the client and the TV end to exchange data through the session identifier to obtain the user login information corresponding to the client, and log in the user account corresponding to the client on the client. Specifically, after receiving the user login information and session identifier sent by the client, the server forwards the user login information to the TV end based on the session identifier, so as to log in the user account corresponding to the client on the TV end, thereby improving the account login efficiency of the TV end.
[0047] In the following, some embodiments of the present invention are described in detail in conjunction with the accompanying drawings. In the case where there is no conflict between the embodiments, the following embodiments and features in the embodiments can be combined with each other.
[0048] The cross-terminal account login method provided by the embodiment of the present invention can be applied to Figure 1 The account cross-terminal login system shown may include: a TV terminal, a client terminal and a server terminal.
[0049] The target application is installed in the TV terminal. The target application can be an application of any type and function, such as a game application, a video playback application, etc. The client can be various terminal devices that have the same target application installed as the TV terminal device. In specific implementation, the client can be a mobile phone, a personal computer PC, a tablet computer, etc.
[0050] The server refers to a device that can provide cross-terminal account login services for the TV. In terms of physical implementation, the server can be any device that can provide computing services, respond to identification code login requests sent by the TV, and perform cross-terminal account login services based on identification code login requests. For example, it can be a cluster server, a regular server, a cloud server, a cloud host, a virtual center, etc.
[0051] Among them, the server can be implemented using the distributed system development JavaScript Cloud framework. When the target application has both a TV version and a mobile version, the account cross-terminal login service provided by the server in this solution can be used to complete the login of the user account corresponding to the client on the TV side.
[0052] In actual applications, when a user wants to log in to a user account corresponding to a target application on a TV, he or she usually needs to use a remote control on the TV to input user account information and account passwords to complete the user account login on the TV. However, it takes a long time and is difficult for the user to manually input user account information and account passwords through the remote control. In order to solve the above technical problems, the server in the embodiment of the present invention can provide a cross-terminal account service for the TV, so that the user can log in the user account corresponding to the client on the TV by scanning the identification code image displayed on the TV, which greatly improves the account login efficiency on the TV and improves the user experience.
[0053] Specifically, when a user wants to log in to the user account corresponding to the target application on the TV, he can first open the account login interface of the target application on the TV, and click the identification code login control or the synchronization login control in the account login interface corresponding to the TV to send an identification code login request to the server, and the identification code login request includes the device information of the TV. The server receives the identification code login request sent by the TV, and generates an identification code link based on the identification code login request. Among them, the TV can request the server interface to return the identification code link through the application program interface sdk.
[0054] The identification code link carries a session identifier corresponding to the device information. That is, after the server receives the identification code login request sent by the TV, it can generate a session identifier corresponding to the device information in the identification code login request based on the session mechanism, and generate an identification code link based on the session identifier.
[0055] Next, the server sends the generated identification code link corresponding to the TV to the TV. After receiving the identification code link, the TV converts the identification code link to convert it into an identification code image, and displays the identification code image on the account login interface corresponding to the TV, so that the user can scan the identification code image through the client to obtain the session identifier corresponding to the TV.
[0056] After the TV displays the identification code image, the user can use the client that has successfully logged into the target application to scan the identification code image to obtain the session identifier corresponding to the TV, and can send an account synchronization login request to the server based on the session identifier. The account synchronization login request includes the user login information and the session identifier corresponding to the TV, so that the subsequent server can send the user login information to the corresponding TV based on the session identifier corresponding to the TV, so as to log in the user account on the TV.
[0057] In an optional embodiment, in order to better protect the security of user account information, in actual application, after the user scans the identification code image displayed on the TV end by using the client that has successfully logged into the target application, the account synchronization login confirmation information can be displayed in the display interface of the target application. If the user confirms to synchronize the login to the user account in the TV end, an account synchronization login request is sent to the server.
[0058] Specifically, the account synchronization login confirmation information as well as the confirmation control and the return control are displayed in the display interface of the target application corresponding to the client. If the user triggers the confirmation control in the display interface, the account synchronization login request is sent to the server; if the user triggers the return control in the display interface, the account synchronization login request is no longer sent to the server, and the account synchronization login failure is displayed in the account login interface of the target application corresponding to the TV end, so that the user can re-trigger the identification code login request.
[0059] In addition, after the TV displays the identification code image in the account login interface, it can also send a polling request to the server according to a preset period to obtain the user login information corresponding to the client. After receiving the polling request sent by the TV, the user login information corresponding to the session identifier can be queried based on the polling request. If the user login information corresponding to the session identifier is queried, the user login information is sent to the TV. After the TV receives the user login information sent by the server, the TV can log in to the user account corresponding to the client in the account login interface corresponding to the TV based on the user login information.
[0060] After the client scans the identification code image displayed on the TV, it can send an account synchronization login request to the server. Since the account synchronization login request sent by the client received by the server includes the user login information and the session identifier corresponding to the TV, when the server queries, it can directly obtain the user login information corresponding to the client.
[0061] From the above description, it can be seen that: after the server receives the identification code login request sent by the TV end, it generates a session identifier corresponding to the TV end, establishes a session between the client and the TV end, and when the client scans the identification code image corresponding to the TV end, it can obtain the session identifier corresponding to the TV end, and interact with the TV end through the session identifier, so that the TV end can obtain the user login information corresponding to the client, so as to log in to the user account corresponding to the client on the TV end.
[0062] In the embodiment of the present invention, after receiving the identification code login request sent by the TV end, the server generates a session identifier corresponding to the TV end, establishes a session between the client and the TV end, and when the client scans the identification code image corresponding to the TV end, the session identifier corresponding to the TV end can be obtained, and the user login information is sent to the server through the session identifier. After receiving the polling request sent by the TV end, the server forwards the user login information corresponding to the client to the TV end based on the session identifier, so that the client and the TV end can perform data interaction through the session identifier, so that the TV end can obtain the user login information corresponding to the client, and log in to the user account corresponding to the client on the TV end, so that the user can scan the identification code image displayed on the TV end through the client, and can log in to the user account corresponding to the client on the TV end across the end, simplifying the account login operation process of the TV end and improving the efficiency of user account login corresponding to the TV end application.
[0063] The above introduces the main functions of different components in the account cross-terminal login system. The following is a detailed description of the account cross-terminal login process in conjunction with the following embodiments.
[0064] Figure 2 A flowchart of a method for cross-terminal account login provided by an embodiment of the present invention, the method can be Figure 2 The account shown is executed by the server in the cross-terminal login system, such as Figure 2 As shown, the method comprises the following steps:
[0065] 201. Receive an identification code login request sent by a TV terminal, where the identification code login request includes device information of the TV terminal.
[0066] 202. Generate an identification code link based on the identification code login request, where the identification code link includes a session identifier corresponding to the device information.
[0067] 203. Send the identification code link to the TV end, so that the TV end converts the identification code link into an identification code image and displays it on the corresponding account login interface of the TV end, so that the user can scan the identification code image through the client to obtain the session identifier, and send an account synchronization login request to the server based on the session identifier, wherein the account synchronization login request includes the user login information and the session identifier.
[0068] 204. Receive the polling request sent by the TV end, and query the user login information corresponding to the session identifier based on the polling request.
[0069] 205. If the user login information corresponding to the session identifier is found, the user login information is sent to the TV end, so that the TV end logs in the user account corresponding to the client in the account login interface corresponding to the TV end based on the user login information.
[0070] In actual applications, when a user wants to log in to the user account corresponding to the target application on the TV, the target application on the TV can be started first, and the synchronous login control in the account login interface corresponding to the target application on the TV can be triggered. The TV responds to the synchronous login control triggered by the user to send an identification code login request to the server. The server receives the identification code login request sent by the TV. The identification code can be a barcode, a QR code, an RFID, etc. The identification code login request includes the device information of the TV, for example, the device identification and device model corresponding to the TV.
[0071] After the server receives the identification code login request sent by the TV, it can generate an identification code link based on the identification code login request, and the identification code link includes a session identifier corresponding to the device information. In order to connect the user account in the target application corresponding to the TV with the user account in the target application corresponding to the client, after receiving the identification code login request sent by the TV, the server can first establish a session for the TV and generate a session identifier corresponding to the TV, so that the TV and the client can exchange data.
[0072] Specifically, in an optional embodiment, the implementation process of generating an identification code link based on an identification code login request can be: based on a session mechanism, generating a unique identification code corresponding to the device information in the identification code login request; determining the unique identification code as a session identifier corresponding to the device information; and generating an identification code link based on the session identifier.
[0073] That is to say, after receiving the TV identification code login request, the server can establish a session based on the session mechanism to connect the client and the target application in the TV, so that the client and the TV can interact with data through the generated session identifier.
[0074] Next, the identification code link is sent to the TV end, so that the TV end converts the identification code link into an identification code image and displays it on the corresponding account login interface of the TV end, so that the user can scan the identification code image through the client to obtain the session identifier, and send an account synchronization login request to the server based on the session identifier. The account synchronization login request includes user login information and session identifier.
[0075] Then, the account synchronization login request sent by the client is received, the account synchronization login request includes the user login information and the session identifier, a mapping relationship between the user login information and the session identifier is established, and the mapping relationship is stored in the database. Specifically, the server can cache the user login information bound to the session identifier through the redis database to facilitate querying the user login information corresponding to the session identifier.
[0076] In addition, after the TV displays the identification code image in the account login interface, it can also periodically send a polling request to the server according to a preset time to request the server interface to query the user login information corresponding to the client through the session identifier. After the TV sends the polling request to the server, the server receives the polling request sent by the TV, and based on the polling request, queries the user login information corresponding to the session identifier. If the user login information corresponding to the session identifier is queried, the user login information is sent to the TV, so that the TV logs in the user account corresponding to the client in the account login interface corresponding to the TV based on the user login information.
[0077] In actual applications, after the TV receives the user login information sent by the server, it can also send an account login request to the server to verify the user login information corresponding to the TV. Then, the server receives the account login request sent by the TV, which includes the user login information, and verifies the user login information. If the verification is successful, the TV is allowed to log in with the user login information.
[0078] In an embodiment of the present invention, after receiving the identification code login request sent by the TV end, the server generates a session identifier corresponding to the TV end, splices the session identifier into an identification code link and sends it to the TV end, so that the TV end converts the identification code link into an identification code image, so that the user can obtain the session identifier by scanning the identification code image through the client, and sends the user login information of the client to the server through the session identifier, so that the server can send the user login information corresponding to the session identifier to the TV end, so as to log in the user account corresponding to the client on the TV end, so that the user can scan the identification code image displayed on the TV end through the client, and log in the user account corresponding to the client on the TV end, simplifying the account login operation process of the TV end. That is, the client and the TV end exchange data through the session identifier generated by the server end, so as to forward the user login information corresponding to the client to the TV end, and log in the user account corresponding to the client on the TV end, thereby improving the account login efficiency of the TV end.
[0079] In order to facilitate understanding of the above-mentioned cross-terminal account login method, the cross-terminal account login process is illustrated by way of example in combination with a specific application scenario. The same game APP is installed on both TV terminal A and mobile terminal B. When a user wants to log in to the user account in the game APP corresponding to TV terminal A, the user first opens the game APP corresponding to TV terminal A and clicks the account login control in the game interface. In response to the user's selection of the account login control, the account login interface is displayed on TV terminal A, and the account login interface includes a QR code login control.
[0080] In response to the user's selection of the QR code login control, TV terminal A sends a QR code login request to the server. The server receives the QR code login request sent by TV terminal A, and based on the device identifier A corresponding to TV terminal A in the QR code login request, generates a session identifier ID1 corresponding to the device identifier A, and splices the session identifier ID1 into a QR code link (URL address).
[0081] The server sends the generated QR code link to TV A. After receiving the QR code link, TV A converts the QR code link into a QR code image through the QR code tool class and displays the QR code image in the account login interface. Then, according to the preset time, it regularly sends a polling request to the server to request the user login information corresponding to mobile phone B. The polling request includes the session identifier ID1 corresponding to TV A.
[0082] The user opens the game APP on the mobile phone B, calls the mobile phone camera, scans the QR code image displayed by the game APP on the TV A, obtains the session identifier ID1 corresponding to the TV A, and generates an account synchronization login request based on the session identifier ID1 and the user login information and reports it to the server. The server receives the account synchronization login request sent by the mobile phone A, which includes the user login information and the session identifier, establishes a mapping relationship between the user login information and the session identifier ID1, and stores the mapping relationship in the database.
[0083] When the server receives the polling request sent by TV terminal A, based on the session identifier ID1 in the polling request, it queries the database to see whether the user login information corresponding to the session identifier ID1 is stored. If the user login information corresponding to the session identifier ID1 is found, the user login information is sent to TV terminal A.
[0084] The TV terminal A receives the user login information sent by the server, and based on the user login information, logs in the user account corresponding to the mobile terminal B in the account login interface corresponding to the TV terminal A. In other words, the user can scan the QR code image displayed in the account login interface corresponding to the game APP in the TV terminal A by using the game APP in the mobile terminal to log in the user account corresponding to the game APP in the mobile terminal B in the game APP in the TV terminal A, thus realizing cross-terminal login of the game account, simplifying the operation process of the user logging in to the game account in the TV terminal A, and improving the efficiency of game account login.
[0085] The above embodiment introduces the specific implementation process of the cross-end account login performed by the server in the cross-end account login system. The following is an illustrative description of the specific implementation process of the cross-end account login performed by the TV in the cross-end account login system in combination with the following embodiment.
[0086] Figure 3 A flowchart of a method for cross-terminal account login provided by an embodiment of the present invention, the method can be Figure 3 The account shown is executed by the TV end in the cross-end login system, such as Figure 3 As shown, the method comprises the following steps:
[0087] 301. In response to an account login request triggered by a user through an account login interface corresponding to a TV end, an identification code login request is sent to a server end, so that the server end generates an identification code link based on the identification code login request, wherein the identification code link includes a session identifier.
[0088] 302. Receive the identification code link sent by the server, and convert the identification code link into an identification code image.
[0089] 303. Display the identification code image on the account login interface so that the user can scan the identification code image through the client to obtain the session identifier, and send an account synchronization login request to the server based on the session identifier, where the account synchronization login request includes the user login information and the session identifier.
[0090] 304. Based on the session identifier, poll the server for user login information, so that the server queries the user login information corresponding to the session identifier based on the polling request, and sends the queried user login information to the TV end.
[0091] 305. Receive the user login information sent by the server, and log in the user account corresponding to the client in the account login interface corresponding to the TV based on the user login information.
[0092] After the user triggers the selection operation of the account login control in the account login interface corresponding to the TV end, the TV end responds to the account login request triggered by the user through the account login interface corresponding to the TV end, and sends an identification code login request to the server end, so that the server end generates an identification code link based on the identification code login request, and the identification code link includes a session identifier. The identification code can be a barcode, a QR code, an RFID, etc.
[0093] Receive the identification code link sent by the server, and convert the identification code link into an identification code image through the identification code tool class. Display the identification code image on the account login interface so that the user can scan the identification code image through the client to obtain the session identifier, and send an account synchronization login request to the server based on the session identifier, and the account synchronization login request includes the user login information and the session identifier.
[0094] Then, based on the session identifier, the server is polled to request the user login information, so that the server queries the user login information corresponding to the session identifier based on the polling request, and sends the queried user login information to the TV. The polling request can be sent to the server periodically according to a preset time, and no polling request is sent to the server until the user login information sent by the server is obtained.
[0095] Receive the user login information sent by the server, and log in the user account corresponding to the client in the account login interface corresponding to the TV based on the user login information. Specifically, in an optional embodiment, the implementation process of logging in the user account corresponding to the client in the account login interface corresponding to the TV based on the user login information may include: generating an account login request based on the session identifier and the user login information; sending the account login request to the server so that the server verifies the user login information, and if the verification is successful, allowing the TV to log in with the user login information.
[0096] In an embodiment of the present invention, the TV end sends an identification code login request to the server end to obtain an identification code link on the server end that carries a session identifier corresponding to the TV end, and converts the identification code link into an identification code image, so that the client obtains the session identifier by scanning the identification code image, and sends the user login information corresponding to the client to the server end through the session identifier, so that the server end forwards the user login information to the TV end, so as to log in to the user account corresponding to the client across the TV end, thereby improving the account login efficiency of the TV end.
[0097] The specific execution process and technical effects of the above steps in this embodiment are similar to the specific execution process and technical effects in the above embodiments. Please refer to the above statements for details, and no further details will be given here.
[0098] The following will describe in detail the cross-terminal account login device of one or more embodiments of the present invention. Those skilled in the art will appreciate that these devices can be configured using commercially available hardware components through the steps taught in this solution.
[0099] Figure 4 A schematic diagram of a cross-terminal account login device provided by an embodiment of the present invention, the device is located at the server end, such as Figure 4 As shown, the device includes: a receiving module 11, a generating module 12, a first sending module 13, a query module 14, and a second sending module 15.
[0100] The receiving module 11 is used to receive an identification code login request sent by a TV terminal, wherein the identification code login request includes device information of the TV terminal.
[0101] The generating module 12 is used to generate an identification code link based on the identification code login request, wherein the identification code link includes a session identifier corresponding to the device information.
[0102] The first sending module 13 is used to send the identification code link to the TV end, so that the TV end converts the identification code link into an identification code image and displays it on the account login interface corresponding to the TV end, so that the user can scan the identification code image through the client to obtain the session identifier, and send an account synchronization login request to the server based on the session identifier, wherein the account synchronization login request includes the user login information and the session identifier.
[0103] The query module 14 is used to receive the polling request sent by the TV terminal, and query the user login information corresponding to the session identifier based on the polling request.
[0104] The second sending module 15 is used to send the user login information corresponding to the session identifier to the TV end if the user login information corresponding to the session identifier is queried, so that the TV end logs in the user account corresponding to the client in the account login interface corresponding to the TV end based on the user login information.
[0105] In an optional embodiment, the generation module 12 is specifically used to: generate a unique identification code corresponding to the device information in the identification code login request based on a session mechanism; determine the unique identification code as a session identifier corresponding to the device information; and generate an identification code link based on the session identifier.
[0106] In an optional embodiment, the first sending module 13 is also used to: receive an account synchronization login request sent by the client, the account synchronization login request including user login information and the session identifier; establish a mapping relationship between the user login information and the session identifier; and store the mapping relationship in a database.
[0107] In an optional embodiment, the second sending module 15 is further used to: receive an account login request sent by the TV end, the account login request including user login information; verify the user login information, and if the verification passes, allow the TV end to log in to the account with the user login information.
[0108] Figure 4 The device shown can execute the steps executed by the server in the aforementioned embodiment. The detailed execution process and technical effects can be found in the description of the aforementioned embodiment, which will not be repeated here.
[0109] In one possible design, the above Figure 4 The structure of the cross-terminal login device can be implemented as an electronic device, such as Figure 5 As shown, the computing device may include: a first processor 21, a first memory 22, and a first communication interface 23. The first memory 22 stores executable code, and when the executable code is executed by the first processor 21, the first processor 21 can at least implement the account cross-terminal login method executed by the server in the aforementioned embodiment.
[0110] In addition, an embodiment of the present invention provides a non-temporary machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor in the server, the processor can at least implement the account cross-terminal login method provided in the aforementioned embodiment.
[0111] Figure 6 A schematic diagram of a cross-terminal account login device provided by an embodiment of the present invention, wherein the device is located at a TV terminal, such as Figure 6As shown, the device includes: a response module 31, a receiving module 32, a display module 33, a request module 34, and a login module 35.
[0112] The response module 31 is used to respond to the account login request triggered by the user through the account login interface corresponding to the TV end, and send an identification code login request to the server end, so that the server end generates an identification code link based on the identification code login request, and the identification code link includes a session identifier.
[0113] The receiving module 32 is used to receive the identification code link sent by the server and convert the identification code link into an identification code image.
[0114] The display module 33 is used to display the identification code image on the account login interface so that the user can scan the identification code image through the client to obtain the session identifier, and send an account synchronization login request to the server based on the session identifier, wherein the account synchronization login request includes the user login information and the session identifier.
[0115] The request module 34 is used to poll the server for the user login information based on the session identifier, so that the server queries the user login information corresponding to the session identifier based on the polling request, and sends the queried user login information to the TV end.
[0116] The login module 35 is used to receive the user login information sent by the server, and log in the user account corresponding to the client in the account login interface corresponding to the TV based on the user login information.
[0117] In an optional embodiment, the receiving module 32 may be specifically configured to: convert the identification code link into an identification code image through an identification code tool class.
[0118] In an optional embodiment, the login module 35 can be specifically used to: generate an account login request based on the session identifier and the user login information; send the account login request to the server so that the server verifies the user login information, and if the verification is successful, allow the TV end to log in to the account with the user login information.
[0119] Figure 6 The device shown can execute the steps executed by the TV end in the aforementioned embodiment. The detailed execution process and technical effects can be found in the description of the aforementioned embodiment, which will not be repeated here.
[0120] In one possible design, the above Figure 6 The structure of the cross-terminal login device can be implemented as an electronic device, such as Figure 7As shown, the computing device may include: a second processor 41, a second memory 42, and a second communication interface 43. The second memory 42 stores executable code, and when the executable code is executed by the second processor 41, the second processor 41 can at least implement the account cross-terminal login method executed by the TV terminal in the aforementioned embodiment.
[0121] In addition, an embodiment of the present invention provides a non-temporary machine-readable storage medium, on which executable code is stored. When the executable code is executed by a processor of an electronic device on a TV side, the processor can at least implement the account cross-side login method provided in the aforementioned embodiment.
[0122] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment. Those of ordinary skill in the art may understand and implement the present invention without creative effort.
[0123] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0124] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A cross-terminal account login method, characterized in that: Applied to the server, the method includes: Receiving an identification code login request sent by a TV terminal, wherein the identification code login request includes device information of the TV terminal; Based on the identification code login request, generating an identification code link, wherein the identification code link includes a session identifier corresponding to the device information; Sending the identification code link to the TV end, so that the TV end converts the identification code link into an identification code image and displays it on the account login interface corresponding to the TV end, so that the user can scan the identification code image through the client to obtain the session identifier, and based on the session identifier, sending an account synchronization login request to the server end, wherein the account synchronization login request includes user login information and the session identifier; receiving a polling request sent by the TV terminal, and querying user login information corresponding to the session identifier based on the polling request; If user login information corresponding to the session identifier is queried, the user login information is sent to the TV end, so that the TV end logs in the user account corresponding to the client in the account login interface corresponding to the TV end based on the user login information.
2. The method according to claim 1, characterized in that The step of generating an identification code link based on the identification code login request comprises: Based on the session mechanism, generate a unique identification code corresponding to the device information in the identification code login request; Determine the unique identification code as a session identification corresponding to the device information; Based on the session identifier, an identification code link is generated.
3. The method according to claim 1, characterized in that The method further comprises: Receiving an account synchronization login request sent by the client, wherein the account synchronization login request includes user login information and the session identifier; Establishing a mapping relationship between the user login information and the session identifier; The mapping relationship is stored in a database.
4. The method according to claim 1, characterized in that: The method further comprises: Receiving an account login request sent by the TV terminal, wherein the account login request includes user login information; The user login information is verified, and if the verification is successful, the TV terminal is allowed to log in to the account with the user login information.
5. A cross-terminal account login method, characterized in that: Applied to a television terminal, the method includes: In response to an account login request triggered by a user through an account login interface corresponding to the television end, sending an identification code login request to a server end, so that the server end generates an identification code link based on the identification code login request, wherein the identification code link includes a session identifier; receiving the identification code link sent by the server, and converting the identification code link into an identification code image; Displaying the identification code image on the account login interface so that the user can scan the identification code image through the client to obtain the session identifier, and sending an account synchronization login request to the server based on the session identifier, wherein the account synchronization login request includes user login information and the session identifier; Based on the session identifier, polling the server for the user login information, so that the server queries the user login information corresponding to the session identifier based on the polling request, and sends the queried user login information to the television end; Receive the user login information sent by the server, and log in the user account corresponding to the client in the account login interface corresponding to the TV based on the user login information.
6. The method according to claim 5, characterized in that The step of converting the identification code link into an identification code image comprises: The identification code link is converted into an identification code image through the identification code tool class.
7. The method according to claim 5, characterized in that The step of logging in the user account corresponding to the client in the account login interface corresponding to the TV terminal based on the user login information includes: Generate an account login request based on the session identifier and the user login information; The account login request is sent to the server so that the server verifies the user login information. If the verification is successful, the TV is allowed to log in with the user login information.
8. A device for cross-terminal account login, characterized in that: The device is located at the service end, and the device includes: A receiving module, used for receiving an identification code login request sent by a TV terminal, wherein the identification code login request includes device information of the TV terminal; A generating module, configured to generate an identification code link based on the identification code login request, wherein the identification code link includes a session identifier corresponding to the device information; A first sending module, configured to send the identification code link to the TV end, so that the TV end converts the identification code link into an identification code image and displays it on the account login interface corresponding to the TV end, so that the user can scan the identification code image through the client to obtain the session identifier, and send an account synchronization login request to the server based on the session identifier, wherein the account synchronization login request includes user login information and the session identifier; A query module, configured to receive a polling request sent by the TV terminal, and query user login information corresponding to the session identifier based on the polling request; The second sending module is used to send the user login information corresponding to the session identifier to the TV end if the user login information corresponding to the session identifier is queried, so that the TV end logs in the user account corresponding to the client in the account login interface corresponding to the TV end based on the user login information.
9. An electronic device, characterized in that: include: A memory, a processor, and a communication interface; wherein the memory stores executable code, and when the executable code is executed by the processor, the processor executes the account cross-terminal login method as described in any one of claims 1 to 4 or any one of claims 5 to 7.
10. A non-transitory machine-readable storage medium, characterized in that: The non-temporary machine-readable storage medium stores executable code, and when the executable code is executed by a processor of a network device, the processor executes an account cross-terminal login method as described in any one of claims 1 to 4 or any one of claims 5 to 7.
Citation Information
Patent Citations
Method, system and device used for controlling login and based on two-dimensional code
CN103001973A
Account login method, device and system of intelligent television
CN103596021A
Method, device and system for logging in intelligent television terminal
CN104320703A
Account login method of smart television, smart television and terminal equipment
CN111385611A
Communication method, related device and related system
CN116938485A
