CN111523953A - Transaction data processing method, device and system - Google Patents

Transaction data processing method, device and system Download PDF

Info

Publication number
CN111523953A
CN111523953A CN201910107475.3A CN201910107475A CN111523953A CN 111523953 A CN111523953 A CN 111523953A CN 201910107475 A CN201910107475 A CN 201910107475A CN 111523953 A CN111523953 A CN 111523953A
Authority
CN
China
Prior art keywords
transaction
operation information
session identifier
information
transaction operation
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.)
Pending
Application number
CN201910107475.3A
Other languages
Chinese (zh)
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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910107475.3A priority Critical patent/CN111523953A/en
Publication of CN111523953A publication Critical patent/CN111523953A/en
Pending legal-status Critical Current

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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • 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
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Abstract

The invention discloses a transaction data processing method, a device and a system, relates to the technical field of internet, and can solve the problem that the root cause of a problem can not be found quickly due to the fact that the prior art can not trace the complete transaction process. The method comprises the following steps: receiving a transaction request sent by a client; generating a session identifier of a transaction corresponding to the transaction request, and sending the session identifier to the client; receiving transaction operation information sent by the client, wherein the transaction operation information carries a session identifier; and performing associated cache on the session identification and the transaction operation information and/or the processing result of the transaction operation information.

Description

Transaction data processing method, device and system
Technical Field
The invention relates to the technical field of internet, in particular to a transaction data processing method, a device and a system.
Background
With the development of internet technology, online trading has become the mainstream trading mode of people. For example, a user may search for a commodity on a shopping website or a shopping APP, and when a favorite commodity is searched, may select a desired commodity attribute (e.g., select a desired color), a desired quantity, fill in recipient information, harvest address information, perform ordering through online payment, and the like on an ordering page; after the order is successfully placed, the express delivery person can directly wait for the delivery to get on the door, which is very convenient.
However, in the existing transaction process, each of the multiple steps related to selecting the commodity attribute, selecting the address information of the recipient, calculating the freight rate, selecting the preference, creating the order and the like is processed separately through different interfaces, and there is no clear association relationship, so that when a problem occurs, the complete process cannot be traced, and the root cause of the problem cannot be found quickly.
Disclosure of Invention
In view of this, the invention provides a transaction data processing method, a transaction data processing device and a transaction data processing system, and aims to solve the problem that the root cause of a problem cannot be found quickly due to the fact that a transaction process cannot be traced back in the prior art.
In a first aspect, the present invention provides a method of transaction data processing, the method comprising:
receiving a transaction request sent by a client;
generating a session identifier of a transaction corresponding to the transaction request, and sending the session identifier to the client;
receiving transaction operation information sent by the client, wherein the transaction operation information carries a session identifier;
and performing associated cache on the session identification and the transaction operation information and/or the processing result of the transaction operation information.
Optionally, the receiving the transaction request sent by the client includes:
receiving a transaction request carrying commodity information sent by the client;
the method further comprises the following steps:
and performing association cache on the session identification and the commodity information.
Optionally, generating a session identifier of a transaction corresponding to the transaction request includes:
acquiring user information of a user who initiates the transaction request;
and generating the session identification according to the commodity information, the user information and the current time.
Optionally, when the transaction operation information is address information of a selected recipient, the associating and caching the session identifier and the transaction operation information and/or the processing result of the transaction operation information includes:
searching commodity information corresponding to the session identification from a cache;
and carrying out expense calculation according to the searched commodity information and the address information of the receiver, and carrying out association cache on the session identification and an expense calculation result.
Optionally, the method further includes:
and sending the expense calculation result to the client for display.
Optionally, when the transaction operation information is selection preference information, the associating and caching the session identifier and the transaction operation information and/or the processing result of the transaction operation information includes:
searching a cost calculation result corresponding to the session identifier from a cache;
recalculating the total amount of the order according to the searched expense calculation result and the selected discount information;
and performing associated cache on the selected preferential information and the recalculated total sum and the session identification.
Optionally, when the transaction operation information is an order creating command, the associating and caching the session identifier and the transaction operation information and/or the processing result of the transaction operation information includes:
searching all transaction operation information corresponding to the session identification from a cache;
and creating an order according to all the found transaction operation information, and performing associated cache on the session identifier and the created order.
Optionally, the method further includes:
and logging the session identification and the transaction operation information in a log system in a correlated manner.
In a second aspect, the present invention provides a method of transaction data processing, the method comprising:
acquiring transaction operation information sent by a client, wherein the transaction operation information carries a session identifier;
storing the session identification and the transaction operation information and/or the processing result of the transaction operation information in a log system in an associated manner;
wherein the session identification is used to represent a unique identification of the transaction.
In a third aspect, the present invention provides a transaction data processing method, the method comprising:
sending a transaction request to a server so that the server generates a session identifier of a transaction corresponding to the transaction request;
receiving a session identifier sent by the server;
and acquiring transaction operation information, carrying the session identifier and sending the transaction operation information to the server, so that the server stores the session identifier and the transaction operation information and/or a processing result of the transaction operation information in an associated manner.
In a fourth aspect, the present invention provides a transaction data processing apparatus, the apparatus comprising:
the receiving unit is used for receiving a transaction request sent by a client;
the generating unit is used for generating a session identifier of a transaction corresponding to the transaction request;
a sending unit, configured to send the session identifier to the client;
the receiving unit is further configured to receive transaction operation information sent by the client, where the transaction operation information carries a session identifier;
and the cache unit is used for performing associated cache on the session identifier and the transaction operation information and/or the processing result of the transaction operation information.
Optionally, the receiving unit is configured to receive a transaction request carrying commodity information sent by the client;
the cache unit is further configured to perform associated caching on the session identifier and the commodity information.
Optionally, the generating unit includes:
the acquisition module is used for acquiring the user information of the user who initiates the transaction request;
and the generation module is used for generating the session identifier according to the commodity information, the user information and the current time.
Optionally, the cache unit includes:
the first searching module is used for searching commodity information corresponding to the session identifier from a cache when the transaction operation information is address information of a selected receiver;
the first calculation module is used for calculating the cost according to the searched commodity information and the address information of the receiver;
and the first cache module is used for performing associated cache on the session identifier and the expense calculation result.
Optionally, the sending unit is further configured to send the cost calculation result to the client for display.
Optionally, the cache unit includes:
the second searching module is used for searching a cost calculation result corresponding to the session identifier from a cache when the transaction operation information is the selected discount information;
the second calculation module is used for recalculating the total amount of the order according to the searched expense calculation result and the selected discount information;
and the second cache module is used for performing associated cache on the selected preferential information and the recalculated total amount and the session identifier.
Optionally, the cache unit includes:
the third searching module is used for searching all the transaction operation information corresponding to the session identifier from a cache when the transaction operation information is an order creating command;
the creating module is used for creating orders according to all the found transaction operation information;
and the third cache module is used for performing associated cache on the session identifier and the created order.
Optionally, the apparatus further comprises:
and the recording unit is used for recording the session identification and the transaction operation information into a log system in a correlation manner.
In a fifth aspect, the present invention provides a transaction data processing apparatus, the apparatus comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring transaction operation information sent by a client, the transaction operation information carries a session identifier, and the session identifier is used for representing a unique identifier of a transaction;
and the storage unit is used for storing the session identification and the transaction operation information and/or the processing result of the transaction operation information in a log system in an associated manner.
In a sixth aspect, the present invention provides a transaction data processing apparatus, the apparatus comprising:
the sending unit is used for sending a transaction request to a server so that the server can generate a session identifier of a transaction corresponding to the transaction request;
a receiving unit, configured to receive a session identifier sent by the server;
the acquisition unit is used for acquiring transaction operation information;
the sending unit is further configured to send the transaction operation information to the server with the session identifier, so that the server associates and stores the session identifier with the transaction operation information and/or a processing result of the transaction operation information.
In a seventh aspect, the present invention provides a storage medium storing a plurality of instructions, the instructions being adapted to be loaded by a processor and executed by the transaction data processing method according to the first or second aspect, or loaded by a processor and executed by the transaction data processing method according to the third aspect.
In an eighth aspect, the present invention provides a transaction data processing apparatus, the apparatus comprising a storage medium and a processor;
the processor is suitable for realizing instructions;
the storage medium adapted to store a plurality of instructions;
the instructions are adapted to be loaded by the processor and to perform a transaction data processing method according to the first or second aspect.
In a ninth aspect, the present invention provides a transaction data processing apparatus, the apparatus comprising a storage medium and a processor;
the processor is suitable for realizing instructions;
the storage medium adapted to store a plurality of instructions;
the instructions are adapted to be loaded by the processor and to perform the transaction data processing method according to the third aspect.
In a tenth aspect, the present invention provides a transaction data processing system, the system comprising: a server and a client; wherein the server comprises the apparatus according to the eighth aspect, and the client comprises the apparatus according to the ninth aspect.
By means of the technical scheme, the transaction data processing method, the device and the system provided by the invention can generate the session identifier of the transaction corresponding to the transaction request firstly after the server receives the transaction request sent by the client, and then send the session identifier to the client; when the client uploads the transaction operation information, the client can upload the transaction operation information to the server by carrying the session identifier, so that the server can perform associated cache on the session identifier, the transaction operation information and/or a processing result of the transaction operation information. Therefore, the invention can generate the session identifier for identifying one transaction, and can perform associated cache on the operation information of each step of one transaction or the processing result of the operation information and the session identifier, so that when a problem occurs, the operation of each step performed by the transaction can be traced back according to the session identifier, and the root of the problem can be found quickly.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating a transaction data processing method according to an embodiment of the invention;
FIG. 2 is a flow chart of another transaction data processing method provided by an embodiment of the invention;
FIG. 3 is a flow chart of yet another transaction data processing method provided by an embodiment of the invention;
FIG. 4 is a flow chart of a method for processing order data according to an embodiment of the present invention;
FIG. 5 is a block diagram illustrating components of a transaction data processing apparatus according to an embodiment of the present invention;
FIG. 6 is a block diagram illustrating components of another transaction data processing device provided by embodiments of the present invention;
FIG. 7 is a block diagram illustrating components of yet another transaction data processing device provided by an embodiment of the present invention;
fig. 8 is a block diagram illustrating a transaction data processing apparatus according to another embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The embodiment of the invention provides a transaction data processing method, which is mainly applied to a server side, and as shown in figure 1, the method mainly comprises the following steps:
101. and receiving a transaction request sent by the client.
When a user carries out transaction at a browser or a shopping APP and other clients capable of realizing transaction, the client can be triggered to generate a transaction request through operations of ordering, payment and the like, and the transaction request is reported to a server.
102. And generating a session identifier of the transaction corresponding to the transaction request, and sending the session identifier to the client.
After receiving the transaction request, a session identifier for uniquely identifying one transaction may be generated, so as to trace back the transaction operation record of one transaction by using the session identifier.
The embodiment of the present invention does not limit the specific algorithm for generating the session identifier. The session identifier sent to the client may be a complete session identifier, a partial session identifier, or a factor that can be used to generate the session identifier (which may be referred to as a session identifier generation factor). When the session identifier sent to the client is a partial session identifier, the server may store the mapping relationship between the complete session identifier and the partial session identifier, so that when the session identifier and other information are cached in association in the subsequent step 104, the complete session identifier corresponding to the partial session identifier may be quickly searched according to the mapping relationship. When the session identifier sent to the client is the session identifier generation factor, the server may store other session identifier generation factors, and when a complete session identifier needs to be generated, the server may generate the complete session identifier according to the session identifier generation factor sent by the client and the other session identifier generation factors stored by the server. When the session identifier sent to the client is a complete session identifier and the server implements the association cache in step 104, the server may also perform calculation again using the received complete session identifier and other information to generate other session identifiers for the association cache. Therefore, when the session identifier sent to the client is not the session identifier for the associative cache but is related to the session identifier and the server generates the session identifier for the associative cache, the interaction between the client and the server does not involve the session identifier for the associative cache, so that even if an illegal person intercepts the interaction information, only the related information of the session identifier can be obtained, but the real session identifier for the associative cache cannot be obtained, and the confidentiality function can be achieved.
103. And receiving transaction operation information sent by the client, wherein the transaction operation information carries a session identifier.
The transaction operation information comprises any operation information in the transaction process, such as ordering operation information, payment operation information, transfer operation information, point making operation information and the like.
104. And performing associated cache on the session identification and the transaction operation information and/or the processing result of the transaction operation information.
In order to associate the operations of each step, when the operation information of each step is obtained, the operation information of each step may be reported to the server with the session identification information, and when the session identification and the operation information are received by the server, the session identification and the operation information and/or the processing of the operation information may be cached in an associated manner. In order to save the cache space, the last cache position can be searched according to the session identifier, and the next operation information is directly added to the searched position, so that the associated storage of the next operation information and the session identifier is realized.
When caching, the session identifier may be used as a key, and the transaction operation information may be cached as a value. In addition, local caching or distributed caching can be performed.
According to the transaction data processing method provided by the embodiment of the invention, after the server receives the transaction request sent by the client, the session identifier of the transaction corresponding to the transaction request is generated firstly, and then the session identifier is sent to the client; when the client uploads the transaction operation information, the client can upload the transaction operation information to the server by carrying the session identifier, so that the server can perform associated cache on the session identifier, the transaction operation information and/or a processing result of the transaction operation information. Therefore, the invention can generate the session identifier for identifying one transaction, and can perform associated cache on the operation information of each step of one transaction or the processing result of the operation information and the session identifier, so that when a problem occurs, the operation of each step performed by the transaction can be traced back according to the session identifier, and the root of the problem can be found quickly. In addition, when the server side does not issue the session identifier for the associated cache to the client side, the interaction information between the server side and the client side only relates to the session identifier which is not used for the associated cache, so that the fact that the real session identifier leaks due to the fact that the interaction information leaks can be avoided.
Optionally, when transaction processing of different types or different processes is performed, the method for generating the session identifier according to the embodiment of the present invention, and the related transaction operation information and the processing method for the transaction operation information may be different. As shown in fig. 2, the above method is explained in detail with respect to the ordering process in the transaction as follows:
201. and receiving a transaction request carrying commodity information sent by a client.
When a user carries out online shopping at a browser or a shopping APP and other clients capable of realizing online shopping, commodity information such as commodity attribute information and commodity quantity can be selected on a next single page, and then a transaction request carrying the commodity information is sent to a server. The commodity attribute information includes color, size, and the like. And in the concrete implementation, the user selects a commodity attribute option at the client, the client requests commodity attribute information from the server and renders the requested commodity attribute information, after seeing the specific commodity attribute information, the user can select the required commodity attribute information, then inputs the number of purchased commodities, and the client sends the selected commodity attribute information and the number of the commodities to the server.
202. And generating a session identifier of the transaction corresponding to the transaction request, and performing association cache on the session identifier and the commodity information.
The session identifier may be generated according to the commodity information and other information, or may be generated directly according to the non-commodity information.
203. And sending the session identification to the client.
204. And receiving transaction operation information sent by the client, wherein the transaction operation information carries a session identifier.
After the user selects the commodity information, the transaction operation information required to be carried out further comprises address information of a selected receiver, preferential selection information, order confirmation information and the like.
205. And performing associated cache on the session identification and the transaction operation information and/or the processing result of the transaction operation information.
According to the transaction data processing method provided by the embodiment of the invention, after a server receives a transaction request carrying commodity information sent by a client, a session identifier of a transaction corresponding to the transaction request is generated firstly, the session identifier and the commodity information are cached in a correlation mode, and then the session identifier is sent to the client; when the client uploads the transaction operation information, the client can upload the transaction operation information to the server by carrying the session identifier, so that the server can perform associated cache on the session identifier, the transaction operation information and/or a processing result of the transaction operation information. Therefore, the invention can generate the session identifier for identifying one transaction, and can perform associated cache on the operation information of each step of one transaction or the processing result of the operation information and the session identifier, so that when a problem occurs, the operation of each step performed by the transaction can be traced back according to the session identifier, and the root of the problem can be found quickly. In addition, when the server side does not issue the session identifier for the associated cache to the client side, the interaction information between the server side and the client side only relates to the session identifier which is not used for the associated cache, so that the fact that the real session identifier leaks due to the fact that the interaction information leaks can be avoided.
In another embodiment of the present invention, further describing an alternative implementation of the above step 202, the process includes: acquiring user information of a user who initiates the transaction request; and generating the session identification according to the commodity information, the user information and the current time. For example, the commodity identification and the user identification can be directly spliced by one character at the current time.
In addition, when the session identifier is generated by adopting the method, the commodity information can be used as a session identifier generation factor which is issued to the client, so that the subsequent client can upload the commodity information when uploading the operation information. After receiving the session identifier generation factor sent by the client, the server needs to generate a session identifier according to the received session identifier generation factor and other locally stored session identifier generation factors, and can perform association cache on the session identifier and the next operation information and/or a processing result of the next operation information.
Illustratively, when the session identifier is generated according to the commodity identifier, the user identifier and the time information (i.e., the time when the commodity information is received), and the session identifier generation factor issued to the client is the commodity identifier, after receiving the commodity identifier sent by the client, the server may locally search the user identifier of the current login user and the time information stored when the session identifier was generated before, then generate the session identifier according to the commodity identifier, the user identifier and the time information, and then perform the association cache on the session identifier and the operation information.
Further, in practical applications, after the user selects the commodity information, the user needs to select the recipient information, and when there is a benefit, the user also needs to select the benefit information, select a series of order placing operations such as confirming an order (i.e., initiating an order creating command), and the like. The following explains a specific implementation manner of the step 205 for each step of operation after selecting the commodity information:
(1) when the transaction operation information is address information of a selected recipient, the specific implementation manner of step 205 may be:
searching commodity information corresponding to the session identification from a cache; and carrying out expense calculation according to the searched commodity information and the address information of the receiver, and carrying out association cache on the session identification and an expense calculation result. The cost calculation can comprise freight calculation, preferential information calculation and total amount calculation.
In addition, after obtaining the cost calculation result, the server side can send the cost calculation result to the client side for display.
It should be noted that, in the prior art, not only there is no correlation between each operation step of a next order, but also the client performs the operation of calculating the cost. The mobile phone models of the client are many, and the calculation implementation of each manufacturer may be inconsistent, so that the precision of the calculation of part of the models is lost. And the calculation task result of the client is easy to be intercepted and modified by illegal personnel. The embodiment of the invention is handed to the server side to execute the expense calculation task, and can completely overcome the problem in the aspect of client side calculation.
(2) When the transaction operation information is the selection preference information, the specific implementation manner of step 205 may be:
searching a cost calculation result corresponding to the session identifier from a cache; recalculating the total amount of the order according to the searched expense calculation result and the selected discount information; and performing associated cache on the selected preferential information and the recalculated total sum and the session identification.
After the total amount of the order is recalculated, the total amount can be fed back to the client for displaying so that the user can confirm to place the order.
(3) When the transaction operation information is an order creating command (i.e., a command triggered after the user clicks to confirm placing an order), the specific implementation manner of step 205 may be:
searching all transaction operation information (namely order operation information) corresponding to the session identification from a cache; and creating an order according to all the found transaction operation information, and performing associated cache on the session identifier and the created order.
When the order is successfully created, order creation success prompt information and/or order information of successful creation can be sent to the client. When the order is failed to be created, the server side can create the order again according to all the transaction operation information; and if the creation fails for N times, issuing creation failure prompt information to the client, and carrying out invalidation treatment on the session identifier.
Further, to facilitate subsequent system analysis, session identification and transaction operation information may be logged in association with the logging system. The log system may be a stand-alone system or a distributed system.
Further, according to the above method embodiment, the present invention also provides a transaction data processing method, where the method is mainly applied to a server side, and the method mainly includes:
acquiring transaction operation information sent by a client, wherein the transaction operation information carries a session identifier; storing the session identification and the transaction operation information and/or the processing result of the transaction operation information in a log system in an associated manner; wherein the session identification is used to represent a unique identification of the transaction.
The session identifier can be generated by the server when the user simply triggers the transaction to open based on the client and applies for opening the transaction to the server through the client, and can also be generated when the server receives transaction operation information which is sent by the client and has actual transaction content for the first time. The transaction operation information and the session identifier in the embodiment of the present invention are the same as the specific contents in the above embodiment, and are not described again.
In addition, the log system can be a stand-alone system or a distributed system.
The transaction data processing method provided by the embodiment of the invention can acquire the transaction operation information which is sent by the client and carries the session identifier, and stores the session identifier and the transaction operation information and/or the processing result of the transaction operation information in the log system in a correlation manner. Therefore, the invention can generate the session identification for uniquely identifying one-time transaction, and can store the operation information of each step of ordering or the processing result of the operation information and the session identification into the log system in an associated manner, so that when a problem occurs, the operation of each step of ordering can be traced back according to the session identification, and the root cause of the problem can be found quickly.
Further, according to the above method embodiment, the present invention also provides a transaction data processing method, which is mainly applied to a client side, as shown in fig. 3, and the method mainly includes:
301. and sending a transaction request to a server so that the server generates a session identifier of a transaction corresponding to the transaction request.
When a user carries out transaction at a browser or a shopping APP and other clients capable of realizing transaction, the client can be triggered to generate a transaction request through operations of ordering, payment and the like, and the transaction request is reported to a server.
302. And receiving the session identification sent by the server.
303. And acquiring transaction operation information, carrying the session identifier and sending the transaction operation information to the server, so that the server stores the session identifier and the transaction operation information and/or a processing result of the transaction operation information in an associated manner.
When the server stores the session identifier and the transaction operation information and/or the processing result of the transaction operation information in an associated manner, the session identifier may be cached locally in an associated manner, or may be recorded in a log system in an associated manner.
In addition, the transaction request, the session identifier, the transaction operation information and the associated storage related in the embodiment of the present invention are the same as those in the embodiment of the method in which the server is the execution subject, and are not described again here.
The transaction data processing method provided by the embodiment of the invention can send the transaction request to the server after the client acquires the transaction request, so that the server generates the session identifier for identifying one transaction and sends the session identifier to the client; when the transaction operation information is acquired, the transaction operation information carrying the session identifier may be sent to the server, so that the server may perform association cache on the session identifier and the transaction operation information and/or a processing result of the transaction operation information. Therefore, the invention can generate the session identifier for identifying one transaction, and can perform associated cache on the operation information of each step of one transaction or the processing result of the operation information and the session identifier, so that when a problem occurs, the operation of each step performed by the transaction can be traced back according to the session identifier, and the root of the problem can be found quickly. In addition, when the server side does not issue the session identifier for the associated cache to the client side, the interaction information between the server side and the client side only relates to the session identifier which is not used for the associated cache, so that the fact that the real session identifier leaks due to the fact that the interaction information leaks can be avoided.
In summary, the method for processing order data in the transaction data processing method provided by the embodiment of the present invention can be implemented by the complete interaction flow shown in fig. 4.
Further, according to the above method embodiment, the present invention also provides a transaction data processing apparatus, which is applied to a server, as shown in fig. 5, and includes:
a receiving unit 41, configured to receive a transaction request sent by a client;
a generating unit 42, configured to generate a session identifier of a transaction corresponding to the transaction request;
a sending unit 43, configured to send the session identifier to the client;
the receiving unit 41 is further configured to receive transaction operation information sent by the client, where the transaction operation information carries a session identifier;
a caching unit 44, configured to cache the session identifier in association with the transaction operation information and/or a processing result of the transaction operation information.
Optionally, the receiving unit 41 is configured to receive a transaction request carrying commodity information sent by the client;
the caching unit 44 is further configured to perform association caching on the session identifier and the commodity information.
Optionally, as shown in fig. 6, the generating unit 42 includes:
an obtaining module 421, configured to obtain user information of a user who initiates the transaction request;
a generating module 422, configured to generate the session identifier according to the commodity information, the user information, and the current time.
Optionally, as shown in fig. 6, the cache unit 44 includes:
the first searching module 441 is configured to search, when the transaction operation information is address information of a selected recipient, commodity information corresponding to the session identifier from a cache;
the first calculating module 442 is configured to perform cost calculation according to the searched commodity information and the address information of the recipient;
the first caching module 443 is configured to cache the session identifier and the cost calculation result in an associated manner.
Optionally, the sending unit 43 is further configured to send the expense calculation result to the client for displaying.
Optionally, as shown in fig. 6, the cache unit 44 includes:
the second searching module 444 is configured to search, when the transaction operation information is the selection preference information, a cost calculation result corresponding to the session identifier from a cache;
the second calculation module 445 is configured to recalculate the total amount of the order according to the searched cost calculation result and the selected discount information;
and a second caching module 446, configured to perform associated caching on the selected coupon information and the recalculated total amount and the session identifier.
Optionally, as shown in fig. 6, the cache unit 44 includes:
a third searching module 447, configured to search, when the transaction operation information is an order creating command, all transaction operation information corresponding to the session identifier from a cache;
a creating module 448 for creating an order according to all the found transaction operation information;
a third caching module 449, configured to cache the session identifier and the created order in an associated manner.
Optionally, as shown in fig. 6, the apparatus further includes:
and the recording unit 45 is used for recording the session identification and the transaction operation information into a log system in a correlated mode.
The transaction data processing device provided by the embodiment of the invention can generate the session identifier of the transaction corresponding to the transaction request firstly after the server receives the transaction request sent by the client, and then send the session identifier to the client; when the client uploads the transaction operation information, the client can upload the transaction operation information to the server by carrying the session identifier, so that the server can perform associated cache on the session identifier, the transaction operation information and/or a processing result of the transaction operation information. Therefore, the invention can generate the session identifier for identifying one transaction, and can perform associated cache on the operation information of each step of one transaction or the processing result of the operation information and the session identifier, so that when a problem occurs, the operation of each step performed by the transaction can be traced back according to the session identifier, and the root of the problem can be found quickly. In addition, when the server side does not issue the session identifier for the associated cache to the client side, the interaction information between the server side and the client side only relates to the session identifier which is not used for the associated cache, so that the fact that the real session identifier leaks due to the fact that the interaction information leaks can be avoided.
Further, according to the above method embodiment, the present invention also provides a transaction data processing apparatus, which is applied to a server, as shown in fig. 7, and includes:
the acquiring unit 51 is configured to acquire transaction operation information sent by a client, where the transaction operation information carries a session identifier, and the session identifier is used to represent a unique identifier of the transaction;
the storage unit 52 is configured to store the session identifier in association with the transaction operation information and/or the processing result of the transaction operation information in a log system.
The transaction data processing device provided by the embodiment of the invention can acquire the transaction operation information which is sent by the client and carries the session identifier, and stores the session identifier and the transaction operation information and/or the processing result of the transaction operation information in the log system in a correlation manner. Therefore, the invention can generate the session identification for uniquely identifying one-time transaction, and can store the operation information of each step of ordering or the processing result of the operation information and the session identification into the log system in an associated manner, so that when a problem occurs, the operation of each step of ordering can be traced back according to the session identification, and the root cause of the problem can be found quickly.
Further, according to the above method embodiment, the present invention also provides a transaction data processing apparatus, which is applied to a client, as shown in fig. 8, and includes:
the sending unit 61 is configured to send a transaction request to a server, so that the server generates a session identifier of a transaction corresponding to the transaction request;
a receiving unit 62, configured to receive a session identifier sent by the server;
an acquisition unit 63 for acquiring transaction operation information;
the sending unit 61 is further configured to send the transaction operation information to the server with the session identifier, so that the server associates and stores the session identifier with the transaction operation information and/or a processing result of the transaction operation information.
The transaction data processing device provided by the embodiment of the invention can send the transaction request to the server after the client acquires the transaction request, so that the server generates the session identifier for identifying one transaction and sends the session identifier to the client; when the transaction operation information is acquired, the transaction operation information carrying the session identifier may be sent to the server, so that the server may perform association cache on the session identifier and the transaction operation information and/or a processing result of the transaction operation information. Therefore, the invention can generate the session identifier for identifying one transaction, and can perform associated cache on the operation information of each step of one transaction or the processing result of the operation information and the session identifier, so that when a problem occurs, the operation of each step performed by the transaction can be traced back according to the session identifier, and the root of the problem can be found quickly. In addition, when the server side does not issue the session identifier for the associated cache to the client side, the interaction information between the server side and the client side only relates to the session identifier which is not used for the associated cache, so that the fact that the real session identifier leaks due to the fact that the interaction information leaks can be avoided.
Further, another embodiment of the present invention also provides a storage medium storing a plurality of instructions, the instructions being adapted to be loaded and executed by a processor to perform the transaction data processing method on the server side as described above, or to be loaded and executed to perform the transaction data processing method on the client side as described above.
Further, another embodiment of the present invention also provides a transaction data processing apparatus, including a storage medium and a processor;
the processor is suitable for realizing instructions;
the storage medium adapted to store a plurality of instructions;
the instructions are adapted to be loaded by the processor and to perform the transaction data processing method as described above on the server side.
Further, another embodiment of the present invention also provides a transaction data processing apparatus, including a storage medium and a processor;
the processor is suitable for realizing instructions;
the storage medium adapted to store a plurality of instructions;
the instructions are adapted to be loaded by the processor and to perform the client side transaction data processing method as described above.
Further, another embodiment of the present invention also provides a transaction data processing system, including: a server and a client; wherein the server comprises a device applied to the server as described above, and the client comprises a device applied to the client as described above.
The transaction data processing system provided by the embodiment of the invention can generate the session identifier of the transaction corresponding to the transaction request firstly after the server receives the transaction request sent by the client, and then send the session identifier to the client; when the client uploads the transaction operation information, the client can upload the transaction operation information to the server by carrying the session identifier, so that the server can perform associated cache on the session identifier, the transaction operation information and/or a processing result of the transaction operation information. Therefore, the invention can generate the session identifier for identifying one transaction, and can perform associated cache on the operation information of each step of one transaction or the processing result of the operation information and the session identifier, so that when a problem occurs, the operation of each step performed by the transaction can be traced back according to the session identifier, and the root of the problem can be found quickly. In addition, when the server side does not issue the session identifier for the associated cache to the client side, the interaction information between the server side and the client side only relates to the session identifier which is not used for the associated cache, so that the fact that the real session identifier leaks due to the fact that the interaction information leaks can be avoided.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It will be appreciated that the relevant features of the method and apparatus described above are referred to one another. In addition, "first", "second", and the like in the above embodiments are for distinguishing the embodiments, and do not represent merits of the embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose systems may also be used with the teachings herein. The required structure for constructing such a system will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention.
Those skilled in the art will appreciate that the modules in the device in an embodiment may be adaptively changed and disposed in one or more devices different from the embodiment. The modules or units or components of the embodiments may be combined into one module or unit or component, and furthermore they may be divided into a plurality of sub-modules or sub-units or sub-components. All of the features disclosed in this specification (including any accompanying claims, abstract and drawings), and all of the processes or elements of any method or apparatus so disclosed, may be combined in any combination, except combinations where at least some of such features and/or processes or elements are mutually exclusive. Each feature disclosed in this specification (including any accompanying claims, abstract and drawings) may be replaced by alternative features serving the same, equivalent or similar purpose, unless expressly stated otherwise.
Furthermore, those skilled in the art will appreciate that while some embodiments described herein include some features included in other embodiments, rather than other features, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
The various component embodiments of the invention may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art will appreciate that a microprocessor or Digital Signal Processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components of the transaction data processing method, apparatus and system according to embodiments of the present invention. The present invention may also be embodied as apparatus or device programs (e.g., computer programs and computer program products) for performing a portion or all of the methods described herein. Such programs implementing the present invention may be stored on computer-readable media or may be in the form of one or more signals. Such a signal may be downloaded from an internet website or provided on a carrier signal or in any other form.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.

Claims (24)

1. A method of transaction data processing, the method comprising:
receiving a transaction request sent by a client;
generating a session identifier of a transaction corresponding to the transaction request, and sending the session identifier to the client;
receiving transaction operation information sent by the client, wherein the transaction operation information carries a session identifier;
and performing associated cache on the session identification and the transaction operation information and/or the processing result of the transaction operation information.
2. The method of claim 1, wherein receiving a transaction request sent by a client comprises:
receiving a transaction request carrying commodity information sent by the client;
the method further comprises the following steps:
and performing association cache on the session identification and the commodity information.
3. The method of claim 2, wherein generating a session identifier for a transaction corresponding to the transaction request comprises:
acquiring user information of a user who initiates the transaction request;
and generating the session identification according to the commodity information, the user information and the current time.
4. The method of claim 2, wherein when the transaction operation information is address information of a selected recipient, the associating and caching the session identifier with the transaction operation information and/or the processing result of the transaction operation information comprises:
searching commodity information corresponding to the session identification from a cache;
and carrying out expense calculation according to the searched commodity information and the address information of the receiver, and carrying out association cache on the session identification and an expense calculation result.
5. The method of claim 4, further comprising:
and sending the expense calculation result to the client for display.
6. The method according to claim 5, wherein when the transaction operation information is selection preference information, the associating and caching the session identifier with the transaction operation information and/or the processing result of the transaction operation information comprises:
searching a cost calculation result corresponding to the session identifier from a cache;
recalculating the total amount of the order according to the searched expense calculation result and the selected discount information;
and performing associated cache on the selected preferential information and the recalculated total sum and the session identification.
7. The method according to claim 2, wherein when the transaction operation information is a create order command, the associating and caching the session identifier with the transaction operation information and/or a processing result of the transaction operation information comprises:
searching all transaction operation information corresponding to the session identification from a cache;
and creating an order according to all the found transaction operation information, and performing associated cache on the session identifier and the created order.
8. The method according to any one of claims 1-7, further comprising:
and logging the session identification and the transaction operation information in a log system in a correlated manner.
9. A method of transaction data processing, the method comprising:
acquiring transaction operation information sent by a client, wherein the transaction operation information carries a session identifier;
storing the session identification and the transaction operation information and/or the processing result of the transaction operation information in a log system in an associated manner;
wherein the session identification is used to represent a unique identification of the transaction.
10. A method of transaction data processing, the method comprising:
sending a transaction request to a server so that the server generates a session identifier of a transaction corresponding to the transaction request;
receiving a session identifier sent by the server;
and acquiring transaction operation information, carrying the session identifier and sending the transaction operation information to the server, so that the server stores the session identifier and the transaction operation information and/or a processing result of the transaction operation information in an associated manner.
11. A transaction data processing apparatus, characterized in that the apparatus comprises:
the receiving unit is used for receiving a transaction request sent by a client;
the generating unit is used for generating a session identifier of a transaction corresponding to the transaction request;
a sending unit, configured to send the session identifier to the client;
the receiving unit is further configured to receive transaction operation information sent by the client, where the transaction operation information carries a session identifier;
and the cache unit is used for performing associated cache on the session identifier and the transaction operation information and/or the processing result of the transaction operation information.
12. The device according to claim 11, wherein the receiving unit is configured to receive a transaction request with commodity information sent by the client;
the cache unit is further configured to perform associated caching on the session identifier and the commodity information.
13. The apparatus of claim 12, wherein the generating unit comprises:
the acquisition module is used for acquiring the user information of the user who initiates the transaction request;
and the generation module is used for generating the session identifier according to the commodity information, the user information and the current time.
14. The apparatus of claim 12, wherein the buffer unit comprises:
the first searching module is used for searching commodity information corresponding to the session identifier from a cache when the transaction operation information is address information of a selected receiver;
the first calculation module is used for calculating the cost according to the searched commodity information and the address information of the receiver;
and the first cache module is used for performing associated cache on the session identifier and the expense calculation result.
15. The apparatus of claim 14, wherein the sending unit is further configured to send the cost calculation result to the client for presentation.
16. The apparatus of claim 15, wherein the buffer unit comprises:
the second searching module is used for searching a cost calculation result corresponding to the session identifier from a cache when the transaction operation information is the selected discount information;
the second calculation module is used for recalculating the total amount of the order according to the searched expense calculation result and the selected discount information;
and the second cache module is used for performing associated cache on the selected preferential information and the recalculated total amount and the session identifier.
17. The apparatus of claim 12, wherein the buffer unit comprises:
the third searching module is used for searching all the transaction operation information corresponding to the session identifier from a cache when the transaction operation information is an order creating command;
the creating module is used for creating orders according to all the found transaction operation information;
and the third cache module is used for performing associated cache on the session identifier and the created order.
18. The apparatus according to any one of claims 11-17, further comprising:
and the recording unit is used for recording the session identification and the transaction operation information into a log system in a correlation manner.
19. A transaction data processing apparatus, characterized in that the apparatus comprises:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring transaction operation information sent by a client, the transaction operation information carries a session identifier, and the session identifier is used for representing a unique identifier of a transaction;
and the storage unit is used for storing the session identification and the transaction operation information and/or the processing result of the transaction operation information in a log system in an associated manner.
20. A transaction data processing apparatus, characterized in that the apparatus comprises:
the sending unit is used for sending a transaction request to a server so that the server can generate a session identifier of a transaction corresponding to the transaction request;
a receiving unit, configured to receive a session identifier sent by the server;
the acquisition unit is used for acquiring transaction operation information;
the sending unit is further configured to send the transaction operation information to the server with the session identifier, so that the server associates and stores the session identifier with the transaction operation information and/or a processing result of the transaction operation information.
21. A storage medium storing a plurality of instructions adapted to be loaded and executed by a processor according to any one of claims 1 to 9 or to be loaded and executed according to claim 10.
22. A transaction data processing apparatus, characterized in that the apparatus comprises a storage medium and a processor;
the processor is suitable for realizing instructions;
the storage medium adapted to store a plurality of instructions;
the instructions are adapted to be loaded by the processor and to perform the transaction data processing method of any of claims 1-9.
23. A transaction data processing apparatus, characterized in that the apparatus comprises a storage medium and a processor;
the processor is suitable for realizing instructions;
the storage medium adapted to store a plurality of instructions;
the instructions are adapted to be loaded by the processor and to perform the transaction data processing method of claim 10.
24. A transaction data processing system, the system comprising: a server and a client; wherein the server comprises an apparatus according to any of claims 11-19 and the client comprises an apparatus according to claim 20.
CN201910107475.3A 2019-02-02 2019-02-02 Transaction data processing method, device and system Pending CN111523953A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910107475.3A CN111523953A (en) 2019-02-02 2019-02-02 Transaction data processing method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910107475.3A CN111523953A (en) 2019-02-02 2019-02-02 Transaction data processing method, device and system

Publications (1)

Publication Number Publication Date
CN111523953A true CN111523953A (en) 2020-08-11

Family

ID=71900094

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910107475.3A Pending CN111523953A (en) 2019-02-02 2019-02-02 Transaction data processing method, device and system

Country Status (1)

Country Link
CN (1) CN111523953A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110041006A1 (en) * 2009-08-12 2011-02-17 New Technology/Enterprise Limited Distributed transaction processing
CN107209895A (en) * 2015-01-26 2017-09-26 维萨国际服务协会 Direct fund transfer process
CN107993124A (en) * 2017-11-28 2018-05-04 杭州有赞科技有限公司 Open the easy method and system of single cross offline
CN108027939A (en) * 2015-07-27 2018-05-11 万事达卡国际股份有限公司 The system and method for the data markers tracking data provided using user
CN108510355A (en) * 2018-03-12 2018-09-07 拉扎斯网络科技(上海)有限公司 The implementation method and relevant apparatus that interactive voice is made a reservation
CN108876373A (en) * 2018-06-28 2018-11-23 深圳市元征科技股份有限公司 A kind of method of payment, device, server and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110041006A1 (en) * 2009-08-12 2011-02-17 New Technology/Enterprise Limited Distributed transaction processing
CN107209895A (en) * 2015-01-26 2017-09-26 维萨国际服务协会 Direct fund transfer process
CN108027939A (en) * 2015-07-27 2018-05-11 万事达卡国际股份有限公司 The system and method for the data markers tracking data provided using user
CN107993124A (en) * 2017-11-28 2018-05-04 杭州有赞科技有限公司 Open the easy method and system of single cross offline
CN108510355A (en) * 2018-03-12 2018-09-07 拉扎斯网络科技(上海)有限公司 The implementation method and relevant apparatus that interactive voice is made a reservation
CN108876373A (en) * 2018-06-28 2018-11-23 深圳市元征科技股份有限公司 A kind of method of payment, device, server and system

Similar Documents

Publication Publication Date Title
US11244407B2 (en) Electronic receipt-linking database system
US11869054B2 (en) Method and system to facilitate transactions
US20150310388A1 (en) Local couriers network in the context of an on-line trading platform
US20150120508A1 (en) Purchasing Systems and Methods
US10579980B2 (en) Method and apparatus for displaying transaction information
KR20160044488A (en) Automatically filling item information for selling
CN109040955B (en) Equipment activation method and device based on service identification code
JP6163742B2 (en) Product information providing apparatus and product information providing method
US9141985B1 (en) Simplified seller listing service
CN104579931B (en) The access method and device of a kind of copending document based on mail
KR101656055B1 (en) Method and apparatus for providing a list of products which is viewed by a user
US20230024812A1 (en) Source image providing multiple item views
CN111523953A (en) Transaction data processing method, device and system
US20130036374A1 (en) Method and apparatus for providing a banner on a website
KR101616063B1 (en) Content server latency determination
CN106548341A (en) A kind of data processing, the method and device of electronic certificate process
CN106991117B (en) Snapshot processing method, snapshot display method, server, browser and system
CN106547747A (en) A kind of data processing, the method and device of electronic certificate process
US20140214616A1 (en) Active Catalog
KR100994257B1 (en) E-catalog generation system enclosing price structure and method thereof
US9961086B2 (en) Dynamic content authentication for secure merchant-customer communications
CA3054506C (en) The method, device for pushing electronic transaction certificate
CN104144111B (en) Social networks application obtains the method and system of user related information
KR102560083B1 (en) Method and apparatus for providing a delivery information of product
US11157989B2 (en) Merchant-side integrated shopping cart recovery

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