CN108874514B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN108874514B
CN108874514B CN201710338922.7A CN201710338922A CN108874514B CN 108874514 B CN108874514 B CN 108874514B CN 201710338922 A CN201710338922 A CN 201710338922A CN 108874514 B CN108874514 B CN 108874514B
Authority
CN
China
Prior art keywords
application
event information
event
time
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710338922.7A
Other languages
Chinese (zh)
Other versions
CN108874514A (en
Inventor
窦宁
张云渡
韩旭
王文杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Beijing Co Ltd
Original Assignee
Tencent Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Beijing Co Ltd filed Critical Tencent Technology Beijing Co Ltd
Priority to CN201710338922.7A priority Critical patent/CN108874514B/en
Publication of CN108874514A publication Critical patent/CN108874514A/en
Application granted granted Critical
Publication of CN108874514B publication Critical patent/CN108874514B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a message processing method and a message processing device. Wherein, the method comprises the following steps: acquiring first event information generated by a preset event through a first application, wherein the preset event generates event information along with the passage of time, and the event information comprises the first event information sent by a second application; receiving a first instruction triggered according to first event information at the current time, wherein the first instruction is used for indicating to view event information of a preset event; responding to the first instruction, and running a target application for executing a preset event to obtain second event information, wherein the event information comprises the second event information; the second event information is displayed in the first application. The invention solves the technical problem of low information processing efficiency in the related technology.

Description

Message processing method and device
Technical Field
The present invention relates to the field of message processing, and in particular, to a message processing method and apparatus.
Background
At present, in a related scene of information processing, situations of recommendation information and introduction information are involved. When the user wants to further know the recommended information and the introduced information, the user needs to switch to an Application (Application) or search related information in a browser, and then check the details of the information, and the operation flow and the steps are quite complicated.
For example, in a chat scene, if a user talks about a financial product, the user may need to send or view related information and data of the product, and the user may generally need to capture a screen and send the information of the financial product to a client, but the information transmission switching application in the screen capture mode is cumbersome to operate, has no interactive capability, and the screen capture cannot reflect the display of real-time data, resulting in low efficiency of information processing.
In view of the above problem of low information processing efficiency, no effective solution has been proposed at present.
Disclosure of Invention
The embodiment of the invention provides a message processing method and a message processing device, which are used for at least solving the technical problem of low information processing efficiency in the related technology.
According to an aspect of an embodiment of the present invention, a message processing method is provided. The method comprises the following steps: acquiring first event information generated by a preset event through a first application, wherein the preset event generates event information along with the passage of time, and the event information comprises the first event information sent by a second application; receiving a first instruction triggered according to first event information at the current time, wherein the first instruction is used for indicating to view event information of a preset event; responding to the first instruction, and running a target application for executing a preset event to obtain second event information, wherein the event information comprises the second event information; the second event information is displayed in the first application.
According to another aspect of the embodiment of the invention, a message processing device is also provided. The device comprises: an acquisition unit that acquires, by a first application, first event information generated by a preset event, wherein the preset event generates event information over time, and the event information includes the first event information transmitted by a second application; the receiving unit is used for receiving a first instruction triggered according to first event information at the current time, wherein the first instruction is used for indicating to view the event information of a preset event; the response unit is used for responding to the first instruction and running a target application used for executing a preset event to obtain second event information, wherein the event information comprises the second event information; and the first display unit is used for displaying the second event information in the first application.
According to still another embodiment of the present invention, there is also provided a storage medium. The storage medium is configured to store program code for executing a method for implementing message processing.
In the embodiment of the invention, first event information generated by a preset event is acquired through a first application, wherein the preset event generates event information along with the time, and the event information comprises the first event information sent by a second application; receiving a first instruction triggered according to first event information at the current time, wherein the first instruction is used for indicating to view event information of a preset event; responding to the first instruction, and running a target application for executing a preset event to obtain second event information, wherein the event information comprises the second event information; the second event information is displayed in the first application. The real-time information of the target application can be checked in the message validity period through the first application, so that the user can stay in the preset scene, inconvenience caused by switching application scenes and screenshots is avoided, the technical effect of improving the information processing efficiency is achieved, and the technical problem of low information processing efficiency in the related technology is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
FIG. 1 is a diagram of a hardware environment for a message processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a message processing method according to an embodiment of the invention;
fig. 3 is a flowchart of a method of displaying second event information in a first application according to an embodiment of the present invention;
fig. 4 is a flowchart of another method of displaying second event information in a first application according to an embodiment of the present invention;
FIG. 5 is a flow chart of another information processing method according to an embodiment of the present invention;
FIG. 6 is a flow chart of another method for rendering and displaying a first image on a first application from event data in accordance with an embodiment of the present invention;
fig. 7 is a flowchart of a method of transmitting third event information to a second application by a first application at a third time according to an embodiment of the present invention;
FIG. 8 is a flow chart of another information processing method according to an embodiment of the present invention;
FIG. 9 is a flow chart of another information processing method according to an embodiment of the present invention;
fig. 10A is a display diagram of information processing at a transmitting end according to an embodiment of the present invention;
fig. 10B is a display diagram of information processing at another transmitting end according to an embodiment of the present invention;
FIG. 11A is a diagram illustrating a time-sharing data processing display at a receiving end according to an embodiment of the present invention;
FIG. 11B is a schematic diagram of a day K data processing display at a receiving end according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of an unexpired information display at a receiving end according to an embodiment of the present invention;
FIG. 13 is a diagram illustrating an expiration information display at a receiving end according to an embodiment of the present invention;
FIG. 14 is a schematic illustration of an identification information display according to an embodiment of the present invention;
FIG. 15 is a schematic illustration of a current display of an information process according to an embodiment of the present invention;
fig. 16 is a schematic diagram of an information processing apparatus according to an embodiment of the present invention; and
fig. 17 is a block diagram of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Moreover, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
According to an embodiment of the present invention, a method embodiment of a message processing method is provided.
Alternatively, in this embodiment, the message processing method described above may be applied to a hardware environment formed by the server 102 and the terminal 104 as shown in fig. 1. Fig. 1 is a schematic diagram of a hardware environment of a message processing method according to an embodiment of the present invention. As shown in fig. 1, a server 102 is connected to a terminal 104 via a network including, but not limited to: the terminal 104 is not limited to a PC, a mobile phone, a tablet computer, etc. in a wide area network, a metropolitan area network, or a local area network. The message processing method according to the embodiment of the present invention may be executed by the server 102, or executed by the terminal 104, or executed by both the server 102 and the terminal 104. The terminal 104 may execute the message processing method according to the embodiment of the present invention by a client installed thereon.
Fig. 2 is a flowchart of a message processing method according to an embodiment of the present invention. As shown in fig. 2, the method may include the steps of:
in step S202, first event information generated by a preset event is acquired by a first application.
In the technical solution provided by the foregoing step S202 in the present application, first event information generated by a preset event is obtained by a first application, where the preset event generates event information over time, and the event information includes the first event information sent by a second application.
The preset scenario of this embodiment may be a chat scenario under application interaction. The first application may be an instant messaging application, such as a QQ application, a wechat application, and the like, and is not limited herein. The second application is used as a sending end of the event information, and sends first event information generated by a preset event at a first time (SendTime) to the first application at the first time, wherein the first event information carries sending data of the target application, the unit of the first time can be 'day', and the second application can be a client or a webpage in a browser. The first application is used as a receiving end of the event message, and may receive the first event information through a message stream, where the message stream is a time-series chat message in a chat window of a user, and may also be a social network type message stream, and the like, which is not limited herein.
The preset event is generated over time and comprises event information, the event information comprises first event information, the real-time characteristic is achieved, the requirement for acquiring real-time data is strict, for example, the preset event is an event generated when a stock application is operated, market information under corresponding time is generated over time, the market information comprises stock price data and the like, and therefore a user can make a decision quickly according to the event information.
Optionally, the embodiment adopts a mode of light application, and the first application presents the acquired first event information in the message flow. The light application is a full-function App which can be searched and used without downloading, has the characteristics of being retrieved and intelligently distributed, and can be used for solving the problem that high-quality application and service are in butt joint with the requirements of mobile users. When the second application sending the first event information edits the first event information, the light application can be called to trigger the market information card and display the data of the first event information. The first event information may be of different types, and a switch may be made between the different types. For example, the first event information includes a time sharing type and a day K type, the type of the first time information may be switched by a click operation, and then the first event information is sent to the message stream of the first application through the second application, and is acquired through the first application.
Step S204, a first instruction triggered according to the first event information is received at the current time.
In the technical solution provided by the foregoing step S204 in the present application, a first instruction triggered according to first event information is received at a current time, where the first instruction is used to instruct to view event information of a preset event.
After first event information of a preset event generated at a first time is acquired by the first application, the information of the preset event may be viewed, for example, the information of the preset event may be viewed by opening a message stream of the first application. The information of the preset event is viewed according to the fact that the first event information is received, on the basis, a first instruction triggered according to the first event information is received at the current time, the unit of the current time can be 'day', and the first instruction can be an instruction generated by a user operating the first application according to the first event information, for example, an icon displayed before the message stream is displayed is clicked, and then the first instruction is generated. The first command may also be generated by a double-click operation after staying in a preset area for a preset time, which is not limited herein.
Step S206, in response to the first instruction, running the target application for executing the preset event to obtain the second event information.
In the technical solution provided by the foregoing step S206 in the present application, in response to the first instruction, the target application for executing the preset event is executed, so as to obtain the second event information, where the event information includes the second event information.
The preset event may be run by the target application. For example, the preset event is a stock related event, and may be run by a stock application or a stock web page in a browser. The first application can view event information of the preset event at any time. And responding to the first instruction, and operating the target application for executing the preset event to obtain second event information, wherein the second event information is the latest event information of the preset event and carries the latest data of the target application. Alternatively, for stock applications, the data of the time-sharing market day can be viewed when viewed on the same day, and the market information from the information day sent by the second application to the latest trading day can be viewed by the first application when the event information sent by the second application is not expired.
Step S208, displaying the second event information in the first application.
In the technical solution provided by the foregoing step S208 in the present application, the second event information is displayed in the first application.
And after the target application for executing the preset event is operated and the second event information is obtained, displaying the second event information in the first application. The second event information can be displayed in a chat interface of the first application, and can be displayed in a card form, for example, a market card is triggered, and the second event information is displayed in a market card form, for example, the latest real-time information of a financial product is displayed, so that the latest real-time data of the target application can be displayed by the first application under the condition that a preset scene is not switched, the recommendation and introduction of the related information of the target application in the first application are realized, the problems that the operation is complicated, the interaction capacity is not available, and the real-time data cannot be reflected by screenshot when the related information and data of the target application are checked in the preset scene of the first application are solved, and the information processing efficiency is improved.
Through the above steps S202 to S208, first event information generated by a preset event is acquired by the first application, the preset event generating event information over time, the event information including the first event information sent by the second application; receiving a first instruction triggered according to first event information at the current time, wherein the first instruction is used for indicating to view event information of a preset event; responding to the first instruction, and running a target application for executing a preset event to obtain second event information, wherein the event information comprises the second event information; the second event information is displayed in the first application. The real-time information of the target application can be checked in the message validity period through the first application, so that the user can stay in the preset scene, inconvenience caused by switching application scenes and screenshots is avoided, the technical effect of improving the information processing efficiency is achieved, and the technical problem of low information processing efficiency in the related technology is solved.
As an alternative implementation, in step S208, displaying the second event information in the first application includes: the first event information is displayed in the first application.
Optionally, after a target application for executing a preset event is run and second event information is obtained, first event information and the second event information are displayed in a message stream in a first application, and the first event information has a reference value for the first event information, so that a user can display real-time information of the target application through the first application, accuracy of information display of the target application is guaranteed, related data information during sending is reserved for reference and comparison of the user, the display mode guarantees that sending data and real-time data of the target application can be viewed through the first application, and characteristics of the message stream are embodied.
As an alternative implementation, the step S208 of displaying the second event information in the first application includes: under the condition that the current time is not expired relative to the first time, displaying event information generated by a preset event from the first time to the current time in a first application, wherein a second application sends the first event information at the first time; and displaying event information generated by a preset event at the current time in the first application under the condition that the current time is expired relative to the first time.
The event information of the target application has timeliness, and if the time for sending the event message is long enough from the current time, the information in the message flow has no reference value. In this embodiment, if the time between the first time when the second application sends the first event information and the current time exceeds a preset time, it is determined that the first event information of the target application displayed by the first application at the current time expires, for example, the preset time is three transaction days. Determining that the first event information is not expired if a time between a first time when the second application transmits the first event information and a current time does not exceed a preset time.
The types of the first event information comprise a time-sharing data type and a day K data type, and for the first event information of the time-sharing data type, if the current time exceeds a preset time relative to the first time, the current time is determined to be expired relative to the first time, optionally, for the first event information of the time-sharing data type, when the current time exceeds three transaction days viewed by the first application when being sent, because the first time is earlier, the current first event information cannot provide effective event information, the information of the first event information at the current time is displayed at the current time, that is, the latest information is displayed, and the expired first event information cannot be displayed. For the first event information of the day K type, only the data within the current screen of the first application is displayed, and the data exceeding one screen is not displayed any more, that is, the earlier event information is not displayed.
When the second event information is displayed in the first application, the second event information may be displayed on a lower portion of an application picture of the first application, and the first event information may be displayed on an upper portion of the application picture. Alternatively, the event information displayed by the first application may be data for a day when viewed on that day and identify the time at which the first event information was sent. Under the condition that the current time is not expired relative to the first time, for example, under the condition that the current time is across days and is unexpired relative to the first time, the first application can check the event information generated from the first time to the current time, for example, check the market information from the information sending date to the latest transaction date, and identify the time for sending the first event information in the market map, so that the first event information at the sending time is reserved, the latest data of the second event information is provided for reference and comparison of a user, the method is more friendly to the user, and the user experience is improved.
As an alternative implementation, the step S208 of displaying the second event information in the first application includes: acquiring a preset keyword sent by a second application at a second time through a first application; acquiring first identification information matched with the keyword; receiving a second instruction through the first identification information; and responding to the second instruction and displaying the second event information on the first application.
Fig. 3 is a flowchart of a method of displaying second event information in a first application according to an embodiment of the present invention. As shown in fig. 3, the method comprises the steps of:
step S301, obtaining a preset keyword sent by the second application at the second time through the first application.
In the technical solution provided in the foregoing step S301 of the present application, a preset keyword sent by a second application at a second time is obtained by a first application, where the preset keyword has a matching relationship with a preset event.
The preset keywords are used for matching preset events, the second application sends the preset keywords to the first application at the second time, and the first application acquires the preset keywords and does not adopt a mode of triggering and sending a market information card.
Step S302, first identification information matched with the keywords is obtained.
In the technical solution provided in the foregoing step S302 of the present application, first identification information matched with the keyword is obtained, where the first identification information is used to identify a preset event.
After the preset keywords sent by the second application at the second time are obtained through the first application, the first identification information matched with the keywords is obtained. The first application carries out automatic matching according to the preset keywords, and the user can see the matched first identification information in the message flow. For example, the QQ application performs automatic matching according to stock keywords, and the user can see that the matched stock text follows a logo in the message stream.
Step S303, receiving a second instruction through the first identification information.
In the technical solution provided by the foregoing step S303 of the present application, a second instruction is received through the first identification information, where the second instruction is used to indicate and display event information of a preset event.
After the first identification information matched with the keyword is obtained, a second instruction is received through the first identification information, where the second instruction may be an instruction generated by a user operating the first identification information, for example, the second instruction is an instruction generated by a single-click operation, a double-click operation, and after the second instruction stays in a preset area for a preset time, and this is not limited here.
And step S304, responding to the second instruction and displaying second event information on the first application.
In the technical solution provided in the above step S304 of the present application, the second instruction is responded, and the second event information is displayed on the first application.
And responding to the second instruction, displaying second event information of the target application on the first application, for example, displaying the latest quotation of the stock application at the current moment, thereby facilitating the user to quickly know the stock quotation change and improving the information processing efficiency.
In the embodiment, a preset keyword sent by a second application at a second time is obtained through a first application, wherein the preset keyword has a matching relationship with a preset event; acquiring first identification information matched with the keyword, wherein the first identification information is used for identifying a preset event; receiving a second instruction through the first identification information, wherein the second instruction is used for indicating and displaying event information of a preset event; and responding to the second instruction, and displaying the second event information on the first application, so that the purpose of displaying the second event information in the first application is achieved, and the effect of improving the information processing efficiency is realized.
As an alternative implementation, in step S208, the displaying the second event information in the first application includes: acquiring a first target parameter; when the first target parameter indicates that the first application is an object for receiving the event information, acquiring event data carried by the second event information; a first image is rendered and displayed on a first application from the event data.
Fig. 4 is a flowchart of another method for displaying second event information in a first application according to an embodiment of the present invention. As shown in fig. 4, the method comprises the steps of:
step S401, a first target parameter is obtained.
In the technical solution provided in the foregoing step S401 of the present application, a first target parameter is obtained, where the first target parameter is used to indicate whether a first application is an object for receiving event information.
The first target parameter of this embodiment is a program parameter, and the first target parameter is used to identify whether the current state of the first application is a receiving end that receives the event information or a sending end that sends the event information.
Step S402, when the first target parameter indicates that the first application is the object for receiving the event information, the event data carried by the second event information is obtained.
In the technical solution provided in the foregoing step S402 of the present application, when the first target parameter indicates that the first application is an object for receiving event information, event data carried by the second event information is acquired.
After the first target parameter is obtained, when the first target parameter indicates that the first application is an object for receiving event information, event data carried by the second event information is obtained, the event data also carries sending time information SendTime for the first application to send the first event information, and a code of the current target application is needed to obtain the data, for example, a stock code is used to obtain the data.
In step S403, a first image is rendered and displayed on the first application from the event data.
In the technical solution provided in the above step S403, a first image is drawn and displayed on the first application from the event data, where the first image is used to indicate the second event information.
After the event data is acquired, the data is sorted, and the market quotation graph is drawn by using the sorted data fmtData, so that a first image is obtained, wherein the first image can be a market quotation graph of stocks, and the first image is used for indicating second event information. At this time, if the first image includes unexpired transmission time information, the first image needs to be identified by a mark point at a corresponding position of the first image.
Alternatively, for time-sharing data, if there is a transmission time SendTime, it is necessary to determine whether the time to transmit the first event information has expired. The expiration time for this embodiment is three transaction days. The obtained multi-day time sharing data (usually five-day data) may be multiData = [ minute0, minute1, \8230, minuteN ] (data are arranged in time sequence from new to old, that is, minute0 is the data of the same day, and minuteN data is the oldest), wherein each time sharing data corresponds to date0, date1 \8230anddaten. At this time, if the transmission date SendDate = dateM cannot be found, it can be directly judged that the first event information has expired and expired. If SendDate = dateM exists and the index value M < =2 of dateM, indicating that the data of the first event information is not expired, a marker point needs to be added in the first image. And intercepting all data of minute 0-minuteM from the drawing data of the first image to draw, recording points marked in SendTime during formatting, and storing the recorded marked data into a data file fmtData of the first image.
The embodiment comprises the steps of acquiring a first target parameter, wherein the first target parameter is used for indicating whether a first application is an object for receiving event information or not; when the first target parameter indicates that the first application is an object for receiving the event information, acquiring event data carried by the second event information; and drawing and displaying a first image on the first application by the event data, wherein the first image is used for indicating second event information, so that the aim of displaying the second event information in the first application is fulfilled, and the technical effect of improving the information processing efficiency is realized.
As an alternative embodiment, the step S403, drawing and displaying the first image on the first application from the event data includes: and in the case that the current time is not expired relative to the first time, marking second identification information on the first image, wherein the second identification information is used for identifying the first time.
In a case where the current time is unexpired with respect to the first time, the first time is an unexpired transmission time, and second identification information for identifying the first time is marked on the first image, where the second identification information, that is, the marking data, may be a marking point.
As an alternative embodiment, before marking the second identification information on the first image, the method includes: acquiring time before the current time, and determining that the current time is expired relative to the first time under the condition that the first time does not exist; and under the condition that a target time equal to the first time exists and the index value of the target time meets a preset condition, determining that the current time is not expired relative to the first time.
Fig. 5 is a flowchart of another information processing method according to an embodiment of the present invention. As shown in fig. 5, the method comprises the steps of:
in step S501, a plurality of time periods of event data before the current time are acquired.
In the technical solution provided by the foregoing step S501 in the present application, multiple time periods of event data before the current time are obtained, where a time interval between each time period and the current time is smaller than a time interval between a time other than the multiple time periods and the current time, and each time period is sorted according to a preset order and identified by an index value.
The method comprises the steps of obtaining multiple periods of event data before the current time, wherein the unit of the multiple periods of time is date, the time interval between each period of time and the current time is smaller than the time interval between the time except the multiple periods of time and the current time, namely, the multiple periods of time are arranged from new to old, and obtaining multi-day time sharing data (generally five-day data) as multiData = [ minute0, minute1, \8230minuen ] (the data are arranged from new to old, namely, minute0 is current-day data and minuen is oldest), wherein each time sharing data corresponds to date as date0, date1 \8230, dateN,0 to N are respectively index values of each date.
Step S502, under the condition that the first time does not exist in the plurality of time periods, determining that the current time is overdue relative to the first time.
In the technical solution provided in the foregoing step S502 of the present application, when there is no first time in the plurality of periods of time, it is determined that the current time expires with respect to the first time.
After acquiring a plurality of pieces of time of event data before the current time, in a case where there is no first time among the plurality of pieces of time, it is determined that the current time is expired with respect to the first time, that is, if the transmission date SendDate = date cannot be found, where M belongs to any one of 0 to N, it may be directly judged that the current time is expired with respect to the first time, and has expired.
In step S503, when there is a target time equal to the first time in the multiple periods of time and the index value of the target time satisfies a preset condition, it is determined that the current time is not expired with respect to the first time.
In the technical solution provided in step S503 of the present application, when there is a target time equal to the first time in the plurality of periods of time and the index value of the target time satisfies a preset condition, it is determined that the current time is not expired with respect to the first time.
After a plurality of periods of time for which event data before the current time is acquired, if there is a target time equal to the first time in the plurality of periods of time and the index value of the target time satisfies a preset condition, for example, if there is SendDate = dateM and the index value M < =2 of dateM, it indicates that the data is not expired, and within 3 transaction days, it is necessary to add a marker in the first image. And intercepting all data of mini 0-mini M by the drawing data to draw, recording points marked in SendTime during formatting, and recording marking data and storing the marking data into fmtData in a data file of the first image.
The embodiment acquires a time before a current time by marking second identification information on the first image, and determines that the current time is expired relative to the first time in the absence of the first time; when the target time equal to the first time exists and the index value of the target time meets the preset condition, the current time is determined to be unexpired relative to the first time, and then a mark point is added to the first image for marking the unexpired state of the first time, so that the user can check the image conveniently, and the user experience is improved.
As an alternative embodiment, the step S403, drawing and displaying the first image on the first application from the event data includes: acquiring a second target parameter; when the type of the second event information indicated by the second target parameter is a preset type, acquiring the second event information and event data including a preset number carried by the event information before the current time; a first image is rendered and displayed on a first application with a preset amount of event data.
Fig. 6 is a flowchart of another method of rendering and displaying a first image on a first application from event data according to an embodiment of the present invention. As shown in fig. 6, the method comprises the steps of:
step S601, a second target parameter is obtained.
In the technical solution provided by the foregoing step S601 in the present application, a second target parameter is obtained, where the second target parameter is used to indicate a type of the second event information.
The second target parameter is a program parameter for indicating the type of the first event information, for example, for indicating that the type of the first time information is a time-sharing data type,
step S602, when the type of the second event information indicated by the second target parameter is a preset type, obtaining the second event information and event data including a preset number carried by the event information before the current time. In the technical solution provided in the foregoing step S602 of the present application, when the type of the second event information indicated by the second target parameter is a preset type, the second event information and the preset number of event data carried by the event information before the current time are acquired.
After the second target parameter is obtained, when the type of the second event information is a preset type, the second event information and event data including a preset number carried by the event information before the current time are obtained, for example, if the type of the second event information is a day K type, the latest data (generally 320 pieces) are obtained by using stock codes, and one screen of the latest data (40 pieces in this embodiment) is intercepted as the display data of the second event information.
Step S603, a first image is drawn and displayed through a preset number of event data on the first application.
In the technical solution provided in the above step S603 of the present application, a first image is drawn and displayed on a first application by a preset number of event data.
After the second event information and the preset number of event data carried by the event information before the current time are obtained, the data are obtained and then are sorted, whether the SendTime of the sending time of the first event information exists or not is judged, if yes, the event data with the same date are searched in the preset number of event data, if yes, the mark point exists, and the mark data are recorded. And if the SendTime does not exist or the data with the same date does not exist, drawing and displaying the first image without processing.
The embodiment obtains a second target parameter, where the second target parameter is used to indicate a type of the second event information; when the type of the second event information indicated by the second target parameter is a preset type, acquiring the second event information and event data including a preset number carried by the event information before the current time; the first image is drawn and displayed on the first application through the preset amount of event data, and the purpose that the first image is drawn and displayed on the first application through the event data is achieved.
As an optional implementation manner, after the second event information is displayed in the first application, the method further includes: and sending third event information to the second application at a third time through the first application, wherein the third time is a time after the current time.
The first application of this embodiment may be a receiving end or a transmitting end, and the second application may be a transmitting end or a receiving end. The first application may serve as a transmitting end to transmit the third event information to the second application. In a preset scenario, when the first application sends the third event information, the program carries the data state of the third event information at this time, after the message stream is sent to the second application, the second application can open the message stream at any time to view, and the second application can see the latest real-time data of the target application and the data information of the third event information at the sending time. Optionally, for the time-sharing market data of the non-current day, market information of the current day of the message sending needs to be presented.
As an optional implementation manner, the sending, by the first application, the third event information to the second application at the third time includes: displaying third event information of the first type on the first application; receiving a third instruction; responding to a third instruction, and switching the first type into a second type; third event information of the second type is transmitted to the second application at a third time.
Fig. 7 is a flowchart of a method for transmitting third event information to a second application at a third time by a first application according to an embodiment of the present invention. As shown in fig. 7, the method comprises the steps of:
step S701, third event information of the first type is displayed on the first application.
In the technical solution provided in the above step S701 of the present application, the third event information of the first type is displayed on the first application.
And displaying third event information of a first type on the first application, wherein the first type can be a time-sharing data type or a day K data type. And when the third event information is edited, calling the light application to trigger the market quotation card and presenting the event data of the target application, wherein the target application can be a stock application.
In step S702, a third instruction is received.
In the technical solution provided in the foregoing step S702 of the present application, a third instruction is received, where the third instruction is used to instruct to switch the first type to the second type.
After the third event information of the first type is displayed on the first application, a third instruction is received, and the first type can be switched to the second type through the third instruction, for example, when the first type is a time-sharing data type, the time-sharing data type of the third event information is switched to a second type day K data type; and when the first type is a day K data type, switching the time-sharing data type of the third event information into the first type time-sharing data type. The third instruction may be a single-click operation, a double-click operation, or an instruction generated after the user stays at a preset position for a preset time when the user views the third event information, which is not limited herein.
Step S703, responding to the third instruction, and switching the first type to the second type.
In the technical solution provided in the foregoing step S703 of the present application, the third instruction is responded, and the first type is switched to the second type.
And after receiving the third instruction, responding to the third instruction and switching the first type into the second type.
Step S704, sending third event information of the second type to the second application at a third time.
In the technical solution provided in the foregoing step S704 of the present application, third event information of a second type is sent to the second application at a third time.
After the first type is switched to the second type, the third event information is sent to the second application, and the sending button on the first application can be clicked, so that the third event information of the second type can be sent to the message flow of the second application.
The embodiment displays the first type of third event information on the first application; receiving a third instruction for indicating to switch the first type to the second type; responding to a third instruction, and switching the first type into a second type; and sending the second type of third event information to the second application at the third time, so that the purpose that the first application is used as the sending end to send the third event information to the second application which is used as the receiving end at the third time is realized, and the information processing efficiency is improved.
As an optional implementation manner, before the third event information is sent to the second application at the third time by the first application, the method includes: acquiring a first target parameter; when the first target parameter indicates that the first application is an object for sending information, event data carried by third event information is acquired; and drawing and displaying a second image used for indicating the third event information on the first application through the event data carried by the third event information.
Fig. 8 is a flowchart of another information processing method according to an embodiment of the present invention. As shown in fig. 8, the method comprises the steps of:
step S801, a first target parameter is acquired.
In the technical solution provided by the foregoing step S801 of the present application, a first target parameter is obtained, where the first target parameter is used to indicate whether the first application is an object for receiving event information.
And before the third event information is sent to the second application at the third time through the first application, acquiring a first target parameter, wherein the first target parameter is a program parameter and is used for indicating whether the first application is an object for receiving the event information or an object for sending the information.
Step S802, when the first target parameter indicates that the first application is an object for sending information, acquiring event data carried by the third event information.
In the technical solution provided by step S802 above in this application, when the first target parameter indicates that the first application is an object for sending information, event data carried by the third event information is obtained.
After the first target parameter is obtained, when the first target parameter indicates that the first application is an object for sending information, the time-of-day data carried by the third event information needs to be obtained.
And step S803, drawing and displaying a second image used for indicating the third event information on the first application through the event data carried by the third event information.
In the technical solution provided in the above step S803 of the present application, a second image indicating third event information is drawn and displayed on the first application through event data carried by the third event information.
And after the event data carried by the third event information is acquired, drawing and displaying a second image used for indicating the third event information on the first application through the time-of-day data carried by the third event information.
Before sending, by the first application, the third event information to the second application at the third time, the method further comprises: acquiring a first target parameter; when the first target parameter indicates that the first application is an object for sending information, acquiring event data carried by third event information; and drawing and displaying a second image used for indicating the third event information on the first application through the event data carried by the third event information.
The embodiment acquires the first target parameter before sending the third event information to the second application at the third time through the first application; when the first target parameter indicates that the first application is an object for sending information, event data carried by third event information is acquired; and a second image used for indicating the third event information is drawn and displayed on the first application through the event data carried by the third event information, so that the event information sending method when the first application is used as a sending end is realized, the problems that the operation of switching the applications is complicated, the interaction capacity is not available, and the screenshot cannot reflect real-time data are solved, and the information processing efficiency is improved.
The embodiment is a method for displaying data trend of a target application in a message stream, which can enable a sending end to select information and types of the target application which are interested, and send the information and the types to a receiving end, and meanwhile, the receiving end can check real-time data and sending time data of the target application within a message validity period, so that a user can stay in a preset scene, inconvenience of switching application screenshots is avoided, meanwhile, latest event information of the target application and event information during sending can be checked in the message stream, real-time performance of the target application is guaranteed, timeliness of the message stream is guaranteed, and efficiency of information processing is improved.
Example 2
The technical solution of the present invention is described below with reference to preferred embodiments, specifically to illustrate a method for displaying financial product data.
A message flow is information with timing. The embodiment provides a method for displaying the data trend of financial products in a message stream, and a sending end and a receiving end are used for carrying out interaction of the data of the financial products. The sending end of the embodiment can send the real-time information of the financial product to the message flow of the receiving end, wherein the real-time information is related data information of the sending end when sending the financial product, the receiving end keeps the related data information of the sending end when sending the financial product, and the real-time data of the financial product and the data when sending can be displayed within the message validity period, so that a user can see the real-time data of the financial product, the accuracy of the data of the financial product is guaranteed, and the characteristic of the message flow is reflected. The financial product of this embodiment may be a stock APP, a web page related to the financial product in a browser, or the like.
The information stream of this embodiment may be a chat information stream of an instant messaging application, where the chat information stream is time-sequenced chat information displayed in a chat window of the instant messaging application by a user. The embodiment realizes a financial product display method based on the message flow of the instant messaging application. For a sending end, time-sharing information and day K information of financial products can be displayed, and a user can select to send the time-sharing information or the day K information to a message stream of a receiving end at the sending end; and displaying the latest real-time information of the financial product on the receiving end, and displaying the information of the sending end during sending. At this time, if the information sent by the sending end is out of date, for example, the time of sending the information by the sending end is more than 3 transaction days from the current time, it is determined that the information sent by the sending end is out of date, and only the latest real-time information of the financial product is displayed.
Fig. 9 is a flowchart of another information processing method according to an embodiment of the present invention. As shown in fig. 9, the method includes the steps of:
in step S901, program parameters are acquired.
When information processing is carried out, program parameters are obtained, and the program parameters are used for indicating whether the current state of the first application is a sending end or a receiving end. The data display type is a time-sharing type or a day K type, if the first application is a receiving end, time information Sendtime during sending is also carried, and in addition, a current stock code is required to obtain data.
Step S902, determine whether the first application is a sending end.
After the program parameters are obtained, whether the first application is a sending end or not is judged according to the program parameters. If the first application is determined to be the sending end, step S903 is executed, and if the first application is determined not to be the sending end, step S904 is executed.
In step S903, the time-of-day data is acquired.
After judging whether the first application is the sending end, if the first application is judged to be the sending end, the time-of-day data is directly obtained, and the latest data is displayed.
Step S904, acquiring multi-day time-sharing data.
After judging whether the first application is a sending end, if the first application is judged to be a receiving end, acquiring multi-day time-sharing data to judge whether the data sent by the sending end is overdue.
Step S905, performs data sorting on the acquired data.
After the time-of-day data or the time-of-multiple-day data is acquired, the acquired data is sorted to obtain sorted data.
For time-sharing data, if the time-sharing data has a sending time SendTime when the sending end sends the time-sharing data, it is necessary to determine whether the sending time has expired relative to the current time. Optionally, the expiration time of this embodiment is set to the three transaction days closest to the current time.
Optionally, the acquired multi-day time sharing data (usually five-day data) is multiData = [ minute0, minute1, \8230, minuteN ], where the time sharing data minute0, minute1, \8230, minuteN are arranged in order from small to large according to the time interval from the current time of data generation, that is, the time sharing data minute0 is the current day data, and the time interval from the current time of the time sharing data minuteN is the largest. Wherein, the date corresponding to the daily time sharing data is date0, date1 \8230anddate N. At this time, if the transmission date SendDate = dateM of the time-sharing data transmitted by the transmitting end cannot be found from date0, date1 \8230anddaten, it is possible to directly judge that the time-sharing data transmitted by the transmitting end is invalid. If data 0, data 1 \8230, sendDate = dateM exists in dateN, and the index value M < =2 of dateM indicates that the time sharing data sent by the sending end is not expired.
And step S906, drawing a market situation graph according to the sorting data.
And after the acquired data are subjected to data sorting, drawing a market situation graph according to the sorted data.
And under the condition that the time-sharing data sent by the sending end is not overdue, intercepting all data of minute 0-minuteM for drawing, recording points marked in SendTime during formatting, and recording marking data and storing the marking data into an image file fmtData.
In step S907, it is determined whether unexpired transmission time information exists.
And after the market situation graph is drawn according to the sorting data, judging whether unexpired sending time information exists or not. If it is determined that there is unexpired transmission time information, step S908 is executed, and if it is determined that there is unexpired transmission time information, the process ends.
Step S908, draw mark points.
After judging whether unexpired sending time information exists or not, if the unexpired sending time information exists, drawing a marking point on the market plot, marking the corresponding position of the market plot through the marking point, and adding the marking point in the fmtData.
The embodiment judges whether the first application is a sending end or not by acquiring the program parameters, acquires time-sharing data of the current day when the first application is judged to be the sending end, acquires multi-day time-sharing data when the first application is judged not to be the sending end, performs data sorting on the acquired data, draws a quotation diagram according to the sorted data, judges whether unexpired sending time information exists or not, and draws a mark point, thereby realizing drawing of the quotation diagram of the stock application
The drawing process of the time-sharing graph is only described, because when the day K is drawn, whether a sending end or a receiving end needs to be fully drawn with full-screen data, the logic is relatively simple, and here, the following introduction is carried out on the drawing flow of the K line:
first, program parameters are obtained, if the program parameters are of a day K type, the latest data (generally 320 items) are obtained by using stock codes, and one screen of data ViewData (40 items specified in the scheme) is intercepted as display data. And acquiring data, then performing data sorting, simultaneously judging whether SendTime exists, if so, searching data with the same date in ViewData, if so, indicating that a mark point exists, and recording mark data. If there is no SendTime or no data with the same date, no processing is performed. And then drawing, if the mark points exist, drawing the mark points.
It should be noted that the embodiment may also be extended to other information flows, such as message flows of various social networks, and the like, which is not limited herein.
Example 3
The application environment of the embodiment of the present invention may refer to the application environment in the above embodiment, but is not limited to this embodiment, and details thereof are not described again in this embodiment. The embodiment of the invention provides an optional specific application for implementing the information processing method.
The embodiment adopts the light application mode, and the market information of the financial product is displayed in the message flow of the instant messaging application in a mode of operating the light application. The user does not need to cut out a chat scene, calls the light application to trigger the market quotation card when editing the message, presents financial product data, can respectively check by clicking switch time-sharing or day-K types, and finally can send the data to the message stream by clicking a sending button.
Fig. 10A is a display diagram of information processing at a transmitting end according to an embodiment of the present invention. As shown in fig. 10A, when editing a message, calling a light application trigger market quotation card, presenting data of a financial product with a date of 2017/01/16, wherein the data of the financial product is of a time-sharing data type, and can be identified by "time sharing" at the upper right corner, and a line indicates a trend of data change, a sending button below the market quotation card can be clicked to send the data to a message stream of a receiving end, and a sending time program carries a data state at this time.
Fig. 10B is a display diagram of another information processing at the transmitting end according to an embodiment of the present invention. As shown in fig. 10B, the data of the financial product is of a day K type, the user can switch to the time-sharing data type shown in fig. 10A by clicking the "day K" at the upper right corner, and then check the data, and finally click the sending button below the market information card to send the data to the message stream of the receiving end, and the sending time program carries the data state at this time.
Fig. 11A is a schematic diagram of a time-sharing data processing display at a receiving end according to an embodiment of the present invention. Fig. 11B is a schematic diagram of a day K data processing display at a receiving end according to an embodiment of the present invention. After the sender sends the data for the financial product to the recipient's message stream, the recipient may open the message stream for viewing at any time. When viewed, the latest real-time data and the data information of the sending time of the financial product can be seen. Particularly, for time-sharing market data of a non-current day, market information of the current day of message sending needs to be presented. The lower text information of the market cards shown in fig. 11A and 11B is real-time data when the receiving end views stocks, for example, china bank (601988), 2017/02/08, 15:05:53 , +0.01, +0.28%, upper text information shows the stock price data at the time of message transmission 3.55, +0.28%. This embodiment displays only the data for one day and identifies the sending time when the data is viewed on that day.
Fig. 12 is a schematic diagram of displaying unexpired information at a receiving end according to an embodiment of the present invention. As shown in fig. 12, in the case of spanning days and not expired, the receiving end can view the market information from the date of sending the information to the latest date of trading, and the date 20170208 of sending the message is identified in the market map. The display mode is more user-friendly, not only retains the data at the sending time, but also provides the latest data for reference and comparison of the user.
Furthermore, since market data of financial products is time-efficient, if the time for transmission is already long, the information in the message stream has no reference value. Therefore, in the scheme, the latest market information is uniformly displayed for the market of more than three trading days when the time-sharing data is transmitted and the time interval between the time-sharing data and the time of the checking of the receiving end, and the market information during the transmission is not marked. For data of day K type, only data within the current screen is marked, and no earlier information is shown beyond one screen.
Fig. 13 is a schematic diagram of displaying expiration information at a receiving end according to an embodiment of the present invention. As shown in fig. 13, is a graphical representation viewed by a receiving end user in an expired state. Because the sending time is too early, the current market information can not provide timely and effective information, so that a historical market trend chart is not reserved, and only the sending time 2017/02/08 15 is shown for the user: 01:36 stock price information and latest market trend information.
Fig. 14 is a schematic illustration of an identification information display according to an embodiment of the present invention. In another scenario, as shown in fig. 14, if the user sends the text directly, without selecting to trigger the market card and send, the QQ will match automatically according to the stock keywords, and the user will see in the message that the matched stock text will follow a logo.
FIG. 15 is a diagrammatic view of a current display of an information process in accordance with an embodiment of the present invention. As shown in fig. 15, the user clicking the logo will show the latest quotation of the stock at the current moment, for example, the Chinese Bank (601988), 2017/02/08, 15.
At the moment, the sending end user does not actively initiate market quotation drawing application, so that the market quotation state when the message is sent cannot be presented on the card, and only the latest real-time data information can be displayed.
The embodiment of the invention provides a method for displaying the data trend of a financial product in a message flow. The scheme can enable the sending end to select the interested financial products and types to send out, and meanwhile, the receiving end can check the real-time data and the sending time data of the financial products within the message validity period. The method enables the user to remain in the chat scene, avoids the inconvenience of switching the application screenshots, and can check the latest information and the sending time information of a certain financial product in the message flow, thereby ensuring the real-time performance of the financial product and maintaining the timeliness of the message flow.
It should be noted that for simplicity of description, the above-mentioned method embodiments are shown as a series of combinations of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art will appreciate that the embodiments described in this specification are presently preferred and that no acts or modules are required by the invention.
Through the description of the foregoing embodiments, it is clear to those skilled in the art that the method according to the foregoing embodiments may be implemented by software plus a necessary general hardware platform, and certainly may also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 4
According to the embodiment of the invention, the message processing device for implementing the message processing method is also provided. Fig. 16 is a schematic diagram of an information processing apparatus according to an embodiment of the present invention. As shown in fig. 16, the apparatus may include: an acquisition unit 10, a receiving unit 20, a response unit 30 and a first display unit 40.
An obtaining unit 10 is configured to obtain, by a first application, first event information generated by a preset event, where the preset event generates event information over time, and the event information includes the first event information transmitted by a second application.
The receiving unit 20 is configured to receive a first instruction triggered according to the first event information at a current time, where the first instruction is used to instruct to view event information of a preset event.
The response unit 30 is configured to respond to the first instruction, execute a target application for executing a preset event, and obtain second event information, where the event information includes the second event information.
And a first display unit 40 for displaying the second event information in the first application.
The device also includes: and the second display unit is used for displaying the first event information in the first application when the second event information is displayed in the first application.
The first display unit 40 includes: the display device comprises a first display module and a second display module. The first display module is used for displaying event information generated by a preset event from a first time to the current time in a first application under the condition that the current time is not expired relative to the first time; and the second display module is used for displaying the event information generated by the preset event at the current time in the first application under the condition that the current time is expired relative to the first time.
Optionally, the first display unit 40 includes: the device comprises a first acquisition module, a second acquisition module, a first receiving module and a third display module. The first obtaining module is used for obtaining a preset keyword sent by a second application at a second time through a first application, wherein the preset keyword and a preset event have a matching relationship; the second acquisition module is used for acquiring first identification information matched with the keywords, wherein the first identification information is used for identifying a preset event; the first receiving module is used for receiving a second instruction through the first identification information, wherein the second instruction is used for indicating and displaying event information of a preset event; and the third display module is used for responding to the second instruction and displaying the second event information on the first application.
Alternatively, the first display unit 40 includes: the device comprises a third acquisition module, a fourth acquisition module and a fourth display module. The third obtaining module is configured to obtain a first target parameter, where the first target parameter is used to indicate whether the first application is an object for receiving event information; the fourth acquisition module is used for acquiring the event data carried by the second event information when the first target parameter indicates that the first application is the object for receiving the event information; and the fourth display module is used for drawing and displaying a first image on the first application by the event data, wherein the first image is used for indicating the second event information.
Optionally, the fourth display module comprises: the device comprises a first obtaining submodule, a second obtaining submodule and a display submodule. The first obtaining submodule is used for obtaining a second target parameter, wherein the second target parameter is used for indicating the type of second event information; the second obtaining submodule is used for obtaining the second event information and event data including a preset number carried by the event information before the current time when the type of the second event information indicated by the second target parameter is a preset type; and the display sub-module is used for drawing and displaying the first image on the first application through a preset number of event data.
Optionally, the apparatus further comprises: and the sending unit is used for sending third event information to the second application at a third time through the first application after the second event information is displayed in the first application, wherein the third time is the time after the current time.
Optionally, the sending unit includes: the device comprises a fifth display module, a second receiving module, a switching module and a sending module. The fifth display module is used for displaying the third event information of the first type on the first application; the second receiving module is used for receiving a third instruction, wherein the third instruction is used for indicating that the first type is switched to the second type; the switching module is used for responding to the third instruction and switching the first type into the second type; and the sending module is used for sending third event information of the second type to the second application at a third time.
Optionally, the apparatus further comprises: the device comprises a first acquisition unit, a second acquisition unit and a third display unit. The first obtaining unit is used for obtaining a first target parameter before third event information is sent to the second application at a third time through the first application, wherein the first target parameter is used for indicating whether the first application is an object for receiving the event information; the second acquiring unit is used for acquiring event data carried by the third event information when the first target parameter indicates that the first application is an object for sending information; and the third display unit is used for drawing and displaying a second image used for indicating the third event information on the first application through the event data carried by the third event information.
It should be noted that the obtaining unit 10 in this embodiment may be configured to execute step S202 in embodiment 1 of this application, the receiving unit 20 in this embodiment may be configured to execute step S204 in embodiment 1 of this application, and the responding unit 30 in this embodiment may be configured to execute step S206 in embodiment 1 of this application. The first display unit 40 in this embodiment may be configured to perform step S208 in embodiment 1 of the present application.
In this embodiment, the obtaining unit 10 is configured to obtain, by a first application, first event information generated by a preset event, where the preset event generates event information over time, the event information includes the first event information sent by a second application, and receive, by the receiving unit 20, a first instruction triggered according to the first event information at a current time, where the first instruction is used to instruct viewing of the event information of the preset event; responding to the first instruction through the response unit 30, and running a target application for executing a preset event to obtain second event information, wherein the event information includes the second event information; the first display unit 40 is used to display the second event information in the first application. The real-time information of the target application can be checked in the message validity period through the first application, so that the user can stay in the preset scene, inconvenience caused by switching application scenes and screenshots is avoided, the technical effect of improving the information processing efficiency is achieved, and the technical problem of low information processing efficiency in the related technology is solved.
It should be noted here that the above units and modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of the above embodiment 1. It should be noted that the above units and modules as a part of the apparatus may be operated in a hardware environment as shown in fig. 1, and may be implemented by software, or may be implemented by hardware, where the hardware environment includes a network environment.
Example 5
According to the embodiment of the invention, the invention also provides a server or a terminal for implementing the message processing method.
Fig. 17 is a block diagram of a terminal according to an embodiment of the present invention. As shown in fig. 17, the terminal may include: one or more processors 171 (only one shown), a memory 173, and a transmission means 175, as shown in fig. 17, the terminal may further include an input-output device 177.
The memory 173 may be used to store software programs and modules, such as program instructions/modules corresponding to the message processing method and apparatus in the embodiment of the present invention, and the processor 171 executes various functional applications and data processing by running the software programs and modules stored in the memory 173, that is, implements the message processing method described above. The memory 173 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 173 can further include memory remotely located from the processor 171, which can be connected to the terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 175 is used for receiving or transmitting data via a network, and may also be used for data transmission between the processor and the memory. Examples of the network may include a wired network and a wireless network. In one example, the transmission device 175 includes a Network adapter (NIC) that can be connected to a router via a Network cable and other Network devices to communicate with the internet or a lan. In one example, the transmission device 175 is a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
Among other things, the memory 173 is used to store application programs.
The processor 171 may call the application stored in the memory 173 through the transmission device 175 to perform the following steps:
acquiring first event information generated by a preset event through a first application, wherein the preset event generates event information along with the passage of time, and the event information comprises the first event information sent by a second application;
receiving a first instruction triggered according to first event information at the current time, wherein the first instruction is used for indicating to view event information of a preset event;
responding to the first instruction, and running a target application for executing a preset event to obtain second event information, wherein the event information comprises the second event information;
the second event information is displayed in the first application.
The processor 171 is further configured to perform the following steps: when the second event information is displayed in the first application, the first event information is displayed in the first application.
The processor 171 is further configured to perform the following steps: under the condition that the current time is not expired relative to the first time, displaying event information generated by a preset event from the first time to the current time in a first application, wherein a second application sends the first event information at the first time; and displaying event information generated by a preset event at the current time in the first application under the condition that the current time is expired relative to the first time.
The processor 171 is further configured to perform the following steps: acquiring a preset keyword sent by a second application at a second time through a first application, wherein the preset keyword has a matching relation with a preset event; acquiring first identification information matched with the keyword, wherein the first identification information is used for identifying a preset event; receiving a second instruction through the first identification information, wherein the second instruction is used for indicating and displaying event information of a preset event; and responding to the second instruction and displaying the second event information on the first application.
The processor 171 is further configured to perform the following steps: acquiring a first target parameter, wherein the first target parameter is used for indicating whether a first application is an object for receiving event information; when the first target parameter indicates that the first application is an object for receiving the event information, acquiring event data carried by the second event information; and drawing and displaying a first image on the first application by the event data, wherein the first image is used for indicating second event information.
The processor 171 is further configured to perform the following steps: acquiring a second target parameter, wherein the second target parameter is used for indicating the type of second event information; when the type of the second event information indicated by the second target parameter is a preset type, acquiring the second event information and event data including a preset number carried by the event information before the current time; a first image is rendered and displayed on a first application with a preset amount of event data.
The processor 171 is further configured to perform the following steps: and after the second event information is displayed in the first application, third event information is sent to the second application at a third time through the first application, wherein the third time is a time after the current time.
The processor 171 is further configured to perform the following steps: displaying third event information of the first type on the first application; receiving a third instruction, wherein the third instruction is used for indicating that the first type is switched to the second type; responding to a third instruction, and switching the first type into a second type; third event information of the second type is transmitted to the second application at a third time.
The processor 171 is further configured to perform the following steps: before third event information is sent to a second application at a third time through a first application, a first target parameter is obtained, wherein the first target parameter is used for indicating whether the first application is an object for receiving the event information; when the first target parameter indicates that the first application is an object for sending information, acquiring event data carried by third event information; and drawing and displaying a second image used for indicating the third event information on the first application through the event data carried by the third event information.
The embodiment of the invention provides a message processing scheme. Acquiring first event information generated by a preset event through a first application, wherein the preset event generates event information along with the passage of time, and the event information comprises the first event information sent by a second application; receiving a first instruction triggered according to first event information at the current time, wherein the first instruction is used for indicating to view event information of a preset event; responding to the first instruction, and running a target application for executing a preset event to obtain second event information, wherein the event information comprises the second event information; the second event information is displayed in the first application. Due to the fact that the real-time information of the target application can be checked through the first application within the message validity period, the user can stay in the preset scene in the mode, inconvenience caused by switching application scenes and screen shots is avoided, the technical effect of improving information processing efficiency is achieved, and the technical problem of low information processing efficiency in the related technology is solved.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
It can be understood by those skilled in the art that the structure shown in fig. 17 is only an illustration, and the terminal may be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palm computer, and a Mobile Internet Device (MID), a PAD, etc. Fig. 17 is a diagram illustrating the structure of the electronic device. For example, the terminal may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 17, or have a different configuration than shown in FIG. 17.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, read-Only memories (ROMs), random Access Memories (RAMs), magnetic or optical disks, and the like.
Example 6
The embodiment of the invention also provides a storage medium. Alternatively, in this embodiment, the storage medium may be a program code for executing the message processing method.
Optionally, in this embodiment, the storage medium may be located on at least one of a plurality of network devices in a network shown in the embodiment.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps:
acquiring first event information generated by a preset event through a first application, wherein the preset event generates event information along with the passage of time, and the event information comprises the first event information sent by a second application;
receiving a first instruction triggered according to first event information at the current time, wherein the first instruction is used for indicating to view event information of a preset event;
responding to the first instruction, and running a target application for executing a preset event to obtain second event information, wherein the event information comprises the second event information;
the second event information is displayed in the first application.
Optionally, the storage medium is further arranged to store program code for performing the steps of: when the second event information is displayed in the first application, the first event information is displayed in the first application.
Optionally, the storage medium is further arranged to store program code for performing the steps of: under the condition that the current time is not expired relative to the first time, displaying event information generated by a preset event from the first time to the current time in a first application, wherein a second application sends the first event information at the first time; and displaying event information generated by a preset event at the current time in the first application under the condition that the current time is expired relative to the first time.
Optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring a preset keyword sent by a second application at a second time through a first application, wherein the preset keyword has a matching relation with a preset event; acquiring first identification information matched with the keyword, wherein the first identification information is used for identifying a preset event; receiving a second instruction through the first identification information, wherein the second instruction is used for indicating and displaying event information of a preset event; and responding to the second instruction and displaying the second event information on the first application.
Optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring a first target parameter, wherein the first target parameter is used for indicating whether a first application is an object for receiving event information; when the first target parameter indicates that the first application is an object for receiving the event information, acquiring event data carried by the second event information; and drawing and displaying a first image on the first application by the event data, wherein the first image is used for indicating second event information.
Optionally, the storage medium is further arranged to store program code for performing the steps of: acquiring a second target parameter, wherein the second target parameter is used for indicating the type of the second event information; when the type of the second event information indicated by the second target parameter is a preset type, acquiring the second event information and event data including a preset number carried by the event information before the current time; a first image is rendered and displayed on a first application with a preset amount of event data.
Optionally, the storage medium is further arranged to store program code for performing the steps of: and after the second event information is displayed in the first application, sending third event information to the second application at a third time through the first application, wherein the third time is a time after the current time.
Optionally, the storage medium is further arranged to store program code for performing the steps of: displaying third event information of the first type on the first application; receiving a third instruction, wherein the third instruction is used for indicating that the first type is switched to the second type; responding to a third instruction, and switching the first type into a second type; third event information of the second type is transmitted to the second application at a third time.
Optionally, the storage medium is further arranged to store program code for performing the steps of: before third event information is sent to a second application at a third time through a first application, a first target parameter is obtained, wherein the first target parameter is used for indicating whether the first application is an object for receiving the event information; when the first target parameter indicates that the first application is an object for sending information, event data carried by third event information is acquired; and drawing and displaying a second image used for indicating the third event information on the first application through the event data carried by the third event information.
Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments, and this embodiment is not described herein again.
Optionally, in this embodiment, the storage medium may include but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and various media capable of storing program codes.
The above-mentioned serial numbers of the embodiments of the present invention are only for description, and do not represent the advantages and disadvantages of the embodiments.
The integrated unit in the above embodiments, if implemented in the form of a software functional unit and sold or used as a separate product, may be stored in the above computer-readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing one or more computer devices (which may be personal computers, servers, network devices, etc.) to execute all or part of the steps of the method according to the embodiments of the present invention.
In the above embodiments of the present invention, the description of each embodiment has its own emphasis, and reference may be made to the related description of other embodiments for parts that are not described in detail in a certain embodiment.
In the several embodiments provided in the present application, it should be understood that the disclosed client may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (13)

1. An information processing method, characterized by comprising:
acquiring, by a first application, first event information generated by a preset event, wherein the preset event generates event information over time, the event information including first event information transmitted by a second application in a case where a transmission instruction for the first event information is received, the first event information corresponding to a transmission time of the transmission instruction;
receiving a first instruction triggered according to the first event information at the current time, wherein the first instruction is used for indicating to view the event information of the preset event;
responding to the first instruction, running a target application for executing the preset event, and obtaining second event information corresponding to the current time, wherein the event information comprises the second event information, and the target application is an application in which the preset event is stored;
displaying the first event information and the second event information in a message card in a conversation window of the first application.
2. The method of claim 1, wherein displaying the second event information in the first application comprises:
displaying event information generated by the preset event from a first time to a current time in the first application under the condition that the current time is not expired relative to the first time, wherein the first event information is sent by the second application at the first time;
and displaying event information generated by the preset event at the current time in the first application under the condition that the current time is expired relative to the first time.
3. The method of claim 1, wherein displaying the second event information in the first application comprises:
acquiring a preset keyword sent by the second application at a second time through the first application, wherein the preset keyword has a matching relationship with the preset event;
acquiring first identification information matched with the keyword, wherein the first identification information is used for identifying the preset event;
receiving a second instruction through the first identification information, wherein the second instruction is used for indicating and displaying event information of the preset event;
and responding to the second instruction and displaying the second event information on the first application.
4. The method of any of claims 1-3, wherein displaying the second event information in the first application comprises:
acquiring a first target parameter, wherein the first target parameter is used for indicating whether the first application is an object for receiving the event information;
when the first target parameter indicates that the first application is an object for receiving the event information, acquiring event data carried by the second event information;
drawing and displaying a first image on the first application by the event data, wherein the first image is used for indicating the second event information.
5. The method of claim 4, wherein rendering and displaying the first image on the first application from the event data comprises:
acquiring a second target parameter, wherein the second target parameter is used for indicating the type of the second event information;
when the type of the second event information indicated by the second target parameter is a preset type, acquiring the second event information and event data including a preset number carried by the event information before the current time;
and drawing and displaying the first image on the first application through the preset amount of event data.
6. The method of claim 1, wherein after displaying the second event information in the first application, the method further comprises:
and sending third event information to the second application at a third time through the first application, wherein the third time is a time after the current time.
7. The method of claim 6, wherein sending the third event information to the second application at the third time by the first application comprises:
displaying the third event information of the first type on the first application;
receiving a third instruction, wherein the third instruction is used for indicating to switch the first type into the second type;
responding to the third instruction, and switching the first type to be the second type;
transmitting the third event information of the second type to the second application at the third time.
8. The method of claim 6, wherein before sending the third event information to the second application at the third time by the first application, the method comprises:
acquiring a first target parameter, wherein the first target parameter is used for indicating whether the first application is an object for receiving event information;
when the first target parameter indicates that the first application is an object for sending information, acquiring event data carried by the third event information;
and drawing and displaying a second image used for indicating the third event information on the first application through the event data carried by the third event information.
9. An information processing apparatus characterized by comprising:
an acquisition unit configured to acquire, by a first application, first event information generated by a preset event, wherein the preset event generates event information over time, the event information including first event information transmitted by a second application in a case where a transmission instruction for the first event information is received, the first event information corresponding to a transmission time of the transmission instruction;
the receiving unit is used for receiving a first instruction triggered according to the first event information at the current time, wherein the first instruction is used for indicating to check the event information of the preset event;
a response unit, configured to respond to the first instruction, run a target application for executing the preset event, and obtain second event information corresponding to the current time, where the event information includes the second event information;
a first display unit, configured to display the first event information and the second event information in a message card in a session window of the first application.
10. The apparatus of claim 9, wherein the first display unit comprises:
a first display module, configured to display, in the first application, event information generated by the preset event from a first time to a current time when the current time is not expired relative to the first time when the second event information is displayed in the first application, where the second application sends the first event information at the first time;
and the second display module is used for displaying the event information generated by the preset event at the current time in the first application under the condition that the current time is expired relative to the first time.
11. The apparatus of claim 9, wherein the first display unit comprises:
the first obtaining module is used for obtaining a preset keyword sent by the second application at a second time through the first application, wherein the preset keyword and the preset event have a matching relationship;
the second obtaining module is used for obtaining first identification information matched with the keywords, wherein the first identification information is used for identifying the preset event;
a first receiving module, configured to receive a second instruction through the first identification information, where the second instruction is used to instruct to display event information of the preset event;
and the third display module is used for responding to the second instruction and displaying the second event information on the first application.
12. The apparatus according to any one of claims 9 to 11, wherein the first display unit comprises:
a third obtaining module, configured to obtain a first target parameter, where the first target parameter is used to indicate whether the first application is an object for receiving the event information;
a fourth obtaining module, configured to obtain event data carried by the second event information when the first target parameter indicates that the first application is an object for receiving the event information;
and a fourth display module, configured to draw and display a first image on the first application from the event data, where the first image is used to indicate the second event information.
13. A storage medium, comprising a stored program, wherein the program when executed performs the method of any one of claims 1 to 8.
CN201710338922.7A 2017-05-15 2017-05-15 Message processing method and device Active CN108874514B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710338922.7A CN108874514B (en) 2017-05-15 2017-05-15 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710338922.7A CN108874514B (en) 2017-05-15 2017-05-15 Message processing method and device

Publications (2)

Publication Number Publication Date
CN108874514A CN108874514A (en) 2018-11-23
CN108874514B true CN108874514B (en) 2022-12-09

Family

ID=64320207

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710338922.7A Active CN108874514B (en) 2017-05-15 2017-05-15 Message processing method and device

Country Status (1)

Country Link
CN (1) CN108874514B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104967644B (en) * 2014-09-26 2017-09-15 腾讯科技(深圳)有限公司 Information push method, apparatus and system
CN105630876B (en) * 2015-12-17 2019-10-22 百度在线网络技术(北京)有限公司 Information acquisition method and device across application
CN105610698B (en) * 2016-02-02 2019-01-11 腾讯科技(深圳)有限公司 The treating method and apparatus of event result
CN105718152A (en) * 2016-03-07 2016-06-29 腾讯科技(深圳)有限公司 Application event interaction method and device
CN106528624B (en) * 2016-09-30 2020-02-14 财付通支付科技有限公司 Information display method and device
CN106656743B (en) * 2016-10-08 2020-02-14 腾讯科技(深圳)有限公司 Message display method, device and system
CN106484858B (en) * 2016-10-09 2019-12-06 腾讯科技(北京)有限公司 hot content pushing method and device

Also Published As

Publication number Publication date
CN108874514A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN108632129B (en) Message prompting method, message display method and related device
CN111158831B (en) Data processing method, device, equipment and medium based on instant messaging application
CN108334525A (en) A kind of method for exhibiting data and device
CN105871690B (en) Method and device for realizing instant messaging
KR102340228B1 (en) Message service providing method for message service linking search service and message server and user device for performing the method
CN107797717B (en) Push method, display method, client device and data processing system
KR20080078431A (en) System and method for keyword searching in messenger and computer readable medium processing the method
CN112215924A (en) Picture comment processing method and device, electronic equipment and storage medium
US20150379471A1 (en) Management system for transmission of electronic business card based on telephone number linkage and method therefor
CN110460514A (en) Message method, device, storage medium and the equipment of instant messaging tools
CN108304368A (en) The kind identification method and device and storage medium and processor of text message
CN109391539A (en) A kind of message treatment method and device
CN108429667B (en) Information display method and device
CN110244885B (en) Input method, device, equipment and storage medium
CN109697129A (en) A kind of information sharing method, equipment and computer readable storage medium
CN115202599A (en) Screen projection display method and related device
CN110912806A (en) Message processing method, device, storage medium and electronic device
CN112395029A (en) Application program interface display method and device, electronic equipment and storage medium
CN105988679B (en) A kind of information demonstrating method, device and a kind of user equipment
CN104123070A (en) Information processing method and electronic device
CN112260933B (en) Communication method, communication device, electronic equipment and medium
CN108874514B (en) Message processing method and device
CN111010335A (en) Chat expression sending method and device, electronic equipment and medium
CN112306592A (en) Message processing method and device, storage medium and electronic device
CN114221923B (en) Message processing method and device and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant