CN108932640B - Method and device for processing orders - Google Patents
Method and device for processing orders Download PDFInfo
- Publication number
- CN108932640B CN108932640B CN201710352675.6A CN201710352675A CN108932640B CN 108932640 B CN108932640 B CN 108932640B CN 201710352675 A CN201710352675 A CN 201710352675A CN 108932640 B CN108932640 B CN 108932640B
- Authority
- CN
- China
- Prior art keywords
- selection operation
- identifier
- commodity
- access
- record
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 53
- 238000012545 processing Methods 0.000 title claims abstract description 48
- 230000004044 response Effects 0.000 claims abstract description 19
- 238000004590 computer program Methods 0.000 claims description 10
- 230000009471 action Effects 0.000 claims description 7
- 238000012216 screening Methods 0.000 claims description 6
- 238000012986 modification Methods 0.000 claims description 4
- 230000004048 modification Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 13
- 238000004891 communication Methods 0.000 description 6
- 230000000694 effects Effects 0.000 description 6
- 230000006870 function Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 239000003086 colorant Substances 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000006835 compression Effects 0.000 description 2
- 238000007906 compression Methods 0.000 description 2
- 235000014510 cooky Nutrition 0.000 description 2
- 238000007405 data analysis Methods 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000001737 promoting effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000007619 statistical method Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000003203 everyday effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 229910052709 silver Inorganic materials 0.000 description 1
- 239000004332 silver Substances 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0641—Shopping interfaces
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Methods and apparatus for processing orders are disclosed. One embodiment of the method comprises: acquiring order information of an order to be processed in a target website, wherein the order information comprises an identifier of an order placing user and at least one commodity identifier; determining whether an ordering user accesses a commodity detail page through a preset page within a preset time period or not according to an access log of a target website, wherein the commodity detail page comprises page elements, and the page elements are used for obtaining selection operation of the user on a group of candidate commodity identifications; if so, determining the commodity identification selected by the order-placing user in a preset time period according to the selection operation; and in response to the at least one commodity identification comprising the determined commodity identification, determining the order to be processed as the order associated with the preset page. This embodiment improves the accuracy of order processing.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for processing an order.
Background
With the continuous development of internet technology, network information is explosively increased, and how to efficiently and accurately acquire desired information becomes a great challenge. For example, for an e-commerce website, a large amount of user access data and order data are generated every day, and how to effectively utilize the data to analyze the use condition of the website by the user is very important.
In the prior art, order data is mainly processed based on session (session) and SKU (Stock Keeping Unit), for example, when a user places an order and accesses an active page in the same session, the two are confirmed to have an association relationship; or the product SKU included in the active page accessed by the user and the SKU included in the order are overlapped, and the existence of the association relationship is confirmed. However, when determining whether the order and the activity page have an association relationship based on the session, the association relationship is established between the order and the activity page, which have no association originally, regardless of whether the goods in the order are displayed in the activity page; when determining whether the order is associated with the active page based on the SKU, it cannot be counted up for the case that the user enters the item detail page from the active page and then replaces the item on the item detail page.
Disclosure of Invention
The object of the present application is to propose an improved method and apparatus for processing orders to solve the technical problems mentioned in the background section above.
In a first aspect, an embodiment of the present application provides a method for processing an order, where the method includes: acquiring order information of an order to be processed in a target website, wherein the order information comprises an identifier of an order placing user and at least one commodity identifier; determining whether an ordering user accesses a commodity detail page through a preset page within a preset time period or not according to an access log of a target website, wherein the commodity detail page comprises page elements, and the page elements are used for obtaining selection operation of the user on a group of candidate commodity identifications; if so, determining the commodity identification selected by the order-placing user in a preset time period according to the selection operation; and in response to the at least one commodity identification comprising the determined commodity identification, determining the order to be processed as the order associated with the preset page.
In this embodiment, according to the selection operation, determining the commodity identifier selected by the order-placing user in the preset time period includes: acquiring a first data table established based on the selection operation, wherein the first data table is used for representing a first corresponding relation among the user identification, the page identification and the commodity identification selected in a preset time period; and determining the commodity identification selected by the ordering user in a preset time period according to the identification of the ordering user, the identification of the preset page and the first data table.
In this embodiment, the access log includes an access record stored for each user access, and the access record correspondingly stores an access source page identifier, an access user identifier, and access time; and the method further comprises the step of establishing a first data table, the step of establishing the first data table comprising: acquiring an access source page identifier in an access log as an identifier of a preset page, acquiring an access page identifier as an identifier of a commodity detail page, and acquiring an access record of access time in a preset time period; correspondingly storing the access user identifier and the access source page identifier in the obtained access record into a first data table; storing the selected commodity identification corresponding to the page identification in the obtained access record into a first data table according to a preset second corresponding relation between the selected commodity identification and the page identification; and modifying the selected commodity identification in the first data table according to the selection operation.
In this embodiment, modifying the selected product identifier in the first data table according to the selection operation includes: and executing the following record sorting steps aiming at each user identifier included in the selection operation record, wherein the selection operation record is generated based on the selection operation and comprises the user identifier of the executor of the selection operation, the execution time of the selection operation, the selected commodity identifier before the execution of the selection operation and the selected commodity identifier after the execution of the selection operation: screening a selection operation record which comprises the user identifier and has the execution time within a preset time period; merging all the selected operation record pairs included in the screened selection operation records to obtain sorted selection operation records, wherein the selection operation record pairs include a first selection operation record and a second selection operation record, the commodity identification selected before the selection operation included in the first selection operation record is executed is the same as the commodity identification selected after the selection operation included in the second selection operation record is executed, and the execution time included in the first selection operation record, the commodity identification selected after the selection operation included in the first selection operation record is executed and the commodity identification selected before the selection operation included in the second selection operation record are reserved in the sorted selection operation records; and for each record in the first data table, determining a record matched with the record in the sorted selection operation records according to the user identifier, and modifying the selected commodity identifier in the record into the selected commodity identifier after the selection operation included in the determined record is executed.
In this embodiment, a data acquisition point is preset for a page element, and the data acquisition point is used for acquiring a user identifier of an executor of a selection operation, an execution time of the selection operation, a commodity identifier selected before the execution of the selection operation, and a commodity identifier selected after the execution of the selection operation; and the method further comprises the step of generating a selection operation record, the step of generating the selection operation record comprising: and for each selection operation acquired by the page element, storing the user identifier of the executor of the selection operation, the execution time of the selection operation, the commodity identifier selected before the execution of the selection operation and the commodity identifier selected after the execution of the selection operation, which are acquired by a data acquisition point, as a selection operation record.
In this embodiment, a preset association relationship exists between the identifiers of each group of candidate commodities; and the method further comprises the step of generating a selection operation record, the step of generating the selection operation record comprising: inquiring an access record of an access time within a preset time period, wherein an access source page identifier and an access page identifier in an access log are commodity detail page identifiers; and for each access record in the inquired access records, responding to the second corresponding relation, determining that a preset incidence relation exists between the access source page identification and the selected commodity identification corresponding to the access page identification in the access record, storing the access time in the access record as the execution time of the selection operation, storing the access user identification as the user identification of an executor of the selection operation, storing the selected commodity identification corresponding to the access source page identification in the access record as the commodity identification selected before the execution of the selection operation, and storing the selected commodity identification corresponding to the access page identification in the access record as the commodity identification selected after the execution of the selection operation to obtain a selection operation record.
In a second aspect, an embodiment of the present application provides an apparatus for processing an order, the apparatus including: the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring order information of an order to be processed in a target website, and the order information comprises an identifier of an order placing user and at least one commodity identifier; the first determining unit is used for determining whether an ordering user accesses a commodity detail page through a preset page within a preset time period according to an access log of a target website, wherein the commodity detail page comprises page elements, and the page elements are used for acquiring selection operation of the user on a group of candidate commodity identifications; the second determining unit is used for responding to the fact that the ordering user visits the commodity detail page through the preset page within the preset time period, and determining the commodity identification selected by the ordering user within the preset time period according to the selection operation; and the third determining unit is used for determining the order to be processed as the order associated with the preset page in response to the at least one commodity identification comprising the determined commodity identification.
In this embodiment, the second determination unit includes: the first acquisition subunit is used for acquiring a first data table established based on the selection operation, and the first data table is used for representing a first corresponding relation among the user identification, the page identification and the commodity identification selected in the preset time period; and the determining subunit is used for determining the commodity identification selected by the ordering user within the preset time period according to the identification of the ordering user, the identification of the preset page and the first data table.
In this embodiment, the access log includes an access record stored for each user access, and the access record correspondingly stores an access source page identifier, an access user identifier, and access time; the device also comprises a first data table establishing unit, wherein the first data table establishing unit comprises: the second acquisition subunit is used for acquiring an access source page identifier in the access log as an identifier of a preset page, an access page identifier as a commodity detail page identifier, and an access record of access time within a preset time period; the first storage subunit is used for correspondingly storing the access user identifier and the access source page identifier in the obtained access record into a first data table; the second storage subunit is used for storing the selected commodity identification corresponding to the page identification in the acquired access record into the first data table according to a preset second corresponding relation between the selected commodity identification and the page identification; and the modifying subunit is used for modifying the selected commodity identification in the first data table according to the selection operation.
In this embodiment, modifying the sub-unit includes: the record sorting module is used for executing the following record sorting steps aiming at each user identifier included in the selection operation record, wherein the selection operation record is generated based on the selection operation and comprises the user identifier of an executor of the selection operation, the execution time of the selection operation, the commodity identifier selected before the execution of the selection operation and the commodity identifier selected after the execution of the selection operation: screening a selection operation record which comprises the user identifier and has the execution time within a preset time period; merging all the selected operation record pairs included in the screened selection operation records to obtain sorted selection operation records, wherein the selection operation record pairs include a first selection operation record and a second selection operation record, the commodity identification selected before the selection operation included in the first selection operation record is executed is the same as the commodity identification selected after the selection operation included in the second selection operation record is executed, and the execution time included in the first selection operation record, the commodity identification selected after the selection operation included in the first selection operation record is executed and the commodity identification selected before the selection operation included in the second selection operation record are reserved in the sorted selection operation records; and the modification module is used for determining a record matched with the record in the sorted selection operation records according to the user identifier for each record in the first data table, and modifying the commodity identifier selected in the record into the commodity identifier selected after the selection operation included in the determined record is executed.
In this embodiment, a data acquisition point is preset for a page element, and the data acquisition point is used for acquiring a user identifier of an executor of a selection operation, an execution time of the selection operation, a commodity identifier selected before the execution of the selection operation, and a commodity identifier selected after the execution of the selection operation; and the apparatus further comprises a first generating unit, the first generating unit being further configured to: and for each selection operation acquired by the page element, storing the user identifier of the executor of the selection operation, the execution time of the selection operation, the commodity identifier selected before the execution of the selection operation and the commodity identifier selected after the execution of the selection operation, which are acquired by a data acquisition point, as a selection operation record.
In this embodiment, a preset association relationship exists between the identifiers of each group of candidate commodities; and the apparatus further comprises a second generating unit, the second generating unit being further configured to: inquiring an access record of an access time within a preset time period, wherein an access source page identifier and an access page identifier in an access log are commodity detail page identifiers; and for each access record in the inquired access records, responding to the second corresponding relation, determining that a preset incidence relation exists between the access source page identification and the selected commodity identification corresponding to the access page identification in the access record, storing the access time in the access record as the execution time of the selection operation, storing the access user identification as the user identification of an executor of the selection operation, storing the selected commodity identification corresponding to the access source page identification in the access record as the commodity identification selected before the execution of the selection operation, and storing the selected commodity identification corresponding to the access page identification in the access record as the commodity identification selected after the execution of the selection operation to obtain a selection operation record.
In a third aspect, an embodiment of the present application provides an apparatus, including: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method as described above in relation to the first aspect.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program is configured to, when executed by a processor, implement the method as described above in the first aspect.
According to the method and the device for processing the order, order information of the order to be processed in the target website is obtained, whether the order placing user accesses the commodity detail page through the preset page in the preset time period is determined according to the access log of the target website, if yes, the commodity identification selected by the order placing user in the preset time period is determined according to the selection operation, and finally the order to be processed is determined to be the order related to the preset page in response to the fact that at least one commodity identification comprises the determined commodity identification, so that the accuracy of order processing is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the following detailed description of non-limiting embodiments thereof, made with reference to the accompanying drawings in which:
FIG. 1 is an exemplary system architecture diagram in which the present application may be applied;
FIG. 2 is a schematic flow chart diagram illustrating one embodiment of a method for processing an order according to the present application;
FIG. 3 is a schematic diagram of an application scenario of a method for processing an order according to the present application;
FIG. 4 is a schematic flow chart diagram illustrating yet another embodiment of a method for processing an order according to the present application;
FIG. 5 is a schematic flow chart diagram for generating a first data table in yet another embodiment of a method for processing an order according to the present application;
FIG. 6 is an exemplary block diagram of one embodiment of an apparatus for processing an order according to the present application;
FIG. 7 is a block diagram of a computer system suitable for use in implementing a server according to embodiments of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the relevant invention and not restrictive of the invention. It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings.
It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present application will be described in detail below with reference to the embodiments with reference to the attached drawings.
Fig. 1 shows an exemplary system architecture 100 to which embodiments of the method for processing an order or the apparatus for processing an order of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. Various applications may be installed on the terminal devices 101, 102, 103, such as a web browser application, an e-commerce type application, a search type application, an instant messaging tool, a mailbox client, social platform software, etc.
The terminal devices 101, 102, 103 may be various electronic devices, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, mpeg compression standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, mpeg compression standard Audio Layer 4), laptop and desktop computers, and the like.
The server 105 may be a server providing various services, such as a background server providing support for web browser applications or e-commerce type applications installed on the terminal devices 101, 102, 103. The server 105 may receive the access requests sent by the terminal devices 101, 102, 103 and provide the corresponding pages. The server 105 may also periodically obtain order information of the order to be processed in the target website, then determine whether the order placing user has accessed the commodity detail page through a preset page within a preset time period according to the access log of the target website, if so, determine a commodity identifier selected by the order placing user within the preset time period according to a selection operation, and finally determine the order to be processed as the order associated with the preset page in response to at least one commodity identifier including the determined commodity identifier.
It should be noted that the method for processing the order provided by the embodiment of the present application may be executed by the server 105, and accordingly, the apparatus for processing the order may be disposed in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
With continued reference to FIG. 2, a flow 200 of one embodiment of a method for processing an order according to the present application is shown. The method for processing orders comprises the following steps:
In this embodiment, the electronic device (for example, the server shown in fig. 1) on which the method for processing an order is executed may obtain order information of an order to be processed in a target website, where the target website may be an electronic commerce type website, and the order to be processed in the target website may be an order generated by a user accessing a page of the target website through a browser and performing an order placing operation on the page of the target website, or an order generated by performing an order placing operation on a client of the target website. The order to be processed can be understood as an order to be analyzed or counted, and the order information of the order to be processed can be used as a data source in data analysis such as user behavior analysis.
The order information includes an identification of the ordering user and at least one item identification. The identifier of the ordering user may be information that can uniquely identify one user, such as an account number, a Mobile phone number, an International Mobile Equipment Identity (IMEI), an Internet Protocol (IP), a browser cache (Cookie), and the like of the ordering user. The commodity identification can be a commodity number, and the commodity number can be composed of any letters, numbers or symbols. Different commodity numbers are used for indicating commodities with different attributes, the commodities can be goods or services, the attributes are set according to different commodity types and can be specifications, colors, styles and the like, for example, the color attribute of the commodity can be red, yellow, blue and the like; the "specification" attribute of the product may be "small", "medium", "large", and the like. By way of example, the item identification may be a SKU.
In this embodiment, the electronic device may determine, according to an access log of the target website, whether the user corresponding to the identifier of the order placing user obtained in step 201 accesses the product detail page via a preset page within a preset time period, if so, go to step 203, and if not, may determine the to-be-processed order as an order that is not associated with the preset page. The default page may be a page showing merchandise information of a plurality of merchandise, for example, a page of a sales promotion in a shopping site, or a flow of information (Feed) page in an information-based site.
The website log is a file for recording various kinds of original information such as processing requests and runtime errors received by the server, and the access log can be understood as a part related to user access behaviors in the website log. Whether the ordering user accesses the commodity detail page through the preset page within the preset time period can be directly determined according to the access log, and the website log can be firstly analyzed to obtain the click stream data of the user.
Click Stream (Click Stream) refers to a track that a user visits continuously on a website. Each visit of a user to a website contains a series of Click action behaviors, and the Click action Data forms Click Stream Data (Click Stream Data) which represents the whole flow of browsing the website by the user. There are many methods for acquiring clickstream data, such as event capture by interpreted scripting language (JavaScript), collection by publishing client applications, website log analysis, and so on. Clickstream data may include an accessing user (Cookie), a session control identifier (session), access sources (referers), an entry page (entry), a start Time (Begin Time), an End Time (End Time), and an access duration (Time on Site). After the click stream data is obtained, in response to the fact that the order information of the order to be processed, which is the identification of the access user, is inquired in the click stream data, the access source is a preset page, the access page is a commodity detail page, the record of the access time in the preset time period is responded, and it is determined that the order placing user has accessed the commodity detail page through the preset page in the preset time period.
The product detail page may be a page composed of characters, pictures, videos, and the like, and used for introducing details such as product attributes and usage methods to the user. A group of candidate commodities can be displayed in a commodity detail page, the corresponding commodity detail page includes page elements for acquiring selection operations of a user on a group of candidate commodity identifiers, and the page elements can be words, links, pictures, option boxes and the like. The user's selection operation of a group of candidate commodity identifications can be clicking characters, links, pictures, or clicking options in an option box, and the user's selection operation can be obtained through point burying or clicking stream data. The set of candidate commodities can be a set of commodities which have commonalities but have differences in certain attributes, for example, a mobile phone of the same model has a plurality of versions with memory capacity, each version has its own SKU, mobile phones of different memory versions can be displayed in the same commodity detail page, and the commodity identification of the mobile phone selected by the user can be obtained by setting SKU characters, links, pictures and options in the commodity detail page to represent the mobile phones of different memory versions.
And step 203, determining the commodity identification selected by the order placing user in the preset time period according to the selection operation.
In this embodiment, in response to determining that the ordering user has accessed the product detail page via the preset page within the preset time period in step 202, the electronic device may determine the product identifier selected by the ordering user within the preset time period according to the selection operation of the ordering user in the product detail page. Most websites can perform statistical analysis on order data regularly, the predetermined time period can be a period of performing statistical analysis, for example, one day, and can be specifically set according to actual needs, and when the order data and the access data are more, the predetermined time period can be appropriately shortened.
The corresponding relationship between the page element and the candidate commodity identifier may be preset, and the corresponding relationship may be a direct corresponding relationship, for example, one page element corresponds to one commodity identifier, or an indirect corresponding relationship, for example, one page element corresponds to one attribute option, and the selected commodity identifier may be determined by a combination of multiple attributes. Taking a commodity as an example, a detailed commodity page of a certain type of clothing comprises page elements for selecting colors and sizes, and a commodity identifier selected by a user can be determined according to the selection operation of the user on the colors and the sizes. The detailed commodity page may be provided with a default selected candidate commodity identifier, that is, a candidate commodity identifier that has been selected by a user when the user has not performed a selection operation after entering the detailed commodity page, and the default selected commodity identifier may be set or may be a default of each attribute.
The commodity identification selected by the ordering user in the preset time period can be the commodity identification finally selected by the ordering user in the preset time period, if a plurality of selection operations of the ordering user are acquired in the preset time period, the plurality of acquired selection operations after the ordering user enters the detailed commodity page can be sequenced from early to late according to the acquisition time, the identification of the selected commodity corresponding to the last selection operation is determined as the commodity identification selected by the ordering user in the preset time period, for example, in the preset time period, the first candidate commodity identification is selected, then according to the selection operation acquired by the page element, the commodity identification selected by the ordering user is determined to be replaced by the second candidate commodity identification, and then the selection operation is not acquired or is acquired, but the last selection operation in the preset time period still replaces the selected commodity identification by the second candidate commodity identification, and the commodity identification selected by the ordering user in the preset time period is the second candidate commodity identification.
In this embodiment, the electronic device may determine the order to be processed as the order associated with the preset page in response to that the at least one product identifier included in the order information acquired in step 201 includes the product identifier determined in step 203. The order associated with the preset page may be an order due to the display of the item in the preset page.
For example, the preset page is a page of a certain e-commerce website sales promotion activity, and when the user browses the page, he/she has an interest in a certain commodity displayed in the page, and then clicks a link of the commodity in the page, enters a commodity detail page of the commodity, and places an order to purchase an alternative commodity in the commodity detail page, and then the page of the sales promotion activity can be considered to facilitate the placing of the order. The user may also place an order directly after adding an item to the shopping cart or directly in the page of the promotional activity, in which case the ordering act may also be considered to be facilitated by the page of the promotional activity.
After the order to be processed is determined to be the order associated with the preset page, the information of the order to be processed and the information of the preset page may be stored correspondingly, and the information of the order associated with the preset page may be sent to the device which subscribes the information about the relationship between the order and the preset page.
According to the method provided by the embodiment of the application, the order information of the order to be processed in the target website is obtained, whether the order placing user accesses the commodity detail page through the preset page in the preset time period is determined according to the access log of the target website, if yes, the commodity identification selected by the order placing user in the preset time period is determined according to the selection operation, and finally the order to be processed is determined as the order related to the preset page in response to the fact that at least one commodity identification comprises the determined commodity identification, so that the order processing accuracy is improved.
With continued reference to fig. 3, fig. 3 is a schematic diagram of an application scenario of the method for processing an order according to the present embodiment. In the application scenario of fig. 3, a user accesses a commodity detail page through a preset page through a terminal, where the commodity detail page includes a group of candidate commodities, which are respectively a black-colored mobile phone with a capacity of 64G and a silver-colored mobile phone with a capacity of 64G, a commodity identifier selected by default in the commodity detail page is a commodity identifier of the black-colored mobile phone with a capacity of 64G, the user clicks an area in the page where a "silver-colored" character is displayed within a preset time period, and the selected commodity identifier replaces the commodity identifier of the silver-colored mobile phone with a capacity of 64G; and then clicking a button for placing an order, or clicking a button for adding a shopping cart and clicking a button for placing an order in a page of the shopping cart to generate an order of the commodity identification of the mobile phone with silver and 64G, wherein after the electronic equipment acquires order information of the order, the order is determined as the order associated with a preset page according to an access log and the selection operation of a user.
Referring to fig. 4, fig. 4 is a flowchart illustrating a method for processing an order according to another embodiment of the present invention.
In FIG. 4, a flow 400 of the method for processing an order includes the steps of:
In this embodiment, an electronic device (for example, a server shown in fig. 1) on which the method for processing an order is executed may obtain order information of an order to be processed in a target website. An open source streaming framework, e.g., Storm, may be used to establish a topology that consumes order flow logs from a Kafka (Kafka). Kafka is an open source messaging system project that aims to provide a uniform, high throughput, low latency platform for processing real-time data. Storm is a free, open-source, distributed and highly fault-tolerant real-time computing system, has high concurrent capability of processing a large amount of data, and has strong real-time performance. Through the Storm cluster established in advance, data subscribed from Kafka, such as real-time operation information of users and real-time order data, can be received in real time, and then data analysis and calculation are carried out, and required data are classified and processed.
In this embodiment, the electronic device may determine, according to the access log of the target website, whether the user corresponding to the identifier of the order placing user acquired in step 401 has accessed the product detail page via a preset page within a preset time period, and if so, enter step 403. The access log may include an access record stored for each user access, and the access record may be stored with an access source page identifier, an access user identifier, and access time, or may be stored with operation data of the user in some pages.
In step 403, a first data table established based on the selection operation is obtained.
In this embodiment, in response to determining that the order placing user has accessed the commodity detail page through the preset page within the preset time period in step 402, the electronic device may obtain a first data table established based on the selection operation, where the first data table is used to represent a first corresponding relationship between the user identifier, the page identifier, and the commodity identifier selected within the preset time period. The selection operation of the user may be obtained by a buried point technology, or may be obtained based on an access log, for example, obtained based on clickstream data obtained by processing the access log. Each access record in the access log can be directly used as each record in the first data table, or the access records in the access log can be processed firstly, and the processed access records are used as each record in the first data table, so that the efficiency of the subsequent steps is improved.
In some optional implementations of the present embodiment, the process 500 for generating the first data table may include the following steps:
In this embodiment, the electronic device may obtain an identifier that an access source page identifier in the access log is a preset page identifier, and an access page identifier is a commodity detail page identifier, where the access time is an access record within a preset time period. By way of example, the website log may be analyzed by the Kafka system to obtain click stream data of the user, a topology may be established by using the Storm technology, the topology may consume the subscribed click stream data from Kafka, then the identifier of the access source page in the access log is screened out as the identifier of the preset page, the identifier of the access source page in the access log is screened out as the identifier of the commodity detail page, and the access time is the access record within the preset time period. The page identification may be a URL (Uniform resource locator). Whether the entry page identification is the item detail page identification may be determined by whether the entry page identification conforms to a format, for example, whether a file portion of a URL includes a string of fixed-length numbers.
In this embodiment, the electronic device may store the access user identifier and the access source page identifier in the obtained access record into the first data table correspondingly. As an example, the obtained record may be stored in a database, such as Redis, in units of user identities, resulting in a first data table. Redis is an open-source, network-supported, memory-based, and persistent journaling, key-value store (Key-value store) database, and provides multiple languages for API (Application Programming Interface). In the Redis, the valid time of the data may be set, and the valid duration may be determined according to a preset time period, for example, the preset time period may be one day, and the valid duration may also be one day.
In this embodiment, the electronic device may store, according to a preset second correspondence between the selected commodity identifier and the page identifier, the selected commodity identifier corresponding to the page identifier in the obtained access record in the first data table. Regarding the second correspondence, taking the page identifier as the URL as an example, a string of fixed-length numbers included in the file portion of the URL may be the selected product identifier corresponding thereto, or the string of fixed-length numbers may be encoded to obtain the selected product identifier corresponding thereto. For example, if the URL is "https:// item. XX. com/1111111111. html", the selected item identification may be "1111111111".
In this embodiment, the electronic device may execute the record sorting step for each user identifier included in the selection operation record, where the selection operation record is generated based on the selection operation and includes a user identifier of an executor of the selection operation, an execution time of the selection operation, a product identifier selected before the selection operation is executed, and a product identifier selected after the selection operation is executed. And the meaningless intermediate links can be eliminated by sorting the records, so that the data processing efficiency is improved.
In this embodiment, the record arranging step includes: screening a selection operation record which comprises the user identifier and has the execution time within a preset time period; and merging all the selected selection operation record pairs included in the screened selection operation records to obtain sorted selection operation records, wherein the selection operation record pairs include a first selection operation record and a second selection operation record, the commodity identification selected before the selection operation included in the first selection operation record is executed is the same as the commodity identification selected after the selection operation included in the second selection operation record is executed, and the execution time included in the first selection operation record, the commodity identification selected after the selection operation included in the first selection operation record is executed and the commodity identification selected before the selection operation included in the second selection operation record are reserved in the sorted selection operation records.
For example, the execution time in the second selection operation record is 23: 00, the commodity identification selected before the selection operation is executed is the commodity identification 1, the commodity identification selected after the selection operation is executed is the commodity identification 2, and the execution time in the first selection operation record is 23: 05, the commodity identification selected before the selection operation is executed is the commodity identification 2, the commodity identification selected after the selection operation is executed is the commodity identification 3, and in the sorted selection operation record, the execution time is 23: 05, the commodity identification selected before the selection operation is executed is the commodity identification 1, and the commodity identification selected after the selection operation is executed is the commodity identification 3. Finally, the sorted selection operation records can be saved to the Redis in units of user identifications.
In some optional implementation manners of this embodiment, a data acquisition point is preset for a page element, and the data acquisition point is used for acquiring a user identifier of an executor of a selection operation, an execution time of the selection operation, a commodity identifier selected before the execution of the selection operation, and a commodity identifier selected after the execution of the selection operation; and the method further comprises the step of generating a selection operation record, the step of generating the selection operation record comprising: and for each selection operation acquired by the page element, storing the user identifier of the executor of the selection operation, the execution time of the selection operation, the commodity identifier selected before the execution of the selection operation and the commodity identifier selected after the execution of the selection operation, which are acquired by a data acquisition point, as a selection operation record. The setting of the data collection point can be realized by JavaScript.
In some optional implementation manners of the embodiment, a preset association relationship exists between the identifiers of each group of candidate commodities; and the method further comprises the step of generating a selection operation record, the step of generating the selection operation record comprising: inquiring an access record of an access time within a preset time period, wherein an access source page identifier and an access page identifier in an access log are commodity detail page identifiers; and for each access record in the inquired access records, responding to the second corresponding relation, determining that a preset incidence relation exists between the access source page identification and the selected commodity identification corresponding to the access page identification in the access record, storing the access time in the access record as the execution time of the selection operation, storing the access user identification as the user identification of an executor of the selection operation, storing the selected commodity identification corresponding to the access source page identification in the access record as the commodity identification selected before the execution of the selection operation, and storing the selected commodity identification corresponding to the access page identification in the access record as the commodity identification selected after the execution of the selection operation to obtain a selection operation record.
In this implementation, a group of items identified as being the same in the first several digits may be the identification of an item candidate, e.g., "1111111111," "1111111112," "1111111113" may be the identification of a group of item candidates. The specific rule can be set according to actual needs.
And 505, for each record in the first data table, determining a record matched with the record in the sorted selection operation records according to the user identifier, and modifying the commodity identifier selected in the record into the commodity identifier selected after the selection operation included in the determined record is executed.
In this embodiment, the electronic device may determine, for each record in the first data table, a record matching with the record in the sorted selection operation records according to the user identifier, and modify the commodity identifier selected in the record to a commodity identifier selected after the selection operation included in the determined record is executed. For example, in one record in the first data table, the user identifier is "XXX", the page identifier is "https:// sale. XX. com/act/XX. html", and the selected article identifier in the preset time period is "1111111111111". The record with the user identification of "XXX" in the sorted selection operation record is the record matched with the record, and the selected commodity identification in the record is modified into "1111111111".
And step 404, determining the commodity identification selected by the ordering user in a preset time period according to the identification of the ordering user, the identification of the preset page and the first data table.
In this embodiment, the electronic device may determine the commodity identifier selected by the ordering user within a preset time period according to the identifier of the ordering user, the identifier of the preset page, and the first data table. The record of the user identifier as the identifier of the ordering user in the first data table can be firstly inquired, the selected commodity identifier in the record is determined as the commodity identifier selected by the ordering user in the preset time period, or the selected commodity identifier corresponding to the page identifier in the record is determined as the commodity identifier selected by the ordering user in the preset time period.
In this embodiment, the electronic device may determine the order to be processed as the order associated with the preset page in response to that the at least one product identifier included in the order information acquired in step 401 includes the product identifier determined in step 404. After the to-be-processed order is determined to be an order associated with the preset page, information of the to-be-processed order and information of the preset page may be stored correspondingly, for example, HBase (Hadoop Database) may be used, where the HBase is a distributed and column-oriented open source Database and a scalable distributed storage system, and the primary key of the row during storage may be a combination of a URL and a date of the preset page.
The implementation details and technical effects of step 401, step 402, and step 405 may refer to the descriptions in step 201, step 202, and step 204, which are not described herein again.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the flow 400 of the method for processing an order in this embodiment highlights the steps of generating the first data table and determining the goods identifier selected by the ordering user within the preset time period according to the first data table. Thus, the solution described in the present embodiment improves the efficiency of processing orders.
With further reference to fig. 6, as an implementation of the method described above, the present application provides an embodiment of an apparatus for processing an order, which corresponds to the embodiment of the method shown in fig. 2, and which is particularly applicable to various electronic devices.
As shown in fig. 6, the apparatus 600 for processing an order of the present embodiment includes: the order processing method comprises an acquisition unit 601, a first determination unit 602, a second determination unit 603 and a third determination unit 604, wherein the acquisition unit 601 is used for acquiring order information of an order to be processed in a target website, and the order information comprises an identifier of an order placing user and at least one commodity identifier; a first determining unit 602, configured to determine, according to an access log of a target website, whether an ordering user accesses a commodity detail page via a preset page within a preset time period, where the commodity detail page includes a page element, and the page element is used to obtain a selection operation of the user on a group of candidate commodity identifiers; a second determining unit 603, configured to determine, according to a selection operation, a commodity identifier selected by the ordering user within a preset time period in response to the ordering user accessing the commodity detail page via a preset page within the preset time period; a third determining unit 604, configured to determine, in response to the determined product identifier included in the at least one product identifier, the to-be-processed order as an order associated with the preset page.
In this embodiment, the specific processing of the obtaining unit 601, the first determining unit 602, the second determining unit 603, and the third determining unit 604 may refer to the detailed description of step 201, step 202, step 203, and step 204 in the corresponding embodiment of fig. 2, and is not described herein again.
In some optional implementations of this embodiment, the second determining unit 603 includes: a first obtaining subunit (not shown in the figure), configured to obtain a first data table established based on the selection operation, where the first data table is used to represent a first corresponding relationship between the user identifier, the page identifier, and the commodity identifier selected in the preset time period; and the determining subunit (not shown in the figure) is used for determining the commodity identifier selected by the ordering user within the preset time period according to the identifier of the ordering user, the identifier of the preset page and the first data table.
In some optional implementation manners of this embodiment, the access log includes an access record stored for each user access, and the access record correspondingly stores an access source page identifier, an access user identifier, and access time; and the apparatus further comprises a first data table establishing unit (not shown in the figure), the first data table establishing unit (not shown in the figure) comprising: a second obtaining subunit (not shown in the figure), configured to obtain an identifier that an access source page identifier in the access log is a preset page identifier, an access page identifier is a commodity detail page identifier, and an access record of access time within a preset time period; a first storage subunit (not shown in the figure), configured to correspondingly store, in the first data table, the access user identifier and the access source page identifier in the obtained access record; a second storage subunit (not shown in the figure), configured to store, according to a second correspondence relationship between a preset selected commodity identifier and a page identifier, the selected commodity identifier corresponding to the page identifier entered in the obtained access record into the first data table; and a modification subunit (not shown in the figure) for modifying the selected commodity identification in the first data table according to the selection operation.
In some optional implementations of this embodiment, the modifying subunit (not shown in the figure) includes: a record sorting module (not shown in the figure) configured to execute the following record sorting steps for each user identifier included in the selection operation record, where the selection operation record is generated based on the selection operation and includes a user identifier of an executor of the selection operation, an execution time of the selection operation, a selected product identifier before the execution of the selection operation, and a selected product identifier after the execution of the selection operation: screening a selection operation record which comprises the user identifier and has the execution time within a preset time period; merging all the selected operation record pairs included in the screened selection operation records to obtain sorted selection operation records, wherein the selection operation record pairs include a first selection operation record and a second selection operation record, the commodity identification selected before the selection operation included in the first selection operation record is executed is the same as the commodity identification selected after the selection operation included in the second selection operation record is executed, and the execution time included in the first selection operation record, the commodity identification selected after the selection operation included in the first selection operation record is executed and the commodity identification selected before the selection operation included in the second selection operation record are reserved in the sorted selection operation records; and a modification module (not shown in the figure) for determining, for each record in the first data table, a record matching the record in the sorted selection operation record according to the user identifier, and modifying the commodity identifier selected in the record into a commodity identifier selected after the selection operation included in the determined record is executed.
In some optional implementation manners of this embodiment, a data acquisition point is preset for a page element, and the data acquisition point is used for acquiring a user identifier of an executor of a selection operation, an execution time of the selection operation, a commodity identifier selected before the execution of the selection operation, and a commodity identifier selected after the execution of the selection operation; and the apparatus further comprises a first generating unit (not shown in the figures), the first generating unit (not shown in the figures) being further configured for: and for each selection operation acquired by the page element, storing the user identifier of the executor of the selection operation, the execution time of the selection operation, the commodity identifier selected before the execution of the selection operation and the commodity identifier selected after the execution of the selection operation, which are acquired by a data acquisition point, as a selection operation record.
In some optional implementation manners of the embodiment, a preset association relationship exists between the identifiers of each group of candidate commodities; and the apparatus further comprises a second generating unit (not shown in the figures), the second generating unit (not shown in the figures) being further configured for: inquiring an access record of an access time within a preset time period, wherein an access source page identifier and an access page identifier in an access log are commodity detail page identifiers; and for each access record in the inquired access records, responding to the second corresponding relation, determining that a preset incidence relation exists between the access source page identification and the selected commodity identification corresponding to the access page identification in the access record, storing the access time in the access record as the execution time of the selection operation, storing the access user identification as the user identification of an executor of the selection operation, storing the selected commodity identification corresponding to the access source page identification in the access record as the commodity identification selected before the execution of the selection operation, and storing the selected commodity identification corresponding to the access page identification in the access record as the commodity identification selected after the execution of the selection operation to obtain a selection operation record.
As can be seen from fig. 6, in the apparatus 600 for processing an order in this embodiment, order information of an order to be processed in a target website is acquired, then according to an access log of the target website, it is determined whether an order placing user has accessed a commodity detail page via a preset page within a preset time period, if so, according to a selection operation, a commodity identifier selected by the order placing user within the preset time period is determined, and finally, in response to at least one commodity identifier including the determined commodity identifier, the order to be processed is determined as an order associated with the preset page, so that accuracy of order processing is improved.
Referring now to FIG. 7, shown is a block diagram of a computer system 700 suitable for use in implementing a server according to embodiments of the present application. The server shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 7, the computer system 700 includes a Central Processing Unit (CPU)701, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data necessary for the operation of the system 700 are also stored. The CPU 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input/output (I/O) interface 705 is also connected to bus 704.
The following components are connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 706 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by a Central Processing Unit (CPU)701, performs the above-described functions defined in the method of the present application. It should be noted that the computer readable medium described herein can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a unit, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware. The described units may also be provided in a processor, and may be described as: a processor includes an acquisition unit, a first determination unit, a second determination unit, and a third determination unit. The names of these units do not in some cases constitute a limitation on the units themselves, and for example, the acquiring unit may also be described as a "unit for acquiring order information of an order to be processed in the destination web site".
As another aspect, the present application also provides a non-volatile computer storage medium, which may be the non-volatile computer storage medium included in the apparatus in the above-described embodiments; or it may be a non-volatile computer storage medium that exists separately and is not assembled into a server. The non-transitory computer storage medium stores one or more programs that, when executed by a device, cause the device to: acquiring order information of an order to be processed in a target website, wherein the order information comprises an identifier of an order placing user and at least one commodity identifier; determining whether an ordering user accesses a commodity detail page through a preset page within a preset time period or not according to an access log of a target website, wherein the commodity detail page comprises page elements, and the page elements are used for obtaining selection operation of the user on a group of candidate commodity identifications; if so, determining the commodity identification selected by the order-placing user in a preset time period according to the selection operation; and in response to the at least one commodity identification comprising the determined commodity identification, determining the order to be processed as the order associated with the preset page.
The above description is only a preferred embodiment of the application and is illustrative of the principles of the technology employed. It will be appreciated by a person skilled in the art that the scope of the invention as referred to in the present application is not limited to the embodiments with a specific combination of the above-mentioned features, but also covers other embodiments with any combination of the above-mentioned features or their equivalents without departing from the inventive concept. For example, the above features may be replaced with (but not limited to) features having similar functions disclosed in the present application.
Claims (14)
1. A method for processing an order, the method comprising:
obtaining order information of an order to be processed in a target website, wherein the order information comprises an identifier of an order placing user and at least one commodity identifier;
determining whether the ordering user accesses a commodity detail page through a preset page within a preset time period or not according to the access log of the target website, wherein the commodity detail page comprises page elements, and the page elements are used for obtaining the selection operation of the user on a group of candidate commodity identifications;
if so, determining the commodity identification selected by the ordering user in the preset time period according to the selection operation;
and in response to the at least one commodity identifier comprises the determined commodity identifier, determining the to-be-processed order as the order associated with the preset page.
2. The method according to claim 1, wherein the determining, according to the selection operation, the commodity identifier selected by the ordering user within the preset time period comprises:
acquiring a first data table established based on the selection operation, wherein the first data table is used for representing a first corresponding relation among a user identifier, a page identifier and a commodity identifier selected in a preset time period;
and determining the commodity identification selected by the ordering user in the preset time period according to the identification of the ordering user, the identification of the preset page and the first data table.
3. The method of claim 2, wherein the access log comprises an access record stored for each user access, and the access record has an access source page identifier, an access user identifier and an access time stored therein; and
the method further comprises the step of establishing a first data table, wherein the step of establishing the first data table comprises the following steps:
acquiring an access source page identifier in the access log as an identifier of the preset page, and acquiring an access record of access time in the preset time period, wherein an access source page identifier in the access log is a commodity detail page identifier;
correspondingly storing an access user identifier and an access source page identifier in the obtained access record into the first data table;
storing the selected commodity identification corresponding to the page identification in the obtained access record into the first data table according to a preset second corresponding relation between the selected commodity identification and the page identification;
and modifying the selected commodity identification in the first data table according to the selection operation.
4. The method of claim 3, wherein said modifying the selected item identifier in the first data table according to the selection operation comprises:
executing the following record sorting steps aiming at each user identifier included in a selection operation record, wherein the selection operation record is generated based on the selection operation and comprises the user identifier of an executor of the selection operation, the execution time of the selection operation, the selected commodity identifier before the execution of the selection operation and the selected commodity identifier after the execution of the selection operation: screening a selection operation record which comprises the user identifier and has the execution time within a preset time period; merging all the selected selection operation record pairs included in the screened selection operation records to obtain sorted selection operation records, wherein the selection operation record pairs include a first selection operation record and a second selection operation record, the commodity identification selected before the selection operation included in the first selection operation record is executed is the same as the commodity identification selected after the selection operation included in the second selection operation record is executed, and the execution time included in the first selection operation record, the commodity identification selected after the selection operation included in the first selection operation record is executed and the commodity identification selected before the selection operation included in the second selection operation record are reserved in the sorted selection operation records;
and for each record in the first data table, determining a record matched with the record in the sorted selection operation records according to the user identifier, and modifying the commodity identifier selected in the record into the commodity identifier selected after the selection operation included in the determined record is executed.
5. The method according to claim 4, characterized in that a data acquisition point is preset for the page element, and the data acquisition point is used for acquiring a user identifier of an executor of a selection operation, an execution time of the selection operation, a commodity identifier selected before the execution of the selection operation and a commodity identifier selected after the execution of the selection operation; and
the method further comprises the step of generating a selection action record, the step of generating a selection action record comprising:
and for each selection operation acquired by the page element, storing the user identifier of the executor of the selection operation, the execution time of the selection operation, the commodity identifier selected before the execution of the selection operation and the commodity identifier selected after the execution of the selection operation, which are acquired by the data acquisition point, as a selection operation record.
6. The method according to claim 4, wherein a preset incidence relation exists between the identifiers of each group of the alternative commodities; and
the method further comprises the step of generating a selection action record, the step of generating a selection action record comprising:
inquiring an access record of the access log, wherein the access source page identification and the access page identification are commodity detail page identifications, and the access time is within the preset time period;
and for each access record in the inquired access records, responding to the second corresponding relation, determining that a preset association relation exists between the access source page identifier and the selected commodity identifier corresponding to the access page identifier in the access record, storing the access time in the access record as the execution time of the selection operation, storing the access user identifier as the user identifier of an executor of the selection operation, storing the selected commodity identifier corresponding to the access source page identifier in the access record as the commodity identifier selected before the execution of the selection operation, and storing the selected commodity identifier corresponding to the access page identifier in the access record as the commodity identifier selected after the execution of the selection operation to obtain a selection operation record.
7. An apparatus for processing an order, the apparatus comprising:
the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring order information of an order to be processed in a target website, and the order information comprises an identifier of an order placing user and at least one commodity identifier;
the first determining unit is used for determining whether the ordering user accesses a commodity detail page through a preset page within a preset time period according to the access log of the target website, wherein the commodity detail page comprises page elements, and the page elements are used for acquiring the selection operation of the user on a group of candidate commodity identifications;
the second determining unit is used for responding to the fact that the ordering user visits a commodity detail page through a preset page in a preset time period, and determining a commodity identification selected by the ordering user in the preset time period according to the selection operation;
a third determining unit, configured to determine, in response to that the at least one commodity identifier includes the determined commodity identifier, the to-be-processed order as an order associated with the preset page.
8. The apparatus of claim 7, wherein the second determining unit comprises:
the first acquisition subunit is used for acquiring a first data table established based on the selection operation, and the first data table is used for representing a first corresponding relation among the user identification, the page identification and the commodity identification selected in a preset time period;
and the determining subunit is used for determining the commodity identification selected by the ordering user in the preset time period according to the identification of the ordering user, the identification of the preset page and the first data table.
9. The apparatus of claim 8, wherein the access log comprises an access record stored for each user access, and the access record has an access source page identifier, an access user identifier and an access time stored therein; and
the apparatus further includes a first data table establishing unit, the first data table establishing unit including:
the second obtaining subunit is configured to obtain an access source page identifier in the access log as an identifier of the preset page, an access page identifier as an identifier of a commodity detail page, and an access record of access time within the preset time period;
the first storage subunit is used for correspondingly storing the access user identifier and the access source page identifier in the obtained access record into the first data table;
the second storage subunit is used for storing the selected commodity identification corresponding to the page identification in the acquired access record into the first data table according to a preset second corresponding relation between the selected commodity identification and the page identification;
and the modifying subunit is used for modifying the selected commodity identification in the first data table according to the selection operation.
10. The apparatus of claim 9, wherein the modifying subunit comprises:
the record sorting module is used for executing the following record sorting steps aiming at each user identifier included in the selection operation record, wherein the selection operation record is generated based on the selection operation and comprises the user identifier of an executor of the selection operation, the execution time of the selection operation, the commodity identifier selected before the execution of the selection operation and the commodity identifier selected after the execution of the selection operation: screening a selection operation record which comprises the user identifier and has the execution time within a preset time period; merging all the selected selection operation record pairs included in the screened selection operation records to obtain sorted selection operation records, wherein the selection operation record pairs include a first selection operation record and a second selection operation record, the commodity identification selected before the selection operation included in the first selection operation record is executed is the same as the commodity identification selected after the selection operation included in the second selection operation record is executed, and the execution time included in the first selection operation record, the commodity identification selected after the selection operation included in the first selection operation record is executed and the commodity identification selected before the selection operation included in the second selection operation record are reserved in the sorted selection operation records;
and the modification module is used for determining a record matched with the record in the sorted selection operation records according to the user identifier for each record in the first data table, and modifying the commodity identifier selected in the record into the commodity identifier selected after the selection operation included in the determined record is executed.
11. The device according to claim 10, wherein a data acquisition point is preset for the page element, and the data acquisition point is used for acquiring a user identifier of an executor of a selection operation, an execution time of the selection operation, a commodity identifier selected before the execution of the selection operation, and a commodity identifier selected after the execution of the selection operation; and
the apparatus also includes a first generating unit, the first generating unit further configured to:
and for each selection operation acquired by the page element, storing the user identifier of the executor of the selection operation, the execution time of the selection operation, the commodity identifier selected before the execution of the selection operation and the commodity identifier selected after the execution of the selection operation, which are acquired by the data acquisition point, as a selection operation record.
12. The device of claim 10, wherein there is a preset incidence relation between the identifiers of each group of candidate goods; and
the apparatus further comprises a second generating unit, the second generating unit further configured to:
inquiring an access record of the access log, wherein the access source page identification and the access page identification are commodity detail page identifications, and the access time is within the preset time period;
and for each access record in the inquired access records, responding to the second corresponding relation, determining that a preset association relation exists between the access source page identifier and the selected commodity identifier corresponding to the access page identifier in the access record, storing the access time in the access record as the execution time of the selection operation, storing the access user identifier as the user identifier of an executor of the selection operation, storing the selected commodity identifier corresponding to the access source page identifier in the access record as the commodity identifier selected before the execution of the selection operation, and storing the selected commodity identifier corresponding to the access page identifier in the access record as the commodity identifier selected after the execution of the selection operation to obtain a selection operation record.
13. An apparatus, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710352675.6A CN108932640B (en) | 2017-05-18 | 2017-05-18 | Method and device for processing orders |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710352675.6A CN108932640B (en) | 2017-05-18 | 2017-05-18 | Method and device for processing orders |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108932640A CN108932640A (en) | 2018-12-04 |
CN108932640B true CN108932640B (en) | 2022-03-04 |
Family
ID=64449896
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710352675.6A Active CN108932640B (en) | 2017-05-18 | 2017-05-18 | Method and device for processing orders |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108932640B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110827079B (en) * | 2019-11-04 | 2021-05-25 | 京东数字科技控股有限公司 | Order following processing method, device and storage medium |
CN111489245B (en) * | 2020-04-28 | 2023-05-05 | 上海风秩科技有限公司 | Data processing method, apparatus, computer device and readable storage medium |
CN113724026B (en) * | 2020-05-25 | 2024-06-18 | 北京沃东天骏信息技术有限公司 | Order source analysis method and device |
CN111709802B (en) * | 2020-06-12 | 2024-01-12 | 北京思特奇信息技术股份有限公司 | Order processing method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104517223A (en) * | 2014-12-15 | 2015-04-15 | 小米科技有限责任公司 | Commodity information recommending method and device |
CN105005923A (en) * | 2015-07-07 | 2015-10-28 | 苏州金禾通软件有限公司 | Unique identifier based commodity information processing method and apparatus |
CN105022830A (en) * | 2015-08-05 | 2015-11-04 | 焦点科技股份有限公司 | Weighting trajectory data set construction method based on user behaviors |
CN105260898A (en) * | 2015-10-19 | 2016-01-20 | 广州灵光信息科技有限公司 | Method and device of monitoring user browsing goods states through Internet |
CN105589905A (en) * | 2014-12-26 | 2016-05-18 | 中国银联股份有限公司 | User interest data analysis and collection system and method |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102890686A (en) * | 2011-07-21 | 2013-01-23 | 腾讯科技(深圳)有限公司 | Method and system for showing commodity search result |
-
2017
- 2017-05-18 CN CN201710352675.6A patent/CN108932640B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104517223A (en) * | 2014-12-15 | 2015-04-15 | 小米科技有限责任公司 | Commodity information recommending method and device |
CN105589905A (en) * | 2014-12-26 | 2016-05-18 | 中国银联股份有限公司 | User interest data analysis and collection system and method |
CN105005923A (en) * | 2015-07-07 | 2015-10-28 | 苏州金禾通软件有限公司 | Unique identifier based commodity information processing method and apparatus |
CN105022830A (en) * | 2015-08-05 | 2015-11-04 | 焦点科技股份有限公司 | Weighting trajectory data set construction method based on user behaviors |
CN105260898A (en) * | 2015-10-19 | 2016-01-20 | 广州灵光信息科技有限公司 | Method and device of monitoring user browsing goods states through Internet |
Also Published As
Publication number | Publication date |
---|---|
CN108932640A (en) | 2018-12-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018192491A1 (en) | Information pushing method and device | |
US20190012316A1 (en) | Presentations and reports built with big data analytics | |
US20110231819A1 (en) | Content Availability Determination, Representation And Acquisition System | |
JP7576798B2 (en) | Processing event streams using pattern recognition | |
CN109388548B (en) | Method and apparatus for generating information | |
US20190121669A1 (en) | Executing tasks using modular and intelligent code and data containers | |
CN107426328B (en) | Information pushing method and device | |
CN110020162B (en) | User identification method and device | |
US11232392B2 (en) | Method for processing orders and electronic device | |
CN108932640B (en) | Method and device for processing orders | |
US10120888B2 (en) | Automated task execution based on task criteria | |
CN110928853A (en) | Method and device for identifying log | |
CN107480277A (en) | Method and device for web log file collection | |
CN108810047B (en) | Method and device for determining information push accuracy rate and server | |
CN109284450B (en) | Method and device for determining order forming paths, storage medium and electronic equipment | |
CN113327146B (en) | Information tracking method and device | |
US10397306B2 (en) | System and method for translating versioned data service requests and responses | |
US20160350817A1 (en) | System for tracking donor influence in charitable transactions | |
CN110825988A (en) | Information display method and device and electronic equipment | |
CN107908662B (en) | Method and device for realizing search system | |
CN111311294A (en) | Data processing method, device, medium and electronic equipment | |
CN110297995B (en) | Method and device for collecting information | |
US20190180325A1 (en) | Systems and methods for ingesting and processing data in a data processing environment | |
CN107705182B (en) | Method and device for determining order source | |
CN107704357B (en) | Log generation method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TG01 | Patent term adjustment | ||
TG01 | Patent term adjustment |