CN114422586A - Event notification method and device, computer equipment and storage medium - Google Patents

Event notification method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN114422586A
CN114422586A CN202210057713.6A CN202210057713A CN114422586A CN 114422586 A CN114422586 A CN 114422586A CN 202210057713 A CN202210057713 A CN 202210057713A CN 114422586 A CN114422586 A CN 114422586A
Authority
CN
China
Prior art keywords
target
event
notification
source
target user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210057713.6A
Other languages
Chinese (zh)
Other versions
CN114422586B (en
Inventor
张蕾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Pingan Payment Technology Service Co Ltd
Original Assignee
Pingan Payment Technology Service 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 Pingan Payment Technology Service Co Ltd filed Critical Pingan Payment Technology Service Co Ltd
Priority to CN202210057713.6A priority Critical patent/CN114422586B/en
Publication of CN114422586A publication Critical patent/CN114422586A/en
Application granted granted Critical
Publication of CN114422586B publication Critical patent/CN114422586B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/386Payment protocols; Details thereof using messaging services or messaging apps

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to the technical field of data transmission, and provides an event notification method, an event notification device, computer equipment and a storage medium, wherein the method comprises the following steps: if an event to be notified of a target user is detected, acquiring source information and service parameters of the event to be notified; determining target notification processing logic of the target user corresponding to the source information; processing the service parameters based on the target notification processing logic to obtain an event transmission message of the event to be notified; and sending the event transmission message to the target user. By the method and the device, the event notification efficiency can be improved.

Description

Event notification method and device, computer equipment and storage medium
Technical Field
The application relates to the technical field of data transmission, and mainly relates to an event notification method, an event notification device, computer equipment and a storage medium.
Background
With the development of the internet, a business model, which takes an enterprise as a service subject, provides a platform, a product or a service for the enterprise (or a merchant) and earns profits, may be referred to as an enterprise model. However, in the platform corresponding to the enterprise model, different merchant interfaces have different specifications, and the notification interface of the merchant can only be customized, which increases the docking difficulty.
Disclosure of Invention
The embodiment of the application provides an event notification method, an event notification device, computer equipment and a storage medium, and the event notification efficiency can be improved.
In a first aspect, an embodiment of the present application provides an event notification method, where:
if an event to be notified of a target user is detected, acquiring source information and service parameters of the event to be notified;
determining a target notification processing logic of the target user corresponding to the source information, wherein the target notification processing logic is used for defining a processing method of a service parameter of an event to be notified of the target user;
processing the service parameters based on the target notification processing logic to obtain an event transmission message of the event to be notified;
and sending the event transmission message to the target user.
In a second aspect, an embodiment of the present application provides an event notification apparatus, where:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring source information and service parameters of an event to be notified of a target user if the event to be notified of the target user is detected;
a determining unit, configured to determine a target notification processing logic of the target user corresponding to the source information, where the target notification processing logic is configured to define a processing method of a service parameter of an event to be notified of the target user;
a generating unit, configured to process the service parameter based on the target notification processing logic to obtain an event transmission packet of the event to be notified;
and the sending unit is used for sending the event transmission message to the target user.
In a third aspect, an embodiment of the present application provides a computer device, including a processor, a memory, a communication interface, and a computer program, where the memory stores the computer program, the computer program is configured to be executed by the processor, and the computer program includes instructions for some or all of the steps described in the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, where the computer program makes a computer execute to implement part or all of the steps described in the first aspect.
The embodiment of the application has the following beneficial effects:
after the event notification method, the event notification device, the computer equipment and the storage medium are adopted, if the event to be notified of the target user is detected, the source information and the service parameters of the event to be notified are acquired. And then determining a target notification processing logic of a target user corresponding to the source information of the event to be notified, so as to process the service parameters of the event to be notified based on the target notification processing logic, and obtain an event transmission message of the event to be notified. And then sending an event transmission message to the target user. Therefore, the docking difficulty of the customized notification interface is reduced, and the efficiency of event notification is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic flowchart of an event notification method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an event notification apparatus according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments obtained by a person of ordinary skill in the art without any inventive work according to the embodiments of the present application are within the scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The network architecture applied by the embodiment of the application comprises a server and electronic equipment. The number of the electronic devices and the number of the servers are not limited in the embodiment of the application, and the servers can provide services for the electronic devices at the same time. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a network service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), a big data and artificial intelligence platform, and the like. The server may alternatively be implemented as a server cluster consisting of a plurality of servers.
The electronic device may be a Personal Computer (PC), a notebook computer, or a smart phone, and may also be an all-in-one machine, a palm computer, a tablet computer (pad), a smart television playing terminal, a vehicle-mounted terminal, or a portable device. The operating system of the PC-side electronic device, such as a kiosk or the like, may include, but is not limited to, operating systems such as Linux system, Unix system, Windows series system (e.g., Windows xp, Windows 7, etc.), Mac OS X system (operating system of apple computer), and the like. The operating system of the electronic device at the mobile end, such as a smart phone, may include, but is not limited to, an operating system such as an android system, an IOS (operating system of an apple mobile phone), a Window system, and the like.
The electronic device may install and run the application program, and the server may be a server corresponding to the application program installed in the electronic device, and provide an application service for the application program. The application program may be a single integrated application software, or an applet embedded in another application, or a system on a web page, etc., which is not limited herein.
In an embodiment of the present application, the application may be an application including a transaction service. The electronic device may be an electronic device used by a worker of the platform corresponding to the enterprise mode, or an electronic device used by a merchant resident in the platform, or an electronic device used by a user who registers the application program. The server may be used to provide transaction services for merchants in a platform corresponding to the enterprise model. For example, the server provides a product link for the merchant to enable the user to submit transaction services for the merchant based on the product link. After the transaction service is completed, relevant service parameters are sent to the merchant.
Exemplarily, assuming that the transaction object is a movie ticket, after the user completes a ticket booking service of the movie ticket on the platform corresponding to the enterprise mode, service parameters such as prompt information of successful transaction, a ticket code of the movie ticket, transaction time, a payment mode, a movie watching position, and the like may be sent to a merchant corresponding to the movie ticket.
The embodiment of the application provides an event notification method, which can be executed by an event notification device. The device can be realized by software and/or hardware, can be integrated in electronic equipment or a server generally, and can improve the efficiency of event notification.
Referring to fig. 1, fig. 1 is a schematic flowchart illustrating an event notification method according to the present application. Taking the application of the method to a server as an example for illustration, the method includes the following steps S101 to S104, wherein:
s101, if the event to be notified of the target user is detected, acquiring source information and service parameters of the event to be notified.
The target user and the event to be notified are not limited in the present application, and the target user may be a customer or a business registered in the application program in the server, or a customer or a business registered in a platform or a sub-platform corresponding to the application program. The event to be notified of the target user is an event that needs to send a notification message to the target user.
The method for detecting the event to be notified of the target user is not limited, and whether the user completes the transaction service (including transaction success or transaction failure) of the target user on the platform corresponding to the enterprise mode can be detected. If yes, determining that the event to be notified of the target user is detected, notifying the target user that the transaction service is completed, or notifying a merchant corresponding to the target user to prepare related information based on the transaction service, and the like. Or whether the target user submits the service request in the platform can be detected, if so, the event to be notified of the target user is determined to be detected, and the target user can be notified whether the service request passes or not, or the related information of the passing of the service request, and the like.
In the embodiment of the present application, the source information is used to indicate the source of the event to be notified. The source information may include at least one source field, and the like. The source field is used to indicate a detection path of the event to be notified, and may be a corresponding identifier of a link, a platform, a system, and the like involved in the transaction, and may further include identification information of the target user and identification information of a user (which may be a merchant or a customer) triggering the event to be notified.
The identification information of the target user may be an account identification allocated to the target user when the target user registers on the platform, or the like. In the case that the target user is a merchant, the identification information of the target user may include a business identification of the target user, for example, a registration number, a business name or a common abbreviation registered by the target user at a business bureau. In the case where the target user is a client, the identification information of the target user may include a mobile phone number, identity information, a mailbox number, and the like, which are filled in by the target user in the platform.
It should be noted that the relationship between a target user and a source field may be one-to-one or one-to-many. That is, in the case where the target user is a merchant, one target user may perform a transaction with a customer through 1 or more transaction service objects. In the case where the target user is a customer, one target user may carry out a transaction with the merchant through 1 or more transaction service objects.
In the embodiment of the present application, the service parameters may include information and service types that need to be transmitted to the merchant. Illustratively, the transaction object is a movie ticket, and the service parameter may include ticket code information of the movie ticket, such as a movie theater address, a ticket price, a viewing location, a number of people, and the like. The business parameters may also include transaction information, such as time of transaction, success or failure of transaction, payment method, etc.
S102, determining target notification processing logic of a target user corresponding to the source information.
In this embodiment of the present application, the notification processing logic of the target user refers to a method for processing the service parameters of the event to be notified of the target user. It can be understood that if the to-be-notified event of the target user originates from different sources, the source information of the to-be-notified event is different, and there may be a difference in the service parameters of the to-be-notified event. Therefore, different processing methods of the event to be notified can be defined for different source information. The target notification processing logic of the target user may be understood as the notification processing logic of the target user corresponding to the source information of the event to be notified, and the target notification processing logic of the target user is used to define a processing method of the service parameter of the event to be notified of the target user. After the target notification processing logic is determined, the service parameters of the event to be notified which is notified at this time can be processed based on the target notification processing logic, so as to obtain an event transmission message of the event to be notified, and notify the event transmission message of the event to be notified to the target user. The target notification processing logic may include an encryption mode of service parameters, an interface request mode, a message body parsing mode, and the like.
The target notification processing logic of the target user may also be operable to generate a notification interface of the target user. The notification interface may be a fixed interface for notifying the target user, or may be a temporary interface for notifying the target user. If the notification interface is a fixed interface, information transmission can be realized through the fixed interface, and the time efficiency of generating the notification interface can be reduced. If the notification interface is a temporary interface, the flexible configuration of the interface can be improved. After generating the notification interface of the target user, an event transmission message of the event to be notified may be transmitted based on the notification interface.
In one possible example, the notification utilization rate of the target user and the number of source fields of the target user are obtained; determining the notification level of the target user based on the notification utilization rate of the target user and the number of the source fields; if the notification grade is greater than or equal to the preset grade, generating a fixed interface of the target user; or if the notification level is less than the preset level, generating a temporary interface of the target user.
The notification utilization rate refers to the interaction frequency between the platform and the target user, and the number of the source fields refers to the number of the sub-platforms having service interaction with the target user. It can be understood that the notification level of the target user is determined based on the notification utilization rate of the target user and the number of the source fields, and then whether the target user adopts a fixed interface or a temporary interface is determined based on the notification level, so that the flexibility of setting the interface can be improved, and the stability of the server can be improved conveniently.
The content of the encryption method is not limited in the present application, and may include a Secure Hash Algorithm (SHA), for example: SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512, and the like. The encryption scheme may alternatively include one or more of a Message Digest Algorithm (MD 5), a Hash-based Message Authentication Code (HMAC) based Algorithm, an American Standard Code for Information Interchange (ASCII) based Algorithm, ISO-8859-1, GB2312, GBK, UTF (Unicode Transformation Format) -8, UTF-16, base64, and the like. It can be understood that the information security corresponding to the transaction service of different merchants is different, so that different encryption modes can be set to encrypt the content to be transmitted, and the information security can be improved.
The interface request mode may include the following: get, Post, Put, Head, Delete, Trace, options, Connect, etc. Wherein, Get is used to send a request to a specific resource to request the specified page information and return the entity body. Post is used to submit data to a specified resource for processing requests (e.g., submitting forms, uploading files), which in turn may result in the creation of a new resource or the modification of an original resource. Put is used to upload its latest content to a specified resource location so that data transmitted from the client to the server replaces the content of the specified document. The Head is used to obtain a response consistent with the get request from the server, and obtain the original information contained in the small message header. Head is similar to the get request, and the returned response has no specific content for obtaining the header. Delete is used to request the server to Delete the resource indicated by the request-URL, e.g., request the server to Delete a page. Trace is used to test and diagnose requests from the server. options are used to return the HTML request methods supported by the server for a particular resource or the test server functionality of the web server to allow the client to view the server performance. Connect can change the connection to a proxy server in a pipe-like manner in the HTTP/1.1 protocol.
The message body analysis mode can be used for analyzing data in the message body and can include the writing rule of the message header. The header is some necessary control information and description information for the body of the message. In the embodiment of the present application, the data in the message body includes the service parameters.
The method for determining the target notification processing logic is not limited in the present application, and in a possible example, the step S102 may include the following steps a1 and a2, wherein:
and A1, acquiring a source field corresponding to the source information.
A2, determining the target notice processing logic of the target user corresponding to the source information based on the source field.
The source field can refer to the foregoing, and is not described herein again. In this embodiment of the present application, notification processing logic corresponding to each source field may be stored in advance, so that after determining a source field corresponding to source information of an event to be notified of a target user, the notification processing logic corresponding to the source field may be used as target notification processing logic of the target user corresponding to the source information. In this manner, the efficiency of the determination target notification processing logic can be improved.
In one possible example, step A2 may include the following steps A21-A25, wherein:
and A21, searching the processing class name corresponding to the source field from the notification source list.
In the embodiment of the application, notification processing logics of different source events of various merchants can be predetermined, and classification is performed based on the notification processing logics to obtain processing class names. And then storing the processing class name corresponding to the source field based on the source field of the merchant to obtain a notification source list. The notification source list may also store notification processing logic corresponding to each processing class name. In this way, after determining the source field of the source information of the event to be notified, whether the source field of the source information of the event to be notified is stored can be searched from the notification source list, and if so, the processing class name corresponding to the source field is obtained. Otherwise, the source field may be split or spliced to obtain the processing class names of other merchants similar to the notification specification of the target user, and then the target notification processing logic of the target user corresponding to the source information is determined based on the notification processing logic corresponding to the processing class names of other merchants. For example, similar points and difference points between the notification specifications of other merchants and the target user are determined, so that the notification processing logic corresponding to the processing class names of other merchants is adjusted based on the similar points and the difference points, and the target notification processing logic of the target user is obtained.
And A22, determining the number of the processing class names corresponding to the source field.
If the number of the processing class names corresponding to the source field is 0, it indicates that the processing class names corresponding to the source field are not stored in the notification source list, and the processing class names corresponding to the source field need to be set or the target notification processing logic of the target user needs to be directly determined. Based on this, step a23 is executed, the target notification processing logic of the target user is determined based on the preset notification rules.
In the embodiment of the present application, the preset notification rule is a generation rule of notification processing logic prescribed by the server in advance. The preset notification rule can be displayed by adopting a configuration page corresponding to the preset code, so that a worker of the platform can select or input related information based on the configuration page, and after the configuration is completed, notification processing logic can be generated based on the preset code and the information selected or input by the worker in the configuration page.
The preset notification rules may relate to the same business transactions among merchants, as well as different business transactions among merchants. The method for generating the preset notification rule is not limited, and the business items of each merchant and the business parameters corresponding to the business items can be obtained; counting the service parameters corresponding to each service item to obtain the service parameter range of each service item; and generating a preset notification rule based on the service parameter range of each service item. Therefore, the preset notification rule is generated by integrating the service parameter range of each merchant, and the accuracy and the completeness of the setting of the preset notification rule are improved.
The arrangement sequence of the business items in the configuration page corresponding to the preset notification rule can be determined based on the utilization rate of the business items and the association value between the business items and other business items, so that the efficiency of searching the business items can be improved.
In a first aspect, step a23 may include the steps of: acquiring reference business items corresponding to the business parameters based on a preset notification rule; target notification processing logic for a target user corresponding to the source information is determined based on the reference business transaction.
The reference business item refers to a business item corresponding to the business parameter in the business items corresponding to the preset notification rule. It is to be understood that after the reference service item corresponding to the service parameter is obtained, the target notification processing logic of the target user corresponding to the source information may be generated based on the code corresponding to the reference service item. In this way, the accuracy of determining the target notification processing logic can be improved.
In a second aspect, step a23 may include the steps of: if the number of the source fields is larger than 1, splicing the source fields based on a preset notification rule to obtain a target source field; searching a processing class name corresponding to the target source field from the notification source list; and determining the target notification processing logic of the target user corresponding to the source information based on the processing class name corresponding to the target source field.
The target source field is a field obtained by splicing the source fields. The method for splicing the source fields is not limited, and the source fields can be split to obtain the source subfields; searching whether a source subfield exists based on a preset notification rule; if so, determining the ordering of the source subfields; and splicing the source subfields based on the sequencing of the source subfields to obtain target source fields and the like. Therefore, the source subfields can be spliced based on the preset sequencing of the source subfields, and the accuracy of determining the target source fields is improved.
It should be noted that the above first and second aspects are examples of the determination target notification processing logic. In an actual scenario, there may be other ways to determine the target notification processing logic.
If the number of the processing class names corresponding to the source field is 1, it indicates that the processing class names corresponding to the source field are stored in the notification source list, and only one processing class name is associated with the target user, and step a24 may be executed to use the notification processing logic corresponding to the processing class name corresponding to the source field as the target notification processing logic of the target user corresponding to the source information. Therefore, the efficiency and the success rate of searching the target notification processing logic can be improved.
If the number of the processing class names corresponding to the source field is greater than 1, indicating that the processing class name corresponding to each source field in the at least two source fields is stored in the notification source list, and executing step A25 to select a target processing class name from the processing class names corresponding to the source fields; and taking the notification processing logic corresponding to the target processing class name as the target notification processing logic of the target user corresponding to the source information. Therefore, the searching efficiency can be improved, and the selected target processing class name is favorable for further improving the success rate of searching the target notification processing logic.
In the embodiment of the present application, the target processing class name is a processing class name selected from processing class names corresponding to the source field. The method for selecting the target processing class name is not limited, and the determination may be performed based on a matching value between a service type corresponding to the processing class name and a service type of the service parameter, or may be performed based on a matching value between an event type of the event to be notified and an event type corresponding to the processing class name.
In one possible example, step a25 may include the following steps a 251-a 254, wherein:
a251, obtaining a first matching value between the service type of the service parameter and the service type corresponding to the processing class name corresponding to the source field.
In the embodiment of the present application, the service type of the service parameter refers to a data type of the service parameter during service processing. The service type corresponding to the processing class name refers to the service type which can be processed by the notification processing logic corresponding to the processing class name corresponding to the source field. The first matching value is a matching value between the service type of the service parameter and the service type corresponding to the processing class name corresponding to the source field, and is used for describing the similarity between the service type of the service parameter and the service type corresponding to the processing class name corresponding to the source field. It can be understood that the larger the first matching value is, the greater the success rate that the notification processing logic corresponding to the processing class name corresponding to the source field can process the service parameter of the event to be notified of the target user is, that is, the greater the success rate of implementing the notification is.
And A252, acquiring a second matching value between the event type of the event to be notified and the event type corresponding to the processing class name corresponding to the source field.
In this embodiment of the present application, the event type corresponding to the processing class name corresponding to the source field refers to an event type that can be processed by the notification processing logic corresponding to the processing class name corresponding to the source field. The second matching value is a matching value between the event type of the event to be notified and the event type corresponding to the processing class name corresponding to the source field, and is used for describing the similarity between the event type of the event to be notified and the event type corresponding to the processing class name corresponding to the source field. It can be understood that the larger the second matching value is, the greater the success rate that the notification processing logic corresponding to the processing class name corresponding to the source field can process the service parameter of the event to be notified of the target user is, that is, the greater the success rate of implementing the notification is.
It should be noted that step a251 may be executed before step a252, and step a251 may be executed after step a252, and step a251 may be executed simultaneously with step a 252.
And A253, calculating the matching evaluation value of the processing class name corresponding to the source field based on the first matching value and the second matching value.
In the embodiment of the present application, the matching evaluation value of the processing class name corresponding to the source field is the possibility that the processing class name corresponding to the source field is the processing class name of the current event to be notified. The matching evaluation value may be a weighted average of the first matching value and the second matching value, or a maximum value or a minimum value between the first matching value and the second matching value, and the like, which is not limited herein.
And A254, selecting the target processing class name corresponding to the maximum value of the matching evaluation value from the processing class names corresponding to the source fields.
It can be understood that, in steps a251 to a254, a first matching value between the service type of the service parameter and the service type corresponding to the processing class name corresponding to the source field is obtained, and a second matching value between the event type of the event to be notified and the event type corresponding to the processing class name corresponding to the source field is obtained. And calculating the matching evaluation value of the processing class name corresponding to the source field based on the first matching value and the second matching value. And then, the processing class name corresponding to the maximum value of the matching evaluation value is used as the target processing class name, so that the target processing class name is selected from the processing class names corresponding to the source field, and the selected target processing class name is most matched with the processing class name of the current event to be notified, so that the selection accuracy can be improved, and the notification success rate can be improved.
S103, processing the service parameters based on the target notification processing logic to obtain an event transmission message of the event to be notified.
In the embodiment of the present application, the event transmission packet of the event to be notified is used to transmit the service parameter of the event to be notified. The method for generating the event transmission message is not limited, and the interface input parameters determined by the target notification processing logic can be input into the message generation function, so that the obtained output data is used as the event transmission message.
The interface input parameters may include service parameters, a message to be signed, and a field to be encrypted. The message generating function can encrypt the service code of the target user based on an encryption mode and a corresponding secret key to obtain encrypted information, and then, based on a message header and message body analysis template, the message assembly is carried out on the encrypted information to obtain an event transmission message.
The service code of the target user may be a character string composed of fixed numbers and/or characters determined based on the identification information of the target user or a source field, or may be a dynamically generated character string, and the like, which is not limited herein.
In a possible example, the target notification processing logic includes an encryption manner, an interface request manner, and a packet body parsing manner of service parameters, the number of the service parameters is greater than 1, and step S103 may include the following steps B1 and B2, where:
and B1, acquiring the encryption information of the service parameters based on the encryption mode of the service parameters.
B2, based on the interface request mode and the message body analysis mode, ordering the encrypted information of the service parameters to obtain the event transmission message of the event to be notified.
The encryption mode, the interface request mode, and the message body parsing mode can all refer to the foregoing, and are not described herein again. It can be understood that, in the step B1 and the step B2, the encrypted information of each service parameter is sequenced based on the interface request mode and the message body parsing mode, so that the security and standardization of the event transmission message can be improved, and the accuracy of parsing can be improved.
And S104, sending the event transmission message to the target user.
In the method shown in fig. 1, if an event to be notified of a target user is detected, source information and service parameters of the event to be notified are obtained. And then determining a target notification processing logic of a target user corresponding to the source information of the event to be notified, so as to process the service parameters of the event to be notified based on the target notification processing logic, and obtain an event transmission message of the event to be notified. And then sending an event transmission message to the target user. Therefore, the docking difficulty of the customized notification interface is reduced, and the efficiency of event notification is improved.
The method of the embodiments of the present application is set forth above in detail and the apparatus of the embodiments of the present application is provided below.
Referring to fig. 2, fig. 2 is a schematic structural diagram of an event notification apparatus according to the present disclosure, which is similar to the embodiment shown in fig. 1. As shown in fig. 2, the event notification apparatus 200 includes:
the obtaining unit 201 is configured to, if an event to be notified of a target user is detected, obtain source information and a service parameter of the event to be notified;
the determining unit 202 is configured to determine a target notification processing logic of the target user corresponding to the source information, where the target notification processing logic is configured to define a processing method of a service parameter of an event to be notified of the target user;
the generating unit 203 is configured to process the service parameter based on the target notification processing logic to obtain an event transmission packet of the event to be notified;
the sending unit 204 is configured to send the event transmission packet to the target user.
In a possible example, the determining unit 202 is specifically configured to obtain a source field corresponding to the source information; determining target notification processing logic of the target user corresponding to the source information based on the source field.
In a possible example, the determining unit 202 is specifically configured to search, from a notification source list, a processing class name corresponding to the source field; and if the number of the processing class names corresponding to the source field is 0, determining target notification processing logic of the target user corresponding to the source information based on a preset notification rule.
Or in a possible example, the determining unit 202 is specifically configured to, if the number of the processing class names corresponding to the source field is 1, use the notification processing logic corresponding to the processing class name corresponding to the source field as the target notification processing logic of the target user corresponding to the source information.
Or in a possible example, the determining unit 202 is specifically configured to select a target processing class name from the processing class names corresponding to the source field if the number of the processing class names corresponding to the source field is greater than 1, and use a notification processing logic corresponding to the target processing class name as the target notification processing logic of the target user corresponding to the source information.
In a possible example, the determining unit 202 is specifically configured to obtain a reference service item corresponding to the service parameter based on a preset notification rule; determining target notification processing logic of the target user corresponding to the source information based on the reference business transaction.
In a possible example, the determining unit 202 is specifically configured to, if the number of the source fields is greater than 1, splice the source fields based on a preset notification rule to obtain a target source field; searching a processing class name corresponding to the target source field from the notification source list; and determining the target notification processing logic of the target user corresponding to the source information based on the processing class name corresponding to the target source field.
In a possible example, the determining unit 202 is specifically configured to obtain a first matching value between a service type of the service parameter and a service type corresponding to a processing class name corresponding to the source field; acquiring a second matching value between the event type of the event to be notified and the event type corresponding to the processing class name corresponding to the source field; calculating a matching evaluation value of the processing class name corresponding to the source field based on the first matching value and the second matching value; and selecting a target processing class name corresponding to the maximum value of the matching evaluation value from the processing class names.
In a possible example, the target notification processing logic includes an encryption mode, an interface request mode, and a packet body parsing mode of the service parameter, where the number of the service parameters is greater than 1, and the generating unit 203 is specifically configured to obtain encryption information of the service parameter based on the encryption mode of the service parameter; and sequencing the encrypted information of the service parameters based on the interface request mode and the message body analysis mode to obtain an event transmission message of the event to be notified.
For detailed processes executed by each unit in the event notification apparatus 200, reference may be made to the execution steps in the foregoing method embodiments, which are not described herein again.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure. As shown in fig. 3, the computer device 300 includes a processor 310, a memory 320, and a communication interface 330. The processor 310, the memory 320, and the communication interface 330 are interconnected via a bus 350. The related functions implemented by the sending unit 204 shown in fig. 2 may be implemented by the communication interface 330, and the related functions implemented by the obtaining unit 201, the determining unit 202, and the generating unit 203 shown in fig. 2 may be implemented by the processor 310.
The memory 320 has stored therein a computer program 340, the computer program 340 being configured to be executed by the processor 310, the computer program 340 comprising instructions for:
if an event to be notified of a target user is detected, acquiring source information and service parameters of the event to be notified;
determining a target notification processing logic of the target user corresponding to the source information, wherein the target notification processing logic is used for defining a processing method of a service parameter of an event to be notified of the target user;
processing the service parameters based on the target notification processing logic to obtain an event transmission message of the event to be notified;
and sending the event transmission message to the target user.
In one possible example, in terms of the target notification processing logic for determining the target user corresponding to the source information, the computer program 340 specifically includes instructions for:
acquiring a source field corresponding to the source information;
determining target notification processing logic of the target user corresponding to the source information based on the source field.
In one possible example, in terms of the target notification processing logic to determine the target user corresponding to the source information based on the source field, the computer program 340 specifically includes instructions to:
searching a processing class name corresponding to the source field from a notification source list;
if the number of the processing class names corresponding to the source field is 0, determining target notification processing logic of the target user corresponding to the source information based on a preset notification rule; or
If the number of the processing class names corresponding to the source field is 1, taking the notification processing logic corresponding to the processing class names corresponding to the source field as the target notification processing logic of the target user corresponding to the source information; or
And if the number of the processing class names corresponding to the source field is greater than 1, selecting a target processing class name from the processing class names corresponding to the source field, and using the notification processing logic corresponding to the target processing class name as the target notification processing logic of the target user corresponding to the source information.
In one possible example, in terms of the target notification processing logic for determining the target user corresponding to the source information based on the preset notification rule, the computer program 340 specifically includes instructions for performing the following steps:
acquiring reference business items corresponding to the business parameters based on a preset notification rule;
determining target notification processing logic of the target user corresponding to the source information based on the reference business transaction.
In one possible example, in terms of the target notification processing logic for determining the target user based on the preset notification rules, the computer program 340 specifically includes instructions for performing the following steps:
if the number of the source fields is larger than 1, splicing the source fields based on a preset notification rule to obtain a target source field;
searching a processing class name corresponding to the target source field from the notification source list;
and determining the target notification processing logic of the target user based on the processing class name corresponding to the target source field.
In one possible example, in terms of selecting a target processing class name from the processing class names corresponding to the source field, the computer program 340 specifically includes instructions for performing the following steps:
acquiring a first matching value between the service type of the service parameter and the service type corresponding to the processing class name corresponding to the source field;
acquiring a second matching value between the event type of the event to be notified and the event type corresponding to the processing class name corresponding to the source field;
calculating a matching evaluation value of the processing class name corresponding to the source field based on the first matching value and the second matching value;
and selecting a target processing class name corresponding to the maximum value of the matching evaluation value from the processing class names corresponding to the source fields.
In a possible example, the target notification processing logic includes an encryption manner, an interface request manner, and a packet body parsing manner of the service parameter, where the number of the service parameter is greater than 1, and in terms of processing the service parameter based on the target notification processing logic to obtain an event transmission packet of the event to be notified, the computer program 340 specifically includes instructions for performing the following steps:
acquiring encryption information of the service parameters based on the encryption mode of the service parameters;
and sequencing the encrypted information of the service parameters based on the interface request mode and the message body analysis mode to obtain an event transmission message of the event to be notified.
Embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium stores a computer program for causing a computer to execute to implement part or all of the steps of any one of the methods described in the method embodiments, and the computer includes an electronic device or a server.
Embodiments of the application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform to implement some or all of the steps of any of the methods recited in the method embodiments. The computer program product may be a software installation package and the computer comprises an electronic device or a server.
In the above-described embodiments, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like. For example, the blockchain may store a source field of the merchant, a processing class name corresponding to the source field, a notification processing logic corresponding to the processing class name, a notification source list, a preset notification rule, and the like, which are not limited herein.
The block chain in the embodiment of the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (blockchain), which is essentially a decentralized database, is a string of data blocks associated by using cryptography, and each data block contains information of a batch of network transactions, which is used to verify the validity (anti-counterfeiting) of the information and generate the next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present application is not limited by the order of acts described, as some steps may occur in other orders or concurrently depending on the application. Further, those skilled in the art will also appreciate that the embodiments described in this specification are presently preferred and that no particular act or mode of operation is required in the present application.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a logical division, and an actual implementation may have another division, for example, at least one unit or component may be combined or integrated with another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on at least one network unit. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a hardware mode or a software program mode.
The integrated unit, if implemented in the form of a software program module and sold or used as a stand-alone product, may be stored in a computer readable memory. With such an understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a memory and includes several instructions for causing a computer (which may be a personal computer, a server, a network device, or the like) to execute all or part of the steps of the methods according to the embodiments of the present application. And the aforementioned memory comprises: various media capable of storing program codes, such as a usb disk, a read-only memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and the like.
The foregoing detailed description of the embodiments of the present application has been presented to illustrate the principles and implementations of the present application, and the above description of the embodiments is only provided to help understand the method and the core concept of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (10)

1. An event notification method, comprising:
if an event to be notified of a target user is detected, acquiring source information and service parameters of the event to be notified;
determining a target notification processing logic of the target user corresponding to the source information, wherein the target notification processing logic is used for defining a processing method of a service parameter of an event to be notified of the target user;
processing the service parameters based on the target notification processing logic to obtain an event transmission message of the event to be notified;
and sending the event transmission message to the target user.
2. The method of claim 1, wherein determining the target notification processing logic of the target user corresponding to the source information comprises:
acquiring a source field corresponding to the source information;
determining target notification processing logic of the target merchant corresponding to the source information based on the source field.
3. The method of claim 2, wherein determining the target notification processing logic of the target user corresponding to the source information based on the source field comprises:
searching a processing class name corresponding to the source field from a notification source list;
if the number of the processing class names corresponding to the source field is 0, determining target notification processing logic of the target user corresponding to the source information based on a preset notification rule; or
If the number of the processing class names corresponding to the source field is 1, taking the notification processing logic corresponding to the processing class names corresponding to the source field as the target notification processing logic of the target user corresponding to the source information; or
And if the number of the processing class names corresponding to the source field is greater than 1, selecting a target processing class name from the processing class names corresponding to the source field, and using the notification processing logic corresponding to the target processing class name as the target notification processing logic of the target user corresponding to the source information.
4. The method according to claim 3, wherein the determining the target notification processing logic of the target user corresponding to the source information based on the preset notification rule comprises:
acquiring reference business items corresponding to the business parameters based on a preset notification rule;
and determining target notification processing logic of the target user corresponding to the source information based on the reference business item.
5. The method according to claim 3, wherein the determining the target notification processing logic of the target user corresponding to the source information based on the preset notification rule comprises:
if the number of the source fields is larger than 1, splicing the source fields based on a preset notification rule to obtain a target source field;
searching a processing class name corresponding to the target source field from the notification source list;
and determining the target notification processing logic of the target user corresponding to the source information based on the processing class name corresponding to the target source field.
6. The method according to claim 3, wherein the selecting a target processing class name from the processing class names corresponding to the source field comprises:
acquiring a first matching value between the service type of the service parameter and the service type corresponding to the processing class name corresponding to the source field;
acquiring a second matching value between the event type of the event to be notified and the event type corresponding to the processing class name corresponding to the source field;
calculating a matching evaluation value of the processing class name corresponding to the source field based on the first matching value and the second matching value;
and selecting a target processing class name corresponding to the maximum value of the matching evaluation value from the processing class names corresponding to the source fields.
7. The method according to any one of claims 1 to 6, wherein the target notification processing logic includes an encryption mode, an interface request mode, and a packet body parsing mode of the service parameters, the number of the service parameters is greater than 1, and the processing the service parameters based on the target notification processing logic to obtain the event transmission packet of the event to be notified includes:
acquiring encryption information of the service parameters based on the encryption mode of the service parameters;
and sequencing the encrypted information of the service parameters based on the interface request mode and the message body analysis mode to obtain an event transmission message of the event to be notified.
8. An event notification apparatus, comprising:
the device comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring source information and service parameters of an event to be notified of a target user if the event to be notified of the target user is detected;
a determining unit, configured to determine a target notification processing logic of the target user corresponding to the source information, where the target notification processing logic is configured to define a processing method of a service parameter of an event to be notified of the target user;
a generating unit, configured to process the service parameter based on the target notification processing logic to obtain an event transmission packet of the event to be notified;
and the sending unit is used for sending the event transmission message to the target user.
9. A computer device, characterized in that it comprises a processor, a memory and a communication interface, wherein the memory stores a computer program configured to be executed by the processor, the computer program comprising instructions for carrying out the steps of the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, the computer program causing a computer to execute to implement the method of any one of claims 1-7.
CN202210057713.6A 2022-01-19 2022-01-19 Event notification method, event notification device, computer equipment and storage medium Active CN114422586B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210057713.6A CN114422586B (en) 2022-01-19 2022-01-19 Event notification method, event notification device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210057713.6A CN114422586B (en) 2022-01-19 2022-01-19 Event notification method, event notification device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114422586A true CN114422586A (en) 2022-04-29
CN114422586B CN114422586B (en) 2023-10-27

Family

ID=81273666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210057713.6A Active CN114422586B (en) 2022-01-19 2022-01-19 Event notification method, event notification device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114422586B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116541454A (en) * 2023-07-06 2023-08-04 浙江海亮科技有限公司 Event configuration method, device, computer equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110202496A1 (en) * 2010-02-18 2011-08-18 International Business Machines Corporation Method, apparatus or software for construction of rules for use in a complex event processing system
CN105677347A (en) * 2016-01-05 2016-06-15 浪潮通用软件有限公司 Method and device for processing data
CN108920222A (en) * 2018-07-12 2018-11-30 北京京东金融科技控股有限公司 A kind of method and device for business processing of rule-based engine
CN109597882A (en) * 2018-12-19 2019-04-09 网易(杭州)网络有限公司 A kind of scene session service treating method and apparatus
CN110727526A (en) * 2019-09-09 2020-01-24 上海陆家嘴国际金融资产交易市场股份有限公司 Big data computing task processing method and system
CN111240858A (en) * 2020-01-07 2020-06-05 中国建设银行股份有限公司 Event scheduling method and component
CN111740895A (en) * 2020-06-16 2020-10-02 东软睿驰汽车技术(沈阳)有限公司 Message notification method and device
CN112181612A (en) * 2020-08-31 2021-01-05 深圳市优必选科技股份有限公司 Task processing method and device, electronic equipment and computer readable storage medium
WO2021031688A1 (en) * 2019-08-22 2021-02-25 苏宁云计算有限公司 Service parameter acquisition method and apparatus, computer device and storage medium
CN113935322A (en) * 2021-10-20 2022-01-14 平安国际智慧城市科技股份有限公司 Case allocation method, device, equipment and medium based on natural language processing

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110202496A1 (en) * 2010-02-18 2011-08-18 International Business Machines Corporation Method, apparatus or software for construction of rules for use in a complex event processing system
CN105677347A (en) * 2016-01-05 2016-06-15 浪潮通用软件有限公司 Method and device for processing data
CN108920222A (en) * 2018-07-12 2018-11-30 北京京东金融科技控股有限公司 A kind of method and device for business processing of rule-based engine
CN109597882A (en) * 2018-12-19 2019-04-09 网易(杭州)网络有限公司 A kind of scene session service treating method and apparatus
WO2021031688A1 (en) * 2019-08-22 2021-02-25 苏宁云计算有限公司 Service parameter acquisition method and apparatus, computer device and storage medium
CN110727526A (en) * 2019-09-09 2020-01-24 上海陆家嘴国际金融资产交易市场股份有限公司 Big data computing task processing method and system
CN111240858A (en) * 2020-01-07 2020-06-05 中国建设银行股份有限公司 Event scheduling method and component
CN111740895A (en) * 2020-06-16 2020-10-02 东软睿驰汽车技术(沈阳)有限公司 Message notification method and device
CN112181612A (en) * 2020-08-31 2021-01-05 深圳市优必选科技股份有限公司 Task processing method and device, electronic equipment and computer readable storage medium
CN113935322A (en) * 2021-10-20 2022-01-14 平安国际智慧城市科技股份有限公司 Case allocation method, device, equipment and medium based on natural language processing

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116541454A (en) * 2023-07-06 2023-08-04 浙江海亮科技有限公司 Event configuration method, device, computer equipment and storage medium
CN116541454B (en) * 2023-07-06 2023-10-20 浙江海亮科技有限公司 Event configuration method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN114422586B (en) 2023-10-27

Similar Documents

Publication Publication Date Title
US11854003B2 (en) Signature verification method, apparatus, and system
CN110493007B (en) Block chain based information verification method, device, equipment and storage medium
US10073916B2 (en) Method and system for facilitating terminal identifiers
JP4470069B2 (en) Input assist device, input assist system, input assist method, and input assist program
CN108701309A (en) A kind of distributed user profile authentication system for security of e-commerce transactions
CN110879903A (en) Evidence storage method, evidence verification method, evidence storage device, evidence verification device, evidence storage equipment and evidence verification medium
TWI528301B (en) Processing method and device
CN107911222B (en) Digital signature generating method, digital signature verifying method, digital signature generating apparatus, digital signature verifying apparatus, and storage medium storing digital signature verifying program
CN110708335A (en) Access authentication method and device and terminal equipment
CN112966308A (en) Software delivery method, processing device and storage medium
JP2007148471A (en) Service notification system
CN111339551B (en) Data verification method and related device and equipment
CN113904821A (en) Identity authentication method and device and readable storage medium
CN114422586B (en) Event notification method, event notification device, computer equipment and storage medium
EP4224316A1 (en) Mirror image management method and apparatus
JP2006154997A (en) Application setting device, ic chip, and program
CN111666567A (en) Detection method, device, computer program and medium for malicious modification of application program
CN114398994A (en) Method, device, equipment and medium for detecting business abnormity based on image identification
CN113011941A (en) Virtual resource processing method, device, equipment and computer readable storage medium
CN113434069A (en) Menu configuration method, device, equipment and storage medium
CN113590664A (en) Resource acquisition method, device, server and storage medium
CN111339528A (en) Method, device and equipment for starting decentralized application and storage medium
US20240202744A1 (en) Using blockchain technology to determine authenticity of items
CN116862679B (en) Block chain-based data processing method, device, equipment and readable storage medium
CN110071930B (en) 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
GR01 Patent grant
GR01 Patent grant