Data acquisition method, system, server, terminal, and data supply device

By processing data retrieval requests without authentication information on the server and retrieving and generating requests with authentication information, the problem of poor data security on the web is solved, achieving higher security and user-friendliness.

WO2026051904A1PCT designated stage Publication Date: 2026-03-12HANGZHOU HIKVISION DIGITAL TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-09-02
Publication Date
2026-03-12

AI Technical Summary

Technical Problem

In existing technologies, web applications directly use user accounts and passwords to generate authentication information, resulting in poor data security.

Method used

The server receives data retrieval requests without authentication information, obtains the authentication information of the data supply device, processes it, generates a data retrieval request with authentication information, and returns the data to the web client.

Benefits of technology

It improves data security, enhances user experience, avoids browser pop-ups, and simplifies user operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2025118433_12032026_PF_FP_ABST
    Figure CN2025118433_12032026_PF_FP_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a data acquisition method, a system, a server, a terminal, and a data supply device. The method is applied to a server in a data acquisition system The method comprises: when a first data acquisition request sent by a web end is received, sending the first data acquisition request to a data supply device, wherein the first data acquisition request does not carry first authentication information required by the data supply device; receiving the first authentication information sent by the data supply device; and processing the first authentication information, such that the web end or the server sends a second data acquisition request to the data supply device, so that the web end acquires data returned by the data supply device, wherein the second data acquisition request comprises the first authentication information. The embodiments of the present application can solve the problem of data security and improve user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Method, system, server, terminal and data supply device for data acquisition

[0001] This application claims priority to the Chinese patent application No. 202411252308.5, filed on September 6, 2024, and entitled "Method, apparatus, system, server, terminal and medium for image acquisition", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the technical field of multimedia data processing, and in particular to a method, system, server, terminal and data supply device for data acquisition. BACKGROUND

[0003] When a user needs to view images collected by an image collection device, the user can obtain the images from the image collection device through a web (webpage) end. The image collection device returns images to the web end only when the image collection device authenticates the authentication information carried in the image acquisition request sent by the web end.

[0004] In related technologies, the web device directly generates authentication information using a user account and a password, and the data security is poor. SUMMARY

[0005] Embodiments of the present application aim to provide a method, system, server, terminal and data supply device for data acquisition to improve data security. The specific technical solutions are as follows:

[0006] In a first aspect, the embodiments of the present application provide a first method for data acquisition, applied to a server in a data acquisition system, the system further comprising a web end and a data supply device, the web end being applied to a browser, and the method comprising:

[0007] In a case where a first data acquisition request sent by the web end is received, sending the first data acquisition request to the data supply device, wherein the first data acquisition request does not carry first authentication information required by the data supply device;

[0008] Receiving the first authentication information sent by the data supply device;

[0009] Processing the first authentication information, so that the web end or the server sends a second data acquisition request to the data supply device, so that the web end obtains data returned by the data supply device, wherein the second data acquisition request comprises the first authentication information.

[0010] In a second aspect, the embodiments of the present application provide a second data acquisition method, applied to a web end in a data acquisition system, the system further comprising a server and a data supply device, the web end being applied to a browser, and the method comprising:

[0011] sending a first data acquisition request to the server, so that the server sends the first data acquisition request to the data supply device, and receiving first authentication information required by the data supply device and sent by the data supply device; wherein the first data acquisition request does not carry the first authentication information;

[0012] receiving the first authentication information sent by the server;

[0013] sending a second data acquisition request to the data supply device, wherein the second data acquisition request comprises the first authentication information;

[0014] receiving data returned by the data supply device.

[0015] In a third aspect, the embodiments of the present application provide a third data acquisition method, applied to a data supply device in a data acquisition system, the system further comprising a web end and a server, the web end being applied to a browser, wherein the data supply device returns data in response to a data acquisition request carrying first authentication information required by the data supply device; and the method comprising:

[0016] receiving a first data acquisition request sent by the server, wherein the first data acquisition request is sent by the web end to the server, and the first data acquisition request does not carry the first authentication information required by the data supply device;

[0017] sending the first authentication information to the server;

[0018] receiving a second data acquisition request carrying the first authentication information and sent by the server or the web end, and returning data, so that the web end acquires the data; wherein the second data acquisition request comprises the first authentication information.

[0019] In a fourth aspect, the embodiments of the present application provide a first authentication failure information processing method, applied to a server in a data acquisition system, the system further comprising a web end and a data supply device, the web end being applied to a browser, and the method comprising:

[0020] in a case where the first data acquisition request sent by the web end is received, sending the first data acquisition request to the data supply device;

[0021] receiving authentication failure information sent by the data supply device, wherein the authentication failure information is sent in a case that the data supply device fails to authenticate the first data acquisition request; and triggering a pop-up window of the browser if the browser receives the authentication failure information;

[0022] processing the authentication failure information, so that the processed authentication failure information does not trigger the pop-up window of the browser.

[0023] In a fifth aspect, a second method for processing authentication failure information is provided, which is applied to a web end of a data acquisition system, the system further comprising a server and a data supply device, and the web end is applied to a browser. The method comprises the following steps.

[0024] sending a first data acquisition request to the server, so that the server sends the first data acquisition request to the data supply device, receiving authentication failure information sent by the data supply device, processing the authentication failure information, so that the processed authentication failure information does not trigger the pop-up window of the browser, and sending the processed authentication failure information to the web end.

[0025] In a sixth aspect, a server is provided, which comprises a memory for storing a computer program, and a processor for executing the program stored in the memory to implement the method of any one of the first aspect.

[0026] In a seventh aspect, a terminal is provided, which comprises a memory for storing a computer program, and a processor for executing the program stored in the memory to implement the method of any one of the second aspect.

[0027] In an eighth aspect, a data supply device is provided, which comprises a memory for storing a computer program, and a processor for executing the program stored in the memory to implement the method of any one of the third aspect.

[0028] In a ninth aspect, a data acquisition system is provided, which comprises the server of the sixth aspect, the web end and the data supply device of the eighth aspect, and the web end is applied to the browser of the terminal of the seventh aspect.

[0029] In a tenth aspect, a server is provided, which comprises a memory for storing a computer program, and a processor for executing the program stored in the memory to implement the method of any one of the fourth aspect.

[0030] In a eleventh aspect, an embodiment of the present application provides a terminal, comprising: a memory for storing a computer program; and a processor for executing the program stored in the memory to implement the method in any of the fifth aspect.

[0031] In a twelfth aspect, an embodiment of the present application provides a data acquisition system, comprising the server, the web terminal and the data supply device in the tenth aspect, and the web terminal is applied to the browser of the terminal in the eleventh aspect.

[0032] In a eleventh aspect, an embodiment of the present application provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method in any of the first aspect, the second aspect, the third aspect, the fourth aspect or the fifth aspect.

[0033] The embodiment of the present application has the following beneficial effects:

[0034] In the scheme provided by the embodiment of the present application, the data acquisition system comprises a server, a web terminal and a data supply device, the web terminal is applied to a browser, and the data acquisition method can be applied to the server. When the server receives a first data acquisition request sent by the web terminal, the server sends the first data acquisition request to the data supply device, wherein the first data acquisition request does not carry first authentication information required by the data supply device, and the server receives first authentication information sent by the data supply device. The first authentication information is processed, so that the web terminal or the server sends a second data acquisition request to the data supply device, and the web terminal acquires data returned by the data supply device, wherein the second data acquisition request comprises the first authentication information. Since the server sends the first data acquisition request to the data supply device, the first authentication information returned by the data supply device can be received, so that the web terminal or the server can send the second data acquisition request comprising the first authentication information to the data supply device, and then the web terminal receives data indicated by the second data acquisition request returned by the data supply device. In this way, the web terminal can acquire the data required by the user based on the first authentication information, improve the data security, and improve the user experience. Of course, any product or method implementing the present application does not necessarily need to achieve all the advantages described above. BRIEF DESCRIPTION OF DRAWINGS

[0035] The accompanying drawings, which are included to provide a further understanding of the present application, form a part of the present application and illustrate the illustrative embodiments of the present application and the description thereof, and do not constitute improper limitations on the present application.

[0036] FIG. 1 is a structural schematic diagram of a data acquisition system provided by an embodiment of the present application;

[0037] FIG. 2 is a flowchart of a first data acquisition method according to an embodiment of the present application;

[0038] FIG. 3 is a schematic diagram of a data acquisition scenario according to an embodiment of the present application;

[0039] FIG. 4 is a first signaling diagram for data acquisition based on the embodiment shown in FIG. 2;

[0040] FIG. 5 is a flowchart of a second data acquisition method according to an embodiment of the present application;

[0041] FIG. 6 is a second signaling diagram for data acquisition based on the embodiment shown in FIG. 2;

[0042] FIG. 7 is a third signaling diagram for data acquisition based on the embodiment shown in FIG. 2;

[0043] FIG. 8 is a specific flowchart of sending a data acquisition request according to an embodiment of the present application;

[0044] FIG. 9 is a specific flowchart of informing a web end of a data acquisition failure according to an embodiment of the present application;

[0045] FIG. 10 is a flowchart of a third data acquisition method according to an embodiment of the present application;

[0046] FIG. 11 is a fourth signaling diagram for data acquisition based on the embodiment shown in FIG. 10;

[0047] FIG. 12 is a flowchart of a first authentication failure information processing method according to an embodiment of the present application;

[0048] FIG. 13 is a structural schematic diagram of a first data acquisition apparatus according to an embodiment of the present application;

[0049] FIG. 14 is a structural schematic diagram of a second data acquisition apparatus according to an embodiment of the present application;

[0050] FIG. 15 is a structural schematic diagram of a third data acquisition apparatus according to an embodiment of the present application;

[0051] FIG. 16 is a structural schematic diagram of a server according to an embodiment of the present application;

[0052] FIG. 17 is a structural schematic diagram of a terminal according to an embodiment of the present application. DETAILED DESCRIPTION

[0053] For the purposes of the present application, the technical solutions and advantages are more clearly apparent, the following embodiments are described with reference to the accompanying drawings and examples. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art belong to the scope of protection of the present application.

[0054] In order to improve data security, the embodiments of the present application provide a data acquisition method, system, server, terminal, data supply device, computer readable storage medium and computer program product. First, a data acquisition method provided by the embodiments of the present application is introduced.

[0055] The first data acquisition method provided by the embodiments of the present application, as shown in FIG. 1, can be applied to a server 101 in a data acquisition system, and the system further includes a web end 102 and a data supply device 103. The web end 102 is applied to a browser. The data supply device can be an image acquisition device, a data storage device, a data processing device, etc., which is not limited here.

[0056] As shown in FIG. 2, a data acquisition method includes:

[0057] S201, in the case of receiving the first data acquisition request sent by the web end, sending the first data acquisition request to the data supply device;

[0058] Wherein, the first data acquisition request does not carry the first authentication information required by the data supply device.

[0059] S202, receiving the first authentication information sent by the data supply device;

[0060] S203, processing the first authentication information, so that the web end or the server sends a second data acquisition request to the data supply device, so that the web end acquires the data returned by the data supply device.

[0061] Wherein, the second data acquisition request includes the first authentication information.

[0062] It can be seen that in the scheme provided in the embodiments of the present application, in the case that the server sends a first data acquisition request to the data supply device, the first authentication information returned by the data supply device can be received, and the first authentication information can be processed, so that the web end or the server can send a second data acquisition request carrying the first authentication information to the data supply device, and then the web end receives the data indicated by the second data acquisition request returned by the data supply device. In this way, the web end can obtain the data required by the user based on the first authentication information, thereby improving the user experience.

[0063] In order to protect data security, the data supply device often needs to verify the received data acquisition request. In the case that the data acquisition request carries the first authentication information required by the data supply device, the data supply device will return data to the device sending the data acquisition request.

[0064] Taking a picture taking scenario as an example, the data supply device is an image acquisition device, which can be a video camera, a camera, a camera, etc., without specific limitation. When a user views the images collected by the image acquisition device, there is a scenario in which the image acquisition device is a dedicated device. In this case, if the web end obtains images from the image acquisition device, the web end needs to send an image acquisition request carrying the first authentication information required by the image acquisition device to the image acquisition device. If the image acquisition request sent by the web end does not carry the first authentication information required by the image acquisition device, the image acquisition device will not pass the authentication of the image acquisition request, and the image acquisition device will not return the image requested by the image acquisition request, but return authentication failure information. The browser will intercept the authentication failure information and pop up a window.

[0065] For example, as shown in FIG. 3, the page accessed by the user through the browser includes multiple executable functions, i.e., function 1 to function 6. In the case that the function 1 is clicked, the page can display multiple sub-functions under the function 1, including file type, search dimension, time and user. If the user obtains images through the function 1, the page can display the image acquisition result, such as picture 1 to picture 6. If the user obtains images based on the image acquisition request sent by the web end without carrying the first authentication information required by the image acquisition device, the image acquisition device will not return the image requested by the image acquisition request. The browser will pop up a login box and display the information "http: / / 10.42.161.xxx Your connection to this website is not a private connection", requiring the user to input a username and password. The user can click login after inputting the corresponding information, or directly cancel without inputting any information. At this time, the address bar displays "10.42.161.xxx / # / portal" as an unsafe address.

[0066] Therefore, for such a scenario, the embodiment of the present application provides a server to obtain first authentication information required by a data supply device, so that in the case that the data supply device receives a data acquisition request carrying the first authentication information, the first authentication information can be authenticated and passed, and the data indicated by the data acquisition request can be returned.

[0067] In step S201, the server can send a first data acquisition request to the data supply device in the case that the server receives the first data acquisition request sent by the web end, wherein the first data acquisition request is a request not carrying the first authentication information required by the data supply device, and the data supply device can return the first authentication information and authentication failure information in the case that the data supply device receives the first data acquisition request.

[0068] In an embodiment, the first data acquisition request is a request in a first form set in advance, and the data supply device can determine that the first data acquisition request does not carry the first authentication information required by the data supply device when the data supply device receives the first data acquisition request in the first form set in advance, and return the first authentication information. For example, the data supply device is an image acquisition device, the first data acquisition request is a first image acquisition request for acquiring an image, and the first image acquisition request only includes an address of the image to be acquired. In this case, the image acquisition device can return the first authentication information when the image acquisition device receives the first image acquisition request. For another example, the data supply device is an image acquisition device, the first data acquisition request is a first image acquisition request for acquiring an image, and the first image acquisition request only includes an identifier of the image to be acquired. In this case, the image acquisition device can return the first authentication information when the image acquisition device receives the first image acquisition request.

[0069] The first authentication information can be special information required by the data supply device, i.e., proprietary authentication information of the data supply device. In an embodiment, the first authentication information can be a proprietary field set in advance and stored in the data supply device. For example, the data supply device is an image acquisition device, and the proprietary field set in advance and stored in the image acquisition device is a key field 1. In this case, the first authentication information required by the image acquisition device is the key field 1.

[0070] In another embodiment, the first authentication information is periodically changed, and the first authentication information can be a proprietary field updated by the data supply device according to a preset period. For example, the data supply device is an image acquisition device, and the image acquisition device can update a proprietary field as the first authentication information according to an update frequency of once a week. The proprietary field can be updated by a user according to a requirement, or can be updated by the image acquisition device according to a certain preset rule, which is reasonable.

[0071] In the case that the data supply device receives the first data acquisition request without carrying the first authentication information required by the data supply device, the first authentication information can be sent to the server, and then the server can receive the first authentication information sent by the data supply device, that is, step S202 is performed.

[0072] In step S203, the server can process the first authentication information, so that the web end or the server sends a second data acquisition request to the data supply device, so that the web end obtains the data returned by the data supply device.

[0073] The second data acquisition request includes the first authentication information. The second data acquisition request can be a second form of request set in advance. When the data supply device receives the second data acquisition request of the second form set in advance, it can be determined that the second data acquisition request carries the first authentication information, so that the first authentication information is authenticated and the data indicated by the second data acquisition request is returned.

[0074] The above-mentioned second form set in advance is a form determined according to the first authentication information of the data application device. The second form includes that the second data acquisition request includes the first authentication information, and the first authentication information is located at a position of the first authentication information set in advance.

[0075] For example, the data supply device is an image acquisition device, the second data acquisition request is a second image acquisition request for acquiring an image, the second image acquisition request includes the address of the image to be acquired, the device identifier of the device sending the second image acquisition request, and the first authentication information, and the first authentication information is located at a position of the first authentication information set in advance. When the image acquisition device receives the second image acquisition request, it can be determined that the second image acquisition request includes the first authentication information, and the image indicated by the second image acquisition request can be returned.

[0076] In an embodiment, in the user takes a picture scenario, the first data acquisition request and the second data acquisition request are requests for acquiring an image.

[0077] The server can obtain the first authentication information issued by the data supply device, and process the first authentication information. The processing of the first authentication information includes sending the first authentication information to the web end, or generating a second data acquisition request based on the first authentication information.

[0078] In this way, when the first authentication information is processed to send the first authentication information to the web end, the web end can send a second data acquisition request to the data supply device, so that the web end acquires the data returned by the data supply device; when the first authentication information is processed to generate a second data acquisition request based on the first authentication information, the server sends the second data acquisition request to the data supply device, acquires the data returned by the data supply device, and sends the data to the web end, so that the web end acquires the data returned by the data supply device.

[0079] It can be seen that in the scheme of the embodiment, when the server sends the first data acquisition request to the data supply device, the first authentication information returned by the data supply device can be received, and the first authentication information can be processed to make the web end or the server send a second data acquisition request to the data supply device, so that the web end acquires the data returned by the data supply device. In this way, the web end can acquire the data required by the user through the first authentication information, and the data security is improved.

[0080] Although there is currently a method of forwarding the data acquisition request sent by the web end to the data supply device by the plug-in, receiving the first authentication information and authentication failure information returned by the data supply device, and then making the web end acquire the data required by the user to view based on the first authentication information and the authentication failure information returned by the data supply device, the plug-in does not have only a single function, but integrates multiple functions, so that the development process is complex and the maintenance cost is high. In addition, when the user needs to view the data of the data supply device, the plug-in needs to be downloaded. If the user does not download the plug-in, the user cannot view the data, which affects the user experience. Therefore, the function performed by the plug-in can be completed by only using the server in the embodiment of the application. Not only is the cost low and easy to maintain, but also the user does not need to download the plug-in, the operation is simple, and the user experience is greatly improved.

[0081] As an embodiment of the application, the step S203 of processing the first authentication information to make the web end or the server send a second data acquisition request to the data supply device, so that the web end acquires the data returned by the data supply device, can include:

[0082] The first authentication information is sent to the web end to make the web end send a second data acquisition request to the data supply device and acquire the data returned by the data supply device.

[0083] The server can send the first authentication information to the web terminal, so that the web terminal sends a second data acquisition request carrying the first authentication information to the data supply device. In a case where the data supply device receives the second data acquisition request carrying the first authentication information, the data supply device can authenticate the first authentication information, send the data indicated by the second data acquisition request to the web terminal, and then make the web terminal receive the data returned by the data supply device.

[0084] For example, the second data acquisition request includes an address of the data to be acquired and the first authentication information. In a case where the data supply device receives the second data acquisition request, the data supply device can return the data indicated by the second data acquisition request. For another example, the second data acquisition request includes an identifier of the data to be acquired and the first authentication information. In a case where the data supply device receives the second data acquisition request, the data supply device can return the data indicated by the second data acquisition request.

[0085] It can be seen that, in the scheme of the embodiment, the server sends the first authentication information to the web terminal, so that the web terminal can send the second data acquisition request carrying the first authentication information to the data supply device, and then the web terminal receives the data returned by the data supply device. In this way, the web terminal can acquire the data by using the first authentication information, and the data security is improved.

[0086] As an implementation manner of the embodiment, the step S202, i.e., the step of receiving the first authentication information sent by the data supply device, can include the following steps.

[0087] The first authentication information and authentication failure information sent by the data supply device are received. If the authentication failure information is received by the browser, the pop-up window of the browser is triggered.

[0088] In a case where the data supply device receives the first data acquisition request not carrying the first authentication information required by the data supply device, the data supply device can send the first authentication information and the authentication failure information to the server. Then, the server can receive the first authentication information and the authentication failure information sent by the data supply device.

[0089] The authentication failure information can be used to inform the server that the correct first authentication information is not provided or the first authentication information is not carried, i.e., inform the server that the current first data acquisition request does not have the access right of the data supply device. Exemplarily, the authentication failure information can be an error status code.

[0090] For example, the data supply device is an image acquisition device, the first authentication information required by the image acquisition device is a key field 1, the server only sends a first image acquisition request carrying an identifier of an image to be acquired to the image acquisition device, the image acquisition device does not identify the key field 1 required for authentication, and can send a 401 status code and the key field 1 to the server. The server can receive the 401 status code and the key field 1 sent by the image acquisition device.

[0091] The server sends the authentication failure information to the browser, and the browser receives the authentication failure information, which triggers the interception pop-up window of the browser.

[0092] Before the step S203, that is, the step of processing the first authentication information, the server can process the authentication failure information, so that the processed authentication failure information does not trigger the interception pop-up window of the browser.

[0093] That is, as long as the server processes the authentication failure information, the web end does not receive the authentication failure information, and the browser does not intercept the authentication failure information to perform the pop-up window.

[0094] In an embodiment, in the case where the server receives the authentication failure information, the authentication failure information can be processed to obtain processed authentication information, and then the processed authentication information is sent to the web end, so that the browser does not intercept the processed authentication information and does not perform the pop-up window. Illustratively, the server adds preset information at the beginning or end of the authentication failure information, so that the authentication failure information is no longer the original authentication failure information, so that the browser does not intercept the processed authentication information and does not perform the pop-up window.

[0095] It can be seen that in the embodiment, the server can process the authentication failure information to obtain processed authentication failure information, which does not trigger the interception pop-up window of the browser. Therefore, after the server sends the processed authentication failure information to the web end, in the case where the web end receives the processed authentication failure information, the browser does not perform the pop-up window. In this way, the web end can obtain the data while solving the problem of the pop-up window of the browser, and the user experience is improved.

[0096] As an embodiment of the present application, the above authentication failure information is an error status code, which triggers the interception pop-up window of the browser. The error status code can be used to inform the browser that the current first data acquisition request does not have access permission. Illustratively, the error status code can be a 401 status code.

[0097] The step of processing the authentication failure information so that the processed authentication failure information does not trigger the interception pop-up window of the browser can include:

[0098] The error status code is processed to obtain a processed authentication status code, so that the processed authentication failure information does not trigger the pop-up window of the browser.

[0099] Since the error status code can trigger the pop-up window of the browser, if the server sends the error status code to the web end, the browser will intercept the error status code to pop up a window. Therefore, in an embodiment, the server can process the error status code to obtain a processed authentication status code, so that the processed authentication status information, i.e., the processed authentication status code, does not trigger the pop-up window of the browser. That is, the processed authentication status code obtained by the server is no longer an error status code, and the processed authentication status code is a status code that will not be intercepted by the browser. The processed authentication status code can be set according to actual needs, for example, a preset number is added at a preset position of the error status code, or a preset letter is added at a preset position of the error status code, which is not limited here.

[0100] For example, the error status code is a 401 status code, and the server can process the 401 status code by adding the number 40 before the 401 status code to obtain a processed authentication status code 40401, which will not be intercepted by the browser, i.e., will not trigger the pop-up window of the browser. For another example, the server can add the letter A before the 401 status code to obtain a processed authentication status code A401, which will also not be intercepted by the browser.

[0101] The above step of sending the first authentication information to the web end can include:

[0102] The processed authentication status code and the first authentication information are sent to the web end.

[0103] After the server obtains the processed authentication status code, the server can send the authentication status code and the first authentication information to the web end. In the case that the web end receives the authentication status code, the browser will not intercept the processed authentication status code, and thus will not pop up a window. In the case that the web end receives the first authentication information, a second data acquisition request carrying the first authentication information can be sent to the data supply device. In the case that the data supply device receives the second data acquisition request, the data supply device can return the data indicated by the second data acquisition request, and thus the web end can receive the data returned by the data supply device.

[0104] For example, the data supply device is an image acquisition device, the first data acquisition request is a first image acquisition request for acquiring an image, as shown in FIG. 4, the web end sends the first image acquisition request to the server, and the first image acquisition request does not carry the first authentication information required by the image acquisition device, and the first authentication information can be acquired through the server. In the case that the server receives the first image acquisition request, the server can send the first image acquisition request to the image acquisition device. In the case that the image acquisition device receives the first image acquisition request, since the first image acquisition request does not carry the first authentication information, the image acquisition device can return a 401 status code and the first authentication information to the server.

[0105] The server receives the 401 status code and the first authentication information, processes the 401 status code to obtain an authentication status code 40401, and sends the authentication status code 40401 and the first authentication information to the web end. The web end receives the authentication status code and the first authentication information, since the browser will not intercept the authentication status code, the browser will not pop up a window, and then the web end can generate a second image acquisition request based on the first authentication information, and send the second image acquisition request carrying the first authentication information to the image acquisition device. The image acquisition device receives the second image acquisition request carrying the first authentication information, and then the image acquisition device can authenticate the first authentication information, and return an image indicated by the second image acquisition request to the web end, so that the web end can receive and display the image.

[0106] It can be seen that, in the embodiment, the server can process the error status code to obtain a processed authentication status code, and the authentication failure information will not trigger the interception pop-up window of the browser, so that after the server sends the processed authentication status code and the first authentication information to the web end, in the case that the web end receives the processed authentication status code, the browser will not pop up a window, and the web end can send a second data acquisition request carrying the first authentication information to the data supply device to receive data returned by the data supply device. In this way, the web end can acquire the data while solving the problem of the browser pop-up window, and the user experience is improved.

[0107] As an implementation manner of the embodiment of the present application, the step S203, that is, processing the first authentication information, so that the web end or the server sends a second data acquisition request to the data supply device, and the web end acquires data returned by the data supply device, can include:

[0108] generate a second data acquisition request based on the first authentication information, and send the second data acquisition request to the data supply device; receive data indicated by the second data acquisition request returned by the data supply device, and send the data to the web terminal, so that the web terminal acquires the data.

[0109] As shown in FIG. 5, the flow of data acquisition includes:

[0110] S501, in a case where a first data acquisition request sent by a web terminal is received, sending the first data acquisition request to a data supply device;

[0111] The first data acquisition request does not carry first authentication information required by the data supply device.

[0112] S502, receiving first authentication information sent by the data supply device;

[0113] S503, generating a second data acquisition request based on the first authentication information;

[0114] S504, sending the second data acquisition request to the data supply device;

[0115] S505, receiving data indicated by the second data acquisition request returned by the data supply device, and sending the data to the web terminal, so that the web terminal acquires the data.

[0116] The specific implementation of steps S501-S502 can refer to the description of the specific implementation of each embodiment of the method of data acquisition, which will not be repeated here.

[0117] In order to reduce the interaction between the web terminal and the data supply device, the server can generate a second data acquisition request based on the first authentication information, and then send the second data acquisition request carrying the first authentication information to the data supply device, so that the data supply device can pass the authentication of the first authentication information and return the data indicated by the second data acquisition request when receiving the second data acquisition request carrying the first authentication information.

[0118] For example, in a picture taking scenario, the data supply device is an image acquisition device, and the second image acquisition request includes an address of an image to be acquired and first authentication information required by the image acquisition device. When the image acquisition device receives the second image acquisition request, it can return the image indicated by the second image acquisition request. For another example, the second image acquisition request includes an identifier of an image to be acquired and first authentication information required by the image acquisition device. When the image acquisition device receives the second image acquisition request, it can return the image indicated by the second image acquisition request.

[0119] The server can send the data to the web end in the case of receiving the data returned by the data supply device, so that the web end can receive and display the data.

[0120] It can be seen that in the scheme provided in the embodiments of the present application, in the case of sending the first data acquisition request to the data supply device, the first authentication information returned by the data supply device can be received, the second data acquisition request carrying the first authentication information can be sent to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request, and then the data is sent to the web end. In this way, the web end can obtain the data required by the user, improving the user experience, and sending the second data acquisition request to the data supply device by the server can reduce the pressure on the browser.

[0121] As an embodiment of the embodiments of the present application, the step of processing the authentication failure information so that the authentication failure information does not trigger the pop-up window of the browser can include:

[0122] The authentication failure information is not sent to the web end, so that the authentication failure information does not trigger the pop-up window of the browser.

[0123] The server processes the authentication failure information so that the authentication failure information does not trigger the pop-up window of the browser. That is, as long as the server does not send the authentication failure information to the web end, the web end does not receive the authentication failure information, and the pop-up window of the browser is not triggered.

[0124] In the case that the server receives the authentication failure information, the authentication failure information can not be sent to the web end, so that the web end does not receive the authentication failure information, and the pop-up window of the browser is not triggered.

[0125] Exemplarily, the authentication failure information can be an error status code, such as a 401 status code. Since the error status code is sent to the web end, the browser will intercept the error status code and display a pop-up window. Therefore, the server can not send the error status code to the web end, so that the web end does not receive the error status code, and the pop-up window of the browser is not triggered.

[0126] For example, as shown in FIG. 6, the web end sends a first data acquisition request to the server, and the first data acquisition request does not carry first authentication information. In the case that the server receives the first data acquisition request, the server can send the first data acquisition request to the data supply device. In the case that the data supply device receives the first data acquisition request, since the first data acquisition request does not carry the first authentication information, the data supply device can return a 401 status code and the first authentication information to the server.

[0127] The server can not perform any processing on the 401 status code after receiving the 401 status code and the first authentication information, that is, neither sending the 401 status code to the web end nor processing the 401 status code, so that the web end does not receive the error status code, and the browser's interception pop-up window is not triggered. The server receives the 401 status code and the first authentication information, generates a second data acquisition request based on the first authentication information, and sends the second data acquisition request carrying the first authentication information to the data supply device. The data supply device receives the second data acquisition request carrying the first authentication information, and then authenticates the first authentication information, returns the data indicated by the second data acquisition request to the server, and the server sends the data to the web end to enable the web end to receive and display the data.

[0128] In the scheme of the embodiment, since the server does not send the authentication failure information to the web end, the authentication failure information will not trigger the browser's interception pop-up window. In this way, not only the browser pop-up window problem is solved, but also the web end can obtain the data required by the user, and the user experience is improved.

[0129] As an embodiment of the present application, the step of sending the second data acquisition request to the data supply device can include:

[0130] sending the second data acquisition request including the first authentication information to the data supply device, so that the data supply device returns data to the server in the case of passing the authentication of the first authentication information; or,

[0131] sending the second data acquisition request including the first authentication information and the second authentication information to the data supply device, and returning data to the server in the case of passing the authentication of the first authentication information and the second authentication information, wherein the second authentication information includes an account and a password.

[0132] The server sending the second data acquisition request carrying the first authentication information to the data supply device can include two cases. In the first case, the data supply device has authenticated the second authentication information and passed the authentication of the second authentication information before the server sends the second data acquisition request, that is, the user has logged in the data supply device using the second authentication information, so the data supply device only needs to authenticate the first authentication information. In this way, the server can send the second data acquisition request including the first authentication information to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the server in the case of passing the authentication of the first authentication information.

[0133] In the second case, before the server sends the second data acquisition request, the data supply device does not authenticate the second authentication information, i.e., the user does not log in to the data supply device using the second authentication information, then the server can send the second data acquisition request including the first authentication information and the second authentication information to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the server in the case that the first authentication information and the second authentication information are both authenticated. The second authentication information includes an account and a password.

[0134] In an embodiment, the server can obtain the second authentication information in the case that the first data acquisition request sent by the web end is received, and the data supply device does not authenticate the second authentication information and only returns the first authentication information and authentication failure information in the case that the first data acquisition request is sent to the data supply device.

[0135] For example, the data supply device is an image acquisition device, the first data acquisition request is a first image acquisition request, the second data acquisition request is a second image acquisition request, and the error status code is a 401 status code. As shown in FIG. 7, the web end sends the first image acquisition request to the server, the first image acquisition request does not carry the first authentication information but carries the second authentication information. The server obtains the second authentication information in the case that the first image acquisition request sent by the web end is received, and sends the first image acquisition request to the image acquisition device. In the case that the image acquisition device receives the first image acquisition request, since the first image acquisition request does not carry the first authentication information, the image acquisition device can return the 401 status code and the first authentication information to the server and does not authenticate the second authentication information.

[0136] The server can not process the 401 status code after receiving the 401 status code and the first authentication information. The server receives the 401 status code and the first authentication information, generates a second image acquisition request based on the first authentication information and the second authentication information, and sends the second image acquisition request including the first authentication information and the second authentication information to the image acquisition device. The image acquisition device receives the second image acquisition request including the first authentication information and the second authentication information, and authenticates the first authentication information and the second authentication information, and returns the image indicated by the second image acquisition request to the server, so that the server sends the image to the web end in the case that the image is received, so that the web end receives and displays the image.

[0137] As an implementation, the server can encrypt the first authentication information and the second authentication information to obtain a second data acquisition request including valid authentication information required by the data supply device, send the second data acquisition request including the valid authentication information to the data supply device, and enable the data supply device to return data indicated by the second data acquisition request to the server if the valid authentication information is authenticated.

[0138] For example, the first authentication information is a key field 1, the second authentication information is an account 123 and a password 123, the server can encrypt the key field 1, the account 123 and the password 123 to obtain a second data acquisition request including the key field 1, the account 123 and the password 123 required by the data supply device, and then send the second data request to the data supply device, so that the data supply device returns data indicated by the second data acquisition request to the server if the key field 1, the account 123 and the password 123 are all authenticated.

[0139] It can be seen that in the embodiment, the server does not need to send the first authentication information to the web end to enable the web end to send a second data acquisition request carrying the first authentication information to the data supply device, but sends a second data acquisition request including the first authentication information to the data supply device, or sends a second data acquisition request including the first authentication information and the second authentication information to the data supply device, so that the data supply device returns data indicated by the second data acquisition request to the server if the required first authentication information and second authentication information are authenticated. Thus, the server can obtain data from the data supply device, which can reduce the pressure on the browser.

[0140] Moreover, the data supply device needs to authenticate not only the first authentication information but also the second authentication information, which can ensure the security, privacy and reliability of obtaining data from the data supply device.

[0141] As an implementation of the embodiment of the application, as shown in FIG. 8, the step of sending the first data acquisition request to the data supply device upon receiving the first data acquisition request sent by the web end can include:

[0142] S801, receiving a data acquisition request sent by the web end and starting timing;

[0143] S802, in a case where the timing duration reaches a first preset duration, sending the data acquisition request to the data supply device based on the data acquisition request received within the timing duration.

[0144] If the web side frequently sends data acquisition requests to the server within a certain time length, the server needs to frequently send the acquired data acquisition requests to the data supply device, which is a heavy workload for the server. Therefore, in order to reduce the workload of the server, the server can wait for a certain time length after receiving a data acquisition request, and then send the data acquisition request to the data supply device based on the data acquisition requests received within the certain time length.

[0145] In an embodiment, the server can start timing when receiving the data acquisition request sent by the web side. When the timing duration reaches the first preset time length, the server sends the data acquisition request to the data supply device based on the data acquisition requests received within the timing duration. The first preset time length can be set according to actual conditions, for example, the first preset time length is 0.5s, 1s, etc., which is not limited herein. The data acquisition requests received by the server within the timing duration can be one or multiple.

[0146] If the data acquisition requests received by the server within the timing duration are multiple, the multiple data acquisition requests can be for different data supply devices or for the same data supply device. If the data acquisition requests received by the server within the timing duration are for different data supply devices, the server can send the data acquisition requests received within the timing duration to different data supply devices respectively. If the data acquisition requests received by the server within the timing duration are for the same data supply device, the server can send the multiple data acquisition requests received within the timing duration to the data supply device together.

[0147] For example, the first preset time length is 1s, the server starts timing when receiving the first data acquisition request, the first data acquisition request is for data supply device A, the second data acquisition request is received at 0.1s, the second data acquisition request is for data supply device B, and the third data acquisition request is received at 0.5s, the third data acquisition request is for data supply device C. When the timing duration reaches 1s, the server can send the first data acquisition request to data supply device A, the second data acquisition request to data supply device B, and the third data acquisition request to data supply device C.

[0148] It can be seen that in the embodiment, the server can receive the data acquisition request sent by the web end and start timing, and in a case where the timing duration reaches the first preset duration, the server sends the data acquisition request to the data supply device based on the data acquisition request received in the timing duration. In this way, the server does not need to send the data acquisition request to the data supply device in a case where the server receives one data acquisition request sent by the web end, which can reduce the workload of the server and in turn reduce the pressure on the server.

[0149] As an implementation manner of the embodiment of the present application, the data acquisition request received in the timing duration is a plurality of requests for the same data supply device.

[0150] The step of sending the data acquisition request to the data supply device based on the data acquisition request received in the timing duration can include:

[0151] The server selects one data acquisition request from the plurality of data acquisition requests as a first data acquisition request and sends the first data acquisition request to the data supply device, or combines the plurality of data acquisition requests into one data acquisition request as a first data acquisition request and sends the first data acquisition request to the data supply device.

[0152] Since the data acquisition requests received by the server in the timing duration are a plurality of requests for the same data supply device, even if the plurality of received data acquisition requests are all sent to the data supply device, the first authentication information returned by the data supply device is the same. Therefore, in order to quickly and accurately obtain the first authentication information returned by the same data supply device, only one data acquisition request can be sent to the data supply device.

[0153] In a case where the plurality of data acquisition requests received by the server are all for the same data supply device, in an implementation manner, the server can select one data acquisition request from the plurality of data acquisition requests as a first data acquisition request and send the first data acquisition request to the data supply device. In a case where the data supply device receives the first data acquisition request, the data supply device can return the first authentication information, so that the server can send a plurality of second data acquisition requests to the data supply device based on the first authentication information, and receive the data returned by the data supply device for each second data acquisition request.

[0154] In another embodiment, the server can combine the plurality of data acquisition requests into one data acquisition request as the first data acquisition request, and send the first data acquisition request to the data supply device. The first authentication information can be returned by the data supply device in the case of receiving the first data acquisition request, so that the server can send a second data acquisition request based on the first authentication information, and receive the data indicated by the second data acquisition request returned by the data supply device. Wherein, the combined data acquisition request can carry the address, identifier, etc. of each data to be acquired, which is not limited here.

[0155] Different scenarios of user data acquisition can adopt different ways. Exemplarily, if it is a scenario that different users initiate a plurality of data acquisition requests to the same data supply device through the web end, the server can select one data from the plurality of data acquisition requests as the first data acquisition request and send it to the data supply device.

[0156] If it is a scenario that the same user initiates a plurality of data acquisition requests to the same data supply device through the web end, the server can select one data acquisition request from the plurality of data acquisition requests as the first data acquisition request and send it to the data supply device, or combine the plurality of data acquisition requests into one data acquisition request as the first data acquisition request and send it to the data supply device.

[0157] For example, in the scenario of user acquiring images, the data supply device is an image acquisition device, and the data acquisition request is an image acquisition request for requesting images. If user A, user B and user C send image acquisition request 1, image acquisition request 2 and image acquisition request 3 based on the web end respectively, the server can send the image acquisition request 1 as the first image acquisition request to the image acquisition device after receiving the three image acquisition requests sent by the web end, and send the image acquisition request 11, image acquisition request 21 and image acquisition request 31 carrying the first authentication information to the image acquisition device after receiving the first authentication information returned by the image acquisition device, so as to acquire the images requested by user A, user B and user C.

[0158] If user A sends image acquisition request 1, image acquisition request 2 and image acquisition request 3 based on the web end, the server can combine the image acquisition request 1 to image acquisition request 3 as the first image acquisition request and send it to the image acquisition device after receiving the three image acquisition requests, and then send the combined image acquisition request carrying the first authentication information to the image acquisition device after receiving the first authentication information returned by the image acquisition device, so as to acquire the images requested by user A.

[0159] It can be seen that in the embodiment, when the server receives multiple requests for the same data supply device within the timing duration, the server can select one data acquisition request from the multiple data acquisition requests as the first data acquisition request and send it to the data supply device, or combine the multiple data acquisition requests into one data acquisition request as the first data acquisition request and send it to the data supply device. In this way, the server only needs to send one request to the data supply device, and after receiving the first authentication information, the server can send the data acquisition request carrying the first authentication information in batches, thereby reducing the workload of the server and alleviating the pressure on the server.

[0160] As an embodiment of the present application, the first authentication information has a valid duration. The valid duration can be set according to actual needs, for example, it can be 3 minutes, 5 minutes, etc., which is not limited here.

[0161] As shown in FIG. 9, the method can further include:

[0162] S901, receiving an invalid prompt message sent by the data supply device;

[0163] The invalid prompt message is sent by the data supply device when it is determined that the duration from the time of sending the first authentication information to the time of receiving the second data acquisition request exceeds the valid duration.

[0164] S902, sending the invalid prompt message to the web end to inform the web end that the data acquisition fails.

[0165] The first authentication information returned by the data supply device has a valid duration, so in the case that the first authentication information is within the valid duration, as long as the second data acquisition request sent by the server to the data supply device carries the first authentication information, the data supply device can be authenticated. If the first authentication information has expired, in the case that the server sends the second data acquisition request carrying the first authentication information to the data supply device, an invalid prompt message sent by the data supply device can be received. Then the server can send the invalid prompt message to the web end to inform the web end that the data acquisition fails.

[0166] The invalid prompt message is sent by the data supply device when it is determined that the duration from the time of sending the first authentication information to the time of receiving the second data acquisition request exceeds the valid duration. The invalid prompt message can be set according to actual needs, such as "valid duration has expired", "timeout", etc., which is not limited here.

[0167] For example, the valid time length of the first authentication information is 3 minutes, the data supply device determines that the first authentication information is sent at 5:00, and if the data supply device receives the second data acquisition request at 5:05, the time length from the sending time of the first authentication information to the receiving time of the second data acquisition request exceeds 5 minutes, the data supply device can send the invalid prompt message "timeout" to the server, and in the case that the server receives the "timeout" sent by the data supply device, the "timeout" is sent to the web end to inform the web end that the data acquisition fails. Therefore, the web end needs to resend the data acquisition request for acquiring the first authentication information to the server.

[0168] It can be seen that in the embodiment, the first authentication information has a valid time length, the server can receive the invalid prompt message sent by the data supply device, and send the invalid prompt message to the web end to inform the web end that the data acquisition fails. In this way, it can be ensured that the web end can only acquire data when the first authentication information is within the valid time length, and the security and reliability of acquiring data from the data supply device are ensured. At the same time, the invalid prompt message is sent to the web end, so that the user can know the reason for the data acquisition failure, and the user experience is improved.

[0169] The embodiment of the application also provides a second data acquisition method. Another data acquisition method provided by the embodiment of the application is shown in FIG. 1, and is applied to the web end 102 in a data acquisition system, the system also includes a server 101 and a data supply device 103, and the web end 102 is applied to a browser.

[0170] As shown in FIG. 10, a data acquisition method includes the following steps.

[0171] S1001, a first data acquisition request is sent to the server, so that the server sends the first data acquisition request to the data supply device, and the first authentication information required by the data supply device is received, which is sent by the data supply device; wherein the first data acquisition request does not carry the first authentication information;

[0172] S1002, the first authentication information sent by the server is received;

[0173] S1003, a second data acquisition request is sent to the data supply device, wherein the second data acquisition request includes the first authentication information;

[0174] S1004, data returned by the data supply device is received.

[0175] It can be seen that in the scheme provided in the embodiment of the application, in the case that the web end sends a first data acquisition request to the server, the server can send the first data acquisition request to the data supply device, receive the first authentication information returned by the data supply device and send the first authentication information to the web end. The web end can send a second data acquisition request carrying the first authentication information to the data supply device, and then receive the data in the case that the data supply device returns the data indicated by the second data acquisition request. In this way, the web end can obtain the first authentication information for acquiring the data required by the user, and the security of the data is improved.

[0176] The specific implementation of step S1001 is the same as the corresponding part in each of the above-mentioned embodiments of the method for data acquisition applied to the server, and the description of the specific implementation of each of the above-mentioned embodiments of the method for data acquisition applied to the server can be referred to.

[0177] In the case that the server receives the first authentication information, the first authentication information can be sent to the web end. Then, the web end can receive the first authentication information sent by the server, and send a second data acquisition request carrying the first authentication information to the data supply device, that is, steps S1002-S1003 are performed.

[0178] In the case that the data supply device receives the second data acquisition request carrying the first authentication information sent by the web end, the first authentication information can be authenticated, and the data indicated by the second data acquisition request is sent to the web end. In this way, the web end can receive the data returned by the data supply device and indicated by the second data acquisition request, that is, step S1004 is performed.

[0179] In an embodiment, in the user image taking scenario, the first data acquisition request and the second data acquisition request are requests for acquiring images.

[0180] In the scheme of the embodiment, in the case that the web end sends a first data acquisition request to the server, the server can send the first data acquisition request to the data supply device, receive the first authentication information returned by the data supply device, and send the first authentication information to the web end. The web end can send a second data acquisition request carrying the first authentication information to the data supply device, and then receive the data in the case that the data supply device returns the data indicated by the second data acquisition request. In this way, the web end can obtain the first authentication information for acquiring the data required by the user, improve the security of the data, and improve the user experience.

[0181] Before the step of sending the second data acquisition request to the data supply device, the above method further includes:

[0182] receive the processed authentication failure information sent by the server, wherein the authentication failure information is sent by the data supply device to the server after receiving the first data acquisition request, and the server processes the authentication failure information so that the processed authentication failure information does not trigger the pop-up window of the browser.

[0183] In the case where the data supply device receives the first data acquisition request without carrying the first authentication information required by the data supply device, the first authentication information and the authentication failure information can be sent to the server, and then the server can receive the first authentication information and the authentication failure information sent by the data supply device.

[0184] The authentication failure information can be used to inform the server that the correct first authentication information is not provided or the first authentication information is not carried, that is, to inform the server that the current first data acquisition request does not have the access right to the data supply device. Exemplarily, the authentication failure information can be an error status code.

[0185] The server sends the authentication failure information to the browser, and the browser receiving the authentication failure information triggers the pop-up window of the browser.

[0186] Therefore, the server can process the authentication failure information so that the processed authentication failure information does not trigger the pop-up window of the browser.

[0187] In an embodiment, the above-mentioned authentication failure information is an error status code, and the error status code triggers the pop-up window of the browser. The error status code can be used to inform the browser that the current first data acquisition request is not authorized to access the right. Exemplarily, the error status code can be a 401 status code. The server processes the error status code to obtain a processed authentication status code, so that the processed authentication failure information does not trigger the pop-up window of the browser.

[0188] After obtaining the processed authentication status code, the server can send the processed authentication status code and the first authentication information to the web end. In the case where the web end receives the processed authentication status code, the browser does not intercept the processed authentication status code, and thus does not perform the pop-up window. In the case where the web end receives the first authentication information, a second data acquisition request carrying the first authentication information can be sent to the data supply device. In the case where the data supply device receives the second data acquisition request, the data supply device can return the data indicated by the second data acquisition request, and then the web end can receive the data returned by the data supply device.

[0189] For example, the authentication failure information is an error status code, such as a 401 status code, the first authentication information is a key field 1, the server can process the 401 status code, add a number 40 in front of the 401 status code to obtain a processed authentication status code 40401, and the processed authentication status code 40401 does not trigger the pop-up window of the browser. In a case where the web end receives the processed authentication status code 40401 sent by the server, the browser does not pop up, and the web end can generate a second data acquisition request based on the key field 1, send the second data acquisition request carrying the key field 1 to the data supply device, and then receive the data indicated by the second data acquisition request returned by the data supply device.

[0190] It can be seen that in the embodiment, the server can process the authentication failure information to obtain processed authentication failure information, the processed authentication failure information does not trigger the pop-up window of the browser, so that the server sends the processed authentication failure information to the web end, and in a case where the web end receives the processed authentication failure information, the browser does not pop up. In this way, the web end can obtain data while solving the problem of the pop-up window of the browser, and user experience is improved.

[0191] As an embodiment of the present application, the above S1003, that is, the step of sending the second data acquisition request to the data supply device, can include:

[0192] The second data acquisition request including the first authentication information is sent to the data supply device, so that the data supply device returns data to the web end in a case where the first authentication information is authenticated; or the second data acquisition request including the first authentication information and the second authentication information is sent to the data supply device, so that the data supply device returns data to the web end in a case where the first authentication information and the second authentication information are both authenticated, wherein the second authentication information includes an account and a password.

[0193] The web end sending the second data acquisition request carrying the first authentication information to the data supply device can include two cases. In a first case, the data supply device has authenticated the second authentication information of the user before the server sends the second data acquisition request, and the second authentication information is authenticated, that is, the user has logged in the data supply device, so that the data supply device only needs to authenticate the first authentication information. In this way, the web end can send the second data acquisition request including the first authentication information to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the web end in a case where the first authentication information is authenticated, and the data is displayed in the web end.

[0194] In the second case, before the web end sends the second data acquisition request, the data supply device does not authenticate the second authentication information of the user, i.e., the user is not logged in the data supply device, then the web end can send the second data acquisition request including the first authentication information and the second authentication information to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the web end in the case that the first authentication information and the second authentication information are both authenticated, to display the data received by the web end. The second authentication information includes an account and a password.

[0195] In an embodiment, the web end does not carry the second authentication information in the first data acquisition request, so that the data supply device directly returns the first authentication information and the authentication failure information in the case that the server sends the first data acquisition request to the data supply device.

[0196] In another embodiment, the web end carries the second authentication information in the first data acquisition request, and the data supply device does not authenticate the second authentication information and only returns the first authentication information and the authentication failure information in the case that the server sends the first data acquisition request to the data supply device.

[0197] For example, as shown in FIG. 11, the web end sends the first data acquisition request to the server, which does not carry the first authentication information but carries the second authentication information. The server sends the first data acquisition request to the data supply device in the case that the server receives the first data acquisition request. In the case that the data supply device receives the first data acquisition request, since the first data acquisition request does not carry the first authentication information, the data supply device returns the 401 status code and the first authentication information to the server, and does not authenticate the second authentication information.

[0198] The server receives the 401 status code and the first authentication information, processes the 401 status code to obtain the authentication status code 40401, and sends the authentication status code 40401 and the first authentication information to the web end. The web end does not pop up a window in the case that the web end receives the authentication status code, and generates the second data acquisition request based on the first authentication information and the second authentication information in the case that the web end receives the first authentication information, and sends the second data acquisition request including the first authentication information and the second authentication information to the data supply device. The data supply device receives the second data acquisition request including the first authentication information and the second authentication information, and authenticates the first authentication information and the second authentication information, and returns the data indicated by the second data acquisition request to the web end, so that the web end receives and displays the data.

[0199] In an embodiment, the web end can encrypt the first authentication information and the second authentication information to obtain a request including valid authentication information required by the data supply device, and send the request including the valid authentication information to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the web end if the valid authentication information is authenticated.

[0200] For example, the first authentication information is key field 1, the second authentication information is account 123 and password 123, the web end can encrypt the key field 1, the account 123 and the password 123 to obtain a second data acquisition request including the key field 1, the account 123 and the password 123 required by the data supply device, and then send the second data request to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the web end if the key field 1, the account 123 and the password 123 are all authenticated.

[0201] It can be seen that in the embodiment, the web end can send a second data acquisition request including the first authentication information to the data supply device if the user logs in the image acquisition device, or send a second data acquisition request including the first authentication information and the second authentication information to the data supply device if the user does not log in the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the web end if the required authentication information is authenticated. In this way, the data supply device not only authenticates the first authentication information, but also authenticates the second authentication information, which can ensure the security, privacy and reliability of the image obtained from the data supply device.

[0202] As an embodiment of the present application, the first authentication information is the special authentication information required by the data supply device, which is a special field stored in the data supply device in advance, or the first authentication information is a special field updated by the data supply device according to a preset period.

[0203] In an embodiment, the first authentication information can be a special field stored in the data supply device in advance. For example, the special field stored in the data supply device in advance is key field 1, and the first authentication information required by the data supply device for authentication is key field 1.

[0204] In another embodiment, the first authentication information is periodically changed, and the first authentication information can be a special field updated by the data supply device according to a preset period. For example, the data supply device can update the special field according to a weekly update frequency, which is used as the first authentication information. The special field can be updated by the user according to the demand, or updated by the data supply device according to a certain rule, which is reasonable.

[0205] It can be seen that in the embodiment, the first authentication information can be a special field stored in the data supply device and pre-set, or the first authentication information can be a special field updated by the data supply device according to a preset period. The data supply device authenticates the first authentication information, which can ensure the security, reliability and accuracy of the user obtaining the image from the data supply device.

[0206] As an embodiment of the present application, the step of sending the first image acquisition request to the server can include:

[0207] In the case where a plurality of data acquisition instructions for the same data supply device are acquired, a data acquisition request is generated as a first data acquisition request, and the first data acquisition request is sent to the server.

[0208] In the case where the user needs to view the data of the data supply device, the user can send a plurality of data acquisition instructions to the web terminal for the same data supply device, so that the web terminal can acquire a plurality of data acquisition instructions for the same data supply device.

[0209] In an embodiment, in the case where a plurality of data acquisition instructions for the same data supply device are acquired, the web terminal can generate a data acquisition request as a first data acquisition request, and send the first data acquisition request to the server. In this way, only one data acquisition request is sent, which can reduce the workload of the web terminal and the server. The first data acquisition request can carry the address and identifier of each data to be acquired, which is not limited here.

[0210] For example, the data supply device is an image acquisition device. In the case where the user needs to view the image in the image acquisition device, the user A sends an image acquisition instruction 1, an image acquisition instruction 2 and an image acquisition instruction 3 to the web terminal. The web terminal can generate an image acquisition request as a first image acquisition request based on the image acquisition instruction 1, the image acquisition instruction 2 and the image acquisition instruction 3, and send the first image acquisition request to the server.

[0211] It can be seen that in the embodiment, in the case where a plurality of data acquisition instructions for the same data supply device are acquired, the web terminal can generate a data acquisition request as a first data acquisition request, and send the first data acquisition request to the server. In this way, only one data acquisition request is sent to the server, which can reduce the workload of the web terminal and the server, reduce the pressure of the web terminal and the server, and enable the user to acquire a plurality of data at a time, thereby improving the user experience.

[0212] As an implementation form of the embodiment of the present application, the first authentication information has a valid time length. The valid time length can be set according to actual requirements, for example, 3 minutes, 5 minutes, etc., which is not limited here.

[0213] The method can further include:

[0214] receiving an invalidation prompt message sent by the data supply device, wherein the invalidation prompt message is sent by the data supply device in a case where a time length from a time of sending the first authentication information to a time of receiving the second data acquisition request exceeds the valid time length.

[0215] The first authentication information returned by the data supply device has a valid time length, so in a case where the first authentication information is within the valid time length, as long as the second data acquisition request sent by the web terminal to the data supply device carries the first authentication information, the data supply device can be authenticated. If the first authentication information has expired, in a case where the web terminal sends the second data acquisition request carrying the first authentication information to the data supply device, an invalidation prompt message sent by the data supply device can be received.

[0216] The invalidation prompt message is sent by the data supply device in a case where a time length from a time of sending the first authentication information to a time of receiving the second data acquisition request exceeds the valid time length. The invalidation prompt message can be set according to actual requirements, for example, “valid time length has expired”, “timeout”, etc., which is not limited here.

[0217] For example, the valid time length of the first authentication information is 3 minutes, the data supply device determines that the time of sending the first authentication information is 5:00, and if the data supply device receives the second data acquisition request sent by the web terminal at 5:05, at this time, the time length from the time of sending the first authentication information to the time of receiving the second data acquisition request exceeds 3 minutes, the data supply device can send the “timeout” invalidation prompt message to the web terminal. Then, the web terminal needs to resend the data acquisition request for acquiring the first authentication information to the server.

[0218] It can be seen that in the embodiment, the first authentication information has a valid time length, the web terminal can receive the invalidation prompt message sent by the data supply device, so that it can be ensured that the web terminal can only acquire data in a case where the first authentication information is within the valid time length, and the security and reliability of acquiring data from the device are ensured. At the same time, the invalidation prompt message is sent to the web terminal, so that the user can know the reason for the failure of acquiring data, and the user experience is improved.

[0219] As an implementation form of the embodiment of the present application, the data authentication information has a valid time length. The valid time length can be set according to actual needs, for example, can be 3 min, 5 min, etc., which is not limited here.

[0220] The method can further include:

[0221] receiving the invalidation prompt message sent by the server, wherein the invalidation prompt message is sent by the server to the data supply device in a case that a time length from a time point of sending the first authentication information to a time point of receiving the second data acquisition request exceeds the valid time length.

[0222] The specific manner of receiving the invalidation prompt message sent by the server at the web end is similar to the specific manner of receiving the invalidation prompt message sent by the data supply device at the web end, which can be referred to the description of the corresponding part at the web end, and will not be repeated here.

[0223] It can be seen that in the embodiment, the first authentication information has a valid time length, the web end can receive the invalidation prompt message sent by the server, so that the web end can only acquire data in a case that the first authentication information is within the valid time length, thereby guaranteeing the security and reliability of acquiring data from the device. Meanwhile, sending the invalidation prompt message to the web end enables the user to know the reason of failing to acquire data, thereby improving the user experience.

[0224] As an implementation form of the embodiment of the present application, the first authentication information has a valid time length, the valid time length can be set according to actual needs, for example, can be 3 min, 5 min, etc., which is not limited here.

[0225] Before the step of sending the first data acquisition request to the server, the method can further include:

[0226] determining whether the first authentication information is stored locally; in a case that the first authentication information is not stored locally, performing the step of sending the first data acquisition request to the server; wherein the first authentication information is the authentication information required by the data supply device and acquired and stored before the last time of acquiring data from the data supply device.

[0227] The first authentication information returned by the data supply device has a time limit, i.e., has a valid time length, and the valid time length of the first authentication information obtained by the web end is consistent with the valid time length of the first authentication information returned by the data supply device. The first authentication information is valid within the valid time length, and then the web end can directly send a data acquisition request to the data supply device based on the first authentication information within the valid time length of the first authentication information, so that the data supply device can pass the authentication of the first authentication information and return the data indicated by the data acquisition request to the web end.

[0228] In order to send a data acquisition request based on the first authentication information at any time when the first authentication information is within the valid time length, the web end can store the first authentication information locally upon receiving the first authentication information.

[0229] In this way, before the step of sending the first data acquisition request to the server by the web end, it can be determined whether the first authentication information required by the data supply device is stored locally. If the first authentication information required by the data supply device is not stored locally, the web end sends the first data acquisition request to the server to obtain the first authentication information through the server. If the first authentication information required by the data supply device is stored locally, the web end can obtain the first authentication information from the local storage.

[0230] The first authentication information is the first authentication information required by the data supply device obtained and stored before the last data acquisition request to the data supply device. That is, the first authentication information stored locally is the first authentication information of the data supply device obtained and stored before the first data acquisition request is sent to the server.

[0231] For example, if the web end initiates 10 data acquisition requests, and the first data acquisition request sent is the 6th data acquisition request, the first authentication information is the first authentication information obtained by the 5 data acquisition requests sent before the first data acquisition request.

[0232] If the first authentication information is stored locally when the first data acquisition request is sent by the web end, the first authentication information obtained when the 5th data acquisition request is sent by the web end is the same as the first authentication information obtained when the 1st data acquisition request is sent, and if the first authentication information still exists in the local storage, the first authentication information can be obtained directly from the local storage. When the 6th data acquisition request is sent by the web end, if the first authentication information does not exist in the local storage, the data acquisition request can be sent to the server to obtain the first authentication information.

[0233] The above method can further include:

[0234] In a case where the first authentication information sent by the server is received, the first authentication information is stored, and timing is started; in a case where the timing duration reaches a second preset duration, the stored first authentication information is deleted, wherein the second preset duration is less than the valid duration.

[0235] In an embodiment, in a case where the first authentication information sent by the server is received at the web end, the web end can store the first authentication information to a preset storage location and start timing, and in a case where the timing duration reaches a second preset duration, the stored first authentication information is deleted. That is, the web end stores the first authentication information, and in a case where the storage duration of the first authentication information reaches the second preset duration, the web end can delete the first authentication information.

[0236] The second preset duration is less than the valid duration of the first authentication information, and the preset storage location can be a local cache or the like. Since a certain time is consumed in the process in which the data supply device returns the first authentication information to the server and the server sends the first authentication information to the web end, the current valid duration of the first authentication information received by the web end is less than the valid duration thereof, and thus the storage duration of the first authentication information can be less than the valid duration of the first authentication information, that is, the second preset duration is less than the valid duration of the first authentication information.

[0237] If the first authentication information is deleted, the web end can no longer directly send a data acquisition request carrying the first authentication information based on the first authentication information, and thus can send a data acquisition request not carrying the first authentication information to the server to acquire the first authentication information again and store it to the local cache. Further, before the web end sends the first data acquisition request, it is determined whether the first authentication information for the data supply device is stored in the local cache.

[0238] For example, the first authentication information returned by the data supply device has a valid duration of 3 min, in a case where the server receives the first authentication information and sends it to the web end, the web end can store the first authentication information in the local cache and start timing, and the second preset duration is 2.5 min. In a case where the timing duration is 2 min, the web end is ready to send a data acquisition request, at this time, the timing duration 2 min of the first authentication information does not reach the second preset duration 2.5 min, and thus the web end can acquire the first authentication information from the local cache, that is, send a data acquisition request carrying the first authentication information to the data supply device based on the first authentication information.

[0239] For example, the second preset time length is 2.5 minutes, and the web side needs to send 10 data acquisition requests. Before sending the first data acquisition request, it can be determined whether the first authentication information is stored locally. If the first authentication information does not exist, it means that the storage time of the last stored first authentication information reaches the second preset time length 2.5 minutes, and the first authentication information has been deleted. Then the web side can block the next 9 data acquisition requests after the first data acquisition request, and send a data acquisition request without carrying the first authentication information to the server to obtain the first authentication information.

[0240] In the case where the server sends the first authentication information returned by the data supply device to the web side, the web side can store the first authentication information locally and start timing. Since the current local has stored the first authentication information, the web side can send the first data acquisition request to the data supply device based on the first authentication information, and then send the second data acquisition request based on the first authentication information, until the tenth data acquisition request based on the first authentication information.

[0241] In the case where the storage time of the first authentication information reaches the second preset time length 2.5 minutes, the first authentication information is deleted. At this time, the web side is ready to send the next data acquisition request. Since the local no longer stores the first authentication information, the web side can block the data acquisition requests after the data acquisition request, and send a data acquisition request carrying the first authentication information to the server to obtain the first authentication information. In the case where the web side obtains the first authentication information, it is stored locally and timing is started, and a new round of data acquisition is started.

[0242] That is, the data acquisition process is a cyclic process. If the web side determines whether the local stores the first authentication information before sending the first data acquisition request, if the first authentication information exists, the first authentication information is obtained from the local, if the first authentication information does not exist, the next data acquisition request is blocked, and a data acquisition request without carrying the first authentication information is sent to the server to obtain the first authentication information. Then the first authentication information is stored locally, and the data acquisition request is sent based on the first authentication information, until the first authentication information is deleted when the timing time length reaches the second preset time length, and the first authentication information is obtained again.

[0243] It can be seen that in the case where the server sends the first authentication information to the web side, the web side can store the first authentication information locally and start timing. In the case where the first authentication information does not reach the second preset time length, the web side can obtain the first authentication information from the local, which can reduce the interaction between devices and improve the efficiency of data acquisition.

[0244] The third data acquisition method is provided in the embodiments of the present application. As shown in FIG. 1, the third data acquisition method is applied to a data supply device 103 in a data acquisition system, the system further includes a server 101 and a web terminal 102, and the web terminal 102 is applied to a browser. The data supply device 103 returns data in response to a data acquisition request carrying first authentication information required by the data supply device.

[0245] A data acquisition method, the method comprising:

[0246] receiving a first data acquisition request sent by the server, wherein the first data acquisition request is sent by the web terminal to the server, and the first data acquisition request does not carry the first authentication information required by the data supply device;

[0247] sending the first authentication information to the server;

[0248] receiving a second data acquisition request carrying the first authentication information sent by the server or the web terminal, and returning data, so that the web terminal acquires the data; wherein the second data acquisition request includes the first authentication information.

[0249] The specific implementation of each step of the data acquisition method applied to the data supply device is the same as the corresponding part in each embodiment of the data acquisition method applied to the server / web terminal, and the description of the specific implementation of each step of the data acquisition method applied to the server / web terminal in each embodiment of the data acquisition method applied to the server / web terminal can be referred to, and will not be described here.

[0250] It can be seen that, in the scheme provided in the embodiments of the present application, when the web terminal sends a first data acquisition request to the server, the server can send a first data acquisition request to the data supply device, and the data supply device returns first authentication information. The web terminal or the server can send a second data acquisition request carrying the first authentication information to the data supply device, and then the data supply device returns data indicated by the second data acquisition request. In this way, the web terminal can acquire the first authentication information to acquire the data required by the user, and the security of the data is improved.

[0251] As an embodiment of the present application, the above method further comprises:

[0252] in the case of receiving the second data acquisition request, authenticating the first authentication information, and returning data in the case of passing the authentication; or,

[0253] In a case where the second data acquisition request is received, the first authentication information and the second authentication information are authenticated, and in a case where the first authentication information and the second authentication information are both authenticated, data is returned, wherein the second data acquisition request further comprises the second authentication information; and the second authentication information comprises an account and a password.

[0254] It can be seen that, in the embodiment, in a case where the user logs in the image acquisition device, the web end or the server can send the second data acquisition request comprising the first authentication information to the data supply device, or in a case where the user does not log in the data supply device, the second data acquisition request comprising the first authentication information and the second authentication information is sent to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the web end in a case where the required authentication information is authenticated, so that the data supply device not only authenticates the first authentication information but also authenticates the second authentication information, and the security, privacy and reliability of the image obtained from the data supply device can be ensured.

[0255] As an implementation manner of the embodiment, the step of sending the first authentication information to the server can comprise:

[0256] The first authentication information and the authentication failure information are sent to the server, so that the server receives the authentication failure information, processes the authentication failure information, and makes the processed authentication failure information not trigger the pop-up window of the browser.

[0257] In a case where the data supply device receives the first data acquisition request not carrying the first authentication information required by the data supply device, the data supply device can send the first authentication information and the authentication failure information to the server, and then the server can receive the first authentication information and the authentication failure information sent by the data supply device.

[0258] The authentication failure information can be used to inform the server that the correct first authentication information is not provided or the first authentication information is not carried, that is, to inform the server that the current first data acquisition request does not have the access right of the data supply device. Exemplarily, the authentication failure information can be an error status code.

[0259] The server sends the authentication failure information to the browser, and the device web receiving the authentication failure information triggers the pop-up window of the browser.

[0260] Therefore, the server can process the authentication failure information, so that the processed authentication failure information does not trigger the pop-up window of the browser.

[0261] It can be seen that in the embodiment, the server can process the authentication failure information to obtain processed authentication failure information, and the processed authentication failure information does not trigger the interception pop-up window of the browser, so that the data can be obtained on the web side while the problem of the browser pop-up window is solved, and the user experience is improved.

[0262] As an embodiment of the present application, the step of returning data can include:

[0263] In the case where the second data acquisition request is sent by the server, data is returned to the server;

[0264] In the case where the second data acquisition request is sent by the web side, data is returned to the web side.

[0265] In the case where the second data acquisition request is sent by the server, the data supply device can return data to the server, and the server can distribute the data to the web side.

[0266] In the case where the second data acquisition request is sent by the web side, the data supply device can return data to the web side.

[0267] It can be seen that in the embodiment, the data supply device can return data to the server or the web side in response to the second data acquisition request, so that the data can be obtained on the web side, the data security is improved, and the user experience is improved.

[0268] The specific implementation of each step of the method for data acquisition applied to the data supply device is the same as the corresponding part in each embodiment of the method for data acquisition applied to the server / web side, and the description of the specific implementation of each step of the method for data acquisition applied to the server / web side can be referred to, and will not be repeated here.

[0269] When a user needs to view the image collected by the image collection device, the image can be obtained from the image collection device through the web (webpage) side. The image taking request sent by the web side to the image collection device needs to carry authentication information, and the image collection device will return the image to the web side only when the authentication information is authenticated. If the image taking request sent by the web side does not carry valid authentication information, an authentication failure message will be returned, triggering the interception pop-up window of the browser, and the user experience is poor.

[0270] For example, as shown in FIG. 3, the page accessed by the user through the browser includes a plurality of executable functions, i.e. function 1 to function 6, in the case of clicking function 1, the page can display a plurality of sub-functions under the function 1, including file type, search dimension, time and user. If the user obtains images through function 1, the page can display the image acquisition result, such as picture 1 to picture 6. If the user obtains images, based on the image acquisition request sent by the web end does not carry authentication information, the image acquisition device will not return the image requested by the image acquisition request, but return authentication failure information, and the browser will pop up a login box and display the information "http: / / 10.42.161.xxx Your connection to this website is not a private connection" when receiving the authentication failure information, requiring the user to input the username and password. The user can click login after inputting the corresponding information, or directly cancel without inputting any information, at this time the address bar displays "10.42.161.xxx / # / portal" as an unsafe address.

[0271] In order to solve the problem of browser pop-up window, the application embodiment provides a kind of processing method, system, server, terminal, computer readable storage medium and computer program product of authentication failure information, to make that server can process the authentication failure information received, so that the authentication failure information after processing will not trigger the interception pop-up window of browser. Wherein, data supply equipment can be image acquisition device, data storage device, data processing device etc., not limited here.

[0272] Firstly, the first authentication failure information processing method provided by the application embodiment will be introduced.

[0273] As shown in FIG. 12, a kind of authentication failure information processing method is applied to the server in data acquisition system, the system further includes web end and data supply equipment, the web end is applied to browser, and the method comprises:

[0274] S1201, in the case of receiving the first data acquisition request sent by the web end, the first data acquisition request is sent to the data supply equipment.

[0275] S1202, receive the authentication failure information sent by the data supply equipment.

[0276] Wherein, the authentication failure information is sent by the data supply equipment in the case of authentication failure of the first data acquisition request;If the browser receives the authentication failure information, the interception pop-up window of the browser is triggered.

[0277] S1203, process the authentication failure information, so that the authentication failure information after processing will not trigger the interception pop-up window of the browser.

[0278] It can be seen that in the scheme provided in the embodiments of the present application, in the case that the server sends a first data acquisition request to the data supply device, authentication failure information returned by the data supply device can be received, and the authentication failure information can be processed so that the processed authentication failure information does not trigger the pop-up window of the browser, thus solving the problem of the pop-up window of the browser and improving the user experience.

[0279] In step S1201, the server can send the first data acquisition request to the data supply device in the case that the first data acquisition request sent by the web end is received.

[0280] As described above, the data acquisition request needs to carry authentication information to pass the authentication of the data supply device, wherein the authentication information can be special information required by the data supply device, and the data supply device will respond to the data acquisition request and return data only in the case that the data acquisition request carries the authentication information. The authentication information can be set according to actual needs, and can be first authentication information required for obtaining data from the data supply device, or first authentication information required by the data supply device and second authentication information representing the identity of the user, etc., which is not limited here.

[0281] In an embodiment, the first data acquisition request can be a request of a first form set in advance, and the data supply device can determine that the first data acquisition request does not carry authentication information when receiving the first data acquisition request of the first form set in advance, and thus return authentication failure information. For example, the data supply device is an image acquisition device, the first data acquisition request is a first image acquisition request for acquiring an image, and the first image acquisition request only includes the address of the image to be acquired. When the image acquisition device receives the first image acquisition request, authentication failure information can be returned. For another example, the data supply device is an image acquisition device, the first data acquisition request is a first image acquisition request for acquiring an image, and the first image acquisition request only includes the identifier of the image to be acquired. When the image acquisition device receives the first image acquisition request, authentication failure information can be returned.

[0282] The server can receive the authentication failure information sent by the data supply device, that is, step S1202 is performed.

[0283] In the case that the data supply device receives the first data acquisition request, the first data acquisition request cannot pass the authentication of the data supply device because the first data acquisition request does not carry the first authentication information required by the data supply device. The data supply device returns authentication failure information in the case that the first data acquisition request fails to pass the authentication. If the browser receives the authentication failure information, the pop-up window of the browser is triggered.

[0284] The authentication failure information can be used to inform the server that the correct authentication information is not provided or the authentication information is not carried, that is, to inform the server that the current first data acquisition request does not have the access right of the data supply device. Exemplarily, the authentication failure information can be an error status code.

[0285] For example, the first authentication information of the data supply device is a key field 1, the server only sends the first data acquisition request carrying the identification of the data to be acquired to the data supply device, the data supply device does not identify the key field 1 required for authentication, and can send a 401 status code to the server. The server can receive the 401 status code sent by the data supply device.

[0286] In step S203, the server can process the authentication failure information, so that the processed authentication failure information does not trigger the interception pop-up window of the browser. That is, as long as the server processes the authentication failure information, the web end does not receive the authentication failure information, and the interception pop-up window of the browser is not triggered.

[0287] In an embodiment, when the server receives the authentication failure information, the authentication failure information can be processed to obtain processed authentication information, and then the processed authentication failure information is sent to the web end. The processed authentication failure information does not trigger the interception pop-up window of the browser. Exemplarily, the server adds a pre-set information at the beginning or end of the authentication failure information, so that the processed authentication failure information is no longer the original authentication failure information, and the processed authentication failure information does not trigger the interception pop-up window of the browser.

[0288] In an embodiment, the server can not send the authentication failure information to the web end, so that the web end does not receive the authentication failure information, and the interception pop-up window of the browser is not triggered.

[0289] In the scheme provided in the embodiments of the present application, when the server sends the first data acquisition request to the data supply device, the authentication failure information returned by the data supply device can be received, and the authentication failure information can be processed so that the processed authentication failure information does not trigger the interception pop-up window of the browser. In this way, the problem of the browser pop-up window is solved, and the user experience is improved.

[0290] As an embodiment of the embodiments of the present application, the above authentication failure information is an error status code, and the error status code can trigger the interception pop-up window of the browser. The error status code can be used to inform the browser that the current first data acquisition request is not authorized to access the right. Exemplarily, the error status code can be a 401 status code.

[0291] The processing of the authentication failure information can comprise:

[0292] The error status code is processed to obtain a processed authentication status code, so that the processed authentication failure information does not trigger the pop-up window of the browser, and the processed authentication status code is sent to the web end; or

[0293] The authentication failure information is not sent to the web end, so that the authentication failure information does not trigger the pop-up window of the browser.

[0294] Since the error status code can trigger the pop-up window of the browser, if the server sends the error status code to the web end, the browser will intercept the error status code and display a pop-up window. Therefore, in an embodiment, the server can process the error status code to obtain a processed authentication status code, so that the processed authentication status information does not trigger the pop-up window of the browser. That is, the processed authentication status code obtained by the server is no longer an error status code, and the processed authentication status code is a status code that does not trigger the pop-up window of the browser. The processed authentication status code can be set according to actual needs, for example, a preset number is added at a preset position of the error status code, a preset letter is added at a preset position of the error status code, and the like, which is not limited here.

[0295] For example, the error status code is 401 status code, and the server can process the 401 status code by adding the number 40 before the 401 status code to obtain the processed authentication status code 40401, which will not be intercepted by the browser, i.e., will not trigger the pop-up window of the browser. For another example, the server can add the letter A before the 401 status code to obtain the processed authentication status code A401, which will also not be intercepted by the browser.

[0296] After the server obtains the processed authentication status code, the authentication status code can be sent to the web end. In the case that the web end receives the authentication status code, the browser will not intercept the processed authentication status code, and will not perform a pop-up window.

[0297] For example, the web end sends a first data acquisition request to the server, and the first data acquisition request does not carry authentication information. In the case that the server receives the first data acquisition request, the server can send the first data acquisition request to the data supply device. In the case that the data supply device receives the first data acquisition request, since the first data acquisition request does not carry authentication information, the data supply device can return a 401 status code to the server.

[0298] The server receives the 401 status code, processes the 401 status code to obtain an authentication status code 40401, and sends the authentication status code 40401 to the web end. The web end receives the authentication status code, and since the browser does not intercept the authentication status code, the web end does not pop up a window.

[0299] Alternatively, in a case where the server receives authentication failure information, the server can not send the authentication failure information to the web end, so that the web end does not receive the authentication failure information and does not trigger the browser to intercept and pop up a window.

[0300] For example, the authentication failure information can be an error status code, such as a 401 status code. Since the error status code is sent to the web end, the browser intercepts the error status code and pops up a window. Therefore, the server can not send the error status code to the web end, so that the web end does not receive the error status code and does not trigger the browser to intercept and pop up a window.

[0301] For example, the web end sends a first data acquisition request to the server, and the first data acquisition request does not carry first authentication information. In a case where the server receives the first data acquisition request, the server can send the first data acquisition request to the data supply device. In a case where the data supply device receives the first data acquisition request, since the first data acquisition request does not carry the first authentication information, the data supply device can return a 401 status code to the server.

[0302] After receiving the 401 status code, the server can not process the 401 status code, that is, the server does not send the 401 status code to the web end or process the 401 status code. In this way, the web end does not receive the error status code, and the browser does not trigger the interception and pop up a window.

[0303] As can be seen, in the embodiment, the server can process the error status code to obtain a processed authentication status code, so that the processed authentication status code does not trigger the browser to intercept and pop up a window, and the server sends the processed authentication status code to the web end. Alternatively, the server can not send authentication failure information to the web end, so that the browser does not trigger the interception and pop up a window. In this way, the server processes the authentication failure information, the browser of the web end does not pop up a window, the problem of the browser popping up a window is solved, and the user experience is improved.

[0304] As an embodiment of the present application, the step of sending the first data acquisition request to the data supply device in a case where the first data acquisition request sent by the web end is received can include:

[0305] Receiving the data acquisition request sent by the web end and starting timing;

[0306] In a case where the timing duration reaches a first preset duration, the data acquisition request is sent to the data supply device based on the data acquisition requests received in the timing duration.

[0307] If the web side frequently sends data acquisition requests to the server within a certain duration, the server needs to frequently send the acquired data acquisition requests to the data supply device, which is a heavy workload for the server. Therefore, in order to reduce the workload of the server, the server can wait for a certain duration after receiving a data acquisition request, and then send the data acquisition request to the data supply device based on the data acquisition requests received in the certain duration.

[0308] In an embodiment, the server can start timing after receiving the data acquisition request sent by the web side. In a case where the timing duration reaches a first preset duration, the data acquisition request is sent to the data supply device based on the data acquisition requests received in the timing duration. The first preset duration can be set according to actual conditions, for example, the first preset duration is 0.5s, 1s, etc., which is not limited herein. The data acquisition requests received by the server in the timing duration can be one or multiple.

[0309] If the data acquisition requests received by the server in the timing duration are multiple, the multiple data acquisition requests can be for different data supply devices or for the same data supply device. If the data acquisition requests received by the server in the timing duration are for different data supply devices, the server can send the data acquisition requests received in the timing duration to different data supply devices respectively. If the data acquisition requests received by the server in the timing duration are for the same data supply device, the server can send the multiple data acquisition requests received in the timing duration to the data supply device together.

[0310] For example, the first preset duration is 1s, the server starts timing after receiving the first data acquisition request, the first data acquisition request is for data supply device A, the second data acquisition request is received at 0.1s, the second data acquisition request is for data supply device B, and the third data acquisition request is received at 0.5s, the third data acquisition request is for data supply device C. Then, in a case where the timing duration reaches 1s, the server can send the first data acquisition request to data supply device A, the second data acquisition request to data supply device B, and the third data acquisition request to data supply device C.

[0311] It can be seen that in the embodiment, the server can receive the data acquisition request sent by the web end and start timing, and in the case that the timing duration reaches the first preset duration, the server sends the data acquisition request to the data supply device based on the data acquisition request received in the timing duration. In this way, the server does not need to send the data acquisition request to the data supply device in the case that it receives a data acquisition request sent by the web end, which can reduce the workload of the server and in turn reduce the pressure on the server.

[0312] As an embodiment of the present application, the data acquisition request received in the timing duration is a plurality of requests for the same data supply device.

[0313] The step of sending the data acquisition request to the data supply device based on the data acquisition request received in the timing duration can include:

[0314] selecting one data acquisition request from the plurality of data acquisition requests as a first data acquisition request and sending the first data acquisition request to the data supply device; or

[0315] Since the data acquisition requests received by the server in the timing duration are a plurality of requests for the same data supply device, even if the plurality of received data acquisition requests are all sent to the data supply device, the first authentication information returned by the data supply device is the same. Therefore, in order to quickly and accurately obtain the first authentication information returned by the same data supply device, only one data acquisition request can be sent to the data supply device.

[0316] In the case that the plurality of data acquisition requests received by the server are all for the same data supply device, in an embodiment, the server can select one data acquisition request from the plurality of data acquisition requests as a first data acquisition request and send the first data acquisition request to the data supply device.

[0317] In another embodiment, the server can combine the plurality of data acquisition requests into one data acquisition request as a first data acquisition request and send the first data acquisition request to the data supply device. The combined data acquisition request can carry the address, identifier, etc. of each data to be acquired, which is not limited here.

[0318] Different scenarios of users obtaining data can use different ways. For example, if different users initiate a plurality of data acquisition requests to the same data supply device through the web end, the server can select one data from the plurality of data acquisition requests as a first data acquisition request and send it to the data supply device.

[0319] If the same user initiates multiple data acquisition requests to the same data supply device through the web, the server can select one data acquisition request from the multiple data acquisition requests as the first data acquisition request and send it to the data supply device, or combine the multiple data acquisition requests into one data acquisition request as the first data acquisition request and send it to the data supply device.

[0320] For example, in the scenario where the user acquires an image, the data supply device is an image acquisition device, and the data acquisition request is an image acquisition request for requesting an image. If user A, user B, and user C send image acquisition request 1, image acquisition request 2, and image acquisition request 3 based on the web, respectively, the server can send image acquisition request 1 as the first image acquisition request to the image acquisition device after receiving the three image acquisition requests sent by the web.

[0321] As can be seen, in this embodiment, when the server receives multiple requests for the same data supply device within a time period, it can select one data acquisition request from the multiple data acquisition requests as the first data acquisition request and send it to the data supply device, or combine the multiple data acquisition requests into one data acquisition request as the first data acquisition request and send it to the data supply device. In this way, the server only needs to send one request to the data supply device, and after receiving the first authentication information, it can send the data acquisition request carrying the first authentication information in batches, which can reduce the workload of the server and thereby reduce the pressure on the server.

[0322] As an implementation manner of the embodiment of the present application, the first data acquisition request does not carry the first authentication information required by the data supply device.

[0323] The step S1202 of receiving the authentication failure information sent by the data supply device can include:

[0324] receiving the authentication failure information and the first authentication information sent by the data supply device;

[0325] The method can further include:

[0326] sending the first authentication information to the web to enable the web to send a second data acquisition request to the data supply device, so that the web acquires the data returned by the data supply device; or, sending a second data acquisition request to the data supply device to acquire the data returned by the data supply device and sending the data to the web; wherein the second data acquisition request includes the first authentication information.

[0327] The first authentication information is authentication information required by the data supply device, i.e., authentication information specific to the data supply device. In the case where the data request carries the first authentication information, the data supply device can respond to the first data acquisition request and return the data indicated by the first data acquisition request.

[0328] In an embodiment, the first authentication information can be a pre-set authentication information stored in a field specific to the data supply device. For example, the data supply device is an image acquisition device, and the pre-set authentication information stored in a field specific to the image acquisition device is key field 1. Then, the first authentication information required by the image acquisition device is key field 1.

[0329] In another embodiment, the first authentication information is periodically changed. The first authentication information can be a field specific to the data supply device that is updated by the data supply device according to a pre-set period. For example, the data supply device is an image acquisition device, and the image acquisition device can update a field specific to the image acquisition device as the first authentication information according to an update frequency of once a week. The field specific to the image acquisition device can be updated by a user according to a requirement, or can be updated by the image acquisition device according to a pre-set rule, which is reasonable.

[0330] In the case where the data supply device receives the first data acquisition request, if the first data acquisition request does not carry the first authentication information, the data supply device can return the first authentication information and authentication failure information.

[0331] In an embodiment, the first data acquisition request can be a request of a pre-set first form. When the data supply device receives the first data acquisition request of the pre-set first form, the data supply device can determine that the first data acquisition request does not carry the first authentication information required by the data supply device, and return the first authentication information and the authentication failure information.

[0332] For example, in a picture taking scenario, the data supply device is an image acquisition device, and the first data acquisition request is a first image acquisition request for acquiring an image. The first image acquisition request only includes an address of the image to be acquired. When the image acquisition device receives the first image acquisition request, the image acquisition device can return the first authentication information. For another example, the data supply device is an image acquisition device, and the first data acquisition request is a first image acquisition request for acquiring an image. The first image acquisition request only includes an identifier of the image to be acquired. When the image acquisition device receives the first image acquisition request, the image acquisition device can return the first authentication information and the authentication failure information.

[0333] In the case that the data supply device receives the first data acquisition request without carrying the first authentication information required by the data supply device, the data supply device can send the authentication failure information and the first authentication information to the server, and the server can receive the first authentication information and the authentication failure information sent by the data supply device.

[0334] The server can send the first authentication information to the web terminal, and the web terminal can receive the first authentication information, send a second data acquisition request including the first authentication information to the data supply device, and acquire the data returned by the data supply device.

[0335] In order to reduce the interaction between the web terminal and the data supply device, the server can generate a second data acquisition request based on the first authentication information, and then send the second data acquisition request carrying the first authentication information to the data supply device, so that the data supply device can pass the authentication of the first authentication information and return the data indicated by the second data acquisition request in the case that the data supply device receives the second data acquisition request carrying the first authentication information.

[0336] For example, in the image taking scenario, the data supply device is an image acquisition device, and the second image acquisition request includes the address of the image to be acquired and the first authentication information required by the image acquisition device, and the image acquisition device can return the image indicated by the second image acquisition request when the image acquisition device receives the second image acquisition request. For another example, the second image acquisition request includes the identifier of the image to be acquired and the first authentication information required by the image acquisition device, and the image acquisition device can return the image indicated by the second image acquisition request when the image acquisition device receives the second image acquisition request.

[0337] In the case that the server receives the data returned by the data supply device, the server can send the data to the web terminal, so that the web terminal can receive and display the data at the same time. In this way, the web terminal can acquire the data required by the user, and the user experience is improved, and sending the second data acquisition request to the data supply device by the server can reduce the pressure on the browser.

[0338] It can be seen that in the scheme of the embodiment, the data supply device can send the first authentication information and the authentication failure information to the server, the server can send a second data acquisition request including the first authentication information to the data supply device to acquire the data returned by the data supply device, or the server can send the first authentication information to the web end, the web end can send a second data acquisition request including the first authentication information to the data supply device, and acquire the data returned by the data supply device. In this way, the server processes the authentication failure information, and the processed authentication failure information does not trigger the interception pop-up window of the browser of the web end, the problem of the browser pop-up window is solved, and the data requested by the web can be further acquired, the data security is improved, and the user experience is improved.

[0339] As an embodiment of the present application, the step of sending the second data acquisition request to the data supply device can include:

[0340] sending a second data acquisition request including the first authentication information to the data supply device, so that the data supply device returns data to the server in the case that the first authentication information is authenticated; or,

[0341] sending a second data acquisition request including the first authentication information and the second authentication information to the data supply device, and returning data to the server in the case that the first authentication information and the second authentication information are both authenticated by the data supply device, wherein the second authentication information includes an account and a password.

[0342] The server sending the second data acquisition request carrying the first authentication information to the data supply device can include two cases. In the first case, the data supply device has authenticated the second authentication information before the server sends the second data acquisition request, and the authentication of the second authentication information is passed, that is, the user has logged in the data supply device using the second authentication information, so the data supply device only needs to authenticate the first authentication information. In this way, the server can send a second data acquisition request including the first authentication information to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the server in the case that the first authentication information is authenticated.

[0343] In the second case, before the server sends the second data acquisition request, the data supply device does not authenticate the second authentication information, i.e., the user does not log in to the data supply device using the second authentication information, then the server can send the second data acquisition request including the first authentication information and the second authentication information to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the server in the case that the first authentication information and the second authentication information are both authenticated. The second authentication information includes an account and a password.

[0344] In an embodiment, the server can obtain the second authentication information in the case that the first data acquisition request sent by the web end is received, and the data supply device does not authenticate the second authentication information and only returns the first authentication information and authentication failure information in the case that the first data acquisition request is sent to the data supply device.

[0345] For example, the data supply device is an image acquisition device, the first data acquisition request is a first image acquisition request, the second data acquisition request is a second image acquisition request, and the error status code is a 401 status code. As shown in FIG. 7, the web end sends the first image acquisition request to the server, the first image acquisition request does not carry the first authentication information but carries the second authentication information. The server obtains the second authentication information in the case that the first image acquisition request sent by the web end is received, and sends the first image acquisition request to the image acquisition device. In the case that the image acquisition device receives the first image acquisition request, since the first image acquisition request does not carry the first authentication information, the image acquisition device can return the 401 status code and the first authentication information to the server and does not authenticate the second authentication information.

[0346] The server can not process the 401 status code after receiving the 401 status code and the first authentication information. The server receives the 401 status code and the first authentication information, generates a second image acquisition request based on the first authentication information and the second authentication information, and sends the second image acquisition request including the first authentication information and the second authentication information to the image acquisition device. The image acquisition device receives the second image acquisition request including the first authentication information and the second authentication information, and authenticates the first authentication information and the second authentication information, and returns the image indicated by the second image acquisition request to the server, so that the server sends the image to the web end in the case that the image is received, so that the web end receives and displays the image.

[0347] As an implementation, the server can encrypt the first authentication information and the second authentication information to obtain a second data acquisition request including valid authentication information required by the data supply device, and send the second data acquisition request including the valid authentication information to the data supply device, so that the data supply device returns data indicated by the second data acquisition request to the server if the valid authentication information is authenticated.

[0348] For example, the first authentication information is a key field 1, the second authentication information is an account 123 and a password 123, the server can encrypt the key field 1, the account 123 and the password 123 to obtain a second data acquisition request including the key field 1, the account 123 and the password 123 required by the data supply device, and then send the second data request to the data supply device, so that the data supply device returns data indicated by the second data acquisition request to the server if the key field 1, the account 123 and the password 123 are all authenticated.

[0349] It can be seen that, in the embodiment, the server does not need to send the first authentication information to the web end to make the web end send a second data acquisition request carrying the first authentication information to the data supply device, but sends a second data acquisition request including the first authentication information to the data supply device, or sends a second data acquisition request including the first authentication information and the second authentication information to the data supply device, so that the data supply device returns data indicated by the second data acquisition request to the server if the required first authentication information and the second authentication information are authenticated. Thus, the server can obtain data from the data supply device, which can reduce the pressure of the browser.

[0350] Moreover, the data supply device needs to authenticate not only the first authentication information but also the second authentication information, which can ensure the security, privacy and reliability of obtaining data from the data supply device.

[0351] As an implementation of the embodiment of the application, the first authentication information has a valid time length. The valid time length can be set according to actual needs, for example, 3 minutes, 5 minutes, etc., which is not limited here.

[0352] The method can further include:

[0353] receiving an invalid prompt message sent by the data supply device; and sending the invalid prompt message to the web end to inform the web end that data acquisition fails.

[0354] The invalidation prompt message is sent by the data supply device in a case where a time length from a time of sending the first authentication information to a time of receiving the second data acquisition request exceeds the valid time length.

[0355] The first authentication information returned by the data supply device has a valid time length. In a case where the first authentication information is within the valid time length, the server can pass the authentication of the data supply device as long as the second data acquisition request sent by the server carries the first authentication information. In a case where the server sends the second data acquisition request carrying the first authentication information to the data supply device, the invalidation prompt message sent by the data supply device can be received. Then, the server can send the invalidation prompt message to the web end to inform the web end that the data acquisition fails.

[0356] The invalidation prompt message is sent by the data supply device in a case where a time length from a time of sending the first authentication information to a time of receiving the second data acquisition request exceeds the valid time length. The invalidation prompt message can be set according to actual needs, such as an invalidation prompt message of "valid time length has expired" or "timeout", which is not limited herein.

[0357] For example, the valid time length of the first authentication information is 3 min, the data supply device determines that the time of sending the first authentication information is 5:00, and the time of receiving the second data acquisition request by the data supply device is 5:05. At this time, the time length from the time of sending the first authentication information to the time of receiving the second data acquisition request exceeds 5 min. Then, the data supply device can send the invalidation prompt message of "timeout" to the server. In a case where the server receives the invalidation prompt message of "timeout" sent by the data supply device, the server sends "timeout" to the web end to inform the web end that the data acquisition fails. Then, the web end needs to resend the data acquisition request for acquiring the first authentication information to the server.

[0358] It can be seen that, in the embodiment, the first authentication information has a valid time length, the server can receive the invalidation prompt message sent by the data supply device, and send the invalidation prompt message to the web end to inform the web end that the data acquisition fails. In this way, it can be ensured that the web end can acquire the data only in a case where the first authentication information is within the valid time length, and the security and reliability of acquiring the data from the data supply device are ensured. Meanwhile, the invalidation prompt message is sent to the web end, so that the user can know the reason for the data acquisition failure, and the user experience is improved.

[0359] The embodiment of the present application further provides a second authentication failure information processing method. The second authentication failure information processing method is applied to a web end 102 in a data acquisition system, as shown in FIG. 1. The system further includes a server 101 and a data supply device 103. The web end 102 is applied to a browser.

[0360] The authentication failure information processing method provided by the embodiment of the present application includes the following steps.

[0361] The first data acquisition request is sent to the server, so that the server sends the first data acquisition request to the data supply device. The authentication failure information sent by the data supply device is received. The authentication failure information is processed, so that the processed authentication failure information does not trigger the pop-up window of the browser. The processed authentication failure information is sent to the web end.

[0362] In response to a data acquisition operation performed by a user on the web end, the web end can send a first data acquisition request to the server. The server can send the first data acquisition request to the data supply device when receiving the first data acquisition request sent by the web end.

[0363] As described above, the data acquisition request needs to carry authentication information to pass the authentication of the data supply device. The authentication information can be special information required by the data supply device. The data supply device responds to the data acquisition request and returns data only when the data acquisition request carries the authentication information. The authentication information can be set according to actual needs. The authentication information can be first authentication information required for obtaining data from the data supply device, or first authentication information required by the data supply device and second authentication information representing the identity of the user, which is not limited herein.

[0364] In an embodiment, the first data acquisition request can be a request in a first form set in advance. When the data supply device receives the first data acquisition request in the first form set in advance, it can be determined that the first data acquisition request does not carry authentication information, and thus returns authentication failure information. For example, the data supply device is an image acquisition device, and the first data acquisition request is a first image acquisition request for obtaining an image. The first image acquisition request only includes the address of the image to be obtained. When the image acquisition device receives the first image acquisition request, it can return authentication failure information. For another example, the data supply device is an image acquisition device, and the first data acquisition request is a first image acquisition request for obtaining an image. The first image acquisition request only includes the identifier of the image to be obtained. When the image acquisition device receives the first image acquisition request, it can return authentication failure information.

[0365] In a case where the data supply device receives the first data acquisition request, since the first data acquisition request does not carry the first authentication information required by the data supply device, the first data acquisition request cannot pass the verification of the data supply device. The data supply device fails to authenticate the first data acquisition request, and returns authentication failure information. Wherein, if the browser receives the authentication failure information, the pop-up window of the browser is triggered.

[0366] The authentication failure information can be used to inform the server that the correct authentication information is not provided or the authentication information is not carried, that is, to inform the server that the current first data acquisition request does not have the permission to access the data supply device. Illustratively, the authentication failure information can be an error status code.

[0367] The server can process the authentication failure information, so that the processed authentication failure information will not trigger the pop-up window of the browser. That is, as long as the server processes the authentication failure information, the web end does not receive the authentication failure information, and the pop-up window of the browser will not be triggered. Further, the processed authentication information is sent to the web end, and the pop-up window of the browser will not be triggered.

[0368] Illustratively, the server adds a pre-set information at the beginning or end of the authentication failure information, so that the authentication failure information is no longer the original authentication failure information, and the pop-up window of the browser will not be triggered.

[0369] It can be seen that in the scheme provided in the embodiments of the present application, since in a case where the server sends the first data acquisition request to the data supply device, the authentication failure information returned by the data supply device can be received, and the authentication failure information can be processed so that the authentication failure information will not trigger the pop-up window of the browser, the problem of the pop-up window of the browser is solved, and the user experience is improved.

[0370] As an embodiment of the present application, the step of sending the first data acquisition request to the server can include:

[0371] In a case where a plurality of data acquisition instructions for the same data supply device are acquired, a data acquisition request is generated as a first data acquisition request; and the first data acquisition request is sent to the server.

[0372] In a case where a user needs to view the data of a data supply device, the user can send a plurality of data acquisition instructions to the web end for the same data supply device, so that the web end can acquire a plurality of data acquisition instructions for the same data supply device.

[0373] In an embodiment, when the web end obtains a plurality of data acquisition instructions for the same data supply device, the web end can generate a data acquisition request as a first data acquisition request and send the first data acquisition request to the server. In this way, only one data acquisition request is sent, which can reduce the workload of the web end and the server. The first data acquisition request can carry the address and identifier of each data to be acquired, which is not limited herein.

[0374] For example, the data supply device is an image acquisition device. When a user needs to view the images in the image acquisition device, the user A sends image acquisition instruction 1, image acquisition instruction 2, and image acquisition instruction 3 to the web end. The web end can generate an image acquisition request as a first image acquisition request based on the image acquisition instruction 1, the image acquisition instruction 2, and the image acquisition instruction 3, and send the first image acquisition request to the server.

[0375] As can be seen, in the embodiment, when the web end obtains a plurality of data acquisition instructions for the same data supply device, the web end can generate a data acquisition request as a first data acquisition request and send the first data acquisition request to the server. In this way, only one data acquisition request is sent to the server, which can reduce the workload of the web end and the server, reduce the pressure on the web end and the server, enable the user to acquire multiple data at a time, and improve the user experience.

[0376] As an embodiment of the present application, the first data acquisition request does not carry the first authentication information required by the data supply device. The method can further include:

[0377] receiving the first authentication information sent by the server, wherein the first authentication information is sent by the data supply device to the server when the data supply device receives the first data acquisition request;

[0378] The method can further include:

[0379] sending a second data acquisition request to the data supply device and receiving data returned by the data supply device, wherein the second data acquisition request includes the first authentication information.

[0380] After the server sends the first data acquisition request to the data supply device, the data supply device can send authentication failure information and the first authentication information to the server because the first data acquisition request does not carry the first authentication information required by the data supply device. The server can send the first authentication information to the web end when the server receives the first authentication information.

[0381] The first authentication information can be special information required by the data supply device, i.e., the authentication information specific to the data supply device. The first authentication information can be stored in a specific field of the data supply device in advance, or the first authentication information can be a specific field of the data supply device updated according to a preset period.

[0382] In an embodiment, the first authentication information can be a specific field of the data supply device stored in advance. For example, the specific field of the data supply device stored in advance is a key field 1, and the first authentication information required for authentication of the data supply device is the key field 1.

[0383] In another embodiment, the first authentication information is periodically changed, and the first authentication information can be a specific field of the data supply device updated according to a preset period. For example, the data supply device can update the specific field as the first authentication information according to an update frequency of once a week. The specific field can be updated by the user according to the demand, or can be updated by the data supply device according to a certain rule, which is reasonable.

[0384] Then, the web end can receive the first authentication information sent by the server, generate a second data acquisition request including the first authentication information, and send the second data acquisition request to the data supply device.

[0385] In the case where the data supply device receives the second data acquisition request sent by the web end and carrying the first authentication information, the first authentication information can be authenticated, and the data indicated by the second data acquisition request is sent to the web end. In this way, the web end can receive the data returned by the data supply device and indicated by the second data acquisition request.

[0386] In an embodiment, in the user image taking scenario, the first data acquisition request and the second data acquisition request are requests for acquiring images.

[0387] In the scheme of the embodiment, in the case where the web end sends the first data acquisition request to the server, the server can send the first data acquisition request to the data supply device, receive the first authentication information returned by the data supply device, send the first authentication information to the web end, and the web end can send the second data acquisition request carrying the first authentication information to the data supply device. In the case where the data supply device returns the data indicated by the second data acquisition request, the web end can receive the data, so that the web end can acquire the first authentication information for acquiring the data required by the user, improve the data security, and improve the user experience.

[0388] As an embodiment of the embodiment of the present application, the step of sending the second data acquisition request to the data supply device can include:

[0389] sending a second data acquisition request including the first authentication information to the data supply device, so that the data supply device returns data to the web terminal if the first authentication information is authenticated successfully; or

[0390] sending a second data acquisition request including the first authentication information and second authentication information to the data supply device, so that the data supply device returns data to the web terminal if the first authentication information and the second authentication information are both authenticated successfully, wherein the second authentication information includes an account and a password.

[0391] The web terminal sending the second data acquisition request carrying the first authentication information to the data supply device can include two cases. In the first case, the data supply device has authenticated the second authentication information of the user and the authentication of the second authentication information is successful, i.e., the user has logged in the data supply device, before the server sends the second data acquisition request. Then the data supply device only needs to authenticate the first authentication information. Thus, the web terminal can send the second data acquisition request including the first authentication information to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the web terminal if the first authentication information is authenticated successfully, and the data is displayed on the web terminal if received.

[0392] In the second case, the data supply device does not authenticate the second authentication information of the user, i.e., the user has not logged in the data supply device, before the web terminal sends the second data acquisition request. Then the web terminal can send the second data acquisition request including the first authentication information and the second authentication information to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the web terminal if the first authentication information and the second authentication information are both authenticated successfully, and the data is displayed on the web terminal if received. The second authentication information includes an account and a password.

[0393] In an embodiment, the web terminal does not carry the second authentication information in the first data acquisition request. Thus, the data supply device directly returns the first authentication information and authentication failure information if the server sends the first data acquisition request to the data supply device.

[0394] In another embodiment, the web terminal carries the second authentication information in the first data acquisition request. The data supply device does not authenticate the second authentication information and only returns the first authentication information and authentication failure information if the server sends the first data acquisition request to the data supply device.

[0395] For example, as shown in FIG. 11, the web end sends a first data acquisition request to the server, the first data acquisition request does not carry the first authentication information, but carries the second authentication information. The server receives the first data acquisition request, and sends the first data acquisition request to the data supply device. When the data supply device receives the first data acquisition request, since the first data acquisition request does not carry the first authentication information, a 401 status code and the first authentication information can be returned to the server, and the second authentication information is not authenticated.

[0396] The server receives the 401 status code and the first authentication information, processes the 401 status code to obtain an authentication status code 40401, and sends the authentication status code 40401 and the first authentication information to the web end. The web end receives the authentication status code, and the browser does not pop up a window. The web end receives the first authentication information, generates a second data acquisition request based on the first authentication information and the second authentication information, and sends the second data acquisition request including the first authentication information and the second authentication information to the data supply device. The data supply device receives the second data acquisition request including the first authentication information and the second authentication information, and authenticates the first authentication information and the second authentication information. The data supply device returns the data indicated by the second data acquisition request to the web end, so that the web end receives the data and displays the data.

[0397] In an embodiment, the web end can encrypt the first authentication information and the second authentication information to obtain a request including valid authentication information required by the data supply device, and send the request including the valid authentication information to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the web end when the valid authentication information is authenticated.

[0398] For example, the first authentication information is a key field 1, the second authentication information is an account 123 and a password 123, the web end can encrypt the key field 1, the account 123 and the password 123 to obtain a second data acquisition request including the key field 1, the account 123 and the password 123 required by the data supply device, and then send the second data request to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the web end when the key field 1, the account 123 and the password 123 are authenticated.

[0399] It can be seen that in the embodiment, when the user logs in the image acquisition device, the web end can send the second data acquisition request including the first authentication information to the data supply device, or when the user does not log in the data supply device, the web end can send the second data acquisition request including the first authentication information and the second authentication information to the data supply device, so that the data supply device returns the data indicated by the second data acquisition request to the web end when the required authentication information is authenticated, so that the data supply device not only authenticates the first authentication information, but also authenticates the second authentication information, which can ensure the security, privacy and reliability of the image obtained from the data supply device.

[0400] As an embodiment of the present application, the first authentication information has a valid time length;

[0401] Before the step of sending the first data acquisition request to the server, the method can further include:

[0402] determining whether the first authentication information is stored locally, wherein the first authentication information is the authentication information required by the data supply device and obtained and stored before the last data acquisition from the data supply device;

[0403] In the case where the first authentication information is not stored locally, the step of sending the first data acquisition request to the server is performed;

[0404] The method further includes:

[0405] In the case where the first authentication information is received from the server, the first authentication information is stored, and the time is started;

[0406] In the case where the time length reaches a second preset time length, the stored first authentication information is deleted, wherein the second preset time length is less than the valid time length.

[0407] The first authentication information has a valid time length. The valid time length can be set according to actual needs, for example, it can be 3min, 5min, etc., which is not limited here.

[0408] The first authentication information returned by the data supply device has a time limit, i.e. a valid time length, and the valid time length of the first authentication information obtained by the web end is consistent with the valid time length of the first authentication information returned by the data supply device. The first authentication information is valid within its valid time length, so the web end can directly send a data acquisition request to the data supply device based on the first authentication information within the valid time length of the first authentication information, so that the data supply device can authenticate the first authentication information and return the data indicated by the data acquisition request to the web end.

[0409] In order to send the data acquisition request based on the first authentication information at any time when the first authentication information is within the valid time length, the web end can store the first authentication information locally upon receiving the first authentication information.

[0410] In this way, before the step of sending the first data acquisition request to the server by the web end, it can be determined whether the first authentication information required by the data supply device is stored locally. If the first authentication information required by the data supply device is not stored locally, the web end sends the first data acquisition request to the server to obtain the first authentication information from the server. If the first authentication information required by the data supply device is stored locally, the web end can obtain the first authentication information from the local storage.

[0411] The first authentication information is the first authentication information required by the data supply device obtained and stored before the last data acquisition from the data supply device. That is, the first authentication information stored locally is the first authentication information of the data supply device obtained and stored before the first data acquisition request is sent to the server.

[0412] For example, if the web end initiates 10 data acquisition requests, and the first data acquisition request sent is the 6th data acquisition request, the first authentication information is the first authentication information obtained by the 5 data acquisition requests sent before the first data acquisition request.

[0413] For example, if the first authentication information is obtained when the first data acquisition request is sent by the web end, the first authentication information obtained when the 5th data acquisition request is sent by the web end is the same as the first authentication information obtained when the first data acquisition request is sent. If the first authentication information is still stored locally, the first authentication information can be obtained directly from the local storage. If the first authentication information is not stored locally when the 6th data acquisition request is sent by the web end, the data acquisition request can be sent to the server to obtain the first authentication information.

[0414] Further, upon receiving the first authentication information sent by the server, the web end can store the first authentication information and start timing. If the timing duration reaches the second preset time length, the stored first authentication information is deleted, wherein the second preset time length is less than the valid time length.

[0415] In an embodiment, when the web end receives the first authentication information sent by the server, the web end can store the first authentication information to a preset storage location and start timing, and when the timing duration reaches a second preset duration, delete the stored first authentication information. That is, the web end stores the first authentication information, and when the storage duration of the first authentication information reaches the second preset duration, the web end can delete the first authentication information.

[0416] The second preset duration is less than the effective duration of the first authentication information, and the preset storage location can be a local cache or the like. Since a certain time is consumed in the process that the data supply device returns the first authentication information to the server and the server sends the first authentication information to the web end, the current effective duration of the first authentication information received by the web end is less than the effective duration thereof, and thus the storage duration of the first authentication information can be less than the effective duration thereof, that is, the second preset duration is less than the effective duration of the first authentication information.

[0417] If the first authentication information is deleted, the web end can no longer directly send the data acquisition request carrying the first authentication information based on the first authentication information, and thus can send the data acquisition request not carrying the first authentication information to the server to acquire the first authentication information again and store it to the local cache. Further, before the web end sends the first data acquisition request, it is determined whether the first authentication information for the data supply device is stored in the local cache.

[0418] For example, the first authentication information returned by the data supply device has an effective duration of 3 min, and when the server receives the first authentication information and sends it to the web end, the web end can store the first authentication information in the local cache and start timing, and the second preset duration is 2.5 min. When the timing duration is 2 min, the web end is ready to send the data acquisition request, and at this time, the timing duration 2 min of the first authentication information does not reach the second preset duration 2.5 min, and thus the web end can acquire the first authentication information from the local cache, that is, send the data acquisition request carrying the first authentication information to the data supply device based on the first authentication information.

[0419] For another example, the second preset duration is 2.5 min, and the web end needs to send 10 data acquisition requests. Before sending the first data acquisition request, it is determined whether the first authentication information is stored in the local cache. If the first authentication information does not exist, it means that the storage duration of the last stored first authentication information reaches the second preset duration 2.5 min and has been deleted, and thus the web end can block the following 9 data acquisition requests after the first data acquisition request and send the data acquisition request not carrying the first authentication information to the server to acquire the first authentication information.

[0420] In the case that the server sends the first authentication information returned by the data supply device to the web end, the web end can store the first authentication information locally and start timing. Since the first authentication information is currently stored locally, the web end can send the first data acquisition request to the data supply device based on the first authentication information, then send the second data acquisition request based on the first authentication information, and so on until the tenth data acquisition request based on the first authentication information.

[0421] In the case that the storage duration of the first authentication information reaches the second preset duration 2.5 min, the first authentication information is deleted, and at this time the web end is ready to send the next data acquisition request. Since the first authentication information no longer exists locally, the data acquisition request behind the data acquisition request can be blocked, and the data acquisition request carrying the first authentication information is sent to the server to obtain the first authentication information. In the case that the web end obtains the first authentication information, the first authentication information is stored locally and timing is started, and a new round of data acquisition is started.

[0422] That is, the data acquisition process is a cyclic process. If the web end determines whether the first authentication information is stored locally before sending the first data acquisition request, if the first authentication information exists, the first authentication information is obtained from the local directly, and if the first authentication information does not exist, the data acquisition request behind the data acquisition request can be blocked, and the data acquisition request not carrying the first authentication information is sent to the server to obtain the first authentication information. Then the first authentication information is stored locally, and the data acquisition request is sent based on the first authentication information until the first authentication information is deleted when the timing duration reaches the second preset duration, and the first authentication information is obtained again.

[0423] It can be seen that in the embodiment, in the case that the server sends the first authentication information to the web end, the web end can store the first authentication information locally and start timing. In the case that the first authentication information does not reach the second preset duration, the web end can obtain the first authentication information from the local, which can reduce the interaction between devices and improve the efficiency of data acquisition.

[0424] As an embodiment of the present application, the first authentication information has a valid duration, and the method can further include:

[0425] receiving an invalidation prompt message sent by the data supply device, wherein the invalidation prompt message is sent by the data supply device in the case that the duration from the time of sending the first authentication information to the time of receiving the second data acquisition request exceeds the valid duration.

[0426] The first authentication information returned by the data supply device has a valid time length, so that the web end can pass the authentication of the data supply device as long as the second data acquisition request sent by the web end to the data supply device carries the first authentication information, as long as the first authentication information is within the valid time length. If the first authentication information has expired, the web end can receive the invalid prompt message sent by the data supply device when sending the second data acquisition request carrying the first authentication information to the data supply device.

[0427] The invalid prompt message is sent by the data supply device when it is determined that the time length from the time when the first authentication information is sent to the time when the second data acquisition request is received exceeds the valid time length. The invalid prompt message can be set according to actual needs, such as "the valid time length has expired", "timeout", and the like, which are not limited herein.

[0428] For example, the valid time length of the first authentication information is 3 min, the data supply device determines that the time when the first authentication information is sent is 5:00, and if the time when the second data acquisition request sent by the web end is received by the data supply device is 5:05, the time length from the time when the first authentication information is sent to the time when the second data acquisition request is received exceeds 3 min, and then the data supply device can send the invalid prompt message "timeout" to the web end. Then, the web end needs to resend the data acquisition request for obtaining the first authentication information to the server.

[0429] It can be seen that in the embodiment, the first authentication information has a valid time length, the web end can receive the invalid prompt message sent by the data supply device, so that the web end can only obtain data when the first authentication information is within the valid time length, and the security and reliability of obtaining data from the device are ensured. At the same time, the invalid prompt message is sent to the web end, so that the user can know the reason for the failure of obtaining data, and the user experience is improved.

[0430] Corresponding to the first data acquisition method, the embodiment of the present application further provides a first data acquisition device. The first data acquisition device provided by the embodiment of the present application is introduced as follows.

[0431] As shown in FIG. 13, a data acquisition device is applied to a server in a data acquisition system, the system further includes a web end and a data supply device, the web end is applied to a browser, and the device includes:

[0432] The first request sending module 1310 is configured to, in response to receiving the first data acquisition request sent by the web terminal, send the first data acquisition request to the data supply device, wherein the first data acquisition request does not carry the first authentication information required by the data supply device.

[0433] The first information receiving module 1320 is configured to receive the first authentication information sent by the data supply device.

[0434] The first information processing module 1330 is configured to process the first authentication information, so that the web terminal or the server sends a second data acquisition request to the data supply device, so that the web terminal acquires the data returned by the data supply device, wherein the second data acquisition request comprises the first authentication information.

[0435] It can be seen that, in the scheme provided in the embodiments of the present application, since the first authentication information returned by the data supply device can be received when the server sends the first data acquisition request to the data supply device, and the first authentication information can be processed to make the web terminal or the server send a second data acquisition request to the data supply device, so that the web terminal acquires the data returned by the data supply device, so that the web terminal can obtain the data required by the user through the first authentication information, and the data security is improved.

[0436] As an implementation manner of the embodiments of the present application, the first information processing module 1330 can comprise:

[0437] The first information processing submodule is configured to send the first authentication information to the web terminal, so that the web terminal sends a second data acquisition request to the data supply device and acquires the data returned by the data supply device; or,

[0438] generate a second data acquisition request based on the first authentication information, and send the second data acquisition request to the data supply device; receive the data indicated by the second data acquisition request returned by the data supply device, and send the data to the web terminal, so that the web terminal acquires the data.

[0439] As an implementation manner of the embodiments of the present application, the first request sending module 1310 can comprise:

[0440] The time counting submodule is configured to receive the image acquisition request sent by the web terminal and start counting.

[0441] The data acquisition request sending sub-module is configured to, in a case where the timing duration reaches a first preset duration, send the data acquisition request to the data supply device based on the data acquisition request received in the timing duration.

[0442] In an embodiment of the present application, the data acquisition request received in the timing duration is a plurality of requests for the same data supply device.

[0443] The data acquisition request sending sub-module can include:

[0444] The first request sending unit is configured to select one data acquisition request from the plurality of data acquisition requests as a first data acquisition request, and send the first data acquisition request to the data supply device; or,

[0445] merge the plurality of data acquisition requests into one data acquisition request as a first data acquisition request, and send the first data acquisition request to the data supply device.

[0446] In an embodiment of the present application, the first information receiving module 1320 can include:

[0447] The first information receiving sub-module is configured to receive the first authentication information and the authentication failure information sent by the data supply device, wherein the pop-up window blocking of the browser is triggered if the browser receives the authentication failure information.

[0448] The apparatus further includes:

[0449] The second information processing module is configured to, before the step of processing the first authentication information, process the authentication failure information so that the processed authentication failure information does not trigger the pop-up window blocking of the browser.

[0450] In an embodiment of the present application, the authentication failure information is an error status code, and the error status code triggers the pop-up window blocking of the browser. The second information processing module can include:

[0451] The authentication status code obtaining sub-module is configured to process the error status code to obtain a processed authentication status code, so that the processed authentication failure information does not trigger the pop-up window blocking of the browser.

[0452] The first information processing sub-module is specifically configured to:

[0453] send the processed authentication status code and the first authentication information to the web end.

[0454] As an implementation of the embodiment of the present application, the first information processing module 1330 can include:

[0455] The second information processing submodule is configured to not send the authentication failure information to the web end, so that the authentication failure information does not trigger the pop-up window of the browser.

[0456] As an implementation of the embodiment of the present application, the first information processing submodule is specifically configured to:

[0457] send a second data acquisition request including the first authentication information to the data supply device, so that the data supply device returns data to the server if the first authentication information is authenticated successfully; or

[0458] send a second data acquisition request including the first authentication information and the second authentication information to the data supply device, so that the data supply device returns data to the server if the first authentication information and the second authentication information are both authenticated successfully, wherein the second authentication information includes an account and a password.

[0459] Corresponding to the above-mentioned second data acquisition method, the embodiment of the present application also provides a second data acquisition device. The second data acquisition device provided by the embodiment of the present application is introduced as follows.

[0460] As shown in FIG. 14, a device for image acquisition is applied to a web end in a data acquisition system, the system further includes a server and a data supply device, the web end is applied to a browser, and the device includes:

[0461] The second request sending module 1410 is configured to send a first data acquisition request to the server, so that the server sends the first data acquisition request to the data supply device and receives the first authentication information required by the data supply device and sent by the data supply device; wherein the first data acquisition request does not carry the first authentication information.

[0462] The second information receiving module 1420 is configured to receive the first authentication information sent by the server.

[0463] The third request sending module 1430 is configured to send a second data acquisition request to the data supply device, wherein the second data acquisition request includes the first authentication information.

[0464] The third information receiving module 1440 is configured to receive data returned by the data supply device.

[0465] It can be seen that in the scheme provided in the embodiments of the present application, in the case that the web end sends a first data acquisition request to the server, the server can send the first data acquisition request to the data supply device, receive the first authentication information returned by the data supply device and send the first authentication information to the web end. The web end can send a second data acquisition request carrying the first authentication information to the data supply device, and then receive the data in the case that the data supply device returns the data indicated by the second data acquisition request. In this way, the web end can obtain the first authentication information for acquiring the data required by the user, and the security of the data is improved.

[0466] As an implementation manner of the embodiments of the present application, the third request sending module 1430 is specifically configured to:

[0467] send a second data acquisition request including the first authentication information to the data supply device, so that the data supply device returns data to the web end in the case that the first authentication information is authenticated;

[0468] send a second data acquisition request including the first authentication information and the second authentication information to the data supply device, so that the data supply device returns data to the web end in the case that the first authentication information and the second authentication information are both authenticated, wherein the second authentication information includes an account and a password.

[0469] As an implementation manner of the embodiments of the present application, the second request sending module 1410 is specifically configured to:

[0470] in the case that a plurality of data acquisition instructions for the same data supply device are acquired, generate a data acquisition request as a first data acquisition request;

[0471] send the first data acquisition request to the server.

[0472] As an implementation manner of the embodiments of the present application, the first authentication information has a valid time length;

[0473] The apparatus further includes:

[0474] a first information determining module, configured to, before the step of sending a first data acquisition request to the server, determine whether the first authentication information is stored locally, wherein the first authentication information is the authentication information required by the data supply device and acquired and stored before the last time of acquiring data from the data supply device; in the case that the first authentication information is not stored locally, trigger the second request sending module 1410;

[0475] The apparatus further includes:

[0476] The first time counting module is configured to store the first authentication information and start counting time when the first authentication information sent by the server is received.

[0477] The first authentication information deletion module is configured to delete the stored first authentication information when the counted time reaches a second preset time length, wherein the second preset time length is shorter than the effective time length.

[0478] Corresponding to the third data acquisition method, the embodiment of the present application further provides a third data acquisition device. The third data acquisition device provided by the embodiment of the present application is introduced as follows.

[0479] As shown in FIG. 15, a device for image acquisition is applied to a data supply device in a data acquisition system, the system further comprising a web end and a server, the web end being applied to a browser, wherein the data supply device returns data in response to a data acquisition request carrying first authentication information required by the data supply device; the device comprises:

[0480] The fourth information receiving module 1510 is configured to receive a first data acquisition request sent by the server, wherein the first data acquisition request is sent by the web end to the server, and the first data acquisition request does not carry the first authentication information required by the data supply device;

[0481] The fourth request sending module 1520 is configured to send the first authentication information to the server.

[0482] The data returning module 1530 is configured to receive a second data acquisition request carrying the first authentication information sent by the server or the web end, and return data, so that the web end acquires the data; wherein the second data acquisition request comprises the first authentication information.

[0483] It can be seen that, in the scheme provided by the embodiment of the present application, when the web end sends a first data acquisition request to the server, the server can send a first data acquisition request to the data supply device, and the data supply device returns first authentication information. The web end or the server can send a second data acquisition request carrying the first authentication information to the data supply device, and then the data supply device returns data indicated by the second data acquisition request. In this way, the web end can acquire the first authentication information to acquire the data required by the user, and the security of the data is improved.

[0484] As an implementation manner of the embodiment of the present application, the device further comprises a verification module, which is specifically configured to:

[0485] In a case where the second data acquisition request is received, the first authentication information is authenticated, and in a case where the authentication is passed, data is returned; or

[0486] In a case where the second data acquisition request is received, the first authentication information and the second authentication information are authenticated, and in a case where the first authentication information and the second authentication information are both authenticated, data is returned, wherein the second data acquisition request further comprises the second authentication information; the second authentication information comprises an account number and a password.

[0487] As an implementation of an embodiment of the present application, the fourth request sending module 1520 is specifically configured to:

[0488] The first authentication information and the authentication failure information are sent to the server, so that the server receives the authentication failure information, processes the authentication failure information, and makes the processed authentication failure information not trigger the interception pop-up window of the browser.

[0489] As an implementation of an embodiment of the present application, the data returning module 1530 is specifically configured to.

[0490] In a case where the second data acquisition request is sent by the server, data is returned to the server;

[0491] In a case where the second data acquisition request is sent by the web end, data is returned to the web end.

[0492] Corresponding to the first authentication failure information processing method described above, the present application further provides a first authentication failure information processing device. The first authentication failure information processing device provided by the present application is introduced as follows.

[0493] A authentication failure information processing device is applied to a server in a data acquisition system, the system further comprising a web end and a data supply device, the web end being applied to a browser, and the device comprising:

[0494] A fifth request sending module is configured to send a first data acquisition request to the data supply device in a case where the first data acquisition request is sent by the web end;

[0495] A fifth information receiving module is configured to receive authentication failure information sent by the data supply device, wherein the authentication failure information is sent by the data supply device in a case where the first data acquisition request is authenticated by the data supply device; if the authentication failure information is received by the browser, an interception pop-up window of the browser is triggered;

[0496] The third information processing module is configured to process the authentication failure information, so that the processed authentication failure information does not trigger the pop-up window of the browser.

[0497] It can be seen that in the scheme provided in the embodiments of the present application, in the case that the server sends a first data acquisition request to the data supply device, authentication failure information returned by the data supply device can be received, and the authentication failure information can be processed so that the authentication failure information does not trigger the pop-up window of the browser. In this way, the browser does not intercept the authentication failure information to pop up a window, the problem of the pop-up window of the browser is solved, and the user experience is improved.

[0498] As an embodiment of the present application, the authentication failure information is an error status code; the error status code triggers the pop-up window of the browser;

[0499] The third information processing module is specifically configured to:

[0500] process the error status code to obtain a processed authentication status code, so that the processed authentication failure information does not trigger the pop-up window of the browser, and send the processed authentication status code to the web end; or, do not send the authentication failure information to the web end, so that the authentication failure information does not trigger the pop-up window of the browser.

[0501] As an embodiment of the present application, the fifth request sending module comprises:

[0502] The timing submodule is configured to receive a data acquisition request sent by the web end and start timing; in the case that the timing duration reaches a first preset duration, based on the data acquisition requests received within the timing duration, send the data acquisition request to the data supply device.

[0503] As an embodiment of the present application, the data acquisition requests received within the timing duration are multiple requests for the same data supply device;

[0504] The timing submodule is specifically configured to:

[0505] select one data acquisition request from the multiple data acquisition requests as a first data acquisition request, and send the first data acquisition request to the data supply device; or, combine the multiple data acquisition requests into one data acquisition request as a first data acquisition request, and send the first data acquisition request to the data supply device.

[0506] As an embodiment of the present application, the first data acquisition request does not carry the first authentication information required by the data supply device;

[0507] The fifth information receiving module comprises:

[0508] The fifth information receiving sub-module is configured to receive authentication failure information and the first authentication information sent by the data supply device.

[0509] The device further comprises:

[0510] The sixth request sending module is configured to send the first authentication information to the web end, so that the web end sends a second data acquisition request to the data supply device, so that the web acquires data returned by the data supply device; or, send a second data acquisition request to the data supply device, acquire data returned by the data supply device, and send the data to the web end; wherein the second data acquisition request comprises the first authentication information.

[0511] As an implementation of the embodiment of the present application, the sixth request sending module is specifically configured to:

[0512] send a second data acquisition request comprising the first authentication information to the data supply device, so that the data supply device returns data to the server if the first authentication information is authenticated; or, send a second data acquisition request comprising the first authentication information and second authentication information to the data supply device, so that the data supply device returns data to the server if the first authentication information and the second authentication information are both authenticated, wherein the second authentication information comprises an account and a password.

[0513] Corresponding to the above-mentioned second authentication failure information processing method, the embodiment of the present application further provides a second authentication failure information processing device. The second authentication failure information processing device provided by the embodiment of the present application is introduced as follows.

[0514] A authentication failure information processing device is applied to a web end in a data acquisition system, the system further comprising a server and a data supply device, the web end being applied to a browser, and the device comprising:

[0515] The seventh request sending module is configured to send a first data acquisition request to the server, so that the server sends the first data acquisition request to the data supply device, receive authentication failure information sent by the data supply device, process the authentication failure information, so that the processed authentication failure information does not trigger an interception pop-up window of the browser, and send the processed authentication failure information to the web end.

[0516] It can be seen that in the scheme provided in the embodiment of the application, in the case that the server sends a first data acquisition request to the data supply device, authentication failure information returned by the data supply device can be received, and the authentication failure information can be processed so that the authentication failure information does not trigger the pop-up window of the browser, so that the browser does not intercept the authentication failure information to pop up a window, the problem of the browser pop-up window is solved, and the user experience is improved.

[0517] As an implementation manner of the embodiment of the application, the seventh request sending module comprises:

[0518] The first receiving sub-module is configured to, in the case that a plurality of data acquisition instructions for the same data supply device are acquired, generate a data acquisition request as a first data acquisition request;

[0519] The second sending sub-module is configured to send the first data acquisition request to the server.

[0520] As an implementation manner of the embodiment of the application, the first data acquisition request does not carry the first authentication information required by the data supply device.

[0521] The device further comprises:

[0522] The sixth information receiving module is configured to receive the first authentication information sent by the server, wherein the first authentication information is sent by the data supply device to the server in the case that the first data acquisition request is received.

[0523] The device further comprises:

[0524] The eighth request sending module is configured to send a second data acquisition request to the data supply device and receive data returned by the data supply device, wherein the second data acquisition request comprises the first authentication information.

[0525] As an implementation manner of the embodiment of the application, the eighth request sending module is specifically configured to:

[0526] send the second data acquisition request comprising the first authentication information to the data supply device, so that the data supply device returns data to the web end in the case that the first authentication information is authenticated to be passed; or send the second data acquisition request comprising the first authentication information and second authentication information to the data supply device, and return data to the web end in the case that the first authentication information and the second authentication information are both authenticated to be passed by the data supply device, wherein the second authentication information comprises an account and a password.

[0527] As an implementation of the embodiment of the present application, the first authentication information has a valid time length.

[0528] The apparatus further comprises:

[0529] The second information determination module is configured to determine whether the first authentication information is stored locally before the step of sending the first data acquisition request to the server, wherein the first authentication information is the authentication information required by the data supply device and acquired and stored before the last time of taking data from the data supply device; and the eighth request sending module is triggered in the case that the first authentication information is not stored locally.

[0530] The apparatus further comprises:

[0531] The second time length counting module is configured to store the first authentication information and start counting in the case that the first authentication information sent by the server is received.

[0532] The second authentication information deletion module is configured to delete the stored first authentication information in the case that the counting time length reaches a second preset time length, wherein the second preset time length is less than the valid time length.

[0533] The embodiment of the present application further provides a first data acquisition system, as shown in FIG. 1, the system comprises a server 101, a web terminal 102 and a data supply device 103, the web terminal is applied to a browser, wherein:

[0534] The server 101 is configured to execute the first data acquisition method provided by the embodiment of the present application.

[0535] The web terminal 102 is configured to execute the second data acquisition method provided by the embodiment of the present application.

[0536] The data supply device 103 is configured to execute the third data acquisition method provided by the embodiment of the present application.

[0537] It can be seen that in the scheme provided by the embodiment of the present application, in the case that the first data acquisition request is sent to the server from the web terminal, the server can send the first data acquisition request to the data supply device, and the first authentication information returned by the data supply device. The web terminal or the server can send the second data acquisition request carrying the first authentication information to the data supply device, and then the data indicated by the second data acquisition request is returned by the data supply device, so that the web terminal can acquire the first authentication information to acquire the data required by the user, and the security of the data is improved.

[0538] The embodiment of the present application further provides a second image acquisition system, as shown in Fig. 1, which comprises a server 101, a web terminal 102 and an image acquisition device 103, the web terminal 102 is applied to a browser, wherein:

[0539] The server 101 is used for executing the first authentication failure information processing method provided by the embodiment of the present application;

[0540] The web terminal 102 is used for executing the second authentication failure information processing method provided by the embodiment of the present application;

[0541] It can be seen that in the scheme provided by the embodiment of the present application, in the case that the server sends a first data acquisition request to the data supply device, the authentication failure information returned by the data supply device can be received, and the authentication failure information can be processed so that the authentication failure information does not trigger the pop-up window of the browser, so that the browser does not intercept the authentication failure information to pop up a window, the problem of the browser pop-up window is solved, and the user experience is improved.

[0542] The embodiment of the present application further provides a server, as shown in Fig. 16, which comprises:

[0543] The memory 1601 is used for storing computer programs;

[0544] The processor 1602 is used for executing the programs stored in the memory 1601, and realizes the first data acquisition method of any of the above-mentioned embodiments.

[0545] The above-mentioned server can further comprise a communication bus and / or a communication interface, and the processor 1602, the communication interface and the memory 1601 complete mutual communication through the communication bus.

[0546] The embodiment of the present application further provides a terminal, as shown in Fig. 17, which comprises:

[0547] The memory 1701 is used for storing computer programs;

[0548] The processor 1702 is used for executing the programs stored in the memory 1701, and realizes the second data acquisition method of any of the above-mentioned embodiments.

[0549] The above-mentioned terminal can further comprise a communication bus and / or a communication interface, and the processor 1702, the communication interface and the memory 1701 complete mutual communication through the communication bus.

[0550] The embodiment of the present application further provides a data supply device, which comprises:

[0551] The memory is used for storing computer programs;

[0552] The processor is configured to implement the third data acquisition method in any of the above embodiments when executing the program stored in the memory.

[0553] The terminal can further include a communication bus and / or a communication interface, and the processor, the communication interface and the memory can communicate with each other through the communication bus.

[0554] The embodiments of the present application further provide a server, as shown in Fig. 16, which includes:

[0555] The memory 1601 is configured to store a computer program.

[0556] The processor 1602 is configured to implement the first authentication failure information processing method in any of the above embodiments when executing the program stored in the memory 1601.

[0557] The server can further include a communication bus and / or a communication interface, and the processor 1602, the communication interface and the memory 1601 can communicate with each other through the communication bus.

[0558] The embodiments of the present application further provide a terminal, as shown in Fig. 17, which includes:

[0559] The memory 1701 is configured to store a computer program.

[0560] The processor 1702 is configured to implement the second authentication failure information processing method in any of the above embodiments when executing the program stored in the memory 1701.

[0561] The terminal can further include a communication bus and / or a communication interface, and the processor 1702, the communication interface and the memory 1701 can communicate with each other through the communication bus.

[0562] The communication bus of the server or the terminal can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or only one type of bus.

[0563] The communication interface is configured to communicate between the server or the terminal and other devices.

[0564] The memory can include a random access memory (RAM) and can also include a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory can also be at least one storage device located remotely from the aforementioned processor.

[0565] The processor described above can be a general processor, including a central processing unit (CPU), a network processor (NP), etc.; can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component.

[0566] In yet another embodiment provided in the present application, a computer readable storage medium is also provided, and the computer readable storage medium stores a computer program. The computer program is executed by a processor to implement the steps of any of the above methods.

[0567] In yet another embodiment provided in the present application, a computer program product containing instructions, which, when run on a computer, causes the computer to execute any of the methods in the above embodiments.

[0568] In the embodiments described above, all or some of the embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or some of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded into and executed by a computer, all or some of the processes or functions according to the embodiments described in the specification are generated. The computer can be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions can be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions can be transmitted from one website site, computer, server or data center to another website site, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) manner. The computer readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. integrated with one or more available media. The available media can be magnetic media (for example, floppy disk, hard disk, magnetic tape), optical media (for example, DVD), or solid state disk (SSD) and the like.

[0569] It should be noted that, in this document, the relationship terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between the entities or operations. Moreover, the terms "include", "contain" or any other variants thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements not only includes those elements, but also includes other elements not explicitly listed or inherent to such process, method, article or device. Without more limitations, the element defined by the statement "including a" does not exclude the presence of other identical elements in the process, method, article or device including the element.

[0570] Each of the embodiments in the specification is described in a related manner, and the same or similar parts between each of the embodiments can be referred to each other. Each of the embodiments focuses on the difference from other embodiments. In particular, for the device, system, server, terminal, data supply device, computer readable storage medium and computer program product embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the part of the method embodiment.

[0571] The above merely provides the preferred embodiment of the present application, and not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

A method of data acquisition, characterized in that The application discloses a server applied to a data acquisition system, the system further comprising a web end and a data supply device, the web end being applied to a browser, and the method comprising: In the case that the first data acquisition request sent by the web end is received, the first data acquisition request is sent to the data supply device, wherein the first data acquisition request does not carry the first authentication information required by the data supply device; The first authentication information sent by the data supply device is received; The first authentication information is processed, so that the web end or the server sends a second data acquisition request to the data supply device, so that the web end acquires the data returned by the data supply device, wherein the second data acquisition request comprises the first authentication information. The method of claim 1, wherein The step of processing the first authentication information, so that the web end or the server sends a second data acquisition request to the data supply device, so that the web end acquires the data returned by the data supply device, comprises: The first authentication information is sent to the web end, so that the web end sends a second data acquisition request to the data supply device and acquires the data returned by the data supply device; or, Based on the first authentication information, a second data acquisition request is generated, and the second data acquisition request is sent to the data supply device; the data indicated by the second data acquisition request returned by the data supply device is received, and the data is sent to the web end, so that the web end acquires the data. The method of claim 1, wherein The step of sending the first data acquisition request to the data supply device in the case that the first data acquisition request sent by the web end is received, comprises: The data acquisition request sent by the web end is received, and timing is started; In the case that the timing duration reaches a first preset duration, based on the data acquisition request received in the timing duration, the data acquisition request is sent to the data supply device. The method according to claim 3, characterized in that The data acquisition request received in the timing duration is a plurality of requests for the same data supply device; The step of sending the data acquisition request to the data supply device based on the data acquisition request received in the timing duration, comprises: One data acquisition request is selected from a plurality of data acquisition requests as a first data acquisition request, and the first data acquisition request is sent to the data supply device; Or, A plurality of data acquisition requests are combined into one data acquisition request as a first data acquisition request, and the first data acquisition request is sent to the data supply device. The method according to claim 2, characterized in that The step of receiving the first authentication information sent by the data supply device, comprises: The first authentication information and authentication failure information sent by the data supply device are received, wherein if the authentication failure information is received by the browser, the interception pop-up window of the browser is triggered; Before the step of processing the first authentication information, the method further comprises: processing the authentication failure information so that the processed authentication failure information does not trigger the pop-up window of the browser. The method according to claim 5, characterized in that The authentication failure information is an error status code, and the error status code triggers the pop-up window of the browser. The step of processing the authentication failure information so that the processed authentication failure information does not trigger the pop-up window of the browser includes: processing the error status code to obtain a processed authentication status code, so that the processed authentication failure information does not trigger the pop-up window of the browser. The step of sending the first authentication information to the web side includes: sending the processed authentication status code and the first authentication information to the web side. The method according to claim 5, characterized in that The step of processing the authentication failure information so that the processed authentication failure information does not trigger the pop-up window of the browser includes: not sending the authentication failure information to the web side, so that the authentication failure information does not trigger the pop-up window of the browser. The method according to claim 2, characterized in that The step of sending the second data acquisition request to the data supply device includes: sending a second data acquisition request including the first authentication information to the data supply device, so that the data supply device returns data to the server if the first authentication information is authenticated; or sending a second data acquisition request including the first authentication information and second authentication information to the data supply device, so that the data supply device returns data to the server if the first authentication information and the second authentication information are both authenticated, wherein the second authentication information includes an account and a password. A method of data acquisition, characterized in that The web side applied to a data acquisition system, the system further includes a server and a data supply device, the web side is applied to a browser, and the method includes: sending a first data acquisition request to the server, so that the server sends the first data acquisition request to the data supply device, and receiving the first authentication information required by the data supply device sent by the data supply device; wherein the first data acquisition request does not carry the first authentication information; receiving the first authentication information sent by the server; sending a second data acquisition request to the data supply device, wherein the second data acquisition request includes the first authentication information; receiving data returned by the data supply device. The method of claim 9, wherein The step of sending the second data acquisition request to the data supply device includes: sending a second data acquisition request including the first authentication information to the data supply device, so that the data supply device returns data to the web side if the first authentication information is authenticated; or sending a second data acquisition request including the first authentication information and second authentication information to the data supply device, so that the data supply device returns data to the web side if the first authentication information and the second authentication information are both authenticated, wherein the second authentication information includes an account and a password. The method of claim 9, wherein The step of sending the first data acquisition request to the server comprises: In the case of obtaining a plurality of data acquisition instructions for the same data supply device, a data acquisition request is generated as the first data acquisition request; The first authentication information has a valid time length; The method of claim 9, wherein Before the step of sending the first data acquisition request to the server, the method further comprises: Determining whether the first authentication information is stored locally, wherein the first authentication information is the authentication information required by the data supply device obtained and stored before the last data acquisition from the data supply device; In the case that the first authentication information is not stored locally, the step of sending the first data acquisition request to the server is executed; The method further comprises: In the case of receiving the first authentication information sent by the server, the first authentication information is stored, and the timing is started; In the case that the timing length reaches a second preset time length, the stored first authentication information is deleted, wherein the second preset time length is less than the valid time length. Before the step of sending the second data acquisition request to the data supply device, the method further comprises: The method of claim 9, wherein Receiving the processed authentication failure information sent by the server, wherein the authentication failure information is sent by the data supply device to the server after receiving the first data acquisition request, and the server processes the authentication failure information so that the processed authentication failure information does not trigger the blocking pop-up window of the browser. The data supply device applied to a data acquisition system, the system further comprises a web end and a server, the web end is applied to a browser, wherein the data supply device returns data in response to a data acquisition request carrying the first authentication information required by the data supply device; the method comprises: A method of data acquisition, characterized in that Receiving the first data acquisition request sent by the server, wherein the first data acquisition request is sent by the web end to the server, and the first data acquisition request does not carry the first authentication information required by the data supply device; Sending the first authentication information to the server; Receiving the second data acquisition request carrying the first authentication information sent by the server or the web end, and returning data to enable the web end to obtain the data; wherein the second data acquisition request comprises the first authentication information. The method further comprises: The method of claim 14, wherein In the case of receiving the second data acquisition request, authenticating the first authentication information, and returning data in the case of passing authentication; or, In the case of receiving the second data acquisition request, authenticating the first authentication information and the second authentication information, and returning data in the case that the first authentication information and the second authentication information are both authenticated, wherein the second data acquisition request further comprises the second authentication information; the second authentication information comprises an account and a password. The step of sending the first authentication information to the server comprises: The method of claim 14, wherein ​ The first authentication information and authentication failure information are sent to the server, so that the server receives the authentication failure information, processes the authentication failure information, and makes the processed authentication failure information not trigger the pop-up window of the browser. The method of claim 14, wherein The step of returning data comprises: In the case that the second data acquisition request is sent by the server, data is returned to the server; In the case that the second data acquisition request is sent by the web end, data is returned to the web end. A method of processing authentication failure information, characterized by, The server applied to a data acquisition system, the system further comprising a web end and a data supply device, the web end being applied to a browser, the method comprising: In the case that the first data acquisition request sent by the web end is received, the first data acquisition request is sent to the data supply device; Receiving authentication failure information sent by the data supply device, wherein the authentication failure information is sent by the data supply device in the case that the first data acquisition request is authenticated unsuccessfully; if the browser receives the authentication failure information, the pop-up window of the browser is triggered; Processing the authentication failure information, so that the processed authentication failure information does not trigger the pop-up window of the browser. The method of claim 18, wherein The authentication failure information is an error status code; the error status code triggers the pop-up window of the browser; The step of processing the authentication failure information, so that the processed authentication failure information does not trigger the pop-up window of the browser, comprises: Processing the error status code to obtain a processed authentication status code, so that the processed authentication failure information does not trigger the pop-up window of the browser, and sending the processed authentication status code to the web end; or, Not sending the authentication failure information to the web end, so that the authentication failure information does not trigger the pop-up window of the browser. The method of claim 18, wherein The step of sending the first data acquisition request to the data supply device in the case that the first data acquisition request sent by the web end is received, comprises: Receiving the data acquisition request sent by the web end and starting timing; In the case that the timing duration reaches a first preset duration, based on the data acquisition request received within the timing duration, the data acquisition request is sent to the data supply device. The method of claim 20, wherein The data acquisition request received within the timing duration is a plurality of requests for the same data supply device; The step of sending the data acquisition request to the data supply device based on the data acquisition request received within the timing duration, comprises: Selecting one data acquisition request from a plurality of data acquisition requests as a first data acquisition request, and sending the first data acquisition request to the data supply device; or, Combining a plurality of data acquisition requests into one data acquisition request as a first data acquisition request, and sending the first data acquisition request to the data supply device. The first data acquisition request does not carry the first authentication information required by the data supply device; The method of claim 18, wherein The step of receiving the authentication failure information sent by the data supply device comprises: ​ receive authentication failure information sent by the data supply device and the first authentication information; The method further comprises: sending the first authentication information to the web end, so that the web end sends a second data acquisition request to the data supply device, so that the web acquires data returned by the data supply device; or, sending a second data acquisition request to the data supply device, acquiring data returned by the data supply device, and sending the data to the web end; wherein the second data acquisition request comprises the first authentication information. The method of claim 22, wherein The step of sending a second data acquisition request to the data supply device comprises: sending a second data acquisition request comprising the first authentication information to the data supply device, so that the data supply device returns data to the server if the first authentication information is authenticated; or, sending a second data acquisition request comprising the first authentication information and second authentication information to the data supply device, so that the data supply device returns data to the server if the first authentication information and the second authentication information are both authenticated, wherein the second authentication information comprises an account and a password. A method of processing authentication failure information, characterized by, The web end applied to a data acquisition system, the system further comprising a server and a data supply device, the web end applied to a browser, the method comprising: sending a first data acquisition request to the server, so that the server sends the first data acquisition request to the data supply device, receiving authentication failure information sent by the data supply device, processing the authentication failure information, so that the processed authentication failure information does not trigger the pop-up window of the browser, and sending the processed authentication failure information to the web end. The method of claim 24, wherein The step of sending a first data acquisition request to the server comprises: generating a data acquisition request as a first data acquisition request if a plurality of data acquisition instructions for the same data supply device are acquired; sending the first data acquisition request to the server. The method of claim 24, wherein The first data acquisition request does not carry the first authentication information required by the data supply device; The method further comprises: receiving the first authentication information sent by the server, wherein the first authentication information is sent by the data supply device to the server if the first data acquisition request is received; The method further comprises: sending a second data acquisition request to the data supply device, receiving data returned by the data supply device; wherein the second data acquisition request comprises the first authentication information. The method of claim 24, wherein The step of sending a second data acquisition request to the data supply device comprises: sending a second data acquisition request comprising the first authentication information to the data supply device, so that the data supply device returns data to the web end if the first authentication information is authenticated; or, The second data acquisition request including the first authentication information and the second authentication information is sent to the data supply device, and data is returned to the web terminal when the first authentication information and the second authentication information are both authenticated by the data supply device, wherein the second authentication information includes an account and a password. The method of claim 26, wherein The first authentication information has a valid time length; Before the step of sending the first data acquisition request to the server, the method further comprises: Determining whether the first authentication information is stored locally, wherein the first authentication information is the authentication information required by the data supply device and stored before the last data acquisition from the data supply device; In the case that the first authentication information is not stored locally, the step of sending the first data acquisition request to the server is executed; The method further comprises: In the case that the first authentication information is received from the server, the first authentication information is stored, and the time is started; In the case that the time length reaches a second preset time length, the stored first authentication information is deleted, wherein the second preset time length is less than the valid time length. A server, characterized in that Comprise: A memory for storing computer programs; A processor for executing the programs stored on the memory to realize the method of any one of claims 1-8. A terminal, characterized by comprising: Comprise: A memory for storing computer programs; A processor for executing the programs stored on the memory to realize the method of any one of claims 9-13. A data supply device characterized by comprising: Comprise: A memory for storing computer programs; A processor for executing the programs stored on the memory to realize the method of any one of claims 14-17. A data acquisition system characterized by The system comprises the server of claim 29, the web terminal and the data supply device of claim 31, and the web terminal is applied to the browser of the terminal of claim 30. A server, characterized in that Comprise: A memory for storing computer programs; A processor for executing the programs stored on the memory to realize the method of any one of claims 18-23. A terminal, characterized by comprising: Comprise: A memory for storing computer programs; A processor for executing the programs stored on the memory to realize the method of any one of claims 24-28. A data acquisition system characterized by The system comprises the server of claim 32, the web terminal and the data supply device, and the web terminal is applied to the browser of the terminal of claim 34. Comprise: A memory for storing computer programs; A processor for executing the programs stored on the memory to realize the method of any one of claims 18-23. Comprise: A memory for storing computer programs; A processor for executing the programs stored on the memory to realize the method of any one of claims 24-28. The system comprises the server of claim 32, the web terminal and the data supply device, and the web terminal is applied to the browser of the terminal of claim 34.

Citation Information

Patent Citations

  • Data acquisition method, authentication method and related product

    CN111262843A

  • Login form conversion method and device, storage medium and electronic equipment

    CN112104641A

  • Access request authentication method and device, electronic equipment and storage medium

    CN115460010A

  • Security authentication method, device, equipment, system, storage medium and program product

    CN118505229A

  • Image acquisition method, device and system, server, terminal and medium

    CN118764474A