CN108876379A - A kind of method and apparatus for generating message - Google Patents

A kind of method and apparatus for generating message Download PDF

Info

Publication number
CN108876379A
CN108876379A CN201810763955.0A CN201810763955A CN108876379A CN 108876379 A CN108876379 A CN 108876379A CN 201810763955 A CN201810763955 A CN 201810763955A CN 108876379 A CN108876379 A CN 108876379A
Authority
CN
China
Prior art keywords
message
request
value
party system
generates
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
CN201810763955.0A
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.)
Beijing Jingdong Financial Technology Holding Co Ltd
Original Assignee
Beijing Jingdong Financial Technology Holding Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Financial Technology Holding Co Ltd filed Critical Beijing Jingdong Financial Technology Holding Co Ltd
Priority to CN201810763955.0A priority Critical patent/CN108876379A/en
Publication of CN108876379A publication Critical patent/CN108876379A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Computer Hardware Design (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a kind of method and apparatus for generating message, are related to field of computer technology.One specific embodiment of this method includes:It receives the message from client and generates request;Whether verify the message and generate in request includes value for key parameter;In the case where it includes the value for key parameter that verification to the message, which generates in request, according to message template, the message to send to third party system is generated.The embodiment realizes the efficiently parameter according to provided by client and generates the technical effect for following the message of third system requirements.

Description

A kind of method and apparatus for generating message
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus for generating message.
Background technique
Currently, when being interacted with third party system, it will usually be related to transaction message assembly, Current implementations master If by traversal parameter field, word for word section assembled parameter to generate the message for meeting third party system requirement.Fig. 1 is client End group sends the schematic diagram of message in existing way to third party system.It is used for as shown in Figure 1, client 1,2,3 voluntarily generates The message interacted with payment system.Thus, client need to requirement according to respective pay system to message, such as according to third party Message format required by system (for example, XML, JSON) generates message, and generating includes parameter required by third party system Message, etc..
But in realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:With assembly ginseng Several modes voluntarily generate message by client, are easy to cause assembled mistake to fail report required by generating third party system Text, it is even more so especially in the case where message structure complexity.On the other hand, if message is wanted in third party system update It asks, such as replacement message format (for example, being transformed to JSON format from XML format), increases message parameter, then each needs and the The client that three method, systems interact is required to update the message template of its own caching.In addition, in a manner of assembled parameter The computer resource of client can be wasted by generating message.
Summary of the invention
In view of this, the embodiment provides a kind of method and apparatus for generating message, it can be efficiently The parameter according to provided by client generates the message for following third system requirements.In an embodiment of the present invention, client without It need to pay close attention to whether third party system is updated message template, help to simplify client process, save the calculating of client Resource.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of side generated for message is provided Method, which is characterized in that including:It receives the message from client and generates request;It verifies and whether is wrapped in the message generation request Include the value for key parameter;In the case where it includes the value for key parameter that verification to the message, which generates in request, root According to message template, the message to send to third party system is generated.
Optionally, the method generated for message, which is characterized in that the key parameter includes one in following Or it is multiple:Third party system identifier, client identifier, transaction amount, transaction account information.
Optionally, the method generated for message, which is characterized in that generating in the message does not include using in request In the case where the value of key parameter, the notice of message failed regeneration is sent to the client.
Optionally, the method generated for message, which is characterized in that the message template also contains for optional ginseng Several default value, in the case where it does not include the value for optional parameters that verification to the message, which generates in request, with the report The default value of included optional parameters generates the message to send to third party system in literary template;The report is arrived in verification In the case where including the value for optional parameters in text generation request, with the value of optional parameters included in the message request To generate the message to send to third party system.
Optionally, the method generated for message, which is characterized in that the message is encrypted be sent to the third Method, system.
Optionally, the method generated for message, which is characterized in that change in the third party system to the report In the case where the requirement of text, the message template is updated.
Optionally, the method generated for message, which is characterized in that the third party system is on-line payment system System.
To achieve the above object, other side according to an embodiment of the present invention provides a kind of for generating message Device, which is characterized in that including:Transceiver module generates request for receiving the message from client;Correction verification module is used for Whether verify the message and generate in request includes value for key parameter;Message generation module, for raw in the message In the case where in request including the value for key parameter, according to message template, the report to send to third party system is generated Text.
Optionally, the device generated for message, which is characterized in that the key parameter includes one in following Or it is multiple:Third party system identifier, client identifier, transaction amount, transaction account information.
Optionally, the device generated for message, which is characterized in that in correction verification module verification to the message It generates in the case where not including the value for key parameter in request, the transceiver module sends message to the client and generates The notice of failure.
Optionally, the device generated for message, which is characterized in that the message template also contains for optional ginseng Several default values generates the value not included the case where in request for optional parameters in correction verification module verification to the message Under, the message generation module is generated with the default value of optional parameters included in the message template to be to third party The message that system is sent;The value included the case where in request for optional parameters is generated in correction verification module verification to the message Under, the message generation module is generated with the value of optional parameters included in the message request to send out to third party system The message sent.
Optionally, the device generated for message, which is characterized in that the message is encrypted be sent to the third Method, system.
Optionally, the device generated for message, which is characterized in that described device further includes message template maintenance mould Block, wherein in the case where the third party system changes the requirement to the message, the message template maintenance module updates The message template.
Optionally, the device generated for message, which is characterized in that the third party system is on-line payment system System.
To achieve the above object, other side according to an embodiment of the present invention provides a kind of electronic equipment, feature It is, including:One or more processors;Storage device, for storing one or more programs, when one or more of journeys Sequence is executed by one or more of processors, so that one or more of processors are realized as above-mentioned for generating message Any method in method.
To achieve the above object, other side according to an embodiment of the present invention provides a kind of computer-readable medium, It is stored thereon with computer program, which is characterized in that realized when described program is executed by processor as above-mentioned for generating message Method in any method.
One embodiment in foregoing invention has the following advantages that or beneficial effect:Because message generates using seeking unity of action Technological means, so saving the computing resource that client is expended by way of assembled parameter to generate message.Especially In the case where third party system updates the requirement to message, client without being updated thus, so as to more efficient Ground generates the message for following third system requirements.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram that client sends message based on existing way to third party system;
Fig. 2 is the schematic diagram that message according to an embodiment of the present invention generates system;
Fig. 3 is that client according to an embodiment of the present invention sends the process for meeting the message that it is required to third party system Figure;
Fig. 4 is the flow chart that message generating means according to an embodiment of the present invention generate message;
Fig. 5 is the flow chart of message template renewal according to an embodiment of the invention;
Fig. 6 is the flow chart of message template renewal according to another embodiment of the present invention;
Fig. 7 is according to an embodiment of the present invention for generating the schematic diagram of the main modular of the device of message;
Fig. 8 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 9 is adapted for the structural representation for realizing the client of the embodiment of the present invention or the computer system of server Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Herein, third party system can be payment system --- for example in the scene of e-commerce, terminal user In pay invoice, the different means of payment can be used, thus, e-commerce server needs the payment specified according to user Mode, from different payment system interactions;In this example, electronic third-party system is payment system, and client is and payment The e-commerce server of system interaction.But embodiments of the present invention are not limited thereto, for example, third place system can be to provide The database of query result, the query statement that client can be to provide assembled query statement generate server, i.e. basis The data model of the database, and the key word of the inquiry provided, to assemble query statement.
Fig. 2 is the schematic diagram that message according to an embodiment of the present invention generates system.In Fig. 2, client, message is omitted Generating means and as the network between the payment system of third party system.Specifically, client can be generated with message and be filled It sets in the same local area network, message generating means can be in the same local area network with payment system or three can In same local area network.
Further, message generating means can be an individual system, provide the message of application layer to client terminal device Interface, message parameter can be passed through the message interface defined and be sent to message generating means by client terminal device, then from message It includes replying message for packaged message that generating means, which receive,.Alternatively, in another embodiment, message generating means can be with It is the class for encapsulated message integrated with client, the object of other classes of client can call this to be used to encapsulate The function of the class of message is passed to the message parameter as function parameter, to obtain the message for being sent to payment system.
Client after getting packaged message, can according to its between payment system about cipher mode Negotiation result encrypts the message, and the message encrypted is sent to payment system.However, the present invention is not limited thereto, In another embodiment, it is contemplated that payment system may support unified cipher mode, thus can also be by message generating means Packaged message is encrypted, and encrypted message is sent to client, then client directly by it is receiving, Encrypted message is sent to payment system.
On the other hand, when payment system update its to received message requirement when, such as, change the report received The format (for example, replacing from XML format to JSON format, or replacing from JSON format to XML format) of text, or more relocate the receiving To message in parameter (for example, value range of the new parameter field of addition/deletion perhaps undated parameter field) or The cipher mode to message is changed, message generating means will obtain newest message requirement from payment system, and update its caching Message template.The message template indicates message format and/or cipher mode, and includes message parameter, wherein Message parameter includes the key parameter that client must provide and the optional parameters that client can not provide.In Fig. 3 and Fig. 4 In, it will be described in detail the processing of key parameter and optional parameters that message generating means transmit client.
Fig. 3 is that client according to an embodiment of the present invention sends the process for meeting the message that it is required to third party system Figure.
In step S301, the client of such as e-commerce server, which sends message generation to message generating means, is asked It asks, and is generated in request in the message, with the parameter for generating message.In one embodiment, one of described parameter Which it is used to indicate client to wish to interact with the third party system of such as payment system, that is, the parameter is third party The identifier of system.
In step s 302, message generating means parameter according to received by from client, and the message stored Template generates packaged message.As shown, message generating means can safeguard multiple messages corresponding with third party system Template, and corresponding message template can be found according to message identifier, that is, it finds and is suitable for specified third party system Message template.Then message generating means generate parameter included in request according to identified message template and message, The value that message generates the parameter for including in request is inserted by the key parameter field into message template, it is packaged to generate Message, and send back to client.
In this step, whether it includes key parameter that message generating means also generate checking prediction message in request, i.e., corresponding Message template in the desired parameter that must be specified by client;In the example of payment system, key parameter includes following One or more of:Third party system identifier, client identifier, transaction amount, transaction account information.It is generated in message In the case that device verification includes the value for key parameter into message generation request, according to message template, institute is generated State the message that client waits for sending to third party system.Generating in request in the message does not include value for key parameter In the case of, the notice of message failed regeneration is sent to the client.It on the other hand, can also include optional ginseng in message template Several and its default value (can be null value (null) or other values), that is, third party system to these optional parameters in message not Be strictly required, though these optional parameters there are certain requirements, from the point of view of message generating means, can treat The message of encapsulation uses the unified value for optional parameters.In scene of the payment system as third party system, optional parameters Example include but is not limited to:Currency type, cipher mode etc..Thus, in message generating means verification to the message It generates in the case where not including the value for optional parameters in request, with the default value next life of optional parameters described in message template The message sent to third party system is waited at the client;Generating in verification to the message includes being used for optional ginseng in request In the case where several values, waited for generate the client to third party with the value of optional parameters included in the message request The message that system is sent.Optionally, for the optional parameters contained in message template, message generating means can client not In the case where specifying for the value of the optional parameters and/or for default value of the setting for the optional parameters, in the message of generation In do not include the optional parameters information.
In step S303, client is to the packaged message received, according to the encryption consulted with payment system Mode is encrypted, and encrypted message is sent to payment system.
In another embodiment, can also be supported by message generating means to packaged message according to payment system Cipher mode encrypted, and encrypted message is sent to client in step s 302, then client terminal device is not Received message is handled, message receive, encrypted is directly sent to payment system.In another reality It applies in example, packaged message can be generated by message generating means, and carry out to message according to the security requirements of payment system Encryption, then in step S303, is sent to payment system for encrypted message by message generating means, and will send result And/or the return message of payment system is transmitted to client terminal device.
Fig. 4 is the flow chart that message generating means according to an embodiment of the present invention generate message.It is described in step S401 The message that message generating means receive client generates request.
In step S402, whether the message that the message generating means verification receives is generated in request comprising crucial ginseng Several and respective value.The key parameter is defined as in corresponding message template (or third party system to be interacted) institute It is required that the parameter that must be specified by client, including but not limited to third party system identifier, client identifier, trade gold Volume, transaction account information.
If it does not include key parameter or not specified that message generating means, which judge that message generates in request, in step S402 The respective value of key parameter, then the process advances to step S403, wherein message generating means send message to client and generate The notice of failure.
If it does not include key parameter and respective value that message generating means, which judge that message generates request, in step S402, The process advances to step S404.In step s 404, optionally, message generating means judge that message generates in request, if Include optional parameters and respective value.Optional parameters, (or third party system) does not do it in as corresponding message template The parameter of mandatory requirement --- for example, the parameter can have null value or other values;It or is the ginseng with unified value Though number --- such as third party system there are certain requirements these optional parameters, can from the point of view of message generating means To use message to be packaged the unified value for optional parameters.
If it includes optional parameters and respective value that message generating means, which judge that message generates request, in step s 404, it is somebody's turn to do Process advances to step S406, wherein message generating means are according to specified message template and received crucial ginseng The value of several value, optional parameters generates message.
If it does not include optional parameters and respective value that message generating means, which judge that message generates request, in step s 404, The process advances to step S405, wherein message generating means determine the default value of optional parameters, i.e., by the default of optional parameters Value is applied to message to be generated.Then process advances to step S406, wherein message generating means are according to specified message The default value of template and the value of received key parameter, identified optional parameters generates message.
In step S 407, optionally, the message of generation is sent back client by message generating means.
Fig. 5 is the flow chart of message template renewal according to an embodiment of the invention.In step S501, as third The payment system 1 of method, system sends message template renewal message to message generating means, to indicate to have the message template updated 1'.Payment system can directly indicate the message template 1 ' updated, then, message generating means in message template renewal message The message template 1 stored replaces with message template 1 '.Or payment system can indicate it to received message It is required that --- such as, instruction replacement message format (for example, be transformed to JSON format from XML format, or from JSON format replace to XML format), instruction updates message parameter (for example, the value model of the new parameter field or undated parameter field of addition/deletion Enclose), etc., then it will be reported by the message template that message generating means voluntarily update its caching that is, according to the instruction of payment system Literary template 1 is updated to message template 1 '.
In another embodiment, payment system can be indicated only to have corresponding message template and be updated, then Message generating means can be requested with active transmission, to obtain the message template 1 ' updated or payment system to received The new demand of message.Then message template 1 ' is replaced/be updated to message template 1 as described above by message generating means.
In step S502, optionally, message generating means send the confirmation of message template renewal to payment system.
Fig. 6 is the flow chart of message template renewal according to another embodiment of the present invention.In step s 601, message generates Device actively obtains its requirement to message to the payment system as third party system.In one embodiment, message generates Device can be the requirement for periodically initiating it to message to payment system;In another embodiment, it can be generated in message Device learn client and payment system interact failure after, initiate its requirement to message to payment system.
In step S602, payment system is by its requirement to message, or specific message template 1 ' is sent to message Generating means, then message template 1 ' can be replaced/be updated to message template 1 as described above by message generating means.
Fig. 7 is according to an embodiment of the present invention for generating the schematic diagram of the main modular of the device of message.Such as Fig. 7 institute Show, the device for generating message includes transceiver module, correction verification module, message generation module and message template maintenance module. Specifically, the transceiver module is used to receive the message from client and generates request, and the message received is generated and is requested In included message parameter pass to correction verification module.Whether the correction verification module wraps for verifying in the message generation request The value for key parameter is included, wherein the key parameter includes one or more of following:Third party system identifier, visitor Family end identifier, transaction amount, transaction account information.Generating in request in verification to the message does not include for key parameter Value in the case where, the correction verification module indicates verification failure to the transceiver module, and then the transceiver module is to the visitor The notice of family end transmission message failed regeneration.In the feelings that verification includes the value for key parameter into message generation request Under condition, the correction verification module command message generation module generates message, and then the message generation module is according to from message template Message template accessed by maintenance module generates the message that the client waits for sending to third party system, and will be generated Message be transferred to the transceiver module.Further, the message template can also contain the default value for optional parameters, In the case where it does not include the value for optional parameters that correction verification module verification to the message, which generates in request, the message Generation module generates the report to send to third party system with the default value of optional parameters included in the message template Text;In the case where it includes the value for optional parameters that correction verification module verification to the message, which generates in request, the report Literary generation module generates the message to send to third party system with the value of optional parameters included in the message request.
On the other hand, in the case where third party system changes requirement to message, the transceiver module is from third party System gets its requirement to message, such as, instruction replacement message format (for example, it is transformed to JSON format from XML format, Or replace from JSON format to XML format), instruction updates message parameter (for example, the parameter field that addition/deletion is new, Huo Zhegeng The value range of new parameter field), etc., then the literary template maintenance module updates the message template.
Fig. 8 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein.
As shown in figure 8, system architecture 800 may include client 801,802,803, network 804 and server 805.Net Network 804 between client 801,802,803 and server 805 to provide the medium of communication link.Network 804 may include Various connection types, such as wired, wireless communication link or fiber optic cables etc..
Client 801,802,803 can be used to interact by network 804 with server 805, to receive or send message Deng.Application, such as e-commerce platform application, searching class application, social platform can be installed in client 801,802,803 Software etc. (merely illustrative).In one embodiment, client 801,802,803 can send message parameter to server 805 To obtain the message for being suitable for third party system to be interacted.
Client 801,802,803 can be the various electronic equipments with display screen and supported web page browsing, including But be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 805 can be to provide the server of various services, such as carry out net to using client 801,802,803 Upper shopping provides the back-stage management server (merely illustrative) supported.Server 805 can receive message and generate request, and will give birth to At message feed back to client.
It should be noted that information-pushing method provided by the embodiment of the present invention is generally executed by server 805, accordingly Ground, information push-delivery apparatus are generally positioned in server 805.
It should be understood that the number of terminal device, network and server in Fig. 8 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Fig. 9 is adapted for the structural representation for realizing the client of the embodiment of the present invention or the computer system of server Figure.
Below with reference to Fig. 9, it illustrates the computer systems 900 for the server for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Server shown in Fig. 9 is only an example, should not function and use scope band to the embodiment of the present invention Carry out any restrictions.
As shown in figure 9, computer system 900 includes central processing unit (CPU) 901, it can be read-only according to being stored in Program in memory (ROM) 902 or be loaded into the program in random access storage device (RAM) 903 from storage section 908 and Execute various movements appropriate and processing.In RAM 903, also it is stored with system 900 and operates required various programs and data. CPU 901, ROM 902 and RAM 903 are connected with each other by bus 904.Input/output (I/O) interface 905 is also connected to always Line 904.
I/O interface 905 is connected to lower component:Importation 906 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 907 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 908 including hard disk etc.; And the communications portion 909 of the network interface card including LAN card, modem etc..Communications portion 909 via such as because The network of spy's net executes communication process.Driver 910 is also connected to I/O interface 905 as needed.Detachable media 911, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 910, in order to read from thereon Computer program be mounted into storage section 908 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 909, and/or from can Medium 911 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 901, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more conducting wires, just Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as:A kind of processor packet It includes sending module, obtain module, determining module and first processing module.Wherein, the title of these modules is under certain conditions simultaneously The restriction to the module itself is not constituted, for example, sending module is also described as " sending picture to the server-side connected The module of acquisition request ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes:It receives the message from client and generates request;Whether verify the message and generate in request includes being used for The value of key parameter;In the case where it includes the value for key parameter that verification to the message, which generates in request, according to message Template generates the message to send to third party system.
Technical solution according to an embodiment of the present invention, has the following advantages that or beneficial effect:Because using report of seeking unity of action The technological means that text generates, so saving the calculating money that client is expended by way of assembled parameter to generate message Source.Especially in the case where third party system updates the requirement to message, client is not necessarily to be updated thus, so as to More efficiently generate the message for following third system requirements.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (16)

1. a kind of method for generating message, which is characterized in that including:
It receives the message from client and generates request;
Whether verify the message and generate in request includes value for key parameter;
In the case where it includes the value for key parameter that verification to the message, which generates in request, according to message template, generate Message to be sent to third party system.
2. according to the method described in claim 1, wherein, the key parameter includes one or more of following:Third party System identifier, client identifier, transaction amount, transaction account information.
3. according to the method described in claim 1, wherein, generating in the message does not include value for key parameter in request In the case where, the notice of message failed regeneration is sent to the client.
4. according to the method described in claim 1, wherein, the message template also contains the default value for optional parameters,
In the case where it does not include the value for optional parameters that verification to the message, which generates in request, in the message template The default value of included optional parameters generates the message to send to third party system;
In the case where it includes the value for optional parameters that verification to the message, which generates in request, with institute in the message request Including the value of optional parameters generate the message to send to third party system.
5. according to the method described in claim 1, wherein, the message is encrypted be sent to the third party system.
6. -5 any method according to claim 1, wherein change the requirement to the message in the third party system In the case where, update the message template.
7. -5 any method according to claim 1, the third party system is on-line payment system.
8. a kind of for generating the device of message, which is characterized in that including:
Transceiver module generates request for receiving the message from client;
Whether correction verification module includes value for key parameter for verifying the message and generating in request;
Message generation module, in the case where for including the value for key parameter in message generation request, according to report Literary template generates the message to send to third party system.
9. device according to claim 8, wherein the key parameter includes one or more of following:Third party System identifier, client identifier, transaction amount, transaction account information.
10. device according to claim 8, wherein generated in request not in correction verification module verification to the message In the case where including the value for key parameter, the transceiver module sends the notice of message failed regeneration to the client.
11. device according to claim 8, wherein the message template also contains the default value for optional parameters,
It is described in the case where it does not include the value for optional parameters that correction verification module verification to the message, which generates in request, Message generation module is generated with the default value of optional parameters included in the message template to send to third party system Message;
In the case where it includes the value for optional parameters that correction verification module verification to the message, which generates in request, the report Literary generation module generates the message to send to third party system with the value of optional parameters included in the message request.
12. device according to claim 8, wherein the message is encrypted be sent to the third party system.
13. described device further includes message template maintenance module according to claim 8-12 any device, wherein In the case where requirement of the third party system change to the message, the message template maintenance module updates the message mould Plate.
14. the third party system is on-line payment system according to claim 8-12 any device.
15. a kind of electronic equipment, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-7.
16. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 1-7 is realized when row.
CN201810763955.0A 2018-07-12 2018-07-12 A kind of method and apparatus for generating message Pending CN108876379A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810763955.0A CN108876379A (en) 2018-07-12 2018-07-12 A kind of method and apparatus for generating message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810763955.0A CN108876379A (en) 2018-07-12 2018-07-12 A kind of method and apparatus for generating message

Publications (1)

Publication Number Publication Date
CN108876379A true CN108876379A (en) 2018-11-23

Family

ID=64301468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810763955.0A Pending CN108876379A (en) 2018-07-12 2018-07-12 A kind of method and apparatus for generating message

Country Status (1)

Country Link
CN (1) CN108876379A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110072201A (en) * 2019-04-15 2019-07-30 平安科技(深圳)有限公司 Note transmission method, device, computer equipment and storage medium
CN112055016A (en) * 2020-09-02 2020-12-08 中国建设银行股份有限公司 Message generation method and device, electronic equipment and storage medium
CN112860770A (en) * 2019-11-27 2021-05-28 北京沃东天骏信息技术有限公司 Report generation method and device, electronic equipment and storage medium
CN113760749A (en) * 2021-08-06 2021-12-07 招银云创信息技术有限公司 Test message generation method and device, computer equipment and storage medium
CN114500640A (en) * 2022-01-24 2022-05-13 中国工商银行股份有限公司 Message generation method, message transmission device, electronic equipment and medium
CN115242631A (en) * 2022-08-01 2022-10-25 中电金信软件有限公司 Message processing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050193A (en) * 2013-03-15 2014-09-17 中国银联股份有限公司 Message generating method and data processing system for realizing method
US20150186887A1 (en) * 2013-12-30 2015-07-02 Apple Inc. Person-to-person payments using electronic devices
CN105427101A (en) * 2015-11-19 2016-03-23 成都连银信息技术有限公司 Unified payment access gateway supporting multiple payment channels
CN107423957A (en) * 2016-12-30 2017-12-01 语联网(武汉)信息技术有限公司 A kind of service operation system of flexibly payment and settlement
CN108183958A (en) * 2017-12-29 2018-06-19 银联商务股份有限公司 Message transmitting method, device and payment system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104050193A (en) * 2013-03-15 2014-09-17 中国银联股份有限公司 Message generating method and data processing system for realizing method
US20150186887A1 (en) * 2013-12-30 2015-07-02 Apple Inc. Person-to-person payments using electronic devices
CN105427101A (en) * 2015-11-19 2016-03-23 成都连银信息技术有限公司 Unified payment access gateway supporting multiple payment channels
CN107423957A (en) * 2016-12-30 2017-12-01 语联网(武汉)信息技术有限公司 A kind of service operation system of flexibly payment and settlement
CN108183958A (en) * 2017-12-29 2018-06-19 银联商务股份有限公司 Message transmitting method, device and payment system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110072201A (en) * 2019-04-15 2019-07-30 平安科技(深圳)有限公司 Note transmission method, device, computer equipment and storage medium
CN110072201B (en) * 2019-04-15 2022-02-15 平安科技(深圳)有限公司 Short message sending method and device, computer equipment and storage medium
CN112860770A (en) * 2019-11-27 2021-05-28 北京沃东天骏信息技术有限公司 Report generation method and device, electronic equipment and storage medium
CN112860770B (en) * 2019-11-27 2024-03-01 北京沃东天骏信息技术有限公司 Report generation method, report generation device, electronic equipment and storage medium
CN112055016A (en) * 2020-09-02 2020-12-08 中国建设银行股份有限公司 Message generation method and device, electronic equipment and storage medium
CN112055016B (en) * 2020-09-02 2023-02-28 中国建设银行股份有限公司 Message generation method and device, electronic equipment and storage medium
CN113760749A (en) * 2021-08-06 2021-12-07 招银云创信息技术有限公司 Test message generation method and device, computer equipment and storage medium
CN114500640A (en) * 2022-01-24 2022-05-13 中国工商银行股份有限公司 Message generation method, message transmission device, electronic equipment and medium
CN115242631A (en) * 2022-08-01 2022-10-25 中电金信软件有限公司 Message processing method and device, electronic equipment and storage medium
CN115242631B (en) * 2022-08-01 2023-10-13 中电金信软件有限公司 Message processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN108876379A (en) A kind of method and apparatus for generating message
CN109447811B (en) Method, accounting node and medium for inquiring transaction information in blockchain network
CN110471951B (en) Method, accounting node and medium for determining order of transaction information in data block
CN109922158A (en) Data processing method, device, medium and electronic equipment based on micro services
CN109274731A (en) Deployment, call method and the device of web services based on multi-tenant technology
CN109947994A (en) Processing method, device, medium and the electronic equipment of payment process
CN111580820A (en) Applet generation method and device
CN108920222A (en) A kind of method and device for business processing of rule-based engine
CN109218368A (en) Realize method, apparatus, electronic equipment and the readable medium of Http reverse proxy
US20240012641A1 (en) Model construction method and apparatus, and medium and electronic device
CN110019125A (en) The method and apparatus of data base administration
CN105814579A (en) Sandboxed application data redirection to datacenters
CN110109979A (en) A kind of allocation list radio button method and apparatus
CN110022354A (en) Mobile application integrated approach, device, computer equipment and storage medium based on http protocol
CN109981322A (en) The method and apparatus of cloud resource management based on label
CN110795147A (en) Interface protocol file management method and device
CN109981719A (en) Information processing method and its system, computer system and computer readable medium
CN107835181A (en) Right management method, device, medium and the electronic equipment of server cluster
KR101086620B1 (en) Smart office system and server for managing the sames and method for managing the sames
CN115392718A (en) Processing method, device, equipment and medium of process model
CN112489760B (en) Prescription processing method and system based on distributed identity authentication
CN110223179A (en) The data processing method of fund, device, system, medium
CN109525550A (en) A kind of processing method of data message, device and system
CN115469841A (en) Request processing method and device applied to iOS terminal
CN115660872A (en) Insurance information processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant after: Jingdong Digital Technology Holding Co., Ltd.

Address before: 101111 Room 221, 2nd Floor, Block C, 18 Kechuang 11th Street, Beijing Economic and Technological Development Zone

Applicant before: Beijing Jingdong Financial Technology Holding Co., Ltd.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123

RJ01 Rejection of invention patent application after publication