WO2019062266A1 - Method and apparatus for determining source of order - Google Patents

Method and apparatus for determining source of order Download PDF

Info

Publication number
WO2019062266A1
WO2019062266A1 PCT/CN2018/094877 CN2018094877W WO2019062266A1 WO 2019062266 A1 WO2019062266 A1 WO 2019062266A1 CN 2018094877 W CN2018094877 W CN 2018094877W WO 2019062266 A1 WO2019062266 A1 WO 2019062266A1
Authority
WO
WIPO (PCT)
Prior art keywords
item
server
authentication value
identifier
user
Prior art date
Application number
PCT/CN2018/094877
Other languages
French (fr)
Chinese (zh)
Inventor
杨洋
Original Assignee
北京京东尚科信息技术有限公司
北京京东世纪贸易有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 北京京东尚科信息技术有限公司, 北京京东世纪贸易有限公司 filed Critical 北京京东尚科信息技术有限公司
Publication of WO2019062266A1 publication Critical patent/WO2019062266A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Definitions

  • the present application relates to the field of Internet technologies, and in particular, to the field of electronic commerce technologies, and in particular, to a method and apparatus for determining an order source.
  • the existing method for determining the order source usually sends the source parameter of each item in the order to the server when the user submits the order, which causes the server to process a large amount of data when the order data volume increases, which may easily lead to the embarrassment of the server.
  • the purpose of the present application is to propose a method and apparatus for determining the source of an order to solve the technical problems mentioned in the background section above.
  • the embodiment of the present application provides a method for determining an order source, where the method includes: determining, in response to detecting that a user performs a preset first operation performed on a page including an item to be purchased displayed on the terminal, determining Whether the user performs a preset second operation on the purchased item; if not, performing the following step of updating the first authentication value; the step of updating the first authentication value includes: obtaining the item source parameter, wherein the item source parameter includes the user's a user identifier, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page; sending the item source parameter and the first authentication value stored in the terminal to the server, so that the server sends the item source parameter and the first authentication value And to the merchant server corresponding to the merchant identifier; and receiving and storing the first authentication value that is sent by the server and updated based on the item source parameter.
  • the step of updating the first authentication value before detecting the item source parameter and the first authentication value stored in the terminal to the server further comprises: detecting whether the first authentication value is stored in the terminal; The first authentication value is not stored, and the preset value is determined to be the first authentication value.
  • the method further comprises: if the user performs a preset second operation on the purchased item, transmitting the current first authentication value to the server.
  • obtaining an item source parameter includes: obtaining a page identifier of the page; parsing the page identifier, determining the item identifier, and the merchant identifier.
  • the method further includes: receiving an order source statistics result sent by the server; and receiving, according to the order source statistics result, the push information sent by the server when detecting the third operation of the user by the terminal.
  • the embodiment of the present application provides a method for determining an order source, including: receiving an item generated by a terminal in response to a user performing a preset first operation performed on a page including an item to be purchased displayed on the terminal. a source parameter and a first authentication value, wherein the item source parameter includes a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page; parsing the item source parameter to determine the merchant identifier therein; The source parameter and the first authentication value are sent to a merchant server corresponding to the merchant identification.
  • the method further includes: receiving a first authentication value updated by the merchant server based on the item source parameter; parsing the updated first authentication value to determine a user identifier therein; and transmitting the updated first authentication value a terminal corresponding to the user ID included in the updated first authentication value.
  • the method further includes: receiving, by the terminal, a current first authentication value determined in response to the user performing a preset second operation on the item to be purchased; parsing the current first authentication value to determine the current a merchant identifier of the item corresponding to the authentication value; the current first authentication value is sent to the merchant server corresponding to the merchant identifier of the item corresponding to the current first authentication value.
  • the embodiment of the present application provides a method for determining an order source, including: receiving an item source parameter sent by a server and a first authentication value uploaded from a terminal to a server, where the item source parameter is that the terminal is detecting And sending to the server when the user performs the first operation on the page containing the item to be purchased, the item source parameter includes: a user identifier of the user, an item identifier of the item, and a page identifier of the page; and updating the first authentication value based on the item source parameter; And sending the updated first authentication value to the server.
  • the method further includes: creating an array, and storing the item identifier and the page identifier in the array; receiving an order confirmation request sent by the server, the order confirmation request is sent by the server after receiving the second operation of the user detected by the terminal To the merchant server; determine the user's order source statistics based on the item identification and page identification stored in the array.
  • the method further includes: determining, according to the order source statistics, a third operation of the user to receive the information to be pushed; and transmitting the third operation and the information to be pushed corresponding to the third operation to the server, so that the server responds to Receiving the third operation sent by the terminal sends the information to be pushed to the terminal.
  • the method further comprises: determining an establishment time of the array; deleting the array in response to the duration between the setup time and the current time being greater than a preset duration.
  • the embodiment of the present application further provides an apparatus for determining a source of an order, including: a determining unit, configured to respond to detecting, by the user, a preset performed by a page displayed on the terminal that includes an item to be purchased An operation of determining whether the user performs a preset second operation on the purchased item; and an updating unit, configured to update the first authentication value if the user does not perform the preset second operation on the purchased item; the updating unit includes: acquiring the module, Obtaining an item source parameter, wherein the item source parameter includes a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page; and a sending module, configured to store the item source parameter and the first in the terminal
  • the authentication value is sent to the server, so that the server sends the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier; and the receiving module is configured to receive and store the first authentication updated
  • the updating unit further includes: a detecting module, configured to detect whether the first authentication value is stored in the terminal before sending the item source parameter and the first authentication value stored in the terminal to the server; And determining that the preset value is the first authentication value, in response to the first authentication value not being stored in the terminal.
  • the apparatus further includes: a sending unit, configured to send the current first authentication value to the server if the user performs a preset second operation on the purchased item.
  • the obtaining module is further configured to: obtain a page identifier of the page; and parse the page identifier, determine the item identifier, and the merchant identifier.
  • the apparatus further includes: a statistical result receiving unit, configured to receive an order source statistical result sent by the server; and a push information receiving unit, configured to detect the third operation of the user by the terminal according to the order source statistical result When receiving the push information sent by the server.
  • the embodiment of the present application further provides an apparatus for determining a source of an order, including: a receiving unit, configured to respond to a preset first operation performed by a user on a page displayed on the terminal that includes an item to be purchased.
  • the generated item source parameter and the first authentication value wherein the item source parameter includes the user identifier of the user, the item identifier of the item, the merchant identifier of the merchant to which the item belongs, and the page identifier of the page;
  • the parsing unit is configured to parse the item source parameter, Determining a merchant identifier therein;
  • the sending unit configured to send the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
  • the receiving unit is further configured to receive a first authentication value that is updated by the merchant server based on the item source parameter; the parsing unit is further configured to parse the updated first authentication value to determine the user identifier therein; And configured to send the updated first authentication value to the terminal corresponding to the user identifier included in the updated first authentication value.
  • the receiving unit is further configured to receive, by the terminal, a current first authentication value that is determined in response to the user performing a preset second operation on the item to be purchased; the parsing unit is further configured to parse the current first authentication value. Determining a merchant identifier of the item corresponding to the current first authentication value; the sending unit is further configured to send the current first authentication value to the merchant server corresponding to the merchant identifier of the item corresponding to the current first authentication value.
  • the embodiment of the present application further provides an apparatus for determining an order source, including: a receiving unit, configured to receive an item source parameter sent by a server and a first authentication value uploaded from the terminal to the server, where the item The source parameter is sent to the server when the terminal detects the first operation performed by the user on the page containing the item to be purchased, and the item source parameter includes: the user identifier of the user, the item identifier of the item, and the page identifier of the page; Updating the first authentication value based on the item source parameter; and sending unit, configured to send the updated first authentication value to the server.
  • a receiving unit configured to receive an item source parameter sent by a server and a first authentication value uploaded from the terminal to the server, where the item The source parameter is sent to the server when the terminal detects the first operation performed by the user on the page containing the item to be purchased, and the item source parameter includes: the user identifier of the user, the item identifier of the item, and the page identifier of the page; Updating
  • the apparatus further includes: an array establishing unit, configured to create an array, and store the item identifier and the page identifier in the array; the receiving unit is further configured to receive an order confirmation request sent by the server, where the order confirmation request is received by the server The device is further sent to the merchant server after detecting the second operation of the user; the device further includes a determining unit; the determining unit is configured to determine the order source statistics result of the user according to the item identifier and the page identifier stored in the array.
  • the determining unit is further configured to: determine, according to the order source statistics result, a third operation that the user receives the information to be pushed; the sending unit is further configured to send the third operation and the to-be pushed information corresponding to the third operation to the server And causing the server to send the information to be pushed to the terminal in response to receiving the third operation sent by the terminal.
  • the determining unit is further configured to: determine an establishment time of the array; and delete the array in response to the duration between the setup time and the current time being greater than a preset duration.
  • the embodiment of the present application further provides a terminal, including: one or more processors; a storage device, configured to store one or more programs; and when one or more programs are executed by one or more processors Having one or more processors implement the method as provided by the first aspect.
  • the embodiment of the present application further provides a server, including: one or more processors; and a storage device, configured to store one or more programs, when one or more programs are executed by one or more processors Having one or more processors implement the method as provided by the second aspect.
  • the embodiment of the present application further provides a server, including: one or more processors; and a storage device, configured to store one or more programs, when one or more programs are executed by one or more processors Having one or more processors implement the method as provided by the third aspect.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the method provided by the first aspect is implemented.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the method provided by the second aspect is implemented.
  • the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the method provided by the third aspect is implemented.
  • the method and apparatus for determining an order source provided by the above embodiment of the present application, by uploading a corresponding item source parameter to a server and receiving an updated first authentication value sent by a server, each time the first operation is performed, the amount of data processed by the terminal and the server in a single operation and the amount of data of a single data transmission are reduced, which is advantageous for improving the stability and reliability of the operation of the terminal and the server.
  • FIG. 1 is an exemplary system architecture diagram to which the present application can be applied;
  • FIG. 2 is a flow diagram of one embodiment of a method for determining an order source in accordance with the present application
  • FIG. 3 is a flow diagram of another embodiment of a method for determining an order source in accordance with the present application.
  • FIG. 4 is a flow chart of still another embodiment of a method for determining an order source in accordance with the present application.
  • FIG. 5 is a schematic diagram of an application scenario of a method for determining an order source according to the present application
  • FIG. 6 is a schematic structural diagram of an embodiment of an apparatus for determining an order source according to the present application.
  • Figure 7 is a block diagram showing another embodiment of an apparatus for determining an order source according to the present application.
  • Figure 8 is a block diagram showing still another embodiment of an apparatus for determining an order source according to the present application.
  • FIG. 9 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server of an embodiment of the present application.
  • FIG. 1 illustrates an exemplary system architecture 100 of an embodiment of a method for determining an order source or a device for determining an order source to which the present application can be applied.
  • system architecture 100 can include terminal devices 101, 102, 103, networks 104, 106, server 105, and merchant server 107.
  • the network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105
  • the network 106 is used to provide a medium for communication links between the server 105 and the merchant server 107.
  • the networks 104, 106 may include various types of connections, such as wired, wireless communication links, fiber optic cables, and the like.
  • the user can interact with the server 105 over the network 104 using the terminal devices 101, 102, 103 to receive or transmit messages and the like.
  • Various communication client applications such as a shopping application, a web browser application, a live application, and the like, may be installed on the terminal devices 101, 102, and 103.
  • the terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting online shopping, including but not limited to smart phones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic The video specialist compresses the standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV) player, laptop portable computer and desktop computer, and the like.
  • the terminal devices 101, 102, 103 can detect various operations of the user on the web page displayed on the terminal, such as a bookmark operation of an item displayed on the web page, a shopping cart operation, and the like.
  • the terminal devices 101, 102, and 103 can also interact with the server 105 after detecting the above operations of the user, for example, transmit various data to the server 105, and the like.
  • the server 105 may be a server that provides various services, such as a back-end web server that provides support for web pages containing item information displayed on the terminal devices 101, 102, 103.
  • the background web server can analyze and forward the received data.
  • the merchant server 107 may be a server that provides support for items purchased by the user, and may be a server that maintains item information of a certain brand, or a server that maintains item information of a certain store.
  • the merchant server 107 can interact with the server 105 to receive data or requests sent by the server 105, or to send data to the server 105, and the like.
  • the method for determining the source of the order provided by the embodiment of the present application may be performed by the terminal device 101, 102, 103, or may be performed by the merchant server 107.
  • the means for determining the source of the order may be provided in the terminal device 101, 102, 103 or may be provided in the merchant server 107.
  • terminal devices, networks, servers, and merchant servers in Figure 1 are merely illustrative. Depending on the implementation needs, there can be any number of terminal devices, networks, servers, and merchant servers.
  • a flow 200 of one embodiment of a method for determining an order source in accordance with the present application is illustrated.
  • the method for determining the source of the order of this embodiment may be performed by the terminal device, which may include the following steps:
  • Step 210 In response to detecting that the user performs a preset first operation performed on the page including the item to be purchased displayed on the terminal, determining whether the user performs a preset second operation on the purchased item.
  • the electronic device (for example, the terminal device shown in FIG. 1) on which the method for determining the source of the order runs may display a webpage, where the webpage may include item information, and the user may purchase the item through the webpage.
  • the terminal can detect the first operation of the user's display of the page containing the item to be purchased displayed on the terminal.
  • the above first operation may be various operations such as an operation of adding an item to a favorite, an operation of adding an item to a shopping cart, and the like.
  • the preset second operation may be an operation different from the first operation.
  • the second operation may be an operation of selecting at least one item in the shopping cart and generating a purchase order.
  • the first operation is an operation of adding an item to a favorite
  • the second operation may be an operation of moving at least one item in the collection into the shopping cart.
  • Step 220 if no, perform the following step of updating the first authentication value.
  • the step of updating the first authentication value includes:
  • step 221 the item source parameter is obtained.
  • the above item source parameters can be used to indicate the source of the item information, such as from an information web page or from a live interaction.
  • the item source parameter may include a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page containing the item to be purchased.
  • the user identification may be an identification that distinguishes one user from other users.
  • the item identification and the business identification may be identifiers that distinguish one item/merchant from other items/merchants, respectively.
  • the user identifier may be a user name registered by the user on a shopping website; the item identifier may be a unique identifier of the item on the shopping website (eg, may be an inventory unit SKU code);
  • the merchant identifier may be the brand of the article or the identifier of the store that sells the article, and the different merchant identifiers correspond to different merchant servers;
  • the page identifier may be the web address of the webpage, for example, the webpage of the information webpage, or the page identifier It can also be the URL of the live interactive webpage, which can be represented, for example, by a Uniform Resource Locator (URL).
  • URL Uniform Resource Locator
  • Step 222 Send the item source parameter and the first authentication value stored in the terminal to the server, so that the server sends the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
  • the first authentication value can be used to characterize a series of user behaviors of the user using the terminal. For example, in some application scenarios, it may be used to characterize the behavior of each user using a certain terminal to add an item to the shopping cart within a preset time period, in which the features may include, for example, the above description.
  • Item source parameter a parameter that specifies the behavior of each user using a certain terminal to add an item to the shopping cart within a preset time period.
  • the terminal may send the item source parameter and the first authentication value stored in the terminal to the server by using a wired connection manner or a wireless connection manner.
  • the server may parse the item source parameter, determine a corresponding merchant server according to the merchant identifier, and store the source parameter of the item and the terminal in the terminal. An authentication value is sent to the merchant server.
  • wireless connection manner may include but is not limited to 3G/4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods that are now known or developed in the future. .
  • Step 223 Receive and store a first authentication value that is sent by the server and is updated based on the item source parameter.
  • the merchant server may parse the item source parameter and determine the item source parameter and the first authentication value from which user. Then, the merchant server may further update the received first authentication value based on the received item source parameter, so that the updated first authentication value can reflect the first operation behavior of the current user.
  • the merchant server may send the updated first authentication value to the server, and the server sends the updated first authentication value to the corresponding terminal.
  • the user uploads the corresponding item source parameter and the first authentication value to the server each time the first operation is performed, and the amount of data uploaded each time is small, thereby avoiding the possibility of collectively uploading a large amount of data.
  • the terminal since the first authentication value can characterize the user behavior within a predetermined period of time, at each moment, only one first authentication value can be stored in the terminal as the user behavior record in the current period. In this way, the amount of data stored in the terminal can be reduced, and the problem of large memory usage of the terminal caused by saving multiple source parameter parameters at the same time can be avoided, thereby improving the response speed and reliability of the terminal.
  • An authentication value also includes:
  • the preset value may be used as the first authentication value.
  • the first authentication value may be assigned an initial value, thereby completing the update of the first authentication value.
  • the method for determining the source of the order in this embodiment may further include:
  • Step 230 If the user performs a preset second operation on the purchased item, the current first authentication value is sent to the server.
  • the preset second operation may be, for example, an operation of selecting at least one item in the shopping cart and generating an order.
  • the current first authentication value may, for example, characterize the behavior of adding individual items to the shopping cart within a preset time period.
  • the server may parse the first authentication value, thereby determining an item source parameter of each item added to the shopping cart within the preset time period, thereby realizing parsing and determining the order source. Then, the server may also send the item source parameter to the corresponding merchant server, so that the merchant server can also obtain the corresponding item source information.
  • the terminal may delete the first authentication value stored thereon, thereby further releasing the memory.
  • the obtaining the item source parameter of step 221 may further include:
  • the above page identifier is parsed to determine the item identifier and the merchant identifier.
  • the item source parameter when the user performs the current first operation can be determined.
  • the method for determining the source of the order in this embodiment may further include the following steps:
  • the merchant server may send the order source statistics result to the server, and the server may parse the order source statistics result to determine the source of the item corresponding to the item information.
  • the purchase rate is higher, and then it is determined according to the above-mentioned order source statistics to determine what kind of operation the user is doing is suitable for pushing information to the user.
  • These operations can be recorded as the third operation.
  • the third operation described above may be, for example, an operation of opening a web page, an operation of entering an application, or the like.
  • the terminal may push the information to the user.
  • a flow 300 of another embodiment of a method for determining an order source is provided in accordance with the present application.
  • the method for determining the order source of this embodiment may be performed by a server, which may include the following steps:
  • Step 310 The object source parameter and the first authentication value generated by the terminal in response to the user performing a preset first operation performed on the page including the item to be purchased displayed on the terminal, where the item source parameter includes the user identifier of the user, The item identification of the item, the business identification of the business to which the item belongs, and the page identification of the page.
  • Step 320 parsing the item source parameters to determine the merchant identifier therein.
  • Step 330 Send the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
  • the first authentication value and the item source parameter uploaded by the terminal can be sent to the merchant server corresponding to the merchant identifier obtained by parsing the item source parameter.
  • the merchant server can obtain the corresponding item source parameter and the first authentication value accordingly.
  • the server may parse the item source parameter and the received item source parameter and the first Sending the authentication value to the corresponding merchant server is beneficial to reducing the peak pressure of the server processing data, and alleviating the problem that the network peak traffic demand may be caused by the centralized sending of the item source parameter and the first authentication value.
  • the method for determining the source of the order in this embodiment may further include:
  • Step 340 Receive a first authentication value that is updated by the merchant server based on the item source parameter.
  • Step 350 Parse the updated first authentication value to determine a user identifier therein.
  • Step 360 Send the updated first authentication value to a terminal corresponding to the user identifier included in the updated first authentication value.
  • the first authentication value updated by the merchant server can be sent to the corresponding terminal, so that the first authentication value stored in the terminal is updated.
  • the method for determining the source of the order in this embodiment may further include:
  • Step 370 Receive, by the terminal, a current first authentication value determined in response to the user performing a preset second operation on the item to be purchased.
  • Step 380 Parse the current first authentication value to determine a merchant identity of the item corresponding to the current first authentication value.
  • Step 390 Send the current first authentication value to the merchant server corresponding to the merchant identifier of the item corresponding to the current first authentication value.
  • the server may obtain the first authentication value uploaded by the terminal after the terminal completes the second operation (for example, the operation of selecting at least one item in the shopping cart and generating an order), where the first authentication value is obtained.
  • characteristic information for example, an item source parameter
  • each first operation for example, an operation of adding an item to a shopping cart
  • the server may send the first authentication value to the predetermined time period, and the user joins each merchant server indicated by the item of the shopping cart, so that the merchant server can parse the first authentication value, thereby obtaining the first authentication.
  • the page identifier of the item provided by the party for example, the operation of selecting at least one item in the shopping cart and generating an order
  • the first authentication value is obtained.
  • characteristic information for example, an item source parameter
  • the server may send the first authentication value to the predetermined time period, and the user joins each merchant server indicated by the item of the shopping cart, so that the merchant server can parse the first authentication value, thereby obtaining the first authentication.
  • a flow 400 of another embodiment of a method for determining an order source is provided in accordance with the present application.
  • the method for determining the source of the order of this embodiment may be performed by a merchant server, which may include the following steps:
  • Step 410 Receive an item source parameter sent by the server and a first authentication value uploaded from the terminal to the server, where the item source parameter is sent by the terminal to the server when detecting the first operation performed by the user on the page containing the item to be purchased.
  • the item source parameter includes a user identifier of the user, an item identifier of the item, and a page identifier of the page;
  • Step 420 Update the first authentication value based on the item source parameter.
  • Step 430 Send the updated first authentication value to the server.
  • the method for determining the source of the order in this embodiment may: after receiving the first authentication value and the item source parameter sent by the server, update the first authentication value based on the item source parameter, and send the updated first authentication value. To the server. Thereby, the updated first authentication value includes information of the item source parameter received this time.
  • the problem that the peak pressure caused by simultaneously updating the plurality of first authentication values is large is alleviated, which is beneficial to improving the merchant. The stability and reliability of the server operation.
  • the method for determining the source of the order in this embodiment may further include:
  • Step 440 creating an array and storing the item identification and the page identification in the above array.
  • the merchant server may array, and may store the received item identifier and page identifier in the array.
  • Step 450 Receive an order confirmation request sent by the server.
  • the order confirmation request is sent by the server to the merchant server after receiving the second operation of the user detected by the terminal.
  • Step 460 Determine the user's order source statistics result according to the item identifier and the page identifier stored in the array.
  • the merchant server may determine the order source statistics result of the user according to the item identifier and the page identifier stored in the array. For example, if there are multiple items in the above array from the information webpage, it means that the user is more suitable to push the item information in the information webpage.
  • the foregoing method may further include the following steps not shown in FIG. 4: receiving a first authentication value of a last order processed by the terminal sent by the server, and generating according to the first authentication value. a second authentication value; the second authentication value is sent to the server to cause the server to send the second authentication value to the terminal.
  • the merchant server may generate a second authentication value according to the first authentication value. Specifically, the merchant server may generate a second authentication value according to a preset algorithm, for example, a hash algorithm or the like. After generating the second authentication value, the merchant server may send the second authentication value to the server, and the server may send the second authentication value to the terminal after receiving the second authentication value. The terminal may update the first authentication value after receiving the second authentication value.
  • a preset algorithm for example, a hash algorithm or the like.
  • the foregoing method may further include the following steps:
  • the merchant server may analyze the user's purchasing habits, determine a third operation that the user can receive the information to be pushed, and then perform the third operation and the to-be-pushed The information is sent to the server, so that when the server receives the third operation sent by the terminal, the corresponding information to be pushed is sent to the terminal. It can be understood that the above analysis work can also be performed by the server to push the item information to the user according to the user's purchasing habits.
  • the foregoing method may further include:
  • the array is deleted in response to the length of time between the setup time and the current time being greater than the preset duration.
  • the merchant may also monitor the existence duration of the array, and when the duration of the foregoing is too long, the array may be deleted to save storage space of the merchant server. This can improve the efficiency of the merchant server processing data.
  • FIG. 5 is a schematic diagram of an application scenario of a method for determining an order source according to the present application.
  • the item source parameter of the item A is obtained, for example, the SKU of the item A, the ID of the user, and the live website may be included. URL etc.
  • the terminal uploads the item source parameter of the item A and the first authentication value stored in the terminal to the server.
  • the server parses the item source parameters to determine a merchant server corresponding to the SKU of item A.
  • the server uploads the item source parameter of the item A and the first authentication value stored in the terminal to the corresponding merchant server.
  • the merchant server updates the first authentication value based on the item source parameter of the item A and transmits the updated first authentication value to the server.
  • the merchant server maintains an array with each element in the array corresponding to an item source parameter sent by the server to the merchant server.
  • the server parses the first authentication value and determines the terminal corresponding thereto.
  • the server transmits the updated first authentication value to the corresponding terminal.
  • the present application provides an embodiment of an apparatus for determining an order source, the apparatus embodiment corresponding to the method embodiment illustrated in FIG.
  • the device can be specifically applied to various electronic devices.
  • the determining unit 610 is configured to determine whether the user performs a preset second operation on the item to be purchased in response to detecting that the user performs a preset first operation performed on the page including the item to be purchased displayed on the terminal.
  • the updating unit 620 can be configured to update the first authentication value if the user does not perform the preset second operation on the item to be purchased.
  • the updating unit 620 may further include an obtaining module 621, a sending module 622, and a receiving module 623.
  • the obtaining module 621 can be configured to obtain an item source parameter, where the item source parameter includes a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page.
  • the sending module 622 can be configured to send the item source parameter and the first authentication value stored in the terminal to the server, so that the server sends the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
  • the receiving module 623 is configured to receive and store the first authentication value that is sent by the server and is updated based on the item source parameter.
  • the updating unit 620 may further include:
  • the detecting module is configured to detect whether the first authentication value is stored in the terminal before sending the item source parameter and the first authentication value stored in the terminal to the server.
  • a determining module configured to determine, in response to the first authentication value not stored in the terminal, that the preset value is the first authentication value.
  • the apparatus of this embodiment may further include:
  • the sending unit is configured to send the current first authentication value to the server if the user performs a preset second operation on the purchased item.
  • the obtaining module may be further configured to: obtain a page identifier of the page; and parse the page identifier, determine the item identifier, and the merchant identifier.
  • the apparatus of this embodiment may further include:
  • the statistical result receiving unit is configured to receive an order source statistics result sent by the server.
  • the push information receiving unit is configured to receive, according to the order source statistics result, the push information sent by the server when detecting the third operation of the user by the terminal.
  • the device for determining the source of the order provided by the above embodiment of the present application sends the source parameters of each item in the order in batches, avoiding sending to the server at one time when the order is submitted, thereby effectively reducing the data that the server needs to process. Volume, reducing the data processing pressure of the server.
  • the present application provides an embodiment of an apparatus for determining an order source, the apparatus embodiment corresponding to the method embodiment illustrated in FIG.
  • the device can be specifically applied to various electronic devices.
  • the apparatus 700 for determining an order source of the present embodiment includes: a receiving unit 710, a parsing unit 720, and a transmitting unit 730.
  • the receiving unit 710 is configured to generate an item source parameter and a first authentication value in response to a preset operation performed by the user on the page including the item to be purchased displayed on the terminal, where the item source parameter includes the user of the user.
  • Parsing unit 720 can be used to parse the item source parameters to determine the merchant identification therein.
  • the sending unit 730 can be configured to send the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
  • the receiving unit 710 is further configured to receive a first authentication value that is updated by the merchant server based on the item source parameter.
  • the parsing unit 720 is further configured to parse the updated first authentication value to determine a user identifier therein.
  • the sending unit 730 is further configured to send the updated first authentication value to the terminal corresponding to the user identifier included in the updated first authentication value.
  • the receiving unit 710 is further configured to receive, by the terminal, a current first authentication value that is determined in response to the user performing a preset second operation on the item to be purchased.
  • the parsing unit 720 can also be configured to parse the current first authentication value to determine a merchant identity of the item corresponding to the current first authentication value.
  • the sending unit 730 is further configured to send the current first authentication value to the merchant server corresponding to the merchant identifier of the item corresponding to the current first authentication value.
  • the apparatus for determining the source of the order provided by the above embodiment of the present application may send the first authentication value and the item source parameter uploaded by the terminal to the merchant server corresponding to the merchant identifier obtained by parsing the item source parameter.
  • the merchant server can obtain the corresponding item source parameter and the first authentication value accordingly.
  • the present application provides an embodiment of an apparatus for determining an order source, the apparatus embodiment corresponding to the method embodiment illustrated in FIG.
  • the device can be specifically applied to various electronic devices.
  • the apparatus 800 for determining an order source of the present embodiment includes: a receiving unit 810, an updating unit 820, and a transmitting unit 830.
  • the receiving unit 810 is configured to receive an item source parameter sent by the server and a first authentication value that is uploaded from the terminal to the server, where the item source parameter is when the terminal detects the first operation performed by the user on the page that includes the item to be purchased.
  • the item source parameters sent to the server include: the user's user ID, the item's item ID, and the page's page identifier.
  • the update unit 820 can be configured to update the first authentication value based on the item source parameter.
  • the sending unit 830 can be configured to send the updated first authentication value to the server.
  • the apparatus of this embodiment may further include:
  • An array creation unit that can be used to create an array and store the item identifier and page identifier in the array.
  • the receiving unit 810 of the embodiment may be further configured to receive an order confirmation request sent by the server, where the order confirmation request is sent by the server to the merchant server after receiving the second operation of the user.
  • the apparatus can also include a determining unit.
  • the determining unit can be used to determine the user's order source statistics based on the item identifiers stored in the array and the page identifier.
  • the determining unit is further configured to determine, according to the order source statistics result, a third operation that the user receives the information to be pushed.
  • the sending unit 830 is further configured to send the third operation and the to-be-pushed information corresponding to the third operation to the server, so that the server sends the information to be pushed to the terminal in response to receiving the third operation sent by the terminal.
  • the determining unit is further configured to: determine an establishment time of the array; and delete the array in response to the duration between the setup time and the current time being greater than a preset duration.
  • FIG. 9 a block diagram of a computer system 900 suitable for use in implementing a terminal device or server of an embodiment of the present application is shown.
  • the terminal device/server shown in FIG. 9 is merely an example, and should not impose any limitation on the function and scope of use of the embodiments of the present application.
  • computer system 900 includes a central processing unit (CPU) 901 that can be loaded into a program in random access memory (RAM) 903 according to a program stored in read only memory (ROM) 902 or from storage portion 908. And perform various appropriate actions and processes.
  • RAM random access memory
  • ROM read only memory
  • various programs and data required for the operation of the system 900 are also stored.
  • the CPU 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904.
  • An input/output (I/O) interface 905 is also coupled to bus 904.
  • the following components are connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a storage portion 908 including a hard disk or the like. And a communication portion 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the Internet.
  • Driver 910 is also connected to I/O interface 905 as needed.
  • a removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like is mounted on the drive 910 as needed so that a computer program read therefrom is installed into the storage portion 908 as needed.
  • an embodiment of the present disclosure includes a computer program product comprising a computer program carried on a machine readable medium, the computer program comprising program code for executing the method illustrated in the flowchart.
  • the computer program can be downloaded and installed from the network via the communication portion 909, and/or installed from the removable medium 911.
  • the central processing unit (CPU) 901 the above-described functions defined in the method of the present application are performed.
  • the computer readable medium described herein may be a computer readable signal medium or a computer readable storage medium or any combination of the two.
  • the computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • a computer readable storage medium may be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus or device.
  • a computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device.
  • Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
  • each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the logic functions for implementing the specified.
  • Executable instructions can also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved.
  • each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
  • the units involved in the embodiments of the present application may be implemented by software or by hardware.
  • the described unit may also be provided in the processor, for example, as a processor including a judging unit and an updating unit. Wherein, the names of the units do not constitute a limitation on the unit itself in some cases.
  • the judging unit may also be described as “in response to detecting that the user performs a page on the terminal including the item to be purchased. The first operation of the preset determines whether the user performs a preset second operation unit for the purchased item.
  • the present application also provides a computer readable medium, which may be included in the apparatus described in the above embodiments, or may be separately present and not incorporated into the apparatus.
  • the computer readable medium carries one or more programs, when the one or more programs are executed by the device, causing the device to: in response to detecting that the user performs a preset on the terminal including the page containing the item to be purchased a first operation of determining whether the user performs a preset second operation on the purchased item; if not, performing the following step of updating the first authentication value; the step of updating the first authentication value comprises: obtaining the item source parameter,
  • the item source parameter includes a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page; and the item source parameter is stored in the terminal
  • the first authentication value is sent to the server, so that the server sends the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier
  • the present application also provides a computer readable medium carrying one or more programs, when the one or more programs are executed by the device, causing the device to: receive the terminal in response to the user on the terminal The displayed item source parameter and the first authentication value generated by the preset first operation performed by the page of the item to be purchased, wherein the item source parameter includes the user identifier of the user, the item identifier of the item, and the merchant identifier of the merchant to which the item belongs And the page identifier of the page; parsing the item source parameter to determine the merchant identifier therein; and sending the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
  • the present application also provides a computer readable medium carrying one or more programs, when the one or more programs are executed by the device, causing the device to: receive an item source parameter sent by the server and The first authentication value uploaded from the terminal to the server, where the item source parameter is sent to the server when the terminal detects the first operation performed by the user on the page containing the item to be purchased, and the item source parameter includes: the user identifier of the user, An item identification of the item and a page identification of the page; updating the first authentication value based on the item source parameter; and transmitting the updated first authentication value to the server.

Abstract

Disclosed by the present application are a method and apparatus for determining the source of an order. A specific embodiment of said method comprises: in response to detecting a preset first operation executed, by a user, on a page containing a to-be-purchased item and displayed on a terminal, determining whether the user executes a preset second operation on the to-be-purchased item; if not, then executing a step to update a first authentication value, as follows; the step to update the first authentication value comprises: obtaining an item source parameter, said item source parameter comprising a user identity, an item identifier, a merchant identifier, and a page identifier of a page; sending to a server the item source parameter and the first authentication value stored on the terminal, so that said server sends the item source parameter and the first authentication value to a merchant server corresponding to the merchant identifier; receiving and storing the first authentication value sent by the server and updated on the basis of the item source parameter. The embodiment reduces the amount of data that must be processed by the server, decreasing the data processing pressure on the server.

Description

用于确定订单来源的方法和装置Method and apparatus for determining an order source
本专利申请要求于2017年9月30日提交的、申请号为201710938139.4、申请人为北京京东尚科信息技术有限公司、发明名称为“用于确定订单来源的方法和装置”的中国专利申请的优先权,该申请的全文以引用的方式并入本申请中。This patent application claims priority on Chinese patent application filed on September 30, 2017, with application number 201710938139.4, applicant for Beijing Jingdong Shangke Information Technology Co., Ltd., and invention titled "Method and device for determining order source" The entire contents of this application are incorporated herein by reference.
技术领域Technical field
本申请涉及互联网技术领域,具体涉及电子商务技术领域,尤其涉及一种用于确定订单来源的方法和装置。The present application relates to the field of Internet technologies, and in particular, to the field of electronic commerce technologies, and in particular, to a method and apparatus for determining an order source.
背景技术Background technique
随着移动智能设备的普及,通过移动应用进行在线电子消费已经成为大众的日常消费行为。与传统电商中通过物品促销、打折或赠送礼物等方式吸引消费者购物相比,互联网提供了更丰富多样的物品推送方式,例如,在网页资讯中插入与内容相关的物品信息、在移动直播中推荐物品信息、在AR(Augmented Reality,增强现实)互动中弹出动画推荐物品信息等。With the popularity of mobile smart devices, online electronic consumption through mobile applications has become a daily consumer behavior. Compared with the traditional e-commerce to attract consumers by means of item promotion, discount or gift giving, the Internet provides a more variety of item push methods, for example, inserting content-related item information into webpage information, and moving live broadcasts. Recommended item information, pop-up animation recommended item information in AR (Augmented Reality) interaction.
为了能够更好的向用户推荐物品信息,通常需要确定各个订单的来源,以根据统计结果更精准地向不同的用户推送信息。现有的确定订单来源方法,通常在用户提交订单时将订单中各物品的来源参数发送至服务器,造成在订单数据量增大时服务器需要处理数据量巨大,容易导致服务器的瘫痪。In order to better recommend item information to users, it is often necessary to determine the source of each order to more accurately push information to different users based on statistical results. The existing method for determining the order source usually sends the source parameter of each item in the order to the server when the user submits the order, which causes the server to process a large amount of data when the order data volume increases, which may easily lead to the embarrassment of the server.
发明内容Summary of the invention
本申请的目的在于提出一种用于确定订单来源的方法和装置,来解决以上背景技术部分提到的技术问题。The purpose of the present application is to propose a method and apparatus for determining the source of an order to solve the technical problems mentioned in the background section above.
第一方面,本申请实施例提供了一种用于确定订单来源的方法, 上述方法包括:响应于检测到用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作,判断用户是否对待购买物品执行预设的第二操作;若否,则执行如下的更新第一认证值的步骤;更新第一认证值的步骤包括:获取物品来源参数,其中,物品来源参数包括用户的用户标识、物品的物品标识、物品所属商家的商家标识以及页面的页面标识;将物品来源参数和存储在终端的第一认证值发送至服务器,以使服务器将物品来源参数和第一认证值发送至与商家标识对应的商家服务器;以及接收并存储服务器发送的基于物品来源参数更新后的第一认证值。In a first aspect, the embodiment of the present application provides a method for determining an order source, where the method includes: determining, in response to detecting that a user performs a preset first operation performed on a page including an item to be purchased displayed on the terminal, determining Whether the user performs a preset second operation on the purchased item; if not, performing the following step of updating the first authentication value; the step of updating the first authentication value includes: obtaining the item source parameter, wherein the item source parameter includes the user's a user identifier, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page; sending the item source parameter and the first authentication value stored in the terminal to the server, so that the server sends the item source parameter and the first authentication value And to the merchant server corresponding to the merchant identifier; and receiving and storing the first authentication value that is sent by the server and updated based on the item source parameter.
在一些实施例中,在将物品来源参数和存储在终端的第一认证值发送至服务器之前,更新第一认证值的步骤还包括:检测终端中是否存储有第一认证值;响应于终端中未存储有第一认证值,确定预设值为第一认证值。In some embodiments, the step of updating the first authentication value before detecting the item source parameter and the first authentication value stored in the terminal to the server further comprises: detecting whether the first authentication value is stored in the terminal; The first authentication value is not stored, and the preset value is determined to be the first authentication value.
在一些实施例中,方法还包括:若用户对待购买物品执行预设的第二操作,则将当前的第一认证值发送至服务器。In some embodiments, the method further comprises: if the user performs a preset second operation on the purchased item, transmitting the current first authentication value to the server.
在一些实施例中,获取物品来源参数,包括:获取页面的页面标识;解析页面标识,确定物品标识以及商家标识。In some embodiments, obtaining an item source parameter includes: obtaining a page identifier of the page; parsing the page identifier, determining the item identifier, and the merchant identifier.
在一些实施例中,方法还包括:接收服务器发送的订单来源统计结果;根据订单来源统计结果,在检测到用户对终端的第三操作时,接收服务器发送的推送信息。In some embodiments, the method further includes: receiving an order source statistics result sent by the server; and receiving, according to the order source statistics result, the push information sent by the server when detecting the third operation of the user by the terminal.
第二方面,本申请实施例提供了一种用于确定订单来源的方法,包括:接收终端响应于用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作而生成的物品来源参数和第一认证值,其中,物品来源参数包括用户的用户标识、物品的物品标识、物品所属商家的商家标识以及页面的页面标识;解析物品来源参数,以确定其中的商家标识;将物品来源参数和第一认证值发送至与商家标识对应的商家服务器。In a second aspect, the embodiment of the present application provides a method for determining an order source, including: receiving an item generated by a terminal in response to a user performing a preset first operation performed on a page including an item to be purchased displayed on the terminal. a source parameter and a first authentication value, wherein the item source parameter includes a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page; parsing the item source parameter to determine the merchant identifier therein; The source parameter and the first authentication value are sent to a merchant server corresponding to the merchant identification.
在一些实施例中,方法还包括:接收商家服务器基于物品来源参数更新后的第一认证值;解析更新后的第一认证值,以确定其中的用户标识;将更新后的第一认证值发送至与更新后的第一认证值所包含 的用户标识相对应的终端。In some embodiments, the method further includes: receiving a first authentication value updated by the merchant server based on the item source parameter; parsing the updated first authentication value to determine a user identifier therein; and transmitting the updated first authentication value a terminal corresponding to the user ID included in the updated first authentication value.
在一些实施例中,方法还包括:接收终端发送的响应于用户对待购买物品执行预设的第二操作而确定的当前的第一认证值;解析当前的第一认证值以确定与当前的第一认证值对应的物品的商家标识;将当前的第一认证值发送至与当前的第一认证值对应的物品的商家标识所对应的商家服务器。In some embodiments, the method further includes: receiving, by the terminal, a current first authentication value determined in response to the user performing a preset second operation on the item to be purchased; parsing the current first authentication value to determine the current a merchant identifier of the item corresponding to the authentication value; the current first authentication value is sent to the merchant server corresponding to the merchant identifier of the item corresponding to the current first authentication value.
第三方面,本申请实施例提供了一种用于确定订单来源的方法,包括:接收服务器发送的物品来源参数和自终端上传至服务器的第一认证值,其中,物品来源参数是终端在检测到用户对包含有待购买物品的页面执行的第一操作时发送至服务器的,物品来源参数包括:用户的用户标识、物品的物品标识以及页面的页面标识;基于物品来源参数更新第一认证值;以及将更新后的第一认证值发送至服务器。In a third aspect, the embodiment of the present application provides a method for determining an order source, including: receiving an item source parameter sent by a server and a first authentication value uploaded from a terminal to a server, where the item source parameter is that the terminal is detecting And sending to the server when the user performs the first operation on the page containing the item to be purchased, the item source parameter includes: a user identifier of the user, an item identifier of the item, and a page identifier of the page; and updating the first authentication value based on the item source parameter; And sending the updated first authentication value to the server.
在一些实施例中,方法还包括:建立数组,并在数组中存储物品标识以及页面标识;接收服务器发送的订单确认请求,订单确认请求是服务器在接收到终端检测到用户的第二操作后发送至商家服务器的;根据数组中存储的物品标识以及页面标识,确定用户的订单来源统计结果。In some embodiments, the method further includes: creating an array, and storing the item identifier and the page identifier in the array; receiving an order confirmation request sent by the server, the order confirmation request is sent by the server after receiving the second operation of the user detected by the terminal To the merchant server; determine the user's order source statistics based on the item identification and page identification stored in the array.
在一些实施例中,方法还包括:根据订单来源统计结果,确定用户接收待推送信息的第三操作;将第三操作以及与第三操作对应的待推送信息发送至服务器,以使服务器响应于接收到终端发送的第三操作将待推送的信息发送至终端。In some embodiments, the method further includes: determining, according to the order source statistics, a third operation of the user to receive the information to be pushed; and transmitting the third operation and the information to be pushed corresponding to the third operation to the server, so that the server responds to Receiving the third operation sent by the terminal sends the information to be pushed to the terminal.
在一些实施例中,方法还包括:确定数组的建立时刻;响应于建立时刻与当前时刻之间的时长大于预设时长,删除数组。In some embodiments, the method further comprises: determining an establishment time of the array; deleting the array in response to the duration between the setup time and the current time being greater than a preset duration.
第四方面,本申请实施例还提供了一种用于确定订单来源的装置,包括:判断单元,用于响应于检测到用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作,判断用户是否对待购买物品执行预设的第二操作;更新单元,用于若用户未对待购买物品执行预设的第二操作,更新第一认证值;更新单元包括:获取模块,用于获取物品来源参数,其中,物品来源参数包括用户的用户标识、物品的物品标识、物品所属商家的商家标识以及页面的页面标识;发送模块, 用于将物品来源参数和存储在终端的第一认证值发送至服务器,以使服务器将物品来源参数和第一认证值发送至与商家标识对应的商家服务器;以及接收模块,用于接收并存储服务器发送的基于物品来源参数更新后的第一认证值。In a fourth aspect, the embodiment of the present application further provides an apparatus for determining a source of an order, including: a determining unit, configured to respond to detecting, by the user, a preset performed by a page displayed on the terminal that includes an item to be purchased An operation of determining whether the user performs a preset second operation on the purchased item; and an updating unit, configured to update the first authentication value if the user does not perform the preset second operation on the purchased item; the updating unit includes: acquiring the module, Obtaining an item source parameter, wherein the item source parameter includes a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page; and a sending module, configured to store the item source parameter and the first in the terminal The authentication value is sent to the server, so that the server sends the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier; and the receiving module is configured to receive and store the first authentication updated by the server based on the item source parameter. value.
在一些实施例中,更新单元还包括:检测模块,用于在将物品来源参数和存储在终端的第一认证值发送至服务器之前,检测终端中是否存储有第一认证值;确定模块,用于响应于终端中未存储有第一认证值,确定预设值为第一认证值。In some embodiments, the updating unit further includes: a detecting module, configured to detect whether the first authentication value is stored in the terminal before sending the item source parameter and the first authentication value stored in the terminal to the server; And determining that the preset value is the first authentication value, in response to the first authentication value not being stored in the terminal.
在一些实施例中,装置还包括:发送单元,用于若用户对待购买物品执行预设的第二操作,则将当前的第一认证值发送至服务器。In some embodiments, the apparatus further includes: a sending unit, configured to send the current first authentication value to the server if the user performs a preset second operation on the purchased item.
在一些实施例中,获取模块进一步用于:获取页面的页面标识;以及解析页面标识,确定物品标识以及商家标识。In some embodiments, the obtaining module is further configured to: obtain a page identifier of the page; and parse the page identifier, determine the item identifier, and the merchant identifier.
在一些实施例中,装置还包括:统计结果接收单元,用于接收服务器发送的订单来源统计结果;以及推送信息接收单元,用于根据订单来源统计结果,在检测到用户对终端的第三操作时,接收服务器发送的推送信息。In some embodiments, the apparatus further includes: a statistical result receiving unit, configured to receive an order source statistical result sent by the server; and a push information receiving unit, configured to detect the third operation of the user by the terminal according to the order source statistical result When receiving the push information sent by the server.
第五方面,本申请实施例还提供一种用于确定订单来源的装置,包括:接收单元,用于响应于用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作而生成的物品来源参数和第一认证值,其中,物品来源参数包括用户的用户标识、物品的物品标识、物品所属商家的商家标识以及页面的页面标识;解析单元,用于解析物品来源参数,以确定其中的商家标识;发送单元,用于将物品来源参数和第一认证值发送至与商家标识对应的商家服务器。In a fifth aspect, the embodiment of the present application further provides an apparatus for determining a source of an order, including: a receiving unit, configured to respond to a preset first operation performed by a user on a page displayed on the terminal that includes an item to be purchased. The generated item source parameter and the first authentication value, wherein the item source parameter includes the user identifier of the user, the item identifier of the item, the merchant identifier of the merchant to which the item belongs, and the page identifier of the page; the parsing unit is configured to parse the item source parameter, Determining a merchant identifier therein; the sending unit, configured to send the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
在一些实施例中,接收单元还用于接收商家服务器基于物品来源参数更新后的第一认证值;解析单元还用于解析更新后的第一认证值,以确定其中的用户标识;发送单元还用于将更新后的第一认证值发送至与更新后的第一认证值所包含的用户标识相对应的终端。In some embodiments, the receiving unit is further configured to receive a first authentication value that is updated by the merchant server based on the item source parameter; the parsing unit is further configured to parse the updated first authentication value to determine the user identifier therein; And configured to send the updated first authentication value to the terminal corresponding to the user identifier included in the updated first authentication value.
在一些实施例中,接收单元还用于接收终端发送的响应于用户对待购买物品执行预设的第二操作而确定的当前的第一认证值;解析单元还用于解析当前的第一认证值以确定与当前的第一认证值对应的物 品的商家标识;发送单元还用于将当前的第一认证值发送至与当前的第一认证值对应的物品的商家标识所对应的商家服务器。In some embodiments, the receiving unit is further configured to receive, by the terminal, a current first authentication value that is determined in response to the user performing a preset second operation on the item to be purchased; the parsing unit is further configured to parse the current first authentication value. Determining a merchant identifier of the item corresponding to the current first authentication value; the sending unit is further configured to send the current first authentication value to the merchant server corresponding to the merchant identifier of the item corresponding to the current first authentication value.
第六方面,本申请实施例还提供了一种用于确定订单来源的装置,包括:接收单元,用于接收服务器发送的物品来源参数和自终端上传至服务器的第一认证值,其中,物品来源参数是终端在检测到用户对包含有待购买物品的页面执行的第一操作时发送至服务器的,物品来源参数包括:用户的用户标识、物品的物品标识以及页面的页面标识;更新单元,用于基于物品来源参数更新第一认证值;以及发送单元,用于将更新后的第一认证值发送至服务器。In a sixth aspect, the embodiment of the present application further provides an apparatus for determining an order source, including: a receiving unit, configured to receive an item source parameter sent by a server and a first authentication value uploaded from the terminal to the server, where the item The source parameter is sent to the server when the terminal detects the first operation performed by the user on the page containing the item to be purchased, and the item source parameter includes: the user identifier of the user, the item identifier of the item, and the page identifier of the page; Updating the first authentication value based on the item source parameter; and sending unit, configured to send the updated first authentication value to the server.
在一些实施例中,装置还包括:数组建立单元,用于建立数组,并在数组中存储物品标识以及页面标识;接收单元还用于接收服务器发送的订单确认请求,订单确认请求是服务器在接收到终端检测到用户的第二操作后发送至商家服务器的;装置还包括确定单元;确定单元用于根据数组中存储的物品标识以及页面标识,确定用户的订单来源统计结果。In some embodiments, the apparatus further includes: an array establishing unit, configured to create an array, and store the item identifier and the page identifier in the array; the receiving unit is further configured to receive an order confirmation request sent by the server, where the order confirmation request is received by the server The device is further sent to the merchant server after detecting the second operation of the user; the device further includes a determining unit; the determining unit is configured to determine the order source statistics result of the user according to the item identifier and the page identifier stored in the array.
在一些实施例中,确定单元还用于根据订单来源统计结果,确定用户接收待推送信息的第三操作;发送单元还用于将第三操作以及与第三操作对应的待推送信息发送至服务器,以使服务器响应于接收到终端发送的第三操作将待推送的信息发送至终端。In some embodiments, the determining unit is further configured to: determine, according to the order source statistics result, a third operation that the user receives the information to be pushed; the sending unit is further configured to send the third operation and the to-be pushed information corresponding to the third operation to the server And causing the server to send the information to be pushed to the terminal in response to receiving the third operation sent by the terminal.
在一些实施例中,确定单元还用于:确定数组的建立时刻;以及响应于建立时刻与当前时刻之间的时长大于预设时长,删除数组。In some embodiments, the determining unit is further configured to: determine an establishment time of the array; and delete the array in response to the duration between the setup time and the current time being greater than a preset duration.
第七方面,本申请实施例还提供了一种终端,包括:一个或多个处理器;存储装置,用于存储一个或多个程序;当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第一方面所提供的方法。In a seventh aspect, the embodiment of the present application further provides a terminal, including: one or more processors; a storage device, configured to store one or more programs; and when one or more programs are executed by one or more processors Having one or more processors implement the method as provided by the first aspect.
第八方面,本申请实施例还提供了一种服务器,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第二方面所提供的方法。In an eighth aspect, the embodiment of the present application further provides a server, including: one or more processors; and a storage device, configured to store one or more programs, when one or more programs are executed by one or more processors Having one or more processors implement the method as provided by the second aspect.
第九方面,本申请实施例还提供了一种服务器,包括:一个或多 个处理器;存储装置,用于存储一个或多个程序,当一个或多个程序被一个或多个处理器执行,使得一个或多个处理器实现如第三方面所提供的方法。In a ninth aspect, the embodiment of the present application further provides a server, including: one or more processors; and a storage device, configured to store one or more programs, when one or more programs are executed by one or more processors Having one or more processors implement the method as provided by the third aspect.
第十方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第一方面所提供的方法。In a tenth aspect, the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the method provided by the first aspect is implemented.
第十一方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第二方面所提供的方法。In an eleventh aspect, the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the method provided by the second aspect is implemented.
第十二方面,本申请实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如第三方面所提供的方法。In a twelfth aspect, the embodiment of the present application further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the method provided by the third aspect is implemented.
本申请的上述实施例提供的用于确定订单来源的方法和装置,通过在每次执行第一操作时,向服务器上传相应的物品来源参数并接收服务器发送的更新后的第一认证值,分散了终端和服务器单次处理数据的数据量并且降低了单次数据传输的数据量,有利于提升终端和服务器运行的稳定性和可靠性。The method and apparatus for determining an order source provided by the above embodiment of the present application, by uploading a corresponding item source parameter to a server and receiving an updated first authentication value sent by a server, each time the first operation is performed, The amount of data processed by the terminal and the server in a single operation and the amount of data of a single data transmission are reduced, which is advantageous for improving the stability and reliability of the operation of the terminal and the server.
附图说明DRAWINGS
通过阅读参照以下附图所作的对非限制性实施例所作的详细描述,本申请的其它特征、目的和优点将会变得更明显:Other features, objects, and advantages of the present application will become more apparent from the detailed description of the accompanying drawings.
图1是本申请可以应用于其中的示例性系统架构图;1 is an exemplary system architecture diagram to which the present application can be applied;
图2是根据本申请的用于确定订单来源的方法的一个实施例的流程图;2 is a flow diagram of one embodiment of a method for determining an order source in accordance with the present application;
图3是根据本申请的用于确定订单来源的方法的另一个实施例的流程图;3 is a flow diagram of another embodiment of a method for determining an order source in accordance with the present application;
图4是根据本申请的用于确定订单来源的方法的又一个实施例的流程图;4 is a flow chart of still another embodiment of a method for determining an order source in accordance with the present application;
图5是根据本申请的用于确定订单来源的方法的一个应用场景的示意图;5 is a schematic diagram of an application scenario of a method for determining an order source according to the present application;
图6是根据本申请的用于确定订单来源的装置的一个实施例的结构示意图;6 is a schematic structural diagram of an embodiment of an apparatus for determining an order source according to the present application;
图7是根据本申请的用于确定订单来源的装置的另一个实施例的结构示意图;Figure 7 is a block diagram showing another embodiment of an apparatus for determining an order source according to the present application;
图8是根据本申请的用于确定订单来源的装置的又一个实施例的结构示意图;Figure 8 is a block diagram showing still another embodiment of an apparatus for determining an order source according to the present application;
图9是适于用来实现本申请实施例的终端设备或服务器的计算机系统的结构示意图。9 is a schematic structural diagram of a computer system suitable for implementing a terminal device or a server of an embodiment of the present application.
具体实施方式Detailed ways
下面结合附图和实施例对本申请作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释相关发明,而非对该发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与有关发明相关的部分。The present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention, rather than the invention. It is also to be noted that, for the convenience of description, only the parts related to the related invention are shown in the drawings.
需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。下面将参考附图并结合实施例来详细说明本申请。It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The present application will be described in detail below with reference to the accompanying drawings.
图1示出了可以应用本申请的用于确定订单来源的方法或用于确定订单来源的装置的实施例的示例性系统架构100。1 illustrates an exemplary system architecture 100 of an embodiment of a method for determining an order source or a device for determining an order source to which the present application can be applied.
如图1所示,系统架构100可以包括终端设备101、102、103,网络104、106,服务器105和商家服务器107。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质,网络106用以在服务器105和商家服务器107之间提供通信链路的介质。网络104、106可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, system architecture 100 can include terminal devices 101, 102, 103, networks 104, 106, server 105, and merchant server 107. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105, and the network 106 is used to provide a medium for communication links between the server 105 and the merchant server 107. The networks 104, 106 may include various types of connections, such as wired, wireless communication links, fiber optic cables, and the like.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如购物类应用、网页浏览器应用、直播类应用等。The user can interact with the server 105 over the network 104 using the terminal devices 101, 102, 103 to receive or transmit messages and the like. Various communication client applications, such as a shopping application, a web browser application, a live application, and the like, may be installed on the terminal devices 101, 102, and 103.
终端设备101、102、103可以是具有显示屏并且支持网络购物的 各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器(Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3)、MP4(Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4)播放器、膝上型便携计算机和台式计算机等等。终端设备101、102、103可以检测用户对终端上显示的网页的各种操作,例如对网页上显示的物品的收藏操作、加入购物车操作等。终端设备101、102、103还可以在检测到用户的上述操作后,与服务器105进行交互,例如向服务器105发送各种数据等。The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting online shopping, including but not limited to smart phones, tablets, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, dynamic The video specialist compresses the standard audio layer 3), MP4 (Moving Picture Experts Group Audio Layer IV) player, laptop portable computer and desktop computer, and the like. The terminal devices 101, 102, 103 can detect various operations of the user on the web page displayed on the terminal, such as a bookmark operation of an item displayed on the web page, a shopping cart operation, and the like. The terminal devices 101, 102, and 103 can also interact with the server 105 after detecting the above operations of the user, for example, transmit various data to the server 105, and the like.
服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103上显示的包含物品信息的网页提供支持的后台网页服务器。后台网页服务器可以对接收到的数据进行分析、转发等处理。The server 105 may be a server that provides various services, such as a back-end web server that provides support for web pages containing item information displayed on the terminal devices 101, 102, 103. The background web server can analyze and forward the received data.
商家服务器107可以是为用户购买的物品提供支持的服务器,其可以是维护某一品牌的物品信息的服务器,也可以是维护某一店铺的物品信息的服务器。商家服务器107可以与服务器105进行交互,以接收服务器105发送的数据或请求,或向服务器105发送数据等。The merchant server 107 may be a server that provides support for items purchased by the user, and may be a server that maintains item information of a certain brand, or a server that maintains item information of a certain store. The merchant server 107 can interact with the server 105 to receive data or requests sent by the server 105, or to send data to the server 105, and the like.
需要说明的是,本申请实施例所提供的用于确定订单来源的方法可以由终端设备101、102、103来执行,也可以由商家服务器107来执行。相应地,用于确定订单来源的装置可以设置于终端设备101、102、103中,也可以设置于商家服务器107中。It should be noted that the method for determining the source of the order provided by the embodiment of the present application may be performed by the terminal device 101, 102, 103, or may be performed by the merchant server 107. Correspondingly, the means for determining the source of the order may be provided in the terminal device 101, 102, 103 or may be provided in the merchant server 107.
应该理解,图1中的终端设备、网络、服务器和商家服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络、服务器和商家服务器。It should be understood that the number of terminal devices, networks, servers, and merchant servers in Figure 1 are merely illustrative. Depending on the implementation needs, there can be any number of terminal devices, networks, servers, and merchant servers.
继续参考图2,示出了根据本申请的用于确定订单来源的方法的一个实施例的流程200。本实施例的用于确定订单来源的方法可以由终端设备来执行,其可以包括以下步骤:With continued reference to FIG. 2, a flow 200 of one embodiment of a method for determining an order source in accordance with the present application is illustrated. The method for determining the source of the order of this embodiment may be performed by the terminal device, which may include the following steps:
步骤210,响应于检测到用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作,判断用户是否对待购买物品执行预设的第二操作。Step 210: In response to detecting that the user performs a preset first operation performed on the page including the item to be purchased displayed on the terminal, determining whether the user performs a preset second operation on the purchased item.
在本实施例中,用于确定订单来源的方法运行于其上的电子设备 (例如图1所示的终端设备)可以显示网页,上述网页中可以包含物品信息,用户可以通过上述网页购买上述物品。同时,终端可以检测用户对终端上显示的包含有待购买物品的页面的第一操作。上述第一操作可以是各种操作,例如将物品加入收藏夹的操作,将物品加入购物车的操作等。In this embodiment, the electronic device (for example, the terminal device shown in FIG. 1) on which the method for determining the source of the order runs may display a webpage, where the webpage may include item information, and the user may purchase the item through the webpage. . At the same time, the terminal can detect the first operation of the user's display of the page containing the item to be purchased displayed on the terminal. The above first operation may be various operations such as an operation of adding an item to a favorite, an operation of adding an item to a shopping cart, and the like.
此外,本实施例中,预设的第二操作可以是与第一操作不同的操作。例如,在一些应用场景中,若第一操作为将某一物品加入购物车的操作,则第二操作可以为选择购物车中的至少一个物品并生成购买订单的操作。或者,在另一些应用场景中,若第一操作为将某一物品加入收藏夹的操作,则第二操作可以为将收藏夹中的至少一个物品移入购物车的操作。In addition, in this embodiment, the preset second operation may be an operation different from the first operation. For example, in some application scenarios, if the first operation is an operation of adding an item to the shopping cart, the second operation may be an operation of selecting at least one item in the shopping cart and generating a purchase order. Alternatively, in other application scenarios, if the first operation is an operation of adding an item to a favorite, the second operation may be an operation of moving at least one item in the collection into the shopping cart.
步骤220,若否,则执行如下的更新第一认证值的步骤。 Step 220, if no, perform the following step of updating the first authentication value.
具体地,更新第一认证值的步骤包括:Specifically, the step of updating the first authentication value includes:
步骤221,获取物品来源参数。In step 221, the item source parameter is obtained.
上述物品来源参数可以用于指示物品信息的来源,例如是来源于资讯网页还是来源于直播互动等。上述物品来源参数可以包括用户的用户标识、物品的物品标识、物品所属商家的商家标识以及上述包含有待购买物品的页面的页面标识。The above item source parameters can be used to indicate the source of the item information, such as from an information web page or from a live interaction. The item source parameter may include a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page containing the item to be purchased.
在这里,用户标识可以是将一个用户与其他用户区分开来的标识,类似地,物品标识和商家标识可以分别是将一个物品/商家与其他物品/商家区分开来的标识。Here, the user identification may be an identification that distinguishes one user from other users. Similarly, the item identification and the business identification may be identifiers that distinguish one item/merchant from other items/merchants, respectively.
例如,在一些应用场景中,上述用户标识可以是用户在某个购物网站注册的用户名;上述物品标识可以是该物品在该购物网站的唯一标识(例如可以是库存量单位SKU码);上述商家标识可以是该物品的品牌或出售该物品的店铺的标识,不同的商家标识对应不同的商家服务器;上述页面标识可以是上述网页的网址,例如,上述资讯网页的网址,或者,上述页面标识也可以是直播互动网页的网址,这些网址例如可以由统一资源定位符(Uniform Resource Locator,URL)来表示。For example, in some application scenarios, the user identifier may be a user name registered by the user on a shopping website; the item identifier may be a unique identifier of the item on the shopping website (eg, may be an inventory unit SKU code); The merchant identifier may be the brand of the article or the identifier of the store that sells the article, and the different merchant identifiers correspond to different merchant servers; the page identifier may be the web address of the webpage, for example, the webpage of the information webpage, or the page identifier It can also be the URL of the live interactive webpage, which can be represented, for example, by a Uniform Resource Locator (URL).
步骤222,将上述物品来源参数和存储在终端的第一认证值发送 至服务器,以使所述服务器将物品来源参数和第一认证值发送至所述与商家标识对应的商家服务器。Step 222: Send the item source parameter and the first authentication value stored in the terminal to the server, so that the server sends the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
在这里,第一认证值可以用于表征使用终端的用户的一系列用户行为。例如,在一些应用场景中,可以用于表征在一预设时段内,使用某一终端的某一用户将物品加入购物车的各个行为的特征,在这些应用场景中,特征例如可以包括如上描述的物品来源参数。Here, the first authentication value can be used to characterize a series of user behaviors of the user using the terminal. For example, in some application scenarios, it may be used to characterize the behavior of each user using a certain terminal to add an item to the shopping cart within a preset time period, in which the features may include, for example, the above description. Item source parameter.
终端在获取到上述物品来源参数后,可以将上述物品来源参数和存储在终端的第一认证值通过有线连接方式或者无线连接方式发送至服务器。服务器在接收到上述物品来源参数和存储在终端的第一认证值后,可以对物品来源参数进行解析,根据其中的商家标识确定对应的商家服务器,并将上述物品来源参数和存储在终端的第一认证值发送至商家服务器。After obtaining the source parameter of the foregoing item, the terminal may send the item source parameter and the first authentication value stored in the terminal to the server by using a wired connection manner or a wireless connection manner. After receiving the source parameter of the item and the first authentication value stored in the terminal, the server may parse the item source parameter, determine a corresponding merchant server according to the merchant identifier, and store the source parameter of the item and the terminal in the terminal. An authentication value is sent to the merchant server.
需要指出的是,上述无线连接方式可以包括但不限于3G/4G连接、WiFi连接、蓝牙连接、WiMAX连接、Zigbee连接、UWB(ultra wideband)连接、以及其他现在已知或将来开发的无线连接方式。It should be noted that the above wireless connection manner may include but is not limited to 3G/4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other wireless connection methods that are now known or developed in the future. .
步骤223,接收并存储服务器发送的基于物品来源参数更新后的第一认证值。Step 223: Receive and store a first authentication value that is sent by the server and is updated based on the item source parameter.
服务器将物品来源参数和第一认证值发送至所述与商家标识对应的商家服务器之后,该商家服务器可以物品来源参数进行解析,并确定出物品来源参数和第一认证值来自哪一个用户。接着,商家服务器可以进一步地基于本次接收到的物品来源参数来更新此次接收到的第一认证值,以使更新后的第一认证值能够体现本次用户的第一操作行为。After the server sends the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier, the merchant server may parse the item source parameter and determine the item source parameter and the first authentication value from which user. Then, the merchant server may further update the received first authentication value based on the received item source parameter, so that the updated first authentication value can reflect the first operation behavior of the current user.
随后,商家服务器可以将更新后的第一认证值发送至服务器,并由服务器将该更新后的第一认证值发送至相应的终端。Subsequently, the merchant server may send the updated first authentication value to the server, and the server sends the updated first authentication value to the corresponding terminal.
这样一来,用户在每一次执行第一操作时,均将相应的物品来源参数和第一认证值上传至服务器,每次上传的数据量较小,从而可以避免集中上传大量数据时可能导致的数据流量过大从而引起的服务器峰值压力较大的问题。可以提升服务器运行的稳定性和可靠性。In this way, the user uploads the corresponding item source parameter and the first authentication value to the server each time the first operation is performed, and the amount of data uploaded each time is small, thereby avoiding the possibility of collectively uploading a large amount of data. The problem of excessive peak server pressure caused by excessive data traffic. It can improve the stability and reliability of server operation.
另一方面,在终端中,由于第一认证值可以表征某一预定时段内 的用户行为,在每一时刻,终端中可以仅存储一个第一认证值便可以作为本时段内的用户行为记录。这样一来,可以减少存储在终端中的数据量,避免同一时刻保存多个物品来源参数而导致的终端内存占用较大的问题,从而提升终端响应速度和运行的可靠性。On the other hand, in the terminal, since the first authentication value can characterize the user behavior within a predetermined period of time, at each moment, only one first authentication value can be stored in the terminal as the user behavior record in the current period. In this way, the amount of data stored in the terminal can be reduced, and the problem of large memory usage of the terminal caused by saving multiple source parameter parameters at the same time can be avoided, thereby improving the response speed and reliability of the terminal.
可以理解的是,每次检测到用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作时,均可以执行上述的步骤210~220,从而可以在用户未执行第二操作的前提下,多次完成更新第一认证值的步骤。It can be understood that each time the user performs a preset first operation performed on the page including the item to be purchased displayed on the terminal, the foregoing steps 210-220 may be performed, so that the second operation may not be performed by the user. Under the premise, the steps of updating the first authentication value are completed multiple times.
在本实施例的一些可选的实现方式中,在执行本实施例的上述步骤222的将所述物品来源参数和存储在所述终端的第一认证值发送至服务器之前,步骤220的更新第一认证值还包括:In some optional implementation manners of this embodiment, before performing the foregoing step 222 of the embodiment, the item source parameter and the first authentication value stored in the terminal are sent to the server, and the step 220 is updated. An authentication value also includes:
检测终端中是否存储有第一认证值;响应于终端中未存储有第一认证值,确定预设值为第一认证值。Detecting whether the first authentication value is stored in the terminal; and determining that the preset value is not stored in the terminal, determining that the preset value is the first authentication value.
当终端中未存储有第一认证值时,可以将预设值作为第一认证值。When the first authentication value is not stored in the terminal, the preset value may be used as the first authentication value.
这样一来,若终端当前未存储有第一认证值,可以为第一认证值赋初值,从而完成第一认证值的更新。In this way, if the terminal does not currently store the first authentication value, the first authentication value may be assigned an initial value, thereby completing the update of the first authentication value.
此外,在一些可选的实现方式中,本实施例的用于确定订单来源的方法还可以包括:In addition, in some optional implementation manners, the method for determining the source of the order in this embodiment may further include:
步骤230,若用户对待购买物品执行预设的第二操作,则将当前的第一认证值发送至服务器。Step 230: If the user performs a preset second operation on the purchased item, the current first authentication value is sent to the server.
在一些应用场景中,预设的第二操作例如可以是选择购物车中的至少一件物品并生成订单的操作。在这些应用场景中,当前的第一认证值例如可以表征预设时段内,将各个物品加入购物车的行为。在将当前的第一认证值发送至服务器之后,服务器可以解析第一认证值,从而确定该预设时段内加入购物车的各个物品的物品来源参数,从而实现对订单来源的解析和确定。接着,服务器还可以将物品来源参数发送至所对应的商家服务器,使得商家服务器也能够得到相应的物品来源信息。In some application scenarios, the preset second operation may be, for example, an operation of selecting at least one item in the shopping cart and generating an order. In these application scenarios, the current first authentication value may, for example, characterize the behavior of adding individual items to the shopping cart within a preset time period. After transmitting the current first authentication value to the server, the server may parse the first authentication value, thereby determining an item source parameter of each item added to the shopping cart within the preset time period, thereby realizing parsing and determining the order source. Then, the server may also send the item source parameter to the corresponding merchant server, so that the merchant server can also obtain the corresponding item source information.
在执行上述的步骤230之后,终端可以删除其上存储的第一认证值,从而进一步的释放内存。After performing the above step 230, the terminal may delete the first authentication value stored thereon, thereby further releasing the memory.
在本实施例的一些可选的实现方式中,步骤221的获取物品来源参数可以进一步包括:In some optional implementations of this embodiment, the obtaining the item source parameter of step 221 may further include:
获取页面的页面标识;以及Get the page identifier of the page; and
对上述页面标识进行解析,确定物品标识以及商家标识。The above page identifier is parsed to determine the item identifier and the merchant identifier.
这样一来,便可以确定出用户执行当前第一操作时的物品来源参数。In this way, the item source parameter when the user performs the current first operation can be determined.
在本实施例的一些可选的实现方式中,本实施例的用于确定订单来源的方法还可以进一步包括以下步骤:In some optional implementation manners of this embodiment, the method for determining the source of the order in this embodiment may further include the following steps:
接收服务器发送的订单来源统计结果;以及Receiving the order source statistics sent by the server;
根据订单来源统计结果,在检测到用户对终端的第三操作时,接收服务器发送的推送信息。According to the result of the order source statistics, when the third operation of the user to the terminal is detected, the push information sent by the server is received.
本实现方式中,商家服务器在得到订单来源统计结果后,可以将该订单来源统计结果发送至服务器,服务器可以对上述订单来源统计结果进行解析,确定何种来源的物品信息所对应的物品的用户购买率较高,然后根据上述订单来源统计结果确定用户进行何种操作时适于向用户推送信息。这些操作可以记为第三操作。上述第三操作例如可以是打开网页的操作、进入某个应用程序的操作等等。终端在检测到用户对终端进行上述第三操作时,可以向用户推送信息。In this implementation manner, after obtaining the order source statistics result, the merchant server may send the order source statistics result to the server, and the server may parse the order source statistics result to determine the source of the item corresponding to the item information. The purchase rate is higher, and then it is determined according to the above-mentioned order source statistics to determine what kind of operation the user is doing is suitable for pushing information to the user. These operations can be recorded as the third operation. The third operation described above may be, for example, an operation of opening a web page, an operation of entering an application, or the like. When the terminal detects that the user performs the third operation on the terminal, the terminal may push the information to the user.
继续参见图3,其示出了根据本申请的用于确定订单来源的方法的另一个实施例的流程300。本实施例的用于确定订单来源的方法可以由服务器来执行,其可以包括以下步骤:With continued reference to FIG. 3, a flow 300 of another embodiment of a method for determining an order source is provided in accordance with the present application. The method for determining the order source of this embodiment may be performed by a server, which may include the following steps:
步骤310,接收终端响应于用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作而生成的物品来源参数和第一认证值,其中,物品来源参数包括用户的用户标识、物品的物品标识、物品所属商家的商家标识以及页面的页面标识。Step 310: The object source parameter and the first authentication value generated by the terminal in response to the user performing a preset first operation performed on the page including the item to be purchased displayed on the terminal, where the item source parameter includes the user identifier of the user, The item identification of the item, the business identification of the business to which the item belongs, and the page identification of the page.
步骤320,解析物品来源参数,以确定其中的商家标识。 Step 320, parsing the item source parameters to determine the merchant identifier therein.
步骤330,将物品来源参数和第一认证值发送至与商家标识对应的商家服务器。Step 330: Send the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
通过上述的步骤310~330,可以将终端上传的第一认证值和物品来源参数发送至通过解析物品来源参数而得到的商家标识所对应的商 家服务器。使得商家服务器可以据此获得相应的物品来源参数和第一认证值。Through the above steps 310-330, the first authentication value and the item source parameter uploaded by the terminal can be sent to the merchant server corresponding to the merchant identifier obtained by parsing the item source parameter. The merchant server can obtain the corresponding item source parameter and the first authentication value accordingly.
此外,本实施例的用于确定订单来源的方法,每一次接收到用户上传的物品来源参数和第一认证值之后,服务器均可以解析物品来源参数并将所接收到的物品来源参数和第一认证值发送至相应的商家服务器,有利于降低服务器处理数据的峰值压力,并且缓解集中发送物品来源参数和第一认证值可能导致的网络峰值流量需求较大的问题。In addition, in the method for determining the source of the order in this embodiment, after receiving the item source parameter and the first authentication value uploaded by the user, the server may parse the item source parameter and the received item source parameter and the first Sending the authentication value to the corresponding merchant server is beneficial to reducing the peak pressure of the server processing data, and alleviating the problem that the network peak traffic demand may be caused by the centralized sending of the item source parameter and the first authentication value.
在一些可选的实现方式中,本实施例的用于确定订单来源的方法还可以进一步包括:In some optional implementations, the method for determining the source of the order in this embodiment may further include:
步骤340,接收所述商家服务器基于所述物品来源参数更新后的第一认证值。Step 340: Receive a first authentication value that is updated by the merchant server based on the item source parameter.
步骤350,解析所述更新后的第一认证值,以确定其中的用户标识。Step 350: Parse the updated first authentication value to determine a user identifier therein.
步骤360,将所述更新后的第一认证值发送至与所述更新后的第一认证值所包含的用户标识相对应的终端。Step 360: Send the updated first authentication value to a terminal corresponding to the user identifier included in the updated first authentication value.
通过上述步骤340~360,可以将经商家服务器更新后的第一认证值发送至相应的终端,从而对存储在终端的第一认证值进行更新。Through the above steps 340-360, the first authentication value updated by the merchant server can be sent to the corresponding terminal, so that the first authentication value stored in the terminal is updated.
此外,在一些可选的实现方式中,本实施例的用于确定订单来源的方法还可以进一步包括:In addition, in some optional implementation manners, the method for determining the source of the order in this embodiment may further include:
步骤370,接收终端发送的响应于用户对待购买物品执行预设的第二操作而确定的当前的第一认证值。Step 370: Receive, by the terminal, a current first authentication value determined in response to the user performing a preset second operation on the item to be purchased.
步骤380,解析当前的第一认证值以确定与当前的第一认证值对应的物品的商家标识。Step 380: Parse the current first authentication value to determine a merchant identity of the item corresponding to the current first authentication value.
步骤390,将当前的第一认证值发送至与当前的第一认证值对应的物品的商家标识所对应的商家服务器。Step 390: Send the current first authentication value to the merchant server corresponding to the merchant identifier of the item corresponding to the current first authentication value.
通过步骤370~步骤390,服务器可以在终端完成第二操作(例如,选择购物车中的至少一个物品并生成订单的操作)之后,得到该终端上传的第一认证值,该第一认证值中例如包括了预定时段内,使用该终端的用户执行的各第一操作(例如,将物品加入购物车的操作)的特征信息(例如,物品来源参数)。这样一来,服务器可以将该第一认 证值发送至该预定时段内,该用户加入购物车的物品所指示的各个商家服务器,以使商家服务器可以解析第一认证值,从而获知该第一认证值中,由本方提供的商品的页面标识。After the step 370 to the step 390, the server may obtain the first authentication value uploaded by the terminal after the terminal completes the second operation (for example, the operation of selecting at least one item in the shopping cart and generating an order), where the first authentication value is obtained. For example, characteristic information (for example, an item source parameter) of each first operation (for example, an operation of adding an item to a shopping cart) performed by a user of the terminal is included within a predetermined period of time. In this way, the server may send the first authentication value to the predetermined time period, and the user joins each merchant server indicated by the item of the shopping cart, so that the merchant server can parse the first authentication value, thereby obtaining the first authentication. In the value, the page identifier of the item provided by the party.
继续参见图4,其示出了根据本申请的用于确定订单来源的方法的另一个实施例的流程400。本实施例的用于确定订单来源的方法可以由商家服务器来执行,其可以包括以下步骤:With continued reference to FIG. 4, a flow 400 of another embodiment of a method for determining an order source is provided in accordance with the present application. The method for determining the source of the order of this embodiment may be performed by a merchant server, which may include the following steps:
步骤410,接收服务器发送的物品来源参数和自终端上传至服务器的第一认证值,其中,物品来源参数是终端在检测到用户对包含有待购买物品的页面执行的第一操作时发送至服务器的,物品来源参数包括用户的用户标识、物品的物品标识以及页面的页面标识;Step 410: Receive an item source parameter sent by the server and a first authentication value uploaded from the terminal to the server, where the item source parameter is sent by the terminal to the server when detecting the first operation performed by the user on the page containing the item to be purchased. The item source parameter includes a user identifier of the user, an item identifier of the item, and a page identifier of the page;
步骤420,基于物品来源参数更新第一认证值。Step 420: Update the first authentication value based on the item source parameter.
步骤430,将更新后的第一认证值发送至服务器。Step 430: Send the updated first authentication value to the server.
本实施例的用于确定订单来源的方法,可以在接收到服务器发送的第一认证值和物品来源参数后,基于物品来源参数来更新第一认证值,并将更新后的第一认证值发送至服务器。从而使得更新后的第一认证值包含本次接收的物品来源参数的信息。此外,通过每次接收到服务器发送的第一认证值和物品来源参数后均更新第一认证值,缓解了同时更新多个第一认证值可能导致的峰值压力较大的问题,有利于提升商家服务器运行的稳定性和可靠性。The method for determining the source of the order in this embodiment may: after receiving the first authentication value and the item source parameter sent by the server, update the first authentication value based on the item source parameter, and send the updated first authentication value. To the server. Thereby, the updated first authentication value includes information of the item source parameter received this time. In addition, by updating the first authentication value after receiving the first authentication value and the item source parameter sent by the server each time, the problem that the peak pressure caused by simultaneously updating the plurality of first authentication values is large is alleviated, which is beneficial to improving the merchant. The stability and reliability of the server operation.
在一些可选的实现方式中,本实施例的用于确定订单来源的方法还可以包括:In some optional implementations, the method for determining the source of the order in this embodiment may further include:
步骤440,建立数组,并在上述数组中存储物品标识以及页面标识。Step 440, creating an array and storing the item identification and the page identification in the above array.
商家服务器在接收物品来源参数后,可以数组,并可以在该数组中存储接收到的物品标识和页面标识。After receiving the item source parameter, the merchant server may array, and may store the received item identifier and page identifier in the array.
步骤450,接收服务器发送的订单确认请求。在这里,订单确认请求是服务器在接收到终端检测到用户的第二操作后发送至商家服务器的。Step 450: Receive an order confirmation request sent by the server. Here, the order confirmation request is sent by the server to the merchant server after receiving the second operation of the user detected by the terminal.
步骤460,根据数组中存储的物品标识以及页面标识,确定用户的订单来源统计结果。Step 460: Determine the user's order source statistics result according to the item identifier and the page identifier stored in the array.
商家服务器在接收到上述订单确认请求后,可以根据数组中存储的物品标识以及页面标识,确定上述用户的订单来源统计结果。例如,上述数组中有多个物品来源于资讯网页,则说明对于该用户更适合在资讯网页中推送物品信息。After receiving the above order confirmation request, the merchant server may determine the order source statistics result of the user according to the item identifier and the page identifier stored in the array. For example, if there are multiple items in the above array from the information webpage, it means that the user is more suitable to push the item information in the information webpage.
在本实施例的一些可选的实现方式中,上述方法还可以包括图4中未示出的以下步骤:接收服务器发送的终端处理的上一个订单的第一认证值,根据第一认证值生成第二认证值;将第二认证值发送至服务器,以使服务器将第二认证值发送至终端。In some optional implementation manners of the embodiment, the foregoing method may further include the following steps not shown in FIG. 4: receiving a first authentication value of a last order processed by the terminal sent by the server, and generating according to the first authentication value. a second authentication value; the second authentication value is sent to the server to cause the server to send the second authentication value to the terminal.
本实现方式中,商家服务器在接收到第一认证值后,可以根据第一认证值生成第二认证值。具体地,商家服务器可以根据预设的算法生成第二认证值,例如,哈希算法等。商家服务器在生成第二认证值后可以将上述第二认证值发送至服务器,服务器在接收到上述第二认证值后可以发送至终端。终端在接收到上述第二认证值后可以更新第一认证值。In this implementation manner, after receiving the first authentication value, the merchant server may generate a second authentication value according to the first authentication value. Specifically, the merchant server may generate a second authentication value according to a preset algorithm, for example, a hash algorithm or the like. After generating the second authentication value, the merchant server may send the second authentication value to the server, and the server may send the second authentication value to the terminal after receiving the second authentication value. The terminal may update the first authentication value after receiving the second authentication value.
在本实施例的一些可选的实现方式中,上述方法还可以包括以下步骤:In some optional implementation manners of the embodiment, the foregoing method may further include the following steps:
根据订单来源统计结果,确定用户接收待推送信息的第三操作;Determining, by the order source statistics result, a third operation of the user receiving the information to be pushed;
将第三操作以及与第三操作对应的待推送信息发送至服务器,以使服务器响应于接收到终端发送的第三操作将待推送的信息发送至终端。And transmitting the third operation and the to-be-pushed information corresponding to the third operation to the server, so that the server sends the information to be pushed to the terminal in response to receiving the third operation sent by the terminal.
本实现方式中,商家服务器在确定了上述订单来源统计结果后,可以对用户的购买习惯进行分析,确定该用户能够接收到待推送的信息的第三操作,然后将上述第三操作以及待推送的信息发送至服务器,以使服务器在接收到终端发送的第三操作时,将相应的待推送的信息发送至终端。可以理解的是,上述分析工作也可以由服务器来执行,以根据用户的购买习惯向用户推送物品信息。In this implementation manner, after determining the foregoing order source statistics result, the merchant server may analyze the user's purchasing habits, determine a third operation that the user can receive the information to be pushed, and then perform the third operation and the to-be-pushed The information is sent to the server, so that when the server receives the third operation sent by the terminal, the corresponding information to be pushed is sent to the terminal. It can be understood that the above analysis work can also be performed by the server to push the item information to the user according to the user's purchasing habits.
在本实施例的一些可选的实现方式中,上述方法还可以包括:In some optional implementation manners of the embodiment, the foregoing method may further include:
确定数组的建立时刻;Determine the creation time of the array;
响应于建立时刻与当前时刻之间的时长大于预设时长,删除数组。The array is deleted in response to the length of time between the setup time and the current time being greater than the preset duration.
本实现方式中,商家还可以监测上述数组的存在时长,当上述存 在时长过长时,可以删除上述数组,以节省商家服务器的存储空间。这样可以提高商家服务器处理数据的效率。In this implementation manner, the merchant may also monitor the existence duration of the array, and when the duration of the foregoing is too long, the array may be deleted to save storage space of the merchant server. This can improve the efficiency of the merchant server processing data.
继续参见图5,图5是根据本申请的用于确定订单来源的方法的应用场景的一个示意图。With continued reference to FIG. 5, FIG. 5 is a schematic diagram of an application scenario of a method for determining an order source according to the present application.
首先,如附图标记501所示,用户点击呈现在终端上的直播网站中的商品链接将商品A加入购物车。First, as indicated by reference numeral 501, the user clicks on the item link in the live website presented on the terminal to add item A to the shopping cart.
接着,如附图标记502所示,若用户将商品A加入购物车后,并未点击下单,获取商品A的物品来源参数,例如,可以包括商品A的的SKU、用户的ID以及直播网站的URL等。Next, as shown by reference numeral 502, if the user adds the item A to the shopping cart and does not click the order, the item source parameter of the item A is obtained, for example, the SKU of the item A, the ID of the user, and the live website may be included. URL etc.
接着,如附图标记503所示,终端将商品A的物品来源参数以及存储在终端的第一认证值上传至服务器。Next, as indicated by reference numeral 503, the terminal uploads the item source parameter of the item A and the first authentication value stored in the terminal to the server.
接着,如附图标记504所示,服务器解析物品来源参数,以确定与商品A的SKU对应的商家服务器。Next, as indicated by reference numeral 504, the server parses the item source parameters to determine a merchant server corresponding to the SKU of item A.
接着,如附图标记505所示,服务器将商品A的物品来源参数以及存储在终端的第一认证值上传对应的商家服务器。Next, as indicated by reference numeral 505, the server uploads the item source parameter of the item A and the first authentication value stored in the terminal to the corresponding merchant server.
接着,如附图标记506所示,商家服务器基于商品A的物品来源参数更新第一认证值并将更新后的第一认证值发送至服务器。Next, as indicated by reference numeral 506, the merchant server updates the first authentication value based on the item source parameter of the item A and transmits the updated first authentication value to the server.
此外,如附图标记507所示,商家服务器还维护一数组,数组中的每个元素对应服务器发送至该商家服务器的一个物品来源参数。Additionally, as indicated by reference numeral 507, the merchant server maintains an array with each element in the array corresponding to an item source parameter sent by the server to the merchant server.
接着,如附图标记508所示,服务器接收到由商家服务器更新的第一认证值后,解析第一认证值并确定与之对应的终端。Next, as indicated by reference numeral 508, after receiving the first authentication value updated by the merchant server, the server parses the first authentication value and determines the terminal corresponding thereto.
接着,如附图标记509所示,服务器将更新后的第一认证值发送至相应的终端。Next, as indicated by reference numeral 509, the server transmits the updated first authentication value to the corresponding terminal.
进一步参考图6,作为对图2所示方法的实现,本申请提供了一种用于确定订单来源的装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。判断单元610和更新单元620。With further reference to FIG. 6, as an implementation of the method illustrated in FIG. 2, the present application provides an embodiment of an apparatus for determining an order source, the apparatus embodiment corresponding to the method embodiment illustrated in FIG. The device can be specifically applied to various electronic devices. The judging unit 610 and the updating unit 620.
其中,判断单元610可用于响应于检测到用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作,判断用户是否对待购 买物品执行预设的第二操作。The determining unit 610 is configured to determine whether the user performs a preset second operation on the item to be purchased in response to detecting that the user performs a preset first operation performed on the page including the item to be purchased displayed on the terminal.
更新单元620可用于若用户未对待购买物品执行预设的第二操作,更新第一认证值。The updating unit 620 can be configured to update the first authentication value if the user does not perform the preset second operation on the item to be purchased.
更新单元620可进一步包括获取模块621、发送模块622以及接收模块623。The updating unit 620 may further include an obtaining module 621, a sending module 622, and a receiving module 623.
其中,获取模块621可用于获取物品来源参数,其中,物品来源参数包括用户的用户标识、物品的物品标识、物品所属商家的商家标识以及页面的页面标识。The obtaining module 621 can be configured to obtain an item source parameter, where the item source parameter includes a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page.
发送模块622可用于将物品来源参数和存储在终端的第一认证值发送至服务器,以使服务器将物品来源参数和第一认证值发送至与商家标识对应的商家服务器。The sending module 622 can be configured to send the item source parameter and the first authentication value stored in the terminal to the server, so that the server sends the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
接收模块623可用于接收并存储服务器发送的基于物品来源参数更新后的第一认证值。The receiving module 623 is configured to receive and store the first authentication value that is sent by the server and is updated based on the item source parameter.
在一些可选的实现方式中,更新单元620还可以包括:In some optional implementations, the updating unit 620 may further include:
检测模块,可用于在将所述物品来源参数和存储在所述终端的第一认证值发送至服务器之前,检测所述终端中是否存储有所述第一认证值。The detecting module is configured to detect whether the first authentication value is stored in the terminal before sending the item source parameter and the first authentication value stored in the terminal to the server.
确定模块,可用于响应于所述终端中未存储有所述第一认证值,确定预设值为所述第一认证值。And a determining module, configured to determine, in response to the first authentication value not stored in the terminal, that the preset value is the first authentication value.
在一些可选的实现方式中,本实施例的装置还可以包括:In some optional implementations, the apparatus of this embodiment may further include:
发送单元,可用于若用户对待购买物品执行预设的第二操作,则将当前的第一认证值发送至所述服务器。The sending unit is configured to send the current first authentication value to the server if the user performs a preset second operation on the purchased item.
在一些可选的实现方式中,所述获取模块还可以进一步用于:获取所述页面的页面标识;以及解析所述页面标识,确定所述物品标识以及所述商家标识。In some optional implementations, the obtaining module may be further configured to: obtain a page identifier of the page; and parse the page identifier, determine the item identifier, and the merchant identifier.
在一些可选的实现方式中,本实施例的装置还可以包括:In some optional implementations, the apparatus of this embodiment may further include:
统计结果接收单元,用于接收所述服务器发送的订单来源统计结果。The statistical result receiving unit is configured to receive an order source statistics result sent by the server.
推送信息接收单元,用于根据所述订单来源统计结果,在检测到所述用户对所述终端的第三操作时,接收服务器发送的推送信息。The push information receiving unit is configured to receive, according to the order source statistics result, the push information sent by the server when detecting the third operation of the user by the terminal.
本申请的上述实施例提供的用于确定订单来源的装置,将订单中各物品的来源参数分批发送,避免了在订单提交时一次性向服务器发送,从而有效地减小了服务器需要处理的数据量,降低了服务器的数据处理压力。The device for determining the source of the order provided by the above embodiment of the present application sends the source parameters of each item in the order in batches, avoiding sending to the server at one time when the order is submitted, thereby effectively reducing the data that the server needs to process. Volume, reducing the data processing pressure of the server.
进一步参考图7,作为对图3所示方法的实现,本申请提供了一种用于确定订单来源的装置的一个实施例,该装置实施例与图3所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to FIG. 7, as an implementation of the method illustrated in FIG. 3, the present application provides an embodiment of an apparatus for determining an order source, the apparatus embodiment corresponding to the method embodiment illustrated in FIG. The device can be specifically applied to various electronic devices.
如图7所示,本实施例的用于确定订单来源的装置700包括:接收单元710、解析单元720和发送单元730。As shown in FIG. 7, the apparatus 700 for determining an order source of the present embodiment includes: a receiving unit 710, a parsing unit 720, and a transmitting unit 730.
其中,接收单元710可用于响应于用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作而生成的物品来源参数和第一认证值,其中,物品来源参数包括用户的用户标识、物品的物品标识、物品所属商家的商家标识以及页面的页面标识。The receiving unit 710 is configured to generate an item source parameter and a first authentication value in response to a preset operation performed by the user on the page including the item to be purchased displayed on the terminal, where the item source parameter includes the user of the user. The logo, the item identification of the item, the business identifier of the business to which the item belongs, and the page identifier of the page.
解析单元720可用于解析物品来源参数,以确定其中的商家标识。Parsing unit 720 can be used to parse the item source parameters to determine the merchant identification therein.
发送单元730可用于将物品来源参数和第一认证值发送至与商家标识对应的商家服务器。The sending unit 730 can be configured to send the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
在一些可选的实现方式中,接收单元710还可用于接收商家服务器基于物品来源参数更新后的第一认证值。In some optional implementations, the receiving unit 710 is further configured to receive a first authentication value that is updated by the merchant server based on the item source parameter.
解析单元720还可用于解析更新后的第一认证值,以确定其中的用户标识。The parsing unit 720 is further configured to parse the updated first authentication value to determine a user identifier therein.
发送单元730还可用于将更新后的第一认证值发送至与更新后的第一认证值所包含的用户标识相对应的终端。The sending unit 730 is further configured to send the updated first authentication value to the terminal corresponding to the user identifier included in the updated first authentication value.
在一些可选的实现方式中,接收单元710还可用于接收终端发送的响应于用户对待购买物品执行预设的第二操作而确定的当前的第一认证值。In some optional implementation manners, the receiving unit 710 is further configured to receive, by the terminal, a current first authentication value that is determined in response to the user performing a preset second operation on the item to be purchased.
解析单元720还可用于解析当前的第一认证值以确定与当前的第一认证值对应的物品的商家标识。The parsing unit 720 can also be configured to parse the current first authentication value to determine a merchant identity of the item corresponding to the current first authentication value.
发送单元730还可用于将当前的第一认证值发送至与当前的第一认证值对应的物品的商家标识所对应的商家服务器。The sending unit 730 is further configured to send the current first authentication value to the merchant server corresponding to the merchant identifier of the item corresponding to the current first authentication value.
本申请的上述实施例提供的用于确定订单来源的装置,可以将终 端上传的第一认证值和物品来源参数发送至通过解析物品来源参数而得到的商家标识所对应的商家服务器。使得商家服务器可以据此获得相应的物品来源参数和第一认证值。The apparatus for determining the source of the order provided by the above embodiment of the present application may send the first authentication value and the item source parameter uploaded by the terminal to the merchant server corresponding to the merchant identifier obtained by parsing the item source parameter. The merchant server can obtain the corresponding item source parameter and the first authentication value accordingly.
进一步参考图8,作为对图4所示方法的实现,本申请提供了一种用于确定订单来源的装置的一个实施例,该装置实施例与图4所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to FIG. 8, as an implementation of the method illustrated in FIG. 4, the present application provides an embodiment of an apparatus for determining an order source, the apparatus embodiment corresponding to the method embodiment illustrated in FIG. The device can be specifically applied to various electronic devices.
如图8所示,本实施例的用于确定订单来源的装置800包括:接收单元810、更新单元820和发送单元830。As shown in FIG. 8, the apparatus 800 for determining an order source of the present embodiment includes: a receiving unit 810, an updating unit 820, and a transmitting unit 830.
其中,接收单元810可用于接收服务器发送的物品来源参数和自终端上传至服务器的第一认证值,其中,物品来源参数是终端在检测到用户对包含有待购买物品的页面执行的第一操作时发送至服务器的,物品来源参数包括:用户的用户标识、物品的物品标识以及页面的页面标识。The receiving unit 810 is configured to receive an item source parameter sent by the server and a first authentication value that is uploaded from the terminal to the server, where the item source parameter is when the terminal detects the first operation performed by the user on the page that includes the item to be purchased. The item source parameters sent to the server include: the user's user ID, the item's item ID, and the page's page identifier.
更新单元820可用于基于物品来源参数更新第一认证值。The update unit 820 can be configured to update the first authentication value based on the item source parameter.
发送单元830可用于将更新后的第一认证值发送至服务器。The sending unit 830 can be configured to send the updated first authentication value to the server.
在一些可选的实现方式中,本实施例的装置还可包括:In some optional implementations, the apparatus of this embodiment may further include:
数组建立单元,可用于建立数组,并在数组中存储物品标识以及页面标识。An array creation unit that can be used to create an array and store the item identifier and page identifier in the array.
在这些可选的实现方式中,本实施例的接收单元810还可用于接收服务器发送的订单确认请求,订单确认请求是服务器在接收到终端检测到用户的第二操作后发送至商家服务器的。In these optional implementation manners, the receiving unit 810 of the embodiment may be further configured to receive an order confirmation request sent by the server, where the order confirmation request is sent by the server to the merchant server after receiving the second operation of the user.
在这些可选的实现方式中,装置还可包括确定单元。确定单元可用于根据数组中存储的物品标识以及页面标识,确定用户的订单来源统计结果。In these alternative implementations, the apparatus can also include a determining unit. The determining unit can be used to determine the user's order source statistics based on the item identifiers stored in the array and the page identifier.
在一些可选的实现方式中,确定单元还可用于根据订单来源统计结果,确定用户接收待推送信息的第三操作。In some optional implementations, the determining unit is further configured to determine, according to the order source statistics result, a third operation that the user receives the information to be pushed.
发送单元830还可用于将第三操作以及与第三操作对应的待推送信息发送至服务器,以使服务器响应于接收到终端发送的第三操作将待推送的信息发送至终端。The sending unit 830 is further configured to send the third operation and the to-be-pushed information corresponding to the third operation to the server, so that the server sends the information to be pushed to the terminal in response to receiving the third operation sent by the terminal.
在一些可选的实现方式中,确定单元还用于:确定数组的建立时 刻;以及响应于建立时刻与当前时刻之间的时长大于预设时长,删除数组。In some optional implementations, the determining unit is further configured to: determine an establishment time of the array; and delete the array in response to the duration between the setup time and the current time being greater than a preset duration.
下面参考图9,其示出了适于用来实现本申请实施例的终端设备或服务器的计算机系统900的结构示意图。图9示出的终端设备/服务器仅仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。Referring now to Figure 9, a block diagram of a computer system 900 suitable for use in implementing a terminal device or server of an embodiment of the present application is shown. The terminal device/server shown in FIG. 9 is merely an example, and should not impose any limitation on the function and scope of use of the embodiments of the present application.
如图9所示,计算机系统900包括中央处理单元(CPU)901,其可以根据存储在只读存储器(ROM)902中的程序或者从存储部分908加载到随机访问存储器(RAM)903中的程序而执行各种适当的动作和处理。在RAM 903中,还存储有系统900操作所需的各种程序和数据。CPU 901、ROM 902以及RAM 903通过总线904彼此相连。输入/输出(I/O)接口905也连接至总线904。As shown in FIG. 9, computer system 900 includes a central processing unit (CPU) 901 that can be loaded into a program in random access memory (RAM) 903 according to a program stored in read only memory (ROM) 902 or from storage portion 908. And perform various appropriate actions and processes. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. An input/output (I/O) interface 905 is also coupled to bus 904.
以下部件连接至I/O接口905:包括键盘、鼠标等的输入部分906;包括诸如阴极射线管(CRT)、液晶显示器(LCD)等以及扬声器等的输出部分907;包括硬盘等的存储部分908;以及包括诸如LAN卡、调制解调器等的网络接口卡的通信部分909。通信部分909经由诸如因特网的网络执行通信处理。驱动器910也根据需要连接至I/O接口905。可拆卸介质911,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器910上,以便于从其上读出的计算机程序根据需要被安装入存储部分908。The following components are connected to the I/O interface 905: an input portion 906 including a keyboard, a mouse, etc.; an output portion 907 including, for example, a cathode ray tube (CRT), a liquid crystal display (LCD), and the like, and a storage portion 908 including a hard disk or the like. And a communication portion 909 including a network interface card such as a LAN card, a modem, or the like. The communication section 909 performs communication processing via a network such as the Internet. Driver 910 is also connected to I/O interface 905 as needed. A removable medium 911 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory or the like is mounted on the drive 910 as needed so that a computer program read therefrom is installed into the storage portion 908 as needed.
特别地,根据本公开的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本公开的实施例包括一种计算机程序产品,其包括承载在机器可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的程序代码。在这样的实施例中,该计算机程序可以通过通信部分909从网络上被下载和安装,和/或从可拆卸介质911被安装。在该计算机程序被中央处理单元(CPU)901执行时,执行本申请的方法中限定的上述功能。In particular, the processes described above with reference to the flowcharts may be implemented as a computer software program in accordance with an embodiment of the present disclosure. For example, an embodiment of the present disclosure includes a computer program product comprising a computer program carried on a machine readable medium, the computer program comprising program code for executing the method illustrated in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication portion 909, and/or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-described functions defined in the method of the present application are performed.
需要说明的是,本申请所描述的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、 红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于:无线、电线、光缆、RF等等,或者上述的任意合适的组合。It should be noted that the computer readable medium described herein may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, 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, which can be used by or in connection with an instruction execution system, apparatus or device. In the present application, a computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device. . Program code embodied on a computer readable medium can be transmitted by any suitable 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 in accordance with various embodiments of the present application. In this regard, each block of the flowchart or block diagram can represent a module, a program segment, or a portion of code that includes one or more of the logic functions for implementing the specified. Executable instructions. It should also be noted that in some alternative implementations, the functions noted in the blocks may also occur in a different order than that illustrated in the drawings. For example, two successively represented blocks may in fact be executed substantially in parallel, and they may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowcharts, and combinations of blocks in the block diagrams and/or flowcharts, can be implemented in a dedicated hardware-based system that performs the specified function or operation. Or it can be implemented by a combination of dedicated hardware and computer instructions.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现。所描述的单元也可以设置在处理器中,例如,可以描述为:一种处理器包括判断单元和更新单元。其 中,这些单元的名称在某种情况下并不构成对该单元本身的限定,例如,判断单元还可以被描述为“用于响应于检测到用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作,判断用户是否对待购买物品执行预设的第二操作的单元”。The units involved in the embodiments of the present application may be implemented by software or by hardware. The described unit may also be provided in the processor, for example, as a processor including a judging unit and an updating unit. Wherein, the names of the units do not constitute a limitation on the unit itself in some cases. For example, the judging unit may also be described as “in response to detecting that the user performs a page on the terminal including the item to be purchased. The first operation of the preset determines whether the user performs a preset second operation unit for the purchased item.
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的装置中所包含的;也可以是单独存在,而未装配入该装置中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:响应于检测到用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作,判断用户是否对待购买物品执行预设的第二操作;若否,则执行如下的更新第一认证值的步骤;所述更新第一认证值的步骤包括:获取物品来源参数,其中,所述物品来源参数包括所述用户的用户标识、所述物品的物品标识、所述物品所属商家的商家标识以及所述页面的页面标识;将所述物品来源参数和存储在所述终端的第一认证值发送至服务器,以使所述服务器将所述物品来源参数和所述第一认证值发送至所述与商家标识对应的商家服务器;以及接收并存储所述服务器发送的基于物品来源参数更新后的第一认证值。In another aspect, the present application also provides a computer readable medium, which may be included in the apparatus described in the above embodiments, or may be separately present and not incorporated into the apparatus. The computer readable medium carries one or more programs, when the one or more programs are executed by the device, causing the device to: in response to detecting that the user performs a preset on the terminal including the page containing the item to be purchased a first operation of determining whether the user performs a preset second operation on the purchased item; if not, performing the following step of updating the first authentication value; the step of updating the first authentication value comprises: obtaining the item source parameter, The item source parameter includes a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page; and the item source parameter is stored in the terminal The first authentication value is sent to the server, so that the server sends the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier; and receives and stores the item based on the server The first authentication value after the source parameter is updated.
本申请还提供了一种计算机可读介质,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:接收终端响应于用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作而生成的物品来源参数和第一认证值,其中,物品来源参数包括用户的用户标识、物品的物品标识、物品所属商家的商家标识以及页面的页面标识;解析物品来源参数,以确定其中的商家标识;将物品来源参数和第一认证值发送至与商家标识对应的商家服务器。The present application also provides a computer readable medium carrying one or more programs, when the one or more programs are executed by the device, causing the device to: receive the terminal in response to the user on the terminal The displayed item source parameter and the first authentication value generated by the preset first operation performed by the page of the item to be purchased, wherein the item source parameter includes the user identifier of the user, the item identifier of the item, and the merchant identifier of the merchant to which the item belongs And the page identifier of the page; parsing the item source parameter to determine the merchant identifier therein; and sending the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier.
本申请还提供了一种计算机可读介质,上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被该装置执行时,使得该装置:接收服务器发送的物品来源参数和自终端上传至服务器的第一认证值,其中,物品来源参数是终端在检测到用户对包含有待购买物品的页面执行的第一操作时发送至服务器的,物品来源参数包括: 用户的用户标识、物品的物品标识以及页面的页面标识;基于物品来源参数更新第一认证值;以及将更新后的第一认证值发送至服务器。The present application also provides a computer readable medium carrying one or more programs, when the one or more programs are executed by the device, causing the device to: receive an item source parameter sent by the server and The first authentication value uploaded from the terminal to the server, where the item source parameter is sent to the server when the terminal detects the first operation performed by the user on the page containing the item to be purchased, and the item source parameter includes: the user identifier of the user, An item identification of the item and a page identification of the page; updating the first authentication value based on the item source parameter; and transmitting the updated first authentication value to the server.
以上描述仅为本申请的较佳实施例以及对所运用技术原理的说明。本领域技术人员应当理解,本申请中所涉及的发明范围,并不限于上述技术特征的特定组合而成的技术方案,同时也应涵盖在不脱离上述发明构思的情况下,由上述技术特征或其等同特征进行任意组合而形成的其它技术方案。例如上述特征与本申请中公开的(但不限于)具有类似功能的技术特征进行互相替换而形成的技术方案。The above description is only a preferred embodiment of the present application and a description of the principles of the applied technology. It should be understood by those skilled in the art that the scope of the invention referred to in the present application is not limited to the specific combination of the above technical features, and should also be covered by the above technical features or without departing from the above inventive concept. Other technical solutions formed by arbitrarily combining the equivalent features. For example, the above features are combined with the technical features disclosed in the present application, but are not limited to the technical features having similar functions.

Claims (21)

  1. 一种用于确定订单来源的方法,其特征在于,包括:A method for determining an order source, characterized in that it comprises:
    响应于检测到用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作,判断用户是否对待购买物品执行预设的第二操作;Determining whether the user performs a preset second operation on the purchased item in response to detecting that the user performs a preset first operation performed on the page including the item to be purchased displayed on the terminal;
    若否,则执行如下的更新第一认证值的步骤;If not, performing the following steps of updating the first authentication value;
    所述更新第一认证值的步骤包括:The step of updating the first authentication value includes:
    获取物品来源参数,其中,所述物品来源参数包括所述用户的用户标识、所述物品的物品标识、所述物品所属商家的商家标识以及所述页面的页面标识;Obtaining an item source parameter, wherein the item source parameter includes a user identifier of the user, an item identifier of the item, a merchant identifier of a merchant to which the item belongs, and a page identifier of the page;
    将所述物品来源参数和存储在所述终端的第一认证值发送至服务器,以使所述服务器将所述物品来源参数和所述第一认证值发送至所述与商家标识对应的商家服务器;以及Transmitting the item source parameter and the first authentication value stored in the terminal to a server, so that the server sends the item source parameter and the first authentication value to the merchant server corresponding to the merchant identifier ;as well as
    接收并存储所述服务器发送的基于所述物品来源参数更新后的第一认证值。Receiving and storing a first authentication value that is sent by the server and updated based on the item source parameter.
  2. 根据权利要求1所述的方法,其特征在于,在将所述物品来源参数和存储在所述终端的第一认证值发送至服务器之前,所述更新第一认证值的步骤还包括:The method of claim 1, wherein the step of updating the first authentication value further comprises: before the sending the source parameter and the first authentication value stored in the terminal to the server:
    检测所述终端中是否存储有所述第一认证值;Detecting whether the first authentication value is stored in the terminal;
    响应于所述终端中未存储有所述第一认证值,确定预设值为所述第一认证值。And determining that the preset value is the first authentication value, in response to the first authentication value not being stored in the terminal.
  3. 根据权利要求1或2所述的方法,其特征在于,还包括:The method according to claim 1 or 2, further comprising:
    若用户对待购买物品执行预设的第二操作,则将当前的第一认证值发送至所述服务器。If the user performs a preset second operation on the purchased item, the current first authentication value is sent to the server.
  4. 根据权利要求1所述的方法,其特征在于,所述获取物品来源参数,包括:The method of claim 1 wherein said obtaining an item source parameter comprises:
    获取所述页面的页面标识;Obtaining a page identifier of the page;
    解析所述页面标识,确定所述物品标识以及所述商家标识。Parsing the page identifier, determining the item identification and the merchant identification.
  5. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:
    接收所述服务器发送的订单来源统计结果;Receiving an order source statistics result sent by the server;
    根据所述订单来源统计结果,在检测到所述用户对所述终端的第三操作时,接收服务器发送的推送信息。According to the order source statistics result, when the third operation of the terminal by the user is detected, the push information sent by the server is received.
  6. 一种用于确定订单来源的方法,其特征在于,包括:A method for determining an order source, characterized in that it comprises:
    接收终端响应于用户对所述终端上显示的包含有待购买物品的页面执行的预设的第一操作而生成的物品来源参数和第一认证值,其中,所述物品来源参数包括所述用户的用户标识、所述物品的物品标识、所述物品所属商家的商家标识以及所述页面的页面标识;Receiving, by the receiving terminal, an item source parameter and a first authentication value generated by the user for performing a preset first operation performed on the page including the item to be purchased displayed on the terminal, wherein the item source parameter includes the user's a user identification, an item identification of the item, a merchant identification of a merchant to which the item belongs, and a page identification of the page;
    解析所述物品来源参数,以确定其中的商家标识;Parsing the item source parameter to determine a merchant identifier therein;
    将所述物品来源参数和所述第一认证值发送至与所述商家标识对应的商家服务器。The item source parameter and the first authentication value are sent to a merchant server corresponding to the merchant identification.
  7. 根据权利要求6所述的方法,其特征在于,还包括:The method of claim 6 further comprising:
    接收所述商家服务器基于所述物品来源参数更新后的第一认证值;Receiving a first authentication value updated by the merchant server based on the item source parameter;
    解析所述更新后的第一认证值,以确定其中的用户标识;Parsing the updated first authentication value to determine a user identifier therein;
    将所述更新后的第一认证值发送至与所述更新后的第一认证值所包含的用户标识相对应的终端。And transmitting the updated first authentication value to a terminal corresponding to the user identifier included in the updated first authentication value.
  8. 根据权利要求6或7所述的方法,其特征在于,还包括:The method according to claim 6 or 7, further comprising:
    接收所述终端发送的响应于用户对待购买物品执行预设的第二操作而确定的当前的第一认证值;Receiving, by the terminal, a current first authentication value determined in response to the user performing a preset second operation on the item to be purchased;
    解析当前的第一认证值以确定与当前的第一认证值对应的物品的商家标识;Parsing the current first authentication value to determine a merchant identifier of the item corresponding to the current first authentication value;
    将当前的第一认证值发送至与当前的第一认证值对应的物品的商家标识所对应的商家服务器。The current first authentication value is sent to the merchant server corresponding to the merchant identifier of the item corresponding to the current first authentication value.
  9. 一种用于确定订单来源的方法,其特征在于,所述方法包括:A method for determining a source of an order, the method comprising:
    接收服务器发送的物品来源参数和自终端上传至所述服务器的第一认证值,其中,所述物品来源参数是终端在检测到用户对包含有待购买物品的页面执行的第一操作时发送至所述服务器的,所述物品来源参数包括:所述用户的用户标识、所述物品的物品标识以及所述页面的页面标识;Receiving an item source parameter sent by the server and a first authentication value uploaded from the terminal to the server, where the item source parameter is sent by the terminal to the first operation when detecting the user performing the page containing the item to be purchased For the server, the item source parameter includes: a user identifier of the user, an item identifier of the item, and a page identifier of the page;
    基于所述物品来源参数更新所述第一认证值;以及Updating the first authentication value based on the item source parameter;
    将更新后的第一认证值发送至所述服务器。The updated first authentication value is sent to the server.
  10. 根据权利要求9所述的方法,其特征在于,还包括:The method of claim 9 further comprising:
    建立数组,并在所述数组中存储所述物品标识以及所述页面标识;Establishing an array, and storing the item identifier and the page identifier in the array;
    接收所述服务器发送的订单确认请求,所述订单确认请求是所述服务器在接收到所述终端检测到用户的第二操作后发送至商家服务器的;Receiving an order confirmation request sent by the server, where the order confirmation request is sent by the server to the merchant server after receiving the second operation of the terminal detected by the terminal;
    根据所述数组中存储的所述物品标识以及所述页面标识,确定所述用户的订单来源统计结果。Determining the order source statistics result of the user according to the item identifier stored in the array and the page identifier.
  11. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, wherein the method further comprises:
    根据所述订单来源统计结果,确定所述用户接收待推送信息的第三操作;Determining, according to the order source statistics result, a third operation that the user receives the information to be pushed;
    将所述第三操作以及与所述第三操作对应的待推送信息发送至所述服务器,以使所述服务器响应于接收到终端发送的所述第三操作将所述待推送的信息发送至所述终端。Transmitting the third operation and the to-be-pushed information corresponding to the third operation to the server, so that the server sends the information to be pushed to the third operation sent by the terminal to The terminal.
  12. 根据权利要求10所述的方法,其特征在于,所述方法还包括:The method of claim 10, wherein the method further comprises:
    确定所述数组的建立时刻;Determining an establishment time of the array;
    响应于所述建立时刻与当前时刻之间的时长大于预设时长,删除所述数组。The array is deleted in response to the duration between the set time and the current time being greater than a preset duration.
  13. 一种用于确定订单来源的装置,其特征在于,所述装置包括:An apparatus for determining a source of an order, the apparatus comprising:
    判断单元,用于响应于检测到用户对终端上显示的包含有待购买物品的页面执行的预设的第一操作,判断用户是否对待购买物品执行预设的第二操作;a determining unit, configured to determine whether the user performs a preset second operation on the purchased item in response to detecting that the user performs a preset first operation performed on the page including the item to be purchased displayed on the terminal;
    更新单元,用于若所述用户未对待购买物品执行预设的第二操作,更新第一认证值;An update unit, configured to update the first authentication value if the user does not perform a preset second operation on the item to be purchased;
    所述更新单元包括:The update unit includes:
    获取模块,用于获取物品来源参数,其中,所述物品来源参数包括所述用户的用户标识、所述物品的物品标识、所述物品所属商家的商家标识以及所述页面的页面标识;An obtaining module, configured to obtain an item source parameter, where the item source parameter includes a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page;
    发送模块,用于将所述物品来源参数和存储在所述终端的第一认证值发送至服务器,以使所述服务器将所述物品来源参数和所述第一认证值发送至所述与商家标识对应的商家服务器;以及a sending module, configured to send the item source parameter and a first authentication value stored in the terminal to a server, so that the server sends the item source parameter and the first authentication value to the merchant Identify the corresponding merchant server;
    接收模块,用于接收并存储所述服务器发送的基于所述物品来源参数更新后的第一认证值。The receiving module is configured to receive and store the first authentication value that is sent by the server and is updated based on the item source parameter.
  14. 一种用于确定订单来源的装置,其特征在于,包括:An apparatus for determining a source of an order, comprising:
    接收单元,用于响应于用户对所述终端上显示的包含有待购买物品的页面执行的预设的第一操作而生成的物品来源参数和第一认证值,其中,所述物品来源参数包括所述用户的用户标识、所述物品的物品标识、所述物品所属商家的商家标识以及所述页面的页面标识;a receiving unit, configured to generate an item source parameter and a first authentication value in response to a user performing a preset first operation performed on the page including the item to be purchased displayed on the terminal, wherein the item source parameter includes Describe a user identifier of the user, an item identifier of the item, a merchant identifier of the merchant to which the item belongs, and a page identifier of the page;
    解析单元,用于解析所述物品来源参数,以确定其中的商家标识;a parsing unit, configured to parse the item source parameter to determine a merchant identifier therein;
    发送单元,用于将所述物品来源参数和所述第一认证值发送至与所述商家标识对应的商家服务器。And a sending unit, configured to send the item source parameter and the first authentication value to a merchant server corresponding to the merchant identifier.
  15. 一种用于确定订单来源的装置,其特征在于,包括:An apparatus for determining a source of an order, comprising:
    接收单元,用于接收服务器发送的物品来源参数和自终端上传至所述服务器的第一认证值,其中,所述物品来源参数是终端在检测到用户对包含有待购买物品的页面执行的第一操作时发送至所述服务器的,所述物品来源参数包括:所述用户的用户标识、所述物品的物品 标识以及所述页面的页面标识;a receiving unit, configured to receive an item source parameter sent by the server and a first authentication value uploaded from the terminal to the server, where the item source parameter is the first performed by the terminal on the page that detects the user that includes the item to be purchased The item source parameter sent to the server during operation includes: a user identifier of the user, an item identifier of the item, and a page identifier of the page;
    更新单元,用于基于所述物品来源参数更新所述第一认证值;以及An update unit, configured to update the first authentication value based on the item source parameter;
    发送单元,用于将更新后的第一认证值发送至所述服务器。And a sending unit, configured to send the updated first authentication value to the server.
  16. 一种终端,其特征在于,包括:A terminal, comprising:
    一个或多个处理器;One or more processors;
    存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求1-5中任一一项所述的方法。The one or more programs are executed by the one or more processors, such that the one or more processors implement the method of any of claims 1-5.
  17. 一种服务器,其特征在于,包括:A server, comprising:
    一个或多个处理器;One or more processors;
    存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求6-8中任一所述的方法。The one or more programs are executed by the one or more processors such that the one or more processors implement the method of any one of claims 6-8.
  18. 一种服务器,其特征在于,包括:A server, comprising:
    一个或多个处理器;One or more processors;
    存储装置,用于存储一个或多个程序,a storage device for storing one or more programs,
    当所述一个或多个程序被所述一个或多个处理器执行,使得所述一个或多个处理器实现如权利要求9-12中任一所述的方法。The one or more programs are executed by the one or more processors such that the one or more processors implement the method of any of claims 9-12.
  19. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求1-5中任一所述的方法。A computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method of any of claims 1-5.
  20. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求6-8中任一所述的方法。A computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method of any of claims 6-8.
  21. 一种计算机可读存储介质,其上存储有计算机程序,其特征 在于,该程序被处理器执行时实现如权利要求9-12中任一所述的方法。A computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method of any of claims 9-12.
PCT/CN2018/094877 2017-09-30 2018-07-06 Method and apparatus for determining source of order WO2019062266A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710938139.4 2017-09-30
CN201710938139.4A CN107705182B (en) 2017-09-30 2017-09-30 Method and device for determining order source

Publications (1)

Publication Number Publication Date
WO2019062266A1 true WO2019062266A1 (en) 2019-04-04

Family

ID=61184753

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/094877 WO2019062266A1 (en) 2017-09-30 2018-07-06 Method and apparatus for determining source of order

Country Status (2)

Country Link
CN (1) CN107705182B (en)
WO (1) WO2019062266A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107705182B (en) * 2017-09-30 2020-11-03 北京京东尚科信息技术有限公司 Method and device for determining order source
CN113393262A (en) * 2021-05-21 2021-09-14 北京京东振世信息技术有限公司 Virtual article processing method and device, electronic equipment and computer readable medium
CN115170162A (en) * 2022-02-07 2022-10-11 浙江口碑网络技术有限公司 Information feedback method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1045320A2 (en) * 1999-04-15 2000-10-18 Victor Company of Japan, Ltd. Contents sale system
CN105488688A (en) * 2015-05-15 2016-04-13 广州交易猫信息技术有限公司 Commodity information pushing method, device and system
CN106056408A (en) * 2016-06-01 2016-10-26 网易无尾熊(杭州)科技有限公司 Method and device for tracking promoter
CN107016587A (en) * 2016-01-28 2017-08-04 苏宁云商集团股份有限公司 A kind of pushing personalized pages method and device
CN107016010A (en) * 2016-06-30 2017-08-04 阿里巴巴集团控股有限公司 The treating method and apparatus of hyperlinked object
CN107705182A (en) * 2017-09-30 2018-02-16 北京京东尚科信息技术有限公司 Method and apparatus for determining order source

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101410707B1 (en) * 2012-04-12 2014-06-25 주식회사 씨엔피테크 Point of Sales System
CN103390233A (en) * 2012-05-08 2013-11-13 九樱天下(北京)信息技术有限公司 Order source identification method
WO2015073686A1 (en) * 2013-11-15 2015-05-21 Cfph, Llc Examples of delivery and/or referral services

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1045320A2 (en) * 1999-04-15 2000-10-18 Victor Company of Japan, Ltd. Contents sale system
CN105488688A (en) * 2015-05-15 2016-04-13 广州交易猫信息技术有限公司 Commodity information pushing method, device and system
CN107016587A (en) * 2016-01-28 2017-08-04 苏宁云商集团股份有限公司 A kind of pushing personalized pages method and device
CN106056408A (en) * 2016-06-01 2016-10-26 网易无尾熊(杭州)科技有限公司 Method and device for tracking promoter
CN107016010A (en) * 2016-06-30 2017-08-04 阿里巴巴集团控股有限公司 The treating method and apparatus of hyperlinked object
CN107705182A (en) * 2017-09-30 2018-02-16 北京京东尚科信息技术有限公司 Method and apparatus for determining order source

Also Published As

Publication number Publication date
CN107705182B (en) 2020-11-03
CN107705182A (en) 2018-02-16

Similar Documents

Publication Publication Date Title
WO2018192491A1 (en) Information pushing method and device
WO2018210062A1 (en) Method and device for determining inventory of items by server system
CN107390994B (en) Interface presentation method and device
WO2017035970A1 (en) Information pushing method and apparatus
CN106056408B (en) Method and device for tracking popularizing party
US11232392B2 (en) Method for processing orders and electronic device
WO2013107376A1 (en) Information processing method and system for network trading platform
CN108595448B (en) Information pushing method and device
WO2019062266A1 (en) Method and apparatus for determining source of order
WO2020215977A1 (en) System, method and device for displaying information
CN108932640B (en) Method and device for processing orders
WO2019062270A1 (en) Method and device for fast order processing
CN108334516A (en) Information-pushing method and device
WO2022012273A1 (en) Method for item price comparison, and device
JP2015531518A (en) Method and apparatus for processing electronic transaction information
JP7237975B2 (en) Dynamic User Interface Blueprint
CN110557684B (en) Information processing method, system, electronic device, and computer-readable medium
US20140222559A1 (en) Method and system of customer level transaction analytics across merchant sites
CN113032702A (en) Page loading method and device
CN111787042A (en) Method and device for pushing information
US20140278761A1 (en) Method and apparatus for data matching and integration
CN110351602B (en) Method for electronic device, information processing system and electronic device
US9898751B1 (en) Direct purchase of merchandise
CN113781144A (en) Live shopping order generation method and device, electronic equipment and computer medium
US8538813B2 (en) Method and system for providing an SMS-based interactive electronic marketing offer search and distribution system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18862497

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18862497

Country of ref document: EP

Kind code of ref document: A1