CN114841781A - Commodity information recommendation method, device, equipment and medium - Google Patents

Commodity information recommendation method, device, equipment and medium Download PDF

Info

Publication number
CN114841781A
CN114841781A CN202210571425.2A CN202210571425A CN114841781A CN 114841781 A CN114841781 A CN 114841781A CN 202210571425 A CN202210571425 A CN 202210571425A CN 114841781 A CN114841781 A CN 114841781A
Authority
CN
China
Prior art keywords
commodity
information
returned
target
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210571425.2A
Other languages
Chinese (zh)
Inventor
屈晓鑫
黄璐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chuangyou Digital Technology Guangdong Co Ltd
Original Assignee
Chuangyou Digital Technology Guangdong Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chuangyou Digital Technology Guangdong Co Ltd filed Critical Chuangyou Digital Technology Guangdong Co Ltd
Priority to CN202210571425.2A priority Critical patent/CN114841781A/en
Publication of CN114841781A publication Critical patent/CN114841781A/en
Pending legal-status Critical Current

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/0631Item recommendations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • 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/0623Item investigation
    • G06Q30/0625Directed, with specific intent or strategy
    • G06Q30/0627Directed, with specific intent or strategy using item specifications
    • 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/0641Shopping interfaces
    • G06Q30/0643Graphical representation of items or shoppers

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a commodity information recommendation method, a commodity information recommendation device and a commodity information recommendation medium, which are applied to a mobile terminal, wherein the mobile terminal comprises a page recommendation container and a plurality of commodity display containers, and the method comprises the following steps: responding to the application starting instruction, generating a home page access instruction and sending the home page access instruction to a back-end server; when a plurality of first returned commodity information returned by the back-end server is received, selecting target commodity information from the plurality of first returned commodity information to construct a target commodity assembly, and constructing an undetermined commodity assembly by adopting the remaining first returned commodity information; sequencing all target commodity components, sequentially loading the target commodity components to a page recommendation container, and sequentially loading the commodity components to be determined to all commodity display containers; rendering the page recommendation container and the commodity display containers, generating a target home page and displaying the target home page. And loading and rendering corresponding commodity information components according to the purchased commodity category and the historical search information, and displaying the recommended commodity information more accurately.

Description

Commodity information recommendation method, device, equipment and medium
Technical Field
The invention relates to the technical field of data recommendation, in particular to a commodity information recommendation method, device, equipment and medium.
Background
With the continuous improvement of electronic commerce transaction platforms and the rapid development of traditional communication, mobile communication and other technologies, more and more people acquire the needed commodities in an online shopping mode. Among them, shopping APP is the most common, and due to its flexible and simple characteristics, the merchandise required by the user can be efficiently found.
For the user groups without targeted shopping, such as purchasing personnel, housewives or strolling people, the user groups may not know the interested articles and are more inclined to purchase all the articles in one-stop mode, but because the page recommendation information of the traditional shopping APP is usually the inclined recommendation for crowd division aiming at the specific intended shopping user groups, the commodity information is difficult to be accurately recommended aiming at the user groups without targeted shopping.
Disclosure of Invention
The invention provides a commodity information recommendation method, a commodity information recommendation device and a commodity information recommendation medium, and solves the technical problems that page recommendation information of a traditional shopping APP is usually biased recommendation of divided crowds, and commodity information is difficult to accurately recommend aiming at a user group without targeted shopping.
The invention provides a commodity information recommendation method, which is applied to a mobile terminal, wherein the mobile terminal comprises a page recommendation container and a plurality of commodity display containers, and the method comprises the following steps:
responding to an application starting instruction, generating a home page access instruction and sending the home page access instruction to the back-end server;
when a plurality of first returned commodity information returned by the back-end server is received, selecting target commodity information from the plurality of first returned commodity information to construct a target commodity assembly, and constructing an undetermined commodity assembly by adopting the remaining first returned commodity information;
sequencing the target commodity assemblies, sequentially loading the target commodity assemblies to the page recommendation container, and sequentially loading the commodity assemblies to be determined to the commodity display containers;
rendering the page recommendation container and the commodity display containers to generate and display a target home page.
Optionally, the method further comprises:
when the back-end server receives the home page access instruction, judging whether first key value cache data corresponding to the home page access instruction are stored or not;
if the first key value cache data is stored, extracting a purchased commodity set and historical search information from the first key value cache data through the back-end server;
retrieving a preset first commodity database according to the purchased commodity set and the historical search information to obtain first returned commodity information and returning the first returned commodity information to the mobile terminal;
if the first key value cache data are not stored, first recent search information corresponding to the home page access instruction is obtained through the back-end server;
and retrieving the first commodity database according to the first recent search information to obtain first returned commodity information and returning the first returned commodity information to the mobile terminal.
Optionally, the step of retrieving a preset first commodity database according to the purchased commodity set and the history search information to obtain first returned commodity information and returning the first returned commodity information to the mobile terminal includes:
extracting the purchased commodity category corresponding to the purchased commodity set through the back-end server;
selecting a plurality of commodity information associated with the purchased commodity category from a preset first commodity database as first initial commodity information;
searching the first commodity database through the back-end server according to historical search information corresponding to the home page access instruction, and determining a plurality of pieces of second initial commodity information corresponding to the historical search information;
and selecting a predetermined number of first initial commodity information and second initial commodity information as first returned commodity information through the back-end server, and returning the first returned commodity information and the second returned commodity information to the mobile terminal.
Optionally, the method further comprises:
and if the quantity of the historical search information is zero and the purchased commodity category is not contained in the purchased commodity set, skipping to the step of constructing the pending commodity component by adopting the remaining first returned commodity information.
Optionally, the method further comprises:
responding to a click operation instruction aiming at any target commodity assembly or the pending commodity assembly, jumping from the target home page to a commodity detail page corresponding to the click operation instruction, generating a detail access instruction and sending the detail access instruction to the back-end server;
when a plurality of second returned commodity information returned by the back-end server is received, constructing a waterfall flow assembly by adopting the second returned commodity information;
sequencing all the waterfall flow components and sequentially loading the waterfall flow components to the page recommendation container;
rendering the page recommendation container to generate a target display frame;
and when a page return instruction is received, loading the target display frame to a preset position in the target home page.
Optionally, the method further comprises:
when the back-end server receives the detail access instruction, judging whether second key value cache data corresponding to the detail access instruction are stored or not;
if the second key value cache data are stored, extracting a database paging list corresponding to the click operation instruction from the second key value cache data through the back-end server;
acquiring commodity information in the database paging list as second returned commodity information;
if the second key value cache data are not stored, second recent search information corresponding to the detail access instruction is obtained through the back-end server;
and retrieving the second commodity database by adopting the second recent search information to obtain second returned commodity information.
Optionally, the method further comprises:
when a click operation instruction is not received and a sliding operation instruction is received, detecting the page distance between the page recommendation container and the top component of the target page in real time;
if the page distance is smaller than or equal to a preset distance threshold, sequentially loading the remaining commodity components to be determined to each commodity display container, and deleting the page recommendation container;
and rendering all the commodity display containers, and generating and displaying a new target home page.
The invention provides a commodity information recommendation device, which is applied to a mobile terminal, wherein the mobile terminal comprises a page recommendation container and a plurality of commodity display containers, and the device comprises:
the application starting module is used for responding to an application starting instruction, generating a home page access instruction and sending the home page access instruction to the back-end server;
the component construction module is used for selecting target commodity information from the first returned commodity information to construct a target commodity component and constructing an undetermined commodity component by adopting the remaining first returned commodity information when receiving the first returned commodity information returned by the back-end server;
the container loading module is used for sequencing the target commodity components, sequentially loading the target commodity components into the page recommendation container, and sequentially loading the commodity components to be determined into the commodity display containers;
and the target home page generation module is used for rendering the page recommendation container and the plurality of commodity display containers, generating a target home page and displaying the target home page.
A third aspect of the present invention provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to perform the steps of the merchandise information recommendation method according to any one of the first aspect of the present invention.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed, implements the merchandise information recommendation method according to any one of the first aspects of the present invention.
According to the technical scheme, the invention has the following advantages:
according to the method, a home page access instruction is generated and sent to a back-end server through an application starting instruction obtained by a user through clicking operation on an application in a screen of the mobile terminal, the back-end server responds to the home page access instruction to search commodity information so as to obtain first returned commodity information which is possibly interested by the user and return the first returned commodity information to the mobile terminal, when the mobile terminal receives a plurality of returned first returned commodity information, target commodity information is selected from the first returned commodity information to construct a target commodity assembly so as to obtain the commodity information which accords with a non-target shopping user, the target commodity assembly is constructed and obtained, and a data basis recommended by a subsequent page is provided; meanwhile, the undetermined commodity components are constructed by adopting the remaining first returned commodity information so as to increase the commodity diversity of the target home page, the target commodity components are further sequenced and then sequentially loaded to the page recommendation container, meanwhile, the undetermined commodity components are loaded to the commodity display containers and rendered, and the target home page is generated and displayed on the mobile terminal. Therefore, by setting different display functions of the pages corresponding to the containers in the application of the mobile terminal, the corresponding commodity information components are loaded and rendered respectively, and more accurate recommended commodity information is provided for non-targeted shopping users.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating steps of a method for recommending merchandise information according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating steps of a method for recommending merchandise information according to a second embodiment of the present invention;
FIG. 3 is a page diagram of a target home page in an example of the invention;
FIG. 4 is a page diagram of a target home page in another example of the present invention;
fig. 5 is a block diagram of a product information recommendation device according to a third embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a commodity information recommendation method, a commodity information recommendation device and a commodity information recommendation medium, which are used for solving the technical problems that page recommendation information of a traditional shopping APP is usually biased recommendation of divided crowds and commodity information is difficult to accurately recommend to a user group without targeted shopping.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating steps of a method for recommending merchandise information according to an embodiment of the present invention.
The invention provides a commodity information recommendation method, which is applied to a mobile terminal, wherein the mobile terminal comprises a page recommendation container and a plurality of commodity display containers, and the method comprises the following steps:
and step 101, responding to an application starting instruction, generating a home page access instruction and sending the home page access instruction to a back-end server.
The mobile terminal refers to a computer device that can be used in mobile, and broadly includes a mobile phone, a notebook, a tablet computer, a POS machine, and even a vehicle-mounted computer. But most often refer to cell phones or smart phones and tablets with multiple application functions.
The back-end server is a commodity data search server which stores user caches, such as redis caches and the like corresponding to the users and calls cloud services to access the cloud database.
The application starting instruction refers to a triggering instruction which is sensed in mobile terminal equipment such as a mobile terminal or a browser and is generated for starting a current application, and the application starting instruction can be generated when a contact is detected in a display area in a touch-sensitive display (or a touch screen) of the mobile terminal by a target application. And after the mobile terminal responds to the application starting instruction, a corresponding home page access instruction is generated for the current application.
The home page access instruction refers to an access instruction generated by the mobile terminal in response to the starting of the application and is used for calling the back-end server to inquire commodity information.
In the embodiment of the application, when a user clicks, slides or presses a target application for a long time on a touch screen of the mobile terminal to obtain an application starting instruction, the mobile terminal responds to the application starting instruction, generates a corresponding home page access instruction and sends the home page access instruction to the back-end server to inform the back-end server of carrying out corresponding commodity search.
And 102, when a plurality of first returned commodity information returned by the back-end server are received, selecting target commodity information from the plurality of first returned commodity information to construct a target commodity assembly, and constructing the undetermined commodity assembly by adopting the remaining first returned commodity information.
The first returned commodity information refers to commodity information which is retrieved by the back-end server in response to the home page access instruction, and includes but is not limited to a purchased commodity set and related commodity information of historical search. Wherein the additional shopping commodity set mainly comprises commodity information in the shopping cart.
The target commodity component refers to the encapsulation of a link, data or method corresponding to a single target commodity information. The pending commodity component refers to encapsulation of a link, data or method corresponding to the first returned commodity information.
And when the back-end server receives the home page access instruction, responding to the home page access instruction to search the commodity information so as to obtain a plurality of first returned commodity information and return the first returned commodity information to the mobile terminal. And when the mobile terminal receives a plurality of pieces of first returned commodity information returned by the back-end server, selecting a part of the first returned commodity information as the target commodity information to construct a target commodity component, and constructing the undetermined commodity component by adopting the rest of the first returned commodity information.
And 103, sequencing the target commodity components, sequentially loading the target commodity components into a page recommendation container, and sequentially loading the commodity components to be determined into each commodity display container.
After each target commodity component and each undetermined commodity component are constructed, in order to ensure that subsequent display on the mobile terminal can run smoothly, corresponding page recommendation containers and commodity display containers can be established on the mobile terminal, the target commodity components are sequentially loaded into the page recommendation containers after being sequenced, and meanwhile, each undetermined commodity component is sequentially loaded into each commodity display container, so that display elements required by a page are provided.
It should be noted that both the page recommendation container and the merchandise display container belong to one container, and the essence of the container is a process set with view isolation, resource limitation and independent file system. A container is a collection of processes that isolates other resources of the system, with its own independent view of resources, such as H5 container, WebView. The page recommendation container is one in the target home page, and the commodity display containers can be simultaneously multiple. In a specific implementation, in order to improve the page display diversity of the target home page, the area of the target home page may be divided, and the page recommendation container and the plurality of commodity display containers are placed in parallel at different positions. In addition, in order to facilitate the display of subsequent commodity display containers, a plurality of commodity display containers can be directly arranged on the target homepage, and the page recommendation container is placed at any position of any commodity display container, so that the display position diversity of the commodity recommendation information is improved.
And 104, rendering the page recommendation container and the commodity display containers, and generating and displaying a target home page.
In order to realize the display of the target home page in the mobile terminal, after the page recommendation container and the plurality of commodity display containers are obtained, the information of each commodity in the page recommendation container and the plurality of commodity display containers is analyzed to construct a tree-shaped data structure, the tree-shaped data structure is drawn, corresponding data information of each layer is sent to a GPU, and after the information of each layer is synthesized through the GPU, the target home page is generated and displayed on the mobile terminal.
After the page rendering operation is executed, the page recommendation container is displayed in a page display frame mode, wherein at least one piece of commodity recommendation information in the target commodity assembly is loaded, namely a plurality of target commodity assemblies can exist in the page recommendation container at the same time, so that concise and diversified commodity recommendation information is provided. And the remaining area of the page is provided with commodity display containers which load the commodity components to be determined and can also be displayed in the form of a page display frame, but different from the page recommendation container, a single commodity display container usually only loads a single commodity component to be determined so as to provide more specific commodity information.
In the embodiment of the application, a home page access instruction is generated and sent to a back-end server through an application starting instruction obtained by a mobile terminal responding to a click operation of a user on an application in a screen of the mobile terminal, commodity information is searched through the back-end server responding to the home page access instruction so as to obtain first returned commodity information which is possibly interested by the user and return the first returned commodity information to the mobile terminal, when the mobile terminal receives the returned first returned commodity information, target commodity information is selected from the first returned commodity information to construct a target commodity assembly so as to obtain the commodity information which accords with an untargeted shopping user, the target commodity assembly is constructed and obtained, and a data base recommended by a subsequent page is provided; meanwhile, the undetermined commodity components are constructed by adopting the remaining first returned commodity information so as to increase commodity diversity of the target home page, the target commodity components are further sequenced and sequentially loaded to the page recommendation container, meanwhile, the undetermined commodity components are loaded to the commodity display containers and rendered, and the target home page is generated and displayed on the mobile terminal. Therefore, by setting different display functions of the pages corresponding to the containers in the application of the mobile terminal, the corresponding commodity information components are loaded and rendered respectively, and more accurate recommended commodity information is provided for non-targeted shopping users.
Referring to fig. 2, fig. 2 is a flowchart illustrating steps of a method for recommending commodity information according to a second embodiment of the present invention.
The invention provides a commodity information recommendation method, which is applied to a mobile terminal, wherein the mobile terminal comprises a page recommendation container and a plurality of commodity display containers, and the method comprises the following steps:
step 201, responding to an application starting instruction, generating a home page access instruction and sending the home page access instruction to a back-end server.
In the embodiment of the present application, the specific implementation process of step 201 is similar to that of step 101, and is not described herein again.
Optionally, the method further comprises the following steps S11-S15:
and S11, when the back-end server receives the home page access instruction, judging whether the first key value cache data corresponding to the home page access instruction is stored.
In a specific implementation, the same application can be logged in and used by a plurality of users at the same time, after the users log in the application in the mobile terminal and click the application to send a home page access instruction, the back-end server searches through an application cache in the back-end server according to user information carried by the home page access instruction so as to judge whether first key value cache data corresponding to the home page access instruction is stored or not. The first key value cache data refers to data stored in non-relational data, and is specifically stored in a key word-value form, for example, Redis, and cache paging performed by a data structure based on Redis can be a list data structure based on Redis, or a Zset data structure based on Redis, or can be realized by using hash and Zset together; where hot data is data that a user accesses frequently and cold data is data that a user accesses infrequently.
In the embodiment of the application, after the back-end server receives the home page access instruction sent by the mobile terminal, the application cache corresponding to the home page access instruction is retrieved through the back-end server, and whether the first key value cache data corresponding to the home page access instruction is stored or not is judged.
And S12, if the first key value cache data are stored, extracting the purchased commodity set and the historical search information from the first key value cache data through the back-end server.
A purchased item set refers to a data set of items stored within the first key-value cache data, such as shopping carts.
The history search information refers to history cache data generated by the user performing a commodity search operation in a preset history time period.
In this embodiment, if the back-end server retrieves the first key value cache data in the application cache of the back-end server, it is determined that the first key value cache data is stored, and the back-end server further extracts the purchased commodity set and the historical search information from the first key value cache data to provide a search source of the subsequent first returned commodity information.
And S13, retrieving a preset first commodity database according to the purchased commodity set and the historical search information to obtain first returned commodity information and returning the first returned commodity information to the mobile terminal.
Further, S13 may include the following sub-steps:
and extracting the purchased commodity category corresponding to the purchased commodity set through a back-end server.
And selecting a plurality of commodity information associated with the purchased commodity category from a preset first commodity database as first initial commodity information.
And searching the first commodity database through the back-end server according to the historical search information corresponding to the home page access instruction, and determining a plurality of second initial commodity information corresponding to the historical search information.
And selecting a plurality of first initial commodity information and a plurality of second initial commodity information of a preset quantity as first returned commodity information through the back-end server and returning the first returned commodity information to the mobile terminal.
The first commodity database in this embodiment refers to a cloud database, such as an aricloud database, in which application commodities on shelves are stored.
In this embodiment, after the additional purchased commodity set and the history search information are extracted, the back-end server extracts all the additional purchased commodity information from the additional purchased commodity set to determine the commodity category corresponding to each commodity information as the additional purchased commodity category. The method comprises the steps of searching a first commodity database according to various purchased commodity categories as retrieval words, selecting a plurality of commodity information related to the purchased commodity categories as first initial commodity information, retrieving the first commodity database according to historical search information corresponding to a home page access instruction to determine a plurality of second initial commodity information corresponding to the historical search information, and in order to ensure the quantity balance of subsequent display, respectively selecting the first initial commodity information and the second initial commodity information which are equal in quantity, respectively taking the first initial commodity information and the second initial commodity information as first returned commodity information, and returning the first returned commodity information to the mobile terminal.
And S14, if the first key value cache data is not stored, acquiring first recent search information corresponding to the home page access instruction through the back-end server.
In another example of the application, if the first key value cache data is not stored in the back-end server, it indicates that the back-end server cannot obtain the query purchase-adding commodity set at this time, and therefore the first recent search information corresponding to the home page access instruction may be obtained by the back-end server.
It should be noted that the first recent search information refers to the commodity information searched by the user in the preset historical time period, and may be provided through the user information carried by the home page access instruction.
And S15, searching the first commodity database according to the first recent search information, obtaining first returned commodity information and returning the first returned commodity information to the mobile terminal.
In this embodiment of the present application, when the first key value cache data is not stored, the first commodity database may be retrieved according to the first recent search information, and commodity information related to the first recent search information is determined, so as to obtain first returned commodity information and return the first returned commodity information to the mobile terminal.
Step 202, when a plurality of first returned commodity information returned by the back-end server is received, selecting target commodity information from the plurality of first returned commodity information to construct a target commodity component, and constructing the undetermined commodity component by using the remaining first returned commodity information.
In the embodiment of the present application, the specific implementation of step 202 is similar to step 101, and is not described herein again.
And 203, sequencing all the target commodity components, sequentially loading the target commodity components to a page recommendation container, and sequentially loading the commodity components to be determined to all the commodity display containers.
In this embodiment, each target commodity component and each pending commodity component are constructed, and in order to ensure that subsequent display on the mobile terminal can run smoothly, corresponding page recommendation containers and commodity display containers can be created on the mobile terminal, the target commodity components are sequentially loaded into the page recommendation containers after being sorted, and meanwhile, each pending commodity component is sequentially loaded into each commodity display container, so that display elements required by a page are provided.
And step 204, rendering the page recommendation container and the commodity display containers, and generating and displaying a target home page.
In order to realize the display of the target home page in the mobile terminal, after the page recommendation container and the plurality of commodity display containers are obtained, the information of each commodity in the page recommendation container and the plurality of commodity display containers is analyzed to construct a tree-shaped data structure, the tree-shaped data structure is drawn, corresponding data information of each layer is sent to a GPU, and after the information of each layer is synthesized through the GPU, the target home page is generated and displayed on the mobile terminal.
Referring to fig. 3, fig. 3 is a schematic page diagram of a target home page in an example of the present application.
In this embodiment, the page recommendation container is identified by a dashed frame, and includes a target commodity component a, a target commodity component B, a target commodity component C, a target commodity component D, and a commodity display container a, a commodity display container B, and a commodity display container C respectively identified by a solid line, where at least one pending commodity component exists in each commodity display container.
In another example of the present invention, the method may further comprise the steps of:
and if the quantity of the historical search information is zero and the purchased commodity set does not contain the purchased commodity category, skipping to the step of constructing the undetermined commodity component by adopting the remaining first returned commodity information.
In this embodiment, if the backend server fails to extract the historical search information from the first key value cache data and the additional purchase commodity set does not include the additional purchase commodity type, it indicates that a page recommendation container is not needed at this time, and all the obtained first returned commodity information can be directly used to construct the pending commodity component.
In addition, target commodity information does not exist, so that the target commodity assembly constructed by the target commodity assembly does not need to be loaded to the page recommendation container subsequently, and finally, the plurality of commodity display containers are directly rendered to generate a target home page for displaying.
As shown in fig. 4, a page diagram of a target top page of another example of the present application is shown.
In this embodiment, a commodity display container a, a commodity display container B, a commodity display container C and a commodity display container D are present in the target home page, and at least one pending commodity component is present in each commodity display container.
Step 205, responding to the click operation instruction for any target commodity component or pending commodity component, skipping from the target home page to the commodity detail page corresponding to the click operation instruction, generating a detail access instruction and sending the detail access instruction to the back-end server.
The detail access instruction refers to a commodity detail page jump instruction generated by the mobile terminal responding to a click operation instruction of a user, and is also used for triggering search operation of commodity data by the back-end server according to the detail access instruction.
In the embodiment of the application, if the user clicks any target commodity component or pending commodity component in the target homepage, the mobile terminal responds to the click operation instruction, jumps to a commodity detail page corresponding to the click operation instruction from the target homepage, generates a detail access instruction and sends the detail access instruction to the back-end server.
Further, the method further comprises the following steps S31-S35:
and when the back-end server receives the detail access instruction, judging whether second key value cache data corresponding to the detail access instruction is stored or not.
And if the second key value cache data are stored, extracting a database paging list corresponding to the click operation instruction from the second key value cache data through the back-end server.
And acquiring the commodity information in the database paging list as second returned commodity information.
And if the second key value cache data are not stored, second recent search information corresponding to the detail access instruction is obtained through the back-end server.
And searching a second commodity database by using the second recent search information to obtain second returned commodity information.
The second key value cache data refers to data stored in non-relational data, wherein the data is stored in a key-value form, for example, Redis, and cache paging performed by a data structure based on Redis can be a list data structure based on Redis, or a Zset data structure based on Redis, or can be realized by using hash and Zset together; where hot data is data that a user accesses frequently and cold data is data that a user accesses infrequently.
The database paging list refers to paging cache composed of Redis, wherein each page is cached with a plurality of commodity information.
In the embodiment of the application, when the back-end server receives the detail access instruction, it indicates that the user skips from the target home page of the mobile terminal to the commodity detail page corresponding to a certain commodity component at the moment. At this time, the back-end server judges whether the second key value cache data corresponding to the detail access instruction is stored. If the second key value cache data are stored, extracting a database paging list associated with the commodity component corresponding to the click operation instruction from the second key value cache data through the back-end server, and further acquiring commodity information in the database paging list as second returned commodity information.
And if the second key value cache data is not stored, acquiring second recent search information corresponding to the detail access instruction through the back-end server, and retrieving a second commodity database by adopting the second recent search information to obtain second returned commodity information.
And step 206, when a plurality of second returned commodity information returned by the back-end server is received, constructing the waterfall flow component by using the second returned commodity information.
In the embodiment of the application, if a plurality of second returned commodity information returned by the back-end server is received, the waterfall flow component is constructed by using the second returned commodity information.
It should be noted that, the waterfall flow component in the embodiment of the present application refers to encapsulation of a link, data, or method corresponding to a single second returned commodity information.
And step 207, sequencing all waterfall flow components and sequentially loading the waterfall flow components to a page recommendation container.
In the embodiment of the application, the waterfall flow components are created one by one, so that the waterfall flow components can be sorted according to the creation sequence or randomly sorted, and the sorted waterfall flow components are loaded to the page recommendation container according to the sequence until the space of the page recommendation container is completely loaded.
It should be noted that, after the space in the page recommendation container is loaded, if remaining waterfall components still exist, when a click operation instruction for any target commodity component or pending commodity component is received next time, the generation of the detail access instruction is stopped, all waterfall components in the page recommendation container at the current moment are emptied, and the remaining waterfall components are sequentially loaded into the emptied page recommendation container, so that the use of search resources of a back-end server is reduced, and the utilization rate of recommendation information is improved.
Further, for the target commodity assembly in step 203, if the rest of the target commodity assembly remains after the target commodity assembly is loaded into the page recommendation container for the first time, after the waterfall flow assembly is constructed, the target commodity assembly and the waterfall flow assembly may be reordered and loaded into the page recommendation container, so as to further improve the utilization rate of the recommendation information.
And step 208, rendering the page recommendation container to generate a target display frame.
And after randomly sequencing all waterfall flow components, sequentially loading the waterfall flow components into a page recommendation container and rendering to generate a target display frame.
Step 209, when a page return instruction is received, loading the target display frame to a preset position in the target home page.
When the mobile terminal receives an input page return instruction, the page is in a stage of jumping from the commodity detail page to the target home page, and at the moment, the target display frame can be loaded to a preset position in the target home page, so that new recommendation information is obtained.
In one example of the present invention, the method further comprises:
and when the click operation instruction is not received and the sliding operation instruction is received, detecting the page distance between the page recommendation container and the top component of the target page in real time.
And if the page distance is less than or equal to the preset distance threshold, sequentially loading the remaining commodity components to be determined to each commodity display container, and deleting the page recommendation container.
And rendering all the commodity display containers, and generating and displaying a new target home page.
The top component refers to the top signal presentation bar within the target page.
In this embodiment, if the mobile terminal does not receive the click operation instruction input by the user and receives the sliding operation instruction, it indicates that the user performs page sliding on the mobile terminal at this time, and at this time, the page distance between the page recommendation container and the top component of the target page may be detected in real time. If the page distance is smaller than or equal to the preset distance threshold, the remaining commodity components to be determined can be sequentially loaded to each commodity display container, the page recommendation container is deleted from the target page, and all the commodity display containers are rendered to generate a new target home page and displayed.
In the embodiment of the application, a home page access instruction is generated and sent to a back-end server through an application starting instruction obtained by a mobile terminal responding to a click operation of a user on an application in a screen of the mobile terminal, commodity information is searched through the back-end server responding to the home page access instruction so as to obtain first returned commodity information which is possibly interested by the user and return the first returned commodity information to the mobile terminal, when the mobile terminal receives the returned first returned commodity information, target commodity information is selected from the first returned commodity information to construct a target commodity assembly so as to obtain the commodity information which accords with an untargeted shopping user, the target commodity assembly is constructed and obtained, and a data base recommended by a subsequent page is provided; meanwhile, the undetermined commodity components are constructed by adopting the remaining first returned commodity information so as to increase commodity diversity of the target home page, the target commodity components are further sequenced and sequentially loaded to the page recommendation container, meanwhile, the undetermined commodity components are loaded to the commodity display containers and rendered, and the target home page is generated and displayed on the mobile terminal. Therefore, by setting different display functions of the pages corresponding to the containers in the application of the mobile terminal, the corresponding commodity information components are loaded and rendered respectively, and more accurate recommended commodity information is provided for non-targeted shopping users.
Referring to fig. 5, fig. 5 is a block diagram of a product information recommendation device according to an embodiment of the present invention.
The embodiment of the invention provides a commodity information recommendation device, which is applied to a mobile terminal, wherein the mobile terminal comprises a page recommendation container and a plurality of commodity display containers, and the device comprises:
an application starting module 501, configured to respond to an application starting instruction, generate a home page access instruction, and send the home page access instruction to a back-end server;
the component construction module 502 is configured to, when receiving a plurality of pieces of first returned commodity information returned by the back-end server, select target commodity information from the plurality of pieces of first returned commodity information to construct a target commodity component, and construct an undetermined commodity component by using the remaining pieces of first returned commodity information;
the container loading module 503 is configured to sort and sequentially load the target commodity components into the page recommendation container, and sequentially load the commodity components to be determined into each commodity display container;
and a target home page generation module 504, configured to render the page recommendation container and the plurality of commodity display containers, generate a target home page, and display the target home page.
Optionally, the apparatus further comprises:
the first key value cache data judgment module is used for judging whether first key value cache data corresponding to a home page access instruction is stored or not when the back-end server receives the home page access instruction;
the first storage judging module is used for extracting the purchased commodity set and the historical search information from the first key value cache data through the back-end server if the first key value cache data are stored;
the first commodity retrieval module is used for retrieving a preset first commodity database according to the purchased commodity set and the historical search information to obtain first returned commodity information and returning the first returned commodity information to the mobile terminal;
the first storage negation module is used for acquiring first recent search information corresponding to the home page access instruction through a back-end server if the first key value cache data are not stored;
and the first recent search module is used for searching the first commodity database according to the first recent search information to obtain first returned commodity information and returning the first returned commodity information to the mobile terminal.
Optionally, the first item retrieval module is configured to:
extracting the purchased commodity category corresponding to the purchased commodity set through a back-end server;
selecting a plurality of commodity information associated with purchased commodity categories from a preset first commodity database as first initial commodity information;
searching a first commodity database through a back-end server according to historical search information corresponding to the home page access instruction, and determining a plurality of second initial commodity information corresponding to the historical search information;
and selecting a plurality of first initial commodity information and a plurality of second initial commodity information of a preset quantity as first returned commodity information through the back-end server and returning the first returned commodity information to the mobile terminal.
Optionally, the apparatus further comprises:
and the skipping module is used for skipping to the step of constructing the to-be-determined commodity component by adopting the remaining first returned commodity information if the quantity of the historical search information is zero and the purchased commodity set does not contain the purchased commodity category.
Optionally, the apparatus further comprises:
the detail skipping module is used for responding to a click operation instruction aiming at any target commodity component or pending commodity component, skipping from a target home page to a commodity detail page corresponding to the click operation instruction, generating a detail access instruction and sending the detail access instruction to the back-end server;
the waterfall flow component constructing module is used for constructing a waterfall flow component by adopting second returned commodity information when receiving the plurality of second returned commodity information returned by the back-end server;
the waterfall flow component loading module is used for sequencing all waterfall flow components and sequentially loading the waterfall flow components to the page recommendation container;
the waterfall flow component rendering module is used for rendering the page recommendation container to generate a target display frame;
and the display frame loading module is used for loading the target display frame to a preset position in the target home page when the page return instruction is received.
Optionally, the apparatus further comprises:
the second key value cache data judgment module is used for judging whether second key value cache data corresponding to the detail access instruction is stored or not when the detail access instruction is received by the back-end server;
the second storage judging module is used for extracting a database paging list corresponding to the click operation instruction from the second key value cache data through the back-end server if the second key value cache data are stored;
the second commodity retrieval module is used for acquiring the commodity information in the database paging list as second returned commodity information;
the second storage negation module is used for acquiring second recent search information corresponding to the detail access instruction through the back-end server if the second key value cache data are not stored;
and the second recent search module is used for searching the second commodity database by adopting the second recent search information to obtain second returned commodity information.
Optionally, the apparatus further comprises:
the distance monitoring module is used for detecting the page distance between the page recommendation container and the top component of the target page in real time when the click operation instruction is not received and the sliding operation instruction is received;
the container deleting module is used for sequentially loading the remaining commodity assemblies to be determined to each commodity display container and deleting the page recommendation container if the page distance is less than or equal to a preset distance threshold;
and the rendering updating module is used for rendering all the commodity display containers, generating and displaying a new target home page.
The embodiment of the present invention further provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method for recommending commodity information according to any embodiment of the present invention.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed, implements the merchandise information recommendation method according to any embodiment of the present invention.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described apparatuses and modules may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A commodity information recommendation method is applied to a mobile terminal, wherein the mobile terminal comprises a page recommendation container and a plurality of commodity display containers, and the method comprises the following steps:
responding to the application starting instruction, generating a home page access instruction and sending the home page access instruction to a back-end server;
when a plurality of first returned commodity information returned by the back-end server is received, selecting target commodity information from the plurality of first returned commodity information to construct a target commodity assembly, and constructing an undetermined commodity assembly by adopting the remaining first returned commodity information;
sequencing the target commodity components, sequentially loading the target commodity components to the page recommendation container, and sequentially loading the commodity components to be determined to each commodity display container;
rendering the page recommendation container and the commodity display containers to generate and display a target home page.
2. The method of claim 1, further comprising:
when the back-end server receives the home page access instruction, judging whether first key value cache data corresponding to the home page access instruction are stored or not;
if the first key value cache data is stored, extracting a purchased commodity set and historical search information from the first key value cache data through the back-end server;
retrieving a preset first commodity database according to the purchased commodity set and the historical search information to obtain first returned commodity information and returning the first returned commodity information to the mobile terminal;
if the first key value cache data are not stored, first recent search information corresponding to the home page access instruction is obtained through the back-end server;
and retrieving the first commodity database according to the first recent search information to obtain first returned commodity information and returning the first returned commodity information to the mobile terminal.
3. The method according to claim 2, wherein the step of retrieving a preset first commodity database according to the purchased commodity set and the historical search information to obtain first returned commodity information and returning the first returned commodity information to the mobile terminal comprises:
extracting the purchased commodity category corresponding to the purchased commodity set through the back-end server;
selecting a plurality of commodity information associated with the purchased commodity category from a preset first commodity database as first initial commodity information;
searching the first commodity database through the back-end server according to historical search information corresponding to the home page access instruction, and determining a plurality of pieces of second initial commodity information corresponding to the historical search information;
and selecting a predetermined number of first initial commodity information and second initial commodity information as first returned commodity information through the back-end server, and returning the first returned commodity information and the second returned commodity information to the mobile terminal.
4. The method of claim 2, further comprising:
and if the quantity of the historical search information is zero and the purchased commodity category is not contained in the purchased commodity set, skipping to the step of constructing the pending commodity component by adopting the remaining first returned commodity information.
5. The method of claim 1, further comprising:
responding to a click operation instruction aiming at any target commodity assembly or the pending commodity assembly, jumping from the target home page to a commodity detail page corresponding to the click operation instruction, generating a detail access instruction and sending the detail access instruction to the back-end server;
when a plurality of second returned commodity information returned by the back-end server is received, constructing a waterfall flow assembly by adopting the second returned commodity information;
sequencing all the waterfall flow components and sequentially loading the waterfall flow components to the page recommendation container;
rendering the page recommendation container to generate a target display frame;
and when a page return instruction is received, loading the target display frame to a preset position in the target home page.
6. The method of claim 5, further comprising:
when the back-end server receives the detail access instruction, judging whether second key value cache data corresponding to the detail access instruction are stored or not;
if the second key value cache data are stored, extracting a database paging list corresponding to the click operation instruction from the second key value cache data through the back-end server;
acquiring commodity information in the database paging list as second returned commodity information;
if the second key value cache data are not stored, second recent search information corresponding to the detail access instruction is obtained through the back-end server;
and retrieving the second commodity database by adopting the second recent search information to obtain second returned commodity information.
7. The method according to any one of claims 1-6, further comprising:
when a click operation instruction is not received and a sliding operation instruction is received, detecting the page distance between the page recommendation container and the top component of the target page in real time;
if the page distance is smaller than or equal to a preset distance threshold, sequentially loading the remaining commodity components to be determined to each commodity display container, and deleting the page recommendation container;
and rendering all the commodity display containers, and generating and displaying a new target home page.
8. A commodity information recommendation device is applied to a mobile terminal, wherein the mobile terminal comprises a page recommendation container and a plurality of commodity display containers, and the device comprises:
the application starting module is used for responding to an application starting instruction, generating a home page access instruction and sending the home page access instruction to the back-end server;
the component construction module is used for selecting target commodity information from the first returned commodity information to construct a target commodity component and constructing an undetermined commodity component by adopting the remaining first returned commodity information when receiving the first returned commodity information returned by the back-end server;
the container loading module is used for sequencing the target commodity components, sequentially loading the target commodity components into the page recommendation container, and sequentially loading the commodity components to be determined into the commodity display containers;
and the target home page generation module is used for rendering the page recommendation container and the plurality of commodity display containers, generating a target home page and displaying the target home page.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the computer program, when executed by the processor, causes the processor to perform the steps of the merchandise information recommendation method according to any one of claims 1-7.
10. A computer-readable storage medium on which a computer program is stored, the computer program, when executed, implementing the merchandise information recommendation method according to any one of claims 1-7.
CN202210571425.2A 2022-05-24 2022-05-24 Commodity information recommendation method, device, equipment and medium Pending CN114841781A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210571425.2A CN114841781A (en) 2022-05-24 2022-05-24 Commodity information recommendation method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210571425.2A CN114841781A (en) 2022-05-24 2022-05-24 Commodity information recommendation method, device, equipment and medium

Publications (1)

Publication Number Publication Date
CN114841781A true CN114841781A (en) 2022-08-02

Family

ID=82571704

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210571425.2A Pending CN114841781A (en) 2022-05-24 2022-05-24 Commodity information recommendation method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN114841781A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024040825A1 (en) * 2022-08-26 2024-02-29 百度在线网络技术(北京)有限公司 Content recommendation method and apparatus for application home page, device, medium and product

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024040825A1 (en) * 2022-08-26 2024-02-29 百度在线网络技术(北京)有限公司 Content recommendation method and apparatus for application home page, device, medium and product

Similar Documents

Publication Publication Date Title
CN107798571B (en) Malice address/malice order identifying system, method and device
CN107967284B (en) Method and device for storing and inquiring order information
CN106651506B (en) Commodity price comparison method, server and terminal equipment
US20050198095A1 (en) System and method for obtaining information relating to an item of commerce using a portable imaging device
US20190019203A1 (en) Method for providing marketing management data for optimization of distribution and logistics and apparatus for the same
US10438270B2 (en) Apparatus and method for information processing and recording
CN106911801B (en) method for associating user information and information pushing system
CN111899068A (en) Commodity shopping guide method and device, storage medium and computer equipment
US20180204168A1 (en) Shipping preferences population systems and related methods
US10678878B2 (en) Method, device and storing medium for searching
CN102957722A (en) Network service Method and system for generating personalized recommendation
CN113689258A (en) Commodity recommendation heat generation method and system
US9390443B2 (en) Product information providing server apparatus, product information display program, product information display method, product information providing system, terminal device, and recording medium on which product information display program is recorded
CN114841781A (en) Commodity information recommendation method, device, equipment and medium
JP2013210964A (en) Information providing apparatus, information processing method, program, information storage medium, and information providing system
CN112036987B (en) Method and device for determining recommended commodity
CN113516539A (en) Commodity recommendation method and device and computer-readable storage medium
CN110349359B (en) Method and system for adding commodities for sale
KR101750985B1 (en) Method for providing search service in online shopping, recordable medium which program for executing method is recorded
CN108073609B (en) Page display method and device
KR101703919B1 (en) Method for setting a landing page of keyword advertisement, method for providing keyword advertisement, and computer program for executing one of the methods
KR20100044394A (en) Method and server for searching commodity
CN115860865A (en) Commodity combination construction method and device, equipment, medium and product thereof
CN114385931A (en) Method and device for obtaining recommendation form and electronic equipment
CN104050174B (en) A kind of personal page generation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination