Disclosure of Invention
In order to solve the technical problem or at least partially solve the technical problem, the present application provides a data processing method and apparatus.
In a first aspect, the present application provides a data processing method, including:
when the current time reaches a preset notification time, acquiring time category information corresponding to the current time;
matching multimedia data corresponding to the time category information in a preset file library;
generating a corresponding popup notification message according to the time category information and the multimedia data;
and displaying the popup notification message on a terminal interface.
Optionally, as in the foregoing data processing method, the matching of the multimedia data corresponding to the time category information in a preset file library includes:
acquiring user information of a user;
and matching the time category information and the user information in the preset file library to obtain the multimedia data corresponding to the user.
Optionally, as in the foregoing data processing method, the acquiring user information of the user includes:
acquiring identity information of the user;
collecting the use record information of the user to the terminal;
analyzing and obtaining user characteristic information of the user according to the use record information, wherein the user characteristic information comprises: character information, preference information;
and obtaining the user information according to the user characteristic information and the identity information.
Optionally, as in the foregoing data processing method, after the displaying the popup notification message on the terminal interface, the method further includes:
receiving first trigger information obtained after the popup notification message is triggered;
and opening the multimedia data according to the first trigger information, wherein the multimedia data comprises audio and video data and a game program.
Optionally, as in the foregoing data processing method, after the popup notification message is displayed on the terminal interface, the method further includes:
receiving a sharing trigger instruction;
and sharing the popup notification message according to the sharing trigger instruction.
Optionally, as in the foregoing data processing method, after the displaying the popup notification message on the terminal interface, the method further includes:
receiving second trigger information obtained after a first area in the current desktop is triggered, wherein the first area and a second area displaying the popup notification message are independent;
and canceling the display of the popup notification message on the terminal interface according to the second trigger information.
Optionally, as in the foregoing data processing method, after the displaying the popup notification message on the terminal interface, the method further includes:
receiving third triggering information obtained after a third area on the terminal interface is triggered;
and canceling the display of the popup notification message on the terminal interface according to the third trigger information, and displaying the popup notification message on the terminal interface again after a preset time interval.
In a second aspect, the present application provides a data processing apparatus comprising:
the determining module is used for acquiring time category information corresponding to the current time when the current time reaches a preset notification time;
the data acquisition module is used for matching the multimedia data corresponding to the time category information in a preset file library;
the generating module is used for generating a corresponding popup notification message according to the time category information and the multimedia data;
and the display module is used for displaying the popup notification message on a terminal interface.
In a third aspect, the present application provides an electronic device, comprising: the system comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
the memory is used for storing a computer program;
the processor is configured to implement the data processing method according to any one of the preceding claims when executing the computer program.
In a fourth aspect, the present application provides a non-transitory computer readable storage medium storing computer instructions that cause the computer to perform the data processing method of any one of the preceding claims.
The embodiment of the application provides a data processing method and a data processing device, wherein the method comprises the following steps: when the current time reaches a preset notification time, acquiring time category information corresponding to the current time; matching multimedia data corresponding to the time category information in a preset file library; generating a corresponding popup notification message according to the time category information and the multimedia data; and displaying the popup notification message on a terminal interface. Compared with the prior art, the technical scheme provided by the embodiment of the application has the following advantages: the system executing the method can identify the festivals and special days, emotional interaction is given at unexpected moments of the user in an interesting popup mode, and better experience of using the machine can be brought to the user; meanwhile, multimedia data are combined in the popup notification message, different greeting types with specific dates can be distinguished, the display effect is more various, and the playability is enhanced.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a data processing method provided in an embodiment of the present application, including the following steps S1 to S4:
s1, when the current time reaches the preset notification time, time category information corresponding to the current time is acquired.
Specifically, the preset notification time may include: date information (such as holiday dates, birthday dates of a specific user, or user-defined anniversaries, etc., for determining specific dates pushed) and specific times of the corresponding dates (e.g., points of scores for determining specific times pushed); generally, the date information is a certain number of a certain month, and the date information can be lunar calendar dates or public calendar dates; the time category information may be: the name or type or attribute used for determining the preset notification time, for example, the time category information corresponding to No. 1 month is the New year's day, the time category information corresponding to No. 8 month and No. 15 of the lunar calendar is the mid-autumn festival, or No. 8 month and No. 8 month are the self-defined marriage commemorative day, etc.; optionally, when the time category information of the preset notification time is in the yen day, the preset notification time may be 1 month No. 1 8:00am, or 1 month No. 1 0: 00; the specific time can be selected according to the use situation, and generally, the specific time is within the date and day corresponding to the time type information.
And S2, matching the multimedia data corresponding to the time category information in a preset file library.
Specifically, the file library may be stored in a local end, may also be in a cloud end, and may also be obtained by updating data of the local end in real time according to cloud end data by the local end; generally, the file library includes a plurality of multimedia data, and different multimedia data are suitable for different festivals (time category information); it is therefore possible to match to the corresponding multimedia data according to the temporal category information, for example: when the time category information is the meta-data, matching the multimedia data corresponding to the meta-data; to achieve this, each multimedia data may be associated with a keyword (in this embodiment, a festival name may be included) for describing the data content thereof, so that the data can be matched precisely when matching.
And S3, generating a corresponding popup notification message according to the time category information and the multimedia data.
Specifically, the time category information is used for enabling the popup notification message to determine the name or type or attribute of the date corresponding to the current time; the multimedia data is used for the popup notification message, and compared with the prior art that interaction is only carried out through characters and pictures, a better interaction effect can be achieved; the multimedia data may be in the form of video, audio, stop motion animation, or a mini-game, among others.
And S4, displaying the popup notification message on the terminal interface.
Specifically, after the pop-up window notification message is generated, the pop-up window notification message may be pushed to a terminal interface for display, or may be displayed at a preset display time, where the preset display time may be arbitrarily selected according to a preset requirement, and generally, the preset display time may be within a date corresponding to the time category information; optionally, when the multimedia data is a video, an audio, or a stop-motion animation, the pop-up window notification message may be played when being pushed to the terminal interface, and when the multimedia data is a mini game, the mini game may be opened after the user triggers a specific control in the pop-up window notification message; further, before the multimedia data is played, whether the terminal is in an unused state such as screen turning and the like at present can be judged, if yes, the multimedia data is not played, and after the appointed operation on the terminal is received, the multimedia data is played; therefore, the user can be ensured to watch the multimedia data playing result.
As shown in fig. 2, in some embodiments, as in the foregoing data processing method, the foregoing step S2 matches the multimedia data corresponding to the time category information in the preset file library, including the following steps S21 and S22:
and S21, acquiring user information of the user.
Specifically, the user information is information for characterizing characteristics of a user of the terminal; the obtaining method can be editing and uploading by the user, or the terminal can be obtained by analyzing the use habit of the user to the terminal at ordinary times.
And S22, matching the time category information and the user information in a preset file library to obtain multimedia data corresponding to the user.
Specifically, when the user information is more complete or detailed, the multimedia data corresponding to the user is obtained according to the time category information and the user information in a matching manner, so that the requirements of the user can be met better, and a better interaction effect is achieved.
As shown in fig. 3, in some embodiments, as in the foregoing data processing method, the foregoing step S21 obtains the user information of the user, and includes steps S211 to S214 as follows:
s211, acquiring identity information of the user.
Specifically, the identity information may include information that cannot be automatically identified by the terminal, such as the gender, age, height, and weight of the user.
S212, collecting the use record information of the user to the terminal.
Specifically, the usage record information is history information of the usage of the terminal by the user, and may include, but is not limited to: game record, browsing web page record and shopping record; further, the game type, aesthetic information, preference information, and the like preferred by the user can be obtained.
S213, analyzing and obtaining user characteristic information of the user according to the use record information, wherein the user characteristic information comprises: character information, preference information.
Specifically, information such as game records, browsing webpage records and shopping records of the user is obtained; the game type, the character information, the aesthetic information, the preference information and the like preferred by the user can be further obtained through feature extraction, and optionally, the preference information is embodied in a keyword form.
And S214, obtaining user information according to the user characteristic information and the identity information.
Specifically, after the user characteristic information and the identity information are obtained, user information related to the user can be obtained, optionally, the user information can be embodied in a knowledge graph form, and then accurate matching of multimedia data can be conveniently performed according to the user information.
As shown in fig. 4, in some embodiments, as the aforementioned data processing method, after the popup notification message is displayed on the terminal interface in step S4, the method further includes steps S51 to S52 as follows:
and S51, receiving first trigger information obtained after the popup notification message is triggered.
Specifically, when a user performs a preset operation (e.g., clicking) on a control or a specific area in the pop-up notification message, it may be determined that the first trigger information is received.
S52, opening multimedia data according to the first trigger information, wherein the multimedia data comprises audio and video data and a game program.
Specifically, after receiving the first trigger information, if the audio/video data is set to be not automatically played, the audio/video data can be played; because the game program is generally not automatically run, the corresponding game program is generally started after an instruction for opening the game program is received; in addition, when multiple types of multimedia data exist at the same time, different controls can be set for receiving the first trigger information, and the purpose of opening different multimedia data is further achieved.
In some embodiments, as in the foregoing data processing method, after the popup notification message is displayed on the terminal interface in step S4, the method further includes steps T1 to T2 as follows:
and T1, receiving a sharing trigger instruction.
Specifically, a sharing control for sharing may be set in the pop-up window notification message or the window running the multimedia data; the sharing content corresponding to the sharing control can be associated in advance; and after the sharing control is triggered, a sharing triggering instruction can be received.
And T2, sharing the popup notification message according to the sharing trigger instruction.
Specifically, through sharing the notification message, the interactive function of the application can be improved, so that the blessing message is not only pushed to the user only by the terminal, but also can be transmitted by the user, the sharing and propagation of the message are realized, and then the blessing transmission among people is realized, the better interactive effect is achieved, and the popularization of the technical scheme is facilitated.
Because the use scenes of the terminal are many, and the user can conveniently look up and watch the multimedia data not in each use scene or at each moment, and some users may feel that the related pop-up window notification is rather unpleasant and do not want to browse and watch the multimedia data; therefore, as shown in fig. 5, in some embodiments, as the aforementioned data processing method, after the popup notification message is displayed on the terminal interface in step S4, the method further includes steps S61 to S62 as follows:
s61, receiving second trigger information obtained after a first area in the current desktop is triggered, wherein the first area and a second area displaying the popup notification message are independent.
Specifically, the pop-up window notification message is generally displayed in only a part of the area of the desktop, which is denoted as the second area in this embodiment; and in the desktop, the area in which the pop-up notification message is not displayed is denoted as a first area.
And S62, canceling the display of the popup notification message on the terminal interface according to the second trigger information.
That is, in this embodiment, when the user clicks a position on the desktop where the pop-up notification message is not displayed, the position is recorded as the presentation of exiting the multimedia data; the quitting display method in the embodiment is convenient and fast to operate, the popup notification message can be rapidly eliminated and displayed, and the influence on a user in a specific scene is reduced to the minimum; further, after receiving the second trigger information, the system may delete the pop-up notification message.
One implementation method may be: setting the area of the desktop, in which the popup notification message is not displayed, as mask display, and clearly displaying the popup notification message, so that a user can clearly distinguish a first area from a second area; and when the user clicks in the area displayed by the mask, exiting the popup notification message and recovering to the original terminal interface.
In some use scenes, the situation that a user is inconvenient to look up a related pop-up notification message at present exists, but the user wants to continue browsing the pop-up notification message at a convenient moment later; therefore, as shown in fig. 6, in some embodiments, as the aforementioned data processing method, after the popup notification message is displayed on the terminal interface in step S4, the method further includes steps S71 and S72 as follows:
and S71, receiving third trigger information obtained after a third area on the terminal interface is triggered.
Specifically, the third area is an area preset for executing a function control such as "display later".
And S72, canceling the display of the popup notification message on the terminal interface according to the third trigger information, and displaying the popup notification message on the terminal interface again after a preset time interval.
Specifically, after receiving the third trigger information, the system may cancel the display of the pop-up window notification message first, and call the pop-up window notification message again from the specific location (address storing the pop-up window notification message) after a preset time period or after a time period set by the user himself, and display the pop-up window notification message; therefore, the aim of delayed watching of part of users can be fulfilled, the display time is more humanized, and the use experience of the users can be improved.
As shown in fig. 7, there is also provided according to another aspect of the present application a data processing apparatus including:
the device comprises a determiningmodule 1, a judging module and a judging module, wherein the determining module is used for acquiring time category information corresponding to the current time when the current time reaches preset notification time;
thedata acquisition module 2 is used for matching multimedia data corresponding to the time category information in a preset file library;
thegenerating module 3 is used for generating a corresponding popup notification message according to the time category information and the multimedia data;
and thedisplay module 4 is used for displaying the popup notification message on the terminal interface.
Specifically, the specific process of implementing the functions of each module in the apparatus according to the embodiment of the present invention may refer to the related description in the method embodiment, and is not described herein again.
According to another embodiment of the present application, there is also provided an electronic apparatus including: as shown in fig. 8, the electronic device may include: the system comprises aprocessor 1501, acommunication interface 1502, amemory 1503 and acommunication bus 1504, wherein theprocessor 1501, thecommunication interface 1502 and thememory 1503 complete communication with each other through thecommunication bus 1504.
Amemory 1503 for storing a computer program;
theprocessor 1501 is configured to implement the steps of the above-described method embodiments when executing the program stored in thememory 1503.
The bus mentioned in the electronic device may be a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown, but this does not mean that there is only one bus or one type of bus.
The communication interface is used for communication between the electronic equipment and other equipment.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
Embodiments of the present application also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the steps of the above-described method embodiments.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.