Disclosure of Invention
The embodiment of the specification provides a data inspection method, a data inspection device and a data inspection system.
An embodiment of the present specification provides a data inspection method, including:
monitoring whether the retention time of the page accessed at this time of the target page is longer than a standard time, wherein the standard time represents the access time of the target page when the page data corresponding to the target page is normal, and the access time is the total time of the user staying on the page from the access starting time to the access ending time;
if the retention time of the page accessed this time by the target page is longer than the standard time, sending a data verification request to a server, so that the server verifies the page data corresponding to the target page.
An embodiment of the present specification provides another data verification method, including:
when a data verification request is received, verifying page data corresponding to a target page, wherein the data verification request is sent when terminal equipment monitors that the retention time of the page accessed by the target page this time is longer than a standard time, the standard time represents the access time of the target page when the page data corresponding to the target page is normal, and the access time is the total time of a user staying in the page from the access starting time to the access ending time.
An embodiment of the present specification provides another data verification method, including:
receiving the access time length of the current access of a target page, wherein the access time length of the current access of the target page is sent by terminal equipment after the current access of the target page is finished, and the access time length is the total time length of a user staying on the page from the access starting time to the access finishing time;
judging whether the access time length of the target page accessed at this time is greater than a standard time length, wherein the standard time length represents the access time length of the target page accessed when page data corresponding to the target page is normal;
and if the access time length of the target page accessed this time is longer than the standard time length, verifying the page data corresponding to the target page.
The embodiment of the present specification provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor implements the steps of the data verification method when executing the computer program.
The present specification provides a computer readable storage medium, on which a computer program is stored, and the computer program realizes the steps of the above data checking method when executed by the processor.
The embodiment of the specification provides a data inspection device, which comprises a first monitoring module and a first sending module;
the first monitoring module is used for monitoring whether the page staying time of the accessed target page at this time is longer than a standard time, the standard time represents the accessed time of the target page when the page data corresponding to the target page is normal, and the accessed time is the total time of the user staying on the page from the access starting time to the access ending time;
the first sending module is used for sending a data verification request to a server when the retention time of the page visited by the target page this time is longer than the standard time, so that the server verifies the page data corresponding to the target page.
The embodiment of the specification provides another data verification device, which comprises a first receiving module and a first verifying module;
the first receiving module is used for receiving a data verification request, wherein the data verification request is sent by a terminal device when the retention time of the page accessed by the target page this time is monitored to be longer than a standard time, the standard time represents the access time of the target page when the page data corresponding to the target page is normal, and the access time is the total time of the user staying on the page from the access starting time to the access ending time;
the first verification module is configured to verify the page data corresponding to the target page when the first receiving module receives the data verification request.
The embodiment of the specification provides another data checking device, which comprises a third receiving module, a second judging module and a second verifying module;
the third receiving module is used for receiving the access time length of the current access of the target page, the access time length of the current access of the target page is sent by the terminal equipment after the current access of the target page is finished, and the access time length is the total time length of the user staying on the page from the access starting time to the access finishing time;
the second judging module is used for judging whether the access time length of the target page accessed at this time is greater than a standard time length, and the standard time length represents the access time length of the target page accessed when page data corresponding to the target page is normal;
the second verification module is used for verifying the page data corresponding to the target page when the access time length of the target page accessed this time is longer than the standard time length.
The embodiment of the specification provides a data inspection system, which comprises terminal equipment and a server;
the terminal device monitors whether the retention time of the page accessed at this time of the target page is longer than a standard time, the standard time represents the access time of the target page when the page data corresponding to the target page is normal, and the access time is the total time of the user staying on the page from the access starting time to the access ending time;
if the retention time of the page accessed at this time of the target page is longer than the standard time, the terminal equipment sends a data verification request to the server;
and when the server receives the data verification request, verifying the page data corresponding to the target page.
The embodiment of the specification provides another data inspection system, which comprises terminal equipment and a server;
the terminal equipment sends the access time length of the target page accessed this time to the server after the target page accessed this time is finished, wherein the access time length is the total time length of a user staying on the page from the access starting moment to the access finishing moment;
the server judges whether the access time length of the target page accessed at this time is greater than a standard time length, wherein the standard time length represents the access time length of the target page accessed when page data corresponding to the target page is normal;
and if the access time length of the target page accessed at this time is longer than the standard time length, the server verifies the page data corresponding to the target page.
The embodiment of the specification has the following beneficial effects:
in the embodiment of the present specification, by monitoring whether the page dwell time of the target page visited this time is greater than a standard time, when the page dwell time of the target page visited this time is greater than the standard time, page data corresponding to the target page is verified. When the page data corresponding to a certain page has problems, the user will have a question about the information resources displayed on the page, and the time spent on staying on the page will be correspondingly prolonged. Therefore, in the embodiment of the present specification, an access duration, in which the target page is accessed when the page data corresponding to the target page is represented as normal, is used as the standard duration, that is, the access duration, in which the target page is accessed when the page data corresponding to the target page is represented as normal, is used as a reference for verifying whether the page data corresponding to the target page is verified. By comparing the page staying time of the accessed target page at this time with the standard time, whether the page data corresponding to the target page has problems or not can be found in time, the page data corresponding to the target page can be corrected in time when the page data has problems, and public opinion risks brought by data problems can be effectively controlled.
Detailed Description
In order to better understand the technical solutions, the technical solutions of the embodiments of the present specification are described in detail below with reference to the drawings and specific embodiments, and it should be understood that the specific features of the embodiments and embodiments of the present specification are detailed descriptions of the technical solutions of the embodiments of the present specification, and are not limitations of the technical solutions of the present specification, and the technical features of the embodiments and embodiments of the present specification can be combined with each other without conflict.
Please refer to fig. 1, which is a schematic diagram of a data inspection application scenario according to an embodiment of the present disclosure. The terminal device 100 is located at a user side, and may be a desktop computer, a tablet computer, a smart phone, etc. installed with a browser or an application program, and communicates with the server 200 at a network side. When a user wants to acquire a certain information resource, an access request is sent to the server 200 through a browser or an application installed in the terminal device 100, the server 200 returns corresponding page data to the browser or the application after receiving the access request, and the browser or the application generates a corresponding page according to the page data. Due to untimely data updating or improper data maintenance, the page data in the server 200 may have an error or be out of date, so that the information resource acquired by the user also has an error or is out of date. The method and the device for verifying the page data corresponding to the target page have the advantages that the access duration of the target page when the page data corresponding to the target page are normal is used as a reference basis for verifying the page data corresponding to the target page, and automatic verification of the page data corresponding to the target page is achieved.
In a first aspect, an embodiment of the present specification provides a data verification method, where the data verification method is executed in a terminal device. Fig. 2 is a flowchart of the data verification method, which includes step S202 and step S204.
S202, monitoring whether the page dwell time of the accessed target page at this time is longer than the standard time.
The target page is any page visited by the user, and may be a web page displayed through a browser or an interface displayed through an application program. In an embodiment of this specification, the page staying time is a total time for a user to stay on a page from the access start time to the access end time, that is, the monitored access time for the target page being accessed this time. The access starting time is the time when the page is opened, and the access ending time is the time when the page is closed. If the user stays on the target page all the time between the visit starting time and the visit ending time, the page staying time is the time difference between the visit ending time and the visit starting time; if the user leaves the target page halfway and stops on other pages, the page stopping time length is the time difference minus the time length of the user leaving the target page. And setting the access starting time of the accessed target page at this time as 10: 05. the access end time of the target page accessed this time is 10: for example, if the user stays on the target page all the time, the staying time of the page is 10 minutes; if the user is at 10: 10 leaves the target page and, at 10: and returning to the target page for 12 minutes, wherein the retention time of the page is 8 minutes.
When the page data corresponding to the target page has problems, the information resources displayed by the target page by the user have doubts, and the time spent on staying in the target page is correspondingly prolonged. Therefore, in the embodiment of the present specification, an access duration in which the target page is accessed when the page data corresponding to the target page is represented to be normal is taken as the standard duration, where the access duration is a total duration of a user staying in a page from the access start time to the access end time.
If the retention time of the page visited by the target page this time is longer than the standard time, which indicates that the page data corresponding to the target page may have a problem, S204 is executed, and a data verification request is sent to a server, so that the server verifies the page data corresponding to the target page.
Specifically, after receiving the data verification request, the server searches for page data corresponding to the target page from all page data. And after the page data corresponding to the target page is found, comparing the page data corresponding to the target page with the original data. Further, the page data corresponding to the target page may be sent to the terminal device that generates the original data, and the terminal device that generates the original data compares the page data corresponding to the target page with the original data; or requesting the original data from a terminal device generating the original data, and comparing, by the server, page data corresponding to the target page with the original data. If the comparison result is that the page data corresponding to the target page is matched with the original data, determining that the page data corresponding to the target page is normal; and if the comparison result is that the page data corresponding to the target page is not matched with the original data, determining that the page data corresponding to the target page is abnormal, and updating the page data corresponding to the target page according to the original data.
In the embodiment of the specification, an access duration of the target page when the page data corresponding to the target page is represented to be normal is used as the standard duration, that is, the access duration of the target page when the page data corresponding to the target page is represented to be normal is used as a reference for verifying the page data corresponding to the target page. By comparing the page staying time of the accessed target page at this time with the standard time, whether the page data corresponding to the target page has problems or not can be found in time, the page data corresponding to the target page can be corrected in time when the page data has problems, and public opinion risks brought by data problems can be effectively controlled.
The standard time length can be obtained according to experimental data statistics or can be obtained according to empirical summary. In an embodiment of the present specification, the standard duration is determined by the server according to a historical access duration, where the historical access duration is an access duration during which the target page is accessed within a preset historical time period. The preset historical time period may be divided as follows: since the time attribute is a continuous value, the time can be discretized, i.e., segmented. For example, the preset historical time period is a certain day or a certain number of days according to natural day segmentation; and segmenting according to natural months, wherein the preset historical time period is a certain month or a plurality of months. The longer the preset historical time period is set, the more the number of the historical access time periods is, the more accurate the standard time period determined according to the historical access time periods is, but the data processing speed is correspondingly slowed down, and the length of the preset historical time period can be specifically set according to actual requirements.
In an optional implementation manner, the preset historical time period is a preset time interval closest to the current access of the target page. Taking the preset time interval as three hours as an example, each time interval is respectively 6: 00-9: 00. 9: 00-12: 00. 12: 00-15: 00. 15: 00-18: 00, if the target page is accessed at this time in the step 9: 00-12: 00, the preset historical time period is 6: 00-9: 00, namely when judging whether the page dwell time of the target page visited this time is longer than the standard time, the standard time is determined by the server according to the following formula 6: 00-9: determining the historical access time length in the 00 time period; if the target page is accessed at this time 12: 00-15: 00, the preset historical time period is 9: 00-12: 00, namely when judging whether the page dwell time of the target page visited this time is longer than the standard time, the standard time is determined by the server according to the following formula 9: 00-12: the historical access duration within the 00 time period. If the preset historical time period is a preset time interval closest to the current access of the target page, after the current access of the target page is finished, step S206 is further executed to send the current access time length of the target page to the server, so that the server updates the standard time length according to the current access time length of the target page. By setting the preset historical time period as the nearest preset time interval from the target page to be accessed this time, the obtained standard time length is dynamically updated, and the accuracy of data inspection can be improved.
Considering the situation that the page is closed soon after being opened, which is the situation that the user does not stay on the page or only stays on the page for a short time, if the access duration of the situation is used as the data for calculating the standard duration, the accuracy of using the standard duration as the reference basis is reduced. Therefore, in an optional implementation manner, before performing step S206, step S208 is further performed to determine whether the access duration of the current access of the target page is greater than a limit duration; if the access duration of the target page accessed this time is greater than the limit duration, step S206 is executed. The limited time length represents the minimum time length required by browsing the target page, and the difference between the access time lengths corresponding to the condition that the page is closed soon after being opened and the condition that the page is closed after being browsed is large, so that the limited time length can be determined by counting the access time length of the target page accessed in a certain historical time period. For example, if the access time of the target page accessed within a certain historical time period is 2% in the time period below 3 seconds, 3 seconds may be set as the limit time period.
Further, if the retention time of the page visited by the target page this time is longer than the standard time, it is indicated that the page data corresponding to the target page may be abnormal when the target page is visited this time, and if the visit time of the target page visited this time is used as data for updating the standard time, the accuracy of using the standard time as a reference is reduced. Therefore, in an optional implementation manner, the standard duration is determined according to an effective access duration, where the effective access duration is a duration in which the target page is accessed when the historical access duration is greater than the limit duration and the page data corresponding to the target page is normal. Specifically, if the terminal device does not execute step S208, the server may first determine whether the access duration of the current access of the target page is greater than the limit duration; when the access duration of the target page accessed this time is longer than the limit duration, determining whether the access duration of the target page accessed this time is used as data for updating the standard duration according to the matching result of the page data corresponding to the target page and the original data, namely recording the access duration of the target page accessed this time if the page data corresponding to the target page is matched with the original data, otherwise abandoning the access duration of the target page accessed this time. If the terminal device further executes step S208 before executing step S206, the server may directly execute the step S208And determining whether the access time length of the target page accessed at this time is used as data for updating the standard time length according to the matching result of the page data corresponding to the target page and the original data. Further, the standard duration may be a standard deviation of the effective access duration, i.e., the standard deviation
Wherein s is the standard time length, n is the number of the effective access time lengths, M is the average value of the n effective access time lengths, and x
iIs the ith valid access duration. Of course, the standard time length may also be a mean value of the effective access time lengths or a median value of the effective access time lengths, as long as the standard time length can represent the access time length of the target page accessed when the page data corresponding to the target page is normal, which is not limited in the embodiment of the present specification.
In a second aspect, embodiments of the present specification provide a data verification method, where the data verification method is executed in a terminal device. Fig. 3 is a flowchart of the data verification method, which includes step S302 and step S304.
S302, monitoring whether the page dwell time of the accessed target page at this time is longer than the standard time.
The target page is any page visited by the user, and may be a web page displayed through a browser or an interface displayed through an application program. In an embodiment of the present specification, the page staying time duration is a total time duration of the user staying in the page from the access starting time to the current sampling time, that is, a time duration of the user staying in the target page is collected at each preset sampling time, and the access starting time is a time when the page is opened. If the user stays on the target page all the time between the access starting time and the current sampling time, the page staying time is the time difference between the current sampling time and the access starting time; if the user leaves the target page halfway and stops on other pages, the page stopping time length is the time difference minus the time length of the user leaving the target page. And setting the access starting time of the accessed target page at this time as 10: 05. taking the collection of the time length that the user stays on the target page every 6 minutes as an example, in 10: 05 to 10: 11, if the user stays on the target page all the time, the staying time of the page is 6 minutes; if the user is at 10: 07 leaves the target page, and at 10: and 09 minutes, returning to the target page, wherein the retention time of the page is 4 minutes.
When the page data corresponding to the target page has problems, the information resources displayed by the target page by the user have doubts, and the time spent on staying in the target page is correspondingly prolonged. Therefore, in the embodiment of the present specification, an access duration in which the target page is accessed when the page data corresponding to the target page is represented to be normal is taken as the standard duration, where the access duration is a total duration in which the user stays on the page from the access start time to the access end time, and the access end time is a time at which the page is closed. The determination of the access duration is similar to the determination of the page dwell duration, and the access starting time of the current access of the target page is 10: 05. the access end time of the target page accessed this time is 10: for example, if the user stays on the target page all the time, the staying time of the page is 10 minutes; if the user is at 10: 10 leaves the target page and, at 10: and returning to the target page for 12 minutes, wherein the retention time of the page is 8 minutes.
If the retention time of the page visited by the target page this time is longer than the standard time, which indicates that the page data corresponding to the target page may have a problem, S304 is executed, and a data verification request is sent to a server, so that the server verifies the page data corresponding to the target page.
Specifically, after receiving the data verification request, the server searches page data corresponding to the target page from page data. And after the page data corresponding to the target page is found, comparing the page data corresponding to the target page with the original data. Further, the page data corresponding to the target page may be sent to the terminal device that generates the original data, and the terminal device that generates the original data compares the page data corresponding to the target page with the original data; or requesting the original data from a terminal device generating the original data, and comparing, by the server, page data corresponding to the target page with the original data. If the comparison result is that the page data corresponding to the target page is matched with the original data, determining that the page data corresponding to the target page is normal; and if the comparison result is that the page data corresponding to the target page is not matched with the original data, determining that the page data corresponding to the target page is abnormal, and updating the page data corresponding to the target page according to the original data.
In the embodiment of the specification, an access duration of the target page when the page data corresponding to the target page is represented to be normal is used as the standard duration, that is, the access duration of the target page when the page data corresponding to the target page is represented to be normal is used as a reference for verifying the page data corresponding to the target page. By comparing the page staying time of the accessed target page at this time with the standard time, whether the page data corresponding to the target page has problems or not can be found in time, the page data corresponding to the target page can be corrected in time when the page data has problems, and public opinion risks brought by data problems can be effectively controlled. In addition, in the embodiment of the present specification, the total duration of the user staying on the page from the access start time to the current sampling time is taken as the page staying duration, that is, once it is monitored that the duration of the user staying on the target page is longer than the standard duration, the data verification request is sent to the server without waiting for the target page to be accessed and then being judged, so that the situation that the browser or the application program is abnormally closed and the data verification request is not sent to the server in time can be avoided, and the accuracy of data verification can be improved.
The standard time length can be obtained according to experimental data statistics or can be obtained according to empirical summary. In an embodiment of the present specification, the standard duration is determined by the server according to a historical access duration, where the historical access duration is an access duration during which the target page is accessed within a preset historical time period. The preset historical time period may be divided as follows: since the time attribute is a continuous value, the time can be discretized, i.e., segmented. For example, the preset historical time period is a certain day or a certain number of days according to natural day segmentation; and segmenting according to natural months, wherein the preset historical time period is a certain month or a plurality of months. The longer the preset historical time period is set, the more the number of the historical access time periods is, the more accurate the standard time period determined according to the historical access time periods is, but the data processing speed is correspondingly slowed down, and the length of the preset historical time period can be specifically set according to actual requirements.
In an optional implementation manner, the preset historical time period is a preset time interval closest to the current access of the target page. Taking the preset time interval as three hours as an example, each time interval is respectively 6: 00-9: 00. 9: 00-12: 00. 12: 00-15: 00. 15: 00-18: 00, if the target page is accessed at this time in the step 9: 00-12: 00, the preset historical time period is 6: 00-9: 00, namely when judging whether the page dwell time of the target page visited this time is longer than the standard time, the standard time is determined by the server according to the following formula 6: 00-9: determining the historical access time length in the 00 time period; if the target page is accessed at this time 12: 00-15: 00, the preset historical time period is 9: 00-12: 00, namely when judging whether the page dwell time of the target page visited this time is longer than the standard time, the standard time is determined by the server according to the following formula 9: 00-12: the historical access duration within the 00 time period. If the preset historical time period is a preset time interval closest to the current access of the target page, after the current access of the target page is finished, step S306 is further executed, and the current access time length of the target page is sent to the server, so that the server updates the standard time length. By setting the preset historical time period as the nearest preset time interval from the target page to be accessed this time, the obtained standard time length is dynamically updated, and the accuracy of data inspection can be improved.
Considering the situation that the page is closed soon after being opened, which is the situation that the user does not stay on the page or only stays on the page for a short time, if the access duration of the situation is used as the data for calculating the standard duration, the accuracy of using the standard duration as the reference basis is reduced. Therefore, in an optional implementation manner, before executing step S302, step S308 is further executed to monitor whether the page dwell time of the target page visited this time is greater than the limit time; if the dwell time of the page visited this time by the target page is longer than the limit time, step S302 is executed. The limited time length represents the minimum time length required by browsing the target page, and the difference between the access time lengths corresponding to the condition that the page is closed soon after being opened and the condition that the page is closed after being browsed is large, so that the limited time length can be determined by counting the access time length of the target page accessed in a certain historical time period. For example, if the access time of the target page accessed within a certain historical time period is 2% in the time period below 3 seconds, 3 seconds may be set as the limit time period.
Further, if the retention time of the page visited by the target page this time is longer than the standard time, it is indicated that the page data corresponding to the target page may be abnormal when the target page is visited this time, and if the visit time of the target page visited this time is used as data for updating the standard time, the accuracy of using the standard time as a reference is reduced. Therefore, in an optional implementation manner, the standard duration is determined according to an effective access duration, where the effective access duration is a duration in which the target page is accessed when the historical access duration is greater than the limit duration and the page data corresponding to the target page is normal. Specifically, if the terminal device does not execute step S308, the server may first determine whether the access duration of the current access of the target page is greater than the time limit duration(ii) a When the access duration of the target page accessed this time is longer than the limit duration, determining whether the access duration of the target page accessed this time is used as data for updating the standard duration according to the matching result of the page data corresponding to the target page and the original data, namely recording the access duration of the target page accessed this time if the page data corresponding to the target page is matched with the original data, otherwise abandoning the access duration of the target page accessed this time. If the terminal device further executes step S308 before executing step S302, the server may determine whether to use the access duration of the target page accessed this time as the data for updating the standard duration directly according to the matching result between the page data corresponding to the target page and the original data. Further, the standard duration may be a standard deviation of the effective access duration, i.e., the standard deviation
Wherein s is the standard time length, n is the number of the effective access time lengths, M is the average value of the n effective access time lengths, and x
iIs the ith valid access duration. Of course, the standard time length may also be a mean value of the effective access time lengths or a median value of the effective access time lengths, as long as the standard time length can represent the access time length of the target page accessed when the page data corresponding to the target page is normal, which is not limited in the embodiment of the present specification.
In a third aspect, based on the same inventive concept, embodiments of the present specification provide a data verification apparatus. The data inspection device runs on terminal equipment and comprises a first monitoring module and a first sending module;
the first monitoring module is used for monitoring whether the page staying time of the accessed target page at this time is longer than a standard time, the standard time represents the accessed time of the target page when the page data corresponding to the target page is normal, and the accessed time is the total time of the user staying on the page from the access starting time to the access ending time;
the first sending module is used for sending a data verification request to a server when the retention time of the page visited by the target page this time is longer than the standard time, so that the server verifies the page data corresponding to the target page.
In an optional implementation manner, the page staying time length is the total time length of the user staying on the page from the access starting time to the access ending time; alternatively, the first and second electrodes may be,
the page stay time is the total time of the user staying on the page from the access starting moment to the current sampling moment.
In an optional implementation manner, the standard time length is determined by the server according to a historical access time length, where the historical access time length is an access time length for the target page to be accessed within a preset historical time period.
In an optional implementation manner, the preset historical time period is a preset time interval closest to the current access of the target page.
In an optional implementation manner, the data verification apparatus further includes a second sending module;
the second sending module is used for sending the access time length of the target page accessed this time to the server after the target page accessed this time is finished, so that the server updates the standard time length according to the access time length of the target page accessed this time.
In an optional implementation manner, the page staying time length is the total time length of the user staying on the page from the access starting time to the access ending time, and the device further includes a first judgment module;
the first judging module is used for judging whether the access time length of the target page accessed at this time is greater than a limit time length, and the limit time length represents the minimum time length required for browsing the target page;
the second sending module is used for sending the access duration of the current access of the target page to the server when the access duration of the current access of the target page is longer than the limit duration.
In an optional implementation manner, the page staying time length is the total time length of the user staying on the page from the access starting time to the current sampling time, and the device further includes a second monitoring module;
the second monitoring module is used for monitoring whether the retention time of the page visited by the target page this time is longer than a limit time, and the limit time represents the minimum time required for browsing the target page;
the first monitoring module is used for monitoring whether the page staying time of the target page visited this time is longer than the standard time when the page staying time of the target page visited this time is longer than the limit time.
In an optional implementation manner, the standard duration is a standard deviation of an effective access duration, the effective access duration is an access duration in which the target page is accessed when the historical access duration is greater than a limit duration and page data corresponding to the target page is normal, and the limit duration represents a minimum duration required for browsing the target page.
For a specific working principle of the data checking apparatus, reference may be made to the description of the data checking method provided in the first aspect and the second aspect, which is not described herein again.
In a fourth aspect, embodiments of the present specification provide a data verification method, where the data verification method is executed by a server. The data inspection method comprises the following steps:
when a data verification request is received, verifying page data corresponding to a target page, wherein the data verification request is sent when terminal equipment monitors that the retention time of the page accessed by the target page this time is longer than a standard time, the standard time represents the access time of the target page when the page data corresponding to the target page is normal, and the access time is the total time of a user staying in the page from the access starting time to the access ending time.
In an optional implementation manner, the verifying the page data corresponding to the target page includes:
comparing the page data corresponding to the target page with the original data;
if the page data corresponding to the target page is matched with the original data, determining that the page data corresponding to the target page is normal; otherwise, determining that the page data corresponding to the target page is abnormal, and updating the page data corresponding to the target page according to the original data.
In an optional implementation, the data verification method further includes:
determining the standard time length according to historical access time length, wherein the historical access time length is the access time length of the target page accessed in a preset historical time period;
and sending the standard time length to the terminal equipment.
In an optional implementation manner, the preset historical time period is a preset time interval closest to the current access of the target page.
In an optional implementation, the data verification method further includes:
and receiving the access duration of the target page accessed this time, wherein the access duration of the target page accessed this time is sent by the terminal equipment after the target page is accessed this time.
In an optional implementation manner, the standard duration is a standard deviation of an effective access duration, the effective access duration is an access duration in which the target page is accessed when the historical access duration is greater than a limit duration and page data corresponding to the target page is normal, and the limit duration represents a minimum duration required for browsing the target page.
For a specific implementation of the data checking method, reference may be made to the description of the data checking method provided in the first aspect and the second aspect, which is not described herein again.
In a fifth aspect, based on the same inventive concept, embodiments of the present specification provide a data verification apparatus. The data verifying device runs on the server and comprises a first receiving module and a first verifying module;
the first receiving module is used for receiving a data verification request, wherein the data verification request is sent by a terminal device when the retention time of the page accessed by the target page this time is monitored to be longer than a standard time, the standard time represents the access time of the target page when the page data corresponding to the target page is normal, and the access time is the total time of the user staying on the page from the access starting time to the access ending time;
the first verification module is configured to verify the page data corresponding to the target page when the first receiving module receives the data verification request.
In an optional implementation manner, the first verification module includes a first comparison unit, a first determination unit, and a second determination unit;
the first comparison unit is used for comparing the page data corresponding to the target page with the original data;
the first determining unit is used for determining that the page data corresponding to the target page is normal when the page data corresponding to the target page is matched with the original data;
the second determining unit is configured to determine that the page data corresponding to the target page is abnormal when the page data corresponding to the target page is not matched with the original data, and update the page data corresponding to the target page according to the original data.
In an optional implementation manner, the data checking apparatus further includes a first standard duration determining module and a third sending module;
the first standard time length determining module is used for determining the standard time length according to historical access time length, wherein the historical access time length is the access time length of the target page accessed in a preset historical time period;
the third sending module is configured to send the standard duration to the terminal device.
In an optional implementation manner, the preset historical time period is a preset time interval closest to the current access of the target page.
In an optional implementation, the data verification apparatus further includes a second receiving module;
the second receiving module is used for receiving the access duration of the target page accessed this time, and the access duration of the target page accessed this time is sent by the terminal equipment after the target page is accessed this time.
In an optional implementation manner, the standard duration is a standard deviation of an effective access duration, the effective access duration is an access duration in which the target page is accessed when the historical access duration is greater than a limit duration and page data corresponding to the target page is normal, and the limit duration represents a minimum duration required for browsing the target page.
For a specific working principle of the data checking apparatus, reference may be made to the description of the data checking method provided in the fourth aspect, and details are not repeated here.
In a sixth aspect, embodiments of the present specification provide a data verification method, where the data verification method is executed by a server. Fig. 4 is a flowchart of the data verification method, which includes step S402 and step S406.
S402, receiving the access time length of the current access of the target page, wherein the access time length of the current access of the target page is sent by terminal equipment after the current access of the target page is finished, and the access time length is the total time length of a user staying on the page from the access starting time to the access finishing time;
s404, judging whether the access time length of the target page accessed at this time is greater than a standard time length, wherein the standard time length represents the access time length of the target page accessed when the page data corresponding to the target page is normal;
if the access time length of the target page accessed this time is longer than the standard time length, executing step S406 to verify the page data corresponding to the target page.
The data verification method is similar to the data verification method provided in the first aspect, except that: in the data inspection method provided in the first aspect, it is determined in the terminal device whether the page length of time that the target page is visited this time is longer than the standard length of time, and in the embodiment of the present specification, it is determined in the server whether the page length of time that the target page is visited this time is longer than the standard length of time.
In an optional implementation manner, the verifying the page data corresponding to the target page includes:
comparing the page data corresponding to the target page with the original data;
if the page data corresponding to the target page is matched with the original data, determining that the page data corresponding to the target page is normal; otherwise, determining that the page data corresponding to the target page is abnormal, and updating the page data corresponding to the target page according to the original data.
In an optional implementation, the data verification method further includes:
and determining the standard time length according to historical access time length, wherein the historical access time length is the access time length of the target page accessed in a preset historical time period.
In an optional implementation manner, the preset historical time period is a preset time interval closest to the current access of the target page.
In an optional implementation manner, the standard duration is a standard deviation of an effective access duration, the effective access duration is an access duration in which the target page is accessed when the historical access duration is greater than a limit duration and page data corresponding to the target page is normal, and the limit duration represents a minimum duration required for browsing the target page.
For a specific implementation of the data checking method, reference may be made to the description of the data checking method provided in the first aspect and the second aspect, which is not described herein again.
In a seventh aspect, based on the same inventive concept, embodiments of the present specification provide a data verification apparatus. The data inspection device runs on the server and comprises a third receiving module, a second judging module and a second verifying module;
the third receiving module is used for receiving the access time length of the current access of the target page, the access time length of the current access of the target page is sent by the terminal equipment after the current access of the target page is finished, and the access time length is the total time length of the user staying on the page from the access starting time to the access finishing time;
the second judging module is used for judging whether the access time length of the target page accessed at this time is greater than a standard time length, and the standard time length represents the access time length of the target page accessed when page data corresponding to the target page is normal;
the second verification module is used for verifying the page data corresponding to the target page when the access time length of the target page accessed this time is longer than the standard time length.
In an optional implementation manner, the second verification module includes a second comparison unit, a third determination unit, and a fourth determination unit;
the second comparison unit is used for comparing the page data corresponding to the target page with the original data;
the third determining unit is configured to determine that the page data corresponding to the target page is normal when the page data corresponding to the target page matches the original data;
the fourth determining unit is configured to determine that the page data corresponding to the target page is abnormal when the page data corresponding to the target page is not matched with the original data, and update the page data corresponding to the target page according to the original data.
In an optional implementation manner, the data verification device further comprises a second standard duration determination module;
the second standard time length determining module is used for determining the standard time length according to historical access time length, wherein the historical access time length is the access time length of the target page accessed in a preset historical time period.
In an optional implementation manner, the preset historical time period is a preset time interval closest to the current access of the target page.
In an optional implementation manner, the standard duration is a standard deviation of an effective access duration, the effective access duration is an access duration in which the target page is accessed when the historical access duration is greater than a limit duration and page data corresponding to the target page is normal, and the limit duration represents a minimum duration required for browsing the target page.
For a specific working principle of the data checking apparatus, reference may be made to the description of the data checking method provided in the sixth aspect, and details are not repeated here.
In an eighth aspect, based on the same inventive concept, an embodiment of the present specification provides a data inspection system, including a terminal device and a server;
the terminal device monitors whether the retention time of the page accessed at this time of the target page is longer than a standard time, the standard time represents the access time of the target page when the page data corresponding to the target page is normal, and the access time is the total time of the user staying on the page from the access starting time to the access ending time;
if the retention time of the page accessed at this time of the target page is longer than the standard time, the terminal equipment sends a data verification request to the server;
and when the server receives the data verification request, verifying the page data corresponding to the target page.
In a ninth aspect, based on the same inventive concept, an embodiment of the present specification provides another data inspection system, including a terminal device and a server;
the terminal equipment sends the access time length of the target page accessed this time to the server after the target page accessed this time is finished, wherein the access time length is the total time length of a user staying on the page from the access starting moment to the access finishing moment;
the server judges whether the access time length of the target page accessed at this time is greater than a standard time length, wherein the standard time length represents the access time length of the target page accessed when page data corresponding to the target page is normal;
and if the access time length of the target page accessed at this time is longer than the standard time length, the server verifies the page data corresponding to the target page.
In a tenth aspect, based on the same inventive concept as the data verification method in the foregoing embodiments, the present invention further provides a server, as shown in fig. 5, including a memory 504, a processor 502 and a computer program stored on the memory 504 and executable on the processor 502, wherein the processor 502 implements the steps of any one of the foregoing data verification methods when executing the program.
Where in fig. 5 a bus architecture (represented by bus 500) is shown, bus 500 may include any number of interconnected buses and bridges, and bus 500 links together various circuits including one or more processors, represented by processor 502, and memory, represented by memory 504. The bus 500 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 506 provides an interface between the bus 500 and the receiver 501 and transmitter 503. The receiver 501 and the transmitter 503 may be the same element, i.e. a transceiver, providing a means for communicating with various other apparatus over a transmission medium. The processor 502 is responsible for managing the bus 500 and general processing, and the memory 504 may be used for storing data used by the processor 502 in performing operations.
In an eleventh aspect, based on the same inventive concept as the data inspection method in the foregoing embodiments, the present invention further provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor, implements the steps of any one of the foregoing data inspection methods.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present specification have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all changes and modifications that fall within the scope of the specification.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present specification without departing from the spirit and scope of the specification. Thus, if such modifications and variations of the present specification fall within the scope of the claims of the present specification and their equivalents, the specification is intended to include such modifications and variations.