CN111639936A - Transaction information acquisition method and device, electronic equipment and readable storage medium - Google Patents

Transaction information acquisition method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111639936A
CN111639936A CN202010445526.6A CN202010445526A CN111639936A CN 111639936 A CN111639936 A CN 111639936A CN 202010445526 A CN202010445526 A CN 202010445526A CN 111639936 A CN111639936 A CN 111639936A
Authority
CN
China
Prior art keywords
transaction
serial number
transaction request
request
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010445526.6A
Other languages
Chinese (zh)
Other versions
CN111639936B (en
Inventor
陈卓
孙炎森
徐晓剑
刘伟韡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Citic Bank Corp Ltd
Original Assignee
China Citic Bank Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Citic Bank Corp Ltd filed Critical China Citic Bank Corp Ltd
Priority to CN202010445526.6A priority Critical patent/CN111639936B/en
Publication of CN111639936A publication Critical patent/CN111639936A/en
Application granted granted Critical
Publication of CN111639936B publication Critical patent/CN111639936B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/389Keeping log of transactions for guaranteeing non-repudiation of a transaction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer And Data Communications (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a method and a device for acquiring transaction information, electronic equipment and a readable storage medium. The method comprises the following steps: when a first transaction request is received, determining whether a transaction serial number exists in the first transaction request; if the transaction serial number exists, the transaction serial number is obtained, and the transaction serial number is bound with the first transaction information read from the first transaction request and then sent to the second server; and if the transaction information does not exist, adding a transaction serial number into the first transaction request through the Java agent, associating the transaction serial number with the second transaction information read from the first transaction request, and sending the second transaction information to the second server. Based on this scheme, can realize the timely acquisition to transaction information, have stronger ageing, can satisfy the in-service use demand.

Description

Transaction information acquisition method and device, electronic equipment and readable storage medium
Technical Field
The application relates to the technical field of computers, in particular to a method and a device for acquiring transaction information, electronic equipment and a readable storage medium.
Background
The financial institution has the requirements of counting and analyzing the fund information of the client in a period of time and finally carrying out visual display, and the method is realized by the following modes: and each business system of the financial institution summarizes respective data to a data warehouse or a big data platform every day, and the data warehouse or the big data platform carries out statistical analysis on the summarized data according to each dimension according to statistical rules and finally displays the data.
According to the mode, after data collection is carried out on each business system, statistical analysis and display are carried out on a data warehouse or a big data platform, the timeliness is poor, the transaction information of a user cannot be obtained in time, and the actual use requirement cannot be met.
Disclosure of Invention
The present application aims to solve at least one of the above technical drawbacks. The technical scheme adopted by the application is as follows:
in a first aspect, an embodiment of the present application provides a method for acquiring transaction information, where the method includes:
when a first transaction request is received, determining whether a transaction serial number exists in the first transaction request;
if the transaction serial number exists, the transaction serial number is obtained, and the transaction serial number is bound with the first transaction information read from the first transaction request and then sent to the second server;
and if the transaction information does not exist, adding a transaction serial number into the first transaction request through the Java agent, associating the transaction serial number with the second transaction information read from the first transaction request, and sending the second transaction information to the second server.
Optionally, the method further includes:
generating a second transaction request based on the first transaction request, wherein the second transaction request carries a transaction serial number;
and sending the second transaction request to the third server so that the third server associates the transaction serial number with the third transaction information read from the second transaction request and sends the transaction serial number to the second server.
Optionally, the first transaction information comprises a tag of the first transaction request; the third transaction information includes a tag of the first transaction request and a tag of the second transaction request.
Optionally, the method further includes:
acquiring a configuration file, wherein field information corresponding to the first transaction request is configured in the configuration file;
based on the field information, a first transaction request is determined.
Optionally, adding a transaction serial number to the first transaction request by the Java agent, including:
intercepting a communication function of the first transaction request through the Java agent;
and adding a transaction serial number in the communication message of the first transaction request.
In a second aspect, an embodiment of the present application provides an apparatus for acquiring transaction information, where the apparatus includes:
the transaction serial number determining module is used for determining whether a transaction serial number exists in the first transaction request when the first transaction request is received;
the transaction information sending module is used for acquiring the transaction serial number when the transaction serial number exists in the first transaction request, binding the transaction serial number with the first transaction information read from the first transaction request and then sending the first transaction information to the second server; and the second server is used for adding the transaction serial number into the first transaction request through the Java agent when the transaction serial number does not exist in the first transaction request, associating the transaction serial number with the second transaction information read from the first transaction request and sending the second transaction information to the second server.
Optionally, the transaction information sending module is further configured to:
generating a second transaction request based on the first transaction request, wherein the second transaction request carries a transaction serial number;
and sending the second transaction request to the third server so that the third server associates the transaction serial number with the third transaction information read from the second transaction request and sends the transaction serial number to the second server.
Optionally, the first transaction information comprises a tag of the first transaction request; the third transaction information includes a tag of the first transaction request and a tag of the second transaction request.
Optionally, the apparatus further includes a transaction request obtaining module, configured to:
acquiring a configuration file, wherein field information corresponding to the first transaction request is configured in the configuration file;
based on the field information, a first transaction request is determined.
Optionally, when the transaction serial number is added to the first transaction request by the Java agent, the transaction information sending module is specifically configured to:
intercepting a communication function of the first transaction request through the Java agent;
and adding a transaction serial number in the communication message of the first transaction request.
In a third aspect, an embodiment of the present application provides an electronic device, including: a processor and a memory;
a memory for storing operating instructions;
a processor configured to execute the method as shown in any of the embodiments of the first aspect of the present application by calling an operation instruction.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method shown in any one of the embodiments of the first aspect of the present application.
The technical scheme provided by the embodiment of the application has the following beneficial effects:
according to the scheme provided by the embodiment of the application, when a transaction request is received, whether a transaction serial number exists in the transaction request is determined, when the transaction serial number exists in the transaction request, the transaction serial number is obtained, and the transaction serial number is bound with first transaction information read from the transaction request and then sent to the second server; and when the transaction serial number does not exist in the transaction request, adding the transaction serial number into the transaction request through the Java agent, associating the transaction serial number with the transaction information read from the transaction request and sending the transaction serial number to the second server. Based on this scheme, can realize the timely acquisition to transaction information, have stronger ageing, can satisfy the in-service use demand.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings used in the description of the embodiments of the present application will be briefly described below.
Fig. 1 is a schematic flowchart of a transaction information obtaining method according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a transaction information obtaining apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
At present, along with the development of financial institution business, the user's demand for timely obtaining data is higher and higher, and the traditional mode of carrying out statistical analysis and display by a data warehouse or a big data platform after carrying out data summarization by each business system is poor in timeliness and can not meet the use demand of the user, and a statistical mode capable of timely obtaining transaction information is urgently needed.
The transaction information can be quickly acquired through a database replication synchronization mode. For example, the original service Data may be acquired through database Change Capture (CDC), and synchronized to the isomorphic table of the database in the Data processing layer for analysis. The method needs to establish a change table corresponding to the source table in the analysis system, and has large modification amount of the data structure of the source system and high development cost.
The transaction information can be quickly acquired by directly accessing the database of the source data system through the database link, and the method has the defects of large development amount and possibly influencing the performance of the database of the source system.
Transaction information can be collected in time through the application system transaction log files, for example, client programs (such as Filebeat) are deployed in all applications, information of all application system log files is collected, processed simply and then transmitted to a data processing layer. In the method, the log formats of the business systems are different, and the log may have the phenomena of information loss, format error and the like, so that the information capture is difficult.
The transaction information can be collected in time by a bypass monitoring mode of the network equipment. The method is generally based on the existing network equipment, the information flow convergence is realized by configuring a mirror image port, and the complete analysis of the network data message can be realized by decoding the information flow, so that the service data analysis is realized. The method is mainly used in a monitoring system, a switch or a route is required to support a 'port mirror image' function, and because the message is captured through a network layer bypass, the message is decoded through a predefined decoding strategy, and if the message is encrypted for transmission, the message cannot be decoded.
In addition, a transaction in a current financial system may be split into a plurality of sub-transactions and processed by a plurality of business systems respectively, for example, a cross-border transfer transaction is split into a transfer transaction, a commission settlement transaction and a cross-border telecommunication fee settlement transaction, and the business systems which may be involved include an internet banking system, a channel service system, a commission system, a cross-border payment system, a core system and the like. Due to the existence of multiple sub-transactions, the statistical difficulty of transaction information is improved. The multiple sub-transactions are processed by the multiple service systems respectively, and the processing of the transactions by the multiple service systems is relatively independent, which may cause repeated statistics of transaction information.
In order to facilitate statistics of transaction information scattered in each business system, a globally unique key can be defined for a transaction and used for connecting a whole transaction link in series, so that collection of the transaction information is facilitated. In actual use, defining the global keywords in the financial institution requires uniformly modifying the system source codes, which has huge workload, high development cost and system change risk.
The embodiment of the application provides a transaction information acquisition method, a transaction information acquisition device, an electronic device and a readable storage medium, and aims to solve at least one of the above technical problems in the prior art.
The following describes the technical solutions of the present application and how to solve the above technical problems with specific embodiments. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 shows a schematic flowchart of a method for acquiring transaction information according to an embodiment of the present application, and as shown in fig. 1, the method mainly includes:
step S110: when a first transaction request is received, determining whether a transaction serial number exists in the first transaction request;
step S120: if the transaction serial number exists, the transaction serial number is obtained, and the transaction serial number is bound with the first transaction information read from the first transaction request and then sent to the second server;
step S130: and if the transaction information does not exist, adding a transaction serial number into the first transaction request through a Java agent (Java agent), associating the transaction serial number with the second transaction information read from the first transaction request and sending the second transaction information to the second server.
In this embodiment, the first server may be a service server that processes a transaction request, and the second server may be a data analysis server that summarizes, analyzes, and the like transaction information.
In an embodiment of the present application, the transaction serial number may be a key uniquely defined within the financial system for identification of the transaction request. The transaction serial number may be generated according to preset rules, for example; and generating according to the preset format according to the data such as the transaction name, the transaction time and the like.
As one example, the field of the transaction sequence number may be "TradeTarceID".
In the embodiment of the application, the transaction request can be initiated by the terminal device, and the user can initiate the transaction request by operating on the client. The transaction request may be initiated internally by the financial system as needed.
In this embodiment of the application, after receiving the first transaction request, the first server may determine whether a transaction serial number exists in the first transaction request, and if the transaction serial number exists, the first server may determine that the transaction serial number has been generated before being sent to the first server, may obtain the transaction serial number, reads the first transaction information from the first transaction request, and binds the transaction serial number with the first transaction information and sends the first transaction information to the second server.
If the transaction serial number does not exist in the first transaction request, the transaction serial number can be added to the first transaction request through the Java agent, and the transaction serial number is associated with the second transaction information read from the first transaction request and is sent to the second server.
The Java agent can modify the compiled Java bytecode without affecting normal compilation. The class and the method are modified in the byte code by the Java agent, so that the transaction serial number is added to the transaction request without intruding under the condition of not influencing the existing code of each application system, and the development cost is effectively reduced.
The tracking of the transaction request in each service system can be realized based on the transaction serial number, and the transaction information of the sub-transaction requests of each service system is collected, so that the obtained transaction information is accurate, and the situation of repeatedly obtaining the transaction information can be avoided.
In the embodiment of the present application, the transaction information may include a channel type, a transaction amount, a region number, an organization transaction link, a tag information tag of a transaction request, and the like.
The second server collects and analyzes the received transaction information, and can perform visual display of each dimension on the analysis result.
The method provided by the embodiment of the application determines whether a transaction serial number exists in the transaction request when the transaction request is received, acquires the transaction serial number when the transaction serial number exists in the transaction request, binds the transaction serial number with first transaction information read from the transaction request and then sends the first transaction information to the second server; and when the transaction serial number does not exist in the transaction request, adding the transaction serial number into the transaction request through the Java agent, associating the transaction serial number with the transaction information read from the transaction request and sending the transaction serial number to the second server. Based on this scheme, can realize the timely acquisition to transaction information, have stronger ageing, can satisfy the in-service use demand.
In an optional manner of the embodiment of the present application, the method further includes:
generating a second transaction request based on the first transaction request, wherein the second transaction request carries a transaction serial number;
and sending the second transaction request to the third server so that the third server associates the transaction serial number with the third transaction information read from the second transaction request and sends the transaction serial number to the second server.
In actual use, there may be a case where a transaction request is split into a plurality of sub-requests.
In this embodiment of the application, the second transaction request is a sub-request of the first transaction request, and the third server is a service server that processes the second transaction request. The third server may associate and transmit the third transaction information read with the second transaction request to the second server.
In this embodiment, the first server or the third server may store the transaction serial number in a Context (Context) of the process, so as to add the transaction serial number to the sub-request when the sub-request is generated.
In an optional manner of the embodiment of the present application, the method further includes: the first transaction information includes a tag of the first transaction request; the third transaction information includes a tag of the first transaction request and a tag of the second transaction request.
In the embodiment of the present application, when the transaction request does not have a parent request, that is, when the transaction request is not a child request, the tag information in the transaction information of the transaction request may only include the tag of the transaction request, for example, the tag of the first transaction request may be included in the first transaction information.
In the embodiment of the present application, when a transaction request has a parent request, that is, when the transaction request is a child request of a certain transaction request, tag information in transaction information of the transaction request may only include a tag of the transaction request and a tag (that is, a parent tag) of its parent request, for example, a tag of a second transaction request and a tag of first transaction information may be included in third transaction information.
As one example, the field of the tag may be "SpaniD" and the field of the parent tag may be "ParrentSpaniD".
In an optional manner of the embodiment of the present application, the method further includes:
acquiring a configuration file, wherein field information corresponding to the first transaction request is configured in the configuration file;
based on the field information, a first transaction request is determined.
In the embodiment of the application, the first transaction request can be determined by monitoring the information of the specified field in the transaction request.
The user can specify the field information according to actual needs, and the configuration file contains the field information specified by the user.
In an optional mode of the embodiment of the present application, adding a transaction serial number to the first transaction request by using the Java agent includes:
intercepting a communication function of the first transaction request through the Java agent;
and adding a transaction serial number in the communication message of the first transaction request.
In the embodiment of the application, the Java agent can intercept the communication function of the first transaction request and add the transaction serial number to the communication message, so as to add the transaction serial number to the first transaction request.
Based on the same principle as the method shown in fig. 1, fig. 2 shows a schematic structural diagram of a transaction information obtaining apparatus provided by an embodiment of the present application, and as shown in fig. 2, the transaction information obtaining apparatus 20 may include:
a transaction serial number determining module 210, configured to determine whether a transaction serial number exists in the first transaction request when the first transaction request is received;
the transaction information sending module 220 is configured to, when a transaction serial number exists in the first transaction request, obtain the transaction serial number, bind the transaction serial number with the first transaction information read from the first transaction request, and send the bound transaction serial number to the second server; and the second server is used for adding the transaction serial number into the first transaction request through the Java agent when the transaction serial number does not exist in the first transaction request, associating the transaction serial number with the second transaction information read from the first transaction request and sending the second transaction information to the second server.
The device provided by the embodiment of the application determines whether a transaction serial number exists in the transaction request when the transaction request is received, acquires the transaction serial number when the transaction serial number exists in the transaction request, binds the transaction serial number with first transaction information read from the transaction request and then sends the first transaction information to the second server; and when the transaction serial number does not exist in the transaction request, adding the transaction serial number into the transaction request through the Java agent, associating the transaction serial number with the transaction information read from the transaction request and sending the transaction serial number to the second server. Based on this scheme, can realize the timely acquisition to transaction information, have stronger ageing, can satisfy the in-service use demand.
Optionally, the transaction information sending module is further configured to:
generating a second transaction request based on the first transaction request, wherein the second transaction request carries a transaction serial number;
and sending the second transaction request to the third server so that the third server associates the transaction serial number with the third transaction information read from the second transaction request and sends the transaction serial number to the second server.
Optionally, the first transaction information comprises a tag of the first transaction request; the third transaction information includes a tag of the first transaction request and a tag of the second transaction request.
Optionally, the apparatus further includes a transaction request obtaining module, configured to:
acquiring a configuration file, wherein field information corresponding to the first transaction request is configured in the configuration file;
based on the field information, a first transaction request is determined.
Optionally, when the transaction serial number is added to the first transaction request by the Java agent, the transaction information sending module is specifically configured to:
intercepting a communication function of the first transaction request through the Java agent;
and adding a transaction serial number in the communication message of the first transaction request.
It is understood that the above modules of the transaction information acquisition apparatus in the embodiment have functions of implementing the corresponding steps of the transaction information acquisition method in the embodiment shown in fig. 1. The function can be realized by hardware, and can also be realized by executing corresponding software by hardware. The hardware or software includes one or more modules corresponding to the functions described above. The modules can be software and/or hardware, and each module can be implemented independently or by integrating a plurality of modules. For the functional description of each module of the above apparatus for acquiring transaction information, reference may be made to the corresponding description of the method for acquiring transaction information in the embodiment shown in fig. 1, and details are not repeated here.
The embodiment of the application provides an electronic device, which comprises a processor and a memory;
a memory for storing operating instructions;
and the processor is used for executing the acquisition method of the transaction information provided by any embodiment of the application by calling the operation instruction.
As an example, fig. 3 shows a schematic structural diagram of an electronic device to which an embodiment of the present application is applicable, and as shown in fig. 3, the electronic device 2000 includes: a processor 2001 and a memory 2003. Wherein the processor 2001 is coupled to a memory 2003, such as via a bus 2002. Optionally, the electronic device 2000 may also include a transceiver 2004. It should be noted that the transceiver 2004 is not limited to one in practical applications, and the structure of the electronic device 2000 is not limited to the embodiment of the present application.
The processor 2001 is applied to the embodiment of the present application to implement the method shown in the above method embodiment. The transceiver 2004 may include a receiver and a transmitter, and the transceiver 2004 is applied to the embodiments of the present application to implement the functions of the electronic device of the embodiments of the present application to communicate with other devices when executed.
The Processor 2001 may be a CPU (Central Processing Unit), general Processor, DSP (Digital Signal Processor), ASIC (Application specific integrated Circuit), FPGA (Field Programmable Gate Array) or other Programmable logic device, transistor logic device, hardware component, or any combination thereof. Which may implement or perform the various illustrative logical blocks, modules, and circuits described in connection with the disclosure. The processor 2001 may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs and microprocessors, etc.
Bus 2002 may include a path that conveys information between the aforementioned components. The bus 2002 may be a PCI (Peripheral Component Interconnect) bus, an EISA (extended industry Standard Architecture) bus, or the like. The bus 2002 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in FIG. 3, but this does not mean only one bus or one type of bus.
The Memory 2003 may be a ROM (Read Only Memory) or other type of static storage device that can store static information and instructions, a RAM (Random Access Memory) or other type of dynamic storage device that can store information and instructions, an EEPROM (Electrically erasable programmable Read Only Memory), a CD-ROM (Compact disk Read Only Memory) or other optical disk storage, optical disk storage (including Compact disk, laser disk, optical disk, digital versatile disk, blu-ray disk, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to these.
Optionally, the memory 2003 is used for storing application program code for performing the disclosed aspects, and is controlled in execution by the processor 2001. The processor 2001 is configured to execute the application program code stored in the memory 2003 to implement the method for acquiring transaction information provided in any of the embodiments of the present application.
The electronic device provided by the embodiment of the application is applicable to any embodiment of the method, and is not described herein again.
Compared with the prior art, the electronic equipment provided by the embodiment of the application determines whether a transaction serial number exists in a transaction request when the transaction request is received, acquires the transaction serial number when the transaction serial number exists in the transaction request, binds the transaction serial number with first transaction information read from the transaction request and then sends the first transaction information to a second server; and when the transaction serial number does not exist in the transaction request, adding the transaction serial number into the transaction request through the Java agent, associating the transaction serial number with the transaction information read from the transaction request and sending the transaction serial number to the second server. Based on this scheme, can realize the timely acquisition to transaction information, have stronger ageing, can satisfy the in-service use demand.
The embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, the computer program implements the method for acquiring transaction information shown in the above method embodiment.
The computer-readable storage medium provided in the embodiments of the present application is applicable to any of the embodiments of the foregoing method, and is not described herein again.
Compared with the prior art, the embodiment of the application provides a computer-readable storage medium, which is characterized in that when a transaction request is received, whether a transaction serial number exists in the transaction request is determined, when the transaction serial number exists in the transaction request, the transaction serial number is obtained, and the transaction serial number is bound with first transaction information read from the transaction request and then sent to a second server; and when the transaction serial number does not exist in the transaction request, adding the transaction serial number into the transaction request through the Java agent, associating the transaction serial number with the transaction information read from the transaction request and sending the transaction serial number to the second server. Based on this scheme, can realize the timely acquisition to transaction information, have stronger ageing, can satisfy the in-service use demand.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
The foregoing is only a partial embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for acquiring transaction information is applied to a first server, and the method comprises the following steps:
when a first transaction request is received, determining whether a transaction serial number exists in the first transaction request;
if the transaction serial number exists, the transaction serial number is obtained, and the transaction serial number is bound with first transaction information read from the first transaction request and then sent to a second server;
and if the transaction serial number does not exist, adding the transaction serial number to the first transaction request through a Java agent, associating the transaction serial number with second transaction information read from the first transaction request, and sending the second transaction information to a second server.
2. The method of claim 1, further comprising:
generating a second transaction request based on the first transaction request, wherein the second transaction request carries the transaction serial number;
and sending the second transaction request to a third server so that the third server associates the transaction serial number with third transaction information read from the second transaction request and sends the third transaction serial number to a second server.
3. The method of claim 2, wherein the first transaction information includes a tag of the first transaction request; the third transaction information includes a tag of the first transaction request and a tag of the second transaction request.
4. The method according to any one of claims 1-3, further comprising:
acquiring a configuration file, wherein field information corresponding to the first transaction request is configured in the configuration file;
determining the first transaction request based on the field information.
5. The method of any of claims 1-3, wherein said adding, by a Java agent, the transaction serial number to the first transaction request comprises:
intercepting a communication function of the first transaction request through a Java agent;
and adding the transaction serial number in the communication message of the first transaction request.
6. An apparatus for acquiring transaction information, comprising:
the transaction serial number determining module is used for determining whether a transaction serial number exists in a first transaction request when the first transaction request is received;
the transaction information sending module is used for acquiring the transaction serial number when the transaction serial number exists in the first transaction request, binding the transaction serial number with the first transaction information read from the first transaction request and then sending the first transaction information to the second server; and the second server is used for adding the transaction serial number to the first transaction request through the Java agent when the transaction serial number does not exist in the first transaction request, associating the transaction serial number with second transaction information read from the first transaction request and sending the second transaction information to the second server.
7. The apparatus of claim 6, wherein the transaction information sending module is further configured to:
generating a second transaction request based on the first transaction request, wherein the second transaction request carries the transaction serial number;
and sending the second transaction request to a third server so that the third server associates the transaction serial number with third transaction information read from the second transaction request and sends the third transaction serial number to a second server.
8. The apparatus of claim 7, wherein the first transaction information comprises a tag of the first transaction request; the third transaction information includes a tag of the first transaction request and a tag of the second transaction request.
9. An electronic device comprising a processor and a memory;
the memory is used for storing operation instructions;
the processor is used for executing the method of any one of claims 1-5 by calling the operation instruction.
10. A computer-readable storage medium, characterized in that the storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method of any one of claims 1-5.
CN202010445526.6A 2020-05-24 2020-05-24 Transaction information acquisition method and device, electronic equipment and readable storage medium Active CN111639936B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010445526.6A CN111639936B (en) 2020-05-24 2020-05-24 Transaction information acquisition method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010445526.6A CN111639936B (en) 2020-05-24 2020-05-24 Transaction information acquisition method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111639936A true CN111639936A (en) 2020-09-08
CN111639936B CN111639936B (en) 2023-08-25

Family

ID=72332153

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010445526.6A Active CN111639936B (en) 2020-05-24 2020-05-24 Transaction information acquisition method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111639936B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882994A (en) * 2021-03-30 2021-06-01 中信银行股份有限公司 Log extraction method and device

Citations (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001350798A (en) * 2000-06-07 2001-12-21 Oki Electric Ind Co Ltd Method and device for collecting client information
US20020099738A1 (en) * 2000-11-22 2002-07-25 Grant Hugh Alexander Automated web access for back-end enterprise systems
JP2006146858A (en) * 2004-11-23 2006-06-08 Hiroki Shima Social simulation system with profiling means applied
US20060167968A1 (en) * 2003-03-06 2006-07-27 Reynolds Andrew D System and method for publish/subcribe messaging
CN102065147A (en) * 2011-01-07 2011-05-18 深圳市易聆科信息技术有限公司 Method and device for obtaining user login information based on enterprise application system
CN103778516A (en) * 2014-02-21 2014-05-07 北京购阿购技术服务有限公司 All-dimensional safety positioning trade information integration method
JP2014189356A (en) * 2013-03-26 2014-10-06 Nec Corp Cargo management system, relay device, portable communication terminal, operation method of cargo management system, and program
JP2015064849A (en) * 2013-09-26 2015-04-09 日本電気株式会社 Information presentation device, information presentation method, and program
CN104661208A (en) * 2013-11-19 2015-05-27 中国移动通信集团广东有限公司 Information detection method and device, server and mobile terminal
CN105072160A (en) * 2015-07-17 2015-11-18 联动优势科技有限公司 Serial number generating method and device, and a server
CN105337748A (en) * 2014-06-20 2016-02-17 北京奇虎科技有限公司 Log file collection method and system, server, and service cluster controlling apparatus
CN105488670A (en) * 2015-11-23 2016-04-13 上海银生宝电子支付服务有限公司 Payment request processing method, apparatus and system
KR20170052779A (en) * 2015-11-04 2017-05-15 충북대학교 산학협력단 Method and apparatus for security enhancement based on java agent
CN106845971A (en) * 2015-12-03 2017-06-13 中国电信股份有限公司 Methods, devices and systems for lifting stored value card security
CN107798529A (en) * 2017-03-28 2018-03-13 平安壹钱包电子商务有限公司 transaction data monitoring method and device
CN108257016A (en) * 2016-12-29 2018-07-06 平安科技(深圳)有限公司 Data processing method and device
CN108648080A (en) * 2018-05-03 2018-10-12 龙锋智能科技(福建)有限公司 A kind of transaction display method, device, medium and the equipment of fund product
CN109150977A (en) * 2018-07-24 2019-01-04 中信百信银行股份有限公司 The method for automatically generating global serial number based on trade link
CN109377369A (en) * 2018-11-13 2019-02-22 平安科技(深圳)有限公司 Checking method, device and the computer readable storage medium of transaction data
CN109493205A (en) * 2018-10-16 2019-03-19 深圳壹账通智能科技有限公司 Intelligent bookkeeping methods, computer readable storage medium and terminal device
CN109727036A (en) * 2018-05-14 2019-05-07 网联清算有限公司 Transaction processing method and its device
CN110265037A (en) * 2019-06-13 2019-09-20 中信银行股份有限公司 Auth method, device, electronic equipment and computer readable storage medium
CN110309055A (en) * 2019-05-23 2019-10-08 深圳壹账通智能科技有限公司 Black-box Testing method, apparatus, terminal and storage medium based on Java Virtual Machine
US10445738B1 (en) * 2018-11-13 2019-10-15 Capital One Services, Llc Detecting a transaction volume anomaly
CN110471915A (en) * 2019-07-02 2019-11-19 网联清算有限公司 Account route determining methods and device
CN110472956A (en) * 2019-08-16 2019-11-19 中国银行股份有限公司 Decouple pay behavior real-time detection method and device
CN110865567A (en) * 2019-09-29 2020-03-06 浙江工商大学 Oiling machine liquid crystal screen data acquisition and flow generation method
CN110910587A (en) * 2019-11-28 2020-03-24 交通银行股份有限公司 Remote auditing system and method based on multi-angle real-time image monitoring

Patent Citations (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001350798A (en) * 2000-06-07 2001-12-21 Oki Electric Ind Co Ltd Method and device for collecting client information
US20020099738A1 (en) * 2000-11-22 2002-07-25 Grant Hugh Alexander Automated web access for back-end enterprise systems
US20060167968A1 (en) * 2003-03-06 2006-07-27 Reynolds Andrew D System and method for publish/subcribe messaging
JP2006146858A (en) * 2004-11-23 2006-06-08 Hiroki Shima Social simulation system with profiling means applied
CN102065147A (en) * 2011-01-07 2011-05-18 深圳市易聆科信息技术有限公司 Method and device for obtaining user login information based on enterprise application system
JP2014189356A (en) * 2013-03-26 2014-10-06 Nec Corp Cargo management system, relay device, portable communication terminal, operation method of cargo management system, and program
JP2015064849A (en) * 2013-09-26 2015-04-09 日本電気株式会社 Information presentation device, information presentation method, and program
CN104661208A (en) * 2013-11-19 2015-05-27 中国移动通信集团广东有限公司 Information detection method and device, server and mobile terminal
CN103778516A (en) * 2014-02-21 2014-05-07 北京购阿购技术服务有限公司 All-dimensional safety positioning trade information integration method
CN105337748A (en) * 2014-06-20 2016-02-17 北京奇虎科技有限公司 Log file collection method and system, server, and service cluster controlling apparatus
CN105072160A (en) * 2015-07-17 2015-11-18 联动优势科技有限公司 Serial number generating method and device, and a server
KR20170052779A (en) * 2015-11-04 2017-05-15 충북대학교 산학협력단 Method and apparatus for security enhancement based on java agent
CN105488670A (en) * 2015-11-23 2016-04-13 上海银生宝电子支付服务有限公司 Payment request processing method, apparatus and system
CN106845971A (en) * 2015-12-03 2017-06-13 中国电信股份有限公司 Methods, devices and systems for lifting stored value card security
CN108257016A (en) * 2016-12-29 2018-07-06 平安科技(深圳)有限公司 Data processing method and device
CN107798529A (en) * 2017-03-28 2018-03-13 平安壹钱包电子商务有限公司 transaction data monitoring method and device
CN108648080A (en) * 2018-05-03 2018-10-12 龙锋智能科技(福建)有限公司 A kind of transaction display method, device, medium and the equipment of fund product
CN109727036A (en) * 2018-05-14 2019-05-07 网联清算有限公司 Transaction processing method and its device
CN109150977A (en) * 2018-07-24 2019-01-04 中信百信银行股份有限公司 The method for automatically generating global serial number based on trade link
CN109493205A (en) * 2018-10-16 2019-03-19 深圳壹账通智能科技有限公司 Intelligent bookkeeping methods, computer readable storage medium and terminal device
CN109377369A (en) * 2018-11-13 2019-02-22 平安科技(深圳)有限公司 Checking method, device and the computer readable storage medium of transaction data
US10445738B1 (en) * 2018-11-13 2019-10-15 Capital One Services, Llc Detecting a transaction volume anomaly
CN110309055A (en) * 2019-05-23 2019-10-08 深圳壹账通智能科技有限公司 Black-box Testing method, apparatus, terminal and storage medium based on Java Virtual Machine
CN110265037A (en) * 2019-06-13 2019-09-20 中信银行股份有限公司 Auth method, device, electronic equipment and computer readable storage medium
CN110471915A (en) * 2019-07-02 2019-11-19 网联清算有限公司 Account route determining methods and device
CN110472956A (en) * 2019-08-16 2019-11-19 中国银行股份有限公司 Decouple pay behavior real-time detection method and device
CN110865567A (en) * 2019-09-29 2020-03-06 浙江工商大学 Oiling machine liquid crystal screen data acquisition and flow generation method
CN110910587A (en) * 2019-11-28 2020-03-24 交通银行股份有限公司 Remote auditing system and method based on multi-angle real-time image monitoring

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112882994A (en) * 2021-03-30 2021-06-01 中信银行股份有限公司 Log extraction method and device

Also Published As

Publication number Publication date
CN111639936B (en) 2023-08-25

Similar Documents

Publication Publication Date Title
CN108346028B (en) Business approval processing method, device and system
CN109922158A (en) Data processing method, device, medium and electronic equipment based on micro services
WO2020000720A1 (en) Server, packet processing method, program, and computer-readable storage medium
CN110060139B (en) Accounting processing method and device
CN110602056A (en) Service parameter transmission method and device
CN111241180A (en) Information processing method, device, equipment and storage medium
CN112860662A (en) Data blood relationship establishing method and device, computer equipment and storage medium
CN116016653A (en) Information pushing method and device of blockchain, electronic equipment and storage medium
CN111966653A (en) Data processing method, device, server and storage medium for micro-service call link
CN111753141B (en) Data management method and related equipment
CN111046245A (en) Multi-source heterogeneous data source fusion calculation method, system, equipment and storage medium
CN114116509A (en) Program analysis method, program analysis device, electronic device, and storage medium
CN107249019A (en) Data handling system, method, device and server based on business
CN117931576A (en) Front-end data collection method and device and electronic equipment
CN111639936B (en) Transaction information acquisition method and device, electronic equipment and readable storage medium
CN111447273A (en) Cloud processing system and data processing method based on cloud processing system
CN113077241B (en) Approval processing method, device, equipment and storage medium
CN112491943A (en) Data request method, device, storage medium and electronic equipment
CN115934537A (en) Interface test tool generation method, device, equipment, medium and product
CN111652580B (en) Method and device for processing data of nodes
CN114217790A (en) Interface scheduling method and device, electronic equipment and medium
CN109740027B (en) Data exchange method, device, server and storage medium
CN111061576A (en) Method and system for creating entity object
CN114584616B (en) Message pushing method and device, electronic equipment and storage medium
CN115348321B (en) Data acquisition method and related device based on flow control

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant