CN116248781A - Message processing method, device, equipment and storage medium based on transaction information - Google Patents

Message processing method, device, equipment and storage medium based on transaction information Download PDF

Info

Publication number
CN116248781A
CN116248781A CN202310238733.8A CN202310238733A CN116248781A CN 116248781 A CN116248781 A CN 116248781A CN 202310238733 A CN202310238733 A CN 202310238733A CN 116248781 A CN116248781 A CN 116248781A
Authority
CN
China
Prior art keywords
message
message data
transaction
data
information
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
CN202310238733.8A
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.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
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 Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202310238733.8A priority Critical patent/CN116248781A/en
Publication of CN116248781A publication Critical patent/CN116248781A/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
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

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

Abstract

The application provides a message processing method, device and equipment based on transaction information and a storage medium. The method comprises the following steps: acquiring message data from a preset database at fixed time, and determining the message type of the message data; the message data is used for representing data sent by a preset third party mechanism after responding to the transaction request; determining message processing configuration information corresponding to the message type according to the message type of the message data; the message processing configuration information is used for processing different types of message data; analyzing the message data according to the message processing configuration information to obtain transaction information corresponding to the message data, and sending the transaction information to the third party mechanism; the transaction information is used to represent information required to conduct a transaction with a third party institution. The method and the device can flexibly configure the message processing configuration information, have better expansibility, effectively reduce the subsequent development workload, save manpower and time and improve the precision and efficiency of message processing.

Description

Message processing method, device, equipment and storage medium based on transaction information
Technical Field
The present disclosure relates to communication technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing a message based on transaction information.
Background
When a user performs a transaction, the user may perform the transaction with a third party institution via a special system, for example, a transaction may be performed via a escrow.
Users of the hosting line have higher timeliness requirements on transaction processing, and different types of transactions relate to different interactive messages, and processing logic of the various interactive messages is different. How to improve the efficiency of message processing when interacting with a third party mechanism is a problem to be solved at present.
Disclosure of Invention
The application provides a message processing method, device and equipment based on transaction information and a storage medium, which are used for improving the efficiency of message processing.
In a first aspect, the present application provides a method for processing a message based on transaction information, where the method is applied to an electronic device, and includes:
acquiring message data from a preset database at fixed time, and determining the message type of the message data; the message data are used for representing data sent by a preset third party mechanism after responding to the transaction request, and the third party mechanism is used for receiving the transaction request sent by the electronic equipment and carrying out transaction with the electronic equipment;
Determining message processing configuration information corresponding to the message type of the message data according to the message type of the message data; the message processing configuration information is used for processing different types of message data;
analyzing the message data according to message processing configuration information corresponding to the message type of the message data to obtain transaction information corresponding to the message data, and sending the transaction information to the third party mechanism; wherein the transaction information is used for representing information required for carrying out transactions with the third party institution.
In a second aspect, the present application provides a message processing apparatus based on transaction information, where the apparatus is applied to an electronic device, and includes:
the data acquisition module is used for acquiring message data from a preset database at fixed time and determining the message type of the message data; the message data are used for representing data sent by a preset third party mechanism after responding to the transaction request, and the third party mechanism is used for receiving the transaction request sent by the electronic equipment and carrying out transaction with the electronic equipment;
the configuration determining module is used for determining message processing configuration information corresponding to the message type of the message data according to the message type of the message data; the message processing configuration information is used for processing different types of message data;
The information determining module is used for analyzing the message data according to the message processing configuration information corresponding to the message type of the message data to obtain transaction information corresponding to the message data, and sending the transaction information to the third party mechanism; wherein the transaction information is used for representing information required for carrying out transactions with the third party institution.
In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory to implement the transaction information-based message processing method according to the first aspect of the present application.
In a fourth aspect, the present application provides a computer-readable storage medium having stored therein computer-executable instructions which, when executed by a processor, are configured to implement a method for processing a message based on transaction information according to the first aspect of the present application.
In a fifth aspect, the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the transaction information based message processing method of the first aspect of the present application.
According to the message processing method, device, equipment and storage medium based on the transaction information, the message data are acquired from the database at regular time, so that the situation that more message data are received in the service peak period can be avoided, and the requirement of customers on high timeliness cannot be met. The timing task can reduce the frequency of requesting the database, and the condition that the database pressure is too high due to the rapid increase of the database request in a certain period of time is avoided, so that the stability of message processing is improved. According to the message type of the message data, determining message processing configuration information corresponding to each message data, and carrying out targeted processing on the message data according to the message processing configuration information. The message processing configuration information can be flexibly set, and if a new message type exists in the follow-up process, the configuration is only needed, so that the method has good expansibility, the follow-up development workload is effectively reduced, the manpower and time are saved, and the processing precision and efficiency of the message data are improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flow chart of a message processing method based on transaction information according to an embodiment of the present application;
Fig. 2 is a flow chart of a message processing method based on transaction information according to an embodiment of the present application;
fig. 3 is a block diagram of a message processing device based on transaction information according to an embodiment of the present application;
fig. 4 is a block diagram of a message processing device based on transaction information according to an embodiment of the present application;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application.
Specific embodiments thereof have been shown by way of example in the drawings and will herein be described in more detail. These drawings and the written description are not intended to limit the scope of the inventive concepts in any way, but to illustrate the concepts of the present application to those skilled in the art by reference to specific embodiments.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It should be understood that the described embodiments are merely some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present application as detailed in the accompanying claims.
In the description of this application, it should be understood that the terms "first," "second," "third," and the like are used merely to distinguish between similar objects and are not necessarily used to describe a particular order or sequence, nor should they be construed to indicate or imply relative importance. The specific meaning of the terms in this application will be understood by those of ordinary skill in the art as the case may be. Furthermore, in the description of the present application, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
It should be noted that, for the sake of brevity, this specification is not exhaustive of all of the alternative embodiments, and after reading this specification, one skilled in the art will appreciate that any combination of features may constitute an alternative embodiment as long as the features do not contradict each other. The following describes each embodiment in detail.
The user may conduct transactions with a third party institution, such as a bond company or the like, through a preset financial institution or system. As a escrow for bond transactions with a huge transaction amount, users of the escrow have a high timeliness requirement for transaction processing between the escrow and a third party institution, wherein the direct connection business involves multiple transaction types, and each type of interaction message is different from the processing logic.
The current message data processing process is that the hosting line actively carries out direct connection at regular time, inquires the transaction products to a third party mechanism, waits for a message returned by the other party after inquiring, processes the message and updates the transaction state. The generation of the direct-connection sending message and the processing of the receiving message are mostly carried out in a database, the efficiency is low under the condition of large data volume, the processing time of the service peak period is long, and the requirement of customers on high timeliness cannot be met. And for different message types, different processing flows need to be developed, and the processing procedures of the message data of different types cannot be flexibly configured. If new types exist later, the configuration is needed to be carried out again, the workload of subsequent development is large, manpower and time are wasted, and the processing precision and efficiency of the message data are affected.
The application provides a message processing method, device, equipment and storage medium based on transaction information, which aim to solve the technical problems in the prior art.
The following describes the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a message processing method based on transaction information, which may be executed by a message processing apparatus based on transaction information according to an embodiment of the present application. As shown in fig. 1, the method comprises the steps of:
s101, acquiring message data from a preset database at fixed time, and determining the message type of the message data; the message data are used for representing data sent by a preset third party mechanism after responding to the transaction request, and the third party mechanism is used for receiving the transaction request sent by the electronic equipment and conducting transaction with the electronic equipment.
The third party institution is used to represent, for example, a party conducting a transaction, and may be an institution issuing a product, for example, an institution issuing a bond. The transaction service system is operated by a third party institution and a user, can be used as a hosting company to conduct transactions with the third party institution, and can be represented by electronic equipment. The third party mechanism can send the message data to a database preset by the transaction service system, and the preset database is used for storing the original message data sent by the third party mechanism. A time period may be preset, and according to the preset time period, the transaction service system may acquire the message data from the database at regular time, and may acquire one or more message data each time. The message data may also be obtained from a database in response to a message data obtaining instruction issued by the user.
The message data can be divided into different message types, and the third party mechanism can send out the message data with different message types when sending out the message data. For example, the message types may include a first type and a second type, the first type of message may be a service message, and the second type of message may be a technology message. The service message refers to a message related to transaction information of various services, and the technical message refers to a message related to technical class notification. For example, the service message may include a stock-in-stock transaction message, an asset-supported stock-in-stock message, or a mortgage-type purchase-back message, and the technical message may be a message of a specific technical parameter that needs to be acquired in advance before the transaction.
The message data comprises characters capable of representing the message type, and after the message data is obtained from the database, the characters capable of representing the message type can be searched from the message data to determine the message type of the message data.
In this embodiment, the step of periodically acquiring the message data from a preset database includes: receiving message data sent by a third party mechanism and storing the message data into a preset database; and acquiring the preset number of message data from a preset database according to the preset message processing time period.
Specifically, the third party mechanism may send the message data to the database after receiving the transaction request, or may send the message data to the database in real time or at regular time. For example, the third party responds to the transaction request to the transaction service system and determines the message data to be sent out according to the transaction request. And receiving the message data sent by the third party mechanism, and sending the original message data to a preset database for storage, so that the message data can be conveniently checked later.
The time period of message processing is preset, for example, the time period of message processing is 1 hour. And acquiring the message data from the database at fixed time according to the preset message processing time period. The number of message data acquired each time may be preset, that is, the preset number of message data may be acquired each time. For example, 1000 pieces of message data can be acquired per hour. The acquisition may be performed according to the reception time of the message data, for example, the message data received at an earlier time may be preferentially acquired.
The method has the advantages that batch message data are obtained from the database at regular time, the situation that the pressure of the database is overlarge due to the rapid increase of the database request for a certain period of time is avoided, and the processing efficiency and the stability of the message data are improved.
In this embodiment, determining a message type of the message data includes: determining character strings positioned at preset character positions in message data; and determining the message type corresponding to the character string positioned at the preset character position in the message data as the message type of the message data according to the association relation between the preset character string and the message type.
Specifically, the message data contains a character or character string capable of representing the type of the message. The position of a character string capable of representing the message type in message data is preset as a character position. After the message data is acquired, acquiring a character or a character string from a preset character position. An association relationship between the character string and the message type is preset, for example, the message type corresponding to the character string "AA" is a first type, and the message type corresponding to the character string "BB" is a second type. And determining the message type corresponding to the character string positioned at the preset character position in each message data as the message type of the message data according to the association relation between the character string and the message type. The message types of the message data can be the same or different.
The method has the advantages that the message type of the message data can be rapidly determined according to the preset association relation, so that the message data is processed according to the message type, processing errors of the message data of different types are avoided, and the accuracy of message processing is improved.
S102, determining message processing configuration information corresponding to the message type of the message data according to the message type of the message data; the message processing configuration information is used for processing different types of message data.
For example, the message data of different message types may correspond to different message processing configuration information, where the message processing configuration information refers to a rule for processing the message data, that is, may be used for processing the message data of different types. The association relationship between the message type and the message processing configuration information can be preset, and the message processing configuration information corresponding to the message type of each message data, that is, the message processing configuration information corresponding to each message data, is determined based on the association relationship between the preset message type and the message processing configuration information according to the message type of each message data.
For example, for the first type of message data, the corresponding message processing configuration information is rule one; for the second type of message data, the corresponding message processing configuration information is rule two. Determining the rule corresponding to each message data, and performing targeted processing on the message data according to the determined rule.
S103, analyzing the message data according to the message processing configuration information corresponding to the message type of the message data to obtain transaction information corresponding to the message data, and sending the transaction information to a third party mechanism; wherein the transaction information is used to represent information required for conducting a transaction with a third party institution.
Illustratively, after obtaining the message processing configuration information corresponding to each message data, analyzing the corresponding message data according to the message processing configuration information to obtain the information contained in the message data. The message data is data generated by the third party mechanism in response to the transaction request, and therefore information contained in the message data can be determined as response information generated by the third party mechanism in response to the transaction request. And processing the obtained response information according to the message processing configuration information to obtain transaction information, namely obtaining the transaction information corresponding to the message data. The transaction information may be used to represent information required for the transaction service system to conduct a transaction with a third party institution, for example, the transaction information may represent whether to approve the transaction with the third party institution. And sending the transaction information to a third party institution to complete the transaction with the third party institution. For example, the transaction request is a request for a bond to be transacted with a third party, and the transaction request may include a transaction amount, and the third party returns message data of a minimum amount threshold for transacting. If the amount available for transaction in the user account meets the minimum amount threshold in the transaction request, transaction information allowing the transaction can be sent to a third party mechanism, namely, the purchase of a certain bond is completed.
In this embodiment, a distributed architecture may be used to process the packet data for load balancing. The distributed architecture comprises a plurality of computer nodes, and the flow is divided into different nodes for processing under a high concurrency scene, so that the possibility of service downtime is reduced, and parameters such as response time and the like are improved. Even if one node fails and is down, the backup node can support the normal operation of the service, the deployed service node can dynamically expand according to the size of the traffic, so that the stability of the high concurrency scene service is ensured, excessive resource waste during low peak is also considered, and the cost and efficiency reduction effect of flexibly configuring dynamic expansion under the high concurrency scene is realized.
According to the message processing method based on the transaction information, the message data are acquired from the database at regular time, so that the situation that more message data are received in the service peak period and the requirement of customers on high timeliness cannot be met can be avoided. The timing task can reduce the frequency of requesting the database, and the condition that the database pressure is too high due to the rapid increase of the database request in a certain period of time is avoided, so that the stability of message processing is improved. According to the message type of the message data, determining message processing configuration information corresponding to each message data, and carrying out targeted processing on the message data according to the message processing configuration information. The message processing configuration information can be flexibly set, and if a new message type exists in the follow-up process, the configuration is only needed, so that the method has good expansibility, the follow-up development workload is effectively reduced, the manpower and time are saved, and the processing precision and efficiency of the message data are improved.
Fig. 2 is a flow chart of a message processing method based on transaction information according to an embodiment of the present application, where the embodiment is an alternative embodiment based on the foregoing embodiment.
In this embodiment, the message processing configuration information includes the positions of fields in the message data, where the fields in the message data are used to represent response information generated by the third party mechanism in response to the transaction request; according to the message processing configuration information corresponding to the message type of the message data, the message data is analyzed, and can be thinned as follows: and determining response information at each field position from the message data according to the message processing configuration information corresponding to the message type of the message data.
The message processing configuration information comprises a mode of generating transaction information according to the response information; the transaction information corresponding to the message data can be obtained by refinement as follows: and generating transaction information corresponding to the response information according to a preset mode for generating the transaction information according to the response information in the message processing configuration information corresponding to the message type of the message data.
As shown in fig. 2, the method comprises the steps of:
s201, acquiring message data from a preset database at fixed time, and determining the message type of the message data; the message data are used for representing data sent by a preset third party mechanism after responding to the transaction request, and the third party mechanism is used for receiving the transaction request sent by the electronic equipment and conducting transaction with the electronic equipment.
For example, this step may refer to step S101, and will not be described in detail.
S202, determining message processing configuration information corresponding to the message type of the message data according to the message type of the message data; the message processing configuration information is used for processing different types of message data.
For example, this step may refer to step S102, and will not be described in detail.
S203, determining response information at each field position from the message data according to the message processing configuration information corresponding to the message type of the message data.
Illustratively, the message data may include a plurality of fields, each of which may represent a response message, e.g., the fields may include a memory table name, a message label, a label path, etc. of the message data. The positions of the fields in the message data are preset under different message types. For example, the first six characters in the message data represent the first field, the seventh through fourteenth characters represent the second field, and the fifteenth and sixteenth characters represent the third field.
And analyzing the message data to obtain specific response information represented in the message data. The corresponding message data can be analyzed according to each preset field position in the message processing configuration information, character strings at each field position are obtained from the message data, and response information represented by each character string is determined. For example, after the character string in the message data is the data obtained by encrypting the response information, the character string at each field position can be decrypted based on a preset decryption algorithm to obtain the response information.
S204, generating transaction information corresponding to the response information according to a preset mode of generating the transaction information according to the response information in the message processing configuration information corresponding to the message type of the message data, and sending the transaction information to a third party mechanism.
The message processing configuration information may also include a manner of generating transaction information according to response information, where the response information is sent by a third party institution, and the transaction information is sent by the transaction service system to the third party institution after receiving the response information. For different message types, transaction information can be determined according to the response information. The types of response information of different message types are different, and the determined transaction information is also different, for example, for the message data of the first type, the transaction information can be generated by adopting a preset information association relationship, so as to determine the transaction information associated with the response information; for the second type of message data, the transaction information may be generated by determining the transaction information from the response information. After the transaction information is obtained, the transaction information is sent to a third party institution.
After the response information is obtained, the response information may be stored in a preset data table, and after the transaction information is obtained, the transaction information may also be stored in the preset data table. The response information and transaction information corresponding to different message types can be stored in different data tables.
In this embodiment, according to a preset manner of generating transaction information according to response information in message processing configuration information corresponding to a message type of message data, generating transaction information corresponding to the response information includes: if the message type of the message data is a preset first type, determining pre-stored data corresponding to the transaction request; the first type is used for representing the message type for carrying out business transaction; generating transaction information according to the comparison result of the pre-stored data and the response data; wherein the transaction is allowed or not allowed.
Specifically, the message types may include a first type and a second type, where the first type may refer to message data as a message for performing a business transaction. That is, after the third party mechanism receives the transaction request of the business transaction, the first type of message data can be sent out. The first type of message data may include transaction conditions of the service, for example, account balances, specified transaction times, transaction places, and the like. The database stores prestored data of various services, for example, the prestored data can comprise the actual account name, balance, account opening place and other data of the user. The pre-stored data is used for representing actual user information when the user performs the transaction, and the response information is used for representing user information required by the user when the user performs the transaction.
After determining the message type of the message data received in the database, if the message type is determined to be the first type, the transaction information may be generated according to the response information by determining pre-stored data corresponding to the service in the transaction request in the database. Comparing the response information corresponding to the message data with prestored information in a database, judging whether the prestored data is consistent with the response data, if so, determining that the transaction can be carried out, wherein the transaction information is allowed transaction, and transmitting the transaction information allowing the transaction to a third party mechanism to complete the transaction; if not, the transaction information is not allowed to be transacted, and the transaction information which is not allowed to be transacted is sent to a third party institution, and the transaction fails. For example, the pre-stored data is 100 ten thousand account balances, the received response information is at least 200 ten thousand account balances, that is, the actual balance of the user is smaller than the balance to be satisfied, and the transaction information is not allowed to be transacted.
The method has the advantages that for the first type of message data, the response information can be compared with the pre-stored information, the transaction information can be obtained quickly, the mode of generating the transaction information in the message processing configuration information can be flexibly configured, and the message processing efficiency is improved.
In this embodiment, according to a preset manner of generating transaction information according to response information in message processing configuration information corresponding to a message type of message data, generating transaction information corresponding to the response information includes: if the message type of the message data is a preset second type, determining file information of the file to be downloaded from the response information, and determining the file information of the file to be downloaded as transaction information; the file to be downloaded is used for representing a parameter file of the technical notification, and the file information comprises a file name and a file type.
Specifically, the second type of message data is message data for technical notification, for example, a third party mechanism can send related data updated by a certain product as message data, so that the situation that a user cannot obtain the updated information of the product in time is avoided. If the message type of the message data is determined to be the preset second type, the response information includes file information of a file to be downloaded, wherein the file to be downloaded is a parameter file for updating product parameters, and the file information can include names, types and the like of the parameter file. The preset mode of generating the transaction information according to the response information is that the file information of the file to be downloaded is determined from the response information, and the file information of the file to be downloaded is determined to be the transaction information. For example, the response information represented by the field located at the set position in the message data may be preset as the file information of the file to be downloaded, and the response information represented by the field located at the set position is obtained, so as to obtain the file information, that is, the transaction information.
The method has the advantages that for different message types, transaction information can be obtained quickly through pre-configuration, and if new message types exist later, only configuration is needed, so that the method has good expandability, and the workload of subsequent development is effectively reduced. And the corresponding transaction information can be accurately obtained by different message types, and for the message data of the second type, the file information of the parameter file can be determined, so that the parameter file can be conveniently obtained, and the processing precision and efficiency of the message data are improved.
In this embodiment, sending the transaction information to the third party mechanism includes: transmitting file information of the file to be downloaded to a third party mechanism; the third party mechanism is used for receiving file information of the file to be downloaded, sending the file to be downloaded to a preset storage position and sending the preset storage position to the database; and acquiring a storage position of the file to be downloaded from the database, and acquiring the file to be downloaded from the storage position.
Specifically, after determining the file information to be downloaded, the file information is sent to a third party institution as transaction information. For example, the transaction information may be a file name of the file to be downloaded. After the third party mechanism receives the transaction information, the file to be downloaded is sent to a preset storage position for storage, for example, the file to be downloaded can be stored in a cloud disk. After the third party mechanism stores the file to be downloaded in the cloud disk, the identification and the storage address of the file to be downloaded are sent to the database, and the identification of the file to be downloaded can be a file name.
And acquiring the identification, the storage address and other messages of the file to be downloaded, which are sent by the third party mechanism, from the database in real time or at fixed time. And downloading the file to be downloaded from the storage address according to the identification and the storage address of the file to be downloaded, and performing parameter conversion according to logic required by the service.
The beneficial effects of the arrangement are that the file address and the file ID are obtained from the database, and then the corresponding file is obtained from the cloud disk. For nodes in the distributed network, each node can acquire files to be downloaded from the cloud disk, so that interaction between the nodes and a third-party mechanism is reduced, and the processing efficiency of message data is improved.
For the case of failed transaction, the failed transaction can be recorded, the reason of the failure is stored, and a preset status code is added for the failed transaction. For example, the reason for failure is that the account balance in the pre-stored data does not meet the account balance required in the response information, and different failure reasons may correspond to different status codes. In the transaction of detecting failure in real time or at fixed time, the pre-stored data corresponding to the failure cause can automatically resend the transaction request to the third party mechanism when the pre-stored data meets the requirement of corresponding response information, so that the third party mechanism sends the message data again, and the transaction is carried out. For example, when it is detected that the user's balance exceeds the balance required in the response information recorded when the transaction failed, then the transaction request may be resent to the third party authority. And obtaining the message data retransmitted by the third party mechanism from the database, and determining the message type of the message data. Determining message processing configuration information corresponding to the message data according to the message type of the message data, analyzing the message data according to the message processing configuration information corresponding to the message data to obtain transaction information corresponding to the message data, and sending the transaction information to a third party mechanism. If the transaction is successful, deleting the status code of the failed transaction, which indicates that the data monitoring of the failed transaction is not needed.
According to the message processing method based on the transaction information, the message data are acquired from the database at regular time, so that the situation that more message data are received in the service peak period and the requirement of customers on high timeliness cannot be met can be avoided. The timing task can reduce the frequency of requesting the database, and the condition that the database pressure is too high due to the rapid increase of the database request in a certain period of time is avoided, so that the stability of message processing is improved. According to the message type of the message data, determining message processing configuration information corresponding to each message data, and carrying out targeted processing on the message data according to the message processing configuration information. The message processing configuration information can be flexibly set, and if a new message type exists in the follow-up process, the configuration is only needed, so that the method has good expansibility, the follow-up development workload is effectively reduced, the manpower and time are saved, and the processing precision and efficiency of the message data are improved.
Fig. 3 is a block diagram of a message processing apparatus based on transaction information according to an embodiment of the present application, where the apparatus is applied to an electronic device, and for convenience of explanation, only a portion related to an embodiment of the present disclosure is shown. Referring to fig. 3, the apparatus includes: a data acquisition module 301, a configuration determination module 302, and an information determination module 303.
The data acquisition module 301 is configured to acquire message data from a preset database at regular time, and determine a message type of the message data; the message data are used for representing data sent by a preset third party mechanism after responding to the transaction request, and the third party mechanism is used for receiving the transaction request sent by the electronic equipment and carrying out transaction with the electronic equipment;
a configuration determining module 302, configured to determine, according to a message type of the message data, message processing configuration information corresponding to the message type of the message data; the message processing configuration information is used for processing different types of message data;
the information determining module 303 is configured to parse the message data according to message processing configuration information corresponding to a message type of the message data, obtain transaction information corresponding to the message data, and send the transaction information to the third party mechanism; wherein the transaction information is used for representing information required for carrying out transactions with the third party institution.
Fig. 4 is a block diagram of a message processing device based on transaction information according to an embodiment of the present application, where, on the basis of the embodiment shown in fig. 3, the message processing configuration information includes positions of fields in message data, where the fields in the message data are used to represent response information generated by the third party mechanism in response to a transaction request; the message processing configuration information also comprises a mode of generating transaction information according to the response information. As shown in fig. 4, the information determination module 303 includes a response information determination unit 3031 and a transaction information determination unit 3032.
A response information determining unit 3031, configured to determine response information at each field position from the message data according to message processing configuration information corresponding to a message type of the message data;
the transaction information determining unit 3032 is configured to generate transaction information corresponding to the response information according to a preset manner of generating the transaction information according to the response information in the message processing configuration information corresponding to the message type of the message data.
In one example, the data acquisition module 301 includes:
the message storage unit is used for receiving the message data sent by the third party mechanism and storing the message data into a preset database;
the message acquisition unit is used for acquiring the preset number of message data from a preset database according to the preset message processing time period.
In one example, the transaction information determining unit 3032 is specifically configured to:
if the message type of the message data is a preset first type, determining pre-stored data corresponding to the transaction request; the first type is used for representing a message type for carrying out business transaction;
generating the transaction information according to the comparison result of the pre-stored data and the response data; wherein the transaction is allowed or not allowed.
In one example, the transaction information determining unit 3032 is specifically configured to:
if the message type of the message data is a preset second type, determining file information of a file to be downloaded from the response information, and determining the file information of the file to be downloaded as the transaction information; the file to be downloaded is used for representing a parameter file of the technical notification, and the file information comprises a file name and a file type.
In one example, the information determination module 303 includes:
the transaction information sending unit is used for sending the file information of the file to be downloaded to the third party mechanism; the third party mechanism is used for receiving the file information of the file to be downloaded, sending the file to be downloaded to a preset storage position and sending the preset storage position to a database;
the file acquisition unit is used for acquiring the storage position of the file to be downloaded from the database and acquiring the file to be downloaded from the storage position.
In one example, the data acquisition module 301 includes:
the character string determining unit is used for determining character strings positioned at preset character positions in the message data;
And the type determining unit is used for determining the message type corresponding to the character string positioned at the preset character position in the message data according to the association relation between the preset character string and the message type, and the message type is the message type of the message data.
Fig. 5 is a block diagram of an electronic device according to an embodiment of the present application, where, as shown in fig. 5, the electronic device includes: a memory 51, a processor 52; memory 51, a memory for storing instructions executable by processor 52.
Wherein the processor 52 is configured to perform the method as provided by the above-described embodiments.
The electronic device further comprises a receiver 53 and a transmitter 54. The receiver 53 is configured to receive instructions and data transmitted from other devices, and the transmitter 54 is configured to transmit instructions and data to external devices.
Fig. 6 is a block diagram of an electronic device, which may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like, in accordance with an exemplary embodiment.
The device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an input/output (I/O) interface 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 may include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operations at the device 600. Examples of such data include instructions for any application or method operating on device 600, contact data, phonebook data, messages, pictures, videos, and the like. The memory 604 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 606 provides power to the various components of the device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 600.
The multimedia component 608 includes a screen between the device 600 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front camera and/or a rear camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 600 is in an operational mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 614 includes one or more sensors for providing status assessment of various aspects of the device 600. For example, the sensor assembly 614 may detect the on/off state of the device 600, the relative positioning of the components, such as the display and keypad of the device 600, the sensor assembly 614 may also detect a change in position of the device 600 or a component of the device 600, the presence or absence of user contact with the device 600, the orientation or acceleration/deceleration of the device 600, and a change in temperature of the device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communication between the device 600 and other devices, either wired or wireless. The device 600 may access a wireless network based on a communication standard, such as WiFi,2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 616 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 604, including instructions executable by processor 620 of device 600 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a terminal device, causes the terminal device to perform the transaction information based message processing method of the electronic device.
The application also discloses a computer program product comprising a computer program which, when executed by a processor, implements a method as described in the present embodiment.
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present application may be written in any combination of one or more programming languages. These program code may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus such that the program code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or electronic device.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data electronic device), or that includes a middleware component (e.g., an application electronic device), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and an electronic device. The client and the electronic device are generally remote from each other and typically interact through a communication network. The relationship of client and electronic devices arises by virtue of computer programs running on the respective computers and having a client-electronic device relationship to each other. The electronic equipment can be cloud electronic equipment, also called cloud computing electronic equipment or cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service (Virtual Private Server or VPS for short) are overcome. The electronic device may also be an electronic device of a distributed system or an electronic device that incorporates a blockchain. It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the technical solutions disclosed in the present application can be achieved, and are not limited herein.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It is to be understood that the present application is not limited to the precise arrangements and instrumentalities shown in the drawings, which have been described above, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (12)

1. A message processing method based on transaction information, wherein the method is applied to electronic equipment and comprises the following steps:
acquiring message data from a preset database at fixed time, and determining the message type of the message data; the message data are used for representing data sent by a preset third party mechanism after responding to a transaction request sent by the electronic equipment, and the third party mechanism is used for receiving the transaction request sent by the electronic equipment and carrying out transaction with the electronic equipment;
determining message processing configuration information corresponding to the message type of the message data according to the message type of the message data; the message processing configuration information is used for processing different types of message data;
analyzing the message data according to message processing configuration information corresponding to the message type of the message data to obtain transaction information corresponding to the message data, and sending the transaction information to the third party mechanism; wherein the transaction information is used for representing information required for carrying out transactions with the third party institution.
2. The method of claim 1, wherein periodically retrieving message data from a pre-set database comprises:
receiving message data sent by the third party mechanism, and storing the message data into a preset database;
and acquiring the preset number of message data from a preset database according to the preset message processing time period.
3. The method of claim 1, wherein the message processing configuration information includes a location of each field in message data, where a field in the message data is used to represent response information generated by the third party mechanism in response to the transaction request;
analyzing the message data according to the message processing configuration information corresponding to the message type of the message data, including:
and determining response information at each field position from the message data according to the message processing configuration information corresponding to the message type of the message data.
4. A method according to claim 3, wherein the message processing configuration information includes a manner of generating transaction information according to response information;
obtaining transaction information corresponding to the message data comprises the following steps:
And generating transaction information corresponding to the response information according to a preset mode for generating the transaction information according to the response information in message processing configuration information corresponding to the message type of the message data.
5. The method according to claim 4, wherein generating transaction information corresponding to response information according to a preset manner of generating the transaction information according to the response information in message processing configuration information corresponding to a message type of the message data, comprises:
if the message type of the message data is a preset first type, determining pre-stored data corresponding to the transaction request; the first type is used for representing a message type for carrying out business transaction;
generating the transaction information according to the comparison result of the pre-stored data and the response data; wherein the transaction is allowed or not allowed.
6. The method according to claim 4, wherein generating transaction information corresponding to response information according to a preset manner of generating the transaction information according to the response information in message processing configuration information corresponding to a message type of the message data, comprises:
If the message type of the message data is a preset second type, determining file information of a file to be downloaded from the response information, and determining the file information of the file to be downloaded as the transaction information; the file to be downloaded is used for representing a parameter file of the technical notification, and the file information comprises a file name and a file type.
7. The method of claim 6, wherein transmitting the transaction information to the third party authority comprises:
transmitting the file information of the file to be downloaded to the third party mechanism; the third party mechanism is used for receiving the file information of the file to be downloaded, sending the file to be downloaded to a preset storage position and sending the preset storage position to a database;
and acquiring a storage position of the file to be downloaded from a database, and acquiring the file to be downloaded from the storage position.
8. The method according to any one of claims 1-7, wherein determining the message type of the message data comprises:
determining character strings positioned at preset character positions in the message data;
And determining the message type corresponding to the character string positioned at the preset character position in the message data as the message type of the message data according to the association relation between the preset character string and the message type.
9. A message processing apparatus based on transaction information, the apparatus being applied to an electronic device, comprising:
the data acquisition module is used for acquiring message data from a preset database at fixed time and determining the message type of the message data; the message data are used for representing data sent by a preset third party mechanism after responding to the transaction request, and the third party mechanism is used for receiving the transaction request sent by the electronic equipment and carrying out transaction with the electronic equipment;
the configuration determining module is used for determining message processing configuration information corresponding to the message type of the message data according to the message type of the message data; the message processing configuration information is used for processing different types of message data;
the information determining module is used for analyzing the message data according to the message processing configuration information corresponding to the message type of the message data to obtain transaction information corresponding to the message data, and sending the transaction information to the third party mechanism; wherein the transaction information is used for representing information required for carrying out transactions with the third party institution.
10. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory to implement the transaction information based message processing method of any of claims 1-8.
11. A computer readable storage medium having stored therein computer executable instructions which when executed by a processor are adapted to implement the transaction information based message processing method of any of claims 1-8.
12. A computer program product comprising a computer program which, when executed by a processor, implements the transaction information based message processing method of any of claims 1 to 8.
CN202310238733.8A 2023-03-08 2023-03-08 Message processing method, device, equipment and storage medium based on transaction information Pending CN116248781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310238733.8A CN116248781A (en) 2023-03-08 2023-03-08 Message processing method, device, equipment and storage medium based on transaction information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310238733.8A CN116248781A (en) 2023-03-08 2023-03-08 Message processing method, device, equipment and storage medium based on transaction information

Publications (1)

Publication Number Publication Date
CN116248781A true CN116248781A (en) 2023-06-09

Family

ID=86627646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310238733.8A Pending CN116248781A (en) 2023-03-08 2023-03-08 Message processing method, device, equipment and storage medium based on transaction information

Country Status (1)

Country Link
CN (1) CN116248781A (en)

Similar Documents

Publication Publication Date Title
US10986229B2 (en) Interactive user interface for profile management
CN115033211A (en) Method, device and equipment for querying article based on strategy mode and storage medium
CN108984417B (en) Software testing method, device, terminal and storage medium
CN109885360B (en) Data processing method, device and storage medium
CN116248781A (en) Message processing method, device, equipment and storage medium based on transaction information
CN114090738A (en) Method, device and equipment for determining scene data information and storage medium
CN115002227B (en) User access request response method, storage medium and electronic device
CN112182027B (en) Information query method, device, electronic equipment and storage medium
CN116600011A (en) Data information acquisition method, device, equipment and storage medium
CN110473138B (en) Graphic code conversion method, graphic code conversion device, electronic equipment and storage medium
CN116321363A (en) Communication method, device, equipment and storage medium based on long-distance radio
CN116302196A (en) Application running method and device based on dependency package, electronic equipment and storage medium
CN116909775A (en) Data information calling method, device, equipment and storage medium
CN117061583A (en) Message data information processing method, device, equipment and storage medium
CN115509580A (en) Data request access method, device, equipment and storage medium
CN115952311A (en) Text information generation method, device, equipment and storage medium
CN117472931A (en) Method, device, equipment and storage medium for calling database execution statement
CN116562999A (en) Financial product asset class determination method, equipment and storage medium
CN114240393A (en) Data processing method, device and equipment based on management system and storage medium
CN117632995A (en) Verification method and device of data processing logic, electronic equipment and storage medium
CN114756319A (en) Applet page display method, device and equipment and storage medium
CN117290309A (en) Image file uploading method, device, equipment and medium based on WEB terminal
CN114329088A (en) Directory structure file generation method, device, equipment and storage medium
CN115904874A (en) Abnormal log file processing method and device, server and storage medium
CN115811806A (en) Bluetooth connection method and device, electronic equipment and storage medium

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