Fast login method, device, equipment and storage medium based on RPA framework

By pre-generating a login link set and using RPA tools to detect browser types and user information, the problem of long QR code login response time is solved, and a fast and flexible login process is achieved, which is suitable for complex application scenarios such as internal enterprise systems and online education platforms.

CN119135682BActive Publication Date: 2025-10-03SHENZHEN LIANYIRONG XIAOWEIFENG TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411477041.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-22
Publication Date
2025-10-03
Estimated Expiration
2044-10-22

AI Technical Summary

Technical Problem

In the existing technology, when users log in by scanning a QR code generated by the server, the response time is long, especially in high concurrency situations, delays are prone to occur, and the generation and display of the QR code depends on real-time processing on the server side, resulting in performance bottlenecks.

Method used

A method based on the RPA framework is used to pre-generate multiple login link sets. The target login link is selected from them based on the preset login link screening strategy and sent to the client. The client converts it into a QR code for scanning and authorization login. At the same time, the RPA tool is used to detect the browser type and user information to obtain the target user data set.

Benefits of technology

It reduces server resource consumption, shortens response time, improves system compatibility and flexibility, can support a higher number of users in a high-concurrency environment, and reduces CPU and memory usage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135682B_ABST
    Figure CN119135682B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of the Internet and discloses a fast login method, apparatus, device and storage medium based on an RPA framework, comprising obtaining a login link set corresponding to an intelligent authorization login instruction; obtaining a target login link from the login link set based on a login link screening strategy and sending it to a client; obtaining a target browser type and target user information sent by the client based on the target login link; if the RPA tool receives successful login flag data sent by the client, then obtaining a target user data set corresponding to the target user information from a preset business server based on a data acquisition strategy in the RPA tool. In an embodiment of the present invention, a login link set corresponding to a login QR code can be pre-generated and one of the target login links can be selected and sent to the client, thereby avoiding the resource consumption of the system caused by real-time generation of the login QR code and reducing the response time to the client request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a quick login method, device, equipment, and storage medium based on an RPA framework. Background Art

[0002] Currently, when a user needs to authorize another user (such as a server) to log in to the system, they can do so by scanning a QR code. The first method involves the user using their phone to scan a QR code generated by another user (such as the server) and displayed on a webpage. The other method involves the server sending a QR code directly to the client, which the user then scans to log in.

[0003] In the first approach, after a user issues a login request on the client, another user, such as a server, generates a unique QR code and displays it on the browser page. The user scans the QR code with their mobile device, and the server verifies the user's identity based on the information contained in the QR code and allows login. While this approach offers greater security, since both QR code generation and display rely on real-time server-side processing, it can result in longer response times, making login delays more likely, especially in high-concurrency scenarios. While latency in QR code generation can be reduced by optimizing server performance or using load balancing technologies, performance bottlenecks can still occur when processing large numbers of concurrent requests.

[0004] In the second approach, other users, such as servers, pre-generate QR codes and send them to the user's client, speeding up login. However, this approach requires efficient communication between the client and server, and the QR codes have a short validity period, increasing management and security complexity. Summary of the Invention

[0005] The embodiments of the present invention provide a quick login method, device, equipment and storage medium based on the RPA framework, which aims to solve the problem in the prior art that when a user needs to authorize other users such as a server to log in to the system, the user uses a mobile phone to scan a QR code generated by the server and displayed on the web page. The generation and display of the QR code rely on real-time processing on the server side, which may result in a long response time.

[0006] In a first aspect, an embodiment of the present invention provides a quick login method based on an RPA framework, which includes:

[0007] In response to the smart authorization login instruction sent by the client, obtaining a pre-generated login link set corresponding to the smart authorization login instruction; wherein the login link set includes multiple login links and each of the links can be parsed and restored into a login QR code, and the login QR code is a QR code for authorizing login to a preset business server;

[0008] Obtaining a target login link from the login link set based on a preset login link screening strategy, and sending the target login link to the client, so that the client restores the target login link to a target login QR code and scans the code to authorize login;

[0009] Obtaining the target browser type and target user information sent by the client based on the target login link, and detecting the login flag data corresponding to the target login link and the target browser type based on the locally deployed RPA tool; and

[0010] If the RPA tool receives the successful login flag data sent by the client, it obtains the target user data set corresponding to the target user information from the preset business server based on the data acquisition strategy preset in the RPA tool and the target user information corresponding to the client.

[0011] In a second aspect, an embodiment of the present invention further provides a fast login device based on the RPA framework, which includes:

[0012] a login link set acquisition unit, configured to, in response to a smart authorization login instruction sent by a client, acquire a pre-generated login link set corresponding to the smart authorization login instruction; wherein the login link set includes a plurality of login links that can be parsed and restored into a login QR code, and the login QR code is a QR code for authorizing login to a preset business server;

[0013] a target login link acquisition unit, configured to acquire a target login link from the login link set based on a preset login link screening strategy, and send the target login link to the client, so that the client restores the target login link to a target login QR code and scans the code to authorize login;

[0014] a target information acquisition unit, configured to acquire the target browser type and target user information sent by the client based on the target login link, and detect login flag data corresponding to the target login link and the target browser type based on a locally deployed RPA tool; and

[0015] A target data acquisition unit is used to obtain a target user data set corresponding to the target user information from a preset business server based on a data acquisition strategy preset in the RPA tool and the target user information corresponding to the client if the RPA tool receives successful login flag data sent by the client.

[0016] In a third aspect, an embodiment of the present invention further provides a computer device comprising a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a processor, the method described in the first aspect can be implemented.

[0018] An embodiment of the present invention provides a fast login method, apparatus, device and storage medium based on an RPA framework, the method comprising: in response to an intelligent authorization login instruction sent by a client, obtaining a pre-generated login link set corresponding to the intelligent authorization login instruction; wherein the login link set includes multiple login links and all can be parsed and restored into a login QR code, and the login QR code is a QR code for authorizing login to a preset business server; based on a preset login link screening strategy, obtaining a target login link from the login link set, and sending the target login link to the client, so that the client restores the target login link to a target login QR code and scans the code to authorize login; obtaining the target browser type and target user information sent by the client based on the target login link, and detecting the login flag data corresponding to the target login link and the target browser type based on a locally deployed RPA tool; if the RPA tool receives the successful login flag data sent by the client, then based on the data acquisition strategy preset in the RPA tool and the target user information corresponding to the client, obtaining the target user data set corresponding to the target user information from the preset business server. In the embodiment of the present invention, a login link set corresponding to the login QR code can be pre-generated and one of the target login links can be selected and sent to the client, thereby avoiding the resource consumption of the system caused by real-time generation of the login QR code and reducing the response time to the client request. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In order to more clearly illustrate the technical solutions of 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 paying any creative work.

[0020] Figure 1 A schematic diagram of an application scenario of a quick login method based on an RPA framework provided in an embodiment of the present invention;

[0021] Figure 2 A flowchart of a quick login method based on the RPA framework provided in an embodiment of the present invention;

[0022] Figure 3 Another flowchart of a quick login method based on the RPA framework provided in an embodiment of the present invention;

[0023] Figure 4 A schematic diagram of a sub-process of a quick login method based on the RPA framework provided in an embodiment of the present invention;

[0024] Figure 5 This is another sub-process diagram of the quick login method based on the RPA framework provided in an embodiment of the present invention;

[0025] Figure 6 A schematic block diagram of a fast login device based on the RPA framework provided in an embodiment of the present invention;

[0026] Figure 7 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0027] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of them. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present invention without making any creative efforts shall fall within the scope of protection of the present invention.

[0028] It will be understood that when used in this specification and the appended claims, the terms “comprises” and “comprising” indicate the presence of described features, integers, steps, operations, elements and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0029] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the present invention. As used in the specification and appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.

[0030] It should be further understood that the term "and / or" used in the present description and appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0031] Please also see Figure 1 and Figure 2 , Figure 1 This is a schematic diagram of a scenario of a quick login method based on the RPA framework according to an embodiment of the present invention. Figure 2This is a flow chart of a quick login method based on the RPA framework provided by an embodiment of the present invention. The method is applied to a server 10, which can be connected to a client 20 for communication, and the server 10 is also connected to a preset business server 30 for communication. Figure 2 As shown, the method includes the following steps S110-S140.

[0032] S110 : In response to the smart authorization login instruction sent by the client, obtain a pre-generated login link set corresponding to the smart authorization login instruction.

[0033] The login link set includes multiple login links, all of which can be parsed and restored into a login QR code, and the login QR code is a QR code for authorizing login to a preset business server.

[0034] In this embodiment, the technical solution is described with the server as the execution entity. When a client needs to authorize the server to log in to a pre-defined service server, the user first selects the scanning QR code method in the client to log in to the pre-defined service server, triggering the generation of a smart authorization login instruction. Since it is the client that authorizes the server to log in to the pre-defined service server, the login QR code received by the client is not generated and sent by the pre-defined service server, but rather a pre-generated login link set sent by the server corresponding to the smart authorization login instruction.

[0035] The login link set includes multiple login links, each of which can be parsed and restored into a login QR code. The login link set received by the client from the server is not the original login QR code image set, effectively reducing the amount of data transmitted from the server to the client and lowering the server load. Subsequently, when the client scans any parsed and valid login QR code in the login link set, it authorizes the server to log in to the preset service server, effectively authorizing the server to log in to the preset service server on its behalf.

[0036] Of course, in the embodiments of the present application, the technical solution is described by taking the interaction between a client and a server as an example. The server can also interact with multiple clients simultaneously to achieve a high concurrency scenario, and the process of each client interacting with the server can refer to the example of the interaction between a client and a server described above.

[0037] In one embodiment, if Figure 3 As shown, before step S110, the following steps are also included:

[0038] S101. Acquire multiple pre-created browser instances, and import a preset login address of a preset business server into each browser instance, so that each browser instance jumps to a login page corresponding to the preset login address;

[0039] S102: For each browser instance, a login QR code and a valid time of the QR code are obtained from the corresponding login page, a login link is generated based on the login QR code and the valid time of the QR code, and the login link is associated with the corresponding browser instance;

[0040] S103: The login link set is composed of login links corresponding to each browser instance.

[0041] In this embodiment, in order to improve the efficiency of the client authorizing the server to log in to the preset business server, multiple login QR codes can be pre-generated in the server at intervals of a preset generation cycle (the preset generation cycle is considered to be the generation cycle for generating a login link set in the server, such as setting the preset generation cycle to 10 minutes, 30 minutes, 1 hour, 2 hours, 4 hours, etc., of course, the specific implementation is not limited to the above example and can be flexibly set according to the actual needs of the user), and the multiple login QR codes are recorded with the corresponding QR code validity period, and corresponding login links are generated respectively. Of course, in order to achieve the preset generation of multiple login QR codes in the server, multiple browser instances can be pre-created in the server, and then the preset login address of the preset business server is imported into each browser instance, so that each browser instance jumps to the login page corresponding to the preset login address. Each browser instance can correspond to a browser environment to avoid using a single browser environment. In this way, regardless of the browser used by the client, a corresponding response from the server can be obtained.

[0042] After each browser instance has adjusted the login page corresponding to the preset login address, when the preset business server sends a QR code to the server, each browser instance obtains a login QR code with a QR code validity period. For example, if the preset business server sends a login QR code to the server with a generation time of T1 and a QR code validity period of Td, then the login QR code is valid within the QR code validity period corresponding to [T1, T1+Td]. Specifically, after each browser instance obtains the login QR code and the QR code validity period in the corresponding login page, the login QR code can be intercepted and converted into a login link after data parsing, and the login link is bound to the corresponding browser instance and cached locally from the server. Afterwards, the login links corresponding to each browser instance obtained in this round of login link generation cycle are summarized to obtain the login link set. By using the above-mentioned method of presetting multiple login links for multiple browser instances, the login link can be quickly returned when the user requests it, which greatly reduces the user waiting time. According to experimental data, in a simulated high-concurrency environment, the average response time of the system using the technical solution of the present application is shortened by about 50%.

[0043] Furthermore, by dynamically and intelligently pre-generating multiple login links (essentially, multiple login QR codes), the server's computing pressure during peak hours is effectively reduced, avoiding the resource consumption required to generate QR codes in real time. Furthermore, the method of the embodiment of the present application can better allocate server resources and avoid system resource competition caused by instantaneous request peaks. Experimental results show that under the same hardware conditions, the method of the embodiment of the present application can support a higher number of concurrent users, and the server's CPU and memory utilization are both reduced, saving system resources.

[0044] In one embodiment, before step S101, the method further includes:

[0045] Loading a preset browser in the server virtual environment and starting a debugging mode of the preset browser;

[0046] Correspondingly, multiple browser instances are constructed in the debugging mode of the preset browser.

[0047] In this embodiment, in order to create multiple browser instances in the server, virtualization technology can be used in the server to batch load the preset browsers running in the server virtual environment, and the debugging mode of the preset browsers can be turned on. In the debugging mode of the preset browsers, the centralized management and scheduling of the browsers can be implemented based on specified operation instructions such as remote instructions, and multiple browser instances can also be constructed accordingly in the debugging mode.

[0048] This approach overcomes the prior art limitation of supporting only a single browser environment during user login. Regardless of the browser used by the client, a rapid response is achieved, greatly enhancing the system's compatibility and flexibility. This multi-browser support mechanism makes the embodiments of this application suitable for complex application scenarios, such as internal enterprise systems and online education platforms, which require support for multiple terminal devices.

[0049] In one embodiment, the corresponding construction of multiple browser instances in the debugging mode of the preset browser includes:

[0050] Get the total number of client requests currently pending in the local computing queue;

[0051] Determining an estimated number of browser instances to be pre-created based on the total number of currently pending client requests and a preset browser instance scaling strategy;

[0052] A corresponding number of browser instances are created according to the pre-estimated number of browser instances.

[0053] In this embodiment, to achieve intelligent and dynamic creation of browser instances on the server, the server's computation queue (which can be considered a task queue) is first retrieved, and the total number of pending client requests in the computation queue is obtained. A browser instance scaling policy is also pre-configured on the server. Once the total number of pending client requests in the computation queue is known, the server can quickly determine whether to scale up or down the browser instance creation process based on the total number of pending client requests and the pre-configured browser instance scaling policy.

[0054] For example, first obtain the first number corresponding to the currently available browser instances in the server, and then calculate a first ratio between the total number of currently pending client requests and the first number. If it is determined that the first ratio belongs to a first preset ratio value interval, such as the first preset ratio value interval is [100%, +∞), then perform a browser instance expansion operation based on the browser instance expansion sub-strategy in the browser instance expansion and contraction strategy (such as doubling the second number of the maximum browser instances that can currently be created in the server, that is, the maximum browser instances that can currently be created in the server are updated to twice the second number, that is, the estimated number of browser instances to be pre-created is 2*the second number-the second number). Number = second number); if it is determined that the first ratio belongs to the second preset ratio value interval, such as the second preset ratio value interval is [0, 20%), then the browser instance scaling operation is performed based on the browser instance scaling sub-strategy in the browser instance scaling strategy (such as halving the second number of the maximum browser instances that can currently be created in the server, that is, the maximum browser instances that can currently be created in the server are updated to half of the second number, that is, the estimated number of browser instances pre-created is no longer a newly created browser instance, but is directly reduced to half of the previous number based on the maximum browser instance that can currently be created in the existing server). It can be seen that the browser instance scaling strategy can effectively combine the total number of pending client requests in the calculation queue and the first number of currently available browser instances to dynamically create corresponding browser instances, thereby maximizing resource utilization efficiency while ensuring service performance.

[0055] S120. Obtain a target login link from the login link set based on a preset login link screening strategy, and send the target login link to the client, so that the client restores the target login link to a target login QR code and scans the code to authorize login.

[0056] In this embodiment, when the server obtains the login link set corresponding to the smart authorization login instruction sent by the client, it does not send all of the login links to the client. Instead, the server needs to obtain a target login link from the login link set based on the login link screening policy, and then send this target login link to the client.

[0057] Because the client receives the target login link instead of the login QR code, it is necessary for the client to convert the target login link back to the target login QR code. The QR code scanning function on the client's corresponding smart device then scans the code and confirms the login authorization, thereby authorizing the server to log in to the preset business server. The target login link received by the client is pre-generated on the server, eliminating the need for the client to wait for the long QR code generation process. Furthermore, even in an unstable network environment, the client can still receive the target login link sent by the server, reducing login failures caused by slow QR code generation and loading.

[0058] In one embodiment, if Figure 4 As shown, step S120 includes:

[0059] S121, obtaining the remaining validity time of the QR code corresponding to each login link in the login link set;

[0060] S122. Obtain a login link with a maximum QR code remaining validity time from the login link set, and use it as the target login link.

[0061] In this embodiment, after the server obtains the login link set corresponding to the client's intelligent authorization login instruction, the login link screening strategy can first quickly determine the remaining validity time of the QR code corresponding to each login link in the login link set, and then select the login link with the largest remaining validity time of the QR code. This ensures that after receiving the target login link, the client has sufficient time to parse, scan the code and authorize the login.

[0062] S130. Obtain the target browser type and target user information sent by the client based on the target login link, and detect the login flag data corresponding to the target login link and the target browser type based on the locally deployed RPA tool.

[0063] In this embodiment, after the client receives the target login link sent by the server, it has not yet operated the authorization server to complete the login to the preset business server. At this time, it is still in the stage of filling in the target login link in the client's browser to request to restore it to the target login QR code. The server can obtain the target browser type of the browser used in the client, and can also obtain the target user information corresponding to the client (used to represent the actual user of the client, such as e-commerce live broadcast type merchants, etc.).

[0064] After the server obtains the target browser type and target user information corresponding to the client, it can also use RPA tools (RPA, short for Robotic Process Automation) to detect the target login link and the login flag data corresponding to the target browser type. Specifically, the server checks whether the client has scanned the target login QR code to authorize login to the pre-set business server. At this point, because the target login page corresponding to the target login link (which also displays the target login) is also displayed on the server (and also displayed on the client for the user to scan and authorize login), the server can detect page changes on the target login page to determine whether the client has scanned the code locally to authorize login.

[0065] Of course, the server can also not display the target login page corresponding to the target login link, but instead remotely detect the page change status of the target login page corresponding to the target login QR code on the client, thereby determining whether the client has scanned the code locally on the client to authorize login. It can be seen that through the above multiple methods, whether the client has scanned the code locally on the client to authorize login can be accurately detected in real time.

[0066] In one embodiment, if Figure 5 As shown, step S130 includes:

[0067] S131. Detecting the target login link and the page change status corresponding to the target browser type based on the RPA tool;

[0068] S132: If the page change state is detected to be the page change effective state and a successful login state corresponding to the preset business server is detected, generating successful login flag data having a first preset identification value;

[0069] S133: If it is detected that the page change state is an ineffective state or an unsuccessful login state corresponding to the preset business server is detected, generate unsuccessful login flag data with a second preset identification value.

[0070] In this embodiment, taking the example of remotely detecting the page change status of the target login page corresponding to the target login QR code on the client side, the RPA tool detects the page change status corresponding to the target login link and the target browser type. If the page change status is detected as "page change effective" and a successful login status corresponding to the preset business server is detected within the remaining validity period of the target login QR code corresponding to the target login link, successful login flag data with a first preset value (e.g., 1) is generated. If the page change status is detected as "page change ineffective" or an unsuccessful login status corresponding to the preset business server is detected within the remaining validity period of the target login QR code corresponding to the target login link, unsuccessful login flag data with a second preset value (e.g., 0) is generated. This shows that the RPA tool can accurately and in real time detect the page change status corresponding to the target login link and the target browser type, thereby further determining whether the server has successfully logged into the preset business server based on the client's scan of the target login QR code.

[0071] S140. If the RPA tool receives the successful login flag data sent by the client, based on the data acquisition strategy preset in the RPA tool and the target user information corresponding to the client, the target user data set corresponding to the target user information is obtained from the preset business server.

[0072] In this embodiment, when the RPA tool receives the successful login flag data sent by the client in the server, it means that the server has successfully logged into the preset business server based on the client's scanning authorization login of the target login QR code. At this time, the target user data set corresponding to the target user information can be further obtained from the preset business server based on the data acquisition strategy preset in the RPA tool and the target user information corresponding to the client.

[0073] For example, a target time interval is set in the data acquisition strategy, and a target data acquisition type is set. The instruction trigger time TT1 corresponding to the intelligent authorization login instruction is used as the end point of the target time interval, and the starting point of the target time interval is determined by calculating forward m days (e.g., m = 30, 60, 90, etc., and is not limited to the above values ​​and can be customized according to actual needs), that is, [TT1-m, TT1) is used as the target time interval; taking the target user information corresponding to a live e-commerce type user as an example, the target data acquisition type includes order data, settlement data, logistics data, and data to be settled. When the server obtains the corresponding target user data set from the preset business server based on the data acquisition strategy and the target user information corresponding to the client, various big data analyses can be performed based on the target user data set, such as determining the user's risk level.

[0074] In one embodiment, after step S130, the method further includes:

[0075] If the RPA tool receives unsuccessful login flag data sent by the client, it updates the login link set based on the preset login link update strategy, and returns to execute the step of obtaining the target login link from the login link set based on the preset login link screening strategy, and sends the target login link to the client, so that the client restores the target login link to the target login QR code and scans the code to authorize login.

[0076] In this embodiment, when the RPA tool in the server receives the successful login flag data sent by the client, it means that the server has not successfully logged into the preset business server based on the client's scanning authorization login of the target login QR code. It is possible that the client did not scan the code to authorize the login before the target login QR code corresponding to the target login link expires. At this time, the server can update the login link set based on the preset login link update policy, and re-screen a target login link and send it to the client to re-refer to the above process for scanning authorization login.

[0077] It can be seen that the embodiment of implementing this method can pre-generate a login link set corresponding to the login QR code and select one of the target login links to send to the client, avoiding the resource consumption of the system caused by real-time generation of the login QR code, and also reducing the response time to the client request.

[0078] Figure 6 This is a schematic block diagram of a fast login device based on the RPA framework provided by an embodiment of the present invention. Figure 6As shown, corresponding to the above-mentioned fast login method based on the RPA framework, the present invention also provides a fast login device 100 based on the RPA framework. The fast login device based on the RPA framework includes: a login link set acquisition unit 110, a target login link acquisition unit 120, a target information acquisition unit 130, and a target data acquisition unit 140.

[0079] The login link set acquiring unit 110 is configured to respond to the smart authorization login instruction sent by the client and acquire a pre-generated login link set corresponding to the smart authorization login instruction.

[0080] The login link set includes multiple login links, all of which can be parsed and restored into a login QR code, and the login QR code is a QR code for authorizing login to a preset business server.

[0081] In this embodiment, the technical solution is described with the server as the execution entity. When a client needs to authorize the server to log in to a pre-defined service server, the user first selects the scanning QR code method in the client to log in to the pre-defined service server, triggering the generation of a smart authorization login instruction. Since it is the client that authorizes the server to log in to the pre-defined service server, the login QR code received by the client is not generated and sent by the pre-defined service server, but rather a pre-generated login link set sent by the server corresponding to the smart authorization login instruction.

[0082] The login link set includes multiple login links, each of which can be parsed and restored into a login QR code. The login link set received by the client from the server is not the original login QR code image set, effectively reducing the amount of data transmitted from the server to the client and lowering the server load. Subsequently, when the client scans any parsed and valid login QR code in the login link set, it authorizes the server to log in to the preset service server, effectively authorizing the server to log in to the preset service server on its behalf.

[0083] Of course, in the embodiments of the present application, the technical solution is described by taking the interaction between a client and a server as an example. The server can also interact with multiple clients simultaneously to achieve a high concurrency scenario, and the process of each client interacting with the server can refer to the example of the interaction between a client and a server described above.

[0084] In one embodiment, the RPA framework-based fast login device 100 further includes:

[0085] A browser instance acquisition unit, configured to acquire a plurality of pre-created browser instances and import a preset login address of a preset business server into each browser instance so that each browser instance jumps to a login page corresponding to the preset login address;

[0086] A login link generating unit is configured to obtain a login QR code and a valid time of the QR code from a corresponding login page for each browser instance, generate a login link based on the login QR code and the valid time of the QR code, and bind the login link to the corresponding browser instance;

[0087] The login link set pre-generating unit is used to form the login link set from the login links corresponding to each browser instance.

[0088] In this embodiment, in order to improve the efficiency of the client authorizing the server to log in to the preset business server, multiple login QR codes can be pre-generated in the server at intervals of a preset generation cycle (the preset generation cycle is considered to be the generation cycle for generating a login link set in the server, such as setting the preset generation cycle to 10 minutes, 30 minutes, 1 hour, 2 hours, 4 hours, etc., of course, the specific implementation is not limited to the above example and can be flexibly set according to the actual needs of the user), and the multiple login QR codes are recorded with the corresponding QR code validity period, and corresponding login links are generated respectively. Of course, in order to achieve the preset generation of multiple login QR codes in the server, multiple browser instances can be pre-created in the server, and then the preset login address of the preset business server is imported into each browser instance, so that each browser instance jumps to the login page corresponding to the preset login address. Each browser instance can correspond to a browser environment to avoid using a single browser environment. In this way, regardless of the browser used by the client, a corresponding response from the server can be obtained.

[0089] After each browser instance has adjusted the login page corresponding to the preset login address, when the preset business server sends a QR code to the server, each browser instance obtains a login QR code with a QR code validity period. For example, if the preset business server sends a login QR code to the server with a generation time of T1 and a QR code validity period of Td, then the login QR code is valid within the QR code validity period corresponding to [T1, T1+Td]. Specifically, after each browser instance obtains the login QR code and the QR code validity period in the corresponding login page, the login QR code can be intercepted and converted into a login link after data parsing, and the login link is bound to the corresponding browser instance and cached locally from the server. Afterwards, the login links corresponding to each browser instance obtained in this round of login link generation cycle are summarized to obtain the login link set. By using the above-mentioned method of presetting multiple login links for multiple browser instances, the login link can be quickly returned when the user requests it, which greatly reduces the user waiting time. According to experimental data, in a simulated high-concurrency environment, the average response time of the system using the technical solution of the present application is shortened by about 50%.

[0090] Furthermore, by dynamically and intelligently pre-generating multiple login links (essentially, multiple login QR codes), the server's computing pressure during peak hours is effectively reduced, avoiding the resource consumption required to generate QR codes in real time. Furthermore, the method of the embodiment of the present application can better allocate server resources and avoid system resource competition caused by instantaneous request peaks. Experimental results show that under the same hardware conditions, the method of the embodiment of the present application can support a higher number of concurrent users, and the server's CPU and memory utilization are both reduced, saving system resources.

[0091] In one embodiment, the RPA framework-based fast login device 100 further includes:

[0092] A preset browser loading unit, used to load the preset browser in the server virtual environment and start the debugging mode of the preset browser;

[0093] The browser instance construction unit is used to construct a plurality of browser instances in the debugging mode of the preset browser.

[0094] In this embodiment, in order to create multiple browser instances in the server, virtualization technology can be used in the server to batch load the preset browsers running in the server virtual environment, and the debugging mode of the preset browsers can be turned on. In the debugging mode of the preset browsers, the centralized management and scheduling of the browsers can be implemented based on specified operation instructions such as remote instructions, and multiple browser instances can also be constructed accordingly in the debugging mode.

[0095] This approach overcomes the prior art limitation of supporting only a single browser environment during user login. Regardless of the browser used by the client, a fast response is achieved, greatly enhancing the system's compatibility and flexibility. This multi-browser support mechanism makes the embodiments of this application suitable for complex application scenarios, such as internal enterprise systems and online education platforms, which require support for multiple terminal devices.

[0096] In one embodiment, the browser instance construction unit is specifically used to:

[0097] Get the total number of client requests currently pending in the local computing queue;

[0098] Determining an estimated number of browser instances to be pre-created based on the total number of currently pending client requests and a preset browser instance scaling strategy;

[0099] A corresponding number of browser instances are created according to the pre-estimated number of browser instances.

[0100] In this embodiment, to achieve intelligent and dynamic creation of browser instances on the server, the server's computation queue (which can be considered a task queue) is first retrieved, and the total number of pending client requests in the computation queue is obtained. A browser instance scaling policy is also pre-configured on the server. Once the total number of pending client requests in the computation queue is known, the server can quickly determine whether to scale up or down the browser instance creation process based on the total number of pending client requests and the pre-configured browser instance scaling policy.

[0101] For example, first obtain the first number corresponding to the currently available browser instances in the server, and then calculate a first ratio between the total number of currently pending client requests and the first number. If it is determined that the first ratio belongs to a first preset ratio value interval, such as the first preset ratio value interval is [100%, +∞), then perform a browser instance expansion operation based on the browser instance expansion sub-strategy in the browser instance expansion and contraction strategy (such as doubling the second number of the maximum browser instances that can currently be created in the server, that is, the maximum browser instances that can currently be created in the server are updated to twice the second number, that is, the estimated number of browser instances to be pre-created is 2*the second number-the second number). Number = second number); if it is determined that the first ratio belongs to the second preset ratio value interval, such as the second preset ratio value interval is [0, 20%), then the browser instance scaling operation is performed based on the browser instance scaling sub-strategy in the browser instance scaling strategy (such as halving the second number of the maximum browser instances that can currently be created in the server, that is, the maximum browser instances that can currently be created in the server are updated to half of the second number, that is, the estimated number of browser instances pre-created is no longer a newly created browser instance, but is directly reduced to half of the previous number based on the maximum browser instance that can currently be created in the existing server). It can be seen that the browser instance scaling strategy can effectively combine the total number of pending client requests in the calculation queue and the first number of currently available browser instances to dynamically create corresponding browser instances, thereby maximizing resource utilization efficiency while ensuring service performance.

[0102] The target login link acquisition unit 120 is used to obtain the target login link from the login link set based on a preset login link screening strategy, and send the target login link to the client, so that the client can restore the target login link to a target login QR code and scan the code to authorize login.

[0103] In this embodiment, when the server obtains the login link set corresponding to the smart authorization login instruction sent by the client, it does not send all of the login links to the client. Instead, the server needs to obtain a target login link from the login link set based on the login link screening policy, and then send this target login link to the client.

[0104] Because the client receives the target login link instead of the login QR code, it is necessary for the client to convert the target login link back to the target login QR code. The QR code scanning function on the client's corresponding smart device then scans the code and confirms the login authorization, thereby authorizing the server to log in to the preset business server. The target login link received by the client is pre-generated on the server, eliminating the need for the client to wait for the long QR code generation process. Furthermore, even in an unstable network environment, the client can still receive the target login link sent by the server, reducing login failures caused by slow QR code generation and loading.

[0105] In one embodiment, the target login link acquisition unit 120 is specifically configured to:

[0106] Obtain the remaining validity time of the QR code corresponding to each login link in the login link set;

[0107] A login link with the largest remaining validity time of the QR code is obtained from the login link set and used as the target login link.

[0108] In this embodiment, after the server obtains the login link set corresponding to the client's intelligent authorization login instruction, the login link screening strategy can first quickly determine the remaining validity time of the QR code corresponding to each login link in the login link set, and then select the login link with the largest remaining validity time of the QR code. This ensures that after receiving the target login link, the client has sufficient time to parse, scan the code and authorize the login.

[0109] The target information acquisition unit 130 is used to obtain the target browser type and target user information sent by the client based on the target login link, and detect the login flag data corresponding to the target login link and the target browser type based on the locally deployed RPA tool.

[0110] In this embodiment, after the client receives the target login link sent by the server, it has not yet operated the authorization server to complete the login to the preset business server. At this time, it is still in the stage of filling in the target login link in the client's browser to request to restore it to the target login QR code. The server can obtain the target browser type of the browser used in the client, and can also obtain the target user information corresponding to the client (used to represent the actual user of the client, such as e-commerce live broadcast type merchants, etc.).

[0111] After the server obtains the target browser type and target user information corresponding to the client, it can also use RPA tools (RPA, short for Robotic Process Automation) to detect the target login link and the login flag data corresponding to the target browser type. Specifically, the server checks whether the client has scanned the target login QR code to authorize login to the pre-set business server. At this point, because the target login page corresponding to the target login link (which also displays the target login) is also displayed on the server (and also displayed on the client for the user to scan and authorize login), the server can detect page changes on the target login page to determine whether the client has scanned the code locally to authorize login.

[0112] Of course, the server can also not display the target login page corresponding to the target login link, but instead remotely detect the page change status of the target login page corresponding to the target login QR code on the client, thereby determining whether the client has scanned the code locally on the client to authorize login. It can be seen that through the above multiple methods, whether the client has scanned the code locally on the client to authorize login can be accurately detected in real time.

[0113] In one embodiment, the target information acquisition unit 130 is specifically configured to:

[0114] Detecting the target login link and the page change status corresponding to the target browser type based on the RPA tool;

[0115] If it is detected that the page change state is the page change effective state, and a successful login state corresponding to the preset business server is detected, generating successful login flag data with a value of a first preset identification value;

[0116] If it is detected that the page change state is the page change ineffective state or an unsuccessful login state corresponding to the preset business server is detected, unsuccessful login flag data with a second preset identification value is generated.

[0117] In this embodiment, taking the example of remotely detecting the page change status of the target login page corresponding to the target login QR code on the client side, the RPA tool detects the page change status corresponding to the target login link and the target browser type. If the page change status is detected as "page change effective" and a successful login status corresponding to the preset business server is detected within the remaining validity period of the target login QR code corresponding to the target login link, successful login flag data with a first preset value (e.g., 1) is generated. If the page change status is detected as "page change ineffective" or an unsuccessful login status corresponding to the preset business server is detected within the remaining validity period of the target login QR code corresponding to the target login link, unsuccessful login flag data with a second preset value (e.g., 0) is generated. This shows that the RPA tool can accurately and in real time detect the page change status corresponding to the target login link and the target browser type, thereby further determining whether the server has successfully logged into the preset business server based on the client's scan of the target login QR code.

[0118] The target data acquisition unit 140 is used to obtain a target user data set corresponding to the target user information from a preset business server based on a data acquisition strategy preset in the RPA tool and the target user information corresponding to the client if the RPA tool receives successful login flag data sent by the client.

[0119] In this embodiment, when the RPA tool receives the successful login flag data sent by the client in the server, it means that the server has successfully logged into the preset business server based on the client's scanning authorization login of the target login QR code. At this time, the target user data set corresponding to the target user information can be further obtained from the preset business server based on the data acquisition strategy preset in the RPA tool and the target user information corresponding to the client.

[0120] For example, a target time interval is set in the data acquisition strategy, and a target data acquisition type is set. The instruction trigger time TT1 corresponding to the intelligent authorization login instruction is used as the end point of the target time interval, and the starting point of the target time interval is determined by calculating forward m days (e.g., m = 30, 60, 90, etc., and is not limited to the above values ​​and can be customized according to actual needs), that is, [TT1-m, TT1) is used as the target time interval; taking the target user information corresponding to a live e-commerce type user as an example, the target data acquisition type includes order data, settlement data, logistics data, and data to be settled. When the server obtains the corresponding target user data set from the preset business server based on the data acquisition strategy and the target user information corresponding to the client, various big data analyses can be performed based on the target user data set, such as determining the user's risk level.

[0121] In one embodiment, the RPA framework-based fast login device 100 further includes:

[0122] A re-login detection unit is configured to update the login link set based on a preset login link update strategy and restart the target login link acquisition unit if the RPA tool receives unsuccessful login flag data sent by the client.

[0123] In this embodiment, when the RPA tool in the server receives the successful login flag data sent by the client, it means that the server has not successfully logged into the preset business server based on the client's scanning authorization login of the target login QR code. It is possible that the client did not scan the code to authorize the login before the target login QR code corresponding to the target login link expires. At this time, the server can update the login link set based on the preset login link update policy, and re-screen a target login link and send it to the client to re-refer to the above process for scanning authorization login.

[0124] It can be seen that the embodiment of the device can pre-generate a login link set corresponding to the login QR code and select one of the target login links to send to the client, avoiding the resource consumption of the system caused by real-time generation of the login QR code, and also reducing the response time to the client request.

[0125] The above-mentioned fast login device based on RPA framework can be implemented in the form of a computer program. The computer program can be used in Figure 7 Runs on the computer device shown.

[0126] See also Figure 7 , Figure 7This is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device integrates any of the RPA framework-based fast login devices provided by an embodiment of the present invention.

[0127] See Figure 7 The computer device 400 includes a processor 402 , a memory, and a network interface 405 connected via a system bus 401 , wherein the memory may include a storage medium 403 and an internal memory 404 .

[0128] The storage medium 403 may store an operating system 4031 and a computer program 4032. The computer program 4032 includes program instructions, which, when executed, may enable the processor 402 to execute the aforementioned fast login method based on the RPA framework.

[0129] The processor 402 is used to provide computing and control capabilities to support the operation of the entire computer device.

[0130] The internal memory 404 provides an environment for the operation of the computer program 4032 in the storage medium 403. When the computer program 4032 is executed by the processor 402, the processor 402 can execute the above-mentioned fast login method based on the RPA framework.

[0131] The network interface 405 is used to communicate with other devices through the network. Figure 7 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present invention and does not constitute a limitation on the computer device to which the solution of the present invention is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0132] The processor 402 is configured to run a computer program 4032 stored in a memory to implement the aforementioned fast login method based on the RPA framework.

[0133] It should be understood that in the embodiment of the present invention, the processor 402 may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.

[0134] Those skilled in the art will appreciate that all or part of the steps in the method of the above-described embodiment can be implemented by instructing the relevant hardware through a computer program. The computer program includes program instructions, which can be stored in a storage medium that is computer-readable. The program instructions are executed by at least one processor in the computer system to implement the steps in the method of the above-described embodiment.

[0135] Therefore, the present invention also provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When executed by a processor, the program instructions cause the processor to perform the aforementioned fast login method based on the RPA framework.

[0136] The computer-readable storage medium may be any computer-readable storage medium that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk.

[0137] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the composition and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0138] In the several embodiments provided herein, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the various units is merely a logical functional division, and actual implementation may employ other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be omitted or not implemented.

[0139] The steps in the methods of the embodiments of the present invention may be adjusted in order, combined, or deleted as needed. The units in the devices of the embodiments of the present invention may be combined, divided, or deleted as needed. Furthermore, the functional units in the various embodiments of the present invention may be integrated into a single processing unit, each unit may exist physically separately, or two or more units may be integrated into a single unit.

[0140] If this integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention, or the portion that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product, stored in a storage medium, includes instructions for enabling a computer device (such as a personal computer, terminal, or network device) to execute all or part of the steps of the method described in various embodiments of the present invention.

[0141] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and such modifications or substitutions are intended to be within the scope of protection of the present invention. Therefore, the scope of protection of the present invention shall be subject to the scope of protection of the claims.

Claims

1. A fast login method based on RPA framework, characterized in that: include: In response to the smart authorization login instruction sent by the client, obtaining a pre-generated login link set corresponding to the smart authorization login instruction; wherein the login link set includes multiple login links and each of the links can be parsed and restored into a login QR code, and the login QR code is a QR code for authorizing login to a preset business server; Obtaining a target login link from the login link set based on a preset login link screening strategy, and sending the target login link to the client, so that the client restores the target login link to a target login QR code and scans the code to authorize login; Obtaining the target browser type and target user information sent by the client based on the target login link, and detecting the login flag data corresponding to the target login link and the target browser type based on the locally deployed RPA tool; and If the RPA tool receives the successful login flag data sent by the client, it obtains the target user data set corresponding to the target user information from the preset business server based on the data acquisition strategy preset in the RPA tool and the target user information corresponding to the client.

2. The method according to claim 1, characterized in that Before the step of obtaining, in response to the smart authorization login instruction sent by the client, a pre-generated login link set corresponding to the smart authorization login instruction, the method further includes: Obtain multiple pre-created browser instances, and import a preset login address of a preset business server into each browser instance, so that each browser instance jumps to a login page corresponding to the preset login address; For each browser instance, a login QR code and a valid time of the QR code are obtained from the corresponding login page, a login link is generated based on the login QR code and the valid time of the QR code, and the login link is bound to the corresponding browser instance; The login link set is composed of a login link corresponding to each browser instance.

3. The method according to claim 2, characterized in that Before the step of obtaining a plurality of pre-created browser instances and importing a preset login address of a preset business server into each browser instance so that each browser instance jumps to a login page corresponding to the preset login address, the method further includes: Loading a preset browser in the server virtual environment and starting a debugging mode of the preset browser; Correspondingly, multiple browser instances are constructed in the debugging mode of the preset browser.

4. The method according to claim 1, wherein The acquiring a target login link from the login link set based on a preset login link screening strategy includes: Obtain the remaining validity time of the QR code corresponding to each login link in the login link set; A login link with the largest remaining validity time of the QR code is obtained from the login link set and used as the target login link.

5. The method according to claim 1, wherein The locally deployed RPA tool detects the target login link and the login flag data corresponding to the target browser type, including: Detecting the target login link and the page change status corresponding to the target browser type based on the RPA tool; If it is detected that the page change state is the page change effective state, and a successful login state corresponding to the preset business server is detected, generating successful login flag data with a value of a first preset identification value; If it is detected that the page change state is the page change ineffective state or an unsuccessful login state corresponding to the preset business server is detected, unsuccessful login flag data with a second preset identification value is generated.

6. The method according to claim 5, characterized in that After the steps of obtaining the target browser type and target user information sent by the client based on the target login link, and detecting login flag data corresponding to the target login link and the target browser type based on a locally deployed RPA tool, the method further includes: If the RPA tool receives unsuccessful login flag data sent by the client, it updates the login link set based on the preset login link update strategy, and returns to execute the step of obtaining the target login link from the login link set based on the preset login link screening strategy, and sends the target login link to the client, so that the client restores the target login link to the target login QR code and scans the code to authorize login.

7. The method according to claim 3, characterized in that The step of constructing multiple browser instances in the debugging mode of the preset browser includes: Get the total number of client requests currently pending in the local computing queue; Determining an estimated number of browser instances to be pre-created based on the total number of currently pending client requests and a preset browser instance scaling strategy; A corresponding number of browser instances are created according to the pre-estimated number of browser instances.

8. A fast login device based on RPA framework, characterized in that: include: a login link set acquisition unit, configured to, in response to a smart authorization login instruction sent by a client, acquire a pre-generated login link set corresponding to the smart authorization login instruction; wherein the login link set includes a plurality of login links that can be parsed and restored into a login QR code, and the login QR code is a QR code for authorizing login to a preset business server; a target login link acquisition unit, configured to acquire a target login link from the login link set based on a preset login link screening strategy, and send the target login link to the client, so that the client restores the target login link to a target login QR code and scans the code to authorize login; a target information acquisition unit, configured to acquire the target browser type and target user information sent by the client based on the target login link, and detect login flag data corresponding to the target login link and the target browser type based on a locally deployed RPA tool; and A target data acquisition unit is used to obtain a target user data set corresponding to the target user information from a preset business server based on a data acquisition strategy preset in the RPA tool and the target user information corresponding to the client if the RPA tool receives successful login flag data sent by the client.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the fast login method based on the RPA framework according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which includes program instructions. When the program instructions are executed by a processor, the fast login method based on the RPA framework as described in any one of claims 1 to 7 can be implemented.

Citation Information

Patent Citations

  • Single sign-on method and device, computer device and storage medium

    CN110765443A

  • User login method, device, electronic equipment and system

    CN117195182A