CN110333981A - A kind of feedback method and device, electronic equipment of APP exception information - Google Patents
A kind of feedback method and device, electronic equipment of APP exception information Download PDFInfo
- Publication number
- CN110333981A CN110333981A CN201910450378.4A CN201910450378A CN110333981A CN 110333981 A CN110333981 A CN 110333981A CN 201910450378 A CN201910450378 A CN 201910450378A CN 110333981 A CN110333981 A CN 110333981A
- Authority
- CN
- China
- Prior art keywords
- app
- screenshot
- information
- abnormal
- exception
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3003—Monitoring arrangements specially adapted to the computing system or computing system component being monitored
- G06F11/302—Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a software system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/32—Monitoring with visual or acoustical indication of the functioning of the machine
- G06F11/324—Display of status information
- G06F11/327—Alarm or error message display
Abstract
The present invention relates to log monitoring technology fields, disclose the feedback method and device, electronic equipment of a kind of APP exception information.The described method includes: when detecting that application APP is abnormal, the pop-up abnormal prompt page simultaneously shows abnormal prompt information on the abnormal prompt page, to prompt user APP to be abnormal, then the corresponding log information of APP is transcoded into character string information, then it obtains the screenshot for the abnormal prompt page and character string information is written in the image data of the screenshot and pre-process screenshot to obtain, pretreatment screenshot is finally sent to server, so that server parses the image data of the pretreatment screenshot to obtain log information, and anomaly analysis and positioning are carried out according to the log information.Log information can be fed back into server in the case where user does not perceive, so that developer recognizes more detailed information, to precisely be analyzed and be positioned to abnormal.
Description
Technical field
The present invention relates to log monitoring technology field, in particular to the feedback method and device, electricity of a kind of APP exception information
Sub- equipment.
Background technique
APP exception information is that the information for the reason of being abnormal is able to reflect out when APP is abnormal, by APP exception
Information feeds back to developer, and developer can improve product according to the APP abnormal cause of feedback.Developer's energy
The feedback information being enough collected into is generally from for the screenshot of the abnormal prompt page when APP is abnormal, still, institute above screenshot
The information content of instruction is very little, so that developer often precisely can not be analyzed and be positioned to abnormal.Therefore, when APP occurs
When abnormal, how effectively to be fed back for the reason of being abnormal, be one of hot issue urgently to be solved.
Summary of the invention
In order to solve the problems, such as that developer precisely can not be analyzed and be positioned to abnormal, the present invention provides one kind
Feedback method and device, the electronic equipment of APP exception information.
First aspect of the embodiment of the present invention discloses a kind of feedback method of APP exception information, which comprises
When detecting that application APP is abnormal, the abnormal prompt page is popped up;
Abnormal prompt information is shown on the abnormal prompt page, to prompt APP described in user to be abnormal;
The corresponding log information of the exception of the APP is transcoded into character string information;
Obtain the screenshot for being directed to the abnormal prompt page;
The character string information is written in the image data of the screenshot, to obtain pretreatment screenshot;
The pretreatment screenshot is sent to server, so that the server parses the image data of the pretreatment screenshot
To obtain the log information, and anomaly analysis and positioning are carried out according to the log information.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described in the abnormal prompt page
It is shown on face after abnormal prompt information and the corresponding log information of the exception by the APP is transcoded into character string letter
Before breath, the method also includes:
Obtain the corresponding log information of exception of the APP;
The log information is encrypted, to obtain encrypted logs information;
The corresponding log information of the exception by the APP is transcoded into character string information, comprising:
The encrypted logs information is transcoded into character string information.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described to send the pretreatment section
After figure is to server, the method also includes:
Receive the corresponding solution of exception for the APP that the server is sent;
By the exception of the APP and the solution associated storage to the corresponding database of the APP.
As an alternative embodiment, in first aspect of the embodiment of the present invention, it is described to send the pretreatment section
Figure is to after server and before the corresponding solution of exception for receiving the APP that the server is sent, institute
State method further include:
Scan the corresponding database of the APP;
It detects in the history process record of the database and is handled with the presence or absence of the target that the exception with the APP matches
Record;
If so, target processing, which is recorded corresponding solution, is sent to the server.
As an alternative embodiment, in first aspect of the embodiment of the present invention, the exception by the APP and
After the solution associated storage to the corresponding database of the APP, the method also includes:
Obtain the email address of user;
According to default template generation for the abnormal reply message of the APP;
The reply message is sent to the corresponding mailbox of the email address.
As an alternative embodiment, described obtain is directed to the exception in first aspect of the embodiment of the present invention
Prompt the screenshot of the page, comprising:
Export screenshot prompt information;The screenshot prompt information is for prompting user to carry out for the abnormal prompt page
Screenshot;
When listening to user for abnormal prompt page progress screenshot, feedback window is popped up;The feedback window
For receiving the screenshot of the abnormal prompt page;
When the screenshot for detecting the abnormal prompt page is placed in the feedback window, the abnormal prompt page is received
The screenshot in face.
As an alternative embodiment, described obtain is directed to the exception in first aspect of the embodiment of the present invention
Prompt the screenshot of the page, comprising:
Obtain center and the size of the abnormal prompt page;
Screenshot box is loaded according to the center and the size, so that the abnormal prompt page is completely by described section
In picture frame institute frame;
According to the boundary of the screenshot box, the content in the screenshot box is intercepted, is directed to the exception to obtain
Prompt the screenshot of the page.
Second aspect of the embodiment of the present invention discloses a kind of feedback device of APP exception information, and described device includes:
Unit is popped up, for popping up the abnormal prompt page when detecting that application APP is abnormal;
Display unit, for showing abnormal prompt information on the abnormal prompt page, to prompt APP described in user to send out
It is raw abnormal;
Transcoding units, for the corresponding log information of the exception of the APP to be transcoded into character string information;
Screenshot acquiring unit, for obtaining the screenshot for being directed to the abnormal prompt page;
Writing unit is cut for the character string information being written in the image data of the screenshot with obtaining pretreatment
Figure;
Transmission unit, for sending the pretreatment screenshot to server, so that the server parses the pretreatment
The image data of screenshot carries out anomaly analysis and positioning according to the log information to obtain the log information.
The third aspect of the embodiment of the present invention discloses a kind of electronic equipment, and the electronic equipment includes:
Processor;
Memory is stored with computer-readable instruction on the memory, and the computer-readable instruction is by the processing
When device executes, a kind of feedback method of APP exception information disclosed in first aspect of the embodiment of the present invention is realized.
Fourth aspect of the embodiment of the present invention discloses a kind of computer readable storage medium, stores computer program, institute
Stating computer program makes computer execute a kind of feedback side of APP exception information disclosed in first aspect of the embodiment of the present invention
Method.
The technical solution that the embodiment of the present invention provides can include the following benefits:
A kind of feedback method of APP exception information provided by the present invention, which includes the following steps: to work as, detects application program
When APP is abnormal, the abnormal prompt page is popped up;Show abnormal prompt information, on the abnormal prompt page to prompt user APP
It is abnormal;The corresponding log information of APP is transcoded into character string information;Obtain the screenshot for being directed to the abnormal prompt page;By word
In the image data of symbol string information write-in screenshot, to obtain pretreatment screenshot;Pretreatment screenshot is sent to server, so that service
Device parses the image data of the pretreatment screenshot to obtain log information, and carries out anomaly analysis according to the log information and determine
Position.
Under the method, by the way that log information is transcoded into character string and the picture of the screenshot for the abnormal prompt page is written
In data, log information can be fed back into developer in the case where user does not perceive, so that developer recognizes
More detailed information, to precisely be analyzed and be positioned to abnormal.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited
Invention.
Detailed description of the invention
The drawings herein are incorporated into the specification and forms part of this specification, and shows and meets implementation of the invention
Example, and in specification together principle for explaining the present invention.
Fig. 1 is a kind of structural schematic diagram of device disclosed by the embodiments of the present invention;
Fig. 2 is a kind of flow chart of the feedback method of APP exception information disclosed by the embodiments of the present invention;
Fig. 3 is the flow chart of the feedback method of another kind APP exception information disclosed by the embodiments of the present invention;
Fig. 4 is a kind of structural schematic diagram of the feedback device of APP exception information disclosed by the embodiments of the present invention;
Fig. 5 is the structural schematic diagram of the feedback device of another kind APP exception information disclosed by the embodiments of the present invention.
Specific embodiment
Here will the description is performed on the exemplary embodiment in detail, the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistented with the present invention.On the contrary, they be only with it is such as appended
The example of device and method being described in detail in claims, some aspects of the invention are consistent.
Embodiment one
Implementation environment of the invention can be electronic equipment, such as smart phone, tablet computer, desktop computer.
Fig. 1 is a kind of structural schematic diagram of device disclosed by the embodiments of the present invention.Device 100 can be above-mentioned electronics and set
It is standby.As shown in Figure 1, device 100 may include following one or more components: processing component 102, memory 104, power supply module
106, multimedia component 108, audio component 110, sensor module 114 and communication component 116.
The integrated operation of the usual control device 100 of processing component 102, such as with display, telephone call, data communication, phase
Machine operation and the associated operation of record operation etc..Processing component 102 may include one or more processors 118 to execute
Instruction, to complete all or part of the steps of following methods.In addition, processing component 102 may include one or more modules,
For convenient for the interaction between processing component 102 and other assemblies.For example, processing component 102 may include multi-media module, use
In to facilitate the interaction between multimedia component 108 and processing component 102.
Memory 104 is configured as storing various types of data to support the operation in device 100.These data are shown
Example includes the instruction of any application or method for operating on the device 100.Memory 104 can be by any kind of
Volatibility or non-volatile memory device or their combination are realized, such as static random access memory (Static Random
Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory (Electrically Erasable
Programmable Read-Only Memory, abbreviation EEPROM), Erasable Programmable Read Only Memory EPROM (Erasable
Programmable Read Only Memory, abbreviation EPROM), programmable read only memory (Programmable Red-
Only Memory, abbreviation PROM), read-only memory (Read-Only Memory, abbreviation ROM), magnetic memory, flash
Device, disk or CD.It is also stored with one or more modules in memory 104, is configured to for the one or more module
It is executed by the one or more processors 118, to complete all or part of step in method as follows.
Power supply module 106 provides electric power for the various assemblies of device 100.Power supply module 106 may include power management system
System, one or more power supplys and other with for device 100 generate, manage, and distribute the associated component of electric power.
Multimedia component 108 includes the screen of one output interface of offer between device 100 and user.In some realities
It applies in example, screen may include liquid crystal display (Liquid Crystal Display, abbreviation LCD) and touch panel.If
Screen includes touch panel, and screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes
One or more touch sensors are to sense the gesture on touch, slide, and touch panel.Touch sensor can be sensed not only
The boundary of a touch or slide action, but also detect duration and pressure relevant to touch or slide.Screen may be used also
To include display of organic electroluminescence (Organic Light Emitting Display, abbreviation OLED).
Audio component 110 is configured as output and/or input audio signal.For example, audio component 110 includes a Mike
Wind (Microphone, abbreviation MIC), when device 100 is in operation mode, such as call model, logging mode and speech recognition mould
When formula, microphone is configured as receiving external audio signal.The received audio signal can be further stored in memory
104 or via communication component 116 send.In some embodiments, audio component 110 further includes a loudspeaker, for exporting
Audio signal.
Sensor module 114 includes one or more sensors, and the state for providing various aspects for device 100 is commented
Estimate.For example, sensor module 114 can detecte the state that opens/closes of device 100, the relative positioning of component, sensor group
Part 114 can be with the position change of 100 1 components of detection device 100 or device and the temperature change of device 100.Some
In embodiment, which can also include Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 116 is configured to facilitate the communication of wired or wireless way between device 100 and other equipment.Device
100 can access the wireless network based on communication standard, such as WiFi (Wireless-Fidelity, Wireless Fidelity).In the present invention
In embodiment, communication component 116 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In embodiments of the present invention, communication component 116 further includes near-field communication (Near Field Communication, abbreviation
NFC) module, for promote short range communication.For example, radio frequency identification (Radio Frequency can be based in NFC module
Identification, abbreviation RFID) technology, Infrared Data Association (Infrared Data Association, abbreviation IrDA)
Technology, ultra wide band (Ultra Wideband, abbreviation UWB) technology, Bluetooth technology and other technologies are realized.
In the exemplary embodiment, device 100 can be by one or more application specific integrated circuit (Application
Specific Integrated Circuit, abbreviation ASIC), it is digital signal processor, digital signal processing appts, programmable
Logical device, field programmable gate array, controller, microcontroller, microprocessor or other electronic components are realized, for executing
Following methods.
Embodiment two
Referring to Fig. 2, Fig. 2 is a kind of process signal of the feedback method of APP exception information disclosed by the embodiments of the present invention
Figure.As shown in Fig. 2, this method may comprise steps of:
201, when detecting that application APP is abnormal, the abnormal prompt page is popped up.
In the embodiment of the present invention, APP may include extremely page exception or user's operation it is improper caused by abnormal etc., this hair
Bright embodiment is not construed as limiting.When APP is abnormal, the log information of APP can generate corresponding variation, APP exception information
Feedback device can capture these variations, so that it is determined that APP is abnormal, then pop up the abnormal prompt page, and different at this
Abnormal prompt information often is shown on the prompt page, such as " page load failure ".
202, abnormal prompt information is shown, on the abnormal prompt page to prompt user APP to be abnormal.
In the embodiment of the present invention, the feedback device of APP exception information shows abnormal prompt information on the abnormal prompt page,
Such as " page load failure ", user APP is prompted to be abnormal with this.
203, the corresponding log information of the exception of APP is transcoded into character string information.
In the embodiment of the present invention, log information includes crucial exception information and sensitive information, wherein crucial exception information can
The reason of to be abnormal including APP, information, the information of relevant interface of equipment for running APP of the equipment that run APP etc.,
Sensitive information may include address Internet protocol (InternetProtocol, abbreviation IP) of user, user identity, user
Contact method, user account and user password etc., the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, can be by the mode that the corresponding log information of the exception of APP is transcoded into character string information
Base64 coding, the embodiment of the present invention is described so that base64 is encoded as an example, as an alternative embodiment, APP is different
The feedback device of normal information can calculate the binary value of the corresponding log information of exception of APP, be with every 6 binary values
One group, and two 0 are previously written in each group, so that every group becomes 8 binary values, obtained further according to the base64 coding table of comparisons
Corresponding character string information.Implement the embodiment, all the elements of log information can be made convenient for transmission, improve feedback information
Integrality.
For example, " Man " corresponding binary value is 010011010110000101101110, with every 6 binary systems
Value is one group, and is previously written two 0 in each group, result 00010011,00010110,00000101,00101110, finally
The table of comparisons is encoded according to base64, the character string information of acquisition is " T, W, F, u ", that is to say, that " Man " is encoded by base64
The character string information obtained afterwards is " TWFu ".
204, the screenshot for being directed to the abnormal prompt page is obtained.
In the embodiment of the present invention, it can be intercepted by the screenshot tool that APP is carried for the screenshot of the abnormal prompt page, it can also
To be intercepted by the operating system for running APP, the embodiment of the present invention is not construed as limiting.
In the embodiment of the present invention, the format of above-mentioned screenshot can be jpg format, or jpeg format can also be
Png format, the embodiment of the present invention are not construed as limiting.
205, character string information is written in the image data of screenshot, to obtain pretreatment screenshot.
In the embodiment of the present invention, it is to be understood that the interchangeable file format [Amiga] in the image data of screenshot
(Exchangeable image file format, exif) information can be used to the attribute information of recordable picture, and APP believes extremely
Above-mentioned character string information can be written to one as the attribute information of screenshot in the exif information of screenshot by the feedback device of breath
Character string information and screenshot are bound in the case where not changing screenshot feature part.
206, pretreatment screenshot is sent to server, so that server parses the image data of the pretreatment screenshot to obtain
Log information, and anomaly analysis and positioning are carried out according to the log information.
In the embodiment of the present invention, the feedback device of APP exception information can will carry the pretreatment screenshot of character string information
It is sent to server, illustratively, if the corresponding log information of the exception of APP is transcoded into the side that character string information is taken
Formula is base64 coding, then, correspondingly, character string information is decoded to be reduced into the corresponding log letter of the exception of APP
Ceasing taken mode should decode for base64.Further, as an alternative embodiment, server can be opened
The image data for pre-processing screenshot, the exif information in image data is taken out, is then extracted from exif information
Character string information is stated, then carrying out base64 decoding to character string information can be obtained the corresponding log information of exception of APP.It is real
The embodiment is applied, developer can be made to quickly understand more detailed in the case where user is not detected by log information
Thin log information improves the efficiency of anomaly analysis and positioning.
As it can be seen that implementing method described in Fig. 2, by the way that the corresponding log information of the exception of APP is transcoded into character string letter
Cease and be written in the screenshot of the abnormal prompt page and pre-process screenshot to obtain, then will pretreatment screenshot be sent to server into
The processing of one step, to carry out anomaly analysis and positioning, can feed back to clothes for log information in the case where user does not perceive
Business device, so that developer recognizes more detailed information, to precisely be analyzed and be positioned to abnormal.
Embodiment three
Referring to Fig. 3, the process that Fig. 3 is the feedback method of another kind APP exception information disclosed by the embodiments of the present invention is shown
It is intended to.As shown in figure 3, this method may comprise steps of:
301, when detecting that application APP is abnormal, the abnormal prompt page is popped up.
302, abnormal prompt information is shown, on the abnormal prompt page to prompt user APP to be abnormal.
303, the corresponding log information of exception of APP is obtained.
In the embodiment of the present invention, event that log information recording APP occurs in the process of running, that is to say, that APP is being just
Often when operation, log that log information recording APP is operated normally;When APP is abnormal, log information recording APP generation
Abnormal log, so, as long as obtaining the time that APP is abnormal, the corresponding log information of exception of APP can be obtained.
304, log information is encrypted, to obtain encrypted logs information.
In the embodiment of the present invention, because log information includes crucial exception information and sensitive information, partial information therein
It cannot be disclosed as privacy, log information is revealed in order to prevent, log information can be encrypted.Optionally, to day
The mode that will information is encrypted can be AES encryption, or rsa encryption, the embodiment of the present invention are not construed as limiting.
305, encrypted logs information is transcoded into character string information.
306, the screenshot for being directed to the abnormal prompt page is obtained.
As an alternative embodiment, step 306 obtain the screenshot for the abnormal prompt page can be with are as follows:
Export screenshot prompt information;
When listening to user for abnormal prompt page progress screenshot, feedback window is popped up;
When the screenshot for detecting the abnormal prompt page is placed in feedback window, the screenshot of the abnormal prompt page is received.
Wherein, screenshot prompt information is for prompting user to carry out screenshot for the abnormal prompt page;Feedback window is for connecing
Receive the screenshot of the abnormal prompt page.
In addition, the pop-up mode of above-mentioned feedback window can be for from top to bottom, or from top to bottom, can also for from
Left-to-right or from right to left, the embodiment of the present invention is not construed as limiting.It, can also be in addition, the position of feedback window can be fixed
It is to change, the embodiment of the present invention is not construed as limiting.In addition, the size of feedback window can be fixed, it is also possible to be not fixed
, the embodiment of the present invention is not construed as limiting.
Implement the embodiment, screenshot is carried out to the abnormal prompt page by user and is filled by the feedback of APP exception information
It sets and screenshot is sent to server, can be improved sense of participation of user during product improvement.
As another optional embodiment, step 306 obtain the screenshot for the abnormal prompt page can be with are as follows:
Obtain center and the size of the abnormal prompt page;
Screenshot box is loaded according to the center of the abnormal prompt page and size, so that the abnormal prompt page is completely by this section
In picture frame institute frame;
According to the boundary of screenshot box, the content in the screenshot box is intercepted, to obtain for the abnormal prompt page
Screenshot.
Implement the embodiment, the feedback device of APP exception information passes through intercepts the above-mentioned abnormal prompt page automatically, thus
The screenshot for being directed to the above-mentioned abnormal prompt page is obtained, can be improved the acquisition efficiency of the screenshot of the abnormal prompt page, to improve
The abnormal detection efficiency of APP.
307, character string information is written in the image data of screenshot, to obtain pretreatment screenshot.
308, pretreatment screenshot is sent to server, so that server parses the image data of the pretreatment screenshot to obtain
Log information, and anomaly analysis and positioning are carried out according to the log information.
309, the corresponding database of scanning APP.
In the embodiment of the present invention, the dependency number generated in APP operational process can be preserved in the corresponding database of APP
According to correspondingly the feedback device of APP exception information can scan the corresponding database of APP and transfer APP's from the database
History process record.
As an alternative embodiment, the feedback device of APP exception information can periodically clear up the corresponding data of APP
Discarded file in library, wherein discarded file may include not used file in specified time, generate in APP operational process
Temporary file and number of repetition be more than predetermined number of times file.Implement the embodiment, can guarantee that the memory space of APP fills
Foot, accelerates the speed of service of APP.
310, remember in the history process record of Test database with the presence or absence of the target processing that the exception with APP matches
Record;If so, executing step 311;Conversely, executing step 312.
311, target processing is recorded into corresponding solution and is sent to server.
In the embodiment of the present invention, the feedback device of APP exception information can detecte in history process record with the presence or absence of with
The target that the exception of APP matches handles record, records if detecting the presence of the target processing to match with the exception of APP,
Show that this abnormal conditions had occurred and that, target processing can be recorded corresponding solution by the feedback device of APP exception information
Scheme is sent to server, can further increase the efficiency of anomaly analysis and positioning.
312, the corresponding solution of exception for the APP that server is sent is received.
313, by the exception of APP and solution associated storage to the corresponding database of APP.
In the embodiment of the present invention, after server is analyzed and is positioned and generate corresponding solution to exception, clothes
Solution can be sent to the feedback device of APP exception information by business device, then, when the feedback device of APP exception information connects
It, can be by the exception of APP and solution associated storage to the corresponding database of APP when receiving the solution of server transmission
It is transferred so as to subsequent.
314, the email address of user is obtained.
315, the abnormal reply message for being directed to APP according to template generation is preset.
316, the corresponding mailbox of the email address for reply message being sent to user.
In the embodiment of the present invention, the feedback device of APP exception information can be bound with the email address of user in advance, then
The bound corresponding mailbox of email address is sent to according to default template generation reply message and by reply message.Citing comes
It says, default template can be " we would you please safe to use by abnormal reparation, thank to your company all the way ", APP exception information
Feedback device template generation reply message is preset according to this and sends the corresponding mailbox of email address of bound user.This
Sample one can be used family and learn that the exception of APP has been repaired in time, avoid user because APP anomalous effects use.
As it can be seen that method described in implementing Fig. 3, by the way that the corresponding log information of the exception of APP is transcoded into character string letter
Cease and be written in the screenshot of the abnormal prompt page and pre-process screenshot to obtain, then will pretreatment screenshot be sent to server into
The processing of one step, to carry out anomaly analysis and positioning, can feed back to clothes for log information in the case where user does not perceive
Business device, so that developer recognizes more detailed information, to precisely be analyzed and be positioned to abnormal.In addition, will
Log information is transcoded into before character string information, can first be encrypted to log information, then encrypted log information is turned
Code can prevent log information from revealing at character string information, improve log information safety.In addition, at the history of database
When recording in reason record there are the target processing that the exception with APP matches, target processing is recorded into corresponding solution
It is sent to server.Further, it is also possible to the corresponding solution of exception for the APP that server is sent will be received, and by the solution
Associated storage is had access to the corresponding database of APP so as to subsequent together for scheme and the exception of APP.
Example IV
Referring to Fig. 4, Fig. 4 is a kind of structural representation of the feedback device of APP exception information disclosed by the embodiments of the present invention
Figure.As shown in figure 4, the apparatus may include: pop-up unit 401, display unit 402, transcoding units 403, screenshot acquiring unit
404, writing unit 405 and transmission unit 406, wherein
Unit 401 is popped up, for popping up the abnormal prompt page when detecting that application APP is abnormal.
Display unit 402, it is different to prompt user APP to occur for showing abnormal prompt information on the abnormal prompt page
Often.
Transcoding units 403, for the corresponding log information of the exception of APP to be transcoded into character string information.
In the embodiment of the present invention, can be by the mode that the corresponding log information of the exception of APP is transcoded into character string information
Base64 coding, the embodiment of the present invention is described so that base64 is encoded as an example, as an alternative embodiment, transcoding list
Member 403 can calculate the binary value of the corresponding log information of exception of APP, with every 6 binary values for one group, and each
Group is previously written two 0, so that every group becomes 8 binary values, obtains corresponding character further according to the base64 coding table of comparisons
String information.Implement the embodiment, all the elements of log information can be made convenient for transmission, improve the integrality of feedback information.
Screenshot acquiring unit 404 is directed to cutting for the abnormal prompt page for obtaining.
Writing unit 405, for character string information being written in the image data of screenshot, to obtain pretreatment screenshot.
Transmission unit 406, for sending pretreatment screenshot to server, so that server parses the figure of the pretreatment screenshot
Sheet data carries out anomaly analysis and positioning according to the log information to obtain log information.
In the embodiment of the present invention, the pretreatment screenshot for carrying character string information can be sent to service by transmission unit 406
Device, illustratively, if it is base64 that the corresponding log information of the exception of APP, which is transcoded into the mode that character string information is taken,
Coding, then, correspondingly, character string information is decoded and is taken with being reduced into the corresponding log information of the exception of APP
Mode should decode for base64.Further, as an alternative embodiment, server can open pretreatment screenshot
Image data, the exif information in image data is taken out, above-mentioned character string letter is then extracted from exif information
Breath, then carrying out base64 decoding to character string information can be obtained the corresponding log information of exception of APP.Implement the embodiment party
Formula can make developer quickly understand more detailed log letter in the case where user is not detected by log information
Breath improves the efficiency of anomaly analysis and positioning.
As it can be seen that implementing the feedback device of APP exception information described in Fig. 4, by believing the corresponding log of the exception of APP
Breath is transcoded into character string information and is written in the screenshot of the abnormal prompt page to obtain and pre-process screenshot, then cuts pretreatment
Figure is sent to server and is further processed, to carry out anomaly analysis and positioning, can incite somebody to action in the case where user does not perceive
Log information feeds back to server, so that developer recognizes more detailed information, to precisely be analyzed abnormal
And positioning.
Embodiment five
Referring to Fig. 5, the structure that Fig. 5 is the feedback device of another kind APP exception information disclosed by the embodiments of the present invention is shown
It is intended to.A kind of feedback device of APP exception information shown in fig. 5 is a kind of feedback device of APP exception information as shown in Figure 4
It optimizes.Compared with a kind of feedback device of APP exception information shown in Fig. 4, a kind of APP shown in fig. 5 is different
The feedback device of normal information can also include: log acquisition unit 407, encryption unit 408, receiving unit 409, storage unit
410, scanning element 411, detection unit 412, mailbox acquiring unit 413 and generation unit 414, wherein
Log acquisition unit 407, after showing abnormal prompt information on the abnormal prompt page for display unit 402,
And before the corresponding log information of the exception of APP is transcoded into character string information by transcoding units 403, the exception for obtaining APP is right
The log information answered.
In the embodiment of the present invention, event that log information recording APP occurs in the process of running, that is to say, that APP is being just
Often when operation, log that log information recording APP is operated normally;When APP is abnormal, log information recording APP generation
Abnormal log, so, log acquisition unit 407 can first obtain the time that APP is abnormal, with rear different according to APP generation
The normal time further obtains the corresponding log information of exception of APP.
Encryption unit 408, for being encrypted to log information, to obtain encrypted logs information.
Transcoding units 403, specifically for encrypted logs information is transcoded into character string information.
Receiving unit 409, for receiving server hair after transmission unit 406 sends pretreatment screenshot to server
The corresponding solution of the exception of the APP sent.
Storage unit 410, for by the exception of APP and solution associated storage to the corresponding database of APP.
Scanning element 411, for transmission unit 406 send pretreatment screenshot to server after and receiving unit
Before 409 receive the corresponding solution of exception for the APP that server is sent, the corresponding database of scanning APP.
In the embodiment of the present invention, the dependency number generated in APP operational process can be preserved in the corresponding database of APP
According to correspondingly scanning element 411 can scan the corresponding database of APP and transfer the history processing note of APP from the database
Record.
As an alternative embodiment, scanning element 411 can periodically clear up discarding in the corresponding database of APP
File, wherein discarded file may include not used file in specified time, the temporary file that generates in APP operational process
It is more than the file of predetermined number of times with number of repetition.Implement the embodiment, can guarantee that the memory space of APP is sufficient, accelerate APP
The speed of service.
Detection unit 412, for what is matched in the history process record of Test database with the presence or absence of the exception with APP
Target processing record.
Transmission unit 406 is also used to detect in the history process record of database exist and APP when detection unit 412
Exception match target processing record when, target processing is recorded corresponding solution and is sent to server.
Mailbox acquiring unit 413, in storage unit 410 by the exception of APP and solution associated storage to APP pairs
After the database answered, the email address of user is obtained.
Generation unit 414, the abnormal reply message for being directed to APP according to template generation is preset.
Transmission unit 406 is also used to for reply message being sent to the corresponding mailbox of email address of user.
As an alternative embodiment, screenshot acquiring unit 404 includes:
Subelement 4041 is exported, for exporting screenshot prompt information;
Subelement 4042 is popped up, for popping up feedback window when listening to user for abnormal prompt page progress screenshot
Mouthful;
Receiving subelement 4043, for receiving different when the screenshot for detecting the abnormal prompt page is placed in feedback window
The often screenshot of the prompt page.
Wherein, screenshot prompt information is for prompting user to carry out screenshot for the abnormal prompt page, and feedback window is for connecing
Receive the screenshot of the abnormal prompt page.
In addition, the pop-up mode of above-mentioned feedback window can be for from top to bottom, or from top to bottom, can also for from
Left-to-right or from right to left, the embodiment of the present invention is not construed as limiting.It, can also be in addition, the position of feedback window can be fixed
It is to change, the embodiment of the present invention is not construed as limiting.In addition, the size of feedback window can be fixed, it is also possible to be not fixed
, the embodiment of the present invention is not construed as limiting.
Implement the embodiment, screenshot is carried out to the abnormal prompt page by user and is filled by the feedback of APP exception information
It sets and screenshot is sent to background server, can be improved sense of participation of user during product improvement.
As another optional embodiment, screenshot acquiring unit 404 further include:
Subelement 4044 is obtained, for obtaining center and the size of the abnormal prompt page;
Subelement 4045 is loaded, for loading screenshot box according to the center of the abnormal prompt page and size, so that different
Often the prompt page is completely by the screenshot box institute frame;
Interception subelement 4046 intercepts the content in the screenshot box for the boundary according to screenshot box, to obtain
For the screenshot of the abnormal prompt page.
Implement the embodiment, by intercepting the above-mentioned abnormal prompt page automatically, is directed to above-mentioned abnormal prompt to obtain
The screenshot of the page, can be improved the acquisition efficiency of the screenshot of the abnormal prompt page, to improve the abnormal feedback efficiency of APP.
As it can be seen that implementing the feedback device of APP exception information described in Fig. 5, by believing the corresponding log of the exception of APP
Breath is transcoded into character string information and is written in the screenshot of the abnormal prompt page to obtain and pre-process screenshot, then cuts pretreatment
Figure is sent to server and is further processed, to carry out anomaly analysis and positioning, can incite somebody to action in the case where user does not perceive
Log information feeds back to server, so that developer recognizes more detailed information, to precisely be analyzed abnormal
And positioning.In addition, can first be encrypted to log information before log information is transcoded into character string information, then will add
Log information after close is transcoded into character string information, can prevent log information from revealing, and improves log information safety.In addition,
When being recorded in the history process record of database there are the target processing that the exception with APP matches, target processing is remembered
It records corresponding solution and is sent to server.Further, it is also possible to the corresponding solution of exception that the APP that server is sent will be received
Scheme, and associated storage is had access to the corresponding database of APP so as to subsequent together by the solution and the exception of APP.
The present invention also provides a kind of electronic equipment, which includes:
Processor;
Memory is stored with computer-readable instruction on the memory, when which is executed by processor,
Realize a kind of feedback method of APP exception information as previously shown.
The electronic equipment can be Fig. 1 shown device 100.
In one exemplary embodiment, the present invention also provides a kind of computer readable storage mediums, are stored thereon with calculating
Machine program when the computer program is executed by processor, realizes a kind of feedback method of APP exception information as previously shown.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and change can executed without departing from the scope.The scope of the present invention is limited only by the attached claims.
Claims (10)
1. a kind of feedback method of APP exception information, which is characterized in that the described method includes:
When detecting that application APP is abnormal, the abnormal prompt page is popped up;
Abnormal prompt information is shown on the abnormal prompt page, to prompt APP described in user to be abnormal;
The corresponding log information of the exception of the APP is transcoded into character string information;
Obtain the screenshot for being directed to the abnormal prompt page;
The character string information is written in the image data of the screenshot, to obtain pretreatment screenshot;
The pretreatment screenshot is sent to server, so that the server parses the image data of the pretreatment screenshot to obtain
The log information is obtained, and anomaly analysis and positioning are carried out according to the log information.
2. the method according to claim 1, wherein described show abnormal prompt on the abnormal prompt page
After information and before the corresponding log information of the exception by the APP is transcoded into character string information, the method is also
Include:
Obtain the corresponding log information of exception of the APP;
The log information is encrypted, to obtain encrypted logs information;
The corresponding log information of the exception by the APP is transcoded into character string information, comprising:
The encrypted logs information is transcoded into character string information.
3. according to the method described in claim 2, it is characterized in that, it is described send the pretreatment screenshot to server after,
The method also includes:
Receive the corresponding solution of exception for the APP that the server is sent;
By the exception of the APP and the solution associated storage to the corresponding database of the APP.
4. according to the method described in claim 3, it is characterized in that, it is described send the pretreatment screenshot to server after,
And before the corresponding solution of exception for receiving the APP that the server is sent, the method also includes:
Scan the corresponding database of the APP;
It detects in the history process record of the database and remembers with the presence or absence of the target processing that the exception with the APP matches
Record;
If so, target processing, which is recorded corresponding solution, is sent to the server.
5. according to the method described in claim 4, it is characterized in that, described close the exception of the APP and the solution
Connection is stored to the corresponding database of the APP, the method also includes:
Obtain the email address of user;
According to default template generation for the abnormal reply message of the APP;
The reply message is sent to the corresponding mailbox of the email address.
6. method according to any one of claims 1 to 5, which is characterized in that described obtain is directed to the abnormal prompt page
The screenshot in face, comprising:
Export screenshot prompt information;The screenshot prompt information is for prompting user to cut for the abnormal prompt page
Figure;
When listening to user for abnormal prompt page progress screenshot, feedback window is popped up;The feedback window is used for
Receive the screenshot of the abnormal prompt page;
When the screenshot for detecting the abnormal prompt page is placed in the feedback window, the abnormal prompt page is received
Screenshot.
7. method according to any one of claims 1 to 5, which is characterized in that described obtain is directed to the abnormal prompt page
The screenshot in face, comprising:
Obtain center and the size of the abnormal prompt page;
Screenshot box is loaded according to the center and the size, so that the abnormal prompt page is completely by the screenshot box
In institute's frame;
According to the boundary of the screenshot box, the content in the screenshot box is intercepted, is directed to the abnormal prompt to obtain
The screenshot of the page.
8. a kind of feedback device of APP exception information, which is characterized in that described device includes:
Unit is popped up, for popping up the abnormal prompt page when detecting that application APP is abnormal;
Display unit, it is different to prompt APP described in user to occur for showing abnormal prompt information on the abnormal prompt page
Often;
Transcoding units, for the corresponding log information of the exception of the APP to be transcoded into character string information;
Screenshot acquiring unit, for obtaining the screenshot for being directed to the abnormal prompt page;
Writing unit, for the character string information being written in the image data of the screenshot, to obtain pretreatment screenshot;
Transmission unit, for sending the pretreatment screenshot to server, so that the server parses the pretreatment screenshot
Image data to obtain the log information, and anomaly analysis and positioning are carried out according to the log information.
9. a kind of electronic equipment, including memory and processor, the memory are stored with computer program, which is characterized in that
The step of processor realizes method according to any one of claims 1 to 7 when executing the computer program.
10. a kind of computer readable storage medium, which is characterized in that it stores computer program, and the computer program makes
Computer perform claim requires a kind of 1~7 described in any item feedback methods of APP exception information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910450378.4A CN110333981B (en) | 2019-05-28 | 2019-05-28 | APP abnormal information feedback method and device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910450378.4A CN110333981B (en) | 2019-05-28 | 2019-05-28 | APP abnormal information feedback method and device and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110333981A true CN110333981A (en) | 2019-10-15 |
CN110333981B CN110333981B (en) | 2022-04-15 |
Family
ID=68140369
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910450378.4A Active CN110333981B (en) | 2019-05-28 | 2019-05-28 | APP abnormal information feedback method and device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110333981B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111309505A (en) * | 2020-02-11 | 2020-06-19 | 北京三快在线科技有限公司 | Page exception handling method and device and electronic equipment |
CN111988358A (en) * | 2020-07-14 | 2020-11-24 | 深圳拓邦股份有限公司 | Question feedback method and system |
CN112311952A (en) * | 2020-08-25 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Image processing method, system and device |
CN112632030A (en) * | 2020-12-04 | 2021-04-09 | 贝壳技术有限公司 | Data abnormity positioning method and device |
CN113190370A (en) * | 2021-05-08 | 2021-07-30 | 京东数字科技控股股份有限公司 | Emergency response method and device for application |
CN113221508A (en) * | 2021-06-03 | 2021-08-06 | 京东科技控股股份有限公司 | Feedback information acquisition method and device, electronic equipment and storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080256399A1 (en) * | 2007-04-10 | 2008-10-16 | Galileo Group Ag | Software event recording and analysis system and method of use thereof |
CN103646052A (en) * | 2013-11-28 | 2014-03-19 | 小米科技有限责任公司 | Picture information processing method and device |
CN104281526A (en) * | 2014-10-28 | 2015-01-14 | 用友软件股份有限公司 | Failure feedback method, failure feedback system and terminal |
CN106844179A (en) * | 2017-02-07 | 2017-06-13 | 上海与德信息技术有限公司 | log storing method and device |
CN107247637A (en) * | 2017-07-27 | 2017-10-13 | 广州云测信息技术有限公司 | A kind of APP fault determination methods and device |
CN109376071A (en) * | 2018-09-03 | 2019-02-22 | 平安普惠企业管理有限公司 | Application software exception feedback method, device, computer equipment and storage medium |
CN109472833A (en) * | 2018-10-16 | 2019-03-15 | 深圳壹账通智能科技有限公司 | A kind of method, storage medium and server extracting picture from journal file |
-
2019
- 2019-05-28 CN CN201910450378.4A patent/CN110333981B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080256399A1 (en) * | 2007-04-10 | 2008-10-16 | Galileo Group Ag | Software event recording and analysis system and method of use thereof |
CN103646052A (en) * | 2013-11-28 | 2014-03-19 | 小米科技有限责任公司 | Picture information processing method and device |
CN104281526A (en) * | 2014-10-28 | 2015-01-14 | 用友软件股份有限公司 | Failure feedback method, failure feedback system and terminal |
CN106844179A (en) * | 2017-02-07 | 2017-06-13 | 上海与德信息技术有限公司 | log storing method and device |
CN107247637A (en) * | 2017-07-27 | 2017-10-13 | 广州云测信息技术有限公司 | A kind of APP fault determination methods and device |
CN109376071A (en) * | 2018-09-03 | 2019-02-22 | 平安普惠企业管理有限公司 | Application software exception feedback method, device, computer equipment and storage medium |
CN109472833A (en) * | 2018-10-16 | 2019-03-15 | 深圳壹账通智能科技有限公司 | A kind of method, storage medium and server extracting picture from journal file |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111309505A (en) * | 2020-02-11 | 2020-06-19 | 北京三快在线科技有限公司 | Page exception handling method and device and electronic equipment |
CN111309505B (en) * | 2020-02-11 | 2023-06-27 | 北京三快在线科技有限公司 | Page exception handling method and device and electronic equipment |
CN111988358A (en) * | 2020-07-14 | 2020-11-24 | 深圳拓邦股份有限公司 | Question feedback method and system |
CN112311952A (en) * | 2020-08-25 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Image processing method, system and device |
CN112632030A (en) * | 2020-12-04 | 2021-04-09 | 贝壳技术有限公司 | Data abnormity positioning method and device |
CN112632030B (en) * | 2020-12-04 | 2023-04-14 | 贝壳技术有限公司 | Data abnormity positioning method and device |
CN113190370A (en) * | 2021-05-08 | 2021-07-30 | 京东数字科技控股股份有限公司 | Emergency response method and device for application |
CN113221508A (en) * | 2021-06-03 | 2021-08-06 | 京东科技控股股份有限公司 | Feedback information acquisition method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110333981B (en) | 2022-04-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110333981A (en) | A kind of feedback method and device, electronic equipment of APP exception information | |
CN110347524A (en) | A kind of feedback method and device, storage medium, electronic equipment of exception information | |
US10554805B2 (en) | Information processing method, terminal, and computer-readable storage medium | |
KR102379068B1 (en) | communication method and electronic devices thereof | |
CN105474253A (en) | Method for contents delivery service using printed matter | |
CN110347548A (en) | A kind of method for detecting abnormality and device, storage medium, electronic equipment | |
EP2901660B1 (en) | Termininal interaction methods and related devices and systems | |
CN103916513A (en) | Method and device for recording communication message at communication terminal | |
CN105049269B (en) | information feedback method and device | |
US10621977B2 (en) | Trusted speech transcription | |
CN104484593B (en) | terminal verification method and device | |
WO2014194827A1 (en) | Method and device for mobile terminal to process visualization graphics code | |
CN108900303A (en) | A method of it signs electronically online | |
CN110738323A (en) | Method and device for establishing machine learning model based on data sharing | |
CN110245059B (en) | Data processing method, device and storage medium | |
CN106709362A (en) | File encryption method and device and file decryption method and device | |
WO2014194766A1 (en) | Method, system and apparatus for collecting a webpage | |
CN111177536B (en) | Method and device for transmitting customized information to unregistered user based on device fingerprint and electronic device | |
US20150046565A1 (en) | System and method for archiving messages | |
CN109783450B (en) | Data processing method and device and computer equipment | |
CN107257318A (en) | Control method, device and the computer-readable recording medium of electronic equipment | |
CN108229180B (en) | Screenshot data processing method and device and electronic equipment | |
US20150052451A1 (en) | Real time text message system | |
US20220027466A1 (en) | System and method for generating a minimal forensic image of a dataset of interest | |
CN115297104A (en) | File uploading method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
CB02 | Change of applicant information |
Address after: 201, room 518000, building A, No. 1, front Bay Road, Qianhai Shenzhen Guangdong Shenzhen Hong Kong cooperation zone (Qianhai business secretary) Applicant after: Pingan Pu Hui Enterprise Management Co., Ltd. Address before: 518000 Guangdong city of Shenzhen province Qianhai Shenzhen Hong Kong cooperation zone before Bay Road No. 1 building 201 room A Applicant before: Pingan Pu Hui Enterprise Management Co., Ltd. |
|
CB02 | Change of applicant information | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |