CN111209031A - Data acquisition method and device, terminal equipment and storage medium - Google Patents
Data acquisition method and device, terminal equipment and storage medium Download PDFInfo
- Publication number
- CN111209031A CN111209031A CN201911405836.9A CN201911405836A CN111209031A CN 111209031 A CN111209031 A CN 111209031A CN 201911405836 A CN201911405836 A CN 201911405836A CN 111209031 A CN111209031 A CN 111209031A
- Authority
- CN
- China
- Prior art keywords
- data
- service
- terminal
- service data
- scene
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 238000012795 verification Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 12
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 6
- 238000004891 communication Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 238000012216 screening Methods 0.000 description 4
- 238000012360 testing method Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000001514 detection method Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 238000004806 packaging method and process Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application provides a data acquisition method, a data acquisition device, terminal equipment and a storage medium. The method comprises the following steps: acquiring a plurality of service data to be processed; intercepting target service data of a specified service scene from the plurality of to-be-processed service data based on a data mock rule which is configured for a first terminal in advance and aims at the specified service scene; and sending the target service data to the first terminal. According to the method and the device, the target service data of the appointed service scene is intercepted by pre-configuring the data mock rule of the appointed service scene, and codes are not required to be written in the fixed service scene, so that the repackaging process is reduced, and the data acceptance efficiency is improved.
Description
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a data obtaining method and apparatus, a terminal device, and a storage medium.
Background
The UED (User Experience Design) is a Design means which is centered on the User and is designed with the User requirement as the target, and can correctly evaluate the User Experience and recognize the real expectation and the purpose of the User.
At present, the acceptance of the UED is usually that a developer retains a picture in a screenshot manner in the development process and submits the picture to the UED for acceptance. Alternatively, the developer writes the code to death in some fixed scenarios and then packages it for acceptance by the UED.
In the above manner, the screenshot manner can only obtain static acceptance data, and some dynamic effect data cannot be accepted, and the code is written to death, although the acceptance of the dynamic effect data can be realized, this manner needs to be repackaged, and the efficiency of data acceptance is low.
Disclosure of Invention
The embodiment of the application provides a data acquisition method, a data acquisition device, terminal equipment and a storage medium, and aims to solve the problem that the existing data acceptance mode is low in efficiency.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a data acquisition method, including:
acquiring a plurality of service data to be processed;
intercepting target service data of a specified service scene from the plurality of to-be-processed service data based on a data mock rule which is configured for a first terminal in advance and aims at the specified service scene;
and sending the target service data to the first terminal.
Optionally, before the obtaining the plurality of to-be-processed service data, the method further includes:
creating a proxy server;
acquiring a service request sent by the first terminal;
forwarding the service request to the proxy server;
the acquiring a plurality of service data to be processed includes:
and the proxy server acquires the plurality of service data to be processed according to the service request.
Optionally, before the obtaining the plurality of to-be-processed service data, the method further includes:
acquiring a designated service scene and a uniform resource locator of the first terminal, wherein the designated service scene and the uniform resource locator are required to be subjected to data acceptance;
compiling a data mock rule corresponding to the first terminal according to the appointed service scene and the uniform resource locator;
and configuring the data mock rule to a specified data interface.
Optionally, the intercepting, based on a data mock rule for a specified service scenario configured for the first terminal in advance, target service data of the specified service scenario from the multiple pieces of service data to be processed includes:
receiving the plurality of to-be-processed service data through the designated data interface;
and intercepting target service data matched with the appointed service scene and the uniform resource locator from the plurality of service data to be processed based on the data mock rule.
Optionally, after the writing of the data mock rule corresponding to the first terminal according to the specified service scenario further includes:
receiving a verification request sent by a second terminal;
and after the verification request is successfully verified, controlling the second terminal to access the service platform registered by the data mock rule, so that the second terminal can copy the data mock rule aiming at the specified service scene in the service platform.
In a second aspect, an embodiment of the present application additionally provides a data acquisition apparatus, including:
the service data acquisition module is used for acquiring a plurality of service data to be processed;
the target data interception module is used for intercepting target service data of a specified service scene from the plurality of to-be-processed service data based on a data mock rule which is configured for the first terminal in advance and aims at the specified service scene;
and the target data sending module is used for sending the target service data to the first terminal.
Optionally, the method further comprises:
the proxy server creating module is used for creating a proxy server;
a service request obtaining module, configured to obtain a service request sent by the first terminal;
a service request forwarding module, configured to forward the service request to the proxy server;
the service data acquisition module comprises:
and the service data acquisition submodule is used for acquiring the plurality of service data to be processed by the proxy server according to the service request.
Optionally, the method further comprises:
the designated service scene acquisition module is used for acquiring a designated service scene and a uniform resource locator which are required to be subjected to data acceptance by the first terminal;
the data mock rule compiling module is used for compiling and obtaining a data mock rule corresponding to the first terminal according to the specified service scene and the uniform resource locator;
and the data mock rule configuration module is used for configuring the data mock rule to a specified data interface.
Optionally, the target data intercepting module includes:
the service data receiving submodule is used for receiving the plurality of service data to be processed through the specified data interface;
and the target data intercepting submodule is used for intercepting target service data matched with the specified service scene and the uniform resource locator from the plurality of service data to be processed based on the data mock rule.
Optionally, the method further comprises:
the verification request receiving module is used for receiving a verification request sent by the second terminal;
and the second terminal access module is used for controlling the second terminal to access the service platform registered by the data mock rule after the verification request is successfully verified so that the second terminal can copy the data mock rule aiming at the specified service scene in the service platform.
In a third aspect, an embodiment of the present application additionally provides a terminal device, including: memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, implements a data acquisition method as described above.
In a fourth aspect, the present embodiment provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the data acquisition method as described above.
In the embodiment of the application, the target service data of the specified service scene is obtained by acquiring the plurality of pieces of to-be-processed service data and intercepting the target service data from the plurality of pieces of to-be-processed service data based on the data mock rule which is configured for the first terminal in advance and aims at the specified service scene, and the target service data is sent to the first terminal. According to the method and the device, the target service data of the appointed service scene is intercepted by pre-configuring the data mock rule of the appointed service scene, and codes are not required to be written in the fixed service scene, so that the repackaging process is reduced, and the data acceptance efficiency is improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of steps of a data acquisition method in an embodiment of the present application;
FIG. 2 is a flow chart of steps of another data acquisition method in an embodiment of the present application;
FIG. 3 is a schematic diagram of a data acquisition system in an embodiment of the present application;
FIG. 4 is a schematic structural diagram of a data acquisition apparatus in an embodiment of the present application;
FIG. 5 is a schematic structural diagram of another data acquisition apparatus in the embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of a terminal device in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Example one
A data acquisition method provided in an embodiment of the present application is described in detail.
Referring to fig. 1, a flowchart illustrating steps of a data acquisition method in an embodiment of the present application is shown.
Step 101: and acquiring a plurality of service data to be processed.
The embodiment can be applied to a scene of checking and accepting data of a specified service scene required by a user.
In the embodiment of the present application, the service data to be processed refers to the acquired data that needs to be checked and accepted to specify the service scenario.
In some examples, the pending service data may be obtained from the internet, for example, when the user accesses a certain internet site, all data in the internet site may be captured as the pending service data.
In some examples, the to-be-processed service data may be obtained from a preset database, for example, the preset database holds all data captured from the internet in advance, and further, the to-be-processed service data may be obtained from the preset database.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation of the embodiments of the present application.
After acquiring a plurality of to-be-processed service data, step 102 is executed.
Step 102: and intercepting target service data of the specified service scene from the plurality of service data to be processed based on a data mock rule which is configured for the first terminal in advance and aims at the specified service scene.
The first terminal refers to a terminal that needs to accept data of a specific service scenario. In this embodiment, the first terminal may be a mobile terminal, such as a mobile electronic Device, e.g., a mobile phone, a PAD (Portable Android Device, tablet computer), and the like. The first terminal may also be a PC (Personal Computer) terminal, such as an electronic device like a desktop Computer or a notebook Computer.
The designated service scene refers to a scene that the first terminal needs to accept data, and the designated service scene may be a house property service scene, a multimedia service scene, a game service scene, and the like, and specifically may be determined according to a service requirement, which is not limited in this embodiment of the present application.
Mock refers to a method for creating a virtual object for some objects which are not easy to construct or easily obtain during the test process so as to facilitate the test.
The data mock rule refers to a data screening rule configured in advance according to a specified service scene of data to be accepted by the first terminal, where the data mock rule specifies a service scene to be accepted and a rule such as a Uniform Resource Locator (URL) of the accepted data, and specifically may be determined according to a service requirement, which is not limited in this embodiment of the present application.
The configuration process of the data mock rule will be described in detail in the following embodiments, which are not described herein again.
The target service data refers to service data intercepted from a plurality of pieces of service data to be processed by using a data mock rule, for example, the plurality of pieces of service data to be processed include service data 1, service data 2, and service data 3, and the service data intercepted by using the data mock rule is: and when the service data 2 and the service data 3 are used, the service data 2 and the service data 3 are regarded as target service data.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation of the embodiments of the present application.
After the data mock rule which is configured for the first terminal in advance and aims at the specified service scene is obtained, the plurality of service data to be processed can be intercepted according to the data mock rule which is configured in advance so as to obtain the target service data of the specified service scene.
After the target service data of the specified service scene is intercepted, step 103 is executed.
Step 103: and sending the target service data to the first terminal.
After the target service data of the designated service scene is intercepted, the target service data can be sent to the first terminal so that the first terminal can display the target service data on a terminal screen of the first terminal.
By adopting the mode, the embodiment of the application can set the pre-configured data mock rule on the mock platform, and at the moment, codes do not need to be added in each fixed scene, so that the workload of business personnel can be reduced, and the efficiency of data acquisition is improved.
According to the data acquisition method provided by the embodiment of the application, the target service data of the specified service scene is obtained by acquiring the plurality of pieces of service data to be processed, intercepting the target service data from the plurality of pieces of service data to be processed based on the data mock rule which is configured for the first terminal in advance and aims at the specified service scene, and the target service data is sent to the first terminal. According to the method and the device, the target service data of the appointed service scene is intercepted by pre-configuring the data mock rule of the appointed service scene, and codes are not required to be written in the fixed service scene, so that the repackaging process is reduced, and the data acceptance efficiency is improved.
Example two
A data acquisition method provided in an embodiment of the present application is described in detail.
Referring to FIG. 2, a flow chart of steps of another data acquisition method in an embodiment of the present application is shown.
Step 201: a proxy server is created.
The embodiment can be applied to a scene of checking and accepting data of a specified service scene required by a user.
In this embodiment, the technical solution of this embodiment can be described in detail as follows with reference to fig. 3.
Referring to fig. 3, a schematic diagram of a data acquisition system provided in an embodiment of the present application is shown.
A proxy server refers to a server that is used as a proxy.
First, a proxy server (as shown in fig. 3) can be built on the intelligent router, and the proxy server can grab the service data from the network.
After the proxy server is created, step 202 is performed.
Step 202: and acquiring the service request sent by the first terminal.
The first terminal refers to a terminal that needs to accept data of a specific service scenario. As shown in fig. 3, the first terminal may be a terminal used by the user a or a terminal used by the user B, and specifically, may be determined according to a service requirement.
In this embodiment, the first terminal may be a mobile terminal, such as a mobile electronic device, e.g., a mobile phone, a PAD (Portable android device, tablet computer), and so on. The first terminal may also be a PC (Personal Computer) terminal, such as an electronic device like a desktop Computer or a notebook Computer.
The service request refers to a request sent by the first terminal for acquiring service data.
When the first terminal needs to obtain the service data through the proxy server, a certificate (certificate) can be sent to the proxy server through the intelligent router, the proxy server can register the certificate sent by the first terminal, and the certificate can be used for realizing the verification process of the first terminal on the proxy server.
When the first terminal needs to acquire service data of a certain scene, a service request can be generated according to the requirement of the first terminal.
After acquiring the service request sent by the first terminal, step 203 is executed.
Step 203: and forwarding the service request to the proxy server.
After the service request of the first terminal is acquired, the service request of the first terminal can be forwarded to a proxy server of a server side through an intelligent router. Therefore, the proxy server can fetch corresponding service data from the network according to the service request of the first terminal.
Step 204: and acquiring the appointed service scene and the uniform resource locator of the first terminal which need to check and accept data.
The designated service scene refers to a service scene in which the first terminal needs to accept data, and the designated service scene may be a house property service scene, a multimedia service scene, a game service scene, and the like.
A Uniform Resource Locator (URL) is a compact representation of the location and access method of a Resource available from the internet, and is the address of a standard Resource on the internet. Each file on the internet has a unique URL that contains information indicating the location of the file and how the browser should handle it.
When data to be checked and accepted by the first terminal is obtained, a specified service scene and a uniform resource locator, where the data to be checked and accepted by the first terminal is required, may be obtained first.
After acquiring the specified service scenario and the uniform resource locator for data acceptance of the first terminal, step 205 is executed.
Step 205: and compiling a data mock rule corresponding to the first terminal according to the specified service scene and the uniform resource locator.
Mock refers to a method for creating a virtual object for some objects which are not easy to construct or easily obtain during the test process so as to facilitate the test.
The data mock rule is a data screening rule configured in advance according to a specified service scene of data to be checked and accepted by the first terminal, and the data mock rule specifies a service scene to be checked and accepted and a URL (uniform resource Locator) rule of the checked and accepted data.
After acquiring the specified service scene and the uniform resource locator, which are required to be subjected to data acceptance by the first terminal, of the first terminal, the data mock rule corresponding to the first terminal can be compiled according to the specified service scene and the uniform resource locator, specifically, codes can be compiled according to the specified service scene and the uniform resource locator, and then the compiled codes are added to the Appmock platform shown in fig. 3 to obtain the data mock rule of the first terminal, as shown in fig. 3, the data acquisition system can further include a new adding/modifying rule module and a packet capturing module, wherein the new adding/modifying rule module can be used for adding or modifying other rules to the data mock rule of the first terminal added to the Appmock platform. The packet capturing module can be used for feeding back the captured data which accords with the rule to the first terminal in a packaging mode.
After the data mock rule corresponding to the first terminal is compiled according to the specified service scenario and the uniform resource locator, step 206 is executed.
Step 206: and configuring the data mock rule to a specified data interface.
The designated data interface is an interface used for screening, filtering and capturing the service data on the Appmock platform.
One data interface can be preset on the Appmock platform, and a plurality of data interfaces can also be preset on the Appmock platform. Only one data interface is arranged on the Appmock platform, and when business data required to be accepted by two users needs to be captured, the data required to be accepted by the two users can be captured through the data interface in sequence. And a plurality of data interfaces are arranged on the Appmock platform, and when business data required to be accepted by two users needs to be captured, data required to be accepted by each user can be captured through two data interfaces in the plurality of data interfaces.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation of the embodiments of the present application.
After the data mock rule of the first terminal is obtained on the Appmock platform, when corresponding data needs to be captured, the data mock rule can be configured to the appointed data interface, and therefore filtering, screening and capturing of service data can be achieved through the appointed data interface according to the data mock rule.
Step 207: and the proxy server acquires the plurality of service data to be processed according to the service request.
The service data to be processed refers to the acquired data which needs to be checked and accepted to specify the service scene.
After forwarding the service request to the proxy server, the proxy server may obtain a plurality of service data to be processed according to the service request, and specifically, as shown in fig. 3, the proxy server may capture the service data in the network according to the service request through a monitor (grabber).
After capturing the service data in the network, the captured service data may be saved to the database server.
After the proxy server obtains a plurality of pending service data according to the service request, step 208 is executed.
Step 208: and receiving the plurality of service data to be processed through the specified data interface.
And a data mock rule of the first terminal is configured in advance at the appointed data interface, so that a plurality of pre-acquired to-be-processed service data can be acquired from the database server through the appointed data interface. In the process, the designated data interface may be only used for receiving each to-be-processed service data and matching with the data mock rule of the first terminal.
After receiving a plurality of pending service data through the designated data interface, step 209 is performed.
Step 209: and intercepting target service data matched with the appointed service scene and the uniform resource locator from the plurality of service data to be processed based on the data mock rule.
The target service data refers to service data intercepted from a plurality of pieces of service data to be processed by using a data mock rule, for example, the plurality of pieces of service data to be processed include service data 1, service data 2, and service data 3, and the service data intercepted by using the data mock rule is: and when the service data 2 and the service data 3 are used, the service data 2 and the service data 3 are regarded as target service data.
It should be understood that the above examples are only examples for better understanding of the technical solutions of the embodiments of the present application, and are not to be taken as the only limitation of the embodiments of the present application.
After receiving a plurality of pieces of to-be-processed service data through the designated data interface, the target service data matched with the designated service scene and the uniform resource locator can be intercepted from the plurality of pieces of to-be-processed service data based on the data mock rule.
After the target service data matching with the designated service scenario and the uniform resource locator is intercepted from the plurality of service data to be processed, step 210 is executed.
Step 210: and sending the target service data to the first terminal.
After the target service data of the designated service scene is intercepted, the target service data can be sent to the first terminal so that the first terminal can display the target service data on a terminal screen of the first terminal, specifically, after the target service data is intercepted, the intercepted target service data can be sent to a packet capturing module, the packet capturing module performs packaging processing on the target service data to obtain a service data packet, and therefore the service data packet can be sent to the first terminal in a mail sending mode.
By adopting the mode, the embodiment of the application can set the pre-configured data mock rule on the mock platform, and at the moment, codes do not need to be added in each fixed scene, so that the workload of business personnel can be reduced, and the efficiency of data acquisition is improved.
Step 211: and receiving an authentication request sent by the second terminal.
The second terminal is a request for logging in the Appmock platform when the service data of the service execution scene needs to be received, and the verification request may include a user name and a password input by the second terminal, an ip address of the terminal used by the second terminal, and the like.
After receiving the authentication request sent by the second terminal, step 212 is performed.
Step 212: and after the verification request is successfully verified, controlling the second terminal to access the service platform registered by the data mock rule, so that the second terminal can copy the data mock rule aiming at the specified service scene in the service platform.
After receiving the verification request sent by the second terminal, the verification request can be sent to the Appmock platform, the Appmock platform verifies the verification request sent by the second terminal, and when the verification is successful, the second terminal is controlled to be accessed to the Appmock platform.
After the second terminal is accessed to the Appmock platform, a data mock rule aiming at the specified service scene can be copied from the service platform, so that the second terminal can execute the service data acquisition of the specified service scene according to the rule.
According to the embodiment of the application, by using the Appmock platform, UED acceptance can be relatively comprehensive, and the dependence degree on development is reduced.
According to the data acquisition method provided by the embodiment of the application, the target service data of the specified service scene is obtained by acquiring the plurality of pieces of service data to be processed, intercepting the target service data from the plurality of pieces of service data to be processed based on the data mock rule which is configured for the first terminal in advance and aims at the specified service scene, and the target service data is sent to the first terminal. According to the method and the device, the target service data of the appointed service scene is intercepted by pre-configuring the data mock rule of the appointed service scene, and codes are not required to be written in the fixed service scene, so that the repackaging process is reduced, and the data acceptance efficiency is improved.
EXAMPLE III
A data acquisition apparatus provided in an embodiment of the present application is described in detail.
Referring to fig. 4, a schematic structural diagram of a data acquisition apparatus in an embodiment of the present application is shown.
The data acquisition apparatus 300 according to the embodiment of the present application includes: a service data acquisition module 310, a target data interception module 320 and a target data transmission module 330.
A service data obtaining module 310, configured to obtain a plurality of service data to be processed;
a target data intercepting module 320, configured to intercept target service data of a specified service scene from the multiple pieces of to-be-processed service data based on a data mock rule, configured for the first terminal in advance, for the specified service scene;
a target data sending module 330, configured to send the target service data to the first terminal.
The data acquisition device provided by the embodiment of the application intercepts target service data of a specified service scene from a plurality of pieces of to-be-processed service data by acquiring the plurality of pieces of to-be-processed service data and based on a data mock rule which is configured for the first terminal in advance and aims at the specified service scene, and sends the target service data to the first terminal. According to the method and the device, the target service data of the appointed service scene is intercepted by pre-configuring the data mock rule of the appointed service scene, and codes are not required to be written in the fixed service scene, so that the repackaging process is reduced, and the data acceptance efficiency is improved.
Example four
A data acquisition apparatus provided in an embodiment of the present application is described in detail.
Referring to fig. 5, a schematic structural diagram of another data acquisition apparatus in the embodiment of the present application is shown.
The data acquisition apparatus 400 according to the embodiment of the present application includes: the system comprises a proxy server creating module 410, a service request acquiring module 420, a service request forwarding module 430, a specified service scenario acquiring module 440, a data mock rule compiling module 450, a data mock rule configuring module 460, a service data acquiring module 470, a target data intercepting module 480, a target data sending module 490, a verification request receiving module 4100 and a second terminal access module 4110.
A proxy server creation module 410 for creating a proxy server;
a service request obtaining module 420, configured to obtain a service request sent by the first terminal;
a service request forwarding module 430, configured to forward the service request to the proxy server;
a designated service scene obtaining module 440, configured to obtain a designated service scene and a uniform resource locator, where the first terminal needs to perform data acceptance;
a data mock rule compiling module 450, configured to compile a data mock rule corresponding to the first terminal according to the specified service scenario and the uniform resource locator;
a data mock rule configuration module 460, configured to configure the data mock rule to a specified data interface;
a service data obtaining module 470, configured to obtain a plurality of service data to be processed;
a target data intercepting module 480, configured to intercept target service data of a specified service scene from the multiple pieces of to-be-processed service data based on a data mock rule, configured for the first terminal in advance, for the specified service scene;
a target data sending module 490, configured to send the target service data to the first terminal;
an authentication request receiving module 4100, configured to receive an authentication request sent by a second terminal;
a second terminal access module 4110, configured to control, after the verification of the verification request is successful, the second terminal to access the service platform registered by the data mock rule, so that the second terminal copies the data mock rule for the specified service scenario in the service platform.
Optionally, the service data acquiring module 470 includes:
the service data obtaining submodule 471 is configured to, by the proxy server, obtain the multiple service data to be processed according to the service request.
Optionally, the target data intercepting module 480 includes:
a service data receiving submodule 481, configured to receive the plurality of service data to be processed through the designated data interface;
and a target data intercepting submodule 482, configured to intercept, based on the data mock rule, target service data that is matched with the specified service scene and the uniform resource locator from the multiple pieces of service data to be processed.
The data acquisition device provided by the embodiment of the application intercepts target service data of a specified service scene from a plurality of pieces of to-be-processed service data by acquiring the plurality of pieces of to-be-processed service data and based on a data mock rule which is configured for the first terminal in advance and aims at the specified service scene, and sends the target service data to the first terminal. According to the method and the device, the target service data of the appointed service scene is intercepted by pre-configuring the data mock rule of the appointed service scene, and codes are not required to be written in the fixed service scene, so that the repackaging process is reduced, and the data acceptance efficiency is improved.
EXAMPLE five
Fig. 6 is a schematic diagram of a hardware structure of a terminal device for implementing various embodiments of the present application.
The terminal device 500 includes but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, a processor 510, and a power supply 511. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 6 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present application, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
It should be understood that, in the embodiment of the present application, the radio frequency unit 501 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 510; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 501 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 501 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides the user with wireless broadband internet access through the network module 502, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 503 may convert audio data received by the radio frequency unit 501 or the network module 502 or stored in the memory 509 into an audio signal and output as sound. Also, the audio output unit 503 may also provide audio output related to a specific function performed by the terminal apparatus 500 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 503 includes a speaker, a buzzer, a receiver, and the like.
The input unit 504 is used to receive an audio or video signal. The input Unit 504 may include a Graphics Processing Unit (GPU) 5041 and a microphone 5042, and the Graphics processor 5041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 506. The image frames processed by the graphic processor 5041 may be stored in the memory 509 (or other storage medium) or transmitted via the radio frequency unit 501 or the network module 502. The microphone 5042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 501 in case of the phone call mode.
The terminal device 500 further comprises at least one sensor 505, such as light sensors, motion sensors and other sensors. Specifically, the light sensor includes an ambient light sensor that adjusts the brightness of the display panel 5061 according to the brightness of ambient light, and a proximity sensor that turns off the display panel 5061 and/or a backlight when the terminal device 500 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 505 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 506 is used to display information input by the user or information provided to the user. The Display unit 506 may include a Display panel 5061, and the Display panel 5061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 507 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 507 includes a touch panel 5071 and other input devices 5072. Touch panel 5071, also referred to as a touch screen, may collect touch operations by a user on or near it (e.g., operations by a user on or near touch panel 5071 using a finger, stylus, or any suitable object or attachment). The touch panel 5071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 510, and receives and executes commands sent by the processor 510. In addition, the touch panel 5071 may be implemented in various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 5071, the user input unit 507 may include other input devices 5072. In particular, other input devices 5072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 5071 may be overlaid on the display panel 5061, and when the touch panel 5071 detects a touch operation thereon or nearby, the touch operation is transmitted to the processor 510 to determine the type of the touch event, and then the processor 510 provides a corresponding visual output on the display panel 5061 according to the type of the touch event. Although in fig. 6, the touch panel 5071 and the display 5061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 5071 and the display 5061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 508 is an interface for connecting an external device to the terminal apparatus 500. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 508 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 500 or may be used to transmit data between the terminal apparatus 500 and the external device.
The memory 509 may be used to store software programs as well as various data. The memory 509 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 509 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device.
The processor 510 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 509 and calling data stored in the memory 509, thereby performing overall monitoring of the terminal device. Processor 510 may include one or more processing units; preferably, the processor 510 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 510.
The terminal device 500 may further include a power supply 511 (e.g., a battery) for supplying power to various components, and preferably, the power supply 511 may be logically connected to the processor 510 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system.
In addition, the terminal device 500 includes some functional modules that are not shown, and are not described in detail herein.
Preferably, an embodiment of the present application further provides a terminal device, including: the processor 510, the memory 509, and a computer program stored in the memory 509 and capable of running on the processor 510, where the computer program, when executed by the processor 510, implements each process of the data acquisition method embodiment, and can achieve the same technical effect, and are not described herein again to avoid repetition.
The embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the data acquisition method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.
Those of ordinary skill in the art would appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed in the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A method of data acquisition, comprising:
acquiring a plurality of service data to be processed;
intercepting target service data of a specified service scene from the plurality of to-be-processed service data based on a data mock rule which is configured for a first terminal in advance and aims at the specified service scene;
and sending the target service data to the first terminal.
2. The method according to claim 1, further comprising, before said obtaining a plurality of pending service data:
creating a proxy server;
acquiring a service request sent by the first terminal;
forwarding the service request to the proxy server;
the acquiring a plurality of service data to be processed includes:
and the proxy server acquires the plurality of service data to be processed according to the service request.
3. The method according to claim 1, further comprising, before said obtaining a plurality of pending service data:
acquiring a designated service scene and a uniform resource locator of the first terminal, wherein the designated service scene and the uniform resource locator are required to be subjected to data acceptance;
compiling a data mock rule corresponding to the first terminal according to the appointed service scene and the uniform resource locator;
and configuring the data mock rule to a specified data interface.
4. The method according to claim 3, wherein the intercepting target service data of a specific service scenario from the plurality of to-be-processed service data based on a data mock rule configured for the first terminal in advance for the specific service scenario comprises:
receiving the plurality of to-be-processed service data through the designated data interface;
and intercepting target service data matched with the appointed service scene and the uniform resource locator from the plurality of service data to be processed based on the data mock rule.
5. The method according to claim 3, wherein after the writing of the data mock rule corresponding to the first terminal according to the specified service scenario, the method further comprises:
receiving a verification request sent by a second terminal;
and after the verification request is successfully verified, controlling the second terminal to access the service platform registered by the data mock rule, so that the second terminal can copy the data mock rule aiming at the specified service scene in the service platform.
6. A data acquisition apparatus, comprising:
the service data acquisition module is used for acquiring a plurality of service data to be processed;
the target data interception module is used for intercepting target service data of a specified service scene from the plurality of to-be-processed service data based on a data mock rule which is configured for the first terminal in advance and aims at the specified service scene;
and the target data sending module is used for sending the target service data to the first terminal.
7. The apparatus of claim 6, further comprising:
the proxy server creating module is used for creating a proxy server;
a service request obtaining module, configured to obtain a service request sent by the first terminal;
a service request forwarding module, configured to forward the service request to the proxy server;
the service data acquisition module comprises:
and the service data acquisition submodule is used for acquiring the plurality of service data to be processed by the proxy server according to the service request.
8. The apparatus of claim 6, further comprising:
the designated service scene acquisition module is used for acquiring a designated service scene and a uniform resource locator which are required to be subjected to data acceptance by the first terminal;
the data mock rule compiling module is used for compiling and obtaining a data mock rule corresponding to the first terminal according to the specified service scene and the uniform resource locator;
and the data mock rule configuration module is used for configuring the data mock rule to a specified data interface.
9. A terminal device, comprising: memory, processor and computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing a data acquisition method as claimed in any one of claims 1 to 5.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, implements the data acquisition method according to any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911405836.9A CN111209031B (en) | 2019-12-30 | 2019-12-30 | Data acquisition method, device, terminal equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911405836.9A CN111209031B (en) | 2019-12-30 | 2019-12-30 | Data acquisition method, device, terminal equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111209031A true CN111209031A (en) | 2020-05-29 |
CN111209031B CN111209031B (en) | 2024-02-02 |
Family
ID=70788327
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911405836.9A Active CN111209031B (en) | 2019-12-30 | 2019-12-30 | Data acquisition method, device, terminal equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111209031B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111752625A (en) * | 2020-06-23 | 2020-10-09 | 京东数字科技控股有限公司 | Method and device for interface mock |
CN113392093A (en) * | 2021-07-09 | 2021-09-14 | 中国建设银行股份有限公司 | Service processing method and device, electronic equipment and computer readable medium |
CN115516830A (en) * | 2021-06-25 | 2022-12-23 | 商汤国际私人有限公司 | Scene equipment management method, device, server and computer storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018108035A1 (en) * | 2016-12-13 | 2018-06-21 | 腾讯科技(深圳)有限公司 | Information processing and virtual resource exchange method, apparatus, and device |
CN108346028A (en) * | 2017-01-24 | 2018-07-31 | 阿里巴巴集团控股有限公司 | A kind of business approval processing method, apparatus and system |
CN109842617A (en) * | 2019-01-03 | 2019-06-04 | 深圳壹账通智能科技有限公司 | Ad blocking method, apparatus and storage medium |
-
2019
- 2019-12-30 CN CN201911405836.9A patent/CN111209031B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018108035A1 (en) * | 2016-12-13 | 2018-06-21 | 腾讯科技(深圳)有限公司 | Information processing and virtual resource exchange method, apparatus, and device |
CN108346028A (en) * | 2017-01-24 | 2018-07-31 | 阿里巴巴集团控股有限公司 | A kind of business approval processing method, apparatus and system |
CN109842617A (en) * | 2019-01-03 | 2019-06-04 | 深圳壹账通智能科技有限公司 | Ad blocking method, apparatus and storage medium |
Non-Patent Citations (1)
Title |
---|
余雪勇;唐城;朱晓荣;: "泛在网下基于上下文感知的虚拟终端技术研究" * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111752625A (en) * | 2020-06-23 | 2020-10-09 | 京东数字科技控股有限公司 | Method and device for interface mock |
CN115516830A (en) * | 2021-06-25 | 2022-12-23 | 商汤国际私人有限公司 | Scene equipment management method, device, server and computer storage medium |
CN113392093A (en) * | 2021-07-09 | 2021-09-14 | 中国建设银行股份有限公司 | Service processing method and device, electronic equipment and computer readable medium |
Also Published As
Publication number | Publication date |
---|---|
CN111209031B (en) | 2024-02-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111142930B (en) | Installation package file packaging method and device, terminal device and storage medium | |
WO2017118437A1 (en) | Service processing method, device, and system | |
CN109905380B (en) | Node control method and related device in distributed system | |
US20150302215A1 (en) | Sensitive operation verification method, terminal device, server, and verification system | |
CN111597542B (en) | Verification information sharing method and device, electronic equipment and storage medium | |
CN110166439B (en) | Equipment sharing method, terminal, router and server | |
CN110457888B (en) | Verification code input method and device, electronic equipment and storage medium | |
CN111598573B (en) | Equipment fingerprint verification method and device | |
CN108475304B (en) | Method and device for associating application program and biological characteristics and mobile terminal | |
CN111209031B (en) | Data acquisition method, device, terminal equipment and storage medium | |
WO2021115220A1 (en) | Information sharing method, electronic device and computer-readable storage medium | |
CN109271779A (en) | A kind of installation packet inspection method, terminal device and server | |
CN111597540B (en) | Login method of application program, electronic device and readable storage medium | |
CN108984231A (en) | A kind of login method and mobile terminal of application program account | |
CN110225040B (en) | Information processing method and terminal equipment | |
CN107995151B (en) | Login verification method, device and system | |
CN110069407B (en) | Function test method and device for application program | |
CN109600340A (en) | Authorization method, apparatus, terminal and server | |
CN108346031B (en) | Data interaction method and system | |
CN107204977B (en) | Interface security verification method and device and computer readable storage medium | |
CN112486567B (en) | Method and device for sending merging request of codes, electronic equipment and storage medium | |
CN111200648B (en) | Service calling method, device, terminal equipment and storage medium | |
CN111159738B (en) | Authority configuration method, application login method and device | |
CN109992939B (en) | Login method and terminal equipment | |
CN108319432A (en) | A kind of application operation method and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |