Disclosure of Invention
The embodiment of the application provides a method and a device for processing a documentary order and a storage medium, and solves the technical problem that the documentary order processing cannot be realized in the related technology.
In a first aspect, an embodiment of the present application provides a method for processing a documentary order, including:
receiving an order message sent by a terminal, wherein the order message comprises: user identification and order product information;
if the popularization information corresponding to the user identification is inquired according to the historical mapping information, determining target data distributed to the target popularization user according to the order product information and the popularization information;
wherein the history mapping information includes: at least one historical user identifier and historical promotion information corresponding to each historical user identifier; the historical popularization information comprises: historical promotion user identification; and the target popularization user is a popularization user corresponding to the popularization user identification in the popularization information.
In a possible implementation manner, if the user identifier corresponds to a plurality of pieces of the promotion information, the promotion information further includes: and the promotion product identifier is used for determining target data distributed to the target promotion users according to the order product information and the promotion information, and comprises the following steps:
and if target promotion information with promotion product identifications identical to the order product identifications is determined from the plurality of promotion information according to the order product identifications in the order product information, determining target data distributed to target promotion users according to the order product information, wherein the target promotion users are promotion users corresponding to the promotion user identifications in the target promotion information.
In a possible implementation manner, the determining target data allocated to a target popularization user according to the order product information and the popularization information further includes:
if the promotion information with the promotion product identification identical to the order product identification is not determined from the plurality of promotion information according to the order product identification in the order product information, determining target promotion information with the latest storage time according to the storage time from the plurality of promotion information to the historical mapping information, and determining target data distributed to target promotion users according to the order product information, wherein the target promotion users are promotion users corresponding to the promotion user identifications in the target promotion information.
In a possible implementation manner, the order message further includes a terminal identifier, and the history mapping information further includes: at least one historical terminal identifier and historical promotion information corresponding to each historical terminal identifier, wherein the method further comprises the following steps:
and if the promotion information corresponding to the user identification is not inquired according to the historical mapping information and the promotion information corresponding to the terminal identification is inquired according to the historical mapping information, determining target data distributed to a target promotion user according to the order product information and the promotion information corresponding to the terminal identification, wherein the target promotion user is a promotion user corresponding to the promotion user identification in the promotion information corresponding to the terminal identification.
In a possible implementation manner, if the terminal identifier corresponds to a plurality of pieces of the promotion information, the promotion information further includes: and the promotion product identifier is used for determining target data distributed to the target promotion user according to the order product information and the promotion information corresponding to the terminal identifier, and comprises the following steps:
and if target promotion information with promotion product identifications identical to the order product identifications is determined from the plurality of promotion information according to the order product identifications in the order product information, determining target data distributed to target promotion users according to the order product information, wherein the target promotion users are promotion users corresponding to the promotion user identifications in the target promotion information.
In a possible implementation manner, the determining, according to the order product information and the promotion information corresponding to the terminal identifier, target data allocated to a target promotion user further includes:
if the promotion information with the promotion product identification identical to the order product identification is not determined from the plurality of promotion information according to the order product identification in the order product information, determining target promotion information with the latest storage time according to the storage time from the plurality of promotion information to the historical mapping information, and determining target data distributed to target promotion users according to the order product information, wherein the target promotion users are promotion users corresponding to the promotion user identifications in the target promotion information.
In one possible implementation, the method further includes:
when the terminal clicks the promotion link, analyzing a corresponding promotion user identifier and a corresponding promotion product identifier according to the promotion link;
if the fact that the user identification is logged in the terminal is monitored, storing mapping information between the identification of the terminal and the logged user identification and mapping information between the logged user identification and the analyzed promotion user identification and promotion product identification into historical mapping information; or,
if the fact that the user identification is not logged in the terminal is monitored, and a target user identification corresponding to the identification of the terminal is inquired according to the historical mapping information, storing the mapping information between the target user identification and the analyzed promotion user identification and promotion product identification into the historical mapping information; or,
if the situation that the user identification is not logged in the terminal is monitored, and the target user identification corresponding to the identification of the terminal is not inquired according to the historical mapping information, storing the mapping information between the identification of the terminal and the analyzed promotion user identification and promotion product identification into the historical mapping information.
In a second aspect, an embodiment of the present application provides a documentary processing apparatus, including:
a receiving module, configured to receive an order message sent by a terminal, where the order message includes: user identification and order product information;
the first determining module is used for determining target data distributed to a target promotion user according to the order product information and the promotion information if the promotion information corresponding to the user identification is inquired according to historical mapping information;
wherein the history mapping information includes: at least one historical user identifier and historical promotion information corresponding to each historical user identifier; the historical popularization information comprises: historical promotion user identification; and the target popularization user is a popularization user corresponding to the popularization user identification in the popularization information.
In a possible implementation manner, if the user identifier corresponds to a plurality of pieces of the promotion information, the promotion information further includes: promote the product identification, the first definite module includes:
and the first determining unit is used for determining target promotion information distributed to the target promotion user according to the order product information if the target promotion information with the promotion product identifier being the same as the order product identifier is determined from the plurality of promotion information according to the order product identifier in the order product information.
In one possible implementation manner, the first determining module further includes:
and a second determining unit, configured to, if popularization information with a popularization product identifier that is the same as the order product identifier is not determined from the plurality of pieces of popularization information according to the order product identifier in the order product information, determine target popularization information with the latest storage time according to the storage time of the plurality of pieces of popularization information stored in the history mapping information, and determine target data allocated to a target popularization user according to the order product information, where the target popularization user is a popularization user corresponding to the popularization user identifier in the target popularization information.
In a possible implementation manner, the order message further includes a terminal identifier, and the history mapping information further includes: at least one historical terminal identification and the historical promotion information corresponding to each historical terminal identification, the device further comprises:
and a second determining module, configured to determine, if popularization information corresponding to the user identifier is not queried according to history mapping information and popularization information corresponding to the terminal identifier is queried according to the history mapping information, target data allocated to a target popularization user according to the order product information and the popularization information corresponding to the terminal identifier, where the target popularization user is a popularization user corresponding to a popularization user identifier in the popularization information corresponding to the terminal identifier.
In a possible implementation manner, if the terminal identifier corresponds to a plurality of pieces of the promotion information, the promotion information further includes: promote the product identification, the second confirms the module, includes:
a first determining unit, configured to determine, according to an order product identifier in the order product information, target promotion information with a promotion product identifier that is the same as the order product identifier from the plurality of promotion information, and determine, according to the order product information, target data allocated to a target promotion user, where the target promotion user is a promotion user corresponding to the promotion user identifier in the target promotion information.
In one possible implementation manner, the second determining module further includes:
and a second determining unit, configured to, if popularization information with a popularization product identifier that is the same as the order product identifier is not determined from the plurality of pieces of popularization information according to the order product identifier in the order product information, determine target popularization information with the latest storage time according to the storage time of the plurality of pieces of popularization information stored in the history mapping information, and determine target data allocated to a target popularization user according to the order product information, where the target popularization user is a popularization user corresponding to the popularization user identifier in the target popularization information.
In one possible implementation, the apparatus further includes:
the analysis module is used for analyzing corresponding promotion user identification and promotion product identification according to the promotion link when the promotion link is monitored to be clicked by the terminal;
the storage module is used for storing mapping information between the identifier of the terminal and the logged user identifier and mapping information between the logged user identifier and the analyzed promotion user identifier and promotion product identifier into historical mapping information if the fact that the user identifier is logged in the terminal is monitored; or,
if the fact that the user identification is not logged in the terminal is monitored, and a target user identification corresponding to the identification of the terminal is inquired according to the historical mapping information, storing the mapping information between the target user identification and the analyzed promotion user identification and promotion product identification into the historical mapping information; or,
if the situation that the user identification is not logged in the terminal is monitored, and the target user identification corresponding to the identification of the terminal is not inquired according to the historical mapping information, storing the mapping information between the identification of the terminal and the analyzed promotion user identification and promotion product identification into the historical mapping information.
In a third aspect, an embodiment of the present application provides a documentary processing server, including: a processor and a memory;
wherein the memory is to store program instructions;
the processor is configured to call and execute a program instruction stored in the memory, and when the processor executes the program instruction stored in the memory, the waybill processing server is configured to execute the method according to any implementation manner of the first aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, which stores instructions that, when executed on a computer, cause the computer to perform the method according to any implementation manner of the first aspect.
According to the order-following processing method, the order-following processing device and the storage medium, after an order message sent by a terminal is received, promotion information corresponding to a user identifier carried in the order message is inquired according to historical mapping information, and target data distributed to promotion users corresponding to promotion user identifiers in the promotion information is determined according to the order product information and the promotion information. Therefore, compared with the mode that the order-following processing server in the prior art judges according to the information of the promotion users and the promotion products carried in the order information sent by the terminal, in the embodiment of the application, even if the user clicks the promotion link process and the terminal used in the order generating process is different, whether the order products in the order information are the promotion products or not and which promotion user the data needs to be distributed to can be judged by inquiring the historical mapping information according to the user identification carried in the order information, and therefore the efficiency of order-following processing is improved.
Detailed Description
First, an application scenario and a part of vocabulary related to the embodiments of the present application will be described.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application. As shown in fig. 1, the application scenarios related to the embodiment of the present application may include, but are not limited to: the system comprises a terminal of a promotion user A, a documentary processing server and a terminal of a promoted user B.
The terminal of the promotion user A is used for sending the promotion link to the terminal of the promoted user B, so that the terminal of the promoted user B can click the promotion link to buy the promoted product.
The order following processing server is used for storing mapping information between an identifier of a promoted user B (in the embodiment of the present application, the identifier of the promoted user B may also be referred to as a promoted user B identifier for short) and an identifier of a promoting user A (in the embodiment of the present application, the identifier of the promoting user A may also be referred to as a promoted user A identifier for short) and a promoted product identifier, or storing mapping information between a terminal identifier of the promoted user B and an identifier of the promoting user A and a promoted product identifier to historical mapping information when monitoring that the promoted link is clicked by a terminal of the promoted user B, so that when an order message sent by the terminal of the promoted user B is received, the corresponding identifier of the promoted user A and the identifier of the promoted user B can be determined from the historical mapping information according to the identifier of the promoted user B or the terminal identifier of the promoted user B carried in the order message to implement order following processing, thereby solving the problem that in the prior art, when the terminal And the order information sent by the user to the order-following processing server cannot carry the promotion user identification and the promotion product information, so that the order-following processing server cannot realize the technical problem of order-following processing.
The terminals of the promoting user a or the promoted user B referred to in the present application may include, but are not limited to: a mobile phone, a computer or any device with an image display function.
Any user identifier (e.g., a promoting user a identifier, a promoted user B identifier, etc.) referred to in this application is used to uniquely identify a corresponding user, for example, any user identifier may include but is not limited to: a user account of a third party application.
Any terminal identifier (for example, the terminal identifier of the promoted user B, etc.) referred to in this application is used to uniquely identify the corresponding terminal.
Any product identifier (such as a promotional product identifier, or an ordered product identifier, etc.) referred to in this application is used to uniquely identify the corresponding product.
In this application, an execution main body for executing the order following processing method provided in the embodiment of the present application may be an order following processing server, or may be an order following processing device in the order following processing server (in the following embodiment of the present application, the execution main body is described as an example of the order following processing server). The order following processing device related to the embodiment of the application can be realized through software and/or hardware.
The CPS popularization mode in the embodiment of the application stimulates the popularization user to carry out more product popularization by a mode of rewarding the popularization user when the popularization user orders the popularization product popularized by the popularization user.
The technical solution of the present application will be described in detail below with specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
Fig. 2 is a schematic flow chart of a documentary processing method according to an embodiment of the present disclosure. In the embodiment of the application, the order following processing server is introduced according to the realizable mode of inquiring according to the user identification carried in the order message so as to realize the order following processing. As shown in fig. 2, the method of the embodiment of the present application may include:
step S201, receiving an order message sent by a terminal.
In this step, the order following processing server receives an order message sent by a terminal (for example, the terminal of the promoted user B), where the order message may include but is not limited to: the user identifier (for example, the identifier of the promoted user B, or referred to as a promoted user B identifier) and the order product information registered in the terminal.
Illustratively, the order product information may include, but is not limited to: order product identification, order product price.
Step S202, if the promotion information corresponding to the user identification is inquired according to the historical mapping information, determining target data distributed to the target promotion user according to the order product information and the promotion information.
In the embodiment of the present application, the waybill processing server stores mapping information stored when any promoted user's terminal clicks a promotion link, which is monitored within a preset historical duration, wherein the historical mapping information may include but is not limited to: at least one historical user identifier (or historical promoted user identifier) and historical promotion information corresponding to each historical user identifier. For example, the history mapping information may include: mapping information between the historical user identifier 1 and the corresponding historical popularization information 1, and mapping information between the historical user identifier 2 and the corresponding historical popularization information 2.
Illustratively, any historical promotional information may include, but is not limited to: historical popularization user identification and historical popularization product identification.
It should be noted that the history mapping information referred to in the embodiment of the present application may be located in the database of the documentary processing server, or may be located in a database of another server that can communicate with the documentary processing server, or may also be located in a separate database that can be accessed by the documentary processing server.
In this embodiment of the application, after receiving an order message sent by a terminal (for example, the terminal of the promoted user B), the order-following processing server may query whether promotion information corresponding to a user identifier (for example, the promoted user B identifier) carried in the order message is stored in the history mapping information; if the historical mapping information is inquired to store promotion information corresponding to the user identification, the order following processing server can determine target data distributed to the target promotion user according to the order product information and the promotion information, so that the target data can be sent to the target promotion user in a follow-up active mode, or the target data can be sent to the target promotion user after an acquisition request of the target promotion user is received.
For example, the target promoting user is a promoting user (e.g., the promoting user a) corresponding to a promoting user identifier (e.g., the promoting user a identifier) in the promoting information corresponding to the user identifier, and the target data may be determined by the order processing server according to the order product price in the order product information.
Therefore, in the embodiment of the application, even if the terminal used in the process of clicking the promotion link by the user is different from the terminal used in the process of generating the order, the order following processing server can still judge whether the order product in the order message is a promotion product or not and which promotion user the data needs to be distributed to by inquiring the historical mapping information according to the user identifier carried in the order message.
In consideration that part of the historical user identifiers in the historical mapping information may correspond to a plurality of pieces of historical popularization information, the following embodiments of the present application introduce an implementation manner of implementing the order following processing when the order following processing server queries a plurality of pieces of popularization information corresponding to the user identifiers according to the historical mapping information.
In a possible implementation manner, if it is found that the user identifier corresponds to a plurality of promotion information according to the history mapping information, the step S202 may include:
and if target promotion information with promotion product identifications identical to the order product identifications is determined from the plurality of promotion information according to the order product identifications in the order product information, determining target data distributed to target promotion users according to the order product information, wherein the target promotion users are promotion users corresponding to the promotion user identifications in the target promotion information.
Or if the promotion information with the promotion product identification identical to the order product identification is not determined from the plurality of promotion information according to the order product identification in the order product information, determining target promotion information with the latest storage time according to the storage time of the plurality of promotion information stored to the history mapping information, and determining target data distributed to target promotion users according to the order product information, wherein the target promotion users are promotion users corresponding to the promotion user identifications in the target promotion information.
In this implementation manner, when the plurality of pieces of promotion information corresponding to the user identifier is queried according to the history mapping information, the order-following processing server may query whether promotion information having a promotion product identifier identical to the order product identifier exists in the plurality of pieces of promotion information according to the order product identifier in the order product information.
Further, if it is found that there is promotion information (or referred to as target promotion information) with promotion product identifiers identical to the order product identifiers in the plurality of promotion information according to the order product identifiers in the order product information, the order-following processing server may determine target data allocated to a target promotion user according to the order product information, where the target promotion user is a promotion user corresponding to the promotion user identifier in the target promotion information.
For example, assume that the promoted user B id corresponds to promotion information 1 and promotion information 2, where promotion information 1 includes: a promotion user A identification and a promotion product identification 1; the promotion information 2 includes: promotion user C and promotion product identification 2; if the order product identifier in the order product information is the same as the promotion product identifier 1, the order-following processing server may query that the promotion product identifier 1 in the promotion information 1 is the same as the order product identifier according to the order product identifier in the order product information, and then use the promotion information 1 as target promotion information, thereby determining target data allocated to the promotion user a corresponding to the promotion user a identifier according to the order product information.
Or if the promotion information with the promotion product identification identical to the order product identification exists in the plurality of promotion information is not inquired according to the order product identification in the order product information, the order-following processing server may determine, according to the storage time of the plurality of promotion information stored in the history mapping information, the promotion information with the latest storage time as the target promotion information, and further determine target data allocated to the target promotion user according to the order product information, wherein the target promotion user is a promotion user corresponding to the promotion user identification in the target promotion information.
For example, assuming that the promoted user B id corresponds to promotion information 1 and promotion information 2, the storage time from promotion information 1 to the history mapping information is 2019.5.3, and the storage time from promotion information 2 to the history mapping information is 2019.5.6, the waybill processing server may determine promotion information (for example, promotion information 2) whose storage time is the latest as the target promotion information, based on the storage times from promotion information 1 and promotion information 2 to the history mapping information.
In another possible implementation manner, if it is found that the user identifier corresponds to a plurality of promotion information according to the history mapping information, the step S202 may include:
and according to the storage time of the plurality of promotion information stored to the history mapping information, determining target promotion information with the latest storage time, and according to the order product information, determining target data distributed to target promotion users, wherein the target promotion users are promotion users corresponding to promotion user identifications in the target promotion information.
In this implementation manner, when the plurality of popularization information corresponding to the user identifier is queried according to the history mapping information, the order-following processing server may determine, according to the storage time from the plurality of popularization information to the history mapping information, the popularization information with the latest storage time as the target popularization information, and then determine, according to the order product information, the target data allocated to the target popularization user, where the target popularization user is a popularization user corresponding to the popularization user identifier in the target popularization information.
For example, assuming that the promoted user B id corresponds to promotion information 1 and promotion information 2, the storage time from promotion information 1 to the history mapping information is 2019.5.3, and the storage time from promotion information 2 to the history mapping information is 2019.5.6, the waybill processing server may determine promotion information (for example, promotion information 2) whose storage time is the latest as the target promotion information, based on the storage times from promotion information 1 and promotion information 2 to the history mapping information.
In the embodiment of the application, after receiving the order message sent by the terminal, the order-following processing server queries promotion information corresponding to the user identifier carried in the order message according to the historical mapping information, and determines target data distributed to promotion users corresponding to the promotion user identifiers in the promotion information according to the order product information and the promotion information. Therefore, compared with the mode that the order-following processing server in the prior art judges according to the information of the promotion users and the promotion products carried in the order information sent by the terminal, in the embodiment of the application, even if the user clicks the promotion link process and the terminal used in the order generating process is different, the order-following processing server can still judge whether the order products in the order information are the promotion products or not and which promotion user needs to distribute data according to the mode of inquiring historical mapping information according to the user identification carried in the order information, and therefore the efficiency of order-following processing is improved.
In addition, in the embodiment of the application, the historical popularization information can be stored to the order following processing server side, so that the historical popularization information can be prevented from being tampered by malicious users, and the safety of the historical popularization information is improved.
Fig. 3 is a schematic flow chart of a documentary processing method according to another embodiment of the present disclosure. On the basis of the above embodiment, the following order processing server is introduced in the embodiment of the present application according to the realizable manner of querying the terminal identifier carried in the order message to realize the following order processing.
In this embodiment of the present application, the order message further includes a terminal identifier (for example, the terminal identifier of the promoted user B), and the history mapping information may further include but is not limited to: at least one historical terminal identification and historical promotion information corresponding to each historical terminal identification. For example, the history mapping information may include: mapping information between the history terminal identifier 1 and the corresponding history promotion information 1, and mapping information between the history terminal identifier 2 and the corresponding history promotion information 2.
As shown in fig. 3, on the basis of the foregoing embodiment, the method of the embodiment of the present application may further include:
step S203, if the promotion information corresponding to the user identification is not inquired according to the historical mapping information and the promotion information corresponding to the terminal identification is inquired according to the historical mapping information, determining target data distributed to the target promotion user according to the order product information and the promotion information.
In this embodiment of the application, after receiving an order message sent by a terminal, the order-following processing server may query whether promotion information corresponding to a user identifier (for example, the promoted user B identifier) carried in the order message is stored in the history mapping information; if it is not found that the history mapping information stores promotion information corresponding to the user identifier, the order-following processing server may further determine whether promotion information corresponding to the terminal identifier carried in the order message (for example, the terminal identifier of the promoted user B) is stored in the history mapping information. Further, if it is found that the historical mapping information stores promotion information corresponding to the terminal identifier, the order-following processing server may determine target data allocated to the target promotion user according to the order product information and the promotion information, so as to subsequently and actively send the target data to the target promotion user, or send the target data to the target promotion user after receiving an acquisition request of the target promotion user.
For example, the target promoting user is a promoting user (e.g., the promoting user a) corresponding to a promoting user identifier (e.g., the promoting user a identifier) in the promotion information corresponding to the terminal identifier (e.g., the terminal identifier of the promoted user B), and the target data may be determined by the order processing server according to the order product price in the order product information.
Therefore, in the embodiment of the application, even if the user does not log in the process of clicking the promotion link, the order following processing server can still judge whether the order product in the order message is a promotion product or not and which promotion user needs to be allocated with data by inquiring the historical mapping information according to the terminal identifier carried in the order message.
Considering that part of the historical terminal identifiers in the historical mapping information may correspond to a plurality of pieces of historical popularization information, the following embodiments of the present application introduce an implementation manner of implementing the order following processing when the order following processing server queries a plurality of pieces of popularization information corresponding to the terminal identifiers according to the historical mapping information.
In a possible implementation manner, if it is found that the terminal identifier corresponds to a plurality of promotion information according to the history mapping information, the step S203 may include:
and if target promotion information with promotion product identifications identical to the order product identifications is determined from the plurality of promotion information according to the order product identifications in the order product information, determining target data distributed to target promotion users according to the order product information, wherein the target promotion users are promotion users corresponding to the promotion user identifications in the target promotion information.
Or if the promotion information with the promotion product identification identical to the order product identification is not determined from the plurality of promotion information according to the order product identification in the order product information, determining target promotion information with the latest storage time according to the storage time of the plurality of promotion information stored to the historical mapping information, and determining target data distributed to target promotion users according to the order product information, wherein the target promotion users are promotion users corresponding to the promotion user identifications in the target promotion information.
In this implementation manner, when the plurality of promotion information corresponding to the terminal identifier is queried according to the history mapping information, the order-following processing server may query whether promotion information with a promotion product identifier identical to the order product identifier exists in the plurality of promotion information according to the order product identifier in the order product information.
Further, if it is found that there is promotion information (or referred to as target promotion information) with promotion product identifiers identical to the order product identifiers in the plurality of promotion information according to the order product identifiers in the order product information, the order-following processing server may determine target data allocated to a target promotion user according to the order product information, where the target promotion user is a promotion user corresponding to the promotion user identifier in the target promotion information.
For example, assume that the terminal identifier of the promoted user B corresponds to promotion information 1 and promotion information 2, where promotion information 1 includes: a promotion user A identification and a promotion product identification 1; the promotion information 2 includes: promotion user C and promotion product identification 2; if the order product identifier in the order product information is the same as the promotion product identifier 1, the order-following processing server may query that the promotion product identifier 1 in the promotion information 1 is the same as the order product identifier according to the order product identifier in the order product information, and then use the promotion information 1 as target promotion information, thereby determining target data allocated to the promotion user a corresponding to the promotion user a identifier according to the order product information.
Or if the promotion information with the promotion product identification being the same as the order product identification exists in the plurality of promotion information according to the order product identification in the order product information, the order-following processing server may determine, according to the storage time of the plurality of promotion information stored in the history mapping information, the promotion information with the latest storage time as the target promotion information, and then determine the target data allocated to the target promotion user according to the order product information, wherein the target promotion user is the promotion user corresponding to the promotion user identification in the target promotion information.
For example, assuming that the terminal id of the promoted user B corresponds to promotion information 1 and promotion information 2, the storage time from promotion information 1 to the history mapping information is 2019.5.3, and the storage time from promotion information 2 to the history mapping information is 2019.5.6, the waybill processing server may determine promotion information (for example, promotion information 2) whose storage time is the latest as the target promotion information, based on the storage times from promotion information 1 and promotion information 2 to the history mapping information.
In another possible implementation manner, if it is found that the terminal identifier corresponds to a plurality of promotion information according to the history mapping information, the step S203 may include:
and according to the storage time of the plurality of promotion information stored to the historical mapping information, determining target promotion information with the latest storage time, and according to the order product information, determining target data distributed to target promotion users, wherein the target promotion users are promotion users corresponding to promotion user identifications in the target promotion information.
In this implementation manner, when the plurality of popularization information corresponding to the terminal identifier is queried according to the history mapping information, the order following processing server may store the storage time of the history mapping information according to the plurality of popularization information, determine the popularization information with the latest storage time as the target popularization information, and then determine the target data allocated to the target popularization user according to the order product information, where the target popularization user is a popularization user corresponding to the popularization user identifier in the target popularization information.
For example, assuming that the terminal id of the promoted user B corresponds to promotion information 1 and promotion information 2, the storage time from promotion information 1 to the history mapping information is 2019.5.3, and the storage time from promotion information 2 to the history mapping information is 2019.5.6, the waybill processing server may determine promotion information (for example, promotion information 2) whose storage time is the latest, as the target promotion information, based on the storage times from promotion information 1 and promotion information 2 to the history mapping information.
In this embodiment of the application, when the promotion information corresponding to the user identifier carried in the order message is not queried according to the history mapping information, the order-following processing server queries the promotion information corresponding to the terminal identifier carried in the order message according to the history mapping information, and determines target data allocated to a promotion user corresponding to the promotion user identifier in the promotion information according to the order product information and the promotion information. Therefore, in the embodiment of the application, even if the user does not log in the process of clicking the promotion link, the order-keeping processing server can still judge whether the order product in the order message is a promotion product or not and which promotion user needs to be allocated with data by inquiring the historical mapping information according to the terminal identifier carried in the order message, so that the efficiency of order-keeping processing is improved.
Fig. 4 is a schematic flowchart of a documentary processing method according to another embodiment of the present disclosure. On the basis of the above embodiment, in the embodiment of the present application, an implementable manner for storing the mapping information when the documentary processing server monitors that the terminal clicks the promotion link is introduced. As shown in fig. 4, the method of the embodiment of the present application may further include:
step S401, when it is monitored that the terminal clicks the promotion link, analyzing the corresponding promotion user identification and promotion product identification according to the promotion link.
In this step, when monitoring that the terminal (for example, the terminal of the promoted user B) clicks the promotion link, the order following processing server may analyze the corresponding promotion user identifier (for example, the identifier of the promotion user a), the promotion product identifier, the promotion product description information, and the like according to the promotion link.
In addition, when monitoring that the terminal clicks the promotion link, the order-following processing server may further obtain an identifier of the terminal (for example, the terminal identifier of the promoted user B), and determine whether a user identifier (for example, the identifier of the promoted user B) has been registered in the terminal.
Step S402, if it is monitored that the user identifier is logged in the terminal, storing mapping information between the identifier of the terminal and the logged user identifier and mapping information between the logged user identifier and the analyzed promotion user identifier and promotion product identifier into the historical mapping information.
In this step, if it is monitored that a user identifier (for example, the identifier of the promoted user B) has logged in the terminal, on one hand, the order-following processing server may store mapping information between the identifier of the terminal (for example, the terminal identifier of the promoted user B) and the logged-in user identifier (for example, the identifier of the promoted user B) in the history mapping information, so that a corresponding user identifier may be determined subsequently according to the identifier of the terminal (for example, the terminal identifier of the promoted user B). On the other hand, the order-following processing server may store mapping information between the logged-in user identifier (e.g., the identifier of the promoted user B) and the analyzed promoted user identifier (e.g., the identifier of the promoted user a) and promoted product identifier in the history mapping information, so that the corresponding promoted information (e.g., the promoted user identifier and the promoted product identifier) may be determined subsequently according to the logged-in user identifier (e.g., the identifier of the promoted user B).
Step S403, if it is monitored that the user identifier is not logged in the terminal, and the target user identifier corresponding to the identifier of the terminal is queried according to the historical mapping information, storing mapping information between the target user identifier and the analyzed promoted user identifier and promoted product identifier to the historical mapping information.
In this embodiment of the application, if it is monitored that the user identifier is not logged in the terminal, the order following processing server may query whether the history mapping information stores a user identifier corresponding to the identifier of the terminal (for example, the terminal identifier of the promoted user B). Further, if it is found that the history mapping information stores a target user identifier corresponding to the terminal identifier, the waybill processing server may store mapping information between the target user identifier and the analyzed promoted user identifier and promoted product identifier in the history mapping information, so that corresponding promoted information (e.g., promoted user identifier, promoted product identifier) may be determined subsequently according to the target user identifier.
Step S404, if it is monitored that the user identifier is not logged in the terminal and the target user identifier corresponding to the identifier of the terminal is not inquired according to the historical mapping information, storing the mapping information between the identifier of the terminal and the analyzed promotion user identifier and promotion product identifier into the historical mapping information.
In this step, if it is monitored that the user identifier is not registered in the terminal, the order following processing server may query whether the user identifier corresponding to the identifier of the terminal is stored in the history mapping information. Further, if the target user identifier corresponding to the identifier of the terminal is not queried according to the history mapping information, the waybill processing server may store mapping information between the identifier of the terminal (e.g., the terminal identifier of the promoted user B) and the analyzed promoted user identifier (e.g., the identifier of the promoted user a) and promoted product identifier to the history mapping information, so that the corresponding promoted information (e.g., the promoted user identifier and the promoted product identifier) may be determined subsequently according to the identifier of the terminal (e.g., the terminal identifier of the promoted user B).
Optionally, any mapping information stored in the history mapping information related in the embodiment of the present application may have a validity period, and correspondingly, the order following processing server may delete the mapping information that has failed, so that on one hand, storage resources may be saved, and on the other hand, the query rate may be increased, which is beneficial to improving the efficiency of order following processing.
In this embodiment of the application, when monitoring that the terminal clicks the promotion link, the order-keeping processing server stores mapping information between the logged-in user identifier in the terminal and the analyzed promotion user identifier and promotion product identifier, mapping information between the target user identifier corresponding to the identifier of the terminal and the analyzed promotion user identifier and promotion product identifier, or mapping information between the identifier of the terminal and the analyzed promotion user identifier and promotion product identifier to the history mapping information, so that when receiving an order message sent by the terminal, it can be determined whether an order product in the order message is a promotion product, and to which promotion user data needs to be distributed, thereby improving the efficiency of order-keeping processing.
Fig. 5 is a schematic flowchart of a documentary processing method according to another embodiment of the present disclosure. On the basis of the above embodiment, in the embodiment of the present application, the terminal of the promoting user a, the order following processing server, and the terminal of the promoted user B are combined to introduce the above realizable manner of storing the mapping information. As shown in fig. 5, the method of the embodiment of the present application may include:
and S501, the terminal of the promotion user A sends a promotion link to the terminal of the promoted user B.
And step S502, the promoted user B clicks the promotion link through the terminal of the promoted user B.
Step S503, when it is monitored that the promotion link is clicked by the terminal of the promoted user B, the order-keeping processing server parses the corresponding promotion user identifier (for example, the identifier of the promotion user a) and the promotion product information according to the promotion link.
Illustratively, the promotional product information may include, but is not limited to: promotion product identification, promotion product description information, and the like.
Step S504, the order following processing server determines whether the promoted user B has already logged in the user id.
If it is monitored that the user identifier (for example, the identifier of the promoted user B) is already registered in the terminal of the promoted user B, step S505 is executed; if it is monitored that the user identifier is not registered in the terminal of the promoted user B, step S506 is executed.
Step S505, the waybill processing server stores mapping information between the terminal identifier of the promoted user B and the logged-in user identifier (for example, the identifier of the promoted user B), and mapping information between the logged-in user identifier (for example, the identifier of the promoted user B) and the parsed promoted user identifier (for example, the identifier of the promoted user a) and promoted product identifier into history mapping information.
Step S506, the waybill processing server determines whether the target user id corresponding to the terminal id of the promoted user B can be queried according to the history mapping information.
If it is monitored that a target user identifier (for example, the identifier of the promoted user B) corresponding to the terminal identifier of the promoted user B can be queried according to the history mapping information, step S507 is executed; if it is monitored that the target user identifier corresponding to the terminal identifier of the promoted user B cannot be queried according to the history mapping information, step S508 is executed.
Step S507, the waybill processing server saves mapping information between the target user identifier (for example, the identifier of the promoted user B) and the parsed promoted user identifier (for example, the identifier of the promoted user a) and promoted product identifier to the history mapping information.
Step S508, the waybill processing server stores the mapping information between the terminal identifier of the promoted user B, the parsed promoted user identifier (for example, the identifier of the promoted user a) and the promoted product identifier to the history mapping information.
It should be noted that, in this embodiment of the application, the waybill processing server, while storing the mapping information, may also send a promotion product display page to the terminal of the promoted user B according to the promotion product information analyzed by the promotion link, so that the promoted product is conveniently viewed by the promoted user B.
It should be understood that, in this embodiment of the present application, the waybill processing server stores the mapping information, and at the same time, updates and stores the parsed popularization user identifier (for example, the identifier of the popularization user a) and the popularization product information into a cookie (data stored on the user local terminal) record in the terminal of the popularization user B.
In this embodiment, when monitoring that the promoted link is clicked by the terminal of the promoted user B, the order-keeping processing server stores mapping information between the logged-in user id of the promoted user B and the parsed promoted user id and promoted product id, mapping information between the target user id corresponding to the terminal id of the promoted user B and the parsed promoted user id and promoted product id, or mapping information between the terminal id of the promoted user B and the parsed promoted user id and promoted product id into the historical mapping information, so that when receiving an order message sent by the terminal of the promoted user B, the promotion information corresponding to the promoted user B id or the promoted user B terminal id carried in the order message can be queried according to the historical mapping information, therefore, whether the order product in the order message is a promotion product or not and which promotion user needs to be distributed with data can be judged, and the efficiency of order following processing is improved.
Fig. 6 is a schematic flowchart of a documentary processing method according to another embodiment of the present disclosure. On the basis of the above embodiment, in the embodiment of the present application, a description is given of an implementation manner of implementing the order following processing by querying the history mapping information in combination with the order following processing server and the terminal of the promoted user B. As shown in fig. 6, the method of the embodiment of the present application may include:
step S601, when the promoted user B determines to purchase the promoted product, the promoted user B' S terminal sends an order message to the order-following processing server.
The order message may include, but is not limited to: identification of promoted user B and order product information.
Step S602, the waybill processing server inquires whether the history mapping information stores promotion information corresponding to the identifier of the promoted user B.
If it is found that the history mapping information stores promotion information (for example, the promotion user a identifier and the promotion product identifier) corresponding to the promoted user B identifier, then step S603 is executed; if it is found that the history mapping information does not store promotion information corresponding to the identifier of the promoted user B, step S604 is executed.
Step S603, the order following processing server determines target data allocated to the target promotion user according to the order product information and the promotion information.
The target promoting user is a promoting user (for example, the promoting user a) corresponding to the promoting user identifier (for example, the identifier of the promoting user a) in the promoting information corresponding to the identifier of the promoted user B.
For a specific implementation manner, reference may be made to the related description about step S202 in the foregoing embodiments of the present application, and details are not described herein again.
Step S604, the waybill processing server inquires whether the history mapping information stores promotion information corresponding to the terminal identifier of the promoted user B.
If it is found that the history mapping information stores promotion information (including, for example, the identifier of the promoting user a and the identifier of a promoted product) corresponding to the terminal identifier of the promoted user B, step S605 is executed.
And step S605, the order following processing server determines target data distributed to the target promotion users according to the order product information and the promotion information.
The target promoting user is a promoting user (for example, the promoting user a) corresponding to the promoting user identifier (for example, the identifier of the promoting user a) in the promoting information corresponding to the terminal identifier of the promoted user B.
For a specific implementation manner, reference may be made to the related description about step S203 in the foregoing embodiments of the present application, and details are not described herein again.
In the embodiment of the application, when the order message sent by the terminal of the promoted user B is received, the order-following processing server can query the promotion information corresponding to the identifier of the promoted user B or the terminal identifier of the promoted user B carried in the order message according to the history mapping information, so that whether the order product in the order message is a promoted product or not can be judged, and data needs to be distributed to which promoted user, thereby improving the efficiency of order-following processing.
Fig. 7 is a schematic structural diagram of a documentary processing device according to an embodiment of the present disclosure. As shown in fig. 7, the waybill processing device 70 provided in the embodiment of the present application may include: a receiving module 701 and a first determining module 702.
The receiving module 701 is configured to receive an order message sent by a terminal, where the order message includes: user identification and order product information;
a first determining module 702, configured to determine, if popularization information corresponding to the user identifier is queried according to history mapping information, target data allocated to a target popularization user according to the order product information and the popularization information;
wherein the history mapping information includes: at least one historical user identifier and historical promotion information corresponding to each historical user identifier; the historical popularization information comprises: historical promotion user identification; and the target popularization user is a popularization user corresponding to the popularization user identification in the popularization information.
In a possible implementation manner, if the user identifier corresponds to a plurality of pieces of the promotion information, the promotion information further includes: promotion product identification, the first determining module 702 includes:
and the first determining unit is used for determining target promotion information distributed to the target promotion user according to the order product information if the target promotion information with the promotion product identifier being the same as the order product identifier is determined from the plurality of promotion information according to the order product identifier in the order product information.
In a possible implementation manner, the first determining module 702 further includes:
and a second determining unit, configured to, if popularization information with a popularization product identifier that is the same as the order product identifier is not determined from the plurality of pieces of popularization information according to the order product identifier in the order product information, determine target popularization information with the latest storage time according to the storage time of the plurality of pieces of popularization information stored in the history mapping information, and determine target data allocated to a target popularization user according to the order product information, where the target popularization user is a popularization user corresponding to the popularization user identifier in the target popularization information.
In a possible implementation manner, the order message further includes a terminal identifier, and the history mapping information further includes: at least one historical terminal identification and the historical promotion information corresponding to each historical terminal identification, the device further comprises:
and a second determining module, configured to determine, if popularization information corresponding to the user identifier is not queried according to history mapping information and popularization information corresponding to the terminal identifier is queried according to the history mapping information, target data allocated to a target popularization user according to the order product information and the popularization information corresponding to the terminal identifier, where the target popularization user is a popularization user corresponding to a popularization user identifier in the popularization information corresponding to the terminal identifier.
In a possible implementation manner, if the terminal identifier corresponds to a plurality of pieces of the promotion information, the promotion information further includes: promote the product identification, the second confirms the module, includes:
a first determining unit, configured to determine, according to an order product identifier in the order product information, target promotion information with a promotion product identifier that is the same as the order product identifier from the plurality of promotion information, and determine, according to the order product information, target data allocated to a target promotion user, where the target promotion user is a promotion user corresponding to the promotion user identifier in the target promotion information.
In one possible implementation manner, the second determining module further includes:
and a second determining unit, configured to, if popularization information with a popularization product identifier that is the same as the order product identifier is not determined from the plurality of pieces of popularization information according to the order product identifier in the order product information, determine target popularization information with the latest storage time according to the storage time of the plurality of pieces of popularization information stored in the history mapping information, and determine target data allocated to a target popularization user according to the order product information, where the target popularization user is a popularization user corresponding to the popularization user identifier in the target popularization information.
In one possible implementation, the apparatus further includes:
the analysis module is used for analyzing corresponding promotion user identification and promotion product identification according to the promotion link when the promotion link is monitored to be clicked by the terminal;
the storage module is used for storing mapping information between the identifier of the terminal and the logged user identifier and mapping information between the logged user identifier and the analyzed promotion user identifier and promotion product identifier into historical mapping information if the fact that the user identifier is logged in the terminal is monitored; or,
if the fact that the user identification is not logged in the terminal is monitored, and a target user identification corresponding to the identification of the terminal is inquired according to the historical mapping information, storing the mapping information between the target user identification and the analyzed promotion user identification and promotion product identification into the historical mapping information; or,
if the situation that the user identification is not logged in the terminal is monitored, and the target user identification corresponding to the identification of the terminal is not inquired according to the historical mapping information, storing the mapping information between the identification of the terminal and the analyzed promotion user identification and promotion product identification into the historical mapping information.
The order following processing device provided by the embodiment of the application can be used for executing the technical scheme in the embodiment of the order following processing method of the application, the implementation principle and the technical effect are similar, and the description is omitted here.
Fig. 8 is a schematic structural diagram of an order following processing server provided in the embodiment of the present application. As shown in fig. 8, the order following processing server 80 provided in this embodiment of the present application may include: a processor 801 and a memory 802.
Wherein the memory 802 is configured to store program instructions;
the processor 801 is configured to call and execute the program instruction stored in the memory 802, and when the processor 801 executes the program instruction stored in the memory 802, the waybill processing server 80 is configured to execute the technical solution in the foregoing waybill processing method embodiment of the present application, and the implementation principle and the technical effect are similar, and are not described herein again.
An embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is enabled to execute the technical solution in the foregoing waybill processing method embodiment of the present application, and implementation principles and technical effects thereof are similar, and are not described herein again.
It should be understood by those of ordinary skill in the art that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of the processes should be determined by their functions and inherent logic, and should not limit the implementation process of the embodiments of the present application.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.