CN108469967B - Transaction data processing method and transaction system - Google Patents

Transaction data processing method and transaction system Download PDF

Info

Publication number
CN108469967B
CN108469967B CN201710099960.1A CN201710099960A CN108469967B CN 108469967 B CN108469967 B CN 108469967B CN 201710099960 A CN201710099960 A CN 201710099960A CN 108469967 B CN108469967 B CN 108469967B
Authority
CN
China
Prior art keywords
transaction
dynamic library
library file
memory address
updated
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.)
Active
Application number
CN201710099960.1A
Other languages
Chinese (zh)
Other versions
CN108469967A (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 Unionpay Data Services Co ltd
Original Assignee
China Unionpay Data Services Co 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 Unionpay Data Services Co ltd filed Critical China Unionpay Data Services Co ltd
Priority to CN201710099960.1A priority Critical patent/CN108469967B/en
Publication of CN108469967A publication Critical patent/CN108469967A/en
Application granted granted Critical
Publication of CN108469967B publication Critical patent/CN108469967B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44557Code layout in executable memory
    • 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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention relates to the technical field of computers, in particular to a transaction data processing method and a transaction system, which comprise the following steps: determining a transaction code corresponding to the transaction data according to the received transaction data; determining a memory address corresponding to the transaction code from the transaction array; and calling the dynamic library file pointed by the memory address corresponding to the transaction code according to the memory address corresponding to the transaction code so as to process the transaction data. It can be seen that after transaction data is received each time, a transaction code can be determined according to the transaction data, a corresponding memory address is determined according to the transaction code, and finally a dynamic library file pointed by the memory address corresponding to the transaction code is called to process the transaction data, and a dynamic library does not need to be repeatedly called after the transaction data is received each time, so that the processing speed of a transaction system can be improved, and therefore, when the transaction peak such as holidays and the like is met, the transaction system can be prevented from being blocked.

Description

Transaction data processing method and transaction system
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a transaction data processing method and a transaction system.
Background
When a transaction system in the prior art processes transaction data, a dynamic library needs to be continuously linked, so that the transaction amount which can be processed by the transaction system per second is reduced, and the processing speed of the transaction system is reduced, and therefore, the transaction system is easy to block when dealing with transaction peaks such as holidays and the like.
Disclosure of Invention
The embodiment of the invention provides a transaction data processing method and a transaction system, which are used for inhibiting the occurrence of blocking of the transaction system by improving the processing speed of the transaction system.
The embodiment of the invention provides a transaction data processing method, which comprises the following steps:
determining a transaction code corresponding to the transaction data according to the received transaction data;
determining a memory address corresponding to the transaction code from a transaction array, wherein information items of the transaction array at least comprise: transaction code, memory address; the memory address is obtained after the dynamic library file corresponding to the transaction code is loaded into the memory;
and calling the dynamic library file pointed by the memory address corresponding to the transaction code according to the memory address corresponding to the transaction code so as to process the transaction data.
Preferably, the memory address is obtained after loading the dynamic library file corresponding to the transaction code into the memory, and includes:
before transaction data are received, calling the dynamic library file through a dynamic library opening function aiming at each dynamic library file, and acquiring a memory address stored in the dynamic library file; and storing the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file into the transaction array.
Preferably, before the calling the dynamic library file through the dynamic library opening function, the method further includes:
acquiring a transaction configuration file through a master control function;
acquiring path information of a plurality of transaction codes and dynamic library files corresponding to the transaction codes from the transaction configuration file;
calling the dynamic library file through a dynamic library opening function, wherein the calling comprises the following steps:
and calling the dynamic library file through a dynamic library opening function according to the path information of the dynamic library file.
Preferably, after the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file are stored in the transaction array, the method further includes:
determining a dynamic library file to be updated and an updated dynamic library file;
determining a transaction code corresponding to the dynamic library file to be updated according to the dynamic library file to be updated, and determining a memory address of the dynamic library file to be updated according to the transaction code;
closing the dynamic library file to be updated through a dynamic library closing function according to the memory address of the dynamic library file to be updated;
calling the updated dynamic library file through the dynamic library opening function, and acquiring the memory address of the updated dynamic library file;
and updating the memory address of the dynamic library file to be updated in the transaction array to be the memory address of the updated dynamic library file.
Preferably, the determining a transaction code corresponding to the transaction data according to the received transaction data includes:
acquiring configuration information carried in transaction data according to the received transaction data;
and determining a transaction code corresponding to the transaction data according to the configuration information carried in the transaction data.
The embodiment of the invention also provides a transaction data processing method and a transaction system, which comprise the following steps:
the receiving module is used for determining a transaction code corresponding to the transaction data according to the received transaction data;
a determining module, configured to determine, from a transaction array, a memory address corresponding to the transaction code, where information items of the transaction array at least include: transaction code, memory address; the memory address is obtained after the dynamic library file corresponding to the transaction code is loaded into the memory;
and the calling module is used for calling the dynamic library file pointed by the memory address corresponding to the transaction code according to the memory address corresponding to the transaction code so as to process the transaction data.
Preferably, the determining module is specifically configured to:
before transaction data are received, calling the dynamic library file through a dynamic library opening function aiming at each dynamic library file, and acquiring a memory address stored in the dynamic library file; and storing the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file into the transaction array.
Preferably, the receiving module is further configured to: before calling the dynamic library file through a dynamic library opening function, acquiring a transaction configuration file through a master control function;
acquiring path information of a plurality of transaction codes and dynamic library files corresponding to the transaction codes from the transaction configuration file;
the calling module is specifically configured to:
and calling the dynamic library file through a dynamic library opening function according to the path information of the dynamic library file.
Preferably, the method further comprises the following steps: the updating module is used for updating the data of the data storage module,
the update module is to:
after the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file are stored in the transaction array, determining the dynamic library file to be updated and the updated dynamic library file;
determining a transaction code corresponding to the dynamic library file to be updated according to the dynamic library file to be updated, and determining a memory address of the dynamic library file to be updated according to the transaction code;
closing the dynamic library file to be updated through a dynamic library closing function according to the memory address of the dynamic library file to be updated;
calling the updated dynamic library file through the dynamic library opening function, and acquiring the memory address of the updated dynamic library file;
and updating the memory address of the dynamic library file to be updated in the transaction array to be the memory address of the updated dynamic library file.
Preferably, the receiving module is specifically configured to:
acquiring configuration information carried in transaction data according to the received transaction data;
and determining a transaction code corresponding to the transaction data according to the configuration information carried in the transaction data.
The transaction data processing method and the transaction system provided by the above embodiment include: determining a transaction code corresponding to the transaction data according to the received transaction data; determining a memory address corresponding to the transaction code from a transaction array, wherein information items of the transaction array at least comprise: transaction code, memory address; the memory address is obtained after the dynamic library file corresponding to the transaction code is loaded into the memory; and calling the dynamic library file pointed by the memory address corresponding to the transaction code according to the memory address corresponding to the transaction code so as to process the transaction data. It can be seen that after transaction data is received each time, only the transaction code is determined according to the transaction data, then the memory address stored in the dynamic library file can be determined based on the transaction code, and finally the dynamic library file pointed by the memory address corresponding to the transaction code is called according to the memory address corresponding to the transaction code to process the transaction data, and the dynamic library does not need to be repeatedly called after the transaction data is received each time, so that the processing speed of the transaction system can be improved, and therefore, when the transaction peak such as holidays and the like is met, the transaction system can be prevented from being blocked.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that are required to be used in the description of the embodiments will be briefly described below.
Fig. 1 is a schematic flow chart of a transaction data processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a method for creating a transaction array according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for updating a transaction array according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a transaction system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more clearly apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a schematic flow chart illustrating a transaction data processing method according to an embodiment of the present invention, where as shown in fig. 1, the method may include:
s101, determining a transaction code corresponding to the transaction data according to the received transaction data.
Specifically, the configuration information carried in the transaction data can be acquired according to the received transaction data, and then the transaction code corresponding to the transaction data is determined according to the configuration information carried in the transaction data.
S102, determining a memory address corresponding to the transaction code from a transaction array, wherein information items of the transaction array at least comprise: transaction code, memory address; and the memory address is obtained after the dynamic library file corresponding to the transaction code is loaded into the memory.
S103, calling a dynamic library file pointed by the memory address corresponding to the transaction code according to the memory address corresponding to the transaction code so as to process the transaction data.
The transaction array is established when the system is started, and the process of establishing the transaction array can refer to the method flow shown in fig. 2.
S201, when the application system is started and the operation system runs the service master control function, the transaction configuration file is obtained through the master control function.
S202, acquiring a plurality of transaction codes and path information of dynamic library files corresponding to the transaction codes through the transaction configuration file.
Specifically, after the transaction configuration file obtains the transaction codes, the dynamic library file names corresponding to the transaction codes and the path information of the dynamic library file can be obtained according to the transaction codes.
S203, according to the path information of the dynamic library file, calling the dynamic library file through the dynamic library opening function, and thus obtaining the memory address stored in the dynamic library file.
And S204, establishing a transaction array according to the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file.
It should be noted that the application system in the embodiment of the present invention may be a transaction system in various industries, or may be a subsystem under the transaction system, for example, when the transaction system is a transaction system in a financial industry, a subsystem under the transaction system may be a credit card application system.
The process of establishing the transaction array is explained in detail below by way of a specific example.
Assuming that after the application system a runs the main control function through its own operating system, obtaining a plurality of transaction codes by loading transaction configuration information is: 3000. 3001, 3002, 3003, 3004, 3005, then the master control function obtains the dynamic library filename 3000.so corresponding to the transaction code 3000 and the path information of the dynamic library file 3000.so according to the transaction code 3000, and then obtains the dynamic library file 3000.so corresponding to the transaction code 3000 according to the dynamic library filename 3000.so corresponding to the transaction code 3000 and the path information of the dynamic library file 3000. so. Similarly, the dynamic library file 3001.so corresponding to the transaction code 3001 is obtained according to the transaction code 3001; acquiring a dynamic library file 3002.so corresponding to the transaction code 3002 according to the transaction code 3002; acquiring a dynamic library file 3003.so corresponding to the transaction code 3003 according to the transaction code 3003; acquiring a dynamic library file 3004.so corresponding to the transaction code 3004 according to the transaction code 3004; and acquiring the dynamic library file 3005.so corresponding to the transaction code 3005 according to the transaction code 3005.
After acquiring a dynamic library file 3000.so corresponding to a transaction code 3000 according to the transaction code 3000, acquiring a dynamic library file 3001.so corresponding to the transaction code 3001 according to the transaction code 3001, acquiring a dynamic library file 3002.so corresponding to the transaction code 3002 according to the transaction code 3002, acquiring a dynamic library file 3003.so corresponding to the transaction code 3003 according to the transaction code 3003, acquiring a dynamic library file 3004.so corresponding to the transaction code 3004 according to the transaction code 3004, and acquiring a dynamic library file 3005.so corresponding to the transaction code 3005 according to the transaction code 3005, calling the dynamic library file 3000.so, the dynamic library file 3001.so, the dynamic library file 3002.so, the dynamic library file 3003.so, the dynamic library file 3004.so, and the dynamic library file 3005.so by a dynamic library opening function; thus, the memory addresses respectively stored in the dynamic library file 3000.so, the dynamic library file 3001.so, the dynamic library file 3002.so, the dynamic library file 3003.so, the dynamic library file 3004.so, and the dynamic library file 3005.so can be obtained.
Further suppose that the memory address obtained by calling the dynamic library file 3000.so through the dynamic library opening function is 000; calling the dynamic library file 3001.so through the dynamic library opening function to obtain a memory address of 001; the memory address obtained by calling the dynamic library file 3002.so through the dynamic library opening function is 002; calling the dynamic library file 3003.so through the dynamic library opening function to obtain a memory address 003; calling the dynamic library file 3004.so through the dynamic library opening function to obtain a memory address 004; the memory address obtained by calling the dynamic library file 3005.so through the dynamic library open function is 005.
And then, establishing a transaction array P according to each transaction code and the memory address stored in the dynamic library file corresponding to each transaction. Namely, according to the transaction code 3000 and the memory address 000 stored in the dynamic library file 3000.so corresponding to the transaction code 3000; according to the transaction code 3001 and the memory address 001 stored in the dynamic library file 3001.so corresponding to the transaction code 3001; according to the transaction code 3002 and the memory address 002 stored in the dynamic library file 3002.so corresponding to the transaction code 3002; according to the transaction code 3003 and the memory address 003 stored in the dynamic library file 3003.so corresponding to the transaction code 3003; a transaction array P can be established according to the transaction code 3004 and the memory address 004 stored in the dynamic library file 3004.so corresponding to the transaction code 3004 and the memory address 005 stored in the dynamic library file 3005.so corresponding to the transaction code 3005, and the transaction array P established according to each transaction code and the memory address stored in the dynamic library file corresponding to each transaction can be referred to as the following table one.
Table one
Transaction code Memory address
3000 000
3001 001
3002 002
3003 003
3004 004
3005 005
On the basis of the transaction array P shown in the table one established in the application system a, it is assumed that the application system a receives the transaction data 1, and the configuration information in the transaction data 1 includes the transaction code 3000, after receiving the transaction data 1, the transaction system first reads the transaction code 3000 from the transaction data 1, then traverses the transaction array P established according to the transaction code 3000, and since the transaction code 3000 is stored in the transaction array P and the memory address stored in the dynamic library file corresponding to the transaction code 3000 is 000, it can be determined that the memory address stored in the dynamic library file corresponding to the transaction code 3000 is 000 according to the transaction code 3000, and then performs logic processing on the transaction data 1 according to the dynamic library file pointed to the memory address 000, and outputs a result.
When updating the transaction system, in order to improve the switching efficiency of switching a dynamic library file of a lower version in the transaction system to a dynamic library file of a higher version, after the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file are stored into the transaction value, the transaction array in the transaction system may also be updated after the dynamic library file is updated, and the method flow for updating the transaction array in the transaction system may be as shown in fig. 3.
S301, determining the dynamic library file to be updated.
S302, dynamically compiling based on the updated source program file, and determining the updated dynamic library file, wherein the version of the updated dynamic library file is higher than that of the dynamic library file to be updated, and the file name and the path information of the updated dynamic library file are the same as those of the dynamic library file to be updated.
S303, determining a transaction code corresponding to the dynamic library file to be updated according to the dynamic library file to be updated, and determining the memory address of the dynamic library file to be updated according to the transaction code.
S304, according to the memory address of the dynamic library file to be updated, closing the dynamic library file to be updated through a dynamic library closing function.
S305, calling the updated dynamic library file through the dynamic library opening function, and acquiring the memory address of the updated dynamic library file.
S306, updating the memory address corresponding to the transaction code corresponding to the dynamic library file to be updated in the transaction array as the memory address of the updated dynamic library file.
The method flow shown in fig. 3 is explained in detail based on the transaction array P shown in table one established in the application system a in the above example.
Firstly, determining that a dynamic library file needing to be updated is 3004.so, then, dynamically compiling based on the updated source program file, and determining an updated dynamic library file X, wherein the file name and the path information of the dynamic library file X are completely the same as those of the dynamic library file 3004.so, namely the file name of the dynamic library file X is 3004.so, and the path information of the dynamic library file X is also the same as that of the dynamic library file 3004. so.
Then, the transaction code corresponding to the old dynamic library file 3004.so is determined as the transaction code 3004, the memory address of the dynamic library file 3004.so corresponding to the transaction code 3004 is determined to be 004 from the transaction array P according to the transaction code 3004, and then the dynamic library file 3004.so is closed through a dynamic library closing function according to the memory address 004 of the dynamic library file 3004. so.
And then calling the dynamic library file X through a dynamic library opening function, and acquiring the memory address of the dynamic library file X as 008. After the memory address 008 of the dynamic library file X is obtained, the array P shown in the above table one is modified, and the modified array P can participate in the table two.
Table two
Transaction code Memory address
3000 000
3001 001
3002 002
3003 003
3004 008
3005 005
According to the above contents, after transaction data is received each time, only the transaction code is determined according to the transaction data, then the memory address stored in the dynamic library file can be determined based on the transaction code, and finally the dynamic library file pointed by the memory address corresponding to the transaction code is called according to the memory address corresponding to the transaction code to process the transaction data.
Based on the same technical concept, an embodiment of the present invention further provides a transaction data processing method and a transaction system, as shown in fig. 4, the system may include:
the receiving module 401 is configured to determine, according to the received transaction data, a transaction code corresponding to the transaction data;
a determining module 402, configured to determine a memory address corresponding to the transaction code from a transaction array, where information items of the transaction array at least include: transaction code, memory address; the memory address is obtained after the dynamic library file corresponding to the transaction code is loaded into the memory;
the invoking module 403 is configured to invoke, according to the memory address corresponding to the transaction code, the dynamic library file pointed to by the memory address corresponding to the transaction code to process the transaction data.
Preferably, the determining module 402 is specifically configured to:
before transaction data are received, calling the dynamic library file through a dynamic library opening function aiming at each dynamic library file, and acquiring a memory address stored in the dynamic library file; and storing the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file into the transaction array.
Preferably, the receiving module 401 is further configured to: before calling the dynamic library file through a dynamic library opening function, acquiring a transaction configuration file through a master control function;
acquiring path information of a plurality of transaction codes and dynamic library files corresponding to the transaction codes from the transaction configuration file;
the invoking module 403 is specifically configured to:
and calling the dynamic library file through a dynamic library opening function according to the path information of the dynamic library file.
Preferably, the method further comprises the following steps: update module 404
An update module 404 configured to:
after the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file are stored in the transaction array, determining the dynamic library file to be updated and the updated dynamic library file;
determining a transaction code corresponding to the dynamic library file to be updated according to the dynamic library file to be updated, and determining a memory address of the dynamic library file to be updated according to the transaction code;
closing the dynamic library file to be updated through a dynamic library closing function according to the memory address of the dynamic library file to be updated;
calling the updated dynamic library file through the dynamic library opening function, and acquiring the memory address of the updated dynamic library file;
and updating the memory address of the dynamic library file to be updated in the transaction array to be the memory address of the updated dynamic library file.
Preferably, the receiving module 401 is specifically configured to:
acquiring configuration information carried in transaction data according to the received transaction data;
and determining a transaction code corresponding to the transaction data according to the configuration information carried in the transaction data.
In summary, it can be seen that after transaction data is received each time, a transaction code is determined according to the transaction data, then a memory address stored in a dynamic library file can be determined based on the transaction code, and finally, according to the memory address corresponding to the transaction code, a dynamic library file pointed by the memory address corresponding to the transaction code is called to process the transaction data, instead of repeatedly calling the dynamic library after the transaction data is received each time, so that the processing speed of the transaction system can be increased, and therefore, when a transaction peak such as a holiday is dealt with, the transaction system can be prevented from being blocked.
It should be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A transaction data processing method, comprising:
determining a transaction code corresponding to the transaction data according to the received transaction data;
determining a memory address corresponding to the transaction code from a transaction array, wherein information items of the transaction array at least comprise: transaction code, memory address; the memory address is obtained after the dynamic library file corresponding to the transaction code is loaded into the memory;
and calling the dynamic library file pointed by the memory address corresponding to the transaction code according to the memory address corresponding to the transaction code so as to process the transaction data.
2. The method as claimed in claim 1, wherein the memory address is obtained after loading the dynamic library file corresponding to the transaction code into the memory, and comprises:
before transaction data are received, calling the dynamic library file through a dynamic library opening function aiming at each dynamic library file, and acquiring a memory address stored in the dynamic library file; and storing the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file into the transaction array.
3. The method of claim 2, prior to calling the dynamic library file via a dynamic library open function, further comprising:
acquiring a transaction configuration file through a master control function;
acquiring path information of a plurality of transaction codes and dynamic library files corresponding to the transaction codes from the transaction configuration file;
calling the dynamic library file through a dynamic library opening function, wherein the calling comprises the following steps:
and calling the dynamic library file through a dynamic library opening function according to the path information of the dynamic library file.
4. The method as claimed in claim 2, wherein after storing the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file into the transaction array, further comprising:
determining a dynamic library file to be updated and an updated dynamic library file;
determining a transaction code corresponding to the dynamic library file to be updated according to the dynamic library file to be updated, and determining a memory address of the dynamic library file to be updated according to the transaction code;
closing the dynamic library file to be updated through a dynamic library closing function according to the memory address of the dynamic library file to be updated;
calling the updated dynamic library file through the dynamic library opening function, and acquiring the memory address of the updated dynamic library file;
and updating the memory address of the dynamic library file to be updated in the transaction array to be the memory address of the updated dynamic library file.
5. The method according to any one of claims 1 to 4, wherein the determining a transaction code corresponding to the transaction data according to the received transaction data comprises:
acquiring configuration information carried in transaction data according to the received transaction data;
and determining a transaction code corresponding to the transaction data according to the configuration information carried in the transaction data.
6. A transaction data processing method and a transaction system are characterized by comprising the following steps:
the receiving module is used for determining a transaction code corresponding to the transaction data according to the received transaction data;
a determining module, configured to determine, from a transaction array, a memory address corresponding to the transaction code, where information items of the transaction array at least include: transaction code, memory address; the memory address is obtained after the dynamic library file corresponding to the transaction code is loaded into the memory;
and the calling module is used for calling the dynamic library file pointed by the memory address corresponding to the transaction code according to the memory address corresponding to the transaction code so as to process the transaction data.
7. The transaction system of claim 6, wherein the determination module is specifically configured to:
before transaction data are received, calling the dynamic library file through a dynamic library opening function aiming at each dynamic library file, and acquiring a memory address stored in the dynamic library file; and storing the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file into the transaction array.
8. The transaction system of claim 7, wherein the receiving module is further to: before calling the dynamic library file through a dynamic library opening function, acquiring a transaction configuration file through a master control function;
acquiring path information of a plurality of transaction codes and dynamic library files corresponding to the transaction codes from the transaction configuration file;
the calling module is specifically configured to:
and calling the dynamic library file through a dynamic library opening function according to the path information of the dynamic library file.
9. The transaction system of claim 7, further comprising: the updating module is used for updating the data of the data storage module,
the update module is to:
after the transaction code corresponding to the dynamic library file and the memory address stored in the dynamic library file are stored in the transaction array, determining the dynamic library file to be updated and the updated dynamic library file;
determining a transaction code corresponding to the dynamic library file to be updated according to the dynamic library file to be updated, and determining a memory address of the dynamic library file to be updated according to the transaction code;
closing the dynamic library file to be updated through a dynamic library closing function according to the memory address of the dynamic library file to be updated;
calling the updated dynamic library file through the dynamic library opening function, and acquiring the memory address of the updated dynamic library file;
and updating the memory address of the dynamic library file to be updated in the transaction array to be the memory address of the updated dynamic library file.
10. The transaction system according to any one of claims 6 to 9, wherein the receiving module is specifically configured to:
acquiring configuration information carried in transaction data according to the received transaction data;
and determining a transaction code corresponding to the transaction data according to the configuration information carried in the transaction data.
CN201710099960.1A 2017-02-23 2017-02-23 Transaction data processing method and transaction system Active CN108469967B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710099960.1A CN108469967B (en) 2017-02-23 2017-02-23 Transaction data processing method and transaction system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710099960.1A CN108469967B (en) 2017-02-23 2017-02-23 Transaction data processing method and transaction system

Publications (2)

Publication Number Publication Date
CN108469967A CN108469967A (en) 2018-08-31
CN108469967B true CN108469967B (en) 2021-06-25

Family

ID=63266671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710099960.1A Active CN108469967B (en) 2017-02-23 2017-02-23 Transaction data processing method and transaction system

Country Status (1)

Country Link
CN (1) CN108469967B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109409933A (en) * 2018-09-26 2019-03-01 深圳壹账通智能科技有限公司 Intelligent fee counting method, computer readable storage medium and terminal device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106218A (en) * 2011-11-15 2013-05-15 中国银联股份有限公司 Plug-in type online transaction processing system and plug-in type online transaction processing method
CN103513956A (en) * 2012-06-26 2014-01-15 阿里巴巴集团控股有限公司 Data processing method and device of processor

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101917312B (en) * 2010-09-01 2013-11-06 中国建设银行股份有限公司 Performance test stimulator, and message package module, message packaging and sending method thereof
CN103365668B (en) * 2012-03-26 2017-12-26 联想(北京)有限公司 A kind of dynamic link library loads and the method, apparatus of link
CN103970559B (en) * 2013-02-05 2017-09-29 北京壹人壹本信息科技有限公司 A kind of equipment loading method and device based on android system
CN106325847B (en) * 2015-07-02 2020-01-10 杭州海康机器人技术有限公司 Method and device for acquiring application program function based on iOS platform
WO2017015856A1 (en) * 2015-07-28 2017-02-02 华为技术有限公司 Method, device and system for calling operating system library

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103106218A (en) * 2011-11-15 2013-05-15 中国银联股份有限公司 Plug-in type online transaction processing system and plug-in type online transaction processing method
CN103513956A (en) * 2012-06-26 2014-01-15 阿里巴巴集团控股有限公司 Data processing method and device of processor

Also Published As

Publication number Publication date
CN108469967A (en) 2018-08-31

Similar Documents

Publication Publication Date Title
US20200366463A1 (en) Apparatuses for Providing a Set of Cryptographically Protected, Filtered, and Sorted Transaction Data Records of a Link of a Blockchain
CN106933823B (en) Data synchronization method and device
CN111813805A (en) Data processing method and device
CN107402950B (en) File processing method and device based on sub-base and sub-table
CN111797168A (en) Block parallel processing method, equipment and storage medium
CN106648839B (en) Data processing method and device
CN108469967B (en) Transaction data processing method and transaction system
US20170132748A1 (en) Method and apparatus for processing graphics commands
US8769498B2 (en) Warning of register and storage area assignment errors
CN112231403B (en) Consistency verification method, device, equipment and storage medium for data synchronization
US20130275954A1 (en) Inter-procedural unreachable code elimination with use graph
US20190213042A1 (en) Java card application memory footprint optimization
CN112929400A (en) Distributed cache database data rebalancing method and system
CN107992749B (en) Method and device for detecting conflict of patch packages
US20200364360A1 (en) System and method for determining permission profiles for computer executable functions
CN108062329B (en) Data import method and device
CN110297666B (en) Thermal restoration method, device, system and storage medium
CN113077344A (en) Transaction method and device based on block chain, electronic equipment and storage medium
CN110968754B (en) Detection method and device for crawler page turning strategy
CN106776616B (en) Method and device for merging symmetrical entity groups
US10055253B2 (en) Reducing processor loading during housekeeping operations
CN111880803A (en) Software construction method and device applied to multiple platforms
KR102254119B1 (en) Method and apparatus for processing graphics command
CN112540835B (en) Method and device for operating hybrid machine learning model and related equipment
CN114564250B (en) Reading configuration method and device

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