Electronic receipt acquisition method and device, equipment, medium and program product
By employing a layered architecture of multi-line routing devices and external connection devices, the complex problem of enterprises accessing electronic receipts across multiple banks is solved, enabling unified acquisition and efficient download of electronic receipts.
Patent Information
- Application Number
- CN202511268525.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-09-05
- Publication Date
- 2025-12-16
AI Technical Summary
When a company opens accounts with multiple banks, the different interface protocols and data formats of each bank make the electronic receipt access process complex and require a large amount of development work.
Through a layered architecture of multi-line routing devices and external connection devices, multiple bank receipt requests are processed in a unified manner. Electronic receipt acquisition is divided into two stages: information query and file download. Pre-set algorithms are used for encryption, decryption, and format conversion, enabling one-time connection to multiple banks.
It simplifies the interaction process between enterprises and multiple banks, improves the efficiency and compatibility of electronic receipt acquisition, and reduces development complexity and maintenance difficulty.
Smart Images

Figure CN121146882A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data processing technology, and in particular to an electronic receipt acquisition method, apparatus, device, medium, and program product. Background Technology
[0002] In daily corporate financial management, bank receipts serve as crucial documents recording fund transactions and are essential original evidence for accounting processing and audit traceability. With the development of digital technology, electronic bank receipts have become the mainstream form, replacing traditional paper receipts with electronic documents and providing convenience for corporate fund management.
[0003] Currently, businesses typically open accounts with multiple banks. Different banks have different interface protocols, data formats, and other requirements. When integrating with the electronic receipt function of multiple banks, it is necessary to develop adaptation logic separately for each bank, resulting in a complex integration process and a large workload for development. Summary of the Invention
[0004] This application provides an electronic receipt acquisition method, apparatus, device, medium, and program product to solve the problem that in the prior art, enterprises usually open accounts with multiple banks, and different banks have different interface protocols, data formats, and other requirements. When connecting to the electronic receipt function of multiple banks, it is necessary to develop adaptation logic separately for each bank, which leads to a complex access process and a large amount of development work.
[0005] In a first aspect, this application provides an electronic receipt acquisition method, the method being applied to a multi-line routing device, comprising:
[0006] Receive an electronic receipt query request sent by an external device; the electronic receipt query request includes a target account and a target time period; the target account is the account for which the electronic receipt is to be queried, and the target time period is the time period for which the query is to be performed; the electronic receipt query request is triggered by the user through a client device;
[0007] The target bank is determined based on the electronic receipt query request, and the electronic receipt query request is sent to the front-end machine of the target bank; the target bank is the bank to which the target account belongs;
[0008] Receive target electronic receipt information sent by the target bank's front-end machine, and send the target electronic receipt information to the external device, so that the external device sends the target electronic receipt information to the client device;
[0009] Receive an electronic receipt download request sent by the external device; the electronic receipt download request includes the identification information of the electronic receipt to be downloaded;
[0010] Send the electronic receipt download request to the target bank's front-end server;
[0011] The target electronic receipt is obtained from the target bank's front-end machine and sent to the external device.
[0012] In one possible design, the electronic receipt query request and the electronic receipt download request sent by the external device are encrypted requests;
[0013] After receiving the electronic receipt query request sent by the external device, the method further includes:
[0014] The electronic receipt query request is decrypted using a preset decryption algorithm to obtain the decrypted electronic receipt query request.
[0015] After receiving the electronic receipt download request sent by the external device, the process further includes:
[0016] The electronic receipt download request is decrypted using a preset decryption algorithm to obtain the decrypted electronic receipt download request.
[0017] In one possible design, determining the target bank based on the electronic receipt query request and sending the electronic receipt query request to the target bank's front-end server includes:
[0018] The target bank is determined based on the target account;
[0019] Adjust the format of the electronic receipt query request to the target format corresponding to the target bank to obtain the target electronic receipt query request;
[0020] The target electronic receipt query request is sent to the target bank's front-end server.
[0021] In one possible design, obtaining the target electronic receipt from the target bank's front-end machine and sending the target electronic receipt to the external device includes:
[0022] Determine the current server environment;
[0023] Based on the current server environment, the original electronic receipt is obtained from the target bank's front-end machine according to a preset method;
[0024] Determine the user's network access type;
[0025] The original electronic receipt is encrypted using a preset encryption algorithm to obtain the target electronic receipt;
[0026] The target electronic receipt is sent to the external device based on the user's network access type.
[0027] Secondly, this application provides an electronic receipt acquisition method, the method being applied to external devices, comprising:
[0028] Receive an electronic receipt query request triggered by a user through a client device, and send the electronic receipt query request to the multi-line routing device;
[0029] Receive the target electronic receipt information sent by the multi-line routing device, and send the target electronic receipt information to the client device;
[0030] Receive an electronic receipt download request triggered by a user through a client device, and send the electronic receipt download request to the multi-line routing device;
[0031] The system receives the target electronic receipt sent by the multi-line routing device and sends the target electronic receipt to the client device.
[0032] In one possible design, before sending the electronic receipt query request to the multi-line routing device, the method further includes:
[0033] The electronic receipt query request is encrypted using a preset encryption algorithm to obtain the encrypted electronic receipt query request;
[0034] Before sending the electronic receipt download request to the multi-line routing device, the method further includes:
[0035] The electronic receipt download request is encrypted using a preset encryption algorithm to obtain the encrypted electronic receipt download request.
[0036] In one possible design, before sending the target electronic receipt to the client device, the method further includes:
[0037] Determine whether to enable the smart association feature;
[0038] If the user enables the intelligent association function, a preset feature extraction algorithm is used to extract key information from the target electronic receipt in order to obtain the target receipt data.
[0039] Obtain the original transaction data corresponding to the target account; the target account is the account for which the electronic receipt is to be queried; the original transaction data includes multiple transaction records;
[0040] A preset semantic model is used, and the similarity between the target return data and each of the original transaction data is determined based on the target return data and the original transaction data;
[0041] The similarity is compared with a similarity threshold;
[0042] If the similarity is greater than the similarity threshold, then the original transaction data corresponding to the similarity is associated with the target return data to obtain the target associated data;
[0043] Sending the target electronic receipt to the client device includes:
[0044] Add the target associated data to the target electronic receipt;
[0045] The target electronic receipt with the added target association data is sent to the client device.
[0046] Thirdly, this application provides an electronic receipt acquisition device, comprising:
[0047] The receiving module is used to receive payment requests for the target project sent by the client device;
[0048] The acquisition module is used to obtain the initial payment information for the target project;
[0049] The verification module is used to verify the initial payment information using a preset smart contract;
[0050] The storage module is used to store the verified initial payment information on the blockchain;
[0051] The acquisition module is also used to, in response to receiving the payment request for the target project, acquire the target payment information and generate a target payment list based on the target payment information;
[0052] The matching module is used to match the initial payment information read from the blockchain with the target payment information to obtain a matching result;
[0053] The execution module is used to perform the payment operation if the matching result is determined to be a successful match.
[0054] Fourthly, this application provides an electronic receipt acquisition device, located in a multi-line routing device, comprising:
[0055] The first receiving module is used to receive an electronic receipt query request sent by an external device; the electronic receipt query request includes a target account and a target time period; the target account is the account for which the electronic receipt is to be queried, and the target time period is the time period for which the query is to be performed; the electronic receipt query request is triggered by the user through a client device.
[0056] The determination module is used to determine the target bank based on the electronic receipt query request;
[0057] The first sending module is used to send the electronic receipt query request to the front-end machine of the target bank; the target bank is the bank to which the target account belongs;
[0058] The first receiving module is also used to receive the target electronic receipt information sent by the target bank's front-end machine;
[0059] The first sending module is further configured to send the target electronic receipt information to the external device, so that the external device sends the target electronic receipt information to the client device;
[0060] The first receiving module is also configured to receive an electronic receipt download request sent by the external device; the electronic receipt download request includes the identification information of the electronic receipt to be downloaded;
[0061] The first sending module is also used to obtain the target electronic receipt from the target bank's front-end machine and send the target electronic receipt to the external device.
[0062] Fifthly, this application provides an electronic receipt acquisition device, located in an external connection device, comprising:
[0063] The second receiving module is used to receive electronic receipt query requests triggered by users through client devices;
[0064] The second sending module is used to send the electronic receipt query request to the multi-line routing device;
[0065] The second receiving module is also used to receive the target electronic receipt information sent by the multi-line routing device;
[0066] The second sending module is also used to send the target electronic receipt information to the client device;
[0067] The second receiving module is also used to receive electronic receipt download requests triggered by the user through the client device;
[0068] The second sending module is also used to send the electronic receipt download request to the multi-line routing device;
[0069] The second receiving module is also used to receive the target electronic receipt sent by the multi-line routing device;
[0070] The second sending module is also used to send the target electronic receipt to the client device.
[0071] Sixthly, embodiments of this application provide an electronic device, including: at least one processor and a memory; the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory, causing the at least one processor to perform the electronic receipt acquisition method as described in the first aspect and various possible designs of the first aspect or the second aspect and various possible designs of the second aspect.
[0072] In a seventh aspect, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions. When a processor executes the computer-executable instructions, it implements the electronic receipt acquisition method described in the first aspect and various possible designs of the first aspect, or in the second aspect and various possible designs of the second aspect.
[0073] Eighthly, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the electronic receipt acquisition method described in the first aspect and various possible designs of the first aspect or the second aspect and various possible designs of the second aspect.
[0074] The electronic receipt acquisition method, apparatus, equipment, medium, and program products provided in this application receive electronic receipt query requests sent by external devices. The electronic receipt query request includes a target account and a target time period. The target account is the account for which the electronic receipt is to be queried, and the target time period is the time period for which the query is to be performed. The electronic receipt query request is triggered by a user through a client device. Based on the electronic receipt query request, the target bank is determined, and the electronic receipt query request is sent to the target bank's front-end server. The target bank is the bank to which the target account belongs. The system receives target electronic receipt information sent by the target bank's front-end server and sends the target electronic receipt information to the external device, so that the external device sends the target electronic receipt information to the client device. The system also receives electronic receipt download requests sent by external devices and sends the electronic receipt download requests to the target bank's front-end server. Finally, the system obtains the target electronic receipt from the target bank's front-end server and sends the target electronic receipt to the external device. Because the acquisition of electronic receipts is divided into two stages—information query and file download—when receiving an electronic receipt query request from an external device, the target bank is determined based on the query request, and the request is sent to the target bank's front-end server. The electronic receipt query request includes the target account and target time period. The target account is the account for which the electronic receipt is to be queried, and the target time period is the time period to be queried. The electronic receipt query request is triggered by the user through the client device. The target bank is the bank to which the target account belongs. Further, the target electronic receipt information is received from the target bank's front-end server and sent to the external device, which then forwards the target electronic receipt information to the client device. After the user makes a selection, the client device triggers an electronic receipt download request, which is then sent to the external device. This download request includes the identifier information of the electronic receipt to be downloaded. Then, it receives electronic receipt download requests from external devices and forwards these requests to the target bank's front-end server. It then retrieves the target electronic receipt from the target bank's front-end server and sends it back to the external devices. Compared to each enterprise establishing a separate connection with each bank, this approach divides the interaction between the client and the bank system into a layered architecture of client, external devices, multi-bank routing devices, and bank front-end servers. The multi-bank routing devices handle multi-bank receipt requests uniformly, enabling a single connection for multiple banks and unifying the acquisition of electronic receipts. Furthermore, by querying first and then initiating targeted downloads based on the query results, it avoids invalid file transfers. Attached Figure Description
[0075] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0076] Figure 1This is an application scenario diagram of the electronic receipt acquisition method applicable to the embodiments of this application;
[0077] Figure 2 A flowchart illustrating an embodiment of the electronic receipt acquisition method provided in this application;
[0078] Figure 3 A flowchart illustrating an electronic receipt acquisition method provided in another embodiment of this application;
[0079] Figure 4 A schematic diagram of the structure of an electronic receipt acquisition device provided in an embodiment of this application;
[0080] Figure 5 A schematic diagram of the structure of an electronic receipt acquisition device provided in yet another embodiment of this application;
[0081] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application.
[0082] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0083] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0084] The collection, storage, use, processing, transmission, provision, and disclosure of financial data or user data involved in the technical solution of this application all comply with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0085] It should be noted that in the embodiments of this application, certain software, components, models and other existing solutions in the industry may be mentioned. These should be regarded as exemplary and are only intended to illustrate the feasibility of implementing the technical solution of this application. However, it does not mean that the applicant has used or necessarily used the solution.
[0086] To clearly understand the technical solution of this application, the solutions of the prior art will be described in detail first.
[0087] Electronic transaction receipts (ECTS) are digital transaction vouchers provided by banks, which businesses can use for financial reconciliation and other purposes. Currently, businesses typically have accounts at multiple banks, each with different interface protocols, data format requirements, and so on. To obtain ETS, integrating with multiple banks' ETS functionality requires developing separate adaptation logic for each bank, resulting in a complex integration process and a large development workload. Furthermore, banks also need to establish separate connections with each business, leading to maintenance difficulties.
[0088] To address the aforementioned technical issues, this application proposes the following technical concept: The enterprise client does not need to directly connect to multiple bank systems; it only needs to interact with multiple bank routing devices via external devices to complete the query and download of electronic receipts from all banks. Specifically, it receives electronic receipt query requests sent by external devices, determines the target bank based on the query request, and sends the electronic receipt query request to the target bank's front-end server. The electronic receipt query request includes the target account and target time period. The target account is the account for which the electronic receipt is to be queried, and the target time period is the time period to be queried. The electronic receipt query request is triggered by the user through the client device. The target bank is the bank to which the target account belongs. Then, it receives the target electronic receipt information sent by the target bank's front-end server and sends the target electronic receipt information to the external devices, enabling the external devices to send the target electronic receipt information to the client device. After the user makes a selection, the client device triggers an electronic receipt download request and sends it to the external devices. The electronic receipt download request includes the identification information of the electronic receipt to be downloaded. Furthermore, the system receives electronic receipt download requests from external devices and forwards these requests to the target bank's front-end server. It then retrieves the target electronic receipt from the target bank's front-end server and sends it back to the external devices. Users can trigger the download via their client devices, thereby improving the efficiency and compatibility of obtaining electronic receipts from multiple banks.
[0089] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will now be described with reference to the accompanying drawings.
[0090] Figure 1 This is an application scenario diagram of the electronic receipt acquisition method applicable to the embodiments of this application, such as... Figure 1As shown. The system corresponding to the electronic receipt acquisition method in this embodiment may include: a client device 11, a server device 12, and a bank front-end machine 13. The bank front-end machine 13 includes bank front-end machine A and bank front-end machine B. Bank front-end machine A is the target bank's front-end machine. The server device includes a multi-line routing device 121 and an external connection device 122. The user triggers an electronic receipt query request through the electronic receipt interface of the client device 11, and the client device 11 sends the electronic receipt query request to the external connection device 122 in the server device 12. In response to receiving the electronic receipt query request, the external connection device 122 performs interface adaptation and sends the electronic receipt query request to the multi-line routing device 121. The multi-line routing device 121 receives the electronic receipt query request sent by the external connection device 122, determines the target bank based on the electronic receipt query request, and sends the electronic receipt query request to the target bank's front-end machine. Multi-line routing device 121 receives target electronic receipt information sent by the target bank's front-end machine and sends it to external device 122, which then forwards it to client device 11. The user identifies the electronic receipt to be downloaded based on the information and sends a download request to external device 122. External device 122, upon receiving the download request, performs interface adaptation and forwards the request to multi-line routing device 121. Multi-line routing device 121 then forwards the download request to the target bank's front-end machine, retrieves the target electronic receipt, and sends it to external device 122. The user can then download the target electronic receipt through client device 11.
[0091] Figure 2 A flowchart of an electronic receipt acquisition method provided in an embodiment of this application is shown below. Figure 2 As shown, the execution entity in this embodiment is a multi-line routing device. This multi-line routing device can be implemented through a computer program, or through a medium storing the relevant computer program, such as a USB flash drive and / or optical disc; alternatively, it can be implemented through a physical device that integrates or installs the relevant computer program, such as a chip or electronic device. The electronic receipt acquisition method provided in this embodiment includes the following steps:
[0092] S201, Receive electronic receipt query request sent by external device.
[0093] The electronic receipt query request includes the target account and the target time period. The target account is the account for which the electronic receipt is to be queried, and the target time period is the time period for which the query is to be performed. The electronic receipt query request is triggered by the user through the client device.
[0094] Specifically, in this embodiment, an electronic receipt query request sent by an external device is received.
[0095] As an optional implementation, based on the above embodiments, the electronic receipt query request and electronic receipt download request sent by the external device are encrypted requests;
[0096] After receiving the electronic receipt query request from the external device, it also includes:
[0097] The electronic receipt query request is decrypted using a preset decryption algorithm to obtain the decrypted electronic receipt query request.
[0098] After receiving the electronic receipt download request from the external device, it also includes:
[0099] The electronic receipt download request is decrypted using a preset decryption algorithm to obtain the decrypted electronic receipt download request.
[0100] Specifically, in this embodiment, the user triggers an electronic receipt query request by inputting a target account and a target time period through a client device. The client device sends the electronic receipt query request to an external device, which encrypts the electronic receipt query request using a preset encryption algorithm and then sends the encrypted electronic receipt query request to a multi-line routing device. Upon receiving the encrypted electronic receipt query request, the multi-line routing device decrypts the electronic receipt query request using a preset decryption algorithm to obtain the decrypted electronic receipt query request.
[0101] Similarly, the user triggers an electronic receipt download request through the client device. The client device sends the electronic receipt download request to the external device, which encrypts the electronic receipt download request using a preset encryption algorithm and sends the encrypted electronic receipt download request to the multi-line routing device. After receiving the encrypted electronic receipt download request, the multi-line routing device decrypts the electronic receipt download request using a preset decryption algorithm to obtain the decrypted electronic receipt download request.
[0102] Optionally, the preset encryption algorithm and preset decryption algorithm can be symmetric block cipher algorithms, which are not limited in this embodiment.
[0103] S202: Based on the electronic receipt query request, the target bank is determined, and the electronic receipt query request is sent to the target bank's front-end machine.
[0104] The target bank is the bank to which the target account belongs.
[0105] Understandably, the target bank can be any bank.
[0106] As an optional implementation, the following steps can be used to determine the target bank based on the electronic receipt query request and send the electronic receipt query request to the target bank's front-end server, including: determining the target bank based on the target account number; adjusting the electronic receipt query request format to the target format corresponding to the target bank to obtain the target electronic receipt query request; and sending the target electronic receipt query request to the target bank's front-end server.
[0107] Among them, the target electronic receipt query request is an electronic receipt query request adjusted to the format corresponding to the target bank.
[0108] Specifically, in this embodiment, the target account is obtained, the bank to which the target account belongs is determined based on the bank identification information included in the target account, the electronic receipt request format corresponding to the target bank is read from the preset bank format configuration file, and the format of the received electronic receipt query request is converted into the target format corresponding to the target bank, thereby obtaining the target electronic receipt query request. The target electronic receipt query request is then sent to the front-end machine of the target bank.
[0109] Optionally, the preset bank format configuration file includes a mapping relationship between the target bank and the corresponding request format of the target bank.
[0110] For example, assuming the electronic receipt query request is in JSON format and the target bank requires it to be in XML format, the JSON format will be converted to XML format, and the field names will be adjusted to the specifications required by the target bank.
[0111] Specifically, by accurately identifying the bank to which the target account belongs, requests are sent to the correct recipients, avoiding mis-sent or missed requests. The request format is adjusted to be compatible with the target bank, resolving the issue of inconsistent interface specifications between different bank systems and improving the compatibility between multi-bank routing devices and the front-end servers of various banks.
[0112] S203 receives the target electronic receipt information sent by the target bank's front-end machine and sends the target electronic receipt information to the external device, so that the external device sends the target electronic receipt information to the client device.
[0113] The target electronic receipt information refers to the electronic receipt records generated by the target account within the target time period, but does not include the specific electronic receipt. It includes summary information such as receipt number, transaction time, and amount.
[0114] Specifically, in this embodiment, after the multi-line routing platform obtains the target electronic receipt information from the target bank's front-end machine, the multi-line routing platform generates a response message according to a preset response message format. The response message includes the target electronic receipt information, and the response message is encrypted using a preset encryption algorithm. The encrypted response message is then sent to the external device, which decrypts the encrypted response message and sends it to the client device.
[0115] S204: Receive an electronic receipt download request sent by an external device.
[0116] The electronic receipt download request includes the identification information of the electronic receipt to be downloaded.
[0117] Specifically, in this embodiment, after receiving the target electronic receipt information, the user can select at least one electronic receipt to be downloaded through the client device, then trigger an electronic receipt download request and send it to the external device. The external device then sends the electronic receipt download request to the multi-line routing device, which receives the electronic receipt download request.
[0118] S205 sends the electronic receipt download request to the target bank's front-end server.
[0119] Specifically, in this embodiment, the multi-line routing device reads the electronic receipt request format corresponding to the target bank from a preset bank format configuration file, and converts the format of the received electronic receipt download request into the target format corresponding to the target bank, thereby obtaining the target electronic receipt download request. The target electronic receipt download request is then sent to the target bank's front-end processor.
[0120] S206: Obtain the target electronic receipt from the target bank's front-end machine and send the target electronic receipt to the external connection device.
[0121] As an optional implementation, the following steps can be used to obtain the target electronic receipt from the target bank's front-end server and send the target electronic receipt to an external device, including: determining the current server environment; obtaining the original electronic receipt from the target bank's front-end server based on the current server environment and according to a preset method; determining the user's network access type; encrypting the original electronic receipt using a preset encryption algorithm to obtain the target electronic receipt; and sending the target electronic receipt to the external device based on the user's network access type.
[0122] Specifically, the preset methods include obtaining the data via API request, secure file transfer protocol, and bank front-end server directory. If the preset method is API request, the target bank front-end server returns a file identifier and download address, and the multi-line routing device obtains the corresponding original electronic receipt via the download address. If the preset method is secure file transfer protocol, the multi-line routing device connects to the server corresponding to the secure file transfer protocol and then obtains the original electronic receipt from that server. If the preset method is bank front-end server directory, the multi-line routing device downloads the original electronic receipt from the bank front-end server directory.
[0123] The server environment includes a Windows server and a Secure File Transfer Protocol (SSL) service. If a Windows server is used, the bank's front-end server can share the electronic receipt file directory with the multi-line routing server. If the SSL service is used, the multi-line routing device downloads the original electronic receipts from the bank's front-end server directory via the SSL protocol.
[0124] Specifically, network access types include leased lines and wireless networks. If the network access type is a leased line, the decrypted target electronic receipt is uploaded to the external device via a pre-configured file server. If the network access type is a wireless network, the decrypted target electronic receipt is sent to the external device via an HTTP file stream with the transaction attached.
[0125] Optionally, the preset file server is a self-defined file server, which is not limited in this embodiment.
[0126] Specifically, in this embodiment, when the target bank's front-end server sends the response information of the target electronic receipt to the multi-line routing device, if the current server environment is a running Windows server, the original electronic receipt is retrieved from the target bank's front-end server's directory. If the current server environment is a Secure File Transfer Protocol (SLP) service, the original electronic receipt can be obtained from the target bank's front-end server via an interface request or the SLP. Further, the multi-line routing device reads the network access type of the client device and the external device. If the network access type is a leased line, the file is uploaded to the external device via a preset file server. If the network access type is a wireless network, the file is sent to the external device via an HTTP file stream with attachments. After obtaining the original electronic receipt, a preset encryption algorithm is used to encrypt the original electronic receipt to obtain the target electronic receipt. The target electronic receipt is then sent to the external device based on the user's network access type.
[0127] The electronic receipt acquisition method provided in this application includes: receiving an electronic receipt query request sent by an external device; the electronic receipt query request includes a target account and a target time period; the target account is the account of the electronic receipt to be queried, and the target time period is the time period to be queried; the electronic receipt query request is triggered by a user through a client device; determining the target bank based on the electronic receipt query request and sending the electronic receipt query request to the target bank's front-end server; the target bank is the bank to which the target account belongs; receiving the target electronic receipt information sent by the target bank's front-end server and sending the target electronic receipt information to the external device, so that the external device sends the target electronic receipt information to the client device; receiving an electronic receipt download request sent by the external device; sending the electronic receipt download request to the target bank's front-end server; obtaining the target electronic receipt from the target bank's front-end server and sending the target electronic receipt to the external device. Since the electronic receipt acquisition is split into two stages—information query and file download—when receiving the electronic receipt query request sent by the external device, the target bank is determined based on the electronic receipt query request, and the electronic receipt query request is sent to the target bank's front-end server. The electronic receipt query request includes the target account and target time period. The target account is the account for which the electronic receipt is to be queried, and the target time period is the time period for which the query is to be performed. The electronic receipt query request is triggered by the user through the client device. The target bank is the bank to which the target account belongs. Further, the system receives the target electronic receipt information sent by the target bank's front-end machine and sends it to an external device, which then forwards the target electronic receipt information to the client device. After the user makes a selection, the client device triggers an electronic receipt download request, which is then sent to the external device. This download request includes the identifier information of the electronic receipt to be downloaded. Then, it receives electronic receipt download requests from external devices and forwards these requests to the target bank's front-end server. It then retrieves the target electronic receipt from the target bank's front-end server and sends it back to the external devices. Compared to each enterprise establishing a separate connection with each bank, this approach divides the interaction between the client and the bank system into a layered architecture of client, external devices, multi-bank routing devices, and bank front-end servers. The multi-bank routing devices handle multi-bank receipt requests uniformly, enabling a single connection for multiple banks and unifying the acquisition of electronic receipts. Furthermore, by querying first and then initiating targeted downloads based on the query results, it avoids invalid file transfers.
[0128] This application provides an embodiment of an electronic receipt acquisition method. The executing entity in this embodiment is an external device. This multi-line routing device can be implemented through a computer program, or through a medium storing the relevant computer program, such as a USB flash drive and / or optical disc; alternatively, it can be implemented through a physical device integrating or installing the relevant computer program, such as a chip or electronic device. The electronic receipt acquisition method provided in this embodiment includes:
[0129] Receive electronic receipt query requests triggered by users through client devices and send the electronic receipt query requests to the multi-line routing device;
[0130] Receive the target electronic receipt information sent by the multi-line routing device and send the target electronic receipt information to the client device;
[0131] Receive electronic receipt download requests triggered by users through client devices and send the electronic receipt download requests to the multi-line routing device;
[0132] Receive the target electronic receipt sent by the multi-line routing device and send the target electronic receipt to the client device.
[0133] The client device can be a corporate financial system, but this embodiment does not limit it.
[0134] Specifically, in this embodiment, after receiving an electronic receipt query request triggered by a user through a client device, the external connection device can encrypt the electronic receipt query request using a preset encryption algorithm and send the encrypted electronic receipt query request to the multi-line routing device through a preset interface. After receiving the target electronic receipt information sent by the multi-line routing device, if the target electronic receipt information is encrypted, it is decrypted using a preset decryption algorithm and sent to the client device after the preset decryption algorithm is used. After receiving an electronic receipt download request triggered by a user through a client device, the external connection device can encrypt the electronic receipt download request using a preset encryption algorithm and send the encrypted electronic receipt download request to the multi-line routing device through a preset interface. After receiving the target electronic receipt sent by the multi-line routing device, if the target electronic receipt is encrypted, it is decrypted using a preset decryption algorithm and sent to the client device after the preset decryption algorithm is used.
[0135] Optionally, the preset interface is a pre-defined interface used for communication between external devices and multi-row routing devices, etc. Communication can also be carried out in other ways, which are not limited in this embodiment.
[0136] Specifically, the external connection device acts as an intermediate node between the client and the multi-line routing device, uniformly receiving and forwarding query requests. This simplifies the direct interaction between the client and the multi-bank system, reduces the complexity of client development, and uniformly forwards download requests, avoiding direct communication between the client and the multi-line routing device and reducing the risk of network exposure.
[0137] As an optional implementation, based on the above embodiments, before sending the electronic receipt query request to the multi-line routing device, the method further includes:
[0138] The electronic receipt query request is encrypted using a preset encryption algorithm to obtain the encrypted electronic receipt query request;
[0139] Before sending the electronic receipt download request to the multi-line routing device, the method also includes:
[0140] The electronic receipt download request is encrypted using a preset encryption algorithm to obtain the encrypted electronic receipt download request.
[0141] Specifically, in this embodiment, before the external device sends the electronic receipt query request to the multi-line routing device, it encrypts the electronic receipt query request using a preset encryption algorithm to obtain an encrypted electronic receipt query request. Similarly, the electronic receipt download request is encrypted using the same preset encryption algorithm to obtain an encrypted electronic receipt download request.
[0142] Optionally, the preset encryption algorithm and preset decryption algorithm can be symmetric algorithms, which are not limited in this embodiment.
[0143] The electronic receipt acquisition method provided in this application encrypts the request sent by the client device, realizing "end-to-end" encryption from the client to the multi-line routing device, preventing the request from being intercepted and parsed during transmission, and further enhancing the security of data transmission.
[0144] As an optional implementation, based on the above embodiments, before sending the target electronic receipt to the client device, the method further includes:
[0145] Determine whether to enable the smart association feature;
[0146] If the user enables the intelligent association function, the preset feature extraction algorithm will be used to extract key information from the target electronic receipt in order to obtain the target receipt data.
[0147] Obtain the original transaction data corresponding to the target account; the target account is the account for which the electronic receipt is to be queried; the original transaction data includes multiple transaction records;
[0148] A pre-defined semantic model is used to determine the similarity between the target return data and each original transaction data based on the target return data and the original transaction data;
[0149] Compare the similarity score with a similarity threshold;
[0150] If the similarity is greater than the similarity threshold, the original transaction data corresponding to the similarity will be associated with the target return data to obtain the target associated data.
[0151] Send the target electronic receipt to the client device, including:
[0152] Add the target-related data to the target electronic receipt;
[0153] Send the target electronic receipt with added target-related data to the client device.
[0154] The intelligent association function is used to match the target electronic receipt with the corresponding original transaction data.
[0155] Understandably, the smart association function can be enabled or disabled by the user.
[0156] Among them, target transaction data refers to the transaction-related feature data extracted from target transaction records. Raw transaction data refers to the transaction data generated when the target account makes transactions.
[0157] Specifically, in this embodiment, the external device reads the user account's preset configuration file to determine whether the user has enabled the smart association function. If the user has not enabled the smart association function, the process directly proceeds to the receipt sending process. If the user has enabled the smart association function, a preset feature extraction algorithm is used to identify the text in the target electronic receipt, and the target electronic receipt is parsed in a structured manner, outputting structured fields as the target receipt data. The original transaction data corresponding to the target account in the target time period is read from the preset database. A preset semantic model is called to perform the same feature extraction on the original transaction data as on the target electronic receipt. The target receipt data and each corresponding feature extracted from the original transaction data are converted into semantic vectors, and the vector cosine similarity is calculated. The calculated similarity is compared with a similarity threshold. If the similarity is greater than the similarity threshold, the original transaction data corresponding to the similarity is associated with the target receipt data, thereby obtaining the target associated data.
[0158] Optionally, the preset semantic model can be a Bidirectional Encoder Representations from Transformers (BERT) model, or it can be set independently according to requirements. This embodiment does not impose any restrictions.
[0159] Optionally, the target receipt data may include transaction time, transaction amount, payee and payee accounts, transaction channel, handling fee, business type description, etc., which are not limited in this embodiment.
[0160] Optionally, the preset feature extraction algorithm can be an optical character recognition algorithm or a pre-trained neural network model; this embodiment does not impose any limitations.
[0161] Specifically, the target associated data can be the watermark information of the transaction sequence number in the original transaction data, the transaction data corresponding to the target electronic receipt, or a two-way mapping table between the receipt number of the target electronic receipt and the transaction sequence number of the corresponding original transaction data. This embodiment does not impose any limitations.
[0162] Furthermore, target-related data is added to the target electronic receipt, generating a data packet containing target-related transaction data, and the target electronic receipt with the added target-related data is sent to the client device.
[0163] The electronic receipt acquisition method provided in this application balances functional flexibility and user privacy needs by allowing users to choose whether to enable intelligent association. It employs a preset feature extraction algorithm to automatically extract key information from receipts, replacing manual data entry and improving the efficiency and accuracy of information extraction. Through threshold filtering and association binding, it ensures that only highly relevant transaction data is associated, avoiding interference from invalid information. Furthermore, embedding associated data into the receipts allows users to intuitively understand the transaction background corresponding to the receipts, reducing manual verification costs and improving financial processing efficiency.
[0164] Figure 3 A flowchart of an electronic receipt acquisition method provided in another embodiment of this application is shown below. Figure 3 As shown, the execution entity in this embodiment is an electronic receipt acquisition system. This system includes: a server-side device, a client-side device, and a bank front-end server. The server-side device includes external connection devices and multi-line routing devices. The electronic receipt acquisition method provided in this embodiment includes the following steps:
[0165] S301, the target user triggers an electronic receipt query request through the electronic receipt query interface of the client device and sends it to the external device.
[0166] S302, the external device will encrypt the received electronic receipt query request using a preset encryption algorithm.
[0167] S303, the external device sends the encrypted electronic receipt query request to the multi-line routing device.
[0168] Among them, the external device performs interface adaptation and sends it to the multi-row routing device.
[0169] S304, the multi-line routing device uses a preset decryption algorithm to decrypt the encrypted electronic receipt query request, and determines the target bank based on the decrypted electronic receipt query request and adjusts the electronic receipt query request format to the target format corresponding to the target bank, thereby obtaining the target electronic receipt query request.
[0170] S305, the multi-line routing device sends the target electronic receipt query request to the target bank's front-end machine.
[0171] S306, the target bank's front-end machine sends the corresponding target electronic receipt information to the multi-bank routing device.
[0172] S307, the multi-line routing device encrypts the target electronic receipt information.
[0173] S308, and sends the encrypted target electronic receipt information to the external device.
[0174] S309, the external device decrypts the encrypted target electronic receipt information and saves it in the local database.
[0175] S310, the external device sends a response message to the client device indicating that it has received the target electronic receipt information.
[0176] Users can download and view the target electronic receipt information through their client devices.
[0177] S311, the target user selects the electronic receipt to be downloaded from the target electronic receipt information through the electronic receipt download interface of the client device and sends an electronic receipt download request to the external device.
[0178] The electronic receipt download request includes the identification information of the electronic receipt to be downloaded.
[0179] S312, the external device will encrypt the received electronic receipt download request using a preset encryption algorithm.
[0180] S313, the external device sends the encrypted electronic receipt download request to the multi-line routing device.
[0181] Among them, the external device performs interface adaptation and sends it to the multi-row routing device.
[0182] S314, the multi-line routing device uses a preset decryption algorithm to decrypt the encrypted electronic receipt download request, and determines the target bank based on the decrypted electronic receipt download request and adjusts the electronic receipt download request format to the target format corresponding to the target bank, thereby obtaining the target electronic receipt download request.
[0183] The target electronic receipt download request is the electronic receipt download request with the adjusted format.
[0184] S315, the multi-line routing device sends the target electronic receipt download request to the target bank's front-end machine.
[0185] Among them, the bank front-end machine can be any bank's front-end machine, and the front-end machine of the bank corresponding to the target account is the target bank's front-end machine.
[0186] S316: The multi-line routing device determines the current server environment and, based on this environment, retrieves the original electronic receipt from the target bank's front-end machine according to a preset method. It also determines the user's network access type and encrypts the original electronic receipt using a preset encryption algorithm, thereby obtaining the target electronic receipt.
[0187] S317, the multi-line routing device sends the target electronic receipt to the external device.
[0188] S318, the external device decrypts the target electronic receipt and saves it in the local database.
[0189] S319, the external device sends a response message to the client device indicating that it has received the target electronic receipt information.
[0190] Figure 4 An electronic receipt acquisition device provided in one embodiment of this application, such as Figure 4 As shown, the electronic receipt acquisition device provided in this embodiment is located in the electronic device, and the electronic receipt acquisition device 40 provided in this embodiment includes: a first receiving module 41, a determining module 42, and a first sending module 43.
[0191] The system includes a first receiving module 41, which receives an electronic receipt query request sent by an external device. The electronic receipt query request includes a target account and a target time period. The target account is the account for which the electronic receipt is to be queried, and the target time period is the time period for which the query is to be performed. The electronic receipt query request is triggered by the user through a client device. A determining module 42 is used to determine the target bank based on the electronic receipt query request. A first sending module 43 is used to send the electronic receipt query request to the target bank's front-end server. The target bank is the bank to which the target account belongs. The first receiving module 41 is also used to receive target electronic receipt information sent by the target bank's front-end server. The first sending module 43 is also used to send the target electronic receipt information to the external device, so that the external device sends the target electronic receipt information to the client device. The first receiving module 41 is also used to receive an electronic receipt download request sent by the external device. The first sending module 43 is also used to obtain the target electronic receipt from the target bank's front-end server and send the target electronic receipt to the external device.
[0192] Optionally, the electronic receipt query request and electronic receipt download request sent by the external device are encrypted requests.
[0193] Accordingly, the electronic receipt acquisition device provided in this embodiment also includes a decryption module.
[0194] The decryption module receives an electronic receipt query request from an external device and decrypts it using a preset decryption algorithm to obtain a decrypted electronic receipt query request. The decryption module also receives an electronic receipt download request from an external device and decrypts it using a preset decryption algorithm to obtain a decrypted electronic receipt download request.
[0195] Optionally, when determining the target bank based on the electronic receipt query request and sending the electronic receipt query request to the target bank's front-end machine, the determining module 42 is specifically used for: determining the target bank based on the target account; adjusting the format of the electronic receipt query request to the target format corresponding to the target bank to obtain the target electronic receipt query request; and sending the target electronic receipt query request to the target bank's front-end machine.
[0196] Optionally, the first sending module 43, after obtaining the target electronic receipt from the target bank's front-end machine and sending the target electronic receipt to the external device, is specifically used for: determining the current server environment; obtaining the original electronic receipt from the target bank's front-end machine based on the current server environment and according to a preset method; determining the user's network access type; encrypting the original electronic receipt using a preset encryption algorithm to obtain the target electronic receipt; and sending the target electronic receipt to the external device based on the user's network access type.
[0197] Figure 5 An electronic receipt acquisition device provided in another embodiment of this application, such as Figure 5 As shown, the electronic receipt acquisition device provided in this embodiment is located in an electronic device, and the electronic receipt acquisition device 50 provided in this embodiment includes: a second receiving module 51 and a second sending module 52.
[0198] The second receiving module 51 is used to receive an electronic receipt query request triggered by a user through a client device; the second sending module 52 is used to send the electronic receipt query request to a multi-line routing device; the second receiving module 51 is also used to receive target electronic receipt information sent by the multi-line routing device; the second sending module 52 is also used to send the target electronic receipt information to the client device; the second receiving module 51 is also used to receive an electronic receipt download request triggered by a user through a client device; the second sending module 52 is also used to send the electronic receipt download request to the multi-line routing device; the second receiving module 51 is also used to receive the target electronic receipt sent by the multi-line routing device; the second sending module 52 is also used to send the target electronic receipt to the client device.
[0199] Optionally, the electronic receipt acquisition device provided in this embodiment further includes an encryption module.
[0200] Accordingly, an encryption module is used to encrypt the electronic receipt query request using a preset encryption algorithm before sending it to the multi-line routing device, thus obtaining an encrypted electronic receipt query request. Similarly, an encryption module is used to encrypt the electronic receipt download request using a preset encryption algorithm before sending it to the multi-line routing device, thus obtaining an encrypted electronic receipt download request.
[0201] Optionally, the electronic receipt acquisition device provided in this embodiment further includes: a determination module, an extraction module, an acquisition module, a comparison module, and an establishment module.
[0202] Accordingly, the determination module is used to determine whether the intelligent association function is enabled before sending the target electronic receipt to the client device. The extraction module is used to extract key information from the target electronic receipt using a preset feature extraction algorithm if the user enables the intelligent association function, in order to obtain the target receipt data. The acquisition module is used to acquire the original transaction data corresponding to the target account; the target account is the account of the electronic receipt to be queried, and the original transaction data includes multiple transaction data. The determination module is also used to determine the similarity between the target receipt data and each original transaction data using a preset semantic model based on the target receipt data and the original transaction data. The comparison module is used to compare the similarity with a similarity threshold. The establishment module is used to establish an association between the original transaction data corresponding to the similarity and the target receipt data if the similarity is greater than the similarity threshold, in order to obtain the target associated data. The second sending module 52, when sending the target electronic receipt to the client device, is specifically used to add the target associated data to the target electronic receipt; and send the target electronic receipt with the added target associated data to the client device.
[0203] The electronic receipt acquisition device provided in this application embodiment can be used to execute the technical solution based on the electronic receipt acquisition method in the above embodiment. Its implementation principle and technical effect are similar, and will not be described again here.
[0204] It should be noted that the division of the various modules in the above device is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these modules can be implemented entirely in software through processing element calls; they can be implemented entirely in hardware; or some modules can be implemented by processing element calls to software, while others are implemented in hardware.
[0205] Figure 6 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Figure 6 As shown, the electronic device 60 may include: a processor 61 and a memory 62.
[0206] The memory 62 stores computer-executable instructions; the processor 61 executes the computer-executable instructions stored in the memory 62 to implement the electronic receipt acquisition method provided in any of the above embodiments. Related explanations can be understood by referring to the relevant descriptions and effects corresponding to the steps in the accompanying drawings, and will not be elaborated upon here.
[0207] Processor 61 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0208] The memory 62 is connected to the processor 61 via the system bus and completes communication between them. The memory 62 is used to store computer program instructions.
[0209] The system bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The system bus can be divided into address bus, data bus, control bus, etc. For ease of representation, only one thick line is used in the diagram, but this does not indicate that there is only one bus or one type of bus. Transceivers are used to enable communication between database access devices and other computers (e.g., clients, read-write libraries, and read-only libraries). Memory may include random access memory (RAM) and may also include non-volatile memory.
[0210] The electronic device provided in this application embodiment can be the terminal device described in the above embodiments.
[0211] This application also provides a chip for executing instructions, which is used to execute the technical solution of the electronic receipt acquisition method in the above embodiments.
[0212] This application also provides a computer-readable storage medium storing computer instructions that, when executed on a computer, cause the computer to perform the technical solution of the electronic receipt acquisition method described above.
[0213] This application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When the at least one processor executes the computer program, it can implement the technical solution of the electronic receipt acquisition method in the above embodiments.
[0214] In the several embodiments provided in this application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or modules, and may be electrical, mechanical, or other forms.
[0215] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to implement the solution of this embodiment according to actual needs.
[0216] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each module can exist physically separately, or two or more modules can be integrated into one unit. The unit composed of the above modules can be implemented in hardware or in the form of hardware plus software functional units.
[0217] The integrated modules described above, implemented as software functional modules, can be stored in a computer-readable storage medium. These software functional modules, stored in a storage medium, include several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute some steps of the methods of the various embodiments of this application.
[0218] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0219] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0220] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0221] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0222] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0223] The division of units is merely a logical functional division; in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0224] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0225] 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.
[0226] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0227] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0228] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A method for obtaining electronic receipts, characterized in that, The method is applied to multi-row routing devices, including: Receive an electronic receipt query request sent by an external device; the electronic receipt query request includes a target account and a target time period; the target account is the account for which the electronic receipt is to be queried, and the target time period is the time period for which the query is to be performed; the electronic receipt query request is triggered by the user through a client device; The target bank is determined based on the electronic receipt query request, and the electronic receipt query request is sent to the front-end machine of the target bank; the target bank is the bank to which the target account belongs; Receive target electronic receipt information sent by the target bank's front-end machine, and send the target electronic receipt information to the external device, so that the external device sends the target electronic receipt information to the client device; Receive an electronic receipt download request sent by the external device; the electronic receipt download request includes the identification information of the electronic receipt to be downloaded; Send the electronic receipt download request to the target bank's front-end server; The target electronic receipt is obtained from the target bank's front-end machine and sent to the external device.
2. The method according to claim 1, characterized in that, The electronic receipt query request and the electronic receipt download request sent by the external device are encrypted requests; After receiving the electronic receipt query request sent by the external device, the method further includes: The electronic receipt query request is decrypted using a preset decryption algorithm to obtain the decrypted electronic receipt query request. After receiving the electronic receipt download request sent by the external device, the process further includes: The electronic receipt download request is decrypted using a preset decryption algorithm to obtain the decrypted electronic receipt download request.
3. The method according to claim 1, characterized in that, The step of determining the target bank based on the electronic receipt query request and sending the electronic receipt query request to the target bank's front-end server includes: The target bank is determined based on the target account; Adjust the format of the electronic receipt query request to the target format corresponding to the target bank to obtain the target electronic receipt query request; The target electronic receipt query request is sent to the target bank's front-end server.
4. The method according to claim 1, characterized in that, The step of obtaining the target electronic receipt from the target bank's front-end machine and sending the target electronic receipt to the external device includes: Determine the current server environment; Based on the current server environment, the original electronic receipt is obtained from the target bank's front-end machine according to a preset method; Determine the user's network access type; The original electronic receipt is encrypted using a preset encryption algorithm to obtain the target electronic receipt; The target electronic receipt is sent to the external device based on the user's network access type.
5. A method for obtaining electronic receipts, characterized in that, The method is applied to external devices, including: Receive an electronic receipt query request triggered by a user through a client device, and send the electronic receipt query request to the multi-line routing device; Receive the target electronic receipt information sent by the multi-line routing device, and send the target electronic receipt information to the client device; Receive an electronic receipt download request triggered by a user through a client device, and send the electronic receipt download request to the multi-line routing device; The system receives the target electronic receipt sent by the multi-line routing device and sends the target electronic receipt to the client device.
6. The method according to claim 5, characterized in that, Before sending the electronic receipt query request to the multi-line routing device, the method further includes: The electronic receipt query request is encrypted using a preset encryption algorithm to obtain the encrypted electronic receipt query request; Before sending the electronic receipt download request to the multi-line routing device, the method further includes: The electronic receipt download request is encrypted using a preset encryption algorithm to obtain the encrypted electronic receipt download request.
7. The method according to claim 5, characterized in that, Before sending the target electronic receipt to the client device, the method further includes: Determine whether to enable the smart association feature; If the user enables the intelligent association function, a preset feature extraction algorithm is used to extract key information from the target electronic receipt in order to obtain the target receipt data. Obtain the original transaction data corresponding to the target account; the target account is the account for which the electronic receipt is to be queried; the original transaction data includes multiple transaction records; A preset semantic model is used, and the similarity between the target return data and each of the original transaction data is determined based on the target return data and the original transaction data; The similarity is compared with a similarity threshold; If the similarity is greater than the similarity threshold, then the original transaction data corresponding to the similarity is associated with the target return data to obtain the target associated data; Sending the target electronic receipt to the client device includes: Add the target associated data to the target electronic receipt; The target electronic receipt with the added target association data is sent to the client device.
8. An electronic receipt acquisition device, characterized in that, Located in multi-row routing devices, including: The first receiving module is used to receive an electronic receipt query request sent by an external device; the electronic receipt query request includes a target account and a target time period; the target account is the account for which the electronic receipt is to be queried, and the target time period is the time period for which the query is to be performed; the electronic receipt query request is triggered by the user through a client device. The determination module is used to determine the target bank based on the electronic receipt query request; The first sending module is used to send the electronic receipt query request to the front-end machine of the target bank; the target bank is the bank to which the target account belongs; The first receiving module is also used to receive the target electronic receipt information sent by the target bank's front-end machine; The first sending module is further configured to send the target electronic receipt information to the external device, so that the external device sends the target electronic receipt information to the client device; The first receiving module is also configured to receive an electronic receipt download request sent by the external device; the electronic receipt download request includes the identification information of the electronic receipt to be downloaded; The first sending module is also used to obtain the target electronic receipt from the target bank's front-end machine and send the target electronic receipt to the external device.
9. An electronic receipt acquisition device, characterized in that, Located in external connection equipment, including: The second receiving module is used to receive electronic receipt query requests triggered by users through client devices; The second sending module is used to send the electronic receipt query request to the multi-line routing device; The second receiving module is also used to receive the target electronic receipt information sent by the multi-line routing device; The second sending module is also used to send the target electronic receipt information to the client device; The second receiving module is also used to receive electronic receipt download requests triggered by the user through the client device; The second sending module is also used to send the electronic receipt download request to the multi-line routing device; The second receiving module is also used to receive the target electronic receipt sent by the multi-line routing device; The second sending module is also used to send the target electronic receipt to the client device.
10. An electronic device, characterized in that, include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory to implement the method as described in any one of claims 1-7.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-7.
12. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method of any one of claims 1-7.