Disclosure of Invention
In view of the above, the present invention has been made to provide a method and apparatus for implementing an information alert that overcomes or at least partially solves the above problems.
According to one aspect of the present invention, there is provided a method for implementing information reminding, the method comprising:
starting information reminding and generating reminding content;
judging whether the reminding content comprises a chart or not;
when the reminding content comprises a chart, acquiring a screenshot of an animation Flash chart corresponding to the chart from a screenshot browser;
inserting the screenshot into reminding content to generate reminding information;
and sending the generated reminding information comprising the screenshot to a user subscribing the information reminding.
Optionally, the starting information reminding specifically includes:
and scheduling the message sending thread at regular time, and starting the message reminding.
Optionally, the obtaining a screenshot of the animation Flash chart corresponding to the chart from the screenshot browser specifically includes:
sending a chart acquisition request to a first server, so that the first server acquires a screenshot of an animation Flash chart corresponding to the chart from a screenshot browser after receiving the chart acquisition request;
and receiving a screenshot of the animation Flash chart corresponding to the chart sent by the first server.
Optionally, the sending a diagram obtaining request to the first server so that the first server obtains a screenshot of the Flash diagram corresponding to the diagram from a screenshot browser after receiving the diagram obtaining request specifically includes:
sending a chart acquisition request comprising a chart address to a first server, enabling the first server to send an instruction comprising the chart address after receiving the chart acquisition request, opening a screenshot browser, enabling the screenshot browser to access an animation Flash chart corresponding to the chart according to the chart address in the instruction, displaying the accessed animation Flash chart, and carrying out screenshot on the displayed animation Flash chart.
According to another aspect of the present invention, there is provided an apparatus for implementing an information reminder, the apparatus comprising:
the starting module is used for starting the information reminding and generating reminding content;
the judging module is used for judging whether the reminding content comprises a chart or not;
the acquisition module is used for acquiring a screenshot of the animation Flash chart corresponding to the chart from the screenshot browser when the reminding content comprises the chart;
the generating module is used for inserting the screenshot into reminding content to generate reminding information;
and the sending module is used for sending the generated reminding information comprising the screenshot to a user subscribing the information reminding.
Optionally, the starting module is specifically configured to schedule a message sending thread at regular time, and start the information prompt.
Optionally, the obtaining module specifically includes:
the request sending submodule is used for sending a chart acquisition request to the first server, so that the first server acquires a screenshot of an animation Flash chart corresponding to the chart from a screenshot browser after receiving the chart acquisition request;
and the screenshot receiving submodule is used for receiving the screenshot of the animation Flash chart corresponding to the chart sent by the first server.
Optionally, the request sending sub-module is specifically configured to send a chart acquisition request including a chart address to the first server, so that the first server sends an instruction including the chart address after receiving the chart acquisition request, opens the screenshot browser, enables the screenshot browser to access the animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and captures the displayed animation Flash chart.
Optionally, the reminding information includes: the e-mail reminding information is sent to the user,
the sending module is specifically configured to send the generated email reminding information to the mailbox of the user by using the user who subscribes to the email reminding information as a recipient.
The invention has the beneficial effects that: according to the technical scheme of the invention, the information reminding can be started, and whether the reminding content comprises the chart or not is judged; when the reminding content comprises the chart, acquiring the screenshot of the Flash chart of the animation corresponding to the chart from the screenshot browser; inserting the screenshot into the reminding content to generate reminding information; and sending the generated reminding information comprising the screenshot to a user subscribing the information reminding. Because the Flash chart has the characteristics of high diversity and better presentation effect, the technical scheme of the invention solves the problems that the chart generated by calling Jfreecharts by using Java lacks diversity and the chart presents poor effect, and has the beneficial effects of increasing the chart diversity in the reminding information and improving the chart presentation effect.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, a flow chart of a method for implementing an information alert is shown according to one embodiment of the present invention. The method can be used in various configurations of servers, and as shown in fig. 1, the method includes steps S110-S140.
In step S110, the information reminder is started, and reminder content is generated.
In step S120, it is determined whether the reminder content includes a chart.
The server starts the information reminding and generates reminding content. The server judges whether the reminding content to be sent in the information reminding comprises a chart or not, if the reminding content comprises the chart, the subsequent steps S130 to S150 are executed, if the reminding content does not comprise the chart, the subsequent steps S130 to S150 are not required to be executed, the reminding information is directly generated, and the reminding information is sent to the user subscribing the information reminding.
In an embodiment, the starting the information reminder may specifically include: and scheduling the message sending thread at regular time, and starting the message reminding. For example, in the case of sending an email reminder to a user, a mail sending thread is scheduled to start the email reminder. Therefore, timely information reminding can be realized.
In step S130, when the reminding content includes the chart, a screenshot of the animation Flash chart corresponding to the chart is obtained from the screenshot browser.
The operation of obtaining the screenshot of the animation Flash chart corresponding to the chart from the screenshot browser can be executed by the server, and can also be finished by the server indicating another server.
The screenshot browser is application software and is used for opening a picture in the interface according to the address and screenshot the picture in the interface.
The diagram included in the reminding content has configured corresponding information, and the corresponding information includes a diagram address. And when the reminding information comprises a plurality of charts, reading the information corresponding to each chart according to a preset sequence, and acquiring the screenshot of the Flash chart of the animation corresponding to each chart from the screenshot browser according to the chart address in the corresponding information.
For example, the server executes an operation of obtaining a screenshot of an animation Flash chart corresponding to the chart from a screenshot browser. When the reminding content comprises the diagram, the application server sends an instruction comprising a diagram address, opens the screenshot browser, enables the screenshot browser to access the animation Flash diagram corresponding to the diagram according to the diagram address in the instruction, displays the accessed animation Flash diagram, and performs screenshot on the displayed animation Flash diagram. When the screenshot browser is local application software of the application server, the application server sends an instruction in a local bus, the screenshot browser is opened, the screenshot browser accesses an animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and captures the displayed animation Flash chart. When the screenshot browser is application software in another device connected with the application server, the application server sends an instruction to the other device through a network, the screenshot browser is opened, the screenshot browser accesses an animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and captures the displayed animation Flash chart.
In an embodiment, as shown in fig. 2, acquiring a screenshot of an animation Flash chart corresponding to a chart from a screenshot browser specifically includes:
step S132, sending a screenshot obtaining request to the first server, so that the first server obtains the screenshot of the Flash chart corresponding to the chart from the screenshot browser after receiving the screenshot obtaining request.
For example, in step S132, a chart acquisition request including a chart address is sent to the first server, so that the first server sends an instruction including the chart address after receiving the chart acquisition request, opens the screenshot browser, and makes the screenshot browser access the Flash chart corresponding to the chart according to the chart address in the instruction, display the accessed Flash chart, and perform screenshot on the displayed Flash chart.
And step S134, receiving the screenshot of the animation Flash chart corresponding to the chart sent by the first server.
For example, in the present embodiment, the first server includes a picture export server, and the application server is responsible for sending the reminding information to the user. The application server sends a chart acquisition request including a chart address to the picture export server. And after receiving the chart acquisition request, the picture export server sends an instruction to the equipment where the screenshot browser is located, wherein the instruction comprises a chart address. And after receiving the instruction, the equipment where the screenshot browser is located opens the screenshot browser, so that the screenshot browser accesses the animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and captures the displayed animation Flash chart. When the screenshot browser is local application software of the picture export server, the picture export server sends an instruction in a local bus, the screenshot browser is opened, the screenshot browser accesses an animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and captures the displayed animation Flash chart. When the screenshot browser is application software in another device connected with the picture export server, the picture export server sends an instruction to the other device through a network, the screenshot browser is opened, the screenshot browser accesses an animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and captures the displayed animation Flash chart.
In step S140, the screenshot is inserted into the reminder content, and reminder information is generated.
In step S150, the generated reminder information including the screenshot is sent to the user who subscribes to the reminder information.
In one embodiment, the reminder information includes: the method includes that email reminding information is generated, the reminding information including screenshots is sent to a user subscribing the information reminding, and the method specifically includes the following steps: and taking the user subscribing the email reminding information as a receiver, and sending the generated email reminding information to the mailbox of the user.
In this embodiment, the information reminder may be started, and whether the reminder content includes a chart or not may be determined; when the reminding content comprises the chart, acquiring the screenshot of the Flash chart of the animation corresponding to the chart from the screenshot browser; inserting the screenshot into the reminding content to generate reminding information; and sending the generated reminding information comprising the screenshot to a user subscribing the information reminding. Because the Flash chart has the characteristics of high diversity and better presentation effect, the technical scheme of the invention solves the problems that the chart generated by calling Jfreecharts by using Java lacks diversity and the chart presents poor effect, and has the beneficial effects of increasing the chart diversity in the reminding information and improving the chart presentation effect.
Referring to fig. 3, a schematic diagram of a scenario for implementing an information alert is shown according to an embodiment of the present invention. The application server is connected with the picture export server through a network, the picture export server is connected with equipment where the screenshot browser is located through the network, and the application server is connected with the mail receiving equipment through the network. As shown in fig. 4, the method includes steps S410-S470.
In step S410, the application server schedules the mail sending thread at regular time and starts the email message reminder.
In step S420, the application server determines whether the content of the email alert message includes a chart.
In step S430, when the chart is not included in the content of the email alert information, the application server directly produces the email alert information, followed by performing step S470.
In step S440, when the content of the email alert information includes a chart, the application server sends a chart acquisition request including a chart address to the picture export server, so that the picture export server acquires a screenshot of an animation Flash chart corresponding to the chart from the screenshot browser after receiving the chart acquisition request.
And after receiving the request, the picture export server sends an instruction to the equipment where the screenshot browser is located, wherein the instruction comprises the diagram address. And after receiving the instruction, the equipment where the screenshot browser is located opens the screenshot browser, so that the screenshot browser accesses the animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and captures the displayed animation Flash chart.
In step S450, the application server receives the screenshot of the animation Flash chart corresponding to the chart sent by the picture export server.
In step S460, the application server inserts the screenshot into the content of the email notification message, and generates the email notification message.
In step S470, the application server sends the generated email alert message to the mailbox of the user who subscribes to the email alert message as a recipient.
The above is merely an exemplary illustration of the method for implementing information reminding of the present invention, and the present invention is not limited thereto. Any modification, equivalent replacement, improvement and the like made within the spirit or principle of the present invention are included in the scope of protection of the present invention.
FIG. 5 shows a block diagram of an apparatus for implementing an informational alert in accordance with one embodiment of the present invention. Can be used in various configurations of servers, as shown in fig. 5, the apparatus includes:
a starting module 510, configured to start an information reminder and generate reminder content;
a judging module 520, configured to judge whether the reminding content includes a chart;
an obtaining module 530, configured to obtain, when the reminding content includes a chart, a screenshot of an animation Flash chart corresponding to the chart from a screenshot browser;
the generating module 540 is configured to insert the screenshot into a reminding content to generate reminding information;
a sending module 550, configured to send the generated reminder information including the screenshot to a user subscribing to the information reminder.
Specifically, the operation of the obtaining module 530 obtaining the screenshot of the animation Flash chart corresponding to the chart from the screenshot browser may be executed by the server itself, or may be completed by the server instructing another server.
The screenshot browser is application software and is used for opening a picture in the interface according to the address and screenshot the picture in the interface.
The diagram included in the reminding content has corresponding information, and the corresponding information includes a diagram address. When the reminding information includes a plurality of charts, the obtaining module 530 reads information corresponding to each chart according to a preset sequence, and obtains a screenshot of the Flash chart corresponding to each chart from the screenshot browser according to the chart address in the corresponding information.
For example, the server executes an operation of obtaining a screenshot of an animation Flash chart corresponding to the chart from a screenshot browser. When the reminding content includes a chart, the obtaining module 530 sends an instruction including a chart address, opens the screenshot browser, enables the screenshot browser to access the animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and performs screenshot on the displayed animation Flash chart. When the screenshot browser is local application software of the application server, the obtaining module 530 sends an instruction in a local bus, and opens the screenshot browser, so that the screenshot browser accesses an animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and captures the displayed animation Flash chart.
In an embodiment, the starting module 510 is specifically configured to schedule a message sending thread at regular time, and start the information reminding.
In an embodiment, as shown in fig. 6, the obtaining module 530 specifically includes:
the request sending submodule 532 is used for sending a chart acquisition request to the first server, so that the first server acquires a screenshot of an animation Flash chart corresponding to the chart from a screenshot browser after receiving the chart acquisition request;
and the screenshot receiving submodule 534 is used for receiving the screenshot of the animation Flash chart corresponding to the chart sent by the first server.
Further, the request sending sub-module 532 is specifically configured to send a chart acquisition request including a chart address to the first server, so that the first server sends an instruction including the chart address after receiving the chart acquisition request, opens the screenshot browser, enables the screenshot browser to access the animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and performs screenshot on the displayed animation Flash chart.
For example, in the present embodiment, the first server includes a picture export server, and the request sending sub-module 532 sends the chart obtaining request to the picture export server. And after receiving the chart acquisition request, the picture export server sends an instruction to the equipment where the screenshot browser is located, wherein the instruction comprises a chart address. And after receiving the instruction, the equipment where the screenshot browser is located opens the screenshot browser, so that the screenshot browser accesses the animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and captures the displayed animation Flash chart. When the screenshot browser is local application software of the picture export server, the picture export server sends an instruction in a local bus, the screenshot browser is opened, the screenshot browser accesses an animation Flash chart corresponding to the chart according to the chart address in the instruction, displays the accessed animation Flash chart, and captures the displayed animation Flash chart.
In one embodiment, the reminder information includes: the e-mail reminding information is sent to the user,
the sending module 550 is specifically configured to send the generated email notification message to the mailbox of the user by using the user who subscribes to the email notification message as a recipient.
Because the Flash chart has the characteristics of high diversity and better presentation effect, the technical scheme of the invention solves the problems that the chart generated by calling Jfreecharts by using Java lacks diversity and the chart presents poor effect, and has the beneficial effects of increasing the chart diversity in the reminding information and improving the chart presentation effect.
In this embodiment, the information reminder may be started, and whether the reminder content includes a chart or not may be determined; when the reminding content comprises the chart, acquiring the screenshot of the Flash chart of the animation corresponding to the chart from the screenshot browser; inserting the screenshot into the reminding content to generate reminding information; and sending the generated reminding information comprising the screenshot to a user subscribing the information reminding. Because the Flash chart has the characteristics of high diversity and better presentation effect, the technical scheme of the invention solves the problems that the chart generated by calling Jfreecharts by using Java lacks diversity and the chart presents poor effect, and has the beneficial effects of increasing the chart diversity in the reminding information and improving the chart presentation effect.
The algorithms and displays presented herein are not inherently related to any particular computer, virtual machine, or other apparatus. Various general purpose devices may be used with the teachings herein. The required structure for constructing such a device will be apparent from the description above. Moreover, the present invention is not directed to any particular programming language. It is appreciated that a variety of programming languages may be used to implement the teachings of the present invention as described herein, and any descriptions of specific languages are provided above to disclose the best mode of the invention.
In the description provided herein, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.