







技术领域technical field
本发明涉及计算机技术领域及数字医疗领域,特别涉及一种电子消费券的弹窗通知方法、系统、计算机设备及介质。The present invention relates to the field of computer technology and the field of digital medical care, in particular to a pop-up window notification method, system, computer equipment and media for electronic consumption coupons.
背景技术Background technique
电子消费券发放是一种常见的互联网服务。目前,许多医疗平台为了减轻用户的消费负担,会制定各种电子消费券发放给客户端APP上(例如问诊电子消费券),作为奖励供客户端APP使用。而电子消费券发放成功后需要通知到用户进行使用,目前通知一般是采用用户主动查询的方式,用户进入具体的券列表页面然后进行查询,由于券列表在APP中入口较深,不容易看到。因此随着计算机技术的不断发展,研发人员渴望将电子消费券及时通知给用户。The issuance of electronic consumer coupons is a common Internet service. At present, in order to reduce the consumption burden of users, many medical platforms will formulate various electronic consumption coupons and distribute them to client APPs (such as electronic consumption coupons for medical consultation) as rewards for client APPs to use. After the electronic consumer coupons are issued successfully, users need to be notified to use them. At present, the notification is generally in the form of user active inquiry. The user enters the specific coupon list page and then inquires. Since the coupon list is deep in the APP, it is not easy to see. . Therefore, along with the continuous development of computer technology, researchers are eager to notify users of electronic consumption coupons in time.
在现有技术中,用户登录APP后,APP首先需要对接多种类型的电子消费券系统,并在每个电子消费券系统中去主动查询是否存在待通知的电子消费券,如果查询成功后,生成待通知的电子消费券的通知消息进行通知。由于对接不同的电子消费券系统去主动查询是否存在待通知的电子消费券,因此需要开发不同的电子消费券系统,从而造成研发资源浪费,同时当某个电子消费券系统的服务停止后,无法及时将电子消费券通知给用户,从而降低了通知效率。In the existing technology, after the user logs in to the APP, the APP first needs to interface with various types of electronic consumer voucher systems, and actively inquire whether there are electronic consumer vouchers to be notified in each electronic consumer voucher system. If the query is successful, Generate a notification message of the electronic consumer coupon to be notified for notification. Since different electronic consumer coupon systems are connected to actively inquire whether there are electronic consumer coupons to be notified, it is necessary to develop different electronic consumer coupon systems, resulting in waste of research and development resources. The electronic consumption coupon is notified to the user in time, thereby reducing the notification efficiency.
发明内容Contents of the invention
基于此,有必要针对通知效率低的问题,提供一种电子消费券的弹窗通知方法、系统、计算机设备及介质。Based on this, it is necessary to provide a pop-up window notification method, system, computer equipment and medium for electronic consumer coupons to solve the problem of low notification efficiency.
一种电子消费券的弹窗通知方法,应用于客户端,方法包括:在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券;若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息;基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。A pop-up window notification method for electronic consumption coupons, which is applied to a client, and the method includes: when receiving an activation instruction for an APP to be used, calling a pop-up application program interface according to the activation instruction, and determining at least one electronic consumption coupon to be notified ; If there is at least one target data tag of the electronic consumer coupon to be notified in the APP to be used, create at least one notification message of the electronic consumer coupon to be notified; generate at least one target pop-up window based on the notification message and the pop-up window API, and send The target pop-up window is displayed.
在其中一个实施例中,根据启动指令调用弹窗应用程序接口,包括:根据启动指令启动待使用APP;在待使用APP启动完成时,创建弹窗应用程序接口调用请求;将调用请求发送至服务端,并接收来自服务端针对客户端响应的弹窗应用程序接口。In one of the embodiments, calling the pop-up application program interface according to the startup instruction includes: starting the APP to be used according to the startup instruction; when the startup of the APP to be used is completed, creating a pop-up window API call request; sending the call request to the service terminal, and receive the pop-up API from the server responding to the client.
在其中一个实施例中,确定至少一个待通知电子消费券,包括:接收来自服务端发送的至少一个待通知电子消费券;或者,获取待使用APP的用户登录信息;收集用户登录信息的历史消费记录;根据历史消费记录计算消费总金额、消费次数以及消费类型权重;基于消费总金额、消费次数以及消费类型权重在预设电子消费券库中确定至少一个待通知电子消费券。In one of the embodiments, determining at least one electronic consumption coupon to be notified includes: receiving at least one electronic consumption coupon to be notified sent from the server; or obtaining the user login information of the APP to be used; collecting the historical consumption of the user login information Recording; calculating the total consumption amount, consumption frequency and consumption type weight according to the historical consumption records; determining at least one electronic consumption coupon to be notified in the preset electronic consumption coupon library based on the total consumption amount, consumption frequency and consumption type weight.
在其中一个实施例中,基于消费总金额、消费次数以及消费类型权重在预设电子消费券库中确定至少一个待通知电子消费券,包括:根据消费总金额、消费次数以及消费类型权重计算最小目标解;在预设策略表中映射出最小目标解对应的电子消费券通知策略;根据电子消费券通知策略在预设电子消费券库中选取至少一个待通知电子消费券;其中,最小目标解计算公式为:arg min(ω1×(B.κ+C.κ));其中,arg min()为求最小目标解函数,ω1为加权系数,B为消费总金额,C为消费次数,κ为消费类型权重。In one of the embodiments, determining at least one electronic consumer coupon to be notified in the preset electronic consumer coupon library based on the total amount of consumption, the number of times of consumption and the weight of consumption type includes: calculating the minimum Target solution; map the electronic consumer coupon notification strategy corresponding to the minimum target solution in the preset strategy table; select at least one electronic consumer coupon to be notified in the preset electronic consumer coupon library according to the electronic consumer coupon notification strategy; wherein, the minimum target solution The calculation formula is: arg min(ω1 ×(B.κ+C.κ)); among them, arg min() is the minimum target solution function, ω1 is the weighting coefficient, B is the total amount of consumption, and C is the number of consumption , κ is the weight of consumption type.
在其中一个实施例中,确定至少一个待通知电子消费券之后,还包括:获取至少一个待通知电子消费券的业务描述文本;获取待使用APP上的用户信息;根据用户信息查询待使用APP上预先分配的电子消费券的数据标签对应的键值对,得到至少一个目标键值对;判断多个目标业务描述文本中是否存在与至少一个待通知电子消费券的业务描述文本所一致的目标业务描述文本;若是,则确定待使用APP中存在至少一个待通知电子消费券的目标数据标签;或者,若否,则确定待使用APP中不存在至少一个待通知电子消费券的目标数据标签。In one of the embodiments, after determining at least one electronic consumer coupon to be notified, it also includes: obtaining the business description text of at least one electronic consumer coupon to be notified; obtaining user information on the APP to be used; querying the APP to be used according to the user information The key-value pair corresponding to the data tag of the pre-allocated electronic consumer coupon is obtained to obtain at least one target key-value pair; determine whether there is a target business consistent with the business description text of at least one electronic consumer coupon to be notified among multiple target business description texts Description text; if yes, then determine that there is at least one target data tag of the electronic consumer coupon to be notified in the APP to be used; or, if not, then determine that there is not at least one target data tag of the electronic consumer coupon to be notified in the APP to be used.
在其中一个实施例中,将目标弹窗进行展示,包括:当目标弹窗为单个时,将单个目标弹窗进行展示;或者,当目标弹窗为多个时,获取每个目标弹窗的优先级;根据优先级的高低顺序将多个目标弹窗逐一展示;或者根据优先级的高低顺序将多个目标弹窗按照预设高低百分比窗口进行逐一制作排列,得到排列后的界面,将排列后的界面进行展示。In one of the embodiments, displaying the target pop-up window includes: when there is a single target pop-up window, displaying a single target pop-up window; or, when there are multiple target pop-up windows, obtaining the information of each target pop-up window Priority: Display multiple target pop-up windows one by one according to the order of priority; or make and arrange multiple target pop-up windows one by one according to the preset high and low percentage windows according to the high and low order of priority, and get the arranged interface, which will be arranged The following interface will be displayed.
一种电子消费券的弹窗通知方法,应用于服务端,方法包括:收集需要发放电子消费券的用户信息,并将收集的用户信息保存为集合;遍历集合中的每个用户标识,并对每个用户标识绑定预设电子消费券,以及调用标签系统对绑定消费券的用户标识标记预设电子消费券的数据标签,得到预先分配的电子消费券的数据标签。A pop-up window notification method for electronic consumer coupons, which is applied to a server. The method includes: collecting user information that needs to be issued electronic consumer coupons, and saving the collected user information as a set; traversing each user ID in the set, and Each user ID is bound to a preset electronic coupon, and the label system is called to mark the data tag of the preset electronic coupon on the user ID bound to the coupon, so as to obtain the data tag of the pre-assigned electronic coupon.
一种电子消费券的弹窗通知系统,应用于客户端,系统包括:待通知电子消费券确定模块,用于在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券;通知消息创建模块,用于若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息;弹窗展示模块,用于基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。A pop-up window notification system for electronic consumer coupons, which is applied to a client. The system includes: a confirmation module for electronic consumer coupons to be notified, which is used to call a pop-up window application program interface according to the startup command when receiving a startup command for the APP to be used , and determine at least one electronic consumer coupon to be notified; the notification message creation module is used to create a notification message of at least one electronic consumer coupon to be notified if there is at least one target data tag of the electronic consumer coupon to be notified in the APP to be used; The window display module is configured to generate at least one target pop-up window based on the notification message and the pop-up window API, and display the target pop-up window.
一种计算机设备,包括存储器和处理器,存储器中存储有计算机可读指令,计算机可读指令被处理器执行时,使得处理器执行上述电子消费券的弹窗通知方法的步骤。A computer device, comprising a memory and a processor, wherein computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by the processor, the processor is made to perform the steps of the above method for pop-up window notification of electronic consumer coupons.
一种存储有计算机可读指令的介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行上述电子消费券的弹窗通知方法的步骤。A medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the steps of the above method for pop-up notification of electronic consumer coupons.
上述电子消费券的弹窗通知方法、系统、设备和介质,电子消费券的弹窗通知系统的客户端首先在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券,若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息,然后基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。由于本申请在电子消费券发放成功后,通过对发放电子消费券的APP标记消费券的数据标签,使得在APP启动时通过查询是否存在相应消费券的数据标签即可进行弹窗通知,从而避免了开发不同的电子消费券系统,节省了研发资源,同时提升了通知效率。The pop-up window notification method, system, device and medium of the above-mentioned electronic consumer coupon, the client of the pop-up window notification system of the electronic consumer coupon first calls the pop-up window application program interface according to the startup command when receiving the startup instruction for the APP to be used, And determine at least one electronic consumption coupon to be notified, if there is at least one target data tag of the electronic consumption coupon to be notified in the APP to be used, create a notification message of at least one electronic consumption coupon to be notified, and then based on the notification message and the pop-up window application The interface generates at least one target pop-up window and displays the target pop-up window. Since this application marks the data label of the coupon on the APP that issued the electronic coupon after the electronic coupon is successfully issued, the pop-up window notification can be performed by checking whether there is a data tag of the corresponding coupon when the APP is started, thereby avoiding In order to develop different electronic consumer coupon systems, it saves R&D resources and improves notification efficiency.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本发明的实施例,并与说明书一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description serve to explain the principles of the invention.
图1为本申请一个实施例中提供的电子消费券的弹窗通知方法的实施环境图;FIG. 1 is an implementation environment diagram of a pop-up window notification method for electronic consumer coupons provided in an embodiment of the present application;
图2为本申请一个实施例中计算机设备的内部结构示意图;FIG. 2 is a schematic diagram of the internal structure of a computer device in an embodiment of the present application;
图3为本申请一个客户端实施例中提供的电子消费券的弹窗通知方法的方法示意图;Fig. 3 is a method schematic diagram of a pop-up window notification method of an electronic consumer voucher provided in a client embodiment of the present application;
图4是本申请一个实施例中提供的电子消费券弹窗示意图;Fig. 4 is a schematic diagram of an electronic consumer coupon pop-up window provided in an embodiment of the present application;
图5是本申请另一个实施例中提供的多个电子消费券弹窗排列示意图;Fig. 5 is a schematic diagram of a pop-up window arrangement of multiple electronic consumer coupons provided in another embodiment of the present application;
图6为本申请一个服务端实施例中提供的电子消费券的弹窗通知方法的方法示意图;Fig. 6 is a method schematic diagram of a pop-up window notification method for electronic consumer coupons provided in a server embodiment of the present application;
图7是本申请提供的一种电子消费券的弹窗通知过程的过程示意框图;FIG. 7 is a schematic block diagram of a pop-up window notification process of an electronic consumer coupon provided by the present application;
图8是本申请实施例提供的一种电子消费券的弹窗通知系统的系统结构示意图。Fig. 8 is a schematic diagram of the system structure of a pop-up window notification system for electronic consumer coupons provided by an embodiment of the present application.
具体实施方式detailed description
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。It can be understood that the terms "first", "second" and the like used in this application may be used to describe various elements herein, but these elements are not limited by these terms. These terms are only used to distinguish one element from another element.
图1为一个实施例中提供的电子消费券的弹窗通知方法的实施环境图,如图1所示,在该实施环境中,包括服务端110以及客户端120。FIG. 1 is an implementation environment diagram of a pop-up window notification method for electronic consumer coupons provided in an embodiment. As shown in FIG. 1 , in this implementation environment, a
服务端110可以为服务器,该服务器具体可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器,例如为标记预设电子消费券的数据标签的服务器设备。服务端110收集需要发放电子消费券的用户信息,并将收集的用户信息保存为集合,服务端110遍历集合中的每个用户标识,并对每个用户标识绑定预设电子消费券,以及调用标签系统对绑定消费券的用户标识标记预设电子消费券的数据标签,得到预先分配的电子消费券的数据标签。客户端120在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券,若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,客户端120创建至少一个待通知电子消费券的通知消息,客户端120基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。The
需要说明的是,客户端120可为智能手机、平板电脑、笔记本电脑、台式计算机等,但并不局限于此。服务端110以及客户端120可以通过蓝牙、USB(Universal Serial Bus,通用串行总线)或者其他通讯连接方式进行连接,本发明在此不做限制。It should be noted that the
图2为一个实施例中计算机设备的内部结构示意图。如图2所示,该计算机设备包括通过系统总线连接的处理器、介质、存储器和网络接口。其中,该计算机设备的介质存储有操作系统、数据库和计算机可读指令,数据库中可存储有控件信息序列,该计算机可读指令被处理器执行时,可使得处理器实现一种电子消费券的弹窗通知方法。该计算机设备的处理器用于提供计算和控制能力,支撑整个设备的运行。该计算机设备的存储器中可存储有计算机可读指令,该计算机可读指令被处理器执行时,可使得处理器执行一种电子消费券的弹窗通知方法。该计算机设备的网络接口用于与终端连接通信。本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。其中,介质为一种可读的存储介质。Fig. 2 is a schematic diagram of the internal structure of a computer device in an embodiment. As shown in FIG. 2, the computer device includes a processor, a medium, a memory, and a network interface connected through a system bus. Wherein, the medium of the computer device stores an operating system, a database, and computer-readable instructions, and the database can store control information sequences. When the computer-readable instructions are executed by the processor, the processor can realize an electronic consumer voucher Pop-up notification method. The processor of the computer equipment is used to provide computing and control capabilities to support the operation of the entire equipment. Computer-readable instructions may be stored in the memory of the computer device, and when the computer-readable instructions are executed by the processor, the processor may execute a pop-up window notification method for electronic consumer coupons. The network interface of the computer device is used for connecting and communicating with the terminal. Those skilled in the art can understand that the structure shown in Figure 2 is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation to the computer equipment on which the solution of the application is applied. The specific computer equipment can be More or fewer components than shown in the figures may be included, or some components may be combined, or have a different arrangement of components. Wherein, the medium is a readable storage medium.
下面将结合附图3-7,对本申请实施例提供的电子消费券的弹窗通知方法进行详细介绍。该方法可依赖于计算机程序实现,可运行于基于冯诺依曼体系的电子消费券的弹窗通知系统上。该计算机程序可集成在应用中,也可作为独立的工具类应用运行。The pop-up window notification method of the electronic consumption coupon provided by the embodiment of the present application will be described in detail below with reference to the accompanying drawings 3-7. The method can be implemented relying on computer programs, and can run on the pop-up window notification system of the electronic consumer coupon based on the von Neumann system. The computer program can be integrated in the application, or run as an independent utility application.
本申请实施例可以基于人工智能技术对相关的数据进行获取和处理。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。The embodiments of the present application may acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .
人工智能基础技术一般包括如传感器、专用人工智能芯片、云计算、分布式存储、大电子消费券的弹窗通知技术、操作/交互系统、机电一体化等技术。人工智能软件技术主要包括计算机视觉技术、机器人技术、生物识别技术、语音处理技术、自然语言处理技术以及机器学习/深度学习等几大方向。Artificial intelligence basic technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, pop-up notification technology for large electronic consumer coupons, operation/interaction systems, and mechatronics. Artificial intelligence software technology mainly includes computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning/deep learning.
请参见图3,为本申请实施例提供了一种电子消费券的弹窗通知方法的流程示意图,应用于客户端。如图3所示,本申请实施例的方法可以包括以下步骤:Please refer to FIG. 3 , which provides a schematic flow chart of a pop-up window notification method for electronic consumer coupons in an embodiment of the present application, which is applied to a client. As shown in Figure 3, the method of the embodiment of the present application may include the following steps:
S101,在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券;S101, when receiving the startup instruction for the APP to be used, call the pop-up application program interface according to the startup instruction, and determine at least one electronic consumption coupon to be notified;
其中,APP是安装在客户端上的软件平台,例如待使用APP为智能问诊软件平台。启动指令是用户通过触发待使用APP生成的,在生成启动指令后,客户端可基于该指令进入待使用APP中。弹窗应用程序接口是提供弹窗服务的方法函数代码片段,该方法函数代码片段是依据一定的格式编写的可执行文件(即脚本),该脚本可与相关参数结合后生成一个目标弹窗。Wherein, the APP is a software platform installed on the client, for example, the APP to be used is an intelligent consultation software platform. The startup instruction is generated by the user by triggering the APP to be used. After the startup instruction is generated, the client can enter the APP to be used based on the instruction. The pop-up application program interface is a method function code fragment that provides pop-up service. The method function code fragment is an executable file (ie, a script) written in a certain format. The script can be combined with relevant parameters to generate a target pop-up window.
通常,待通知电子消费券是来自服务端发送的,或者客户端根据用户基础信息自动智能生成的。待通知电子消费券是假定需要进行通知的电子消费券,如果APP中存在该电子消费券的数据标签,说明服务端已经对该用户发放了此券,可以进行弹窗通知。Usually, the electronic consumer coupon to be notified is sent from the server, or is automatically and intelligently generated by the client based on the basic information of the user. The electronic consumption coupon to be notified is an electronic consumption coupon that needs to be notified. If there is a data tag of the electronic consumption coupon in the APP, it means that the server has issued the coupon to the user, and a pop-up notification can be performed.
在本申请实施例中,在接收到针对待使用APP的启动指令时,根据该启动指令启动待使用APP,在待使用APP启动完成时,可以创建弹窗应用程序接口调用请求,并将调用请求发送至服务端,然后接收来自服务端针对客户端响应的弹窗应用程序接口,最后确定出至少一个待通知电子消费券。In the embodiment of the present application, when receiving the startup instruction for the APP to be used, the APP to be used is started according to the startup instruction. Send to the server, then receive a pop-up API from the server responding to the client, and finally determine at least one electronic consumer coupon to be notified.
具体的,在确定至少一个待通知电子消费券时,可以是直接接收来自服务端发送的至少一个待通知电子消费券,例如服务端统一对每个客户端发待通知电子消费券,让客户端根据该消费券自行判断用户是否具有该电子消费券,该方式简单单一,统一由服务端管理,保障了待通知电子消费券的安全。或者客户端首先获取待使用APP的用户登录信息,然后收集用户登录信息的历史消费记录,其次根据历史消费记录计算消费总金额、消费次数以及消费类型权重,最后基于消费总金额、消费次数以及消费类型权重在预设电子消费券库中确定至少一个待通知电子消费券。Specifically, when determining at least one electronic consumer coupon to be notified, it may be to directly receive at least one electronic consumer coupon to be notified sent from the server, for example, the server uniformly sends an electronic consumer coupon to be notified to each client, so that the client According to the consumption voucher, it is judged whether the user owns the electronic consumption voucher. This method is simple and single, and is uniformly managed by the server, which ensures the security of the electronic consumption voucher to be notified. Or the client first obtains the user login information of the APP to be used, and then collects the historical consumption records of the user login information, and then calculates the total consumption amount, consumption frequency and consumption type weight based on the historical consumption records, and finally based on the total consumption amount, consumption frequency and consumption type The type weight determines at least one electronic consumer coupon to be notified in the preset electronic consumer coupon library.
具体的,在基于消费总金额、消费次数以及消费类型权重在预设电子消费券库中确定至少一个待通知电子消费券时,首先根据消费总金额、消费次数以及消费类型权重计算最小目标解,然后在预设策略表中映射出最小目标解对应的电子消费券通知策略,最后根据电子消费券通知策略在预设电子消费券库中选取至少一个待通知电子消费券;其中,Specifically, when determining at least one electronic consumer coupon to be notified in the preset electronic consumer coupon library based on the total consumption amount, consumption times and consumption type weight, first calculate the minimum target solution according to the total consumption amount, consumption frequency and consumption type weight, Then map the electronic consumer coupon notification strategy corresponding to the minimum target solution in the preset strategy table, and finally select at least one electronic consumer coupon to be notified in the preset electronic consumer coupon library according to the electronic consumer coupon notification strategy; wherein,
最小目标解计算公式为:arg min(ω1×(B.κ+C.κ));The calculation formula of the minimum target solution is: arg min(ω1 ×(B.κ+C.κ));
其中,arg min()为求最小目标解函数,ω1为加权系数,B为消费总金额,C为消费次数,κ为消费类型权重。Among them, arg min() is the minimum target solution function, ω1 is the weighting coefficient, B is the total amount of consumption, C is the number of consumption, and κ is the weight of consumption type.
在一种可能的实现方式中,首先用户在客户端上触发待使用APP,触发后客户端根据触发指令启动待使用APP,待使用APP启动后可调用弹窗应用程序接口,并通过接收来自服务端的一个或者多个待通知电子消费券或者客户端自身通过历史消费记录来智能生成一个或者多个待通知电子消费券。In a possible implementation, firstly, the user triggers the APP to be used on the client. After the trigger, the client starts the APP to be used according to the trigger command. One or more electronic consumer coupons to be notified on the terminal or the client itself intelligently generates one or more electronic consumer coupons to be notified through historical consumption records.
需要说明的是,一个或者多个待通知电子消费券并不是直接给用户使用的,一个或者多个待通知电子消费券是用来判断该用户是否具有该电子消费券的。It should be noted that the one or more electronic consumption coupons to be notified are not directly used by the user, and the one or more electronic consumption coupons to be notified are used to determine whether the user has the electronic consumption coupon.
S102,若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息;S102, if there is at least one target data tag of the electronic consumption coupon to be notified in the APP to be used, create a notification message of at least one electronic consumption coupon to be notified;
其中,目标数据标签是一个键值对,例如<key=“标签标识”,value=“业务描述文本”>。该数据标签是在服务端给某个用户发放消费券结束后,对该用户标记的优惠卷信息。Wherein, the target data label is a key-value pair, such as <key="label identification", value="service description text">. The data tag is the coupon information marked on the user after the server has issued coupons to the user.
在本申请实施例中,首先获取至少一个待通知电子消费券的业务描述文本,然后获取待使用APP上的用户信息,再根据用户信息查询待使用APP上预先分配的电子消费券的数据标签对应的键值对,得到至少一个目标键值对,其次提取至少一个目标键值对中的值,得到多个目标业务描述文本,最后判断多个目标业务描述文本中是否存在与至少一个待通知电子消费券的业务描述文本所一致的目标业务描述文本;若是,则确定待使用APP中存在至少一个待通知电子消费券的目标数据标签;或者,若否,则确定待使用APP中不存在至少一个待通知电子消费券的目标数据标签。In this embodiment of the application, first obtain the business description text of at least one electronic consumer coupon to be notified, then obtain the user information on the APP to be used, and then query the corresponding data label of the pre-allocated electronic consumer coupon on the APP to be used according to the user information Key-value pairs to obtain at least one target key-value pair, and then extract the value in at least one target key-value pair to obtain multiple target business description texts, and finally determine whether there is a plurality of target business description texts that are related to at least one email address to be notified. The target business description text consistent with the business description text of the consumer coupon; if so, determine that there is at least one target data tag of the electronic consumer coupon to be notified in the APP to be used; or, if not, determine that there is not at least one target data tag in the APP to be used The target data tag of the e-coupon to be notified.
在一种可能的实现方式中,若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息。In a possible implementation manner, if there is at least one target data tag of an electronic consumption coupon to be notified in the APP to be used, a notification message of at least one electronic consumption coupon to be notified is created.
在另一种可能的实现方式中,若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,说明该用户不具备该电子消费券,因此不将至少一个待通知电子消费券进行弹窗通知。In another possible implementation, if there is at least one target data tag of an electronic consumption coupon to be notified in the APP to be used, it means that the user does not have the electronic consumption coupon, so the at least one electronic consumption coupon to be notified is not processed. Pop-up notification.
具体的,在创建至少一个待通知电子消费券的通知消息时,首先获取预设消息模板,获取待通知电子消费券的数据标签的内容,将该待通知电子消费券的数据标签的内容与预设消息模板进行关联映射,得到通知消息。Specifically, when creating at least one notification message of an electronic consumer coupon to be notified, first obtain a preset message template, obtain the content of the data label of the electronic consumer coupon to be notified, and combine the content of the data label of the electronic consumer coupon to be notified with the preset Set the message template for association mapping to get notification messages.
S103,基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。S103. Generate at least one target pop-up window based on the notification message and the pop-up window API, and display the target pop-up window.
其中,弹窗一般是指打开网页、软件、手机APP等的时候自动弹出的窗口。在本申请中电子消费券的弹窗例如图4所示。Among them, the pop-up window generally refers to the window that pops up automatically when opening a webpage, software, mobile APP, etc. The pop-up window of the electronic consumer coupon in this application is shown in Figure 4, for example.
在本申请实施例中,在基于通知消息和弹窗应用程序接口生成至少一个目标弹窗时,若该通知消息为一个待通知消费券的通知消息时,将一个通知消息作为接口参数输入到弹窗应用程序接口中,得到目标接口,执行该目标接口可生成一个弹窗。若该通知消息为多个待通知消费券的通知消息时,将多个通知消息作为接口参数输入到弹窗应用程序接口中,得到目标接口,执行该目标接口可生成多个弹窗。In the embodiment of the present application, when at least one target pop-up window is generated based on the notification message and the pop-up window API, if the notification message is a notification message of a consumption coupon to be notified, a notification message is input into the pop-up window as an interface parameter. In the window application program interface, the target interface is obtained, and a pop-up window can be generated by executing the target interface. If the notification message is a notification message of multiple consumer coupons to be notified, input the multiple notification messages as interface parameters into the pop-up window application program interface to obtain a target interface, and execute the target interface to generate multiple pop-up windows.
进一步地,在将目标弹窗进行展示时,首先当目标弹窗为单个时,将单个目标弹窗进行展示;或者,当目标弹窗为多个时,获取每个目标弹窗的优先级;根据优先级的高低顺序将多个目标弹窗逐一展示;或者根据优先级的高低顺序将多个目标弹窗按照预设高低百分比窗口进行逐一制作排列,得到排列后的界面,将排列后的界面进行展示。Further, when displaying the target pop-up window, firstly, when the target pop-up window is single, display a single target pop-up window; or, when there are multiple target pop-up windows, obtain the priority of each target pop-up window; Display multiple target pop-up windows one by one according to the order of priority; or make and arrange multiple target pop-up windows one by one according to the preset high and low percentage windows according to the high and low order of priority to obtain the arranged interface, and then arrange the arranged interface to show.
例如,在存在3个弹窗时,预设高低百分比窗口可以为50%窗口、40%窗口、30%窗口,此时根据优先级的高低顺序将多个目标弹窗按照预设高低百分比窗口进行逐一制作排列,得到排列后的界面例如图5所示。For example, when there are 3 pop-up windows, the preset high and low percentage windows can be 50% window, 40% window, and 30% window. Make arrangements one by one, and the interface after the arrangement is shown in Figure 5, for example.
在一种可能的实现方式中,服务端发放电子消费券成功后,调用用户标签系统给用户打上定义的营销券X标签,然后用户在客户端打开待使用APP平台后,当APP启动后调用弹窗接口,并确定出一个待通知电子消费券,客户端判断待使用APP上登录的用户是否拥有待通知电子消费券的X标签,若用户拥有X标签时,弹窗接口返回弹窗信息并使用弹窗方式通知用户拥有待通知消费券。In a possible implementation, after the server successfully issues the electronic consumption coupon, it calls the user labeling system to label the user with the defined marketing coupon X, and then the user opens the APP platform to be used on the client terminal, and when the APP starts, it calls the pop-up Window interface, and determine an electronic coupon to be notified, the client judges whether the user who logs in on the APP has the X tag of the electronic coupon to be notified, if the user has an X tag, the pop-up interface returns the pop-up information and uses A pop-up window is used to notify the user that he or she has a coupon to be notified.
在本申请实施例中,客户端首先在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券,若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息,然后基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。由于本申请在电子消费券发放成功后,通过对发放电子消费券的APP标记消费券的数据标签,使得在APP启动时通过查询是否存在相应消费券的数据标签即可进行弹窗通知,从而避免了开发不同的电子消费券系统,节省了研发资源,同时提升了通知效率。In the embodiment of the present application, when the client first receives the startup instruction for the APP to be used, it calls the pop-up application program interface according to the startup instruction, and determines at least one electronic consumption coupon to be notified. If there is at least one electronic coupon in the APP to be used When the target data tag of the electronic consumer coupon is to be notified, at least one notification message of the electronic consumer coupon to be notified is created, and then at least one target pop-up window is generated based on the notification message and the pop-up window API, and the target pop-up window is displayed. Since this application marks the data label of the coupon on the APP that issued the electronic coupon after the electronic coupon is successfully issued, the pop-up window notification can be performed by checking whether there is a data tag of the corresponding coupon when the APP is started, thereby avoiding In order to develop different electronic consumer coupon systems, it saves R&D resources and improves notification efficiency.
请参见图6为本申请实施例提供了一种电子消费券的弹窗通知方法的流程示意图,应用于服务端。如图6所示,本申请实施例的方法可以包括以下步骤:Please refer to FIG. 6 , which provides a schematic flowchart of a pop-up window notification method for electronic consumer coupons in the embodiment of the present application, which is applied to the server. As shown in Figure 6, the method of the embodiment of the present application may include the following steps:
S201,收集需要发放电子消费券的用户信息,并将收集的用户信息保存为集合;S201, collecting user information that needs to issue electronic consumer coupons, and saving the collected user information as a set;
在本申请实施例中,服务端首先确定待发放电子消费券的多个目标用户,然后获取每个目标用户的用户信息,并根据多个目标用户的用户数量创建缓存集合,最后将每个目标用户的用户信息依次存入缓存集合中。In the embodiment of this application, the server first determines multiple target users to be issued electronic consumer coupons, then obtains the user information of each target user, and creates a cache set according to the number of multiple target users, and finally saves each target user The user information of the user is sequentially stored in the cache collection.
具体的,在确定待发放电子消费券的多个目标用户时,可在用户数据库采用随机抽取算法遍历出预设数量的用户,或者分析每个用户的消费行为,并基于消费行为确定出待发放电子消费券的多个目标用户。Specifically, when determining multiple target users of electronic consumer coupons to be issued, a preset number of users can be traversed using a random extraction algorithm in the user database, or the consumption behavior of each user can be analyzed, and the coupons to be issued can be determined based on the consumption behavior. Multiple target users of electronic consumer coupons.
S202,遍历集合中的每个用户标识,并对每个用户标识绑定预设电子消费券,以及调用标签系统对绑定消费券的用户标识标记预设电子消费券的数据标签,得到预先分配的电子消费券的数据标签;S202, traverse each user ID in the set, bind each user ID with a preset electronic coupon, and call the label system to mark the user ID bound with the coupon with the data tag of the preset electronic coupon to obtain the pre-allocated The data label of the electronic consumer coupon;
在一种可能的实现方式中,例如图7所示,图7是本申请提供的一种电子消费券的弹窗通知过程的过程示意框图,首先获取需要发放营销券的用户ListA集合,然后遍历用户ListA集合,使用用户id和营销券模板id调用营销券业务系统发放营销券,其次发放优惠券成功后,调用用户标签系统给用户打上定义的营销券X标签,并当app启动后调用弹窗接口,弹窗接口判断用户是否拥有X标签,最后用户拥有X标签,弹窗接口返回弹窗信息,app使用弹窗方式通知用户拥有营销券。In a possible implementation, for example, as shown in Figure 7, Figure 7 is a schematic block diagram of the pop-up window notification process of an electronic consumer coupon provided by this application, first obtain the user ListA collection that needs to issue marketing coupons, and then traverse User ListA collection, use the user id and marketing coupon template id to call the marketing coupon business system to issue marketing coupons, and then call the user label system to label the user with the defined marketing coupon X label after the coupon is successfully issued, and call the pop-up window when the app starts Interface, the pop-up window interface judges whether the user has the X label, and finally the user has the X label, the pop-up window interface returns the pop-up window information, and the app uses the pop-up window to notify the user that he has the marketing coupon.
在本申请实施例中,客户端首先在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券,若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息,然后基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。由于本申请在电子消费券发放成功后,通过对发放电子消费券的APP标记消费券的数据标签,使得在APP启动时通过查询是否存在相应消费券的数据标签即可进行弹窗通知,从而避免了开发不同的电子消费券系统,节省了研发资源,同时提升了通知效率。In the embodiment of the present application, when the client first receives the startup instruction for the APP to be used, it calls the pop-up application program interface according to the startup instruction, and determines at least one electronic consumption coupon to be notified. If there is at least one electronic coupon in the APP to be used When the target data tag of the electronic consumer coupon is to be notified, at least one notification message of the electronic consumer coupon to be notified is created, and then at least one target pop-up window is generated based on the notification message and the pop-up window API, and the target pop-up window is displayed. Since this application marks the data label of the coupon on the APP that issued the electronic coupon after the electronic coupon is successfully issued, the pop-up window notification can be performed by checking whether there is a data tag of the corresponding coupon when the APP is started, thereby avoiding In order to develop different electronic consumer coupon systems, it saves R&D resources and improves notification efficiency.
下述为本发明系统实施例,可以用于执行本发明方法实施例。对于本发明系统实施例中未披露的细节,请参照本发明方法实施例。The following are system embodiments of the present invention, which can be used to implement the method embodiments of the present invention. For the details not disclosed in the system embodiment of the present invention, please refer to the method embodiment of the present invention.
请参见图8,其示出了本发明一个示例性实施例提供的电子消费券的弹窗通知系统的结构示意图。该电子消费券的弹窗通知系统可以通过软件、硬件或者两者的结合实现成为设备的全部或一部分。该系统1包括待通知电子消费券确定模块10、通知消息创建模块20、弹窗展示模块30。Please refer to FIG. 8 , which shows a schematic structural diagram of a pop-up window notification system for electronic consumer coupons provided by an exemplary embodiment of the present invention. The pop-up window notification system of the electronic consumer coupon can be implemented as all or part of the device through software, hardware or a combination of the two. The
待通知电子消费券确定模块10,用于在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券;The electronic consumption coupon to be notified
通知消息创建模块20,用于若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息;The notification
弹窗展示模块30,用于基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。The pop-up
需要说明的是,上述实施例提供的电子消费券的弹窗通知系统在执行电子消费券的弹窗通知方法时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的电子消费券的弹窗通知系统与电子消费券的弹窗通知方法实施例属于同一构思,其体现实现过程详见方法实施例,这里不再赘述。It should be noted that when the pop-up notification system for electronic consumer coupons provided by the above-mentioned embodiments executes the pop-up notification method of electronic consumer coupons, it only uses the division of the above-mentioned functional modules for illustration. The above function allocation is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the pop-up notification system for electronic consumer coupons provided by the above embodiments and the pop-up notification method for electronic consumer coupons belong to the same concept, and the implementation process of which can be found in the method embodiments for details, and will not be repeated here.
上述本申请实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present application are for description only, and do not represent the advantages and disadvantages of the embodiments.
在本申请实施例中,客户端首先在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券,若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息,然后基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。由于本申请在电子消费券发放成功后,通过对发放电子消费券的APP标记消费券的数据标签,使得在APP启动时通过查询是否存在相应消费券的数据标签即可进行弹窗通知,从而避免了开发不同的电子消费券系统,节省了研发资源,同时提升了通知效率。In the embodiment of the present application, when the client first receives the startup instruction for the APP to be used, it calls the pop-up application program interface according to the startup instruction, and determines at least one electronic consumption coupon to be notified. If there is at least one electronic coupon in the APP to be used When the target data tag of the electronic consumer coupon is to be notified, at least one notification message of the electronic consumer coupon to be notified is created, and then at least one target pop-up window is generated based on the notification message and the pop-up window API, and the target pop-up window is displayed. Since this application marks the data label of the coupon on the APP that issued the electronic coupon after the electronic coupon is successfully issued, the pop-up window notification can be performed by checking whether there is a data tag of the corresponding coupon when the APP is started, thereby avoiding In order to develop different electronic consumer coupon systems, it saves R&D resources and improves notification efficiency.
在一个实施例中,提出了一种计算机设备,设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is proposed. The device includes a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the following steps are implemented:
在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券;When receiving the activation instruction for the APP to be used, call the pop-up application program interface according to the activation instruction, and determine at least one electronic consumption coupon to be notified;
若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息;If there is at least one target data tag of the electronic consumption coupon to be notified in the APP to be used, create a notification message of at least one electronic consumption coupon to be notified;
基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。At least one target pop-up window is generated based on the notification message and the pop-up window API, and the target pop-up window is displayed.
在一个实施例中,处理器执行根据启动指令调用弹窗应用程序接口时,具体执行以下操作:In one embodiment, when the processor executes calling the pop-up application program interface according to the startup instruction, it specifically performs the following operations:
根据启动指令启动待使用APP;Start the APP to be used according to the startup instruction;
在待使用APP启动完成时,创建弹窗应用程序接口调用请求;Create a pop-up window application program interface call request when the APP is to be started;
将调用请求发送至服务端,并接收来自服务端针对客户端响应的弹窗应用程序接口。Send the call request to the server, and receive the pop-up API from the server responding to the client.
在一个实施例中,处理器执行确定至少一个待通知电子消费券时,具体执行以下操作:In one embodiment, when the processor determines at least one electronic consumer coupon to be notified, it specifically performs the following operations:
接收来自服务端发送的至少一个待通知电子消费券;Receive at least one electronic consumer coupon to be notified sent from the server;
或者,or,
获取待使用APP的用户登录信息;Obtain the user login information of the APP to be used;
收集用户登录信息的历史消费记录;Collect historical consumption records of user login information;
根据历史消费记录计算消费总金额、消费次数以及消费类型权重;Calculate the total consumption amount, consumption frequency and consumption type weight according to the historical consumption records;
基于消费总金额、消费次数以及消费类型权重在预设电子消费券库中确定至少一个待通知电子消费券。Determine at least one electronic consumer coupon to be notified in the preset electronic consumer coupon library based on the total consumption amount, consumption times and consumption type weight.
在一个实施例中,处理器执行基于消费总金额、消费次数以及消费类型权重在预设电子消费券库中确定至少一个待通知电子消费券时,具体执行以下操作:In one embodiment, when the processor determines at least one electronic consumer coupon to be notified in the preset electronic consumer coupon library based on the total amount of consumption, the number of consumption times and the weight of the consumption type, the following operations are specifically performed:
根据消费总金额、消费次数以及消费类型权重计算最小目标解;Calculate the minimum target solution according to the total amount of consumption, the number of consumption and the weight of consumption type;
在预设策略表中映射出最小目标解对应的电子消费券通知策略;In the preset strategy table, map out the electronic consumer coupon notification strategy corresponding to the minimum target solution;
根据电子消费券通知策略在预设电子消费券库中选取至少一个待通知电子消费券;其中,Select at least one electronic consumer coupon to be notified in the preset electronic consumer coupon library according to the electronic consumer coupon notification strategy; wherein,
最小目标解计算公式为:arg min(ω1×(B.κ+C.κ));The calculation formula of the minimum target solution is: arg min(ω1 ×(B.κ+C.κ));
其中,arg min()为求最小目标解函数,ω1为加权系数,B为消费总金额,C为消费次数,κ为消费类型权重。Among them, arg min() is the minimum target solution function, ω1 is the weighting coefficient, B is the total amount of consumption, C is the number of consumption, and κ is the weight of consumption type.
在一个实施例中,处理器在执行确定至少一个待通知电子消费券之后时,还执行以下操作:In one embodiment, after determining at least one electronic consumer coupon to be notified, the processor further performs the following operations:
获取至少一个待通知电子消费券的业务描述文本;Obtain the business description text of at least one electronic consumer coupon to be notified;
获取待使用APP上的用户信息;Obtain user information on the APP to be used;
根据用户信息查询待使用APP上预先分配的电子消费券的数据标签对应的键值对,得到至少一个目标键值对;Query the key-value pair corresponding to the data label of the pre-allocated electronic consumer coupon on the APP to be used according to the user information, and obtain at least one target key-value pair;
提取至少一个目标键值对中的值,得到多个目标业务描述文本;Extract the value in at least one target key-value pair to obtain multiple target business description texts;
判断多个目标业务描述文本中是否存在与至少一个待通知电子消费券的业务描述文本所一致的目标业务描述文本;Judging whether there is a target business description text consistent with the business description text of at least one electronic consumer coupon to be notified among the multiple target business description texts;
若是,则确定待使用APP中存在至少一个待通知电子消费券的目标数据标签;If so, it is determined that there is at least one target data tag of the electronic consumer coupon to be notified in the APP to be used;
或者,or,
若否,则确定待使用APP中不存在至少一个待通知电子消费券的目标数据标签。If not, it is determined that there is no at least one target data tag of the electronic coupon to be notified in the APP to be used.
在一个实施例中,处理器执行将目标弹窗进行展示时,具体执行以下操作:In one embodiment, when the processor displays the target pop-up window, it specifically performs the following operations:
当目标弹窗为单个时,将单个目标弹窗进行展示;When the target pop-up window is single, display a single target pop-up window;
或者,or,
当目标弹窗为多个时,获取每个目标弹窗的优先级;When there are multiple target pop-up windows, get the priority of each target pop-up window;
根据优先级的高低顺序将多个目标弹窗逐一展示;或者根据优先级的高低顺序将多个目标弹窗按照预设高低百分比窗口进行逐一制作排列,得到排列后的界面,将排列后的界面进行展示。Display multiple target pop-up windows one by one according to the order of priority; or make and arrange multiple target pop-up windows one by one according to the preset high and low percentage windows according to the high and low order of priority to obtain the arranged interface, and then arrange the arranged interface to show.
在一个实施例中,提出了一种计算机设备,设备包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,处理器执行计算机程序时实现以下步骤:In one embodiment, a computer device is proposed. The device includes a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the computer program, the following steps are implemented:
收集需要发放电子消费券的用户信息,并将收集的用户信息保存为集合;Collect user information that needs to issue electronic consumer coupons, and save the collected user information as a collection;
遍历集合中的每个用户标识,并对每个用户标识绑定预设电子消费券,以及调用标签系统对绑定消费券的用户标识标记预设电子消费券的数据标签,得到预先分配的电子消费券的数据标签。Traverse each user ID in the collection, bind each user ID with a preset electronic coupon, and call the label system to mark the data tag of the preset electronic coupon with the user ID bound to the coupon to obtain the pre-allocated electronic coupon. The data label of the coupon.
在本申请实施例中,客户端首先在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券,若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息,然后基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。由于本申请在电子消费券发放成功后,通过对发放电子消费券的APP标记消费券的数据标签,使得在APP启动时通过查询是否存在相应消费券的数据标签即可进行弹窗通知,从而避免了开发不同的电子消费券系统,节省了研发资源,同时提升了通知效率。In the embodiment of the present application, when the client first receives the startup instruction for the APP to be used, it calls the pop-up application program interface according to the startup instruction, and determines at least one electronic consumption coupon to be notified. If there is at least one electronic coupon in the APP to be used When the target data tag of the electronic consumer coupon is to be notified, at least one notification message of the electronic consumer coupon to be notified is created, and then at least one target pop-up window is generated based on the notification message and the pop-up window API, and the target pop-up window is displayed. Since this application marks the data label of the coupon on the APP that issued the electronic coupon after the electronic coupon is successfully issued, the pop-up window notification can be performed by checking whether there is a data tag of the corresponding coupon when the APP is started, thereby avoiding In order to develop different electronic consumer coupon systems, it saves R&D resources and improves notification efficiency.
在一个实施例中,提出了一种存储有计算机可读指令的介质,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:In one embodiment, a medium is provided that stores computer readable instructions that, when executed by one or more processors, cause the one or more processors to perform the following steps:
在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券;When receiving the activation instruction for the APP to be used, call the pop-up application program interface according to the activation instruction, and determine at least one electronic consumption coupon to be notified;
若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息;If there is at least one target data tag of the electronic consumption coupon to be notified in the APP to be used, create a notification message of at least one electronic consumption coupon to be notified;
基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。At least one target pop-up window is generated based on the notification message and the pop-up window API, and the target pop-up window is displayed.
在一个实施例中,处理器执行根据启动指令调用弹窗应用程序接口时,具体执行以下操作:In one embodiment, when the processor executes calling the pop-up application program interface according to the startup instruction, it specifically performs the following operations:
根据启动指令启动待使用APP;Start the APP to be used according to the startup instruction;
在待使用APP启动完成时,创建弹窗应用程序接口调用请求;Create a pop-up window application program interface call request when the APP is to be started;
将调用请求发送至服务端,并接收来自服务端针对客户端响应的弹窗应用程序接口。Send the call request to the server, and receive the pop-up API from the server responding to the client.
在一个实施例中,处理器执行确定至少一个待通知电子消费券时,具体执行以下操作:In one embodiment, when the processor determines at least one electronic consumer coupon to be notified, it specifically performs the following operations:
接收来自服务端发送的至少一个待通知电子消费券;Receive at least one electronic consumer coupon to be notified sent from the server;
或者,or,
获取待使用APP的用户登录信息;Obtain the user login information of the APP to be used;
收集用户登录信息的历史消费记录;Collect historical consumption records of user login information;
根据历史消费记录计算消费总金额、消费次数以及消费类型权重;Calculate the total consumption amount, consumption frequency and consumption type weight according to the historical consumption records;
基于消费总金额、消费次数以及消费类型权重在预设电子消费券库中确定至少一个待通知电子消费券。Determine at least one electronic consumer coupon to be notified in the preset electronic consumer coupon library based on the total consumption amount, consumption times and consumption type weight.
在一个实施例中,处理器执行基于消费总金额、消费次数以及消费类型权重在预设电子消费券库中确定至少一个待通知电子消费券时,具体执行以下操作:In one embodiment, when the processor determines at least one electronic consumer coupon to be notified in the preset electronic consumer coupon library based on the total amount of consumption, the number of consumption times and the weight of the consumption type, the following operations are specifically performed:
根据消费总金额、消费次数以及消费类型权重计算最小目标解;Calculate the minimum target solution according to the total amount of consumption, the number of consumption and the weight of consumption type;
在预设策略表中映射出最小目标解对应的电子消费券通知策略;In the preset strategy table, map out the electronic consumer coupon notification strategy corresponding to the minimum target solution;
根据电子消费券通知策略在预设电子消费券库中选取至少一个待通知电子消费券;其中,Select at least one electronic consumer coupon to be notified in the preset electronic consumer coupon library according to the electronic consumer coupon notification strategy; wherein,
最小目标解计算公式为:arg min(ω1×(B.κ+C.κ));The calculation formula of the minimum target solution is: arg min(ω1 ×(B.κ+C.κ));
其中,arg min()为求最小目标解函数,ω1为加权系数,B为消费总金额,C为消费次数,κ为消费类型权重。Among them, arg min() is the minimum target solution function, ω1 is the weighting coefficient, B is the total amount of consumption, C is the number of consumption, and κ is the weight of consumption type.
在一个实施例中,处理器在执行确定至少一个待通知电子消费券之后时,还执行以下操作:In one embodiment, after determining at least one electronic consumer coupon to be notified, the processor further performs the following operations:
获取至少一个待通知电子消费券的业务描述文本;Obtain the business description text of at least one electronic consumer coupon to be notified;
获取待使用APP上的用户信息;Obtain user information on the APP to be used;
根据用户信息查询待使用APP上预先分配的电子消费券的数据标签对应的键值对,得到至少一个目标键值对;Query the key-value pair corresponding to the data label of the pre-allocated electronic consumer coupon on the APP to be used according to the user information, and obtain at least one target key-value pair;
提取至少一个目标键值对中的值,得到多个目标业务描述文本;Extract the value in at least one target key-value pair to obtain multiple target business description texts;
判断多个目标业务描述文本中是否存在与至少一个待通知电子消费券的业务描述文本所一致的目标业务描述文本;Judging whether there is a target business description text consistent with the business description text of at least one electronic consumer coupon to be notified among the multiple target business description texts;
若是,则确定待使用APP中存在至少一个待通知电子消费券的目标数据标签;If so, it is determined that there is at least one target data tag of the electronic consumer coupon to be notified in the APP to be used;
或者,or,
若否,则确定待使用APP中不存在至少一个待通知电子消费券的目标数据标签。If not, it is determined that there is no at least one target data tag of the electronic coupon to be notified in the APP to be used.
在一个实施例中,处理器执行将目标弹窗进行展示时,具体执行以下操作:In one embodiment, when the processor displays the target pop-up window, it specifically performs the following operations:
当目标弹窗为单个时,将单个目标弹窗进行展示;When the target pop-up window is single, display a single target pop-up window;
或者,or,
当目标弹窗为多个时,获取每个目标弹窗的优先级;When there are multiple target pop-up windows, get the priority of each target pop-up window;
根据优先级的高低顺序将多个目标弹窗逐一展示;或者根据优先级的高低顺序将多个目标弹窗按照预设高低百分比窗口进行逐一制作排列,得到排列后的界面,将排列后的界面进行展示。Display multiple target pop-up windows one by one according to the order of priority; or make and arrange multiple target pop-up windows one by one according to the preset high and low percentage windows according to the high and low order of priority to obtain the arranged interface, and then arrange the arranged interface to show.
在一个实施例中,提出了一种存储有计算机可读指令的介质,该计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:In one embodiment, a medium is provided that stores computer readable instructions that, when executed by one or more processors, cause the one or more processors to perform the following steps:
收集需要发放电子消费券的用户信息,并将收集的用户信息保存为集合;Collect user information that needs to issue electronic consumer coupons, and save the collected user information as a collection;
遍历集合中的每个用户标识,并对每个用户标识绑定预设电子消费券,以及调用标签系统对绑定消费券的用户标识标记预设电子消费券的数据标签,得到预先分配的电子消费券的数据标签。Traverse each user ID in the collection, bind each user ID with a preset electronic coupon, and call the label system to mark the data tag of the preset electronic coupon with the user ID bound to the coupon to obtain the pre-allocated electronic coupon. The data label of the coupon.
在本申请实施例中,客户端首先在接收到针对待使用APP的启动指令时,根据启动指令调用弹窗应用程序接口,并确定至少一个待通知电子消费券,若待使用APP中存在至少一个待通知电子消费券的目标数据标签时,创建至少一个待通知电子消费券的通知消息,然后基于通知消息和弹窗应用程序接口生成至少一个目标弹窗,并将目标弹窗进行展示。由于本申请在电子消费券发放成功后,通过对发放电子消费券的APP标记消费券的数据标签,使得在APP启动时通过查询是否存在相应消费券的数据标签即可进行弹窗通知,从而避免了开发不同的电子消费券系统,节省了研发资源,同时提升了通知效率。In the embodiment of the present application, when the client first receives the startup instruction for the APP to be used, it calls the pop-up application program interface according to the startup instruction, and determines at least one electronic consumption coupon to be notified. If there is at least one electronic coupon in the APP to be used When the target data tag of the electronic consumer coupon is to be notified, at least one notification message of the electronic consumer coupon to be notified is created, and then at least one target pop-up window is generated based on the notification message and the pop-up window API, and the target pop-up window is displayed. Since this application marks the data label of the coupon on the APP that issued the electronic coupon after the electronic coupon is successfully issued, the pop-up window notification can be performed by checking whether there is a data tag of the corresponding coupon when the APP is started, thereby avoiding In order to develop different electronic consumer coupon systems, it saves R&D resources and improves notification efficiency.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一计算机可读取介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性介质,或随机存储记忆体(RandomAccess Memory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be realized by instructing related hardware through a computer program. The computer program can be stored in a computer-readable medium, and the program can be executed during execution. , may include the flow of the embodiments of the above-mentioned methods. Wherein, the aforementioned medium may be a nonvolatile medium such as a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. To make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction in the combination of these technical features, they should be It is considered to be within the range described in this specification.
以上实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above examples only express several implementations of the present invention, and the description thereof is relatively specific and detailed, but should not be construed as limiting the patent scope of the present invention. It should be pointed out that those skilled in the art can make several modifications and improvements without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent for the present invention should be based on the appended claims.
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211130920.6ACN115525375A (en) | 2022-09-16 | 2022-09-16 | Popup notification method, system, computer equipment and medium for electronic consumption ticket |
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202211130920.6ACN115525375A (en) | 2022-09-16 | 2022-09-16 | Popup notification method, system, computer equipment and medium for electronic consumption ticket |
| Publication Number | Publication Date |
|---|---|
| CN115525375Atrue CN115525375A (en) | 2022-12-27 |
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202211130920.6APendingCN115525375A (en) | 2022-09-16 | 2022-09-16 | Popup notification method, system, computer equipment and medium for electronic consumption ticket |
| Country | Link |
|---|---|
| CN (1) | CN115525375A (en) |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020178060A1 (en)* | 2001-05-25 | 2002-11-28 | Sheehan Patrick M. | System and method for providing and redeeming electronic paperless coupons |
| CN107944897A (en)* | 2016-10-13 | 2018-04-20 | 阿里巴巴集团控股有限公司 | Data label dissemination system, method, server and client side |
| CN108924036A (en)* | 2018-06-27 | 2018-11-30 | 上海掌门科技有限公司 | Method and apparatus for distributing resource, getting resource |
| CN110033331A (en)* | 2019-04-19 | 2019-07-19 | 广东小天才科技有限公司 | Method, system and terminal device for issuing coupons |
| US11120465B1 (en)* | 2017-01-20 | 2021-09-14 | Walgreen Co. | Omni-channel digital coupon clipping and redemption |
| CN114661775A (en)* | 2022-03-18 | 2022-06-24 | 支付宝(杭州)信息技术有限公司 | Electronic coupon issuing method, device and equipment |
| CN114997928A (en)* | 2022-06-27 | 2022-09-02 | 平安银行股份有限公司 | Electronic ticket issuing method, device, storage medium and equipment |
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020178060A1 (en)* | 2001-05-25 | 2002-11-28 | Sheehan Patrick M. | System and method for providing and redeeming electronic paperless coupons |
| CN107944897A (en)* | 2016-10-13 | 2018-04-20 | 阿里巴巴集团控股有限公司 | Data label dissemination system, method, server and client side |
| US11120465B1 (en)* | 2017-01-20 | 2021-09-14 | Walgreen Co. | Omni-channel digital coupon clipping and redemption |
| CN108924036A (en)* | 2018-06-27 | 2018-11-30 | 上海掌门科技有限公司 | Method and apparatus for distributing resource, getting resource |
| CN110033331A (en)* | 2019-04-19 | 2019-07-19 | 广东小天才科技有限公司 | Method, system and terminal device for issuing coupons |
| CN114661775A (en)* | 2022-03-18 | 2022-06-24 | 支付宝(杭州)信息技术有限公司 | Electronic coupon issuing method, device and equipment |
| CN114997928A (en)* | 2022-06-27 | 2022-09-02 | 平安银行股份有限公司 | Electronic ticket issuing method, device, storage medium and equipment |
| Publication | Publication Date | Title |
|---|---|---|
| JP5075920B2 (en) | Web data usage platform | |
| CN108287708B (en) | Data processing method and device, server and computer readable storage medium | |
| CN113656179B (en) | Scheduling method and device of cloud computing resources, electronic equipment and storage medium | |
| CN114090118B (en) | Method, device, equipment and storage medium for starting applet | |
| US20150186858A1 (en) | Contextual solicitation in a starter application | |
| US12154076B2 (en) | Processing messages for value extraction | |
| CN113805962B (en) | Application page display method and device and electronic equipment | |
| CN104679824A (en) | Webpage generating method and webpage generating system of network platform | |
| CN115562662A (en) | Application page creating method and device, computer equipment and storage medium | |
| CN110688594A (en) | Page jump method and device for front end of webpage | |
| CN102135895A (en) | System upgrading method and system | |
| CN112835582A (en) | Rendering method, device, device and storage medium based on container engine | |
| CN114282940B (en) | Method and device for intention recognition, storage medium and electronic device | |
| CN111913759B (en) | Method, apparatus, computing device and medium for controlling execution of application program | |
| CN116521630B (en) | Task progress real-time display method and device, computer equipment and storage medium | |
| CN115525375A (en) | Popup notification method, system, computer equipment and medium for electronic consumption ticket | |
| CN114490747A (en) | Management and control method, device, electronic device and storage medium for business processing request | |
| CN117331679A (en) | Data inference methods, devices, equipment and storage media | |
| CN114791859A (en) | Component processing method, device, equipment and storage medium based on block chain BaaS | |
| CN113781154A (en) | Information rollback method, system, electronic equipment and storage medium | |
| CN112882711A (en) | Rendering method, device, equipment and storage medium | |
| CN112954075A (en) | Business function implementation method, system, corresponding device and storage medium | |
| CN106570143B (en) | Method and device for sending response object | |
| CN113704187B (en) | Method, apparatus, server and computer readable medium for generating file | |
| CN114629952B (en) | A data push method and device |
| 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 |