Bank bill double-end current limiting method and device, electronic equipment and storage medium

By adopting the dual-end current limiting method in the bank bill system, the server and the client respectively limit the current, solving the problem of excessive load caused by high concurrent requests, avoiding performance degradation and service crashes.

CN119652824APending Publication Date: 2025-03-18THE BANK OF CHONGQING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411689704.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-25
Publication Date
2025-03-18

AI Technical Summary

Technical Problem

When a bank bill system faces a large number of high concurrent requests, excessive load leads to performance degradation, slowing response, and even causing service crashes.

Method used

The dual-end current limiting method is adopted. The server limits the current by obtaining pre-configured multi-dimensional current limiting policies and real-time traffic, and the client uses the idle asynchronous threading mechanism to limit the target accounting products.

Benefits of technology

It effectively avoids the situation of excessive load when the bank bill business volume is too large, and prevents performance degradation, slow response speed and service crashes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119652824A_ABST
    Figure CN119652824A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a bank bill double-end current limiting method and device, electronic equipment and a storage medium. The method comprises the following steps: double ends comprise a server and a client, the server obtains a pre-configured multi-dimensional traffic limiting strategy and obtains real-time traffic of each dimension, and traffic limiting is carried out on the server according to the real-time traffic and the multi-dimensional traffic limiting strategy; and the client performs current limiting on the target accounting product by using an idle asynchronous thread mechanism. On the basis, through double-end current limiting, the situation that the load is too high possibly occurring when the bank bill business volume is too large can be effectively avoided, and the problems of performance reduction, response speed reduction, even service collapse and the like caused by the situation are avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of data processing technology, and in particular to a bank note double-end current limiting method, device, electronic device and storage medium. Background Art

[0002] With the launch of a new generation of equally divided bills, on the one hand, financial institutions support bill splitting, and the business volume has also increased dramatically, especially for customer channel business; on the other hand, in order to improve clearing efficiency and support batch centralized clearing, the bill system generates a large number of accounting requests at the same time, which also creates tremendous pressure on the downstream core system.

[0003] When the system faces a large number of high-concurrency requests, it often experiences performance degradation, slow response, and even service crashes due to excessive load. Summary of the invention

[0004] The embodiments of the present application provide a bank bill dual-end current limiting method, device, electronic device and storage medium to avoid problems such as performance degradation, slow response speed, and even service crash caused by excessive load.

[0005] In a first aspect, an embodiment of the present application provides a bank note dual-end current limiting method, the method comprising:

[0006] The server obtains a pre-configured multi-dimensional flow limiting strategy and obtains real-time flow in each dimension, and limits flow on the server according to the real-time flow and the multi-dimensional flow limiting strategy;

[0007] The client uses an idle asynchronous thread mechanism to limit the flow of the target accounting product.

[0008] In a second aspect, an embodiment of the present application provides a bank note double-end current limiting device, the device comprising:

[0009] A server-side current limiting module is used for the server to obtain a pre-configured multi-dimensional current limiting strategy and obtain the real-time traffic of each dimension, and to limit the current of the server according to the real-time traffic and the multi-dimensional current limiting strategy;

[0010] The client flow limiting module is used for the client to limit the flow of the target accounting product by utilizing the idle asynchronous thread mechanism.

[0011] In a third aspect, an embodiment of the present application further provides an electronic device, the electronic device comprising:

[0012] one or more processors;

[0013] a storage device for storing one or more programs,

[0014] When one or more programs are executed by one or more processors, the one or more processors implement the bank bill two-end current limiting method provided in any embodiment of the present application.

[0015] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored, characterized in that when the program is executed by a processor, a two-end current limiting method for bank bills as provided in any embodiment of the present application is implemented.

[0016] The technical solution of the embodiment of the present application includes a server and a client at both ends. The server obtains a pre-configured multi-dimensional flow limiting strategy and obtains real-time traffic in each dimension, and limits the flow of the server according to the real-time traffic and the multi-dimensional flow limiting strategy; the client uses an idle asynchronous thread mechanism to limit the flow of the target accounting product. Based on this, through the flow limiting of both ends, it is possible to effectively avoid the situation of excessive load that may occur when the bank bill business volume is too large, and avoid the performance degradation, slow response speed, and even service crash caused by this situation. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 A schematic diagram of the flow chart of the bank note double-end current limiting method provided in the first embodiment of the present application;

[0018] Figure 2 A schematic diagram of the structure of a double-end current limiting device for bank notes provided in Example 2 of the present application;

[0019] Figure 3 A schematic diagram of the structure of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION

[0020] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only the parts related to the present application, rather than all structures, are shown in the accompanying drawings.

[0021] Embodiment 1

[0022] Figure 1 This is a flow chart of the bank note double-end current limiting method provided in the first embodiment of the present application, as shown in FIG. Figure 1 As shown, the bank bill two-end current limiting method provided in this embodiment can be applied to a bank bill two-end current limiting platform mounted on a device with data processing capability such as a computer, and can be used in conjunction with some application software to achieve a better experience. Specifically, the following steps may be included:

[0023] Step 101: The server obtains a pre-configured multi-dimensional flow limiting strategy and obtains the real-time flow of each dimension, and limits the flow of the server according to the real-time flow and the multi-dimensional flow limiting strategy.

[0024] In this step, a multi-dimensional current limiting strategy is pre-configured in the server. Specifically, the server receives the multi-dimensional configuration information of the user and generates a multi-dimensional current limiting strategy based on the multi-dimensional configuration information.

[0025] The user's multi-dimensional configuration information may be input through an interactive interface, and the multi-dimensional configuration information may include single-dimensional configuration information and / or combined-dimensional configuration information.

[0026] Single dimension configuration information refers to the configuration of flow limiting for each dimension separately. For example, for dimensions such as interface, client, and server, flow thresholds are set separately to form flow limiting strategies for each dimension. Combined dimension configuration information sets a common flow threshold for the combined dimension.

[0027] Specifically, if the multi-dimensional configuration information only includes single-dimension configuration information, a current limiting strategy is set for each dimension according to the single-dimension configuration information, and a set of current limiting strategies corresponding to each dimension is determined as a multi-dimensional current limiting strategy.

[0028] In a specific example, taking the three dimensions of interface, client, and server as an example, the user sets single dimension configuration information for each dimension, such as setting the first single dimension configuration information for the interface, setting the second single dimension configuration information for the client, and setting the third single dimension configuration information for the server.

[0029] Based on these single dimension configuration information, the corresponding flow limiting strategy for each dimension is generated. For example, if the flow threshold in the first single dimension configuration information is 10,000, then the corresponding interface flow limiting strategy is to limit when the flow exceeds 10,000.

[0030] It should be noted that the means of restriction may include online interception, over-limit warning, etc.

[0031] If the multi-dimensional configuration information only includes the combined dimension configuration information, when generating a multi-dimensional current limiting strategy, the current limiting strategy can be set for the corresponding dimension combination according to the combined dimension configuration information, and the set of current limiting strategies corresponding to each dimension combination is determined as the multi-dimensional current limiting strategy.

[0032] Specifically, the combined dimension configuration information means that the total traffic of the dimension combination shall not exceed the traffic threshold, which is more flexible.

[0033] In addition, if the multi-dimensional configuration information includes single dimension configuration information and combined dimension configuration information; when generating a multi-dimensional current limiting strategy, a current limiting strategy is set for each dimension according to the single dimension configuration information, and a current limiting strategy is set for the corresponding dimension combination according to the combined dimension configuration information; the current limiting strategy corresponding to each dimension and the set of current limiting strategies corresponding to each dimension combination are determined as a multi-dimensional current limiting strategy.

[0034] It should be noted that the process can refer to the aforementioned process and will not be repeated here.

[0035] In order to enhance the flexibility of flow control, the server adjusts the multi-dimensional flow control strategy according to the real-time flow of each dimension obtained. This is mainly for the scenario of lowering the threshold. For example, if a certain dimension or a combination of dimensions does not exceed the configured flow threshold within a certain period of time, then a threshold closer to the general demand can be calculated based on the real-time flow and historical flow of the dimension or the combination of dimensions.

[0036] Of course, the traffic in different time periods is also different. This embodiment can also configure different traffic thresholds for different time periods, this dimension or a combination of dimensions according to the traffic in different time periods, so as to generate a flow limiting strategy that is more appropriate for the actual scenario.

[0037] Step 102: The client uses the idle asynchronous thread mechanism to limit the flow of the target accounting product.

[0038] In this step, when the client performs accounting for the target accounting product, it determines the number of threads required by the target accounting product; if the current idle threads can meet the number of threads, the target accounting product is accepted, otherwise, the target accounting product is put on waiting for processing.

[0039] It should be noted that the target accounting product is the accounting product that needs to be limited. The accounting product number that needs to be limited can be set in advance. Each time an accounting product is received, it is first determined whether the accounting product is the accounting product number set above. If so, the accounting product is the target accounting product.

[0040] In addition, the idle asynchronous thread mechanism means that the target accounting product will be accepted when there are idle threads. Specifically, since different accounting products require different numbers of threads, when accounting for the target accounting product, it can be determined whether the current number of idle threads can meet the needs of the target accounting product. If so, it can be accepted, otherwise, it will wait. This effectively avoids the target accounting product occupying idle threads.

[0041] In this embodiment, the two ends include a server and a client. The server obtains a pre-configured multi-dimensional flow limiting strategy and obtains real-time traffic in each dimension, and limits the flow of the server according to the real-time traffic and the multi-dimensional flow limiting strategy; the client uses the idle asynchronous thread mechanism to limit the flow of the target accounting product. Based on this, through the flow limiting of the two ends, it is possible to effectively avoid the situation of excessive load that may occur when the bank bill business volume is too large, and avoid the performance degradation, slow response speed, and even service crash caused by this situation.

[0042] Embodiment 2

[0043] Figure 2 This is a schematic diagram of the structure of a bank note double-end current limiting device provided in the second embodiment of the present application. The bank note double-end current limiting device provided in the embodiment of the present application can execute the bank note double-end current limiting method provided in any embodiment of the present application, and has the corresponding functional modules and beneficial effects of the execution method. The device can be implemented in software and / or hardware, such as Figure 2 As shown, the bank note dual-end current limiting device specifically includes: a server-end current limiting module 201 and a client-end current limiting module 202.

[0044] Among them, the server-side current limiting module is used for the server to obtain the pre-configured multi-dimensional current limiting strategy and obtain the real-time traffic of each dimension, and limit the server-side current according to the real-time traffic and the multi-dimensional current limiting strategy;

[0045] The client-side current limiting module is used for the client to use the idle asynchronous thread mechanism to limit the current of the target accounting product.

[0046] In this embodiment, the two ends include a server and a client. The server obtains a pre-configured multi-dimensional flow limiting strategy and obtains real-time traffic in each dimension, and limits the flow of the server according to the real-time traffic and the multi-dimensional flow limiting strategy; the client uses the idle asynchronous thread mechanism to limit the flow of the target accounting product. Based on this, through the flow limiting of the two ends, it is possible to effectively avoid the situation of excessive load that may occur when the bank bill business volume is too large, and avoid the performance degradation, slow response speed, and even service crash caused by this situation.

[0047] Furthermore, the device is also used for:

[0048] The server receives the user's multi-dimensional configuration information and generates a multi-dimensional current limiting strategy based on the multi-dimensional configuration information.

[0049] Further, the multi-dimensional configuration information includes single-dimensional configuration information;

[0050] The device is also used to:

[0051] A current limiting strategy is set for each dimension according to the single dimension configuration information, and a set of current limiting strategies corresponding to each dimension is determined as a multi-dimensional current limiting strategy.

[0052] Further, the multi-dimensional configuration information includes combined dimension configuration information;

[0053] The device is also used to:

[0054] A current limiting strategy is set for a corresponding dimension combination according to the combined dimension configuration information, and a set of current limiting strategies corresponding to each dimension combination is determined as a multi-dimensional current limiting strategy.

[0055] Furthermore, the multi-dimensional configuration information includes single-dimension configuration information and combined-dimension configuration information;

[0056] The device is also used to:

[0057] Set a current limiting strategy for each dimension based on the single dimension configuration information, and set a current limiting strategy for the corresponding dimension combination based on the combined dimension configuration information;

[0058] The current limiting strategy corresponding to each dimension and the set of current limiting strategies corresponding to each combination of dimensions are determined as a multi-dimensional current limiting strategy.

[0059] Furthermore, the client current limiting module is used to:

[0060] When the client performs accounting for the target accounting product, the client determines the number of threads required by the target accounting product;

[0061] If the current idle threads can meet the thread quantity, the target accounting product is accepted, otherwise, the target accounting product waits for processing.

[0062] Furthermore, the device is also used for:

[0063] The server adjusts the multi-dimensional flow control strategy based on the real-time traffic in each dimension.

[0064] Embodiment 3

[0065] Figure 3 A schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present application is shown in FIG. Figure 3 As shown, the electronic device includes a processor 310, a memory 320, an input device 330 and an output device 340; the number of the processor 310 in the electronic device can be one or more. Figure 3 A processor 310 is taken as an example; the processor 310, the memory 320, the input device 330 and the output device 340 in the electronic device can be connected via a bus or other means. Figure 3 The example of connecting through bus is taken in the following.

[0066] The memory 320 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the bank bill two-end current limiting method in the embodiment of the present invention. The processor 310 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 320, that is, to implement the above-mentioned bank bill two-end current limiting method:

[0067] The server obtains the pre-configured multi-dimensional flow limiting strategy and the real-time flow of each dimension, and limits the flow of the server according to the real-time flow and the multi-dimensional flow limiting strategy;

[0068] The client uses the idle asynchronous thread mechanism to limit the flow of the target accounting product.

[0069] In this embodiment, the two ends include a server and a client. The server obtains a pre-configured multi-dimensional flow limiting strategy and obtains real-time traffic in each dimension, and limits the flow of the server according to the real-time traffic and the multi-dimensional flow limiting strategy; the client uses the idle asynchronous thread mechanism to limit the flow of the target accounting product. Based on this, through the flow limiting of the two ends, it is possible to effectively avoid the situation of excessive load that may occur when the bank bill business volume is too large, and avoid the performance degradation, slow response speed, and even service crash caused by this situation.

[0070] Furthermore, the method also includes:

[0071] The server receives the user's multi-dimensional configuration information and generates a multi-dimensional current limiting strategy based on the multi-dimensional configuration information.

[0072] Further, the multi-dimensional configuration information includes single-dimensional configuration information;

[0073] Generate multi-dimensional current limiting strategies based on multi-dimensional configuration information, including:

[0074] A current limiting strategy is set for each dimension according to the single dimension configuration information, and a set of current limiting strategies corresponding to each dimension is determined as a multi-dimensional current limiting strategy.

[0075] Further, the multi-dimensional configuration information includes combined dimension configuration information;

[0076] Generate multi-dimensional current limiting strategies based on multi-dimensional configuration information, including:

[0077] A current limiting strategy is set for a corresponding dimension combination according to the combined dimension configuration information, and a set of current limiting strategies corresponding to each dimension combination is determined as a multi-dimensional current limiting strategy.

[0078] Furthermore, the multi-dimensional configuration information includes single-dimension configuration information and combined-dimension configuration information;

[0079] Generate multi-dimensional current limiting strategies based on multi-dimensional configuration information, including:

[0080] Set a current limiting strategy for each dimension based on the single dimension configuration information, and set a current limiting strategy for the corresponding dimension combination based on the combined dimension configuration information;

[0081] The current limiting strategy corresponding to each dimension and the set of current limiting strategies corresponding to each combination of dimensions are determined as a multi-dimensional current limiting strategy.

[0082] Furthermore, the client uses the idle asynchronous thread mechanism to limit the flow of the target accounting product, including:

[0083] When the client performs accounting for the target accounting product, the client determines the number of threads required by the target accounting product;

[0084] If the current idle threads can meet the thread quantity, the target accounting product is accepted, otherwise, the target accounting product waits for processing.

[0085] Furthermore, the method also includes:

[0086] The server adjusts the multi-dimensional flow control strategy based on the real-time traffic in each dimension.

[0087] The memory 320 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application required for a function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 320 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 320 may further include a memory remotely arranged relative to the processor 310, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0088] Embodiment 4

[0089] Embodiment 4 of the present application further provides a storage medium containing computer executable instructions, which are used to execute a bank note two-end current limiting method when executed by a computer processor, the method comprising:

[0090] The server obtains the pre-configured multi-dimensional flow limiting strategy and the real-time flow of each dimension, and limits the flow of the server according to the real-time flow and the multi-dimensional flow limiting strategy;

[0091] The client uses the idle asynchronous thread mechanism to limit the flow of the target accounting product.

[0092] In this embodiment, the two ends include a server and a client. The server obtains a pre-configured multi-dimensional flow limiting strategy and obtains real-time traffic in each dimension, and limits the flow of the server according to the real-time traffic and the multi-dimensional flow limiting strategy; the client uses the idle asynchronous thread mechanism to limit the flow of the target accounting product. Based on this, through the flow limiting of the two ends, it is possible to effectively avoid the situation of excessive load that may occur when the bank bill business volume is too large, and avoid the performance degradation, slow response speed, and even service crash caused by this situation.

[0093] Furthermore, the method also includes:

[0094] The server receives the user's multi-dimensional configuration information and generates a multi-dimensional current limiting strategy based on the multi-dimensional configuration information.

[0095] Further, the multi-dimensional configuration information includes single-dimensional configuration information;

[0096] Generate multi-dimensional current limiting strategies based on multi-dimensional configuration information, including:

[0097] A current limiting strategy is set for each dimension according to the single dimension configuration information, and a set of current limiting strategies corresponding to each dimension is determined as a multi-dimensional current limiting strategy.

[0098] Further, the multi-dimensional configuration information includes combined dimension configuration information;

[0099] Generate multi-dimensional current limiting strategies based on multi-dimensional configuration information, including:

[0100] A current limiting strategy is set for a corresponding dimension combination according to the combined dimension configuration information, and a set of current limiting strategies corresponding to each dimension combination is determined as a multi-dimensional current limiting strategy.

[0101] Furthermore, the multi-dimensional configuration information includes single-dimension configuration information and combined-dimension configuration information;

[0102] Generate multi-dimensional current limiting strategies based on multi-dimensional configuration information, including:

[0103] Set a current limiting strategy for each dimension based on the single dimension configuration information, and set a current limiting strategy for the corresponding dimension combination based on the combined dimension configuration information;

[0104] The current limiting strategy corresponding to each dimension and the set of current limiting strategies corresponding to each combination of dimensions are determined as a multi-dimensional current limiting strategy.

[0105] Furthermore, the client uses the idle asynchronous thread mechanism to limit the flow of the target accounting product, including:

[0106] When the client performs accounting for the target accounting product, the client determines the number of threads required by the target accounting product;

[0107] If the current idle threads can meet the thread quantity, the target accounting product is accepted, otherwise, the target accounting product waits for processing.

[0108] Furthermore, the method also includes:

[0109] The server adjusts the multi-dimensional flow control strategy based on the real-time traffic in each dimension.

[0110] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application, whose computer executable instructions are not limited to the above method operations, can also execute related operations in the bank bill two-end current limiting method provided in any embodiment of the present application.

[0111] Through the above description of the implementation method, the technicians in the relevant field can clearly understand that the present application can be implemented with the help of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application can be essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of each embodiment of the present application.

[0112] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application.

[0113] Note that the above are only preferred embodiments of the present application and the technical principles used. Those skilled in the art will understand that the present application is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the appended claims.

Claims

1. A bank note double-end current limiting method, characterized in that: The two ends include a server and a client, and the method includes: The server obtains a pre-configured multi-dimensional flow limiting strategy and obtains real-time flow in each dimension, and limits flow on the server according to the real-time flow and the multi-dimensional flow limiting strategy; The client uses an idle asynchronous thread mechanism to limit the flow of the target accounting product.

2. The method according to claim 1, characterized in that The method further comprises: The server receives multi-dimensional configuration information of the user and generates a multi-dimensional current limiting strategy according to the multi-dimensional configuration information.

3. The method according to claim 2, characterized in that The multi-dimensional configuration information includes single-dimensional configuration information; The generating a multi-dimensional current limiting strategy according to the multi-dimensional configuration information includes: A current limiting strategy is set for each dimension according to the single dimension configuration information, and a set of current limiting strategies corresponding to each dimension is determined as a multi-dimensional current limiting strategy.

4. The method according to claim 2, characterized in that: The multi-dimensional configuration information includes combined dimension configuration information; The generating a multi-dimensional current limiting strategy according to the multi-dimensional configuration information includes: A current limiting strategy is set for a corresponding dimension combination according to the combined dimension configuration information, and a set of current limiting strategies corresponding to each dimension combination is determined as a multi-dimensional current limiting strategy.

5. The method according to claim 2, characterized in that: The multi-dimensional configuration information includes single dimension configuration information and combined dimension configuration information; The generating a multi-dimensional current limiting strategy according to the multi-dimensional configuration information includes: Setting a flow limiting strategy for each dimension according to the single dimension configuration information, and setting a flow limiting strategy for the corresponding dimension combination according to the combined dimension configuration information; The current limiting strategy corresponding to each dimension and the set of current limiting strategies corresponding to each combination of dimensions are determined as a multi-dimensional current limiting strategy.

6. The method according to claim 1, characterized in that The client uses an idle asynchronous thread mechanism to limit the flow of the target accounting product, including: When the client performs accounting for the target accounting product, determining the number of threads required by the target accounting product; If the current idle threads can satisfy the number of threads, the target accounting product is accepted; otherwise, the target accounting product waits for processing.

7. The method according to claim 1, characterized in that The method further comprises: The server adjusts the multi-dimensional flow limiting strategy according to the acquired real-time flow in each dimension.

8. A bank note double-end current limiting device, characterized in that: The device comprises: A server-side current limiting module is used for the server to obtain a pre-configured multi-dimensional current limiting strategy and obtain the real-time traffic of each dimension, and to limit the current of the server according to the real-time traffic and the multi-dimensional current limiting strategy; The client flow limiting module is used for the client to limit the flow of the target accounting product by utilizing the idle asynchronous thread mechanism.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the bank bill two-end current limiting method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the bank note two-end current limiting method as described in any one of claims 1-7 is implemented.