CN111930422B - Information acquisition method, device, server and storage medium - Google Patents

Information acquisition method, device, server and storage medium Download PDF

Info

Publication number
CN111930422B
CN111930422B CN202010910220.3A CN202010910220A CN111930422B CN 111930422 B CN111930422 B CN 111930422B CN 202010910220 A CN202010910220 A CN 202010910220A CN 111930422 B CN111930422 B CN 111930422B
Authority
CN
China
Prior art keywords
configuration file
client
information
function
point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010910220.3A
Other languages
Chinese (zh)
Other versions
CN111930422A (en
Inventor
张�浩
陈锋
郭峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Duxiaoman Payment Technology Co ltd
Du Xiaoman Technology Beijing Co Ltd
Original Assignee
Du Xiaoman Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Du Xiaoman Technology Beijing Co Ltd filed Critical Du Xiaoman Technology Beijing Co Ltd
Priority to CN202010910220.3A priority Critical patent/CN111930422B/en
Publication of CN111930422A publication Critical patent/CN111930422A/en
Application granted granted Critical
Publication of CN111930422B publication Critical patent/CN111930422B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides an information acquisition method, an information acquisition device, a server and a storage medium, wherein a first configuration file in a client is determined in response to a client starting operation, the first configuration file is the configuration file of the highest version in the current client, and the first configuration file is the configuration file preset in the client or the configuration file returned by the history of the server; performing point burying operation on a function indicated by a first configuration file in the client; sending a file acquisition request to the server and determining a second configuration file returned by the server in response to the file acquisition request, wherein the second configuration file is the configuration file of the highest version in the current server; and determining a target client according to the version comparison result of the first configuration file and the second configuration file, and collecting information to be collected, which is indicated by the embedded point operation, when the function after the embedded point operation is carried out in the target client is called. Based on the invention, the acquisition of the client information is realized on the basis of reducing the user flow and saving the server resources.

Description

Information acquisition method, device, server and storage medium
Technical Field
The present invention relates to the field of internet technologies, and in particular, to an information collection method, an information collection device, a server, and a storage medium.
Background
Currently, application programs are more and more rich in functions, and manufacturers often need to count the use condition of the application programs by users in order to improve the application programs to continuously improve the user experience. The prior art is based on embedding point operation performed on all functions in an application program client in advance, realizes acquisition of client information, and uploads the acquired information to a server. The information acquisition mode not only needs the client to upload a large amount of data to the server, but also wastes the user flow; moreover, after the server receives a large amount of data sent by the client, the data needs to be filtered and filtered to obtain the required data, and server resources are wasted.
Disclosure of Invention
In view of the above, the present invention provides an information collection method, device, server and storage medium, so as to achieve collection of client information on the basis of reducing user traffic and saving server resources. The technical proposal is as follows:
the first aspect of the invention discloses an information acquisition method, which comprises the following steps:
determining a first configuration file in a client in response to a client starting operation, wherein the first configuration file is the configuration file of the highest version in the client at present, and the first configuration file is a preset configuration file in the client or a configuration file returned by a server history;
Performing point burying operation on the function indicated by the first configuration file in the client;
sending a file acquisition request to the server and determining a second configuration file returned by the server in response to the file acquisition request, wherein the second configuration file is the configuration file of the highest version in the current server;
and determining a target client according to the version comparison result of the first configuration file and the second configuration file, and collecting information to be collected, which is indicated by the embedded point operation, when a function after the embedded point operation is carried out in the target client is called.
Optionally, the determining, according to the version comparison result of the first configuration file and the second configuration file, the target client for implementing client information acquisition includes:
judging whether the version of the first configuration file is not lower than the version of the second configuration file;
if the version of the first configuration file is not lower than the version of the second configuration file, determining the client after the function indicated by the first configuration file is subjected to the embedded point operation as a target client for realizing client information acquisition;
if the version of the first configuration file is lower than the version of the second configuration file, releasing the embedded point operation of the function indicated by the first configuration file in the client;
And performing point burying operation on the function indicated by the second configuration file in the client, and determining the client after the point burying operation is performed on the function indicated by the second configuration file as a target client for realizing client information acquisition.
Optionally, the method further comprises:
and if the server responds to the file acquisition request and does not return the second configuration file, determining the client after the function indicated by the first configuration file is subjected to the embedded point operation as a target client for realizing client information acquisition.
Optionally, the first configuration file/the second configuration file carries at least one piece of embedding point information, and performing embedding point operation on the function indicated by the first configuration file/the second configuration file in the client includes performing embedding point operation on the function indicated by each piece of embedding point information carried by the first configuration file/the second configuration file in the client;
performing the embedding operation on the function indicated by the embedding information in the client includes:
acquiring function names and information names carried by the embedded point information, wherein the function names are function names of functions to be subjected to information acquisition in the client, and the information names are information names of information to be acquired in the client;
Determining a function buried point template, wherein a to-be-filled item is arranged in the function buried point template;
filling the information names into items to be filled of the function buried point template to generate function buried point information;
and injecting the function embedded point information into a function corresponding to the function name in the client.
Optionally, the embedded point information further carries a function nickname that uniquely characterizes a function corresponding to the function name, and the method further includes:
and generating an information acquisition result of the client, wherein the information acquisition result comprises acquisition information of each piece of buried point information, and the acquisition information of the buried point information comprises a function nickname carried by the buried point information and information acquired when a function corresponding to the function name carried by the buried point information is called.
Optionally, the removing the embedding operation of the function indicated by the first configuration file in the client includes:
and deleting the function embedded point information which is injected in the function indicated by the first configuration file in the client.
Optionally, the method further comprises: and uploading the information acquisition result of the client to the server.
The second aspect of the present invention discloses an information acquisition device, comprising:
The first determining unit is used for determining a first configuration file in the client in response to the client starting operation, wherein the first configuration file is the configuration file of the highest version in the current client, and the first configuration file is the preset configuration file in the client or the configuration file returned by the server history;
the operation unit is used for performing point burying operation on the function indicated by the first configuration file in the client;
the second determining unit is used for sending a file acquisition request to the server and determining a second configuration file returned by the server in response to the file acquisition request, wherein the second configuration file is the configuration file of the highest version in the current server;
the information acquisition unit is used for determining a target client according to the version comparison result of the first configuration file and the second configuration file, and acquiring information to be acquired, indicated by the embedded point operation, when a function after the embedded point operation is performed in the target client is called.
A third aspect of the present invention discloses a server comprising: at least one memory and at least one processor; the memory stores a program, and the processor invokes the program stored in the memory, where the program is configured to implement the information collecting method disclosed in any one of the first aspect of the present invention.
A fourth aspect of the present invention discloses a computer-readable storage medium having stored therein computer-executable instructions for performing the information acquisition method as disclosed in any one of the above-described first aspects of the present invention.
The invention provides an information acquisition method, a device, a server and a storage medium, which can respond to client starting operation, perform embedded point operation on a client according to a function indicated by a configuration file of a highest version in a current client, acquire the configuration file of the highest version in the current server, determine a final embedded point result (namely, determine a final target client) of the client according to the configuration file of the highest version in the current client and the configuration file of the highest version in the current server, and acquire information to be acquired of embedded point operation indication when the target client is involved in invoking the function for embedded point operation in the target client during operation, thereby realizing client information acquisition. According to the method and the system, point burying operation is not needed to be carried out on all functions in the client in advance, flexible configuration of the point burying functions in the client is achieved, operation and maintenance personnel can bury the functions in the client according to needs, user flow is reduced, and server resources are saved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an information acquisition method according to an embodiment of the present invention;
fig. 2 is an exemplary diagram of a preset target position according to an embodiment of the present invention;
fig. 3 is a schematic flow chart of another information collection method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an information acquisition device according to an embodiment of the present invention;
fig. 5 is a block diagram of a server according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In this application, 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 one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As can be seen from the above background art, in order to improve the application program to continuously enhance the user experience, manufacturers often need to count the usage of the application program by the user. In the prior art, when an application program client is developed, all functions in the client are buried point operation, and the client downloaded by a user is the client which has undergone the buried point operation; when the operation of the user on the client is detected, the acquisition of the client information is realized by calling a function for performing embedded point operation in the client, and the acquired client information is uploaded to a server. The information acquisition method not only needs the client to upload a large amount of data to the server and wastes the user flow; and after the server receives a large amount of data sent by the client, the data needs to be filtered and screened to obtain the required data, so that server resources are wasted.
Therefore, the embodiment of the invention provides an information acquisition method, an information acquisition device, a server and a storage medium, which can realize acquisition of client information on the basis of reducing user flow and saving server resources.
Referring to fig. 1, a flow chart of an information acquisition method provided by an embodiment of the present invention is shown, where the information acquisition method specifically includes the following steps:
s101: determining a first configuration file in the client in response to the client starting operation, wherein the first configuration file is the configuration file of the highest version in the current client, and the first configuration file is a preset configuration file in the client or a configuration file returned by a server history;
in the embodiment of the application, the application program is implemented when the client and the server interact. A configuration file can be preset in the client when the client is developed; the application can take the configuration file set in the client side when the client side is developed as an initial configuration file; the operation and maintenance personnel can set the configuration file at the server side, and when the operation and maintenance personnel set the configuration file at the server side, the version number of the version of the configuration file can be preset. The present application may consider that the version of the configuration file set in the client is smaller than the version of the configuration file set by the operation and maintenance personnel at the server side. And the version of the last returned configuration file is higher than the version of the last returned configuration file adjacent to the last returned configuration file in the configuration files returned by the server history.
The above preferred manner of setting the version sizes of the configuration files in the client provided in the embodiments of the present application relates to a specific manner of setting the version sizes of the configuration files in the client, and the inventor can set the configuration files according to his own needs.
In the specific execution process of step S101, when a client start operation is detected, judging whether the client stores a configuration file returned by the server history, if so, determining the configuration file with the highest version in the configuration files returned by the server history as the first configuration file of the client; if the client does not store the configuration file returned by the server history, determining the preset configuration file in the client as the first configuration file of the client.
S102: performing point burying operation on a function indicated by a first configuration file in a client;
in the embodiment of the application, the first configuration file carries at least one piece of embedded point information, and the embedded point operation is performed on the function indicated by each piece of embedded point information carried by the first configuration file in the client.
In this embodiment of the present application, a manner of performing a point embedding operation on a function indicated by point embedding information carried by a first configuration file in a client may be: acquiring function names and information names carried by buried point information carried by a first configuration file, and determining a preset function buried point template; and filling the acquired information names into preset items to be filled in the determined preset function embedded point templates, generating function embedded point information, and further injecting the function embedded point information into a function corresponding to the function names. The function name is the function name of the function to be subjected to information acquisition in the client, and the information name is the information name of the information to be acquired in the client. For example, the information name of the information to be collected at the client may be system time, CPU utilization, and the like.
In this embodiment of the present application, a target position is preset, and a manner of injecting function embedding point information into a function corresponding to a function name may be: after the information names carried by the embedded point information are filled into the items to be filled of the function embedded point template to generate function embedded point information, the generated function embedded point information is used as a hook function to be injected into a target position of a function corresponding to the function names in the client, and then function information embedded point operation indicated by the embedded point information in the client is completed.
In the embodiment of the present application, the target location may be set in advance after the function corresponding to the function name in the calling client and before the function corresponding to the function name is executed, as shown in fig. 2.
Further, in this embodiment of the present application, if the embedded point information carried by the first configuration file carries at least one information name, a manner of filling the information name into the to-be-filled item of the function embedded point template to generate the function embedded point information may be: splicing at least one information name carried by the embedded point information to generate a target information name, filling the target information name into items to be filled of the function embedded point template, and generating the function embedded point information.
For example, the embedded point information carries 2 information names, namely the system time and the CPU utilization rate, the system time and the CPU utilization rate are spliced to obtain a target information name, namely the system time and the CPU utilization rate, the target information name is filled into items to be filled of the function embedded point template, and the function embedded point information is generated.
S103: sending a file acquisition request to a server, and determining a second configuration file returned by the server in response to the file acquisition request;
in the embodiment of the application, after performing the point burying operation on the function indicated by the first configuration file in the client, a file acquisition request is sent to the server; and when the configuration file returned by the server in response to the file acquisition request is detected, receiving the configuration file returned by the server, wherein the configuration file received by the server is called a second configuration file for convenience of distinguishing. The second configuration file is the configuration file of the highest version in the current server.
In this embodiment of the present application, the operation and maintenance personnel may set the configuration file at the server side, and the specific setting process may be: after a product manager responsible for the business confirms at least one piece of buried point information, an operation and maintenance personnel creates a configuration file based on a buried point management platform; filling the confirmed at least one piece of embedded point information into the created configuration file, and checking whether the configuration file meets the embedded point requirement; if the embedded point requirement is met, taking the configuration file which currently meets the embedded point requirement as the configuration file created by the embedded point management platform, and distributing a version number for the configuration file which is currently created (after distributing the version number for the configuration file which is currently created, the configuration file which is currently created can be considered to carry the version number distributed for the configuration file); if the embedded point requirement is not met, at least one piece of embedded point information filled in the configuration file is adjusted, and whether the adjusted configuration file meets the embedded point requirement is checked; if the embedded point requirement is met, taking the adjusted configuration file as the configuration file created by the embedded point management platform, and distributing a version number for the configuration file which is currently created; if the embedded point requirement is not met, returning to execute the adjustment of at least one piece of embedded point information filled in the configuration file. It should be noted that, the version number allocated to the currently created configuration file is higher than the version number of the configuration file in the current server, and the higher the version number of the configuration file is, the higher the version of the configuration file is. The embedded point requirement is a requirement of carrying out data statistics or data analysis by a product manager, and is divided and refined into data acquisition requirements formed by each user behavior event needing statistics.
Further, after assigning a version number to the currently created configuration file, the configuration file carrying the version number assigned thereto may also be stored in the server. Further, after the configuration file is stored in the server, other versions of the configuration file except the configuration file in the server may be deleted.
Further, in the embodiment of the present application, the client may query the version number of the highest version of the configuration file in the server at regular time, obtain the version number of the highest version of the configuration file in the local client, compare the version number of the highest version of the configuration file in the server with the version number of the highest version of the configuration file in the local client, and if the version number of the highest version of the configuration file in the server is higher than the version number of the highest version of the configuration file in the local client, obtain the highest version of the configuration file from the server, and store the obtained highest version of the configuration file to the local client; if not, waiting for the next inquiry.
S104: and determining a target client according to the version comparison result of the first configuration file and the second configuration file, and collecting information to be collected, which is indicated by the embedded point operation, when the function after the embedded point operation is carried out in the target client is called.
In the embodiment of the application, after the second configuration file returned by the server in response to the file acquisition request is detected, determining the version of the second configuration file and determining the version of the first configuration file; comparing the version of the first configuration file with the version of the second configuration file; and under the condition that the version of the first configuration file is not lower than that of the second configuration file, determining the client after the function indicated by the first configuration file is subjected to the embedded point operation as a target client for realizing the information acquisition of the client, so that the function after the embedded point operation is called in the target client to acquire information to be acquired, wherein the information to be acquired is indicated by the embedded point operation.
And under the condition that the version of the first configuration file is lower than that of the second configuration file, after the embedding operation of the function indicated by the first configuration file in the client is released, the embedding operation of the function indicated by the second configuration file in the client is carried out, and the client after the embedding operation of the function indicated by the second configuration file is determined to be a target client for realizing the information acquisition of the client, so that the function after the embedding operation in the target client is called to acquire information to be acquired, wherein the information to be acquired is indicated by the embedding operation.
The invention provides an information acquisition method, which can respond to client starting operation, perform point embedding operation on a client according to a function indicated by a configuration file of a highest version in a current client, acquire the configuration file of the highest version in the current server, determine a final point embedding result (namely, determine a final target client) of the client according to the configuration file of the highest version in the current client and the configuration file of the highest version in the current server, and acquire information to be acquired indicated by the point embedding operation when the target client is involved in invoking the function for the point embedding operation in the target client in operation, thereby realizing client information acquisition. According to the method and the system, point burying operation is not needed to be carried out on all functions in the client in advance, flexible configuration of the point burying functions in the client is achieved, operation and maintenance personnel can bury the functions in the client according to needs, user flow is reduced, and server resources are saved.
Referring to fig. 3, a flow chart of another information collection method provided in an embodiment of the present application is shown, where the information collection method specifically includes the following steps:
s301: determining a first configuration file in the client in response to the client starting operation, wherein the first configuration file is the configuration file of the highest version in the current client, and the first configuration file is a preset configuration file in the client or a configuration file returned by a server history;
In the process of specifically executing step S301, the specific execution process and implementation principle of step S301 are the same as those of step S101 in fig. 1 disclosed in the foregoing embodiment of the present application, and reference may be made to the corresponding parts in fig. 1 disclosed in the foregoing embodiment of the present application, and no further description is given here.
S302: performing point burying operation on a function indicated by a first configuration file in a client;
in the process of specifically executing step S302, the specific execution process and implementation principle of step S302 are the same as the specific execution process and implementation principle of step S102 in fig. 1 disclosed in the above-mentioned embodiments of the present application, and reference may be made to the corresponding parts in fig. 1 disclosed in the above-mentioned embodiments of the present application, and no further description is given here.
S303: sending a file acquisition request to a server;
s304: judging whether a second configuration file returned by the server in response to the file acquisition request is received or not; if a second configuration file returned by the server in response to the file acquisition request is received, executing step S305; if the second configuration file returned by the server in response to the file acquisition request is not received, executing step S306;
in the embodiment of the application, after performing the point burying operation on the function indicated by the first configuration file in the client, a file acquisition request is sent to the server, and whether a second configuration file returned by the server in response to the file acquisition request is received is judged; if a second configuration file returned by the server in response to the file acquisition request is received, determining a target client according to a version comparison result of the first configuration file and the second configuration file; if the second configuration file returned by the server in response to the file acquisition request is not received, the client after the function indicated by the first configuration file is subjected to the embedded point operation can be directly determined as the target client for realizing the client information acquisition.
S305: judging whether the version of the first configuration file is not lower than the version of the second configuration file; if the version of the first configuration file is not lower than the version of the second configuration file, executing step S306; if the version of the first configuration file is lower than the version of the second configuration file, step S307 is performed.
In the embodiment of the application, after receiving the second configuration file returned by the server in response to the file acquisition request, determining the version of the second configuration file and determining the version of the first configuration file; comparing the version of the first configuration file with the version of the second configuration file; if the version of the first configuration file is not lower than that of the second configuration file, the client after the function indicated by the first configuration file is subjected to the embedded point operation can be determined as a target client for realizing client information acquisition; if the version of the first configuration file is lower than the version of the second configuration file, step S307 is performed.
S306: determining the client after the function indicated by the first configuration file is subjected to the embedded point operation as a target client for realizing client information acquisition;
in the specific execution process of step S306, the client after performing the embedding operation on the function indicated by the first configuration file is determined as the target client for implementing the client information acquisition, where the second configuration file returned by the server in response to the file acquisition request is not received, or where the version of the first configuration file is not lower than the version of the second configuration file.
Further, in the embodiment of the present application, the embedded point information carried by the first configuration file carries, in addition to the function name and the information name, a function nickname that uniquely characterizes the function corresponding to the function name. After the function embedded point information is generated according to the information name carried by the embedded point information, the function embedded point information is injected into the function indicated by the function name carried by the embedded point information, so that when the function is called, information acquisition can be carried out based on the function embedded point information injected into the function to obtain an information acquisition result, the information acquisition result can be considered as the information acquisition result of the embedded point information, the generated information acquisition result is identified by utilizing the function nickname of the function corresponding to the function name carried by the embedded point information, and a user can find the information acquisition result which the user wants to check according to the nickname when checking the information acquisition result. And taking the information acquisition results of all the embedded point information in the configuration file as the information acquisition results of the client, and uploading the information acquisition results of the client to the server.
For example, the function didFinishLoadWithWebView URL the corresponding function nickname may be #light_App_End_Load. The inventors can set the nickname of the function according to their own requirements, and the embodiments of the present application are not limited.
In the implementation of the present application, after step S306 is performed, step S309 is performed.
S307: and releasing the embedded point operation of the function indicated by the first configuration file in the client.
In the embodiment of the application, under the condition that the version of the first configuration file is lower than that of the second configuration file, determining a function indicated by the embedded point information carried by the first configuration file in the client, and deleting the embedded point information of the function injected in the determined function. After the embedded point information of the function which is injected in the current client is deleted, the embedded point operation can be performed on the function which is indicated by the embedded point information carried by the second configuration file in the client, so that the embedded point operation which is executed according to the second configuration file is matched with the configuration file.
S308: performing point burying operation on the function indicated by the second configuration file in the client, and determining the client after the point burying operation is performed on the function indicated by the second configuration file as a target client for realizing client information acquisition;
in the embodiment of the application, the second configuration file carries at least one piece of embedded point information, the embedded point operation is performed on the function indicated by each piece of embedded point information carried by the second configuration file in the client, and then the client after the embedded point operation is performed on the function indicated by the second configuration file is determined to be the target client for realizing the information acquisition of the client.
In this embodiment of the present application, a manner of performing the embedding operation on the function indicated by the embedding information carried by the second configuration file in the client may be: acquiring function names and information names carried by buried point information carried by the second configuration file, and determining a preset function buried point template; and filling the acquired information names into preset items to be filled in the determined preset function embedded point templates, generating function embedded point information, and further injecting the function embedded point information into a function corresponding to the function names. The function name is the function name of the function to be subjected to information acquisition in the client, and the information name is the information name of the information to be acquired in the client.
In this embodiment of the present application, if the embedded point information carried by the second configuration file carries at least one information name, a manner of filling the information name into the item to be filled of the function embedded point template to generate the function embedded point information may be: splicing at least one information name carried by the embedded point information to generate a target information name, filling the target information name into items to be filled of the function embedded point template, and generating the function embedded point information.
In this embodiment of the present application, a target position is preset, and a manner of injecting function embedding point information into a function corresponding to a function name may be: after the information names carried by the embedded point information are filled into the items to be filled of the function embedded point template to generate function embedded point information, the generated function embedded point information is used as a hook function to be injected into a target position of a function corresponding to the function names in the client, and then function information embedded point operation indicated by the embedded point information in the client is completed. The manner of the preset target position may be referred to in fig. 2, and details thereof will not be described herein.
In this embodiment of the present application, the embedded point information carried by the second configuration file carries, in addition to the function name and the information name, a function nickname that uniquely characterizes a function corresponding to the function name.
Determining the client after determining to perform the point burying operation on the function indicated by the second configuration file as a target client for realizing client information acquisition; when a function after the point burying operation is performed in the target client is called, information collection can be performed based on function point burying information injected into the function to obtain an information collection result, the information collection result can be regarded as the information collection result of the point burying information, the generated information collection result is identified by utilizing a function nickname of the function corresponding to the function name carried by the point burying information, and a user can conveniently find the information collection result which the user wants to check according to the function nickname when checking the information collection result. And taking the information acquisition results of all the embedded point information in the configuration file as the information acquisition results of the client, and uploading the information acquisition results of the client to the server.
S309: and collecting information to be collected indicated by the embedded point operation when the function after the embedded point operation is carried out in the target client is called.
In the embodiment of the application, judging whether a second configuration file returned by the server in response to the file acquisition request is received or not; under the condition that a second configuration file returned by the server in response to the file acquisition request is not received, determining the client after the function indicated by the first configuration file is subjected to the embedded point operation as a target client for realizing the information acquisition of the client, so that the information to be acquired indicated by the embedded point operation can be acquired when the target client is involved in calling the function for the embedded point operation in the target client during operation, and further realizing the information acquisition of the client.
Under the condition that a second configuration file returned by the server in response to the file acquisition request is received, further judging whether the version of the first configuration file is not lower than the version of the second configuration file, and under the condition that the version of the first configuration file is not lower than the version of the second configuration file, determining a client after the function indicated by the first configuration file is subjected to the embedded point operation as a target client for realizing the information acquisition of the client; under the condition that the version of the first configuration file is lower than that of the second configuration file, the embedding operation of the function indicated by the first configuration file in the client is relieved, the embedding operation of the function indicated by the second configuration file in the client is conducted, the client after the embedding operation of the function indicated by the second configuration file is further determined to be a target client for realizing client information acquisition, so that information to be acquired indicated by the embedding operation can be acquired when the target client is involved in invoking the function for conducting the embedding operation in the target client in operation, and further client information acquisition is realized.
According to the method and the device, point burying operation can be carried out on all functions in the client in advance, flexible configuration of the point burying functions in the client is achieved based on the configuration file, operation and maintenance personnel can bury the functions in the client according to the requirement, user flow is reduced, and server resources are saved.
Corresponding to the information collecting method disclosed in the above embodiment of the present invention, referring to fig. 4, the implementation of the present invention further provides a schematic structural diagram of an information collecting device, where the information collecting device includes:
a first determining unit 41, configured to determine, in response to a client start operation, a first configuration file in the client, where the first configuration file is a configuration file of a highest version in the current client, and the first configuration file is a configuration file preset in the client or a configuration file returned by a server history;
an operation unit 42, configured to perform a point burying operation on a function indicated by the first configuration file in the client;
a second determining unit 43, configured to send a file obtaining request to the server and determine a second configuration file returned by the server in response to the file obtaining request, where the second configuration file is a configuration file of a highest version in the current server;
the information collection unit 44 is configured to determine a target client according to the version comparison result of the first configuration file and the second configuration file, and collect information to be collected indicated by the embedded point operation when the function after the embedded point operation is performed in the target client is called.
The specific principle and execution process of each unit in the information acquisition device disclosed in the above embodiment of the present invention are the same as those of the information acquisition method disclosed in fig. 1 of the above embodiment of the present invention, and reference may be made to the corresponding parts in the information acquisition method disclosed in fig. 1 of the above embodiment of the present invention, and no further description is given here.
The invention provides an information acquisition device, which can respond to a client starting operation, perform point embedding operation on a client according to a function indicated by a configuration file of a highest version in a current client, acquire the configuration file of the highest version in the current server, determine a final point embedding result (namely, determine a final target client) of the client according to the configuration file of the highest version in the current client and the configuration file of the highest version in the current server, and acquire information to be acquired indicated by the point embedding operation when the target client is involved in invoking the function for performing the point embedding operation in the target client in operation, thereby realizing information acquisition of the client. According to the method and the system, point burying operation is not needed to be carried out on all functions in the client in advance, flexible configuration of the point burying functions in the client is achieved, operation and maintenance personnel can bury the functions in the client according to needs, user flow is reduced, and server resources are saved.
Preferably, the information acquisition unit includes:
a first judging unit for judging whether the version of the first configuration file is not lower than the version of the second configuration file;
the third determining unit is used for determining the client after the function indicated by the first configuration file is subjected to the embedded point operation as a target client for realizing client information acquisition if the version of the first configuration file is not lower than the version of the second configuration file;
the releasing unit is used for releasing the embedded point operation of the function indicated by the first configuration file in the client if the version of the first configuration file is lower than that of the second configuration file;
and the fourth determining unit is used for performing point burying operation on the function indicated by the second configuration file in the client, and determining the client after the point burying operation is performed on the function indicated by the second configuration file as a target client for realizing client information acquisition.
Further, the information acquisition device provided in the embodiment of the present application further includes:
and the fifth determining unit is used for determining the client after the function indicated by the first configuration file is buried as a target client for realizing client information acquisition if the server does not return the second configuration file in response to the file acquisition request.
Preferably, the first configuration file/second configuration file carries at least one piece of embedded point information, and the embedded point operation on the function indicated by the first configuration file/second configuration file in the client comprises the embedded point operation on the function indicated by each piece of embedded point information carried by the first configuration file/second configuration file in the client;
the operation unit is specifically configured to perform point burying operation on a function indicated by point burying information in the client, and includes:
the acquisition unit is used for acquiring function names and information names carried by the embedded point information, wherein the function names are function names of functions to be subjected to information acquisition in the client, and the information names are information names of information to be acquired in the client;
a sixth determining unit, configured to determine a function buried point template, where a to-be-filled item is set in the function buried point template;
the filling unit is used for filling the information names into items to be filled of the function buried point template to generate function buried point information;
and the injection unit is used for injecting the function embedded point information into the function corresponding to the function name in the client.
Further, the information acquisition device provided in the embodiment of the present application further includes:
the generation unit is used for generating an information acquisition result of the client, wherein the information acquisition result comprises acquisition information of each piece of buried point information, and the acquisition information of the buried point information comprises a function nickname carried by the buried point information and information acquired when a function corresponding to the function name carried by the buried point information is called.
Preferably, the release unit includes:
and the deleting unit is used for deleting the function embedded point information which is injected into the function indicated by the first configuration file in the client.
Further, the information acquisition device provided in the embodiment of the present application further includes:
and the uploading unit is used for uploading the information acquisition result of the client to the server.
The following describes in detail a hardware structure of a server to which the information collection method provided in the embodiment of the present application is applicable, taking an example that the information collection method is applied to the server.
The information acquisition method provided by the embodiment of the application can be applied to a server, and the server can be service equipment for providing services for users by a network side, and can be a server cluster formed by a plurality of servers or a single server.
Optionally, fig. 5 shows a block diagram of a hardware structure of a server, to which the information collecting method provided in the embodiment of the present application is applicable, and referring to fig. 5, the hardware structure of the server may include: a processor 51, a memory 52, a communication interface 53 and a communication bus 54;
in the embodiment of the present invention, the number of the processor 51, the memory 52, the communication interface 53 and the communication bus 54 may be at least one, and the processor 51, the memory 52 and the communication interface 53 complete communication with each other through the communication bus 54;
The processor 51 may be a central processing unit CPU, or a specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement embodiments of the present invention, etc.;
the memory 52 may comprise a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), etc., such as at least one disk memory;
wherein the memory stores a program, and the processor is operable to invoke the program stored in the memory, the program being operable to:
determining a first configuration file in the client in response to the client starting operation, wherein the first configuration file is the configuration file of the highest version in the current client, and the first configuration file is a preset configuration file in the client or a configuration file returned by a server history;
performing point burying operation on a function indicated by a first configuration file in the client;
sending a file acquisition request to the server and determining a second configuration file returned by the server in response to the file acquisition request, wherein the second configuration file is the configuration file of the highest version in the current server;
and determining a target client according to the version comparison result of the first configuration file and the second configuration file, and collecting information to be collected, which is indicated by the embedded point operation, when the function after the embedded point operation is carried out in the target client is called.
The functions of the related programs can be referred to the above detailed description of an information acquisition method provided in the embodiments of the present application, which is not described herein.
Further, the embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores computer executable instructions for executing the information acquisition method.
For details of the computer-executable instructions, reference is made to the above detailed description of an information acquisition method provided in the embodiments of the present application, which is not repeated here.
The above detailed description of the information acquisition method, device, server and storage medium provided by the present invention applies specific examples to illustrate the principles and embodiments of the present invention, and the above examples are only used to help understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant points refer to the description of the method section.
It is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, 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, or is intended to include, elements inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (8)

1. An information acquisition method, comprising:
determining a first configuration file in a client in response to a client starting operation, wherein the first configuration file is the configuration file of the highest version in the client at present, and the first configuration file is a preset configuration file in the client or a configuration file returned by a server history;
performing point burying operation on the function indicated by the first configuration file in the client;
sending a file acquisition request to the server and determining a second configuration file returned by the server in response to the file acquisition request, wherein the second configuration file is the configuration file of the highest version in the current server;
determining a target client according to the version comparison result of the first configuration file and the second configuration file, and collecting information to be collected, indicated by the point burying operation, when a function after the point burying operation is carried out in the target client is called;
if the server responds to the file acquisition request and does not return the second configuration file, determining the client after the function indicated by the first configuration file is subjected to the embedded point operation as a target client for realizing client information acquisition;
The first configuration file/the second configuration file carries at least one piece of embedding point information, and embedding point operation on the function indicated by the first configuration file/the second configuration file in the client comprises embedding point operation on the function indicated by each piece of embedding point information carried by the first configuration file/the second configuration file in the client;
performing the embedding operation on the function indicated by the embedding information in the client includes:
acquiring function names and information names carried by the embedded point information, wherein the function names are function names of functions to be subjected to information acquisition in the client, and the information names are information names of information to be acquired in the client;
determining a function buried point template, wherein a to-be-filled item is arranged in the function buried point template;
filling the information names into items to be filled of the function buried point template to generate function buried point information;
and injecting the function embedded point information into a function corresponding to the function name in the client.
2. The method according to claim 1, wherein the determining a target client for implementing client information collection according to the version comparison result of the first configuration file and the second configuration file includes:
Judging whether the version of the first configuration file is not lower than the version of the second configuration file;
if the version of the first configuration file is not lower than the version of the second configuration file, determining the client after the function indicated by the first configuration file is subjected to the embedded point operation as a target client for realizing client information acquisition;
if the version of the first configuration file is lower than the version of the second configuration file, releasing the embedded point operation of the function indicated by the first configuration file in the client;
and performing point burying operation on the function indicated by the second configuration file in the client, and determining the client after the point burying operation is performed on the function indicated by the second configuration file as a target client for realizing client information acquisition.
3. The method of claim 1, wherein the buried point information further carries a function nickname uniquely characterizing a function to which the function name corresponds, the method further comprising:
and generating an information acquisition result of the client, wherein the information acquisition result comprises acquisition information of each piece of buried point information, and the acquisition information of the buried point information comprises a function nickname carried by the buried point information and information acquired when a function corresponding to the function name carried by the buried point information is called.
4. The method of claim 2, wherein the removing the embedded point operation of the function indicated by the first profile in the client comprises:
and deleting the function embedded point information which is injected in the function indicated by the first configuration file in the client.
5. A method according to claim 3, further comprising: and uploading the information acquisition result of the client to the server.
6. An information acquisition device, comprising:
the first determining unit is used for determining a first configuration file in the client in response to the client starting operation, wherein the first configuration file is the configuration file of the highest version in the current client, and the first configuration file is the preset configuration file in the client or the configuration file returned by the server history;
the operation unit is used for performing point burying operation on the function indicated by the first configuration file in the client;
the second determining unit is used for sending a file acquisition request to the server and determining a second configuration file returned by the server in response to the file acquisition request, wherein the second configuration file is the configuration file of the highest version in the current server;
The information acquisition unit is used for determining a target client according to the version comparison result of the first configuration file and the second configuration file, and acquiring information to be acquired, indicated by the embedded point operation, when a function after the embedded point operation is performed in the target client is called;
the apparatus further comprises:
a fifth confirmation unit, configured to determine, as a target client for implementing client information acquisition, the client after performing a point burying operation on the function indicated by the first configuration file if the server does not return the second configuration file in response to the file acquisition request;
the first configuration file/the second configuration file carries at least one piece of embedding point information, and embedding point operation on the function indicated by the first configuration file/the second configuration file in the client comprises embedding point operation on the function indicated by each piece of embedding point information carried by the first configuration file/the second configuration file in the client;
the operation unit is specifically configured to perform a point burying operation on a function indicated by the point burying information in the client, and includes:
the acquisition unit is used for acquiring function names and information names carried by the embedded point information, wherein the function names are function names of functions to be subjected to information acquisition in the client, and the information names are information names of information to be acquired in the client;
A sixth determining unit, configured to determine a function buried point template, where a term to be filled is set in the function buried point template;
the filling unit is used for filling the information names into items to be filled of the function buried point template to generate function buried point information;
and the injection unit is used for injecting the function embedded point information into the function corresponding to the function name in the client.
7. A server, characterized by at least one memory and at least one processor; the memory stores a program, and the processor calls the program stored in the memory, the program being used to implement the information acquisition method according to any one of claims 1 to 5.
8. A computer-readable storage medium having stored therein computer-executable instructions for performing the information acquisition method of any one of claims 1-5.
CN202010910220.3A 2020-09-02 2020-09-02 Information acquisition method, device, server and storage medium Active CN111930422B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010910220.3A CN111930422B (en) 2020-09-02 2020-09-02 Information acquisition method, device, server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010910220.3A CN111930422B (en) 2020-09-02 2020-09-02 Information acquisition method, device, server and storage medium

Publications (2)

Publication Number Publication Date
CN111930422A CN111930422A (en) 2020-11-13
CN111930422B true CN111930422B (en) 2023-07-25

Family

ID=73309673

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010910220.3A Active CN111930422B (en) 2020-09-02 2020-09-02 Information acquisition method, device, server and storage medium

Country Status (1)

Country Link
CN (1) CN111930422B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572043A (en) * 2013-10-16 2015-04-29 阿里巴巴集团控股有限公司 Method and device for embedding points for controls of client application in real time
WO2017167042A1 (en) * 2016-04-01 2017-10-05 阿里巴巴集团控股有限公司 Statistical method and apparatus for behaviors of front-end users
WO2020082558A1 (en) * 2018-10-26 2020-04-30 深圳壹账通智能科技有限公司 Function name-based breakpoint setting method, device, computer apparatus, and storage medium

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107436832B (en) * 2016-05-27 2020-11-27 阿里巴巴集团控股有限公司 Dynamic point burying method and device and electronic equipment
CN108536451B (en) * 2016-12-05 2021-06-15 腾讯科技(深圳)有限公司 Method and device for embedding embedded point of application program
CN107894889A (en) * 2017-10-16 2018-04-10 努比亚技术有限公司 Bury point methods, equipment and computer-readable recording medium
CN109697075A (en) * 2017-10-20 2019-04-30 北京京东尚科信息技术有限公司 File updating method, system and device
CN107894945A (en) * 2017-11-17 2018-04-10 深圳市泉眼网络科技有限公司 Bury an adding method, mobile terminal and computer-readable recording medium
CN108733548A (en) * 2018-05-23 2018-11-02 北京五八信息技术有限公司 One kind burying a setting method, device, equipment and computer readable storage medium
CN110362480A (en) * 2019-06-19 2019-10-22 平安普惠企业管理有限公司 Client buries a test method, device, equipment and storage medium
CN110781064B (en) * 2019-10-28 2023-05-26 深圳市思迪信息技术股份有限公司 Method and device for dynamic embedded point acquisition of client user behavior data
CN111241444A (en) * 2020-01-09 2020-06-05 深圳壹账通智能科技有限公司 Webpage embedded point code adding method and device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104572043A (en) * 2013-10-16 2015-04-29 阿里巴巴集团控股有限公司 Method and device for embedding points for controls of client application in real time
WO2017167042A1 (en) * 2016-04-01 2017-10-05 阿里巴巴集团控股有限公司 Statistical method and apparatus for behaviors of front-end users
WO2020082558A1 (en) * 2018-10-26 2020-04-30 深圳壹账通智能科技有限公司 Function name-based breakpoint setting method, device, computer apparatus, and storage medium

Also Published As

Publication number Publication date
CN111930422A (en) 2020-11-13

Similar Documents

Publication Publication Date Title
CN107872489B (en) File slice uploading method and device and cloud storage system
WO2019114129A1 (en) Scheduling device and method for push server and computer-readable storage medium
CN104219316A (en) Method and device for processing call request in distributed system
CN106980687B (en) Resource downloading system, method and crawler downloading system
CN103914568A (en) Method and device for dispatching HTTP proxy
CN111708743A (en) File storage management method, file management client and file storage management system
CN102833238A (en) Method, device, equipment and system for assisting network equipment to carry out user authentication
CN108021409B (en) APP service scenario restoration method and system
US9665732B2 (en) Secure Download from internet marketplace
CN111522836A (en) Data query method and device, electronic equipment and storage medium
CN109446445B (en) Resource acquisition method and device
CN111930422B (en) Information acquisition method, device, server and storage medium
CN110741617A (en) Resource updating method and device, computer equipment and storage medium
CN111008064B (en) Virtual machine resource scheduling method and device, and cluster deployment method and device
CN110891090B (en) Request method, device, server, system and storage medium
CN110955460B (en) Service process starting method and device, electronic equipment and storage medium
CN110798358B (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN107045452B (en) Virtual machine scheduling method and device
CN110166272B (en) Method, device and system for providing terminal equipment index arbitration service
CN113596105B (en) Content acquisition method, edge node and computer readable storage medium
CN115309558A (en) Resource scheduling management system, method, computer equipment and storage medium
CN112306797A (en) Embedded point information reporting method and device, storage medium and electronic equipment
CN112860398A (en) Data processing method, device, equipment and medium based on rule engine
CN112579615A (en) Method and device for realizing distributed lock
CN111061543A (en) Multi-tenant workflow engine service method, device and server

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 401121 b7-7-2, Yuxing Plaza, No.5 Huangyang Road, Yubei District, Chongqing

Applicant after: Chongqing duxiaoman Youyang Technology Co.,Ltd.

Address before: 201800 room 307, 3 / F, building 8, 55 Huiyuan Road, Jiading District, Shanghai

Applicant before: SHANGHAI YOUYANG NEW MEDIA INFORMATION TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20211220

Address after: 100193 Room 606, 6 / F, building 4, West District, courtyard 10, northwest Wangdong Road, Haidian District, Beijing

Applicant after: Du Xiaoman Technology (Beijing) Co.,Ltd.

Address before: 401121 b7-7-2, Yuxing Plaza, No.5 Huangyang Road, Yubei District, Chongqing

Applicant before: Chongqing duxiaoman Youyang Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240109

Address after: Room 301, 3rd Floor, Building 4, West District, No.10 Northwest Wangdong Road, Haidian District, Beijing, 100085

Patentee after: Beijing Duxiaoman Payment Technology Co.,Ltd.

Patentee after: Du Xiaoman Technology (Beijing) Co.,Ltd.

Address before: 100193 Room 606, 6 / F, building 4, West District, courtyard 10, northwest Wangdong Road, Haidian District, Beijing

Patentee before: Du Xiaoman Technology (Beijing) Co.,Ltd.