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

The RPA-based quick login method addresses server access delays by pre-generating login links and using RPA tools for efficient login authorization, enhancing system performance and compatibility.

CN119135682AActive Publication Date: 2024-12-13SHENZHEN LIANYIRONG XIAOWEIFENG TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing QR code-based login methods for authorizing server access suffer from long response times and resource bottlenecks due to real-time processing on the server side, especially in high concurrency situations, and require complex management and security measures for pre-generated QR codes.

Method used

A quick login method using a Robotic Process Automation (RPA) framework that pre-generates a set of login links, selects a target link based on a screening strategy, and uses an RPA tool to detect login status, reducing server load and response time by avoiding real-time QR code generation.

Benefits of technology

The method significantly reduces response time by up to 50% and optimizes resource utilization, supporting higher concurrency and improving system compatibility and flexibility across multiple browsers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119135682A_ABST
    Figure CN119135682A_ABST
Patent Text Reader

Abstract

The invention relates to the field of Internet, and discloses a rapid login method and device based on an RPA framework, equipment and a storage medium, and the method comprises the steps: 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 the target login link to the client; obtaining a target browser type and target user information correspondingly sent by the client based on the target login link; and if the RPA tool receives successful login flag bit data sent by the client, acquiring a target user data set corresponding to the target user information from a preset service server based on a data acquisition strategy in the RPA tool. According to the embodiment of the invention, the login link set corresponding to the login two-dimensional code can be pre-generated, and one target login link is selected and sent to the client, so that the resource consumption of the system caused by real-time generation of the login two-dimensional code is avoided, and the response duration to the client request is also reduced.
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 other users (such as servers) to log in to the system, they can log in by scanning a QR code. The first method is that the user uses a mobile phone to scan a QR code generated by other users such as a server and displayed on a web page, and the other method is that the server directly sends a QR code to the client, and the user logs in by scanning the QR code.

[0003] In the first method, after the user sends a login request on the client, other users such as the server generate a unique QR code and display it on the browser page. The user scans the QR code with a mobile device, and the server verifies the user's identity based on the information contained in the QR code and allows login. Although this method is more secure, since the generation and display of the QR code depends on real-time processing on the server side, it may result in a long response time, especially in high concurrency situations, login delays are prone to occur. Although the delay in QR code generation can be reduced by optimizing server performance or using load balancing technology, performance bottlenecks may still be encountered when processing a large number of concurrent requests.

[0004] In the second method, other users such as the server can speed up the user's login by pre-generating a QR code and sending it to the user's client. However, this method requires an efficient communication mechanism between the client and the server, and the validity period of the QR code is short, which increases the complexity of management and security. Summary of the invention

[0005] The embodiments of the present invention provide a quick login method, apparatus, device and storage medium based on the RPA framework, aiming 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 scans a QR code generated by the server and displayed on a web page through a mobile phone, and 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, a pre-generated login link set corresponding to the smart authorization login instruction is obtained; wherein the login link set includes multiple login links and 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 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, a target user data set corresponding to the target user information is acquired from a preset business server.

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

[0012] A login link set acquisition unit, configured to, in response to the smart authorization login instruction sent by the 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 and all of them 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 the 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, which includes 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 above can be implemented.

[0018] The embodiment of the present invention provides a fast login method, device, equipment and storage medium based on the RPA framework, and the method includes: 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 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 for authorized login; obtaining a 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 a 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 accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying 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 an RPA framework provided in an embodiment of the present invention;

[0022] Figure 3 Another flowchart of a quick login method based on an 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 an RPA framework provided in an embodiment of the present invention;

[0024] Figure 5 Another sub-process diagram of the fast 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 an 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 be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

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

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

[0031] Please also see Figure 1 and Figure 2 , Figure 1 The following is a schematic diagram of a scenario of a quick login method based on an RPA framework according to an embodiment of the present invention. Figure 21 is a flow chart of a quick login method based on an 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 a plurality of login links, and all of them 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 subject. When the client needs to authorize the server to log in to the preset business server, first, when the user operates the client to select scanning the QR code to log in to the preset business server, the intelligent authorization login instruction is triggered. Since it is the client that authorizes the server to log in to the preset business server, the login QR code received in the client is not generated by the preset business server and sent to the client, but is sent by the server and corresponds to the intelligent authorization login instruction and is a pre-generated login link set.

[0035] The login link set includes multiple login links and can be parsed and restored into login QR codes. The login link set received by the client from the server is not the original login QR code image set, which can effectively reduce the amount of data transmitted from the server to the client and reduce the server load pressure. Afterwards, when the client scans any parsed and restored login QR code in the login link set and is in a valid state, the server is authorized to log in to the preset business server, which is equivalent to the client authorizing the server to log in to the preset business server on its behalf.

[0036] Of course, in the embodiment 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 at the same time to complete a high-concurrency scenario, and the process of each client interacting with the server can refer to the above example of a client interacting with the server.

[0037] In one embodiment, if Figure 3 As shown, before step S110, it also includes:

[0038] S101, 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;

[0039] S102, for each browser instance, obtaining a login QR code and a valid time of the QR code in a corresponding login page, generating a login link based on the login QR code and the valid time of the QR code, and binding the login link to the corresponding browser instance;

[0040] S103: The login link set is composed of the 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 regarded as the generation cycle of the login link set generated in the server, such as setting the preset generation cycle to 10 minutes, 30 minutes, 1 hour, 2 hours, 4 hours, etc., of course, it is not limited to the above examples during specific implementation, 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 time and the 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 for each browser instance, so that each browser instance jumps to the login page corresponding to the preset login address. Among them, each browser instance can correspond to a browser environment to avoid using a single browser environment, so that the client can get the corresponding response of the server regardless of which browser is used.

[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 time. For example, the preset business server sends a login QR code to the server at a generation time of T1 and a QR code validity time of Td. Then, the login QR code is valid within the QR code validity time interval corresponding to [T1, T1+Td]. Specifically, after each browser instance obtains the login QR code and the QR code validity time 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 and associated with the corresponding browser instance and cached and saved 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 generated by multiple browser instances, the login link can be quickly returned when the user requests, 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] Moreover, by dynamically and intelligently pre-generating multiple login links (essentially multiple login QR codes), the computing pressure of the server during peak hours is effectively reduced, and the resource consumption required for real-time generation of QR codes is avoided. Moreover, 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 CPU and memory occupancy rates of the server are 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 the debugging mode of the preset browsing server;

[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, centralized management and scheduling of the browsers can be implemented based on specified operation instructions such as remote command sending, and multiple browser instances can also be correspondingly constructed in the debugging mode.

[0048] Through the above-mentioned method, the limitation of the prior art that only a single browser environment is supported during the user login process is solved. No matter which browser the client uses, a quick response can be obtained, and the compatibility and flexibility of the system are greatly enhanced. This multi-browser support mechanism makes the embodiment of the present application suitable for complex application scenarios, such as internal enterprise systems, online education platforms, etc., which need to support 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] Determine the estimated number of browser instances to be pre-created based on the total number of client requests currently to be processed and the preset browser instance scaling strategy;

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

[0053] In this embodiment, in order to realize the intelligent and dynamic creation of browser instances in the server, the computing queue of the server (which can be regarded as a task queue) can be obtained first, and the total number of client requests currently to be processed in the computing queue can be obtained. The browser instance expansion and contraction strategy is also preset in the server. After the total number of client requests currently to be processed in the computing queue is known, based on the total number of client requests currently to be processed and the preset browser instance expansion and contraction strategy, it can be quickly determined whether to perform an expansion operation on the browser instance creation or a contraction operation on the browser instance creation.

[0054] For example, first obtain the first number corresponding to the currently available browser instances in the server, then calculate the first ratio between the total number of client requests currently to be processed and the first number, if it is determined that the first ratio belongs to the first preset ratio value interval, such as the first preset ratio value interval is [100%, +∞), then perform the 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 instance that can be created in the server, that is, the maximum browser instance that can be created in the server is updated to twice the second number, that is, the estimated number of browser instances to be created is 2*the second number-the second number). number = the 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 instance that can currently be created in the server, that is, the maximum browser instance that can currently be created in the server is 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 one when the maximum browser instance 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 client requests currently pending in the calculation queue and the first number of currently available browser instances to dynamically create corresponding browser instances, while ensuring service performance and maximizing resource utilization efficiency.

[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 strategy, and then send the target login link to the client.

[0057] Because the client receives the target login link instead of the login QR code, the client needs to restore the target login link to the target login QR code. After that, the QR code scanning function on the client's corresponding smart device will scan and confirm the login authorization, so that the client can authorize the server to log in to the preset business server. The target login link received by the client is pre-generated in the server, and the client does not need to wait for a long time for the QR code to be generated. Moreover, even if the network environment is unstable, 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 remaining validity time of a QR code 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 the client has sufficient time for parsing, scanning and authorizing login after receiving the target login link.

[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 be restored 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 obtaining the target browser type and target user information corresponding to the client in the server, the target login link and the login flag data corresponding to the target browser type can also be detected based on the RPA tool (RPA stands for Robotic process automation, which means robotic process automation), that is, the server detects whether the target login QR code is scanned in the client to authorize the login to the preset business server. At this time, because the target login page corresponding to the target login link (which also displays the target login) is also displayed in the server (and displayed in the client for the user to scan and authorize the login), the server can detect the page change status of the target login page to determine whether the client has scanned the code locally on the client to authorize the login.

[0065] Of course, the server may not display the target login page corresponding to the target login link, but remotely detect the page change state of the target login page corresponding to the target login QR code in the client, so as to determine 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, then generating successful login flag data whose value is 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, unsuccessful login flag data having a second preset identification value is generated.

[0070] In this embodiment, taking the example of detecting the page change state of the target login page corresponding to the target login QR code in the client remotely on the server, the page change state corresponding to the target login link and the target browser type is detected based on the RPA tool. If the page change state is detected as the page change effective state within the remaining effective time of the target login QR code corresponding to the target login link, and the successful login state corresponding to the preset business server is detected, then a successful login flag data with a first preset identification value (such as a value of 1) is generated; if the page change state is detected as the page change ineffective state or the unsuccessful login state corresponding to the preset business server is detected within the remaining effective time of the target login QR code corresponding to the target login link, then an unsuccessful login flag data with a second preset identification value (such as a value of 0) is generated. It can be seen that the page change state corresponding to the target login link and the target browser type can be accurately detected in real time through the RPA tool, so as to further determine whether the server has successfully logged in to the preset business server based on the client's scanning authorization login of the target login QR code.

[0071] S140. If the RPA tool receives 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, a target user data set corresponding to the target user information is acquired from a 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 in to 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 according to 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. Among them, the instruction trigger time TT1 corresponding to the intelligent authorization login instruction is the end point of the target time interval, and m days (such as m = 30, 60, 90, etc., and not limited to the above values, can be customized according to actual needs) are calculated forward to determine the starting point of the target time interval, that is, [TT1-m, TT1) is used as the target time interval; taking the target user information corresponding to the 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. After 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 the code to authorize the login.

[0077] It can be seen that the implementation example of this method can pre-generate a set of login links corresponding to the login QR code and select one of the target login links to send 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.

[0078] Figure 6 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 quick login method based on the RPA framework, the present invention also provides a quick login device 100 based on the RPA framework. The quick 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 acquisition unit 110 is used 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 a plurality of login links, and all of them 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 subject. When the client needs to authorize the server to log in to the preset business server, first, when the user operates the client to select scanning the QR code to log in to the preset business server, the intelligent authorization login instruction is triggered. Since it is the client that authorizes the server to log in to the preset business server, the login QR code received in the client is not generated by the preset business server and sent to the client, but is sent by the server and corresponds to the intelligent authorization login instruction and is a pre-generated login link set.

[0082] The login link set includes multiple login links and can be parsed and restored into login QR codes. The login link set received by the client from the server is not the original login QR code image set, which can effectively reduce the amount of data transmitted from the server to the client and reduce the server load pressure. Afterwards, when the client scans any parsed and restored login QR code in the login link set and is in a valid state, the server is authorized to log in to the preset business server, which is equivalent to the client authorizing the server to log in to the preset business server on its behalf.

[0083] Of course, in the embodiment 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 at the same time to complete a high-concurrency scenario, and the process of each client interacting with the server can refer to the above example of a client interacting with the server.

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

[0085] A browser instance acquisition unit, used 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, configured to obtain a login QR code and a valid time of the QR code in 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 regarded as the generation cycle of the login link set generated in the server, such as setting the preset generation cycle to 10 minutes, 30 minutes, 1 hour, 2 hours, 4 hours, etc., of course, it is not limited to the above examples during specific implementation, 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 time and the 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 for each browser instance, so that each browser instance jumps to the login page corresponding to the preset login address. Among them, each browser instance can correspond to a browser environment to avoid using a single browser environment, so that the client can get the corresponding response of the server regardless of which browser is used.

[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 time. For example, the preset business server sends a login QR code to the server at a generation time of T1 and a QR code validity time of Td. Then, the login QR code is valid within the QR code validity time interval corresponding to [T1, T1+Td]. Specifically, after each browser instance obtains the login QR code and the QR code validity time 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 and associated with the corresponding browser instance and cached and saved 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 generated by multiple browser instances, the login link can be quickly returned when the user requests, 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] Moreover, by dynamically and intelligently pre-generating multiple login links (essentially multiple login QR codes), the computing pressure of the server during peak hours is effectively reduced, and the resource consumption required for real-time generation of QR codes is avoided. Moreover, 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 CPU and memory occupancy rates of the server are 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 a preset browser in a server virtual environment and start a debugging mode of the preset browser server;

[0093] The browser instance construction unit is used to construct a plurality of browser instances correspondingly 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, centralized management and scheduling of the browsers can be implemented based on specified operation instructions such as remote command sending, and multiple browser instances can also be correspondingly constructed in the debugging mode.

[0095] Through the above method, the limitation of the prior art that only a single browser environment is supported during the user login process is solved. No matter which browser the client uses, a quick response can be obtained, and the compatibility and flexibility of the system are greatly enhanced. This multi-browser support mechanism makes the embodiment of the present application suitable for complex application scenarios, such as internal enterprise systems, online education platforms, etc., which need to support multiple terminal devices.

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

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

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

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

[0100] In this embodiment, in order to realize the intelligent and dynamic creation of browser instances in the server, the computing queue of the server (which can be regarded as a task queue) can be obtained first, and the total number of client requests currently to be processed in the computing queue can be obtained. The browser instance expansion and contraction strategy is also preset in the server. After the total number of client requests currently to be processed in the computing queue is known, based on the total number of client requests currently to be processed and the preset browser instance expansion and contraction strategy, it can be quickly determined whether to perform an expansion operation on the browser instance creation or a contraction operation on the browser instance creation.

[0101] For example, first obtain the first number corresponding to the currently available browser instances in the server, then calculate the first ratio between the total number of client requests currently to be processed and the first number, if it is determined that the first ratio belongs to the first preset ratio value interval, such as the first preset ratio value interval is [100%, +∞), then perform the 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 instance that can be created in the server, that is, the maximum browser instance that can be created in the server is updated to twice the second number, that is, the estimated number of browser instances to be created is 2*the second number-the second number). number = the 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 instance that can currently be created in the server, that is, the maximum browser instance that can currently be created in the server is 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 one when the maximum browser instance 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 client requests currently pending in the calculation queue and the first number of currently available browser instances to dynamically create corresponding browser instances, while ensuring service performance and maximizing resource utilization efficiency.

[0102] The target login link acquisition unit 120 is used to acquire 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 restores the target login link to a target login QR code and scans 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 strategy, and then send the target login link to the client.

[0104] Because the client receives the target login link instead of the login QR code, the client needs to restore the target login link to the target login QR code. After that, the QR code scanning function on the client's corresponding smart device will scan and confirm the login authorization, so that the client can authorize the server to log in to the preset business server. The target login link received by the client is pre-generated in the server, and the client does not need to wait for a long time for the QR code to be generated. Moreover, even if the network environment is unstable, 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 used 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 maximum 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 the client has sufficient time for parsing, scanning and authorizing login after receiving the target login link.

[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 be restored 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 obtaining the target browser type and target user information corresponding to the client in the server, the target login link and the login flag data corresponding to the target browser type can also be detected based on the RPA tool (RPA stands for Robotic process automation, which means robotic process automation), that is, the server detects whether the target login QR code is scanned in the client to authorize the login to the preset business server. At this time, because the target login page corresponding to the target login link (which also displays the target login) is also displayed in the server (and displayed in the client for the user to scan and authorize the login), the server can detect the page change status of the target login page to determine whether the client has scanned the code locally on the client to authorize the login.

[0112] Of course, the server may not display the target login page corresponding to the target login link, but remotely detect the page change state of the target login page corresponding to the target login QR code in the client, so as to determine 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 used 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 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, then a successful login flag data having a value of a first preset identification value is generated;

[0116] 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, unsuccessful login flag data with a second preset identification value is generated.

[0117] In this embodiment, taking the example of detecting the page change state of the target login page corresponding to the target login QR code in the client remotely on the server, the page change state corresponding to the target login link and the target browser type is detected based on the RPA tool. If the page change state is detected as the page change effective state within the remaining effective time of the target login QR code corresponding to the target login link, and the successful login state corresponding to the preset business server is detected, then a successful login flag data with a first preset identification value (such as a value of 1) is generated; if the page change state is detected as the page change ineffective state or the unsuccessful login state corresponding to the preset business server is detected within the remaining effective time of the target login QR code corresponding to the target login link, then an unsuccessful login flag data with a second preset identification value (such as a value of 0) is generated. It can be seen that the page change state corresponding to the target login link and the target browser type can be accurately detected in real time through the RPA tool, so as to further determine whether the server has successfully logged in to the preset business server based on the client's scanning authorization login 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 in to 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 according to 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. Among them, the instruction trigger time TT1 corresponding to the intelligent authorization login instruction is the end point of the target time interval, and m days (such as m = 30, 60, 90, etc., and not limited to the above values, can be customized according to actual needs) are calculated forward to determine the starting point of the target time interval, that is, [TT1-m, TT1) is used as the target time interval; taking the target user information corresponding to the 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. After 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] The re-login detection unit is used 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 the code to authorize the login.

[0124] It can be seen that the implementation example 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, 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.

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

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

[0127] See also 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, and when the program instructions are executed, the processor 402 may execute the above-mentioned 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 over the network. Figure 7 The structure shown in the figure is only a block diagram of a part 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 those shown in the figure, or combine certain components, or have a different arrangement of components.

[0132] The processor 402 is used to run a computer program 4032 stored in the memory to implement the above-mentioned 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), and the processor 402 may also 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. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0134] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[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 the program instructions are executed by a processor, the processor executes the above-mentioned fast login method based on the RPA framework.

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

[0137] Those of ordinary skill 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 composition and steps of each example have been generally described in terms of function in the above description. 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 by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0139] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0140] If the integrated unit is implemented in the form of 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 is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0141] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A quick login method based on the RPA framework, It is characterized in that include: 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 is obtained; wherein the login link set includes multiple login links and 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 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, a target user data set corresponding to the target user information is acquired from a preset business server.

2. The method according to claim 1, It is characterized in that Before the step of obtaining a pre-generated login link set corresponding to the smart authorization login instruction in response to the smart authorization login instruction sent by the client, the method further includes: 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; For each browser instance, a login QR code and a valid time of the QR code in the corresponding login page are obtained, 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 and associated with the corresponding browser instance; The login link set is composed of login links corresponding to each browser instance.

3. The method according to claim 2, It is 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 for 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 the debugging mode of the preset browsing server; Correspondingly, multiple browser instances are constructed in the debugging mode of the preset browser.

4. The method according to claim 1, It is characterized in that 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 maximum 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, It is characterized in that 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 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, then a successful login flag data having a value of a first preset identification value is generated; 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, unsuccessful login flag data with a second preset identification value is generated.

6. The method according to claim 5, It is characterized in that After the step of 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, 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, It is characterized in that The corresponding construction of 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; Determine the estimated number of browser instances to be pre-created based on the total number of client requests currently to be processed and the preset browser instance scaling strategy; A corresponding number of browser instances are created according to the estimated number of pre-created browser instances.

8. A fast login device based on RPA framework, It is characterized in that include: A login link set acquisition unit, configured to, in response to the smart authorization login instruction sent by the 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 and all of them 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 the 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, It is characterized in that When the processor executes the computer program, the fast login method based on the RPA framework as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium, It is 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 RPA framework-based fast login method 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

  • Login method and device and electronic equipment

    CN112910876A

  • Login authentication method and device, computer equipment and storage medium

    CN116232700A

  • Link skipping method of two-dimensional code, server and computer readable storage medium

    CN116402076A

  • User login method, device, electronic equipment and system

    CN117195182A