CN108093004B - Method and device for pushing graphs in report - Google Patents

Method and device for pushing graphs in report Download PDF

Info

Publication number
CN108093004B
CN108093004B CN201611031763.8A CN201611031763A CN108093004B CN 108093004 B CN108093004 B CN 108093004B CN 201611031763 A CN201611031763 A CN 201611031763A CN 108093004 B CN108093004 B CN 108093004B
Authority
CN
China
Prior art keywords
graph
push
pushing
mail
queue
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
CN201611031763.8A
Other languages
Chinese (zh)
Other versions
CN108093004A (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.)
Shenzhen Idreamsky Technology Co ltd
Original Assignee
Shenzhen Idreamsky Technology 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 Shenzhen Idreamsky Technology Co ltd filed Critical Shenzhen Idreamsky Technology Co ltd
Priority to CN201611031763.8A priority Critical patent/CN108093004B/en
Publication of CN108093004A publication Critical patent/CN108093004A/en
Application granted granted Critical
Publication of CN108093004B publication Critical patent/CN108093004B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/565Conversion or adaptation of application format or content
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/42Mailbox-related aspects, e.g. synchronisation of mailboxes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a method and a device for pushing graphs in reports, wherein the method comprises the following steps: the push server detects a push task in a push task set; when a push task is detected, extracting a first URL (Uniform resource locator) address corresponding to a report form from the push task, and creating an IFRAME (extensible firmware framework) corresponding to the push task according to the first URL address, wherein the IFRAME framework carries a current environment identifier; if the current environment identifier indicates that the current environment is a simulation environment, performing graph conversion processing on all graphs contained in the IFRAME framework to generate graph data; initiating a graph rendering request to a file server through the graph data, and receiving a graph queue returned by the file server; and pushing the graph in the report according to the graph queue. By adopting the method and the device, the accuracy of graph pushing in the report can be effectively improved.

Description

Method and device for pushing graphs in report
Technical Field
The disclosure relates to the technical field of computer application, in particular to a method and a device for pushing graphs in reports.
Background
As shown in fig. 1, the process of pushing the graph in the existing report roughly includes: when the push server detects a push task, acquiring various parameters of the graph in the report form from the push task; drawing relevant graphic data in a report form from the file server according to various parameters, and carrying out graphic rendering on the graphic data by calling a graphic library of the push server to generate a graphic; and pushing the graph in the report according to the graph.
As can be seen from the above, the graph in the report is formed in the file server, and the actually pushed graph is generated in the push server, if it cannot be guaranteed that the graph library in the push server is consistent with the graph library in the file server, the graph in the report will be different from the actually pushed graph, which results in inaccurate graph pushing in the report and poor user experience.
Disclosure of Invention
Based on this, an object of the present disclosure is to provide a method for pushing a graph in a report, which is used to solve the problem in the prior art that the accuracy of pushing the graph in the report is not high.
In addition, another object of the present disclosure is to provide a device for pushing a graph in a report, which is used to solve the problem in the prior art that the accuracy of pushing the graph in the report is not high.
In order to solve the technical problem, the technical scheme adopted by the disclosure is as follows:
a method for pushing graphs in reports comprises the following steps: the push server detects a push task in a push task set; when a push task is detected, extracting a first URL (Uniform resource locator) address corresponding to a report form from the push task, and creating an IFRAME (extensible firmware framework) corresponding to the push task according to the first URL address, wherein the IFRAME framework carries a current environment identifier; if the current environment identifier indicates that the current environment is a simulation environment, performing graph conversion processing on all graphs contained in the IFRAME framework to generate graph data; initiating a graph rendering request to a file server through the graph data, and receiving a graph queue returned by the file server; and pushing the graph in the report according to the graph queue.
Further, the method further comprises: simulating browser services through calling of a Webkit kernel so as to enable the current environment to enter a simulated environment; wherein the IFRAME frame is created in a page frame of the browser service.
Further, before the step of receiving the graphics queue returned by the file server, the method further includes: the file server receives the graphics rendering request, wherein the graphics rendering request carries the graphics data; carrying out graphic rendering on the graphic data by calling a graphic library to generate a graphic queue; and sending the graphics queue to the push server.
Further, the step of pushing the graph in the report according to the graph queue includes: acquiring a graph corresponding to a second URL address by traversing the second URL address contained in the graph queue; and sending the acquired graph to a mail pushing service so as to push the graph through the mail pushing service.
Further, the step of sending the acquired graph to a mail push service includes: generating mail content according to the acquired graph; and packaging the mail content, the mail header and the mail receiving address to generate a mail, and sending the mail to the mail push service.
A device for pushing graphics in a report, the device comprising: the task detection module is used for detecting the push tasks in the push task set by the push server; the frame creation module is used for extracting a first URL (uniform resource locator) address corresponding to a report form from a push task when the push task is detected, and creating an IFRAME frame corresponding to the push task according to the first URL address, wherein the IFRAME frame carries a current environment identifier; the image processing module is used for performing image conversion processing on all images contained in the IFRAME framework to generate image data if the current environment identifier indicates that the current environment is a simulation environment; the queue receiving module is used for initiating a graph rendering request to a file server through the graph data and receiving a graph queue returned by the file server; and the graph pushing module is used for pushing the graphs in the report according to the graph queue.
Further, the apparatus further comprises: the kernel starting module is used for simulating browser services through calling of a Webkit kernel so as to enable the current environment to enter a simulation environment; wherein the IFRAME frame is created in a page frame of the browser service.
Further, the apparatus further comprises: a request receiving module, configured to receive, by the file server, the graphics rendering request, where the graphics rendering request carries the graphics data; the queue generating module is used for carrying out graphic rendering on the graphic data by calling a graphic library to generate a graphic queue; and the queue sending module is used for sending the graphics queue to the push server.
Further, the graphics push module comprises: the graph obtaining unit is used for obtaining a graph corresponding to a second URL address by traversing the second URL address contained in the graph queue; and the graph sending unit is used for sending the obtained graph to a mail pushing service so as to push the graph through the mail pushing service.
Further, the graphic transmission unit includes: the mail content acquisition unit is used for generating mail content according to the acquired graphics; and the mail generating unit is used for packaging the mail content, the mail title and the mail receiving address to generate a mail and sending the mail to the mail push service.
Compared with the prior art, the method has the following beneficial effects:
and carrying out graphic rendering on the graphic data by calling a graphic library of the file server to generate a graphic queue so as to push the graphics in the report according to the graphic queue. The graph data is generated by performing graph conversion processing on all graphs contained in the IFRAME framework in a simulation environment, and the IFRAME framework is created according to a first URL address corresponding to a report carried by a push task in a push task set.
That is to say, the graph in the report and the actually pushed graph are both generated in the file server, so that the phenomenon that the graph in the report and the actually pushed graph in the prior art are different is avoided, the accuracy of graph pushing in the report is effectively improved, and the user experience is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
FIG. 1 is a schematic diagram of a push process for graphics in a report according to the prior art;
FIG. 2 is a schematic illustration of an implementation environment according to the present disclosure;
FIG. 3 is a block diagram illustrating a server in accordance with an exemplary embodiment;
FIG. 4 is a flowchart illustrating a method for pushing a graph in a report in accordance with an exemplary embodiment;
FIG. 5 is a flowchart of an embodiment of a step of pushing a graph in a report according to the graph queue in the embodiment corresponding to FIG. 4;
FIG. 6 is a flowchart of steps performed in an embodiment corresponding to the embodiment in FIG. 5 to send the obtained graph to a mail push service;
FIG. 7 is a flow diagram illustrating another push method of graphics in a report in accordance with an illustrative embodiment;
FIG. 8 is a diagram illustrating an implementation of a method for pushing a graph in a report in an application scenario;
FIG. 9 is a block diagram illustrating a push mechanism for graphics in a report in accordance with an exemplary embodiment;
FIG. 10 is a block diagram illustrating an alternative push mechanism for graphics in a report in accordance with an illustrative embodiment.
While specific embodiments of the disclosure have been shown and described in detail in the drawings and foregoing description, such drawings and description are not intended to limit the scope of the disclosed concepts in any way, but rather to explain the concepts of the disclosure to those skilled in the art by reference to the particular embodiments.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 2 is an implementation environment related to a method for pushing a graph in a report. The implementation environment comprises at least two servers 100, the servers 100 comprising a push server 101 and a file server 103.
The push server 101 is responsible for displaying, intercepting and pushing the graphs in the report, and the file server 103 is responsible for storing the graphs in the report and calling the graph library.
The pushing of the graphics in the report is realized through the interaction between the pushing server 101 and the file server 103, for example, the pushing may be performed in a mail manner.
FIG. 3 is a block diagram illustrating a server in accordance with an example embodiment. The hardware configuration is only one example of an application of the present disclosure and should not be considered as any limitation on the scope of use of the present disclosure, nor should it be construed that the present disclosure requires reliance on the server 100.
The server 100 may have a large difference due to different configurations or performances, as shown in fig. 3, the server 100 includes: a power supply 110, an interface 130, at least one storage medium 150, and at least one Central Processing Unit (CPU) 170.
The power supply 110 is used to provide operating voltage for each hardware device on the server 100.
The interface 130 includes at least one wired or wireless network interface 131, at least one serial-to-parallel conversion interface 133, at least one input/output interface 135, and at least one USB interface 137, etc. for communicating with external devices.
The storage medium 150 may be a random access medium, a magnetic disk or an optical disk as a carrier for storing resources, the resources stored thereon include an operating system 151, an application 153, data 155, and the like, and the storage mode may be a transient storage mode or a permanent storage mode. The operating system 151 is used for managing and controlling each hardware device and the application 153 on the server 100 to realize the computation and processing of the mass data 155 by the central processing unit 170, which may be Windows server, MacOS XTM, unix, linux, FreeBSDTM, or the like. The application 153 is a computer program that performs at least one specific task on the operating system 151, and may include at least one module (not shown), each of which may include a series of operating instructions for the server 100. Data 155 may be files, pictures, etc. stored in disk.
The central processor 170 may include one or more processors and is configured to communicate with the storage medium 150 via a bus for computing and processing the mass data 155 in the storage medium 150.
As described in detail above, the server 100 to which the present disclosure is applied will perform the pushing of the graph in the report, that is, the pushing of the graph in the report is implemented in a form that the central processor 170 reads a series of operation instructions stored in the storage medium 150.
Furthermore, the present disclosure can be implemented equally as hardware circuitry or hardware circuitry in combination with software instructions, and thus implementation of the present disclosure is not limited to any specific hardware circuitry, software, or combination of both.
Referring to fig. 4, in an exemplary embodiment, a method for pushing a graph in a report is applied to the push server 101 in the implementation environment shown in fig. 2, where the method for pushing a graph in a report may be executed by the push server 101, and may include the following steps:
in step 310, the push server performs push task detection in the push task set.
And the pushing task is generated according to the report stored in the file server.
Specifically, when a report to be pushed is in the file server, a request to be pushed is initiated to the push server, where the request to be pushed carries related information of the report to be pushed, for example, the related information may be a URL (Uniform Resource Locator) address corresponding to the report to be pushed, or may also be parameters of a graph in the report to be pushed.
After receiving the request to be pushed, the push server can respond to the request to be pushed so as to generate a push task according to the relevant information of the report to be pushed and store the push task to a push task set.
Further, the push task set may be in the form of a message queue, or may be in the form of a database table.
For example, the push task set is a message queue, and the message queue is created by providing a write interface for writing the push task externally and providing a read interface for reading the push task externally.
When the message queue is not empty, that is, the push task is written into the message queue through the write interface, the push server can detect the push task stored in the message queue.
The detection of the push task can be carried out in real time or at regular time, so that the processing efficiency of the push server is improved.
Step 330, when the push task is detected, extracting a first URL address corresponding to the report from the push task, and creating an IFRAME frame corresponding to the push task according to the first URL address.
As described above, the push task is generated according to the report stored in the file server, specifically, the push task is generated according to the relevant information of the report to be pushed, for example, the relevant information may be a URL address corresponding to the report to be pushed, or may also be parameters of a graph in the report to be pushed.
In this embodiment, in order to ensure the accuracy of the graphic data and thus improve the accuracy of the graphic pushing in the report, the pushing server does not directly pull the relevant graphic data from the file server according to each parameter of the graphic in the report to be pushed, but obtains the report to be pushed from the file server according to the URL address corresponding to the report to be pushed.
Correspondingly, the pushing task is generated according to the URL address corresponding to the report to be pushed.
Based on this, when the push server detects the push task, the URL address corresponding to the report to be pushed can be extracted from the push task, and then the push server can obtain the corresponding report to be pushed from the file server according to the URL address.
After the push server obtains the report to be pushed, the graph in the report to be pushed is displayed and intercepted.
Further, the exposing and intercepting are completed in an IFRAME framework.
Preferably, in an exemplary embodiment, the IFRAME frame is created in a page frame of the browser service. The browser service is generated through simulation of invocation by the Webkit kernel.
After the pushing server simulates the browser service, the current environment in which the pushing server operates enters the simulation environment, so that the pushing of the graph in the report is facilitated subsequently. Correspondingly, the IFRAME carries a current environment identifier, where the current environment identifier is used to indicate whether the current environment in which the push server operates is a simulation environment.
After the IFRAME corresponding to the push task is created, the push server can obtain all the graphs contained in the IFRAME, and the graphs are the graphs in the report intercepted by display.
Step 350, if the current environment identifier indicates that the current environment is a simulation environment, performing graph conversion processing on all graphs included in the IFRAME to generate graph data.
If the current environment identifier indicates that the current environment is a simulation environment, that is, the current environment in which the push server operates enters the simulation environment, at this time, the push server performs graph conversion processing on all graphs included in the IFRAME to generate graph data.
That is to say, the graphic data is generated in the push server according to the captured graphics in the report, and is not directly pulled from the file server, so that the accuracy of the graphic data is ensured, and the subsequent improvement of the accuracy of the graphic push in the report is facilitated.
Step 370, a graphics rendering request is initiated to the file server through the graphics data, and a graphics queue returned by the file server is received.
In order to avoid that the graph in the report is different from the actually pushed graph due to the fact that the graph library in the push server is identical to the graph library in the file server, in this embodiment, after the graph data is generated, the push server sends the generated graph data to the file server, so that the graph data is subjected to graph rendering through the file server, and consistency between the graph in the report and the actually pushed graph is guaranteed.
Specifically, the push server generates a graphics rendering request according to the graphics data in a data carrying manner, that is, the graphics rendering request carries the graphics data, and sends the graphics rendering request to the file server.
After receiving the graph rendering request, the file server extracts the graph data from the graph rendering request, performs graph rendering on the graph data by calling a graph library of the file server, generates an image queue, returns the image queue to the push server, and pushes the graph in the report according to the image queue through the push server.
The graphics queue contains relevant information of the graphics to be pushed, for example, the relevant information may be a URL address corresponding to the graphics to be pushed.
And 390, pushing the graph in the report according to the graph queue.
After receiving the graph queue returned by the file server, the pushing server can obtain the graph to be pushed according to the related information of the graph to be pushed contained in the graph queue, and further push of the graph to be pushed is achieved.
Taking the push by mail as an example, in an exemplary embodiment, the graphics queue includes a URL address corresponding to a graphics to be pushed.
Accordingly, as shown in fig. 5, step 390 may include the steps of:
step 391, acquiring a graph to be pushed corresponding to the second URL address by traversing the second URL address included in the graph queue.
Step 393, sending the obtained graph to be pushed to a mail pushing service so as to push the graph to be pushed through the mail pushing service.
As shown in fig. 6, step 393 may further include the steps of:
step 3931, generating mail content according to the obtained graph to be pushed.
Step 3933 packages the mail content, the mail header, and the mail receiving address to generate a mail, and sends the mail to the mail push service.
The mail sending may be sending immediately after the mail is generated, or sending at regular time by setting a timer.
Therefore, the push server completes the function of pushing the graph to be pushed in a mail mode.
Through the process, the consistency between the actual graph to be pushed and the graph in the report is ensured, so that the accuracy of pushing the graph in the report is effectively improved, and the user experience is improved.
In addition, because the graphic library in the file server is used for rendering the graphic data, the graphic library in the push server does not need to be maintained additionally, so that the maintenance cost is effectively reduced, and the development efficiency of developers is improved.
Referring to fig. 7, in an exemplary embodiment, a method for pushing a graph in a report is applied to the file server 103 in the implementation environment shown in fig. 2, where the method for pushing a graph in a report may be executed by the file server 103, and may include the following steps:
step 410, the file server receives a graphics rendering request initiated by the push server, wherein the graphics rendering request carries graphics data.
The graphic data is generated by performing graphic conversion processing on all graphics contained in the IFRAME framework in a simulation environment. The IFRAME framework is created from push tasks in the set of push tasks.
Step 430, performing graphics rendering on the graphics data by calling a graphics library to generate a graphics queue.
And step 450, sending the graph queue to a push server so that the push server pushes the graph in the report according to the graph queue.
Fig. 8 is a schematic diagram of a specific implementation of a method for pushing a graph in a report in an application scenario, and a description is now given, in conjunction with the specific application scenario shown in fig. 8, of the method for pushing a graph in a report in each embodiment of the present disclosure.
The push server performs timing detection on the push tasks in the push task set by executing step 601.
When the push task is detected, an IFRAME frame is created in a page frame in the simulated browser service by executing step 603, and the graph in the report is displayed and intercepted by the IFRAME frame.
After all the graphics contained in the IFRAME frame are obtained, graphics data can be generated through graphics conversion processing, and step 605 is executed through the file server to perform graphics rendering on the graphics data to generate a graphics queue.
After receiving the graphics queue, the push server invokes, through step 607, a mail push service to perform a timed push on the to-be-pushed picture corresponding to the URL address included in the graphics queue.
In the application scene, the function of pushing the mails of the graphs in the report at regular time is realized, the accuracy of pushing the graphs in the report is effectively improved, and the user experience is improved.
The following is an embodiment of the apparatus of the present disclosure, which may be used to execute a method for pushing a graph in a report according to the present disclosure. For details not disclosed in the embodiment of the apparatus of the present disclosure, please refer to an embodiment of a method for pushing a graph in a report according to the present disclosure.
Referring to fig. 9, in an exemplary embodiment, a pushing apparatus 700 for graphics in report is applied to a pushing server, including but not limited to: task detection module 710, framework creation module 730, graphics processing module 750, queue receiving module 770, and graphics push module 790.
The task detection module 710 is configured to perform push task detection in a push task set by the push server.
The frame creating module 730 is configured to, when the push task is detected, extract a first URL address corresponding to the report from the push task, and create an IFRAME frame corresponding to the push task according to the first URL address. The current environment identifier is carried in the IFRAME framework.
The graphics processing module 750 is configured to perform graphics conversion processing on all graphics included in the IFRAME frame to generate graphics data if the current environment identifier indicates that the current environment is a simulated environment.
The queue receiving module 770 initiates a graphics rendering request to the file server through the graphics data and receives a graphics queue returned by the file server. The graphics queue is generated by the file server by calling a graphics library to perform graphics rendering on the graphics data.
The graph pushing module 790 is configured to push the graph in the report according to the graph queue.
Referring to fig. 10, in an exemplary embodiment, a pushing apparatus 800 for a graph in a report is applied to a file server, including but not limited to: a request receiving module 810, a queue generating module 830, and a queue sending module 850.
The request receiving module 810 is configured to receive, by the file server, a graphics rendering request initiated by the push server, where the graphics rendering request carries graphics data. The graphic data is generated by performing a graphic conversion process on all graphics contained in the IFRAME framework in a simulation environment. The IFRAME framework is created from push tasks in the set of push tasks.
The queue generating module 830 is configured to perform graphics rendering on the graphics data by calling a graphics library, and generate a graphics queue.
The queue sending module 850 is configured to send the graphics queue to the push server, so that the push server pushes the graphics in the report according to the graphics queue.
It should be noted that, when the pushing device for the graph in the report provided in the foregoing embodiment pushes the graph in the report, only the division of each function module is taken as an example, and in practical applications, the function distribution may be completed by different function modules according to needs, that is, the internal structure of the pushing device for the graph in the report is divided into different function modules, so as to complete all or part of the functions described above.
In addition, the pushing device for the graphs in the report provided by the above embodiment and the embodiment of the pushing method for the graphs in the report belong to the same concept, wherein the specific manner in which each module executes operations has been described in detail in the method embodiment, and is not described herein again.
The above description is only a preferred exemplary embodiment of the present disclosure, and not intended to limit the embodiments of the present disclosure, and one of ordinary skill in the art can easily make various changes and modifications according to the main concept and spirit of the present disclosure, so that the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (10)

1. A method for pushing a graph in a report is characterized by comprising the following steps:
the push server detects a push task in a push task set;
when a push task is detected, extracting a first URL (Uniform resource locator) address corresponding to a report form from the push task, and creating an IFRAME (extensible firmware framework) corresponding to the push task according to the first URL address, wherein the IFRAME framework carries a current environment identifier; the pushing task is generated according to a URL address corresponding to a report to be pushed;
if the current environment identifier indicates that the current environment is a simulation environment, performing graph conversion processing on all graphs contained in the IFRAME framework to generate graph data;
initiating a graph rendering request to a file server through the graph data, and receiving a graph queue returned by the file server;
and pushing the graph in the report according to the graph queue.
2. The method of claim 1, wherein the method further comprises:
simulating browser services through calling of a Webkit kernel so as to enable the current environment to enter a simulated environment;
wherein the IFRAME frame is created in a page frame of the browser service.
3. The method of claim 1, wherein prior to the step of receiving the graphics queue returned by the file server, the method further comprises:
the file server receives the graphics rendering request, wherein the graphics rendering request carries the graphics data;
carrying out graphic rendering on the graphic data by calling a graphic library to generate a graphic queue;
and sending the graphics queue to the push server.
4. The method of claim 1, wherein the step of pushing the graph in the report according to the graph queue comprises:
acquiring a graph to be pushed corresponding to a second URL address by traversing the second URL address contained in the graph queue;
and sending the acquired graph to be pushed to a mail pushing service so as to push the graph to be pushed through the mail pushing service.
5. The method according to claim 4, wherein the step of sending the acquired graphics to be pushed to an email push service includes:
generating mail content according to the acquired graph to be pushed;
and packaging the mail content, the mail header and the mail receiving address to generate a mail, and sending the mail to the mail push service.
6. A device for pushing graphics in a report, the device comprising:
the task detection module is used for detecting the push tasks in the push task set by the push server;
the frame creation module is used for extracting a first URL (uniform resource locator) address corresponding to a report form from a push task when the push task is detected, and creating an IFRAME frame corresponding to the push task according to the first URL address, wherein the IFRAME frame carries a current environment identifier; the pushing task is generated according to a URL address corresponding to a report to be pushed;
the image processing module is used for performing image conversion processing on all images contained in the IFRAME framework to generate image data if the current environment identifier indicates that the current environment is a simulation environment;
the queue receiving module is used for initiating a graph rendering request to a file server through the graph data and receiving a graph queue returned by the file server;
and the graph pushing module is used for pushing the graphs in the report according to the graph queue.
7. The apparatus of claim 6, wherein the apparatus further comprises:
the kernel starting module is used for simulating browser services through calling of a Webkit kernel so as to enable the current environment to enter a simulation environment;
wherein the IFRAME frame is created in a page frame of the browser service.
8. The apparatus of claim 6, wherein the apparatus further comprises:
a request receiving module, configured to receive, by the file server, the graphics rendering request, where the graphics rendering request carries the graphics data;
the queue generating module is used for carrying out graphic rendering on the graphic data by calling a graphic library to generate a graphic queue;
and the queue sending module is used for sending the graphics queue to the push server.
9. The apparatus of claim 6, wherein the graphics push module comprises:
the graph obtaining unit is used for obtaining a graph to be pushed corresponding to a second URL address by traversing the second URL address contained in the graph queue;
and the graph sending unit is used for sending the obtained graph to be pushed to a mail pushing service so as to push the graph to be pushed through the mail pushing service.
10. The apparatus of claim 9, wherein the graphics transmission unit comprises:
the mail content acquisition unit is used for generating mail content according to the acquired graph to be pushed;
and the mail generating unit is used for packaging the mail content, the mail title and the mail receiving address to generate a mail and sending the mail to the mail push service.
CN201611031763.8A 2016-11-22 2016-11-22 Method and device for pushing graphs in report Active CN108093004B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611031763.8A CN108093004B (en) 2016-11-22 2016-11-22 Method and device for pushing graphs in report

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611031763.8A CN108093004B (en) 2016-11-22 2016-11-22 Method and device for pushing graphs in report

Publications (2)

Publication Number Publication Date
CN108093004A CN108093004A (en) 2018-05-29
CN108093004B true CN108093004B (en) 2020-06-30

Family

ID=62169746

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611031763.8A Active CN108093004B (en) 2016-11-22 2016-11-22 Method and device for pushing graphs in report

Country Status (1)

Country Link
CN (1) CN108093004B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997886A (en) * 2009-08-20 2011-03-30 北京同步科技有限公司 Information issuing system and method
CN103092622A (en) * 2013-01-23 2013-05-08 浪潮齐鲁软件产业有限公司 Intelligent report form and information desktop push tool
CN104317595A (en) * 2014-10-28 2015-01-28 艾普工华科技(武汉)有限公司 Background-push component-based graphical monitoring device based on SVG (scalable vector graphics) and operating method thereof
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage
US9491131B1 (en) * 2012-02-13 2016-11-08 Urban Airship, Inc. Push composer

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997886A (en) * 2009-08-20 2011-03-30 北京同步科技有限公司 Information issuing system and method
US9491131B1 (en) * 2012-02-13 2016-11-08 Urban Airship, Inc. Push composer
CN103092622A (en) * 2013-01-23 2013-05-08 浪潮齐鲁软件产业有限公司 Intelligent report form and information desktop push tool
CN104714982A (en) * 2013-12-17 2015-06-17 阿里巴巴集团控股有限公司 Method and system for loading webpage
CN104317595A (en) * 2014-10-28 2015-01-28 艾普工华科技(武汉)有限公司 Background-push component-based graphical monitoring device based on SVG (scalable vector graphics) and operating method thereof

Also Published As

Publication number Publication date
CN108093004A (en) 2018-05-29

Similar Documents

Publication Publication Date Title
CN110096660B (en) Method and device for loading page pictures and electronic equipment
CN109255767B (en) Image processing method and device
WO2018058811A1 (en) Virtual reality scene loading method and device
CN112579118B (en) Method, device, system, medium and equipment for updating configuration information of micro-service
CN110232091B (en) Method, system and apparatus for synchronizing data
CN109582317B (en) Method and apparatus for debugging hosted applications
WO2016202215A1 (en) Method and device for previewing dynamic image, and method and device for displaying expression package
CN107526623B (en) Data processing method and device
EP4300303A1 (en) Animation resource information processing method and apparatus, device, medium and product
US20170083387A1 (en) High-performance computing framework for cloud computing environments
CN111158820A (en) Control click event processing method and device, electronic equipment and storage medium
CN107797927B (en) Application automation test method, device, equipment and readable storage medium
CN115982491A (en) Page updating method and device, electronic equipment and computer readable storage medium
CN109660581B (en) Physical machine management method, device and system
CN111767229A (en) Performance test method, device and equipment
CN111666199B (en) Debugging method executed on intelligent terminal and software debugger
CN112328564A (en) Special resource sharing method and device and electronic equipment
CN112965916B (en) Page testing method, page testing device, electronic equipment and readable storage medium
CN111383038A (en) Advertisement display method and device of mobile terminal, mobile terminal and storage medium
CN116756016A (en) Multi-browser testing method, device, equipment, medium and program product
CN108093004B (en) Method and device for pushing graphs in report
CN113434384A (en) Pressure testing method and device
CN113760715B (en) Method and device for testing system
CN107092601B (en) Resource file construction method, resource file application method and device
CN110262856B (en) Application program data acquisition method, device, terminal and storage medium

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