Large screen billboard remote login method, device, large screen billboard and storage medium
By sending login requests and long polling requests to the server, generating and verifying the login code, remote automatic login with large-screen kanban is realized, solving the problem of time-consuming and labor-consuming login in the factory workshop, and achieving convenient remote login operate.
Patent Information
- Application Number
- CN202410056418.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-15
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-01-15
AI Technical Summary
In the factory workshop, use the account password to log in to the large-screen kanban in turn to pull server data, which is time-consuming and labor-intensive and inconvenient to operate.
Generate a login code by sending a login request to the server, receiving and displaying the login code, generating a login notification, sending a long polling request to the server to generate push information, and logging in based on the push information and jumping to the target page.
It realizes remote automatic login of large-screen kanbans, saving labor costs, time and effort, and easy operation, avoiding the need to go to the factory workshop.
Smart Images

Figure CN118074956B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of Internet technology, and in particular to a large-screen billboard remote login method, device, large-screen billboard and storage medium. Background Art
[0002] The large-screen dashboard requires logging in before pulling server data. Currently, logging in to the large-screen dashboard usually uses the traditional account and password login method. It is necessary to go to each factory workshop to log in to all the large-screen dashboards in turn, which is time-consuming, labor-intensive, and inconvenient to operate.
[0003] The above contents are only used to assist in understanding the technical solution of the present invention and do not constitute an admission that the above contents are prior art. Summary of the invention
[0004] The main purpose of the present invention is to provide a large-screen billboard remote login method, device, large-screen billboard and storage medium, aiming to solve the technical problem in the prior art of using account passwords to log in to the large-screen billboard in the factory workshop in sequence to pull server data, which is time-consuming and labor-intensive.
[0005] To achieve the above object, the present invention provides a large-screen billboard remote login method, the method comprising the following steps:
[0006] Sending a login request to a server, so that the server generates a corresponding login code according to the login request;
[0007] Receive the login code returned by the server, and display the login code so that the user terminal can obtain the login code to log in, and generate a login notification and send it to the server;
[0008] Sending a long polling request to the server, so that the server generates push information according to the login code after receiving the long polling request and the login notification;
[0009] Receive the push information sent by the server, log in according to the push information and jump to the target page.
[0010] Optionally, the login request at least includes a request address, and sending the login request to the server so that the server generates a corresponding login code according to the login request includes:
[0011] Send a login request to the server so that the server generates a hash value based on the request address and a preset random number, converts the hash value into an initial login code based on a preset login code length, and replaces the last digit of the initial login code with a check value.
[0012] Optionally, sending a long polling request to the server so that the server generates push information according to the login code after receiving the long polling request and the login notification, includes:
[0013] A long polling request is sent to the server, so that after receiving the long polling request and the login notification, the server obtains the real-time verification value of the login code used by the user terminal, and when the real-time verification value meets the verification value, determines that the login code is valid and generates the push information.
[0014] Optionally, the large screen signage remote login method further includes:
[0015] When the real-time verification value does not conform to the verification value, the login code is determined to be invalid, and the login code is redisplayed so that the user terminal reacquires the login code to log in, and a login notification is regenerated and sent to the server.
[0016] Optionally, the target page is any one of a push-specified page and a preset page, and the receiving of the push information sent by the server, logging in according to the push information and jumping to the target page includes:
[0017] Receive the push information sent by the server and close the long polling request;
[0018] When the push information contains token information and page information, log in according to the token information, and jump to the push specified page according to the push information;
[0019] When the push information contains token information but no page information, login is performed according to the token information and the user is redirected to the preset page.
[0020] Optionally, before sending the login request to the server so that the server generates a corresponding login code according to the login request, the method further includes:
[0021] When the current scenario meets the preset scenario, the step of sending a login request to the server is executed according to the preset period, wherein the preset scenario at least includes a non-logged in scenario and a token expired scenario;
[0022] When the current scene does not conform to the preset scene, jump to the target page.
[0023] Optionally, after sending the login request to the server so that the server generates a corresponding login code according to the login request, the method further includes:
[0024] Get the current polling information to determine whether there is an opened long polling request;
[0025] When there is an opened long polling request, closing the opened long polling request, opening a new long polling request, and executing the step of sending the long polling request to the server;
[0026] When there is no opened long polling request, the long polling request is opened, and the step of sending the long polling request to the server is performed.
[0027] In addition, in order to achieve the above-mentioned purpose, the present invention also proposes a large-screen billboard remote login device, the large-screen billboard remote login device comprising:
[0028] A login code acquisition module, used to send a login request to a server, so that the server generates a corresponding login code according to the login request;
[0029] The login code acquisition module is further used to receive the login code returned by the server, and display the login code so that the user terminal can obtain the login code to log in, and generate a login notification to send to the server;
[0030] A push login module, used for sending a long polling request to the server, so that the server generates push information according to the login code after receiving the long polling request and the login notification;
[0031] The push login module is also used to receive the push information sent by the server, log in according to the push information and jump to the target page.
[0032] In addition, to achieve the above-mentioned purpose, the present invention also proposes a large-screen billboard, which includes: a memory, a processor, and a large-screen billboard remote login program stored in the memory and runable on the processor, and the large-screen billboard remote login program is configured to implement the steps of the large-screen billboard remote login method described above.
[0033] In addition, to achieve the above-mentioned purpose, the present invention also proposes a storage medium, on which a large-screen billboard remote login program is stored. When the large-screen billboard remote login program is executed by a processor, the steps of the large-screen billboard remote login method described above are implemented.
[0034] In the present invention, a login request is sent to the server so that the server generates a corresponding login code according to the login request, receives the login code returned by the server, and displays the login code so that the user terminal obtains the login code to log in, generates a login notification and sends it to the server, sends a long polling request to the server so that the server generates a push message according to the login code after receiving the long polling request and the login notification; receives the push message sent by the server, logs in according to the push message and jumps to the target page. Compared with using an account and password to log in to the large-screen billboard in the factory workshop in turn to pull server data, which is time-consuming and labor-intensive, the present invention can directly realize remote automatic login of the large-screen billboard by operating the user terminal, without going to the factory workshop, saving labor costs, time and labor, and easy to operate. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a structural schematic diagram of a large-screen billboard in a hardware operating environment involved in an embodiment of the present invention;
[0036] Figure 2 This is a flow chart of the first embodiment of the large screen billboard remote login method of the present invention;
[0037] Figure 3 A schematic diagram of a login code displayed on a large-screen billboard according to an embodiment of a remote login method for a large-screen billboard of the present invention;
[0038] Figure 4 This is a schematic diagram of a login code input page of an embodiment of a large-screen billboard remote login method of the present invention;
[0039] Figure 5 This is a schematic diagram of the overall process of an embodiment of a large-screen billboard remote login method of the present invention;
[0040] Figure 6 This is a flow chart of a second embodiment of a large screen billboard remote login method of the present invention;
[0041] Figure 7 This is a structural block diagram of the first embodiment of the large-screen billboard remote login device of the present invention.
[0042] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0043] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0044] Reference Figure 1 , Figure 1 It is a schematic diagram of the structure of a large-screen billboard in the hardware operating environment involved in the embodiment of the present invention.
[0045] like Figure 1 As shown, the large screen signage may include: a processor 1001, such as a central processing unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (Wireless-Fidelity, Wi-Fi) interface). The memory 1005 may be a high-speed random access memory (Random Access Memory, RAM) memory, or a stable non-volatile memory (Non-Volatile Memory, NVM), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0046] Those skilled in the art will understand that Figure 1 The structure shown in the figure does not constitute a limitation on the large-screen billboard, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.
[0047] like Figure 1 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and a large-screen billboard remote login program.
[0048] exist Figure 1 In the large-screen billboard shown, the network interface 1004 is mainly used for data communication with the network server; the user interface 1003 is mainly used for data interaction with the user; the processor 1001 and the memory 1005 in the large-screen billboard of the present invention can be set in the large-screen billboard, and the large-screen billboard calls the large-screen billboard remote login program stored in the memory 1005 through the processor 1001, and executes the large-screen billboard remote login method provided by the embodiment of the present invention.
[0049] The embodiment of the present invention provides a large screen billboard remote login method, referring to Figure 2 , Figure 2 The figure is a flow chart of a first embodiment of a large-screen billboard remote login method of the present invention.
[0050] In this embodiment, the large screen signage remote login method includes the following steps:
[0051] Step S10: Send a login request to the server, so that the server generates a corresponding login code according to the login request.
[0052] It should be noted that the execution subject of this embodiment is a large-screen billboard, and a large-screen billboard remote login program is provided in the large-screen billboard. Remote login of the large-screen billboard is achieved by running the large-screen billboard remote login program.
[0053] It can be understood that the server is the server from which the large screen billboard pulls data, and the login request is a request for logging into the large screen billboard. Different large screen billboards can send login requests to different servers according to actual needs, and this embodiment does not limit this. Each server can receive login requests sent by multiple large screen billboards, and the specific number is determined according to actual conditions, and this embodiment does not limit this.
[0054] It should be understood that the login code is an identification code for login, which is generated by the server and then returned to the large screen billboard. The number of digits of the login code can be set according to actual needs, for example: 6 digits, and this embodiment does not limit this. Generally speaking, the login codes of different large screen billboards are different, that is, after receiving the login requests of different large screen billboards, the server will generate different login codes and return them to the corresponding large screen billboards.
[0055] Furthermore, before step S10, it also includes: when the current scene meets the preset scene, executing the step of sending a login request to the server according to the preset cycle, and the preset scene at least includes a non-logged in scene and a token expired scene; when the current scene does not meet the preset scene, jumping to the target page.
[0056] It should be noted that the preset scenario refers to the scenario where login is required, including at least the non-logged in scenario and the token expired scenario, that is, the scenario where there is no login and the token expired. The current scenario meets the preset scenario, that is, the large-screen billboard is not currently logged in or the current token has expired. At this time, the large-screen billboard needs to log in to obtain data from the server, and a login request will be sent to the server.
[0057] It can be understood that the preset period refers to the set period for sending login requests, for example: 5 minutes, which can be set according to actual needs. This embodiment does not limit this. If the preset period is set to 5 minutes, the large-screen billboard will send a login request to the server every 5 minutes.
[0058] It should be understood that the target page refers to the page that the large screen billboard needs to jump to, which is usually the default page or the page specified by the server. If the current scenario does not meet the preset scenario, it is usually considered that the large screen billboard has been logged in, and the data of the server can be directly obtained to jump to the target page.
[0059] In the specific implementation, if there is no login or the current token has expired, a login request is sent to the server every preset period, and the server generates a corresponding login code. Otherwise, it jumps directly to the target page.
[0060] Step S20: receiving the login code returned by the server, and displaying the login code so that the user terminal can obtain the login code to log in, and generating a login notification to send to the server.
[0061] It should be noted that the large screen billboard receives the login code returned by the server and displays it, such as Figure 3 As shown, the login code displayed on the large screen is 931353.
[0062] It is understood that the user terminal refers to the terminal used by the user, which can be a mobile terminal, such as a smart phone, or a computer, which can be selected according to actual needs, and this embodiment does not limit this. The user terminal can obtain the login code by obtaining the display content of the large-screen billboard, or it can be sent to the user terminal by the large-screen billboard, or other suitable methods can be used, and this embodiment does not limit this.
[0063] It should be understood that the user needs to enter a login code at the user terminal to log in, for example: Figure 4 As shown, the login code is entered at a designated location of the large screen signage management webpage / website in the computer, and the large screen signage can obtain a logged-in state. The user usually needs to log in to the account before entering the login code.
[0064] It should be noted that after the user terminal enters the login code to log in, the server needs to be notified. The login notification is the notification generated for the user terminal login, which is sent to the server through the backend interface.
[0065] In a specific implementation, the large-screen billboard displays the received login code, and the user enters the login code in the user terminal to log in. The large-screen billboard obtains the login status, and the user terminal notifies the server through the back-end interface.
[0066] Step S30: sending a long polling request to the server, so that the server generates push information according to the login code after receiving the long polling request and the login notification.
[0067] It can be understood that the long polling request refers to the long polling for the information pushed by the server. Sending a long polling request to the server can be considered as subscribing to the server through long polling and waiting for the server to push the corresponding information.
[0068] It should be understood that push information is information pushed by the server to the large-screen billboard. The server can generate a unique code based on the previously generated login code and a timestamp. When subscribing to push information, the server will find the corresponding large-screen billboard based on the unique code and send the push information.
[0069] Furthermore, before step S30, it also includes: obtaining current polling information to determine whether there is an enabled long polling request; when there is an enabled long polling request, closing the enabled long polling request, enabling a new long polling request, and executing the step of sending a long polling request to the server; when there is no enabled long polling request, enabling the long polling request, and executing the step of sending a long polling request to the server.
[0070] It should be noted that after the large-screen billboard obtains the login code, it will start a long polling request and subscribe to the server to obtain push information.
[0071] It is understandable that since the large-screen billboard will send a login request at every preset period, a login code generated by the server will be obtained. In order to ensure the uniqueness of the login code between the large-screen billboard and the server, after obtaining the new login code, it is also necessary to determine whether there is a long polling request that has been opened, that is, the long polling request has been opened. If so, it is necessary to close the opened long polling request and reopen a long polling request. If not, directly open the long polling request.
[0072] Step S40: receiving the push information sent by the server, logging in according to the push information and jumping to the target page.
[0073] Further, the step S40 includes: receiving the push information sent by the server and closing the long polling request; when the push information contains token information and page information, logging in according to the token information and jumping to the push specified page according to the push information; when the push information contains token information but no page information, logging in according to the token information and jumping to the preset page.
[0074] It should be understood that the target page is any one of the push-specified page and the preset page, the preset page is the default page, and the push-specified page is the page specified by the server.
[0075] It should be noted that token information is the token used to log in to the big screen billboard, and page information is the information of the page specified by the server. Generally speaking, the big screen billboard logs in based on the token information pushed by the server. If the server pushes the page information, it means that the server has specified the page to jump to, and the big screen billboard jumps to the page specified by the server. If the server does not push the page information, it means that the server has not specified the page to jump to, and it usually jumps to the default page.
[0076] In the specific implementation, the large-screen billboard receives the push information from the server, closes the long polling request, logs in through the token and jumps to the default page or the page specified by the server.
[0077] like Figure 5 As shown in the overall process diagram, when the user is not logged in or the token has expired, the large-screen board jumps to the login code display page, requests the server interface at a regular interval, obtains the login code, and the server generates the login code and returns it to the large-screen board. The large-screen board displays the login code returned by the server and starts long polling. After the user logs in to the account on the user terminal, he enters the login code at the specified location and notifies the server through the back-end interface. The server pushes out the information containing the token. The large-screen board receives the push, closes the long polling, logs in through the token, and jumps to the specified page.
[0078] In this embodiment, a login request is sent to the server so that the server generates a corresponding login code according to the login request, receives the login code returned by the server, and displays the login code so that the user terminal obtains the login code to log in, generates a login notification and sends it to the server, sends a long polling request to the server so that the server generates a push message according to the login code after receiving the long polling request and the login notification; receives the push message sent by the server, logs in according to the push message and jumps to the target page. Compared with using an account and password to log in to the large-screen billboard in the factory workshop in turn to pull server data, which is time-consuming and labor-intensive, this embodiment can directly realize remote automatic login of the large-screen billboard by operating the user terminal, without going to the factory workshop, saving labor costs, time and effort, and easy to operate.
[0079] Reference Figure 6 , Figure 6 This is a flow chart of a second embodiment of a large-screen billboard remote login method of the present invention.
[0080] Based on the above embodiment, step S10 includes:
[0081] Step S101: Send a login request to the server, so that the server generates a hash value according to the request address and a preset random number, converts the hash value into an initial login code according to a preset login code length, and replaces the last digit of the initial login code with a check value.
[0082] It should be noted that the login request at least includes a request address, which is the address of the large screen billboard, which can be an IP address. The login request can also include other information, which is not limited in this embodiment. The preset random number is a randomly generated random number, and the value obtained by the hash algorithm of the request address and the preset random number is the hash value. The preset login code length is the length of the set login code. The hash value is modulo the login code length to obtain the initial login code, that is, the initial login code. In order to prevent the first digit after the modulo from being 0 and causing the number of digits to change, the following calculation relationship is used:
[0083] R=r%(mod-mod / 10)+mod / 10
[0084] In the formula, R represents the initial login code, r represents the hash value, and the mod value obtained according to the preset login code length can be calculated in the following way:
[0085] var mod uint64 = 1
[0086] for i:=0;i <length;i++{
[0087] mod*=10
[0088] }
[0089] Among them, length is the preset login code length, i is an integer in the interval [0, length), and the corresponding mod value is calculated according to the preset login code length, and then the initial login code R is calculated according to the mod value and the hash value r.
[0090] It can be understood that the last digit value is the value of the last digit of the initial login code, and the check value is the value of the check digit. It can be calculated in any suitable way. This embodiment does not limit this. The check digit is usually set at the last digit of the login code. For example: if the login code is 931353, the check value is 3.
[0091] It should be understood that after the initial login code is obtained, the last digit is used as a check digit, and the value of the last digit is replaced by the check value to obtain the login code.
[0092] Furthermore, the step S30 includes:
[0093] Step S301: Send a long polling request to the server, so that the server obtains the real-time verification value of the login code used by the user terminal after receiving the long polling request and the login notification. When the real-time verification value meets the verification value, it is determined that the login code is valid and the push information is generated.
[0094] It should be noted that after the user logs in using the obtained login code on the user terminal, the login code used must be verified to confirm whether it is valid. The real-time check value is the value of the last digit (check digit) of the login code used by the user terminal to log in. If the real-time check value meets the check value, it means that the login code used by the user terminal to log in is the login code generated by the server, and the login code is valid, and the corresponding push information is generated. For example: assuming that the login code generated by the server is 931353 and the check value is 3, if the login code used by the user terminal to log in is 931353, the real-time check value is 3, and the real-time check value meets the check value, the login code is considered valid.
[0095] Furthermore, when the real-time verification value does not conform to the verification value, the login code is determined to be invalid, and the login code is redisplayed so that the user terminal reacquires the login code to log in, and a login notification is regenerated and sent to the server.
[0096] It is understandable that if the real-time check value does not match the check value, it means that the login code used by the user terminal to log in is different from the login code generated by the server, and the login code is invalid. At this time, you need to log in again. For example, if the login code generated by the server is 931353 and the check value is 3, if the login code used by the user terminal to log in is 931355, the real-time check value is 5. At this time, the real-time check value does not match the check value, and the login code is considered invalid. Generally speaking, re-login needs to be completed within a certain time range, for example: within 2 minutes, and this embodiment does not limit this.
[0097] In this embodiment, a login request is sent to the server, so that the server generates a hash value according to the request address and the preset random number, converts the hash value into an initial login code according to the preset login code length, and replaces the last digit value of the initial login code with a check value, and sends a long polling request to the server, so that the server obtains the real-time check value of the login code used by the user terminal after receiving the long polling request and the login notification, and when the real-time check value meets the check value, determines that the login code is valid, and generates push information. In this embodiment, the large-screen billboard can be logged in directly by operating the user terminal, without going to the factory workshop, to achieve remote automatic login of the large-screen billboard, save labor costs, time and effort, and is easy to operate. In addition, this embodiment sets a check bit in the login code, and the validity of the login code is judged by the check bit during login, ensuring that the large-screen billboard and the login code can correspond one-to-one, so that the server can push accurate information.
[0098] In addition, an embodiment of the present invention further proposes a storage medium, on which a large-screen billboard remote login program is stored. When the large-screen billboard remote login program is executed by a processor, the steps of the large-screen billboard remote login method described above are implemented.
[0099] Reference Figure 7 , Figure 7 This is a structural block diagram of the first embodiment of the large-screen billboard remote login device of the present invention.
[0100] like Figure 7 As shown, the large screen billboard remote login device proposed in the embodiment of the present invention includes:
[0101] The login code acquisition module 10 is used to send a login request to the server, so that the server generates a corresponding login code according to the login request.
[0102] The login code acquisition module 10 is also used to receive the login code returned by the server, and display the login code so that the user terminal can obtain the login code to log in, and generate a login notification to send to the server.
[0103] The push login module 20 is used to send a long polling request to the server, so that the server generates push information according to the login code after receiving the long polling request and the login notification.
[0104] The push login module 20 is also used to receive the push information sent by the server, log in according to the push information and jump to the target page.
[0105] In this embodiment, a login request is sent to the server so that the server generates a corresponding login code according to the login request, receives the login code returned by the server, and displays the login code so that the user terminal obtains the login code to log in, generates a login notification and sends it to the server, sends a long polling request to the server so that the server generates a push message according to the login code after receiving the long polling request and the login notification; receives the push message sent by the server, logs in according to the push message and jumps to the target page. Compared with using an account and password to log in to the large-screen billboard in the factory workshop in turn to pull server data, which is time-consuming and labor-intensive, this embodiment can directly realize remote automatic login of the large-screen billboard by operating the user terminal, without going to the factory workshop, saving labor costs, time and effort, and easy to operate.
[0106] In one embodiment, the login code acquisition module 10 is also used to send a login request to the server, so that the server generates a hash value based on the request address and a preset random number, converts the hash value into an initial login code based on a preset login code length, and replaces the last digit value of the initial login code with a check value.
[0107] In one embodiment, the push login module 20 is also used to send a long polling request to the server, so that the server obtains the real-time verification value of the login code used by the user terminal after receiving the long polling request and the login notification. When the real-time verification value is consistent with the verification value, it is determined that the login code is valid and the push information is generated.
[0108] In one embodiment, the push login module 20 is also used to determine that the login code is invalid when the real-time verification value does not meet the verification value, and redisplay the login code so that the user terminal can re-acquire the login code to log in, and regenerate a login notification and send it to the server.
[0109] In one embodiment, the push login module 20 is further used to receive the push information sent by the server and close the long polling request;
[0110] When the push information contains token information and page information, log in according to the token information, and jump to the push specified page according to the push information;
[0111] When the push information contains token information but no page information, login is performed according to the token information and the user is redirected to the preset page.
[0112] In one embodiment, the push login module 20 is further used to execute the step of sending a login request to the server according to a preset period when the current scenario meets the preset scenario, and the preset scenario at least includes a non-logged in scenario and a token expired scenario;
[0113] When the current scene does not conform to the preset scene, jump to the target page.
[0114] In one embodiment, the login code acquisition module 10 is further used to obtain current polling information to determine whether a long polling request has been opened;
[0115] When there is an opened long polling request, closing the opened long polling request, opening a new long polling request, and executing the step of sending the long polling request to the server;
[0116] When there is no opened long polling request, the long polling request is opened, and the step of sending the long polling request to the server is performed.
[0117] It should be understood that the above is only an example and does not constitute any limitation on the technical solution of the present invention. In specific applications, technicians in this field can make settings as needed, and the present invention does not limit this.
[0118] It should be noted that the workflow described above is merely illustrative and does not limit the scope of protection of the present invention. In practical applications, technicians in this field can select part or all of them according to actual needs to achieve the purpose of the present embodiment, and no limitation is made here.
[0119] In addition, for technical details that are not described in detail in this embodiment, please refer to the large-screen billboard remote login method provided in any embodiment of the present invention, and will not be repeated here.
[0120] In addition, it should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or system. 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 process, method, commodity or system including the element.
[0121] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0122] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory (ROM) / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.
[0123] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for remote login to a large screen billboard. It is characterized in that The large screen signage remote login method comprises: Sending a login request to a server, so that the server generates a corresponding login code according to the login request; Receive the login code returned by the server, and display the login code so that the user terminal can obtain the login code to log in, and generate a login notification and send it to the server; Sending a long polling request to the server, so that the server generates push information according to the login code after receiving the long polling request and the login notification; Receive the push information sent by the server, log in according to the push information and jump to the target page; The login request at least includes a request address, and sending the login request to the server so that the server generates a corresponding login code according to the login request includes: Sending a login request to the server, so that the server generates a hash value according to the request address and a preset random number, converts the hash value into an initial login code according to a preset login code length, and replaces the last digit value of the initial login code with a check value; The sending of the long polling request to the server, so that the server generates push information according to the login code after receiving the long polling request and the login notification, includes: Sending a long polling request to the server, so that the server obtains a real-time verification value of the login code used by the user terminal after receiving the long polling request and the login notification, and determines that the login code is valid when the real-time verification value meets the verification value, and generates the push information; The large screen signage remote login method further includes: When the real-time verification value does not conform to the verification value, the login code is determined to be invalid, and the login code is redisplayed so that the user terminal reacquires the login code to log in, and a login notification is regenerated and sent to the server.
2. The method according to claim 1, It is characterized in that The target page is any one of a push-specified page and a preset page, and the receiving of the push information sent by the server, logging in according to the push information and jumping to the target page includes: Receive the push information sent by the server and close the long polling request; When the push information contains token information and page information, log in according to the token information, and jump to the push specified page according to the push information; When the push information contains token information but no page information, login is performed according to the token information and the user is redirected to the preset page.
3. The method according to claim 1 or 2, It is characterized in that Before sending the login request to the server so that the server generates a corresponding login code according to the login request, the method further includes: When the current scenario meets the preset scenario, the step of sending a login request to the server is executed according to the preset period, wherein the preset scenario at least includes a non-logged in scenario and a token expired scenario; When the current scene does not conform to the preset scene, jump to the target page.
4. The method according to claim 3, It is characterized in that After sending the login request to the server so that the server generates a corresponding login code according to the login request, the method further includes: Get the current polling information to determine whether there is a long polling request that has been opened; When there is an opened long polling request, closing the opened long polling request, opening a new long polling request, and executing the step of sending the long polling request to the server; When there is no opened long polling request, the long polling request is opened, and the step of sending the long polling request to the server is performed.
5. A large screen signage remote login device, It is characterized in that The large screen signage remote login device comprises: A login code acquisition module, used to send a login request to a server, so that the server generates a corresponding login code according to the login request, wherein the login request at least includes a request address; The login code acquisition module is further used to receive the login code returned by the server, and display the login code so that the user terminal can obtain the login code to log in, and generate a login notification to send to the server; A push login module, used for sending a long polling request to the server, so that the server generates push information according to the login code after receiving the long polling request and the login notification; The push login module is also used to receive the push information sent by the server, log in according to the push information and jump to the target page; The login code acquisition module is further used to send a login request to the server, so that the server generates a hash value according to the request address and a preset random number, converts the hash value into an initial login code according to a preset login code length, and replaces the last digit value of the initial login code with a check value; The push login module is further used to send a long polling request to the server, so that the server obtains the real-time verification value of the login code used by the user terminal after receiving the long polling request and the login notification, and determines that the login code is valid when the real-time verification value meets the verification value, and generates the push information; The push login module is also used to determine that the login code is invalid when the real-time verification value does not meet the verification value, and redisplay the login code so that the user terminal can re-acquire the login code to log in, and regenerate a login notification and send it to the server.
6. A large screen billboard, It is characterized in that The large-screen billboard includes: a memory, a processor, and a large-screen billboard remote login program stored in the memory and executable on the processor, wherein the large-screen billboard remote login program is configured to implement the steps of the large-screen billboard remote login method as described in any one of claims 1 to 4.
7. A storage medium, It is characterized in that The storage medium stores a large-screen billboard remote login program, and when the large-screen billboard remote login program is executed by the processor, the steps of the large-screen billboard remote login method according to any one of claims 1 to 4 are implemented.
