Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the art described above.
Therefore, the first purpose of the present invention is to provide an information click log and ticket splicing method, so as to closely combine the ticket information of the information with the log information such as information click, thereby facilitating the tracing of the above information of the information and mining the information value of the ticket information and the log information.
The second purpose of the invention is to provide an information click log and ticket splicing device.
A third object of the invention is to propose a computer device.
A fourth object of the invention is to propose a non-transitory computer-readable storage medium.
In order to achieve the above object, an embodiment of a first aspect of the present invention provides a method for splicing an information click log and a ticket, including: generating an allocation record of available intermediate numbers corresponding to the information click request time of each target user according to a plurality of intermediate numbers allocated to the target user in advance; acquiring a target available intermediate number corresponding to target information click request time successfully matched with the call request time according to the call ticket record of the target user and the distribution record, and screening target call ticket information matched with the target available intermediate number from the call ticket record; and acquiring target log information corresponding to the target information click request time and the target available intermediate number from a pre-acquired information log, comparing the target call ticket information with the target log information, and splicing the target call ticket information with the target log information if the comparison result is consistent.
In addition, the information click log and ticket splicing method of the embodiment of the invention also has the following additional technical characteristics:
optionally, before the generating, according to a plurality of intermediate numbers pre-assigned to a target user, an assignment record of an available intermediate number corresponding to an information click request time of each target user, the method further includes: acquiring the current request times corresponding to the current information click request; acquiring the number of a plurality of intermediate numbers pre-allocated to the target user; and determining the available intermediate number corresponding to the current information click request according to the number of the intermediate numbers and the current request times.
Optionally, before the generating, according to a plurality of intermediate numbers pre-assigned to a target user, an assignment record of an available intermediate number corresponding to an information click request time of each target user, the method further includes: acquiring the number of the intermediate number returned last time; determining a target number after the number of the intermediate number returned last time in a polling mode according to the numbers corresponding to the plurality of intermediate numbers pre-allocated to the target user; and determining an available intermediate number corresponding to the current information click request according to the target number.
Optionally, the method further comprises: counting the distribution times in each preset time period according to the distribution records of the intermediate numbers; and adjusting the number of the intermediate numbers distributed in each preset time period according to the distribution times in each preset time period and the number of the intermediate numbers pre-distributed in the corresponding time period.
Optionally, before the generating, according to a plurality of intermediate numbers pre-assigned to a target user, an assignment record of an available intermediate number corresponding to an information click request time of each target user, the method further includes: and distributing a plurality of intermediate numbers for the target user in advance according to the information content to be displayed of the target user.
The embodiment of the second aspect of the invention provides a device for splicing an information click log and a ticket, which comprises the following steps: the generating module is used for generating an allocation record of available intermediate numbers corresponding to the information click request time of each target user according to a plurality of intermediate numbers allocated to the target user in advance; the first acquisition module is used for acquiring a target available intermediate number corresponding to target information click request time successfully matched with the call request time according to the ticket record of the target user and the distribution record; the screening module is used for screening target call ticket information matched with the target available intermediate number from the call ticket records; the second acquisition module is used for acquiring target log information corresponding to the target information click request time and the target available intermediate number from a pre-acquired information log; and the processing module is used for comparing the target call ticket information with the target log information, and splicing the target call ticket information and the target log information if the comparison result is consistent.
In addition, the information click log and ticket splicing device of the embodiment of the invention also has the following additional technical characteristics:
optionally, the method further comprises: the third acquisition module is used for acquiring the current request times corresponding to the current information click request; the fourth acquisition module is used for acquiring the number of a plurality of intermediate numbers which are pre-allocated to the target user; and the first determining module is used for determining the available intermediate numbers corresponding to the current information click request according to the number of the plurality of intermediate numbers and the current request times.
Optionally, the method further comprises: the fifth acquisition module is used for acquiring the number of the intermediate number returned last time; a second determining module, configured to determine, in a polling manner, a target number subsequent to the number of the intermediate number that is returned last time according to numbers corresponding to a plurality of intermediate numbers that are pre-allocated to the target user; and the third determining module is used for determining the available intermediate number corresponding to the current information click request according to the target number.
Optionally, the method further comprises: the counting module is used for counting the distribution times in each preset time period according to the distribution records of the intermediate numbers; and the adjusting module is used for adjusting the number of the intermediate numbers distributed in each preset time period according to the distribution times in each preset time period and the number of the intermediate numbers pre-distributed in the corresponding time period.
Optionally, the method further comprises: and the distribution module is used for distributing a plurality of intermediate numbers for the target user in advance according to the information content to be displayed of the target user.
An embodiment of a third aspect of the present invention provides a computer device, including a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, where when the processor executes the computer program, the method for splicing an information click log and a ticket according to the embodiment of the first aspect is implemented.
A fourth aspect of the present invention provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the method for splicing an information click log and a ticket according to the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
obtaining an information click request to a target user, determining available intermediate numbers corresponding to the current information click request according to a plurality of intermediate numbers pre-allocated to the target user, storing intermediate number allocation records of the available intermediate numbers and the request time of the information click request, obtaining a ticket record of the target user, analyzing the ticket record to obtain the call request time of the target user, inquiring the intermediate number allocation records to obtain the target information click request time successfully matched with the call request time and the corresponding target available intermediate number, further, screening out the target ticket information matched with the target available intermediate number from the ticket record, obtaining the target log information corresponding to the target information click request time and the target available intermediate number from the information log, and finally, comparing the target ticket information with the target log information, and if the comparison result is consistent, splicing the target call ticket information and the target log information. Therefore, the ticket information of the information and the log information such as information clicking are closely combined, the information of the information is convenient to trace, and the information value of the ticket information and the log information is mined.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are illustrative and intended to be illustrative of the invention and are not to be construed as limiting the invention.
The following describes an information click log and ticket splicing method and device according to an embodiment of the present invention with reference to the accompanying drawings. The information in the invention includes promotion information such as advertisements.
Aiming at the technical problem that the value of the information related to the intermediate number is not fully utilized in the background technology, the invention provides a method for splicing the log record corresponding to the clicking behavior of the information and the call ticket record corresponding to the intermediate number so as to meet the information tracing in related scenes, for example, for some log records, whether a user is contacted or not is analyzed to determine the scene of log validity, and the fast tracing can be carried out according to the spliced information, so that the value of the information related to the intermediate number is improved.
Specifically, fig. 1 is a flowchart of a method for splicing an information click log and a ticket according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step 101, generating an allocation record of available intermediate numbers corresponding to the information click request time of each target user according to a plurality of intermediate numbers allocated to the target user in advance.
In the embodiment, the popularity of the information content which is possibly contacted by the user is preliminarily analyzed based on the information content, and the number of the distributed middle numbers is determined based on the popularity of the information content, wherein the popularity can be identified based on the dimension of the information content, and the information content can also be subject identified based on the semantic matching degree of the identified theme and the current hot vocabulary, and determining the popularity, performing keyword recognition based on the information content, and determining the popularity based on the text matching degree of the keywords and the current hot words.
As another possible implementation manner, the geographic location where the information provider is located is determined based on the information content, and the number of the intermediate numbers is allocated according to the economic degree of the geographic location, for example, if the geographic location is in a first-line city, the number of the corresponding intermediate numbers is larger, and the like.
As another possible implementation manner, a domain in which the product or service corresponding to the information is located is determined based on the information content, and the number of the intermediate numbers is assigned according to the degree of hotness corresponding to the domain.
In the actual implementation process, the heat degree of the information and the like may be gradually attenuated or increased, in order to flexibly adapt to the change, in an embodiment of the present invention, the number of the intermediate numbers may be further regulated and controlled, so as to fully utilize the resource of the intermediate numbers, in this embodiment, an intermediate number allocation record is obtained, a time point at which each intermediate number is classified in the intermediate number allocation record is stored, and further, the allocation times in each preset time period are counted, the number of the intermediate numbers allocated in each preset time period is adjusted according to the allocation times in each preset time period and the number of the intermediate numbers allocated in advance in the corresponding time period, that is, when the allocated intermediate numbers are used more frequently, for example, 50 times in one minute, it indicates that the number of the current intermediate numbers bears greater call pressure, at this time, the number of the intermediate numbers is increased, when the allocated intermediate numbers are used less frequently, it indicates that the number of the current intermediate numbers may be larger, and thus, to avoid waste of resources, the number of the intermediate numbers is appropriately reduced.
Specifically, in order to splice the ticket information of the intermediate number and the log information, first obtaining the ticket information, and obtaining an information click request of a target user each time, it should be understood here that obtaining the information click request refers to obtaining a telephone contact request, so that an available intermediate number corresponding to a current information click request is determined according to a plurality of intermediate numbers pre-allocated to the target user, so as to obtain an intermediate number allocation record of the available intermediate number and a request time of the information click request, as a possible implementation manner, a corresponding relationship between the intermediate number and the request time of the information click request is stored in a list form in an intermediate number allocation record of a target user a shown in the following table 1:
TABLE 1
It should be noted that, in different application scenarios, the available intermediate numbers are determined in different manners, and as a possible implementation manner, when the intermediate numbers are distributed in a polling manner, the intermediate numbers may be determined based on the current request times corresponding to the information click request.
For example, as shown in fig. 2, when the current request number is the 15 th request, and the number of the plurality of intermediate numbers corresponding to the target user a is 4, since 4 intermediate numbers a-d are supplied by polling, considering that each request is allocated with one intermediate number, the currently available intermediate number may be determined according to theremainder 3 obtained by dividing 15 by 4, for example, the currently available intermediate number is determined as the third intermediate number.
As another possible implementation manner, as shown in table 2 below, each intermediate number is encoded, a target number after the intermediate number fed back last time is determined in a polling manner according to the code pre-allocated to the target user, and an available intermediate number corresponding to the current information click request is determined according to the target number.
TABLE 2
For example, as shown in fig. 3, when the number of the intermediate number that is obtained from the last feedback is 3, and the number of the intermediate number is greater than or equal to 4, it is determined that the number of the next intermediate number to be served is 4, and thus, the intermediate number corresponding to the current information click request is determined as the 4 th intermediate number.
Andstep 102, acquiring a target available intermediate number corresponding to target information click request time successfully matched with the call request time according to the call ticket record and the distribution record of the target user, and screening target call ticket information matched with the target available intermediate number from the call ticket record.
It can be understood that even if the target user is contacted by using the intermediate number, the target user actually receives the contact call, and the contact is reflected in the call ticket record, and of course, the call ticket record of the target user includes other normal call ticket records (for example, a user knowing the real telephone number of the target user contacts the target user by dialing the real telephone number) in addition to the call ticket record participating in the intermediate number.
In order to screen out the call ticket record related to the intermediate number from the call ticket record, in an embodiment of the present invention, the call ticket record may be analyzed to obtain the call request time of the target user, and the intermediate number allocation record may be queried to obtain the target information click request time successfully matched with the call request time and the corresponding target available intermediate number, that is, in this implementation, when the target information click request time is consistent with the call request time in the same time period, the call request is considered to be initiated by the corresponding available intermediate number, and further, the target call ticket information matched with the target available intermediate number is screened out from the call ticket record.Step 103, obtaining target log information corresponding to the target information click request time and the target available intermediate number from the pre-obtained information log, comparing the target call ticket information with the target log information, and if the comparison result is consistent, splicing the target call ticket information with the target log information to process the target information click request time.
Specifically, target call ticket information matched with the target available intermediate number is screened from the call ticket records, and target log information corresponding to the target information click request time and the target available intermediate number is acquired from an information log, wherein the target log information records log information such as information click records, browsing duration records and the like on the target available intermediate number in the target information click request time.
Furthermore, because the information log may store log information of a plurality of target users and the like, the target call ticket information is compared with the target log information, and if the comparison result is consistent, for example, the target information click request time and the target available number in the target log information are consistent with the available intermediate number and the call request time in the target call ticket information, the target call ticket information and the target log information are spliced, so that the call ticket information and the log information are bound together, and the information tracing requirement under certain scenes is met.
To sum up, the information click log and ticket splicing method of the embodiment of the present invention obtains an information click request to a target user, determines an available intermediate number corresponding to a current information click request according to a plurality of intermediate numbers pre-allocated to the target user, and stores an intermediate number allocation record of the available intermediate number and a request time of the information click request, obtains a ticket record of the target user, parses the ticket record to obtain a call request time of the target user, queries the intermediate number allocation record to obtain a target information click request time successfully matched with the call request time and a corresponding target available intermediate number, further, screens out target ticket information matched with the target available intermediate number from the ticket record, and obtains target log information corresponding to the target information click request time and the target available intermediate number from the information log, and finally, comparing the target call ticket information with the target log information, and if the comparison result is consistent, splicing the target call ticket information and the target log information. Therefore, the ticket information of the information and the log information such as information clicking are closely combined, the information of the information is convenient to trace, and the information value of the ticket information and the log information is mined.
In order to implement the embodiment, the invention further provides an information click log and ticket splicing device.
Fig. 4 is a schematic structural diagram of an information click log and ticket splicing device according to an embodiment of the present invention, and as shown in fig. 4, the information click log and ticket splicing device includes: a generatingmodule 10, a first obtainingmodule 20, ascreening module 30, a second obtainingmodule 40, and aprocessing module 50, wherein,
agenerating module 10, configured to generate, according to a plurality of intermediate numbers pre-allocated to the target user, an allocation record of available intermediate numbers corresponding to each time of the information click request time of the target user.
And the first obtainingmodule 20 is configured to obtain a target available intermediate number corresponding to the target information click request time successfully matched with the call request time according to the ticket record and the distribution record of the target user.
And thescreening module 30 is used for screening the target call ticket information matched with the target available intermediate number from the call ticket records.
And a second obtainingmodule 40, configured to obtain, from the pre-obtained information log, target log information corresponding to the target information click request time and the target available intermediate number.
And theprocessing module 50 is configured to compare the target call ticket information with the target log information, and if the comparison result is consistent, perform splicing processing on the target call ticket information and the target log information.
In one embodiment of the present invention, as shown in fig. 5, on the basis of fig. 4, the apparatus further comprises a third obtainingmodule 60, a fourth obtainingmodule 70 and a first determiningmodule 80, wherein,
a third obtainingmodule 60, configured to obtain a current number of times of request corresponding to the current information click request.
A fourth obtainingmodule 70, configured to obtain the number of the plurality of intermediate numbers pre-allocated to the target user.
The first determiningmodule 80 is configured to determine an available intermediate number corresponding to the current information click request according to the number of the plurality of intermediate numbers and the current request frequency.
In an embodiment of the present invention, as shown in fig. 6, on the basis of fig. 4, the apparatus further includes: a fifth obtainingmodule 90, a second determiningmodule 100, and a third determiningmodule 110, wherein,
and a fifth obtainingmodule 90, configured to obtain a number of the last returned intermediate number.
The second determiningmodule 100 is configured to determine, in a polling manner, a target number subsequent to a number of an intermediate number that is returned last time according to numbers corresponding to a plurality of intermediate numbers that are pre-allocated to a target user.
A third determiningmodule 110, configured to determine, according to the target number, an available intermediate number corresponding to the current information click request.
In an embodiment of the present invention, as shown in fig. 7, on the basis of fig. 4, the apparatus further includes: astatistics module 120 and anadjustment module 130, wherein,
thecounting module 120 is configured to count the distribution times in each preset time period according to the intermediate number distribution record.
The adjustingmodule 130 is configured to adjust the number of the middle numbers allocated in each preset time period according to the allocation times in each preset time period and the number of the middle numbers pre-allocated in the corresponding time period.
In an embodiment of the present invention, as shown in fig. 8, on the basis of fig. 4, the apparatus further includes: thedistribution module 140, thedistribution module 140 is configured to distribute a plurality of intermediate numbers to the target user in advance according to the information content to be displayed by the target user.
It should be noted that the explanation of the embodiment of the information click log and ticket splicing method is also applicable to the information click log and ticket splicing apparatus of the embodiment, and is not repeated here.
To sum up, the information click log and ticket splicing apparatus of the embodiment of the present invention obtains an information click request to a target user, determines an available intermediate number corresponding to a current information click request according to a plurality of intermediate numbers pre-allocated to the target user, and stores an intermediate number allocation record of the available intermediate number and a request time of the information click request, obtains a ticket record of the target user, parses the ticket record to obtain a call request time of the target user, queries the intermediate number allocation record to obtain a target information click request time successfully matched with the call request time and a corresponding target available intermediate number, further, screens out target ticket information matched with the target available intermediate number from the ticket record, and obtains target log information corresponding to the target information click request time and the target available intermediate number from the information log, and finally, comparing the target call ticket information with the target log information, and if the comparison result is consistent, splicing the target call ticket information and the target log information. Therefore, the ticket information of the information and the log information such as information clicking are closely combined, the information of the information is convenient to trace, and the information value of the ticket information and the log information is mined.
In order to implement the foregoing embodiment, the present invention further provides a computer device, which includes a memory, a processor, and a computer program that is stored in the memory and can be run on the processor, and when the processor executes the computer program, the method for splicing the information click log and the ticket described in the foregoing embodiment is implemented.
In order to implement the foregoing embodiments, the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the information click log and ticket splicing method described in the foregoing method embodiments.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present invention, "a plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.