Movatterモバイル変換


[0]ホーム

URL:


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

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

Info

Publication number
CN114422586B
CN114422586BCN202210057713.6ACN202210057713ACN114422586BCN 114422586 BCN114422586 BCN 114422586BCN 202210057713 ACN202210057713 ACN 202210057713ACN 114422586 BCN114422586 BCN 114422586B
Authority
CN
China
Prior art keywords
target
event
source
notification
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.)
Active
Application number
CN202210057713.6A
Other languages
Chinese (zh)
Other versions
CN114422586A (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.)
Ping An Pay Electronic Payment 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 LtdfiledCriticalPingan Payment Technology Service Co Ltd
Priority to CN202210057713.6ApriorityCriticalpatent/CN114422586B/en
Publication of CN114422586ApublicationCriticalpatent/CN114422586A/en
Application grantedgrantedCritical
Publication of CN114422586BpublicationCriticalpatent/CN114422586B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本申请涉及数据传输技术领域,提供了一种事件通知方法、装置、计算机设备及存储介质,其中方法包括:若检测到目标用户的待通知事件,则获取所述待通知事件的来源信息和业务参数;确定与所述来源信息对应的所述目标用户的目标通知处理逻辑;基于所述目标通知处理逻辑对所述业务参数进行处理,得到所述待通知事件的事件传输报文;向所述目标用户发送所述事件传输报文。采用本申请,可提高事件通知效率。

This application relates to the field of data transmission technology and provides an event notification method, device, computer equipment and storage medium. The method includes: if an event to be notified for a target user is detected, obtaining the source information and business of the event to be notified. parameters; determine the target notification processing logic of the target user corresponding to the source information; process the business parameters based on the target notification processing logic to obtain the event transmission message of the event to be notified; send the event transmission message to the The target user sends the event transmission message. Using this application, the efficiency of event notification can be improved.

Description

Translated fromChinese
事件通知方法、装置、计算机设备及存储介质Event notification method, device, computer equipment and storage medium

技术领域Technical field

本申请涉及数据传输技术领域,主要涉及了一种事件通知方法、装置、计算机设备及存储介质。This application relates to the field of data transmission technology, and mainly relates to an event notification method, device, computer equipment and storage medium.

背景技术Background technique

随着互联网的发展,出现了以企业作为服务主体,为企业(或商户)提供平台、产品或服务并赚取利润的业务模式,可以称为企业模式。然而,在企业模式对应的平台中,不同的商户接口规范不同,则商户的通知接口只能定制化,增加了对接难度。With the development of the Internet, a business model has emerged in which enterprises serve as service entities, providing platforms, products or services for enterprises (or merchants) and earning profits, which can be called an enterprise model. However, in the platform corresponding to the enterprise model, different merchants have different interface specifications, so the merchant's notification interface can only be customized, which increases the difficulty of docking.

发明内容Contents of the invention

本申请实施例提供了一种事件通知方法、装置、计算机设备及存储介质,可提高事件通知效率。Embodiments of the present application provide an event notification method, device, computer equipment and storage medium, which can improve event notification efficiency.

第一方面,本申请实施例提供一种事件通知方法,其中:In the first aspect, embodiments of the present application provide an event notification method, wherein:

若检测到目标用户的待通知事件,则获取所述待通知事件的来源信息和业务参数;If an event to be notified for the target user is detected, the source information and business parameters of the event to be notified are obtained;

确定与所述来源信息对应的所述目标用户的目标通知处理逻辑,所述目标通知处理逻辑用于定义所述目标用户的待通知事件的业务参数的处理方法;Determine the target notification processing logic of the target user corresponding to the source information, and the target notification processing logic is used to define a processing method for the business parameters of the event to be notified to the target user;

基于所述目标通知处理逻辑对所述业务参数进行处理,得到所述待通知事件的事件传输报文;Process the service parameters based on the target notification processing logic to obtain the event transmission message of the event to be notified;

向所述目标用户发送所述事件传输报文。Send the event transmission message to the target user.

第二方面,本申请实施例提供一种事件通知装置,其中:In a second aspect, embodiments of the present application provide an event notification device, wherein:

获取单元,用于若检测到目标用户的待通知事件,则获取所述待通知事件的来源信息和业务参数;An acquisition unit, configured to acquire the source information and business parameters of the event to be notified if an event to be notified of the target user is detected;

确定单元,用于确定与所述来源信息对应的所述目标用户的目标通知处理逻辑,所述目标通知处理逻辑用于定义所述目标用户的待通知事件的业务参数的处理方法;A determining unit configured to determine the target notification processing logic of the target user corresponding to the source information, and the target notification processing logic is used to define a processing method for the business parameters of the event to be notified of the target user;

生成单元,用于基于所述目标通知处理逻辑对所述业务参数进行处理,得到所述待通知事件的事件传输报文;A generating unit, configured to process the service parameters based on the target notification processing logic to obtain the event transmission message of the event to be notified;

发送单元,用于向所述目标用户发送所述事件传输报文。A sending unit, configured to send the event transmission message to the target user.

第三方面,本申请实施例提供一种计算机设备,包括处理器、存储器、通信接口以及计算机程序,其中,上述存储器中存储有上述计算机程序,上述计算机程序被配置由上述处理器执行,所述计算机程序包括用于如第一方面中所描述的部分或全部步骤的指令。In a third aspect, embodiments of the present application provide a computer device, including a processor, a memory, a communication interface, and a computer program. The memory stores the computer program, and the computer program is configured to be executed by the processor. The computer program includes instructions for some or all of the steps as described in the first aspect.

第四方面,本申请实施例提供了一种计算机可读存储介质,其中,所述计算机可读存储介质存储计算机程序,其中,所述计算机程序使得计算机执行以实现如第一方面中所描述的部分或全部步骤。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program causes a computer to execute to implement what is described in the first aspect Some or all of the steps.

实施本申请实施例,将具有如下有益效果:Implementing the embodiments of this application will have the following beneficial effects:

采用了上述的事件通知方法、装置、计算机设备及存储介质之后,若检测到目标用户的待通知事件,则获取该待通知事件的来源信息和业务参数。再确定与待通知事件的来源信息对应的目标用户的目标通知处理逻辑,以使基于该目标通知处理逻辑对待通知事件的业务参数进行处理,得到待通知事件的事件传输报文。然后向目标用户发送事件传输报文。如此,降低了定制化的通知接口的对接难度,提高了事件通知的效率。After using the above event notification method, device, computer equipment and storage medium, if an event to be notified to the target user is detected, the source information and business parameters of the event to be notified are obtained. Then determine the target notification processing logic of the target user corresponding to the source information of the event to be notified, so that the business parameters of the event to be notified are processed based on the target notification processing logic to obtain the event transmission message of the event to be notified. Then send the event transmission message to the target user. In this way, the difficulty of connecting customized notification interfaces is reduced and the efficiency of event notifications is improved.

附图说明Description of the drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the embodiments of the present application or the technical solutions in the prior art more clearly, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings in the following description are only These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without exerting creative efforts.

其中:in:

图1为本申请实施例提供的一种事件通知方法的流程示意图;Figure 1 is a schematic flow chart of an event notification method provided by an embodiment of the present application;

图2为本申请实施例提供的一种事件通知装置的结构示意图;Figure 2 is a schematic structural diagram of an event notification device provided by an embodiment of the present application;

图3为本申请实施例提供的一种计算机设备的结构示意图。FIG. 3 is a schematic structural diagram of a computer device provided by an embodiment of the present application.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。根据本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to enable those in the technical field to better understand the solutions of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only These are part of the embodiments of this application, but not all of them. According to the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.

本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其他步骤或单元。The terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than describing a specific sequence. Furthermore, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes Other steps or units inherent to such processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。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 present application. The appearances of this 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. Those skilled in the art understand, both explicitly and implicitly, that the embodiments described herein may be combined with other embodiments.

本申请实施例应用的网络架构包括服务器和电子设备。本申请实施例不限定电子设备和服务器的数量,服务器可同时为多个电子设备提供服务。服务器可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(content delivery network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。服务器或者可以通过多个服务器组成的服务器集群来实现。The network architecture applied in the embodiments of this application includes servers and electronic devices. The embodiments of this application do not limit the number of electronic devices and servers. The server can provide services for multiple electronic devices at the same time. The server can be an independent server, or it can provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, and content delivery network (content delivery network, CDN), as well as cloud servers for basic cloud computing services such as big data and artificial intelligence platforms. The server may be implemented as a server cluster consisting of multiple servers.

电子设备可以是个人计算机(personal computer,PC)、笔记本电脑或智能手机,还可以是一体机、掌上电脑、平板电脑(pad)、智能电视播放终端、车载终端或便捷式设备等。PC端的电子设备,例如一体机等,其操作系统可以包括但不限于Linux系统、Unix系统、Windows系列系统(例如Windows xp、Windows 7等)、Mac OS X系统(苹果电脑的操作系统)等操作系统。移动端的电子设备,例如智能手机等,其操作系统可以包括但不限于安卓系统、IOS(苹果手机的操作系统)、Window系统等操作系统。The electronic device may be a personal computer (PC), a laptop or a smartphone, or it may be an all-in-one computer, a handheld computer, a tablet (pad), a smart TV playback terminal, a vehicle-mounted terminal or a portable device, etc. The operating systems of PC-side electronic devices, such as all-in-one computers, can include but are not limited to Linux systems, Unix systems, Windows series systems (such as Windows xp, Windows 7, etc.), Mac OS X systems (operating systems of Apple computers), etc. system. The operating systems of mobile electronic devices, such as smartphones, may include but are not limited to Android, IOS (the operating system of Apple mobile phones), Window and other operating systems.

电子设备可以安装并运行应用程序,服务器可以是电子设备所安装的应用程序对应的服务器,为应用程序提供应用服务。其中,应用程序可以是单独集成的应用软件,或其它应用中嵌入的小程序,或者网页上的系统等,在此不做限定。The electronic device can install and run the application program, and the server can be a server corresponding to the application program installed on the electronic device, providing application services for the application program. Among them, the application program can be a separately integrated application software, or a small program embedded in other applications, or a system on a web page, etc., which is not limited here.

在本申请实施例中,应用程序可以为包含交易业务的应用程序。电子设备可以为企业模式对应的平台的工作人员使用的电子设备,或平台中入驻的商户使用的电子设备,或注册应用程序的用户使用的电子设备。服务器可用于为商户在企业模式对应的平台中提供交易服务。例如,服务器提供商户的产品链接,以使用户基于该产品链接提交商户的交易业务。在交易业务完成之后,向商户发送相关的业务参数。In this embodiment of the present application, the application program may be an application program including transaction services. The electronic device can be an electronic device used by staff of the platform corresponding to the enterprise model, or an electronic device used by merchants settled in the platform, or an electronic device used by users who register for the application. The server can be used to provide transaction services for merchants in the platform corresponding to the enterprise model. For example, the server provides the merchant's product link so that the user can submit the merchant's transaction business based on the product link. After the transaction is completed, relevant business parameters are sent to the merchant.

示例性地,假设交易对象为电影票,在用户通过企业模式对应的平台上完成电影票的订票业务之后,可以向该电影票对应的商户发送交易成功的提示信息、电影票的券码、交易时间、支付方式、观影位置等业务参数。For example, assuming that the transaction object is a movie ticket, after the user completes the movie ticket booking business through the platform corresponding to the enterprise model, a prompt message of successful transaction, the coupon code of the movie ticket, and Transaction time, payment method, viewing location and other business parameters.

本申请实施例提出一种事件通知方法,该方法可以由事件通知装置执行。该装置可由软件和/或硬件实现,一般可集成在电子设备或服务器中,可提高事件通知效率。The embodiment of the present application proposes an event notification method, which can be executed by an event notification device. The device can be implemented by software and/or hardware, and generally can be integrated in electronic equipment or servers, which can improve event notification efficiency.

请参照图1,图1是本申请提供的一种事件通知方法的流程示意图。以该方法应用在服务器为例进行举例说明,包括如下步骤S101~S104,其中:Please refer to Figure 1, which is a schematic flow chart of an event notification method provided by this application. Taking the application of this method on a server as an example, the method includes the following steps S101 to S104, including:

S101、若检测到目标用户的待通知事件,则获取待通知事件的来源信息和业务参数。S101. If an event to be notified for the target user is detected, obtain the source information and business parameters of the event to be notified.

本申请对于目标用户和待通知事件不做限定,目标用户可以为服务器中在应用程序中注册的客户或商户,或应用程序对应的平台或子平台中注册的客户或商户。该目标用户的待通知事件是指需要向目标用户发送通知消息的事件。This application does not limit the target users and events to be notified. The target users can be customers or merchants registered in the application in the server, or customers or merchants registered in the platform or sub-platform corresponding to the application. The event to be notified to the target user refers to an event that requires sending a notification message to the target user.

本申请对于检测目标用户的待通知事件的方法不做限定,可以检测用户在企业模式对应的平台是否完成目标用户的交易业务(包括交易成功或交易失败)。若是,确定检测到目标用户的待通知事件,可以通知目标用户该交易业务已完成,或通知目标用户对应的商户基于该交易业务准备相关信息等。或者可以检测目标用户在平台中是否提交服务请求,若是,则确定检测到目标用户的待通知事件,可以通知目标用户该服务请求是否通过,或服务请求通过的相关信息等。This application does not limit the method of detecting the target user's events to be notified. It can detect whether the user completes the target user's transaction business (including transaction success or transaction failure) on the platform corresponding to the enterprise mode. If so, it is determined that the target user's event to be notified is detected, and the target user can be notified that the transaction has been completed, or the merchant corresponding to the target user can be notified to prepare relevant information based on the transaction, etc. Or it can detect whether the target user submits a service request in the platform. If so, it is determined that the target user's event to be notified is detected, and the target user can be notified whether the service request is passed, or related information about the service request passing, etc.

在本申请实施例中,来源信息用于指示待通知事件的来源。该来源信息可以包括至少一个来源字段等。其中,来源字段用于指示待通知事件的检测路径,可以为交易所涉及的链接、平台、系统等对应的标识,还可包括目标用户的标识信息和触发待通知事件的用户(可以是商户或客户)的标识信息。In this 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. Among them, the source field is used to indicate the detection path of the event to be notified, which can be the corresponding identification of the link, platform, system, etc. involved in the transaction. It can also include the identification information of the target user and the user who triggered the event to be notified (can be a merchant or Customer) identification information.

目标用户的标识信息或者可以为目标用户在平台注册时所分配的账号标识等。在目标用户为商户的情况下,目标用户的标识信息可以包括目标用户的企业标识,例如,目标用户在工商局进行登记得到的注册号、企业名称或常用的缩写等。在目标用户为客户的情况下,目标用户的标识信息可以包括目标用户在平台中填写的手机号码、身份信息、邮箱号码等。The identification information of the target user may be the account identification assigned when the target user registers on the platform, etc. When the target user is a merchant, the target user's identification information may include the target user's corporate identity, for example, the registration number, corporate name, or commonly used abbreviations obtained by the target user's registration with the Industrial and Commercial Bureau. When the target user is a customer, the target user's identification information may include the mobile phone number, identity information, email number, etc. filled in by the target user in the platform.

需要说明的是,一个目标用户与来源字段之间的关系可以为一对一,或一对多。也就是说,在目标用户为商户的情况下,一个目标用户可能通过1个或多个交易服务对象与客户实现交易。在目标用户为客户的情况下,一个目标用户可能通过1个或多个交易服务对象与商户实现交易。It should be noted that the relationship between a target user and the source field can be one-to-one or one-to-many. That is to say, when the target user is a merchant, a target user may complete transactions with customers through one or more transaction service objects. When the target user is a customer, a target user may complete transactions with the merchant through one or more transaction service objects.

在本申请实施例中,业务参数可以包括需要传输给商户的信息和业务类型。示例性地,交易对象为电影票,则业务参数可以包括电影票的券码信息,例如,电影院地址、票价、观影位置、人数等。业务参数还可以包括交易信息,例如,交易时间、交易成功还是失败、支付方式等。In this embodiment of the present application, the service parameters may include the information and service type that need to be transmitted to the merchant. For example, if the transaction object is a movie ticket, the business parameters may include coupon code information of the movie ticket, such as the theater address, ticket price, viewing location, number of people, etc. Business parameters can also include transaction information, such as transaction time, transaction success or failure, payment method, etc.

S102、确定与来源信息对应的目标用户的目标通知处理逻辑。S102. Determine the target notification processing logic of the target user corresponding to the source information.

在本申请实施例中,目标用户的通知处理逻辑是指该目标用户的待通知事件的业务参数的处理方法。可以理解,若目标用户的待通知事件源自不同的来源,则待通知事件的来源信息不同,且待通知事件的业务参数可能存在差异。因此,可以针对不同的来源信息定义不同的待通知事件的处理方法。目标用户的目标通知处理逻辑可以理解为与待通知事件的来源信息对应的目标用户的通知处理逻辑,则目标用户的目标通知处理逻辑用于定义目标用户的待通知事件的业务参数的处理方法。在确定目标通知处理逻辑之后,可以基于该目标通知处理逻辑对本次进行通知的待通知事件的业务参数进行处理,得到待通知事件的事件传输报文,以向目标用户通知待通知事件的事件传输报文。目标通知处理逻辑可以包括业务参数的加密方式、接口请求方式、报文体解析方式等。In this embodiment of the present application, the notification processing logic of the target user refers to the processing method of the business parameters of the event to be notified to the target user. It can be understood that if the target user's events to be notified originate from different sources, the source information of the events to be notified is different, and the business parameters of the events to be notified may be different. Therefore, different processing methods for events to be notified can be defined for different source information. The target notification processing logic of the target user can 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 the processing method of the business parameters of the event to be notified to the target user. After determining the target notification processing logic, the business parameters of the event to be notified can be processed based on the target notification processing logic to obtain the event transmission message of the event to be notified, so as to notify the target user of the event to be notified. Transmit messages. The target notification processing logic can include the encryption method of business parameters, the interface request method, the message body parsing method, etc.

目标用户的目标通知处理逻辑还可用于生成目标用户的通知接口。该通知接口可以为通知目标用户的固定接口,或者可以为通知目标用户的临时接口。若通知接口为固定接口,则可以通过该固定接口实现信息传输,能够减少生成通知接口的时效。若通知接口为临时接口,则可以提高接口的灵活配置性。在生成目标用户的通知接口之后,可以基于该通知接口传输待通知事件的事件传输报文。The target notification processing logic of the target user can also be used to generate the 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 implemented through the fixed interface, which can reduce the timeliness of generating the notification interface. If the notification interface is a temporary interface, the flexible configuration of the interface can be improved. After the notification interface of the target user is generated, the event transmission message of the event to be notified can be transmitted based on the notification interface.

在一种可能的示例,获取目标用户的通知使用率,以及目标用户的来源字段的数量;基于目标用户的通知使用率和来源字段的数量确定目标用户的通知等级;若通知等级大于或等于预设等级,则生成目标用户的固定接口;或者若通知等级小于预设等级,则生成目标用户的临时接口。In a possible example, obtain the notification usage rate of the target user and the number of source fields of the target user; determine the notification level of the target user based on the notification usage rate of the target user and the number of source fields; if the notification level is greater than or equal to the predetermined If the level is set, a fixed interface for the target user will be generated; or if the notification level is lower than the preset level, a temporary interface for the target user will be generated.

其中,通知使用率是指平台与目标用户之间的互动频次,来源字段的数量是指与目标用户具有业务交互的子平台的数量。可以理解,基于目标用户的通知使用率和来源字段的数量确定目标用户的通知等级,再基于该通知等级的大小确定目标用户是采用固定接口,还是临时接口,可以提高设置接口的灵活性,便于提高服务器的稳定性。Among them, the notification usage rate refers to the frequency of interaction between the platform and the target user, and the number of source fields refers to the number of sub-platforms that have business interactions with the target user. It can be understood that determining the target user's notification level based on the target user's notification usage rate and the number of source fields, and then determining whether the target user uses a fixed interface or a temporary interface based on the size of the notification level can improve the flexibility of setting the interface and facilitate Improve server stability.

本申请对于加密方式的内容不做限定,可以包括安全散列算法(Secure HashAlgorithm,SHA),例如:SHA-1、SHA-224、SHA-256、SHA-384和SHA-512等。加密方式或者可以包括消息摘要算法(Message-Digest Algorithm,MD5)、基于哈希消息认证码(Hash-basedMessage Authentication Code,HMAC)的算法、基于美国信息交换标准代码(AmericanStandard Code for Information Interchange,ASCII)、ISO-8859-1、GB2312、GBK、UTF(Unicode Transformation Format)-8、UTF-16、base64等编码算法的一种或多种等。可以理解,不同的商户的交易服务对应的信息安全性不同,从而可以设置不同的加密方式对待传输的内容进行加密,以提高信息的安全性。This application does not limit the content of the encryption method, which may include Secure Hash Algorithm (SHA), such as: SHA-1, SHA-224, SHA-256, SHA-384, SHA-512, etc. Encryption methods may include Message-Digest Algorithm (MD5), Hash-basedMessage Authentication Code (HMAC) algorithm, American Standard Code for Information Interchange (ASCII) , ISO-8859-1, GB2312, GBK, UTF (Unicode Transformation Format)-8, UTF-16, base64 and other encoding algorithms. It can be understood that the transaction services of different merchants have different information security, so different encryption methods can be set to encrypt the content to be transmitted to improve the security of the information.

接口请求方式可以包括以下:Get、Post、Put、Head、Delete、Trace、options、Connect等。其中,Get用于向特定资源发出请求,以请求指定页面信息,并返回实体主体。Post用于向指定资源提交数据进行处理请求(例如,提交表单、上传文件),又可能导致新的资源的建立或原有资源的修改。Put用于向指定资源位置上上传其最新内容,以使从客户端向服务器传送的数据取代指定文档的内容。Head用于向服务器获取与get请求一致的响应,获取包含在小消息头中的原信息。Head与get请求类似,返回的响应中没有具体内容,用于获取报头。Delete用于请求服务器删除request-URL所标示的资源,例如,请求服务器删除页面。Trace用于对来自服务器的请求进行测试和诊断。options用于返回服务器针对特定资源所支持的HTML请求方法或web服务器的测试服务器功能,以允许客户端查看服务器性能。Connect在HTTP/1.1协议中能够将连接改为管道方式的代理服务器。Interface request methods can include the following: Get, Post, Put, Head, Delete, Trace, options, Connect, etc. Among them, Get is used to make a request to a specific resource to request specified page information and return the entity body. Post is used to submit data to specified resources for processing requests (for example, submitting forms, uploading files), and may lead to the creation of new resources or modification of original resources. Put is used to upload the latest content to the specified resource location, so that the data transferred from the client to the server replaces the content of the specified document. 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 a get request. There is no specific content in the returned response and is used to obtain the header. Delete is used to request the server to delete the resource indicated by request-URL, for example, to request the server to delete a page. Trace is used to test and diagnose requests from the server. options is used to return the HTML request methods supported by the server for a specific resource or the test server capabilities of the web server to allow the client to view server performance. Connect can change the connection to a pipeline proxy server in the HTTP/1.1 protocol.

报文体解析方式可用于解析报文体中的数据,可包括报文头的撰写规则。该报文头是一些必要的控制信息和对报文体的说明信息。在本申请实施例中,报文体中的数据包括业务参数。The message body parsing method can be used to parse the data in the message body, including rules for writing message headers. The message header is some necessary control information and description information for the message body. In this embodiment of the present application, the data in the message body includes service parameters.

本申请对于确定目标通知处理逻辑的方法不做限定,在一种可能的示例中,步骤S102可以包括以下步骤A1和A2,其中:This application does not limit the method of determining the target notification processing logic. In a possible example, step S102 may include the following steps A1 and A2, where:

A1、获取来源信息对应的来源字段。A1. Obtain the source field corresponding to the source information.

A2、基于来源字段确定与来源信息对应的目标用户的目标通知处理逻辑。A2. Determine the target notification processing logic of the target user corresponding to the source information based on the source field.

其中,来源字段可以参照前述,在此不再赘述。在本申请实施例中,可以预先存储各来源字段对应的通知处理逻辑,从而在确定目标用户的待通知事件的来源信息对应的来源字段之后,可以将该来源字段对应的通知处理逻辑作为与来源信息对应的目标用户的目标通知处理逻辑。如此,可以提高确定目标通知处理逻辑的效率。Among them, the source field can refer to the foregoing description and will not be described again here. In the embodiment of the present application, the notification processing logic corresponding to each source field can be stored in advance, so that after determining the source field corresponding to the source information of the event to be notified of the target user, the notification processing logic corresponding to the source field can be used as the source The target notification processing logic of the target user corresponding to the information. In this way, the efficiency of determining the target notification processing logic can be improved.

在一种可能的示例中,步骤A2可以包括以下步骤A21~A25,其中:In a possible example, step A2 may include the following steps A21 to A25, wherein:

A21、从通知来源列表中查找来源字段对应的处理类名。A21. Find the processing class name corresponding to the source field from the notification source list.

在本申请实施例中,可预先确定各种商户的不同来源事件的通知处理逻辑,并基于通知处理逻辑进行分类,得到处理类名。然后基于商户的来源字段将该来源字段对应的处理类名进行存储,得到通知来源列表。该通知来源列表还可存储每一处理类名对应的通知处理逻辑。如此,在确定待通知事件的来源信息的来源字段之后,可以从通知来源列表中查找是否存储有待通知事件的来源信息的来源字段,若是,则获取该来源字段对应的处理类名。否则,可以对来源字段进行拆分或拼接,得到与目标用户的通知规范类似的其他商户的处理类名,再基于其他商户的处理类名对应的通知处理逻辑确定与来源信息对应的目标用户的目标通知处理逻辑。例如,确定其他商户和目标用户的通知规范之间的相似点和差异点,从而基于相似点和差异点对其他商户的处理类名对应的通知处理逻辑进行调整,得到目标用户的目标通知处理逻辑。In the embodiment of the present application, the notification processing logic of events from different sources of various merchants can be determined in advance, and classified based on the notification processing logic to obtain the processing class name. Then based on the source field of the merchant, the processing class name corresponding to the source field is stored to obtain a notification source list. The notification source list can 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, you can search from the notification source list whether the source field of the source information of the event to be notified is stored, and if so, obtain the processing class name corresponding to the source field. Otherwise, the source field can be split or spliced to obtain the processing class names of other merchants that are similar to the target user's notification specifications, and then the target user's corresponding to the source information is determined based on the notification processing logic corresponding to the processing class names of other merchants. Target notification processing logic. For example, determine the similarities and differences between the notification specifications of other merchants and the target user, and then adjust the notification processing logic corresponding to the processing class name of other merchants based on the similarities and differences to obtain the target notification processing logic of the target user. .

A22、确定来源字段对应的处理类名的数量。A22. Determine the number of processing class names corresponding to the source field.

若来源字段对应的处理类名的数量为0,则表示通知来源列表中未存储来源字段对应的处理类名,需要设置来源字段对应的处理类名或直接确定目标用户的目标通知处理逻辑。基于此,执行步骤A23、基于预设通知规则确定目标用户的目标通知处理逻辑。If the number of processing class names corresponding to the source field is 0, it means that the processing class name corresponding to the source field is not stored in the notification source list. You need to set the processing class name corresponding to the source field or directly determine the target notification processing logic for the target user. Based on this, step A23 is executed to determine the target notification processing logic of the target user based on the preset notification rules.

在本申请实施例中,预设通知规则是服务器预先规定的通知处理逻辑的生成规则。预设通知规则可以采用预设代码对应的配置页面进行显示,如此,平台的工作人员可以基于该配置页面选择或输入相关信息,在配置完成之后,可基于预设代码和配置页面中工作人员选择或输入的信息生成通知处理逻辑。In this embodiment of the present application, the preset notification rules are generation rules of notification processing logic pre-specified by the server. The preset notification rules can be displayed using the configuration page corresponding to the preset code. In this way, the platform staff can select or enter relevant information based on the configuration page. After the configuration is completed, the staff can select based on the preset code and configuration page. Or input information generates notification processing logic.

预设通知规则可涉及各商户之间相同的业务事项,以及各商户的不同的业务事项。本申请对于预设通知规则的生成方法不做限定,可以获取各商户的业务事项和业务事项对应的业务参数;对各业务事项对应的业务参数进行统计,得到各业务事项的业务参数范围;基于各业务事项的业务参数范围生成预设通知规则。如此,综合了各商户的业务参数范围生成预设通知规则,有利于提高预设通知规则设置的准确率和完备性。The default notification rules can involve the same business matters among merchants, as well as different business matters among merchants. This application does not limit the generation method of the preset notification rules. It can obtain the business matters of each merchant and the business parameters corresponding to the business matters; make statistics on the business parameters corresponding to each business matter to obtain the business parameter range of each business matter; based on Preset notification rules are generated based on the business parameter range of each business matter. In this way, the preset notification rules are generated based on the business parameter range of each merchant, which is conducive to improving the accuracy and completeness of the preset notification rule settings.

预设通知规则对应的配置页面中各业务事项的排列顺序可以基于各业务事项的使用率以及与其他业务事项之间的关联值进行确定,可以提高查找业务事项的效率。The order of each business item in the configuration page corresponding to the preset notification rule can be determined based on the usage rate of each business item and the correlation value with other business items, which can improve the efficiency of finding business items.

第一方面,步骤A23可以包括以下步骤:基于预设通知规则获取业务参数对应的参考业务事项;基于参考业务事项确定与来源信息对应的目标用户的目标通知处理逻辑。In the first aspect, step A23 may include the following steps: obtaining reference business items corresponding to the business parameters based on preset notification rules; and determining target notification processing logic of the target user corresponding to the source information based on the reference business items.

其中,参考业务事项是指预设通知规则对应的业务事项中与业务参数对应的业务事项。可以理解,在获取业务参数对应的参考业务事项之后,可以基于该参考业务事项对应的代码生成与来源信息对应的目标用户的目标通知处理逻辑。如此,可以提高确定目标通知处理逻辑的准确率。The reference business matters refer to the business matters corresponding to the business parameters among the business matters corresponding to the preset notification rules. It can be understood that after obtaining the reference business matter corresponding to the business parameter, the target notification processing logic of the target user corresponding to the source information can be generated based on the code corresponding to the reference business matter. In this way, the accuracy of determining the target notification processing logic can be improved.

第二方面,步骤A23可以包括以下步骤:若来源字段的数量大于1,则基于预设通知规则对来源字段进行拼接,得到目标来源字段;从通知来源列表中,查找目标来源字段对应的处理类名;基于目标来源字段对应的处理类名,确定与来源信息对应的目标用户的目标通知处理逻辑。In the second aspect, step A23 may include the following steps: if the number of source fields is greater than 1, splice the source fields based on the preset notification rules to obtain the target source field; search for the processing class corresponding to the target source field from the notification source list name; based on the processing class name corresponding to the target source field, determine the target notification processing logic of the target user corresponding to the source information.

其中,目标来源字段为来源字段拼接得到的字段。本申请对于拼接来源字段的方法不做限定,可以对来源字段进行拆分,得到来源子字段;基于预设通知规则查找是否存在来源子字段;若存在,则确定来源子字段的排序;基于来源子字段的排序对来源子字段进行拼接,得到目标来源字段等。如此,可以基于预先设置的来源子字段的排序对来源子字段进行拼接,有利于提高确定目标来源字段的准确率。Among them, the target source field is the field obtained by splicing the source fields. This application does not limit the method of splicing source fields. The source fields can be split to obtain source sub-fields; based on the preset notification rules, search whether the source sub-fields exist; if so, determine the ordering of the source sub-fields; based on the source The sorting of subfields splices the source subfields to obtain the target source fields, etc. In this way, the source subfields can be spliced based on the preset sorting of the source subfields, which is beneficial to improving the accuracy of determining the target source field.

需要说明的是,以上第一方面和第二方面为确定目标通知处理逻辑的示例。在实际场景中,可能还存在其他方法确定目标通知处理逻辑。It should be noted that the above first and second aspects are examples of determining target notification processing logic. In actual scenarios, there may be other methods to determine the target notification processing logic.

若来源字段对应的处理类名的数量为1,则表示通知来源列表中存储了来源字段对应的处理类名,且只有一个处理类名与目标用户关联,可以执行步骤A24、将来源字段对应的处理类名对应的通知处理逻辑作为与来源信息对应的目标用户的目标通知处理逻辑。如此,可提高查找目标通知处理逻辑的效率和成功率。If the number of processing class names corresponding to the source field is 1, it means 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. Step A24 can be performed to add the processing class names corresponding to the source field. The notification processing logic corresponding to the processing class name is used as the target notification processing logic of the target user corresponding to the source information. In this way, the efficiency and success rate of the search target notification processing logic can be improved.

若来源字段对应的处理类名的数量大于1,则表示通知来源列表中存储了至少两个来源字段中每一来源字段对应的处理类名,可执行步骤A25、从来源字段对应的处理类名中选取目标处理类名;将目标处理类名对应的通知处理逻辑作为与来源信息对应的目标用户的目标通知处理逻辑。如此,可提高查找效率,且选取的目标处理类名有利于进一步提高查找目标通知处理逻辑的成功率。If the number of processing class names corresponding to the source field is greater than 1, it means that the notification source list stores the processing class name corresponding to each source field in at least two source fields. Step A25 can be performed to obtain the processing class name corresponding to the source field. Select the target processing class name; use 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 this way, the search efficiency can be improved, and the selected target processing class name is conducive to further improving the success rate of finding the target notification processing logic.

在本申请实施例中,目标处理类名为来源字段对应的处理类名中选取的处理类名。本申请对于选取目标处理类名的方法不做限定,可以基于处理类名对应的业务类型和业务参数的业务类型之间的匹配值进行确定,或者可以基于待通知事件的事件类型和处理类名对应的事件类型之间的匹配值进行确定等。In this embodiment of the present application, the target processing class name is a processing class name selected from the processing class names corresponding to the source field. This application does not limit the method of selecting the target processing class name. It can be determined based on the matching value between the business type corresponding to the processing class name and the business type of the business parameters, or it can be determined based on the event type and processing class name of the event to be notified. Matching values between corresponding event types are determined, etc.

在一种可能的示例中,步骤A25可以包括以下步骤A251~A254,其中:In a possible example, step A25 may include the following steps A251 to A254, wherein:

A251、获取业务参数的业务类型和来源字段对应的处理类名对应的业务类型之间的第一匹配值。A251. Obtain the first matching value between the business type of the business parameter and the business type corresponding to the processing class name corresponding to the source field.

在本申请实施例中,业务参数的业务类型是指业务处理时的业务参数的数据类型。处理类名对应的业务类型是指来源字段对应的处理类名对应的通知处理逻辑能处理的业务类型。第一匹配值为业务参数的业务类型和来源字段对应的处理类名对应的业务类型之间的匹配值,用于描述业务参数的业务类型和来源字段对应的处理类名对应的业务类型之间的相似性。可以理解,第一匹配值越大,则表示来源字段对应的处理类名对应的通知处理逻辑能处理目标用户的待通知事件的业务参数的成功率越大,即实现通知的成功率越大。In this embodiment of the present application, the service type of the service parameter refers to the data type of the service parameter during service processing. The business type corresponding to the processing class name refers to the business type that can be processed by the notification processing logic corresponding to the processing class name corresponding to the source field. The first matching value is the matching value between the business type of the business parameter and the business type corresponding to the processing class name corresponding to the source field, and is used to describe the relationship between the business type of the business parameter and the business type corresponding to the processing class name corresponding to the source field. similarity. 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 business parameters of the target user's event to be notified, that is, the greater the success rate of realizing the notification.

A252、获取待通知事件的事件类型和来源字段对应的处理类名对应的事件类型之间的第二匹配值。A252. Obtain the 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 the embodiment of this application, the event type corresponding to the processing class name corresponding to the source field refers to the 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 the 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 to describe the event type corresponding to the event type to be notified and the event type corresponding to the processing class name corresponding to the source field. similarities between. 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 business parameters of the event to be notified of the target user, that is, the greater the success rate of realizing the notification.

需要说明的是,步骤A251可以在步骤A252之前执行,步骤A251或者可以在步骤A252之后执行,步骤A251或者可以与步骤A252同时执行。It should be noted that step A251 may be executed before step A252, step A251 may be executed after step A252, or step A251 may be executed simultaneously with step A252.

A253、基于第一匹配值和第二匹配值计算来源字段对应的处理类名的匹配评价值。A253. Calculate 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 this embodiment of the present application, the matching evaluation value of the processing class name corresponding to the source field is the possibility of the processing class name corresponding to the source field being 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 the maximum or minimum value between the first matching value and the second matching value, etc., which is not limited here.

A254、从来源字段对应的处理类名中选取匹配评价值的最大值对应的目标处理类名。A254. Select the target processing class name corresponding to the maximum value of the matching evaluation value from the processing class names corresponding to the source field.

可以理解,在步骤A251~A254中,先获取业务参数的业务类型和来源字段对应的处理类名对应的业务类型之间的第一匹配值,获取待通知事件的事件类型和来源字段对应的处理类名对应的事件类型之间的第二匹配值。再基于第一匹配值和第二匹配值计算来源字段对应的处理类名的匹配评价值。然后以匹配评价值的最大值对应的处理类名作为目标处理类名,从而从来源字段对应的处理类名中选取目标处理类名,且选取的目标处理类名与当前待通知事件的处理类名最为匹配的处理类名,可以提高选取的准确率,有利于提高通知的成功率。It can be understood that in steps A251 to A254, the first matching value between the business type of the business parameter and the business type corresponding to the processing class name corresponding to the source field is first obtained, and the event type of the event to be notified and the processing corresponding to the source field are obtained. The second matching value between the event types corresponding to the class name. Then, the matching evaluation value of the processing class name corresponding to the source field is calculated based on the first matching value and the second matching value. Then use the processing class name corresponding to the maximum value of the matching evaluation value as the target processing class name, thereby selecting the target processing class name from the processing class names corresponding to the source field, and the selected target processing class name is consistent with the processing class of the current event to be notified The most matching processing class name can improve the selection accuracy and help improve the success rate of notification.

S103、基于目标通知处理逻辑对业务参数进行处理,得到待通知事件的事件传输报文。S103. Process the business parameters based on the target notification processing logic to obtain the event transmission message of the event to be notified.

在本申请实施例中,待通知事件的事件传输报文用于传输待通知事件的业务参数。本申请对于生成事件传输报文的方法不做限定,可以基于目标通知处理逻辑确定的接口输入参数输入至报文生成函数,得到的输出数据作为事件传输报文。In this embodiment of the present application, the event transmission message of the event to be notified is used to transmit the service parameters of the event to be notified. This application does not limit the method of generating event transmission messages. The interface input parameters determined based on the target notification processing logic can be input to the message generation function, and the resulting output data is used as the event transmission message.

其中,接口输入参数可以包括业务参数,还可以包括待加签报文、待加密字段。报文生成函数可以基于加密方式以及相应密钥,目标用户的服务码进行加密,得到加密信息,再基于报文头报文体解析模板,对加密信息进行报文组装,得到事件传输报文。Among them, the interface input parameters may include service parameters, messages to be signed, and fields to be encrypted. The message generation function can encrypt based on the encryption method, the corresponding key, and the service code of the target user to obtain the encrypted information, and then assemble the encrypted information based on the message header and body parsing template to obtain the event transmission message.

上述目标用户的服务码可以为基于目标用户的标识信息,或来源字段确定的固定数字和/或字符组成的字符串,还可以为动态生成的字符串等,在此不做限定。The service code of the above-mentioned target user can be a string composed of fixed numbers and/or characters based on the target user's identification information or the source field, or it can also be a dynamically generated string, etc., which is not limited here.

在一种可能的示例中,目标通知处理逻辑包括业务参数的加密方式、接口请求方式和报文体解析方式,业务参数的数量大于1,步骤S103可以包括以下步骤B1和步骤B2,其中:In a possible example, the target notification processing logic includes the encryption method of business parameters, the interface request method and the message body parsing method. The number of business parameters is greater than 1. Step S103 may include the following steps B1 and B2, wherein:

B1、基于业务参数的加密方式获取业务参数的加密信息。B1. Obtain the encrypted information of the business parameters based on the encryption method of the business parameters.

B2、基于接口请求方式和报文体解析方式对业务参数的加密信息进行排序,得到待通知事件的事件传输报文。B2. Sort the encrypted information of the business parameters based on the interface request method and the message body parsing method, and obtain the event transmission message of the event to be notified.

其中,加密方式、接口请求方式和报文体解析方式均可参照前述,在此不再赘述。可以理解,在步骤B1和步骤B2中,基于接口请求方式和报文体解析方式对各个业务参数的加密信息进行排序,可提高事件传输报文的安全性和标准化,有利于提高解析的准确率。Among them, the encryption method, interface request method and message body parsing method can all refer to the above, and will not be described again here. It can be understood that in steps B1 and B2, sorting the encrypted information of each business parameter based on the interface request method and the message body parsing method can improve the security and standardization of event transmission messages and help improve the accuracy of analysis.

S104、向目标用户发送事件传输报文。S104. Send an event transmission message to the target user.

在图1所示的方法中,若检测到目标用户的待通知事件,则获取该待通知事件的来源信息和业务参数。再确定与待通知事件的来源信息对应的目标用户的目标通知处理逻辑,以使基于该目标通知处理逻辑对待通知事件的业务参数进行处理,得到待通知事件的事件传输报文。然后向目标用户发送事件传输报文。如此,降低了定制化的通知接口的对接难度,提高了事件通知的效率。In the method shown in Figure 1, if an event to be notified to the target user is detected, the source information and business parameters of the event to be notified are obtained. Then determine the target notification processing logic of the target user corresponding to the source information of the event to be notified, so that the business parameters of the event to be notified are processed based on the target notification processing logic to obtain the event transmission message of the event to be notified. Then send the event transmission message to the target user. In this way, the difficulty of connecting customized notification interfaces is reduced and the efficiency of event notifications is improved.

上述详细阐述了本申请实施例的方法,下面提供了本申请实施例的装置。The method of the embodiment of the present application is described in detail above, and the device of the embodiment of the present application is provided below.

与图1所示的实施例一致,请参照图2,图2是本申请提出的一种事件通知装置的结构示意图。如图2所示,上述事件通知装置200包括:Consistent with the embodiment shown in Figure 1, please refer to Figure 2, which is a schematic structural diagram of an event notification device proposed in this application. As shown in Figure 2, the above-mentioned event notification device 200 includes:

获取单元201用于若检测到目标用户的待通知事件,则获取所述待通知事件的来源信息和业务参数;The acquisition unit 201 is configured to acquire the source information and business parameters of the event to be notified if an event to be notified of the target user is detected;

确定单元202用于确定与所述来源信息对应的所述目标用户的目标通知处理逻辑,所述目标通知处理逻辑用于定义所述目标用户的待通知事件的业务参数的处理方法;The determining unit 202 is configured to determine the target notification processing logic of the target user corresponding to the source information, and the target notification processing logic is used to define a processing method for the business parameters of the event to be notified of the target user;

生成单元203用于基于所述目标通知处理逻辑对所述业务参数进行处理,得到所述待通知事件的事件传输报文;The generating unit 203 is configured to process the service parameters based on the target notification processing logic to obtain the event transmission message of the event to be notified;

发送单元204用于向所述目标用户发送所述事件传输报文。The sending unit 204 is configured to send the event transmission message to the target user.

在一种可能的示例中,所述确定单元202具体用于获取所述来源信息对应的来源字段;基于所述来源字段确定与所述来源信息对应的所述目标用户的目标通知处理逻辑。In a possible example, the determining unit 202 is specifically configured to obtain a source field corresponding to the source information; and determine the target notification processing logic of the target user corresponding to the source information based on the source field.

在一种可能的示例中,所述确定单元202具体用于从通知来源列表中,查找所述来源字段对应的处理类名;若所述来源字段对应的处理类名的数量为0,则基于预设通知规则确定与所述来源信息对应的所述目标用户的目标通知处理逻辑。In a possible example, the determining unit 202 is specifically configured to search for the processing class name corresponding to the source field from the notification source list; if the number of processing class names corresponding to the source field is 0, based on The preset notification rule determines the target notification processing logic of the target user corresponding to the source information.

或者在一种可能的示例中,所述确定单元202具体用于若所述来源字段对应的处理类名的数量为1,则将所述来源字段对应的处理类名对应的通知处理逻辑,作为与所述来源信息对应的所述目标用户的目标通知处理逻辑。Or in a possible example, the determining unit 202 is specifically configured to, if the number of processing class names corresponding to the source field is 1, set the notification processing logic corresponding to the processing class names corresponding to the source field as Target notification processing logic for the target user corresponding to the source information.

或者在一种可能的示例中,所述确定单元202具体用于若所述来源字段对应的处理类名的数量大于1,则从所述来源字段对应的处理类名中选取目标处理类名,将所述目标处理类名对应的通知处理逻辑,作为与所述来源信息对应的所述目标用户的目标通知处理逻辑。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 processing class names corresponding to the source field is greater than 1, The notification processing logic corresponding to the target processing class name is used as the target notification processing logic of the target user corresponding to the source information.

在一种可能的示例中,所述确定单元202具体用于基于预设通知规则获取所述业务参数对应的参考业务事项;基于所述参考业务事项确定与所述来源信息对应的所述目标用户的目标通知处理逻辑。In a possible example, the determining unit 202 is specifically configured to obtain a reference business item corresponding to the service parameter based on a preset notification rule; and determine the target user corresponding to the source information based on the reference business item. Target notification processing logic.

在一种可能的示例中,所述确定单元202具体用于若所述来源字段的数量大于1,则基于预设通知规则对所述来源字段进行拼接,得到目标来源字段;从所述通知来源列表中查找所述目标来源字段对应的处理类名;基于所述目标来源字段对应的处理类名确定与所述来源信息对应的所述目标用户的目标通知处理逻辑。In a possible example, the determining unit 202 is specifically configured to, if the number of source fields is greater than 1, splice the source fields based on a preset notification rule to obtain a target source field; from the notification source Search the list for the processing class name corresponding to the target source field; determine the target notification processing logic for the target user corresponding to the source information based on the processing class name corresponding to the target source field.

在一种可能的示例中,所述确定单元202具体用于获取所述业务参数的业务类型和所述来源字段对应的处理类名对应的业务类型之间的第一匹配值;获取所述待通知事件的事件类型和所述来源字段对应的处理类名对应的事件类型之间的第二匹配值;基于所述第一匹配值和所述第二匹配值计算所述来源字段对应的处理类名的匹配评价值;从所述处理类名中,选取所述匹配评价值的最大值对应的目标处理类名。In a possible example, the determining unit 202 is specifically configured to obtain the 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; obtain the to-be- The second matching value between the event type of the notification event and the event type corresponding to the processing class name corresponding to the source field; calculating the processing class corresponding to the source field based on the first matching value and the second matching value The matching evaluation value of the name; from the processing class names, select the target processing class name corresponding to the maximum value of the matching evaluation value.

在一种可能的示例中,所述目标通知处理逻辑包括所述业务参数的加密方式、接口请求方式和报文体解析方式,所述业务参数的数量大于1,所述生成单元203具体用于基于所述业务参数的加密方式获取所述业务参数的加密信息;基于所述接口请求方式和所述报文体解析方式对所述业务参数的加密信息进行排序,得到所述待通知事件的事件传输报文。In a possible example, the target notification processing logic includes the encryption method, the interface request method and the message body parsing method of the business parameters, the number of the business parameters is greater than 1, and the generating unit 203 is specifically configured to based on The encryption method of the business parameters obtains the encryption information of the business parameters; the encryption information of the business parameters is sorted based on the interface request method and the message body parsing method to obtain the event transmission report of the event to be notified arts.

上述事件通知装置200中各个单元执行详细过程可以参见前述方法实施例中的执行步骤,此处不在赘述。For the detailed execution process of each unit in the event notification device 200, please refer to the execution steps in the foregoing method embodiments, and will not be described again here.

与图1的实施例一致,请参照图3,图3是本申请实施例提供的一种计算机设备的结构示意图。如图3所示,该计算机设备300包括处理器310、存储器320和通信接口330。处理器310、存储器320和通信接口330之间通过总线350互相连接。图2所示的发送单元204所实现的相关功能可通过通信接口330来实现,图2所示的获取单元201、确定单元202和生成单元203所实现的相关功能可通过处理器310来实现。Consistent with the embodiment of Figure 1, please refer to Figure 3. Figure 3 is a schematic structural diagram of a computer device provided by an embodiment of the present application. 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 connected to each other through a bus 350. The related functions implemented by the sending unit 204 shown in Figure 2 can be implemented through 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 Figure 2 can be implemented through the processor 310.

上述存储器320中存储有计算机程序340,计算机程序340被配置由上述处理器310执行,计算机程序340包括用于执行以下步骤的指令:The above-mentioned memory 320 stores a computer program 340. The computer program 340 is configured to be executed by the above-mentioned processor 310. The computer program 340 includes instructions for performing the following steps:

若检测到目标用户的待通知事件,则获取所述待通知事件的来源信息和业务参数;If an event to be notified for the target user is detected, the source information and business parameters of the event to be notified are obtained;

确定与所述来源信息对应的所述目标用户的目标通知处理逻辑,所述目标通知处理逻辑用于定义所述目标用户的待通知事件的业务参数的处理方法;Determine the target notification processing logic of the target user corresponding to the source information, and the target notification processing logic is used to define a processing method for the business parameters of the event to be notified to the target user;

基于所述目标通知处理逻辑对所述业务参数进行处理,得到所述待通知事件的事件传输报文;Process the service parameters based on the target notification processing logic to obtain the event transmission message of the event to be notified;

向所述目标用户发送所述事件传输报文。Send the event transmission message to the target user.

在一个可能的示例中,在所述确定与所述来源信息对应的所述目标用户的目标通知处理逻辑方面,所述计算机程序340具体包括用于执行以下步骤的指令:In one possible example, in terms of determining the target notification processing logic of the target user corresponding to the source information, the computer program 340 specifically includes instructions for performing the following steps:

获取所述来源信息对应的来源字段;Obtain the source field corresponding to the source information;

基于所述来源字段确定与所述来源信息对应的所述目标用户的目标通知处理逻辑。Target notification processing logic for the target user corresponding to the source information is determined based on the source field.

在一个可能的示例中,在所述基于所述来源字段确定与所述来源信息对应的所述目标用户的目标通知处理逻辑方面,所述计算机程序340具体包括用于执行以下步骤的指令:In one possible example, in terms of the target notification processing logic of determining the target user corresponding to the source information based on the source field, the computer program 340 specifically includes instructions for performing the following steps:

从通知来源列表中,查找所述来源字段对应的处理类名;From the notification source list, find the processing class name corresponding to the source field;

若所述来源字段对应的处理类名的数量为0,则基于预设通知规则,确定与所述来源信息对应的所述目标用户的目标通知处理逻辑;或者If the number of processing class names corresponding to the source field is 0, determine the target notification processing logic of the target user corresponding to the source information based on the preset notification rules; or

若所述来源字段对应的处理类名的数量为1,则将所述来源字段对应的处理类名对应的通知处理逻辑,作为与所述来源信息对应的所述目标用户的目标通知处理逻辑;或者If the number of processing class names corresponding to the source field is 1, then the notification processing logic corresponding to the processing class name corresponding to the source field is used as the target notification processing logic of the target user corresponding to the source information; or

若所述来源字段对应的处理类名的数量大于1,则从所述来源字段对应的处理类名中选取目标处理类名,将所述目标处理类名对应的通知处理逻辑,作为与所述来源信息对应的所述目标用户的目标通知处理逻辑。If the number of processing class names corresponding to the source field is greater than 1, select a target processing class name from the processing class names corresponding to the source field, and use the notification processing logic corresponding to the target processing class name as the The target notification processing logic of the target user corresponding to the source information.

在一个可能的示例中,在所述基于预设通知规则确定与所述来源信息对应的所述目标用户的目标通知处理逻辑方面,所述计算机程序340具体包括用于执行以下步骤的指令:In one possible example, in terms of determining the target notification processing logic of the target user corresponding to the source information based on the preset notification rules, the computer program 340 specifically includes instructions for performing the following steps:

基于预设通知规则获取所述业务参数对应的参考业务事项;Obtain the reference business items corresponding to the business parameters based on the preset notification rules;

基于所述参考业务事项确定与所述来源信息对应的所述目标用户的目标通知处理逻辑。The target notification processing logic of the target user corresponding to the source information is determined based on the reference business matter.

在一个可能的示例中,在所述基于预设通知规则确定所述目标用户的目标通知处理逻辑方面,所述计算机程序340具体包括用于执行以下步骤的指令:In one possible example, in terms of determining the target notification processing logic of the target user based on the preset notification rules, the computer program 340 specifically includes instructions for performing the following steps:

若所述来源字段的数量大于1,则基于预设通知规则对所述来源字段进行拼接,得到目标来源字段;If the number of source fields is greater than 1, the source fields are spliced based on the preset notification rules to obtain the target source field;

从所述通知来源列表中,查找所述目标来源字段对应的处理类名;From the notification source list, search for the processing class name corresponding to the target source field;

基于所述目标来源字段对应的处理类名确定所述目标用户的目标通知处理逻辑。The target notification processing logic of the target user is determined based on the processing class name corresponding to the target source field.

在一个可能的示例中,从所述来源字段对应的处理类名中选取目标处理类名方面,所述计算机程序340具体包括用于执行以下步骤的指令:In one possible example, in selecting a target processing class name from the processing class name corresponding to the source field, the computer program 340 specifically includes instructions for performing the following steps:

获取所述业务参数的业务类型和所述来源字段对应的处理类名对应的业务类型之间的第一匹配值;Obtain the 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;

获取所述待通知事件的事件类型和所述来源字段对应的处理类名对应的事件类型之间的第二匹配值;Obtain the 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;

基于所述第一匹配值和所述第二匹配值计算所述来源字段对应的处理类名的匹配评价值;Calculate 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;

从所述来源字段对应的处理类名中,选取所述匹配评价值的最大值对应的目标处理类名。From the processing class names corresponding to the source field, select the target processing class name corresponding to the maximum value of the matching evaluation value.

在一个可能的示例中,所述目标通知处理逻辑包括所述业务参数的加密方式、接口请求方式和报文体解析方式,所述业务参数的数量大于1,在所述基于所述目标通知处理逻辑对所述业务参数进行处理,得到所述待通知事件的事件传输报文方面,所述计算机程序340具体包括用于执行以下步骤的指令:In a possible example, the target notification processing logic includes an encryption method, an interface request method, and a message body parsing method of the business parameters, and the number of the business parameters is greater than 1. When the target notification processing logic is based on the In terms of processing the service parameters and obtaining the event transmission message of the event to be notified, the computer program 340 specifically includes instructions for performing the following steps:

基于所述业务参数的加密方式获取所述业务参数的加密信息;Obtain the encryption information of the service parameters based on the encryption method of the service parameters;

基于所述接口请求方式和所述报文体解析方式对所述业务参数的加密信息进行排序,得到所述待通知事件的事件传输报文。The encrypted information of the service parameters is sorted based on the interface request method and the message body parsing method to obtain an event transmission message of the event to be notified.

本申请实施例还提供一种计算机可读存储介质,其中,该计算机可读存储介质存储用于存储计算机程序,该计算机程序使得计算机执行以实现方法实施例中记载的任一方法的部分或全部步骤,计算机包括电子设备或服务器。Embodiments of the present application also provide a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program that causes the computer to execute part or all of any of the methods described in the method embodiments. Steps, computers include electronic devices or servers.

本申请实施例还提供一种计算机程序产品,计算机程序产品包括存储了计算机程序的非瞬时性计算机可读存储介质,计算机程序可操作来使计算机执行以实现方法实施例中记载的任一方法的部分或全部步骤。该计算机程序产品可以为一个软件安装包,计算机包括电子设备或服务器。Embodiments of the present application also provide a computer program product. The computer program product includes a non-transitory computer-readable storage medium storing a computer program. The computer program is operable to cause the computer to execute to implement any of the methods described in the method embodiments. Some or all of the steps. The computer program product may be a software installation package, and the computer may include electronic equipment or a server.

在上述实施例中,计算机可读存储介质可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据区块链节点的使用所创建的数据等。例如,区块链中可存储商户的来源字段、来源字段对应的处理类名、处理类名对应的通知处理逻辑、通知来源列表、预设通知规则等,在此不做限定。In the above 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, at least one application program required for a function, etc.; the storage data area may store blocks according to Data created using the link nodes, etc. For example, the blockchain can store the source field of the merchant, the processing class name corresponding to the source field, the notification processing logic corresponding to the processing class name, the notification source list, the preset notification rules, etc., which are not limited here.

本申请实施例所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in the embodiments of this application is a new application model of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain is essentially a decentralized database. It is a series of data blocks generated using cryptographic methods. Each data block contains information about a batch of network transactions and is used to verify its Validity of information (anti-counterfeiting) and generation of the next block. Blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模式并不一定是本申请所必须的。It should be noted that for the sake of simple description, the foregoing method embodiments are expressed as a series of action combinations. However, those skilled in the art should know that the present application is not limited by the described action sequence. Because in accordance with this application, certain steps may be performed in other orders or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modes involved are not necessarily necessary for this application.

在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above embodiments, each embodiment is described with its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.

在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如至少一个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device can be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, at least one unit or component may be combined or integrated into Another system, or some features can be ignored, or not implemented. On the other hand, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection of the devices or units may be in electrical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到至少一个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。A unit described as a separate component may or may not be physically separate. A component shown as a unit may or may not be a physical unit, that is, it may be located in one place, or it may be distributed to 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 this embodiment.

另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件程序模式的形式实现。In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software program mode.

集成的单元如果以软件程序模式的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储器中。根据这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储器中,包括若干指令用以使得一台计算机(可为个人计算机、服务器或者网络设备等)执行本申请各个实施例方法的全部或部分步骤。而前述的存储器包括:U盘、只读存储器(read-only memory,ROM)、随机存取存储器(random accessmemory,RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Integrated units may be stored in a computer-readable memory when implemented as a software program model and sold or used as a stand-alone product. According to this understanding, the technical solution of the present application is essentially or contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a memory, It includes several instructions to cause a computer (which can be a personal computer, a server or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, magnetic disk or optical disk and other media that can store program code.

以上对本申请实施例进行了详细介绍,本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想;同时,对于本领域的一般技术人员,依据本申请的思想,在具体实施方式及应用范围上均会有改变之处,综上,本说明书内容不应理解为对本申请的限制。The embodiments of the present application have been introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and the core idea of the present application; at the same time, for Those of ordinary skill in the art will have changes in the specific implementation and application scope based on the ideas of the present application. In summary, the content of this description should not be understood as a limitation of the present application.

Claims (8)

Translated fromChinese
1.一种事件通知方法,其特征在于,包括:1. An event notification method, characterized by including:若检测到目标用户的待通知事件,则获取所述待通知事件的来源信息和业务参数;If an event to be notified for the target user is detected, the source information and business parameters of the event to be notified are obtained;确定与所述来源信息对应的所述目标用户的目标通知处理逻辑,所述目标通知处理逻辑用于定义所述目标用户的待通知事件的业务参数的处理方法;Determine the target notification processing logic of the target user corresponding to the source information, and the target notification processing logic is used to define a processing method for the business parameters of the event to be notified to the target user;基于所述目标通知处理逻辑对所述业务参数进行处理,得到所述待通知事件的事件传输报文;Process the service parameters based on the target notification processing logic to obtain the event transmission message of the event to be notified;向所述目标用户发送所述事件传输报文;Send the event transmission message to the target user;其中,所述确定与所述来源信息对应的所述目标用户的目标通知处理逻辑,包括:Wherein, the target notification processing logic for determining the target user corresponding to the source information includes:获取所述来源信息对应的来源字段;Obtain the source field corresponding to the source information;基于所述来源字段,确定与所述来源信息对应的所述目标用户的目标通知处理逻辑;Based on the source field, determine the target notification processing logic of the target user corresponding to the source information;所述基于所述来源字段,确定与所述来源信息对应的所述目标用户的目标通知处理逻辑,包括:The target notification processing logic for determining the target user corresponding to the source information based on the source field includes:从通知来源列表中,查找所述来源字段对应的处理类名;From the notification source list, find the processing class name corresponding to the source field;若所述来源字段对应的处理类名的数量大于1,则从所述来源字段对应的处理类名中选取目标处理类名,将所述目标处理类名对应的通知处理逻辑,作为与所述来源信息对应的所述目标用户的目标通知处理逻辑;If the number of processing class names corresponding to the source field is greater than 1, select a target processing class name from the processing class names corresponding to the source field, and use the notification processing logic corresponding to the target processing class name as the The target notification processing logic of the target user corresponding to the source information;所述从所述来源字段对应的处理类名中选取目标处理类名,包括:Selecting a target processing class name from the processing class names corresponding to the source field includes:获取所述业务参数的业务类型和所述来源字段对应的处理类名对应的业务类型之间的第一匹配值;Obtain the 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;获取所述待通知事件的事件类型和所述来源字段对应的处理类名对应的事件类型之间的第二匹配值;Obtain the 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;基于所述第一匹配值和所述第二匹配值,计算所述来源字段对应的处理类名的匹配评价值;Based on the first matching value and the second matching value, calculate the matching evaluation value of the processing class name corresponding to the source field;从所述来源字段对应的处理类名中,选取所述匹配评价值的最大值对应的目标处理类名。From the processing class names corresponding to the source field, select the target processing class name corresponding to the maximum value of the matching evaluation value.2.根据权利要求1所述的方法,其特征在于,所述方法还包括:2. The method according to claim 1, characterized in that, the method further comprises:若所述来源字段对应的处理类名的数量为0,则基于预设通知规则,确定与所述来源信息对应的所述目标用户的目标通知处理逻辑;或者If the number of processing class names corresponding to the source field is 0, determine the target notification processing logic of the target user corresponding to the source information based on the preset notification rules; or若所述来源字段对应的处理类名的数量为1,则将所述来源字段对应的处理类名对应的通知处理逻辑,作为与所述来源信息对应的所述目标用户的目标通知处理逻辑。If the number of processing class names corresponding to the source field is 1, then the notification processing logic corresponding to the processing class name corresponding to the source field is used as the target notification processing logic of the target user corresponding to the source information.3.根据权利要求2所述的方法,其特征在于,所述基于预设通知规则,确定与所述来源信息对应的所述目标用户的目标通知处理逻辑,包括:3. The method according to claim 2, characterized in that, based on preset notification rules, determining the target notification processing logic of the target user corresponding to the source information includes:基于预设通知规则,获取所述业务参数对应的参考业务事项;Based on the preset notification rules, obtain reference business matters corresponding to the business parameters;基于所述参考业务事项,确定与所述来源信息对应的所述目标用户的目标通知处理逻辑。Based on the reference business matter, the target notification processing logic of the target user corresponding to the source information is determined.4.根据权利要求2所述的方法,其特征在于,所述基于预设通知规则,确定与所述来源信息对应的所述目标用户的目标通知处理逻辑,包括:4. The method according to claim 2, characterized in that, based on preset notification rules, determining the target notification processing logic of the target user corresponding to the source information includes:若所述来源字段的数量大于1,则基于预设通知规则对所述来源字段进行拼接,得到目标来源字段;If the number of source fields is greater than 1, the source fields are spliced based on the preset notification rules to obtain the target source field;从所述通知来源列表中,查找所述目标来源字段对应的处理类名;From the notification source list, search for the processing class name corresponding to the target source field;基于所述目标来源字段对应的处理类名,确定与所述来源信息对应的所述目标用户的目标通知处理逻辑。Based on the processing class name corresponding to the target source field, the target notification processing logic of the target user corresponding to the source information is determined.5.根据权利要求1-4中任一项所述的方法,其特征在于,所述目标通知处理逻辑包括所述业务参数的加密方式、接口请求方式和报文体解析方式,所述业务参数的数量大于1,所述基于所述目标通知处理逻辑对所述业务参数进行处理,得到所述待通知事件的事件传输报文,包括:5. The method according to any one of claims 1-4, characterized in that the target notification processing logic includes an encryption method, an interface request method and a message body parsing method of the service parameters, and the service parameters The number is greater than 1. The business parameters are processed based on the target notification processing logic to obtain the event transmission message of the event to be notified, including:基于所述业务参数的加密方式,获取所述业务参数的加密信息;Based on the encryption method of the business parameters, obtain the encryption information of the business parameters;基于所述接口请求方式和所述报文体解析方式对所述业务参数的加密信息进行排序,得到所述待通知事件的事件传输报文。The encrypted information of the service parameters is sorted based on the interface request method and the message body parsing method to obtain an event transmission message of the event to be notified.6.一种事件通知装置,其特征在于,包括:6. An event notification device, characterized in that it includes:获取单元,用于若检测到目标用户的待通知事件,则获取所述待通知事件的来源信息和业务参数;An acquisition unit, configured to acquire the source information and business parameters of the event to be notified if an event to be notified of the target user is detected;确定单元,用于确定与所述来源信息对应的所述目标用户的目标通知处理逻辑,所述目标通知处理逻辑用于定义所述目标用户的待通知事件的业务参数的处理方法;A determining unit configured to determine the target notification processing logic of the target user corresponding to the source information, and the target notification processing logic is used to define a processing method for the business parameters of the event to be notified of the target user;生成单元,用于基于所述目标通知处理逻辑对所述业务参数进行处理,得到所述待通知事件的事件传输报文;A generating unit, configured to process the service parameters based on the target notification processing logic to obtain the event transmission message of the event to be notified;发送单元,用于向所述目标用户发送所述事件传输报文;A sending unit, configured to send the event transmission message to the target user;所述确定单元具体用于获取所述来源信息对应的来源字段;基于所述来源字段确定与所述来源信息对应的所述目标用户的目标通知处理逻辑;The determining unit is specifically configured to obtain the source field corresponding to the source information; and determine the target notification processing logic of the target user corresponding to the source information based on the source field;所述确定单元具体用于从通知来源列表中,查找所述来源字段对应的处理类名;若所述来源字段对应的处理类名的数量大于1,则从所述来源字段对应的处理类名中选取目标处理类名,将所述目标处理类名对应的通知处理逻辑,作为与所述来源信息对应的所述目标用户的目标通知处理逻辑;The determination unit is specifically configured to search for the processing class name corresponding to the source field from the notification source list; if the number of processing class names corresponding to the source field is greater than 1, then search the processing class name corresponding to the source field from the notification source list. Select a target processing class name from , and use 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;所述确定单元具体用于获取所述业务参数的业务类型和所述来源字段对应的处理类名对应的业务类型之间的第一匹配值;获取所述待通知事件的事件类型和所述来源字段对应的处理类名对应的事件类型之间的第二匹配值;基于所述第一匹配值和所述第二匹配值,计算所述来源字段对应的处理类名的匹配评价值;从所述来源字段对应的处理类名中,选取所述匹配评价值的最大值对应的目标处理类名。The determining unit is specifically configured to obtain the 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; obtain the event type and the source of the event to be notified The second matching value between the event types corresponding to the processing class name corresponding to the field; based on the first matching value and the second matching value, calculate the matching evaluation value of the processing class name corresponding to the source field; from the Among the processing class names corresponding to the source field, select the target processing class name corresponding to the maximum value of the matching evaluation value.7.一种计算机设备,其特征在于,包括处理器、存储器和通信接口,其中,所述存储器存储有计算机程序,所述计算机程序被配置由所述处理器执行,所述计算机程序包括用于执行权利要求1-5中任一项所述的方法的步骤的指令。7. A computer device, characterized by comprising a processor, a memory and a communication interface, wherein the memory stores a computer program, the computer program is configured to be executed by the processor, the computer program includes a method for Instructions to perform the steps of the method of any one of claims 1-5.8.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,所述计算机程序使得计算机执行以实现权利要求1-5中任一项所述的方法。8. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program, and the computer program causes the computer to execute to implement the method according to any one of claims 1-5.
CN202210057713.6A2022-01-192022-01-19 Event notification method, device, computer equipment and storage mediumActiveCN114422586B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN202210057713.6ACN114422586B (en)2022-01-192022-01-19 Event notification method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN202210057713.6ACN114422586B (en)2022-01-192022-01-19 Event notification method, device, computer equipment and storage medium

Publications (2)

Publication NumberPublication Date
CN114422586A CN114422586A (en)2022-04-29
CN114422586Btrue CN114422586B (en)2023-10-27

Family

ID=81273666

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN202210057713.6AActiveCN114422586B (en)2022-01-192022-01-19 Event notification method, device, computer equipment and storage medium

Country Status (1)

CountryLink
CN (1)CN114422586B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN116541454B (en)*2023-07-062023-10-20浙江海亮科技有限公司Event configuration method, device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105677347A (en)*2016-01-052016-06-15浪潮通用软件有限公司Method and device for processing data
CN108920222A (en)*2018-07-122018-11-30北京京东金融科技控股有限公司A kind of method and device for business processing of rule-based engine
CN109597882A (en)*2018-12-192019-04-09网易(杭州)网络有限公司A kind of scene session service treating method and apparatus
CN110727526A (en)*2019-09-092020-01-24上海陆家嘴国际金融资产交易市场股份有限公司Big data computing task processing method and system
CN111240858A (en)*2020-01-072020-06-05中国建设银行股份有限公司Event scheduling method and component
CN111740895A (en)*2020-06-162020-10-02东软睿驰汽车技术(沈阳)有限公司Message notification method and device
CN112181612A (en)*2020-08-312021-01-05深圳市优必选科技股份有限公司Task processing method and device, electronic equipment and computer readable storage medium
WO2021031688A1 (en)*2019-08-222021-02-25苏宁云计算有限公司Service parameter acquisition method and apparatus, computer device and storage medium
CN113935322A (en)*2021-10-202022-01-14平安国际智慧城市科技股份有限公司 Case allocation method, device, equipment and medium based on natural language processing

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US8527452B2 (en)*2010-02-182013-09-03International Business Machines CorporationConstruction of rules for use in a complex event processing system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105677347A (en)*2016-01-052016-06-15浪潮通用软件有限公司Method and device for processing data
CN108920222A (en)*2018-07-122018-11-30北京京东金融科技控股有限公司A kind of method and device for business processing of rule-based engine
CN109597882A (en)*2018-12-192019-04-09网易(杭州)网络有限公司A kind of scene session service treating method and apparatus
WO2021031688A1 (en)*2019-08-222021-02-25苏宁云计算有限公司Service parameter acquisition method and apparatus, computer device and storage medium
CN110727526A (en)*2019-09-092020-01-24上海陆家嘴国际金融资产交易市场股份有限公司Big data computing task processing method and system
CN111240858A (en)*2020-01-072020-06-05中国建设银行股份有限公司Event scheduling method and component
CN111740895A (en)*2020-06-162020-10-02东软睿驰汽车技术(沈阳)有限公司Message notification method and device
CN112181612A (en)*2020-08-312021-01-05深圳市优必选科技股份有限公司Task processing method and device, electronic equipment and computer readable storage medium
CN113935322A (en)*2021-10-202022-01-14平安国际智慧城市科技股份有限公司 Case allocation method, device, equipment and medium based on natural language processing

Also Published As

Publication numberPublication date
CN114422586A (en)2022-04-29

Similar Documents

PublicationPublication DateTitle
US11854003B2 (en)Signature verification method, apparatus, and system
CN113243094B (en)Zero knowledge proof payment using blockchain
US7673332B2 (en)Method and system for access authentication
CN110879903A (en)Evidence storage method, evidence verification method, evidence storage device, evidence verification device, evidence storage equipment and evidence verification medium
US10032037B1 (en)Establishing application trust levels using taint propagation as a service
US9401911B2 (en)One-time password certificate renewal
US20230108983A1 (en)Digital Content Control Based on Nonfungible Tokens
CN110599277A (en)Inventory deduction method and device
US20230306128A1 (en)Systems and methods for using secure, encrypted communications across distributed computer networks to provide variable resiliency when indexing blockchain states for performing blockchain operations in decentralized applications using cryptography-based digital repositories
US11997216B2 (en)Systems and methods for maintaining secure, encrypted communications across distributed computer networks by linking cryptography-based digital repositories in order to perform blockchain operations in decentralized applications
JP2022546073A (en) Connecting web publisher inventory to programmatic exchanges without third party cookies
TWI763392B (en) Registration Method and System of Institution Identification Number
CN114500630A (en) Method, apparatus, system, storage medium and electronic device for message push
WO2024193119A1 (en)Implementation method and device for third-party payment service
CN116150234A (en)Block chain-based data certification method, device, equipment and medium
CN114422586B (en) Event notification method, device, computer equipment and storage medium
US12219068B2 (en)Systems and methods for using secure, encrypted communications across distributed computer networks to efficiently index blockchain states for performing blockchain operations in decentralized applications using cryptography-based digital repositories
WO2022088710A1 (en)Mirror image management method and apparatus
US12206788B2 (en)Systems and methods for using secure, encrypted communications across distributed computer networks to efficiently update cryptography-based digital repositories for performing blockchain operations in decentralized applications
US12244722B2 (en)Systems and methods for selecting secure, encrypted communications across distributed computer networks for cryptography-based digital repositories in order to perform blockchain operations in decentralized
CN106912118B (en) A method, device and system for creating a service number
JP2024531874A (en) Publisher-authorized activation in a cookieless authentication environment
CN110781523B (en)Method and apparatus for processing information
CN114201264A (en) A verification method, device, device and storage medium for mixed object placement
CN113609516A (en)Information generation method and device based on abnormal user, electronic equipment and medium

Legal Events

DateCodeTitleDescription
PB01Publication
PB01Publication
SE01Entry into force of request for substantive examination
SE01Entry into force of request for substantive examination
GR01Patent grant
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20250429

Address after:Unit 3509, 35th Floor, 1333 Lujiazui Ring Road, Pudong New Area Pilot Free Trade Zone, Shanghai, 200120

Patentee after:Ping An Pay Electronic Payment Co.,Ltd.

Country or region after:China

Address before:Unit 2605, 26 / F, Zhaobang fund Rong building, No. 319, Fuhua Road, Futian street, Futian District, Shenzhen City, Guangdong Province

Patentee before:Pingan Payment Technology Service Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp