Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, 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 system architecture diagram of message processing provided in an embodiment of the present application. In this embodiment, the system may include a first terminal 11, a server 12, and a second terminal 13.
In this application, the use of "first" and "second" are used merely to distinguish two different physical devices represented by the same term, and should not be construed as limiting in any other technical sense. In the application, the first terminal is a transmission source of message transmission, the second terminal is a destination source of message transmission, the transmission source and the destination source are a relative concept, and the message transmission direction is reversible in instant messaging.
The first terminal 11 may be a Personal Computer (PC), a tablet Computer, a mobile phone, a smart device, or the like. The first terminal 11 may be equipped with instant messaging such as QQ, wechat, commute, prosperous, and the like. The user may send a message by instant messaging of the first terminal 11 as described above.
The server 12 may be a platform for providing an instant messaging service, and the server may receive the message sent by the first terminal 11 and issue the message.
The second terminal 13 may be installed with instant messaging as the first terminal 11, and the second terminal 13 and the first terminal 11 are located in the same session page, and the second terminal 13 may receive and display the message sent by the server 12.
Fig. 2 is a flowchart of a message processing method provided in an embodiment of the present application. In this embodiment, the message processing method includes the following steps:
s200: the first terminal sends a message to the server.
The first terminal obtains the message, which may be through a clickable or inputtable interface element displayed in the session page, receives an input operation of a user, further receives the message, and sends the message to the server. Specifically, the message includes a text message, a language message, a picture message, a video message, and the like in the conventional instant messaging. Of course, the message also includes some special messages in instant messaging, such as a red packet message, a group notification message, etc.
S210: and the server receives the message sent by the first terminal.
And the server receives the message sent by the first terminal.
S220: the server judges whether the type of the message conforms to a preset type or not;
specifically, the preset type may be preset according to a service requirement of instant messaging, for example, the preset type includes a red packet type, that is, as long as a message of the red packet type conforms to the preset type. The preset type may also include a video type, that is, as long as the message of the video type conforms to the preset type. Of course, the preset type may also include multiple types, for example, a red packet type, a group notification type, a video type, and the like.
S230: if yes, marking the message and sending the marked message.
S240: and the second terminal receives the message and displays the message according to the mark top.
And the second terminal receives the message sent by the server and displays the message in a session page in a top setting mode according to the mark.
For example, example one: a user sends a group notification message "emergency notification" in a session page of instant messaging through a first terminal: XXXXXXXXXXXXXXXXXX ", for example. The first terminal sends the message to a server, and if the preset type comprises a group notification type, the message type accords with the preset type; the server marks the message and issues the marked message. At this time, the second terminal may receive a message displaying the marker in a juxtaposed top. As shown in fig. 3a, the second terminal 20 displays a session page 21 including a top-displayed message 22 sent by the first terminal.
In the embodiment of the application, the type of the message is judged through the server, and the message which accords with the preset type is displayed on the top of the conversation page. Therefore, the method and the device can help the user to obtain the important message at the first time, and improve the timeliness of the important message.
On the basis of the embodiment of the present application, after the step S240, the method may further include:
the server determines whether the marked message is stale.
And if so, the server issues a notice for canceling the marked message to the top.
And the second terminal cancels the top setting of the marked message according to the notification.
In this embodiment, taking the red packet message as an example, if the remaining amount in the red packet reaches 0 yuan, it is determined that the red packet message has failed.
Preferably, the server determining whether the marked message is invalid may include: and the server judges whether the top setting time of the marked message reaches a first preset time. Taking the group notification message as an example, if the set-top time of the group notification message reaches a first preset time, such as half an hour, it indicates that the group notification message has failed.
And after the second terminal cancels the top setting of the marked message, the marked message is displayed in a conversation page in a display mode of a common message.
Different from the foregoing embodiment, in this embodiment, the server may determine whether the top-placed message is invalid, and notify the second terminal when the top-placed message is invalid, so that the second terminal cancels the top placement of the message. The method and the device can avoid the situation that the set-top message still exists after being invalid, further occupy the space at the top of the conversation page and reduce the user experience.
Preferably, the issuing the marked message may include issuing the marked message with an operation button identifier.
The operation buttons may include a complimentary button.
Correspondingly, the second terminal receives and displays the marked message with the operating button identification sent by the server.
Specifically, the second terminal receives the marked information with the operating button identifier, and displays the marked information with the operating button identifier on the top of the session page.
For example, example two: as shown in fig. 3b, the second terminal 30 displays a session page 31 including the message 32 "pay for treasure red package: let us send 999.00 yuans red packet, the hand has fast hand and slow hand, and the message also carries the operation button 33 of "like".
In the embodiment of the application, a user can interact with the message by clicking the operation button. The triggering of the operating button may also be accompanied by special effects. Specifically, the special effect includes a play sound effect or screen jitter.
In an embodiment of an alternative method of the present application, the step S240 may specifically include:
the second terminal receives and displays the marked information issued by the server;
the server sends a top setting notification for setting the marked message to the top according to the trigger notification;
the server sends a top setting notification for setting the marked message to the top according to the trigger notification;
and the second terminal carries out top display on the marked message according to the top notification.
The difference between the embodiment of the present application and the above embodiments is that after receiving a message which is sent by a server and conforms to a preset type, the second terminal is not directly set to display on top, but set to display on top after triggering the message. Following the first example in step S240, as shown in fig. 3c, the second terminal 20 displays a session page 21 including the message 22 sent by the first terminal. Unlike the example in S240 — the second terminal 20 receives the message 22 issued by the server, and displays the message in the conversation page 21 similarly to the other messages 23, instead of directly displaying the message on top.
Through the embodiment of the application, the messages which do not pay attention to the user in the messages which are in accordance with the preset type can be excluded, so that the messages which are more important for the user can be more effectively provided.
On the basis of the embodiment of the present application, after the second terminal displays the marked message at the top according to the top notification, the method may further include:
the server determines whether the marked message is stale.
And if so, the server issues a notice for canceling the marked message to the top.
And the second terminal cancels the top setting of the marked message according to the notification.
Preferably, the server determining whether the marked message is invalid may include: and the server judges whether the top setting time of the marked message reaches a first preset time.
And after the second terminal cancels the top setting of the marked message, the marked message is displayed in a conversation page in a display mode of a common message.
In the embodiment of the application, the server can judge whether the top-placed message is invalid or not, and inform the second terminal when the top-placed message is invalid, so that the second terminal cancels the top placement of the message. By the method and the device, the situation that the set-top message still exists after being invalid can be avoided, so that the space at the top of the conversation page is occupied, and the user experience is reduced.
Preferably, the issuing the marked message may include issuing the marked message with an operation button identifier.
The operation buttons may include a complimentary button.
Correspondingly, the second terminal receives and displays the marked message with the operating button identification sent by the server.
Specifically, the second terminal receives the marked information with the operating button identifier, and displays the marked information with the operating button identifier on the top of the session page.
Following the second example in step S240, as shown in fig. 3d, the second terminal 30 displays a session page 31 including a message 32 sent by the first terminal with an operation button 33. Unlike the second example in the step S230, the second terminal 30 receives the message 32 issued by the server, and displays the message in the session page 31 similarly to the other messages 34, instead of directly displaying the message on top.
In the embodiment of the application, a user can interact with the message by clicking the operation button. The triggering of the operating button may also be accompanied by special effects. Specifically, the special effect includes a play sound effect or screen jitter.
In another alternative embodiment of the present application, the step S240 specifically includes:
the second terminal receives and displays the marked information issued by the server;
and the second terminal responds to the trigger on the mark and displays the message at the top.
The difference between the embodiment of the present application and the previous embodiment is that after the second terminal triggers the message of the mark, the second terminal does not need to notify the server, but directly sets the message on top for display. By the embodiment of the application, the interaction between the terminal and the server can be reduced, and the performance of the system is improved.
On the basis of the embodiment of the present application, after the displaying the marked message on top, the method may further include:
and the second terminal judges whether the marked message is invalid.
And if so, the second terminal cancels the top setting of the marked message.
Preferably, the determining, by the second terminal, whether the marked message is invalid may include: and the second terminal judges whether the top setting time of the marked message reaches a first preset time.
And after the second terminal cancels the top setting of the marked message, the marked message is displayed in a conversation page in a display mode of a common message.
Through the embodiment, the second terminal can judge whether the top-placed message is invalid or not, and cancel the top-placed of the message when the top-placed message is invalid. Therefore, the situation that the top-placed message still exists after being invalid and occupies the space at the top of the conversation page can be avoided, and the user experience is reduced.
Preferably, the issuing the marked message may include issuing the marked message with an operation button identifier.
The operation buttons may include a complimentary button.
Correspondingly, the second terminal receives and displays the marked message with the operating button identification sent by the server.
Specifically, the second terminal receives the marked information with the operating button identifier, and displays the marked information with the operating button identifier on the top of the session page.
In the embodiment of the application, a user can interact with the message by clicking the operation button. The triggering of the operating button may also be accompanied by special effects. Specifically, the special effect includes a play sound effect or screen jitter.
An embodiment of the server-based method according to the present application is described below with reference to fig. 4, where the embodiment may correspond to fig. 2:
s300: and receiving the message sent by the first terminal.
S310: and judging whether the type of the message accords with a preset type.
S320: if yes, marking the message and sending the marked message.
In this embodiment, the issuing the marked message may specifically include: and issuing the marked message with the operating button identification. Wherein the operation buttons may include a praise button.
Preferably, after the step S320, the method may further include:
judging whether the marked message is invalid or not;
and if so, issuing a notice for canceling the top setting of the marked message.
In this embodiment, the determining whether the marked message is invalid may specifically include: and judging whether the top setting time of the marked message reaches a first preset time.
In another embodiment of the present application, after the step S320, the method may further include:
receiving a trigger notification sent by the second terminal in response to the trigger on the mark;
and issuing a top setting notification for setting the marked message at the top according to the trigger notification.
Preferably, after issuing a top notification to top the marked message, the method may further include:
judging whether the marked message is invalid or not;
and if so, issuing a notice for canceling the top setting of the marked message.
In this embodiment, the determining whether the marked message is invalid may specifically include: and judging whether the top setting time of the marked message reaches a first preset time.
An embodiment of the method mainly implemented by the second terminal according to the present application is described below with reference to fig. 5, where the embodiment may correspond to fig. 2:
s400: and receiving the marked message sent by the server.
S410: and displaying the message according to the mark set top.
In this embodiment, the marked message may specifically include: the marked message with the operating button identification. Wherein the operation buttons may include a praise button. The user can interact with the message by clicking the operating button. The triggering of the operating button may also be accompanied by special effects. Specifically, the special effect includes a play sound effect or screen jitter.
Preferably, after the step of S410, the method may further include:
receiving a notification that the marked message is set to the top in a cancelling mode and issued by the server;
and canceling the marked message to the top according to the notification.
In another embodiment of the application, the step S410 may specifically include:
in response to a trigger on the marker, the message is top-displayed.
Preferably, after the message is displayed at the top, the method further comprises:
judging whether the marked message is invalid or not;
and if so, canceling the marked message to the top.
In this embodiment, the determining whether the marked message is invalid may specifically include:
and judging whether the top setting time of the marked message reaches a first preset time.
In another embodiment of the application, the step S410 may specifically include:
sending a trigger notification to the server in response to a trigger on the marker;
receiving a top setting notification which is issued by the server and sets the marked message at the top;
and displaying the marked message at the top according to the top notification.
Preferably, after the top-displaying the marked message according to the top-setting notification, the method may further include:
receiving a notification that the marked message is set to the top in a cancelling mode and issued by the server;
and canceling the marked message to the top according to the notification.
Fig. 6 is a schematic block diagram of a message processing system provided in an embodiment of the present application. In this embodiment, the message processing system includes:
a first receiving unit 500, configured to receive a message sent by a first terminal.
A first determining unit 510, configured to determine whether the type of the message conforms to a preset type.
A first sending unit 520, configured to mark the message and issue the marked message when the type of the message meets a preset type.
Preferably, after the first sending unit 520, the method may further include:
the first judging subunit is used for judging whether the marked message is invalid or not;
and the second sending subunit is used for sending a notification for canceling the top setting of the marked message when the marked message is invalid.
The marked message in the embodiment of the application comprises a message with an operation button identifier.
In another embodiment of the present application, after the first sending unit 520, the method may further include:
the first receiving subunit is used for receiving a trigger notification sent by the second terminal after responding to the trigger on the mark;
and the first sending subunit is used for sending a top setting notification for setting the marked message at the top according to the trigger notification.
Preferably, after the first sending subunit, the method may further include:
the first judging subunit is used for judging whether the marked message is invalid or not;
and the second sending subunit is used for sending a notification for canceling the top setting of the marked message when the marked message is invalid.
The marked message in the embodiment of the application comprises a message with an operation button identifier.
Fig. 7 is a schematic block diagram of a message processing system provided in an embodiment of the present application. In this embodiment, the message processing system includes:
a second receiving unit 600, configured to receive a marked message sent by a server.
A first display unit 610, configured to display the message according to the mark set top.
Preferably, after the first display unit 610, the method may further include:
a third receiving subunit, configured to receive a notification that the marked message is set to the top in a cancellation manner, where the notification is issued by the server;
and the third display subunit is used for canceling the marked message to the top according to the notification.
In another embodiment of the present application, the first display unit 610 may specifically include:
a first display subunit, configured to, in response to a trigger on the mark, top-display the message.
Preferably, after the first display subunit, the method may further include:
the second judging subunit is used for judging whether the marked message is invalid or not;
the determining whether the marked message is invalid specifically includes: and judging whether the top setting time of the marked message reaches a first preset time.
And the fourth display subunit is used for canceling the marked message to the top when the marked message is invalid.
In another embodiment of the present application, the first display unit 610 may specifically include:
a third sending subunit, configured to send a trigger notification to the server in response to a trigger on the flag;
a second receiving subunit, configured to receive a top setting notification that sets the marked message at the top and is sent by the server;
and the second display subunit is used for displaying the marked message at the top according to the top setting notification.
Preferably, after the second display subunit, the method may further include:
a third receiving subunit, configured to receive a notification that the marked message is set to the top in a cancellation manner, where the notification is issued by the server;
and the third display subunit is used for canceling the marked message to the top according to the notification.
The marked message in the embodiment of the application comprises a message with an operation button identifier. The triggering of the operating button may also be accompanied by special effects. Specifically, the special effect includes a play sound effect or screen jitter.
In the 90 s of the 20 th century, improvements in a technology could clearly distinguish between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functionality of the units may be implemented in one or more software and/or hardware when implementing the present application.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that 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 like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The application may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.