CN112861036A - User favorite access method and device, equipment and medium thereof - Google Patents
User favorite access method and device, equipment and medium thereof Download PDFInfo
- Publication number
- CN112861036A CN112861036A CN202110177163.7A CN202110177163A CN112861036A CN 112861036 A CN112861036 A CN 112861036A CN 202110177163 A CN202110177163 A CN 202110177163A CN 112861036 A CN112861036 A CN 112861036A
- Authority
- CN
- China
- Prior art keywords
- user
- target commodity
- commodity
- collection
- data
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 52
- 238000013507 mapping Methods 0.000 claims abstract description 59
- 238000004590 computer program Methods 0.000 claims description 12
- 230000004044 response Effects 0.000 claims description 7
- 230000014509 gene expression Effects 0.000 claims description 5
- 229910002056 binary alloy Inorganic materials 0.000 abstract description 3
- 238000004891 communication Methods 0.000 description 10
- 230000006870 function Effects 0.000 description 7
- 238000012545 processing Methods 0.000 description 6
- 238000012217 deletion Methods 0.000 description 5
- 230000037430 deletion Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000001413 cellular effect Effects 0.000 description 2
- 238000005034 decoration Methods 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/955—Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
- G06F16/9562—Bookmark management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2358—Change logging, detection, and notification
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/60—Protecting data
- G06F21/62—Protecting access to data via a platform, e.g. using keys or access control rules
- G06F21/6218—Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Data Mining & Analysis (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Health & Medical Sciences (AREA)
- Bioethics (AREA)
- General Health & Medical Sciences (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Software Systems (AREA)
- Economics (AREA)
- Development Economics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The application discloses a user favorite access method, a device, equipment and a medium thereof, wherein the method comprises the following steps: responding to an adding instruction of a user for adding a target commodity to a favorite of an online shop, and constructing mapping relation data between a unique number of the user and the unique number of the target commodity as well as the stock state/commodity price of the target commodity; the uniqueness number of the user is used for balancing the total amount of the preset tables, the table serial number is obtained to determine the corresponding collection relation table, and the mapping relation data is stored in the table; inquiring corresponding data records in a commodity summary table according to the uniqueness number of the target commodity, and acquiring a binary storage identifier of the target commodity from the data records; and setting a binary bit corresponding to the bit sequence and the table sequence number in the storage identification as 1 to represent that the collection relation table stores mapping relation data. The collection system of the E-commerce platform is efficiently maintained through the implementation of the surplus positioning table and the binary system storage identification.
Description
Technical Field
The present application relates to the field of internet technologies, and in particular, to a user favorite access method, and further, to an apparatus, a device, and a non-volatile storage medium corresponding to the methods.
Background
In the internet e-commerce field, an e-commerce platform provides favorite services for users, so that the users add commodities into the favorites according to personal preferences in the process of browsing the commodities, then track the prices of the commodities in the favorites and purchase corresponding commodities at proper prices, and conversion from the favorites to the purchase is formed.
In order to manage the favorite service of the e-commerce platform and the online shops under the e-commerce platform, the commodity collections of the various types of users can be uniformly managed by constructing a system for managing the favorites, but the multi-dimensional reasonableness in the current system of the favorites is not good, and the management of the inventory information and the price information of the various types of commodities in the favorites is low in updating efficiency.
Secondly, the latest state of maintaining and updating the inventory information and the price information of the commodities of each user favorite in the favorite system of the E-commerce platform cannot be efficiently updated in real time, and the complicated data updating prevents the user from quickly knowing the latest state of each commodity from the favorite, so that the experience of the user in using the favorite service is influenced.
The favorite system aims at the problems existing in the favorite system of the e-commerce platform, and is a problem to be solved in the field.
Disclosure of Invention
A primary object of the present application is to provide a user favorite access method and a corresponding apparatus, device and non-volatile storage medium thereof.
In order to achieve various purposes of the application, the following technical scheme is adopted:
a user favorite access method adapted to one of the objects of the present application, comprising the steps of:
responding to an adding instruction of a user for adding a target commodity to a favorite of an online shop, and constructing mapping relation data between a unique number of the user, the unique number of the target commodity and stock state/commodity price of the target commodity;
the uniqueness number of the user is used for measuring the surplus of the preset total form quantity, the surplus number is used as a form serial number for determining a collection relation form corresponding to the form serial number, and the mapping relation data is stored into the collection relation form;
inquiring corresponding data records in a preset commodity summary table according to the uniqueness number of the target commodity, and acquiring a binary state storage identifier corresponding to the target commodity from the data records, wherein the total length of the storage identifier is the total length of the table, and each bit of the storage identifier is used for indicating whether a collection relation table corresponding to the sequence is a null value or not;
and setting the binary bit corresponding to the bit sequence and the table sequence number in the storage identifier as 1, and being used for representing that the corresponding collection relation table stores mapping relation data.
In a further embodiment, the method further comprises the following steps:
responding to an update instruction of an online shop for updating the stock state/commodity price of a target commodity, inquiring a corresponding data record in the commodity summary table according to the unique number of the target commodity, and acquiring a binary state storage identifier corresponding to the target commodity from the data record;
identifying whether the value of each digit of the storage identifier is 1 in sequence, using the bit sequence of the digit as a table serial number, and positioning and acquiring one or more collection relation tables pointed by the table serial number;
and updating the stock state/commodity price in the mapping relation data of the target commodity specified by the updating instruction in the acquired collection relation table according to the updating instruction.
In a further embodiment, the method further comprises the following steps:
responding to a deleting instruction of deleting a target commodity from the favorites of the online shop by a user, and using the rest number as a table serial number for determining a collection relation table corresponding to the table serial number according to the balance of the unique number of the user on the preset total table quantity;
deleting the mapping relation data related to the target commodity from the collection relation table;
detecting whether the total amount of the mapping relation data of the collection relation table is zero, if not, quitting, if yes, executing the following steps:
inquiring corresponding data records in a preset commodity summary table according to the uniqueness number of the target commodity, and acquiring a binary state storage identifier corresponding to the target commodity from the data records;
and setting the digit of the storage identifier corresponding to the table sequence number as a 0 value, and representing that no mapping relation data exists in the corresponding collection relation table.
In a further embodiment, the total table amount is preset to 32, 64, 128.
In a preferred embodiment, the unique number of the user is used as a table number for determining the collection relation table corresponding to the table number in the step of adding up the preset total number of tables, and the rest number is used as the table number for determining the collection relation table corresponding to the table number.
In a further embodiment, before the step of responding to the adding instruction of the target commodity to the favorite of the online shop, the adding instruction is received by being called by the third-party platform server through a pre-provided calling interface.
In a preferred embodiment, the unique number of the user is a pure numeric number or an expression convertible into a pure numeric number for performing the remainder operation.
A user favorite access device adapted for the purpose of the present application, comprising:
an instruction response unit, which is used for responding to an adding instruction of a user for adding a target commodity to a favorite of an online shop, and constructing mapping relation data between the unique number of the user and the unique number of the target commodity as well as the stock state/commodity price of the target commodity;
the table determining unit is used for measuring the surplus of the unique number of the user to the total amount of the preset table, using the surplus number as a table serial number to determine a collection relation table corresponding to the table serial number, and storing the mapping relation data into the collection relation table;
the record storage unit is used for inquiring corresponding data records in a preset commodity summary table according to the uniqueness number of the target commodity, and acquiring a binary state storage identifier corresponding to the target commodity from the data records, wherein the storage identifier takes the total amount of the tables as the total length, and each bit of the binary state storage identifier is used for indicating whether one collection relation table corresponding to the sequence is a null value or not;
and the collection mapping unit is used for setting a binary bit corresponding to the bit sequence and the table sequence number in the storage identifier as 1 and representing that the corresponding collection relation table stores mapping relation data.
An electronic device adapted for the purpose of the present application comprises a central processing unit and a memory, wherein the central processing unit is used for calling and running a computer program stored in the memory to execute the steps of the user favorite access method.
The non-volatile storage medium stores a computer program implemented according to the user favorite access method, and when the computer program is called by a computer, the computer program executes the steps included in the corresponding method.
Compared with the prior art, the application has the following advantages:
firstly, the method and the system realize the efficient positioning of the favorite relation table of the user by constructing the surplus positioning function for the server. The server responds to an adding instruction sent by a user and used for adding the target commodity into the favorite, mapping relation data containing the unique numbers of the user and the target commodity, the stock state of the target commodity and the commodity price is constructed for the user, and a table serial number is obtained by carrying out remainder operation on the unique number of the user and the table total amount, so that a collection relation table used for storing the mapping relation data is determined according to the table serial number. Through the logic, the server can determine the collection relation table associated with the user only through the remainder operation without traversing all tables to determine the table associated with the user, and compared with a mode of setting a corresponding serial number for the user to point to the corresponding table, the table positioning mode constructed through the remainder operation is beneficial to expanding the number of the tables, and is beneficial to improving the development efficiency of the favorite service.
Secondly, the method and the system realize efficient updating of the inventory state and the commodity price of the commodity in the favorite relation table by constructing a binary identification positioning function for the server. The server inquires a data record of a target commodity in a preset video summary table according to the unique number of the target commodity pointed by an adding instruction of a user, acquires a binary state storage identifier corresponding to the target commodity from the data record, and indicates that mapping relation data corresponding to the target commodity is stored in a favorite relation table corresponding to the table serial number by modifying the median of the binary state storage identifier and the value of the table serial number acquired by remainder operation. Through the logic, when the server needs to update the inventory state or the commodity price of the corresponding target commodity, the mapping relation data corresponding to the target commodity in the corresponding favorite relation table can be positioned and modified only through the binary state storage identifier, the inventory state and the commodity price of the commodity in the favorite of the user are efficiently modified without traversing all tables for positioning, so that the real-time update of the commodity data in the favorite is efficiently executed, the experience of the user in using the favorite system is improved, and the GMV conversion is brought.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic diagram of a typical network deployment architecture related to implementing the technical solution of the present application;
FIG. 2 is a flowchart illustrating an exemplary embodiment of a user favorite access method of the present application;
FIG. 3 is a flowchart illustrating the subsequent steps added by an embodiment of the user favorite access method of the present application;
FIG. 4 is a schematic flowchart of the subsequent steps added to the method for accessing user favorites in another embodiment of the present application;
FIG. 5 is a functional block diagram of an exemplary embodiment of a user favorite access device of the present application;
fig. 6 is a block diagram of a basic structure of a computer device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary only for the purpose of explaining the present application and are not to be construed as limiting the present application.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
As will be appreciated by those skilled in the art, "client," "terminal," and "terminal device" as used herein include both devices that are wireless signal receivers, which are devices having only wireless signal receivers without transmit capability, and devices that are receive and transmit hardware, which have receive and transmit hardware capable of two-way communication over a two-way communication link. Such a device may include: cellular or other communication devices such as personal computers, tablets, etc. having single or multi-line displays or cellular or other communication devices without multi-line displays; PCS (Personal Communications Service), which may combine voice, data processing, facsimile and/or data communication capabilities; a PDA (Personal Digital Assistant), which may include a radio frequency receiver, a pager, internet/intranet access, a web browser, a notepad, a calendar and/or a GPS (Global Positioning System) receiver; a conventional laptop and/or palmtop computer or other device having and/or including a radio frequency receiver. As used herein, a "client," "terminal device" can be portable, transportable, installed in a vehicle (aeronautical, maritime, and/or land-based), or situated and/or configured to operate locally and/or in a distributed fashion at any other location(s) on earth and/or in space. The "client", "terminal Device" used herein may also be a communication terminal, a web terminal, a music/video playing terminal, such as a PDA, an MID (Mobile Internet Device) and/or a Mobile phone with music/video playing function, and may also be a smart tv, a set-top box, and the like.
The hardware referred to by the names "server", "client", "service node", etc. is essentially an electronic device with the performance of a personal computer, and is a hardware device having necessary components disclosed by the von-jehman principle, such as a central processing unit (including an arithmetic unit and a controller), a memory, an input device, an output device, etc., wherein a computer program is stored in the memory, and the central processing unit calls a program stored in an external memory into the internal memory to run, executes instructions in the program, and interacts with the input and output devices, thereby completing a specific function.
It should be noted that the concept of "server" as referred to in this application can be extended to the case of a server cluster. According to the network deployment principle understood by those skilled in the art, the servers should be logically divided, and in physical space, the servers may be independent from each other but can be called through an interface, or may be integrated into one physical computer or a set of computer clusters. Those skilled in the art will appreciate this variation and should not be so limited as to restrict the implementation of the network deployment of the present application.
Referring to fig. 1, the hardware basis required for implementing the related art embodiments of the present application may be deployed according to the architecture shown in the figure. The server 80 is deployed at the cloud end, and serves as a business server, and is responsible for further connecting to a related data server and other servers providing related support, so as to form a logically associated server cluster to provide services for related terminal devices, such as a smart phone 81 and a personal computer 82 shown in the figure, or a third-party server (not shown in the figure). Both the smart phone and the personal computer can access the internet through a known network access mode, and establish a data communication link with the cloud server 80 so as to run a terminal application program related to the service provided by the server.
For the server, the application program is usually constructed as a service process, and a corresponding program interface is opened for remote call of the application program running on various terminal devices.
The application program referred to in this application is generally referred to as an application program that runs on an electronic device such as a server or a terminal device, and the application program implements the related technical solution of this application in a programming manner, and a program code of the application program may be stored in a nonvolatile storage medium that can be identified by a computer in the form of a computer executable instruction, and called into a memory by a central processing unit to run, and the related apparatus of this application is constructed by running the application program on the computer.
The person skilled in the art will know this: although the various methods of the present application are described based on the same concept so as to be common to each other, they may be independently performed unless otherwise specified. In the same way, for each embodiment disclosed in the present application, it is proposed based on the same inventive concept, and therefore, concepts of the same expression and concepts of which expressions are different but are appropriately changed only for convenience should be equally understood.
In an exemplary embodiment of a user favorite access method of the present application, which is implemented as a computer program running on a server, a program interface for external invocation is opened, which can be invoked by an application program of the server or a terminal device. Referring to fig. 2, in the exemplary embodiment, the method specifically includes the following steps:
step S11, in response to an addition instruction of the user to add a target item to the favorite of the online store, constructing mapping relationship data between the unique number of the user and the unique number of the target item and the stock status/item price of the target item:
the server responds to the adding instruction sent by the user, and constructs the unique number of the user, the unique number of the target commodity pointed by the adding instruction and the mapping relation data between the stock state/commodity price of the target commodity according to the adding instruction.
The adding instruction is generated by triggering a commodity collecting event by a user, the commodity collecting event is an event generated by triggering the user through a control related to the collected commodities in a corresponding commodity page, and after the adding instruction is generated by the user, the adding instruction is sent to the server through a corresponding preset interface so that the server can execute corresponding operation according to the adding instruction.
The unique number of the user is used for representing unique identification information of the user in the server, the unique number of each user is a unique item in the server, namely the server constructs the unique number for each user sending the adding instruction, so that the server determines the corresponding user according to the unique number.
The unique number of the unique number user of the target commodity is used for representing unique identification information of the commodity in the server, the unique number of each user is a unique item in the server, namely the server is the target commodity pointed by each adding instruction, so that the server determines the corresponding target commodity according to the unique number.
The server can monitor the stock state and the commodity price of the target commodity in real time through a business server of an e-commerce platform establishing a data communication link with the server, acquire the information of the stock state and the commodity price, and construct the mapping relation data according to the stock state and the commodity price and the unique numbers of the user and the target commodity.
The mapping relation data stores the unique number of the user, the unique number of the target commodity, the stock state of the target commodity and the commodity price, so that the server can determine the target commodity of a certain user, the stock state of the target commodity and the commodity price through the preset relation data.
In one embodiment, the server receives the adding instruction sent by the user through a preset calling interface provided by the third-party platform server, so that the server deploying the user favorite access method of the application is centralized and can provide corresponding services for a plurality of third-party e-commerce platforms.
In another embodiment, the unique number constructed by the server for the user is generally a pure number or an expression convertible into a pure number, so that the server subsequently performs a remainder operation according to the unique number and the table total amount.
Step S12, the uniqueness number of the user is used for measuring the surplus of the preset total table number, the surplus number is used as the table number for determining the collection relation table corresponding to the table number, and the mapping relation data is stored into the table number:
and after the server completes the construction of the unique number of the user, carrying out remainder operation on the unique number and the preset total table amount, and taking a remainder obtained by the remainder operation as the table serial number so as to determine the collection relation table corresponding to the user according to the table serial number and store the mapping relation data of the target commodity into the collection relation table.
The total table amount refers to the number of the collection relationship tables set in the server, and the server determines the table number of the user to which the unique number belongs by performing a remainder operation on the unique number of the user and the total table amount, for example, when the unique number is 65 and the total table amount is 64, a remainder is 1 after the remainder operation, and the remainder is the table number of the user.
It can be understood that the uniqueness number of the user constructed by the server is generally greater than the total amount of the table, and after the remainder operation, the table numbers of two or more users may be the same table number, that is, the collection relation table may store the mapping relation data of the target goods of multiple users, and determine the mapping relation data of the user (target goods) stored in the table according to the uniqueness number of the user (target goods) in each mapping relation.
In one embodiment, the table name of the collection relationship table includes the corresponding table serial number, and the server determines the corresponding collection relationship table by using the remainder as the table serial number after performing the remainder operation according to the uniqueness number and the total table amount of the user.
In one embodiment, the total amount of the tables can be preset to be 32, 64 or 128, and the number of the collection relation tables stored in the server is generally 32, 64 or 128, so as to normalize the number of the collection relation tables in the server and facilitate maintenance of each of the relation tables in the server.
Step S13, querying a corresponding data record in a preset commodity summary table according to the unique number of the target commodity, and obtaining a binary state storage identifier corresponding to the target commodity from the data record, where the storage identifier takes the total amount of the tables as a total length, and each bit of the storage identifier is used to indicate whether a collection relation table corresponding in sequence is a null value:
and the server inquires the data record of the target commodity in a preset commodity summary table according to the unique number of the target commodity and acquires the binary storage identifier corresponding to the target commodity from the data record.
The storage identifier is formed in a form of a binary character string, the length of the storage identifier is the total amount of the table, each character in the character string corresponds to a table serial number of the collection relation table in sequence, and a value of each character is used for indicating whether a target commodity corresponding to the storage identifier is stored in the collection relation table corresponding to the character string, for example, when a first character of the storage identifier of the target commodity is 1, the storage identifier of the target commodity indicates that one or more mapping relation data corresponding to the target commodity is stored in the collection relation table with the table serial number of 1, and if the character is 0, the storage identifier of the target commodity indicates that the mapping relation data corresponding to the target commodity is not stored in the collection relation table with the table serial number of 1.
The data records of a plurality of commodities of a third-party platform establishing a data communication link with the server are stored in the commodity summary table, and each data record carries the unique number of the commodity to which the data record belongs, so that the server can inquire the data record of the target commodity in the commodity summary table according to the unique number of the target commodity.
The data record comprises the storage identification and the uniqueness number of the corresponding commodity, so that the server can query the data record corresponding to the target commodity in the commodity summary table according to the uniqueness number of the target commodity and acquire the storage identification from the data record.
Step S14, setting the binary digit corresponding to the table sequence number in the storage identifier as 1, and is used to characterize that the corresponding collection relationship table stores mapping relationship data:
after the server obtains the storage identifier of the target commodity, the binary bit corresponding to the bit sequence of the storage identifier and the table serial number is set to be 1 according to the table serial number determined through the remainder operation, so as to identify that the mapping relation data corresponding to the target commodity is stored in the collection relation table corresponding to the table serial number.
And after the server finishes the modification of the storage identifier of the target commodity, sending a notification message for representing the successful collection of the target commodity to the user to which the adding instruction belongs so as to notify the user that the target commodity is successfully submitted.
The above exemplary embodiments and variations thereof fully disclose embodiments of the user's favorite access method of the present application, but many variations of the method can be deduced by transforming and augmenting some technical means, and other embodiments are summarized as follows:
in one embodiment, the server may respond to an update command from the online store to update the stock status/price of the product pointed by the command, referring to fig. 3, the specific implementation steps are as follows:
step S15, in response to the update instruction of the online shop to update the inventory status/price of the target product, querying a corresponding data record in the product summary table according to the unique number of the target product, and acquiring the binary status storage identifier corresponding to the target product from the data record:
the server responds to the updating instruction sent by the online shop, inquires the data record of the target commodity in the commodity summary table according to the unique number of the target commodity pointed by the updating instruction, and acquires the binary state storage identifier corresponding to the target commodity from the data record.
The updating instruction is generated by an updating event of the inventory state or the commodity price of the target commodity corresponding to the on-line shop trigger relationship, and is sent to the server through the corresponding preset interface, so that the server responds to the updating instruction to perform the corresponding updating operation of the target commodity.
Step S16, sequentially identifying whether the value of each digit of the storage identifier is 1, and positioning and acquiring one or more collection relation tables pointed by the table serial number by using the digit sequence as the table serial number:
the server determines one or more binary digits with the value of 1 according to the values of the digits in the storage identification of the target commodity, and determines the corresponding table serial number according to the binary digits so as to determine the corresponding collection relation table through one or more table serial numbers.
Step S17, the stock status/item price in the mapping relationship data between the acquired collection relationship table and the target item specified by the update instruction is updated according to the update instruction:
and after the server finishes the positioning of the collection relation table, replacing the stock state (commodity price) in the mapping relation data between the collection relation table and the target commodity according to the stock state (commodity price) data of the target commodity contained in the updating instruction.
In another embodiment, the server may respond to a deletion instruction of the user to delete the corresponding mapping relationship data in the collection relationship table, please refer to fig. 4, which includes the following specific implementation steps:
step S15', in response to a delete instruction for the user to delete the target product from the favorites of the online store, taking the remaining number as a table number for determining the collection relationship table corresponding to the table number, based on the total amount of the table sum preset by the unique number of the user:
and the server responds to the deletion instruction sent by the user, performs remainder operation according to the uniqueness number of the user pointed by the deletion instruction and the table total amount to obtain the table serial number, and determines the corresponding collection relation table according to the table serial number.
The deleting instruction is generated by a deleting event that a user triggers to delete the corresponding target commodity in the favorite of the online shop, and the deleting instruction is sent to the server through a preset interface, so that the server needs the deleting instruction to execute the required target commodity deleting operation.
Step S16', the mapping relationship data relating to the target product is deleted from the collection relationship table:
and after determining the collection relation table, the server deletes the mapping relation data of the target commodity pointed by the deletion instruction in the collection relation table.
And after the server finishes deleting the mapping relation data, sending a notification message for representing that the target commodity collection is successfully deleted to the user to which the deletion instruction belongs, so that the user can determine that the target commodity specified by the user is deleted in the favorite through the notification message.
Step S17', detecting whether the total amount of mapping relationship data of the collection relationship table is zero, if not, exiting, if yes, executing the following steps:
and after the server finishes deleting the preset relationship data of the target commodity, detecting the quantity of the mapping relationship data corresponding to the target commodity stored in the collection relationship table, if the mapping relationship data of one or more target commodities are still stored in the collection relationship table, quitting the detection, and if the preset relationship data of the target commodity does not exist in the collection relationship table, executing the subsequent steps.
Step S18', according to the unique number of the target commodity, querying a corresponding data record in a preset commodity summary table, and acquiring a binary state storage identifier corresponding to the target commodity from the data record:
and the server inquires the data record of the target commodity in the commodity summary table according to the unique number of the target commodity and acquires the binary state storage identifier corresponding to the target commodity from the data record.
Step S19', the digit of the storage identifier corresponding to the table sequence number is set to 0 value, which is used to characterize the data without mapping relationship in the corresponding collection relationship table:
and the server sets the digit corresponding to the table serial number in the storage identifier of the target commodity to 0 according to the table serial number of the collection relation table so as to identify that the mapping relation data corresponding to the target commodity is not stored in the collection relation table corresponding to the table serial number.
Further, a user favorite access device of the present application can be constructed by functionalizing the steps in the method disclosed in the above embodiments, according to this idea, please refer to fig. 5, wherein in an exemplary embodiment, the device includes: the device comprises an instruction response unit 11, a table determination unit 12, a record storage unit 13 and a collection mapping unit 14. The instruction response unit 11 is used for responding to an adding instruction of a user for adding a target commodity to a favorite of an online shop, and constructing mapping relation data between a unique number of the user and the target commodity and between the stock state/commodity price of the target commodity; the table determining unit 12 is configured to take the uniqueness number of the user as a remainder of a preset total table amount, use the remainder as a table serial number to determine a collection relationship table corresponding to the table serial number, and store the mapping relationship data into the collection relationship table; the record storage unit 13 is configured to query a corresponding data record in a preset commodity summary table according to the unique number of the target commodity, and obtain a binary state storage identifier corresponding to the target commodity from the data record, where the storage identifier takes the total amount of the tables as a total length, and each bit of the storage identifier is used to indicate whether one collection relation table corresponding to the target commodity in sequence is a null value; and the collection mapping unit 14 is configured to set a binary bit corresponding to the table sequence number in the storage identifier to 1, and is configured to represent that mapping relationship data is stored in the corresponding collection relationship table.
In order to solve the above technical problem, an embodiment of the present application further provides a computer device, configured to run a computer program implemented according to the user favorite access method. Referring to fig. 6, fig. 6 is a block diagram of a basic structure of a computer device according to the present embodiment.
As shown in fig. 6, the internal structure of the computer device is schematically illustrated. The computer device includes a processor, a non-volatile storage medium, a memory, and a network interface connected by a system bus. The non-volatile storage medium of the computer device stores an operating system, a database and computer readable instructions, the database can store control information sequences, and the computer readable instructions can enable the processor to realize a user favorite access method when being executed by the processor. The processor of the computer device is used for providing calculation and control capability and supporting the operation of the whole computer device. The memory of the computer device may have stored therein computer readable instructions that, when executed by the processor, may cause the processor to perform a user favorite access method. The network interface of the computer device is used for connecting and communicating with the terminal. Those skilled in the art will appreciate that the architecture shown in fig. 6 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In this embodiment, the processor is configured to execute specific functions of each module/sub-module in the user favorite access device of the present invention, and the memory stores program codes and various data required for executing the modules. The network interface is used for data transmission to and from a user terminal or a server. The memory in this embodiment stores program codes and data required for executing all modules/submodules in the user favorite access device, and the server can call the program codes and data of the server to execute the functions of all the submodules.
The present application also provides a non-volatile storage medium, wherein the user favorite access method is written as a computer program and stored in the storage medium in the form of computer readable instructions, which when executed by one or more processors means the execution of the program in a computer, thereby causing the one or more processors to perform the steps of any of the above-described user favorite access methods.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and can include the processes of the embodiments of the methods described above when the computer program is executed. The storage medium may be a non-volatile storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM).
In summary, the method and the device for updating the storage state of the target commodity in the user favorite efficiently locate the collection relation table of the user by constructing the surplus locating and binary system identification locating capabilities for the server and record the collection relation table stored by the mapping relation data corresponding to the target commodity through the binary system state storage identification, so that the real-time updating of the storage state and the commodity price of the target commodity in the user favorite is realized, the user experience of using the favorite is improved, and the GMV conversion rate is further improved.
It should be understood that, although the steps in the flowcharts of the figures are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and may be performed in other orders unless explicitly stated herein. Moreover, at least a portion of the steps in the flow chart of the figure may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed alternately or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
Those of skill in the art will appreciate that the various operations, methods, steps in the processes, acts, or solutions discussed in this application can be interchanged, modified, combined, or eliminated. Further, other steps, measures, or schemes in various operations, methods, or flows that have been discussed in this application can be alternated, altered, rearranged, broken down, combined, or deleted. Further, steps, measures, schemes in the prior art having various operations, methods, procedures disclosed in the present application may also be alternated, modified, rearranged, decomposed, combined, or deleted.
The foregoing is only a partial embodiment of the present application, and it should be noted that, for those skilled in the art, several modifications and decorations can be made without departing from the principle of the present application, and these modifications and decorations should also be regarded as the protection scope of the present application.
Claims (10)
1. A user favorite access method is characterized by comprising the following steps:
responding to an adding instruction of a user for adding a target commodity to a favorite of an online shop, and constructing mapping relation data between a unique number of the user, the unique number of the target commodity and stock state/commodity price of the target commodity;
the uniqueness number of the user is used for measuring the surplus of the preset total form quantity, the surplus number is used as a form serial number for determining a collection relation form corresponding to the form serial number, and the mapping relation data is stored into the collection relation form;
inquiring corresponding data records in a preset commodity summary table according to the uniqueness number of the target commodity, and acquiring a binary state storage identifier corresponding to the target commodity from the data records, wherein the total length of the storage identifier is the total length of the table, and each bit of the storage identifier is used for indicating whether a collection relation table corresponding to the sequence is a null value or not;
and setting the binary bit corresponding to the bit sequence and the table sequence number in the storage identifier as 1, and being used for representing that the corresponding collection relation table stores mapping relation data.
2. The method of claim 1, further comprising the steps of:
responding to an update instruction of an online shop for updating the stock state/commodity price of a target commodity, inquiring a corresponding data record in the commodity summary table according to the unique number of the target commodity, and acquiring a binary state storage identifier corresponding to the target commodity from the data record;
identifying whether the value of each digit of the storage identifier is 1 in sequence, using the bit sequence of the digit as a table serial number, and positioning and acquiring one or more collection relation tables pointed by the table serial number;
and updating the stock state/commodity price in the mapping relation data of the target commodity specified by the updating instruction in the acquired collection relation table according to the updating instruction.
3. The method of claim 1, further comprising the steps of:
responding to a deleting instruction of deleting a target commodity from the favorites of the online shop by a user, and using the rest number as a table serial number for determining a collection relation table corresponding to the table serial number according to the balance of the unique number of the user on the preset total table quantity;
deleting the mapping relation data related to the target commodity from the collection relation table;
detecting whether the total amount of the mapping relation data of the collection relation table is zero, if not, quitting, if yes, executing the following steps:
inquiring corresponding data records in a preset commodity summary table according to the uniqueness number of the target commodity, and acquiring a binary state storage identifier corresponding to the target commodity from the data records;
and setting the digit of the storage identifier corresponding to the table sequence number as a 0 value, and representing that no mapping relation data exists in the corresponding collection relation table.
4. A method according to any one of claims 1 to 3, characterized in that the table total is preset to 32, 64, 128.
5. The method according to any one of claims 1 to 3, wherein the step of adding the unique number of the user to the total number of the preset tables and using the rest number as the table number for determining the collection relation table corresponding to the table number, wherein the table name of the collection relation table includes the corresponding table number, and after the adding operation is performed, the collection relation table is determined by using the remainder as the table number.
6. The method as claimed in any one of claims 1 to 3, wherein the step of responding to the adding instruction of the target commodity to the favorite of the online shop by the user is preceded by receiving the adding instruction by being called by the third party platform server through a pre-provided calling interface.
7. A method according to any one of claims 1 to 3, wherein the user's unique number is a pure numeric number or an expression convertible to a pure numeric number for performing the remainder operation.
8. A user favorite access device, comprising:
an instruction response unit, which is used for responding to an adding instruction of a user for adding a target commodity to a favorite of an online shop, and constructing mapping relation data between the unique number of the user and the unique number of the target commodity as well as the stock state/commodity price of the target commodity;
the table determining unit is used for measuring the surplus of the unique number of the user to the total amount of the preset table, using the surplus number as a table serial number to determine a collection relation table corresponding to the table serial number, and storing the mapping relation data into the collection relation table;
the record storage unit is used for inquiring corresponding data records in a preset commodity summary table according to the uniqueness number of the target commodity, and acquiring a binary state storage identifier corresponding to the target commodity from the data records, wherein the storage identifier takes the total amount of the tables as the total length, and each bit of the binary state storage identifier is used for indicating whether one collection relation table corresponding to the sequence is a null value or not;
and the collection mapping unit is used for setting a binary bit corresponding to the bit sequence and the table sequence number in the storage identifier as 1 and representing that the corresponding collection relation table stores mapping relation data.
9. An electronic device comprising a central processor and a memory, wherein the central processor is configured to invoke execution of a computer program stored in the memory to perform the steps of the method according to any one of claims 1 to 7.
10. A non-volatile storage medium, characterized in that it stores, in the form of computer-readable instructions, a computer program implemented according to the method of any one of claims 1 to 7, which, when invoked by a computer, performs the steps comprised by the method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110177163.7A CN112861036B (en) | 2021-02-07 | 2021-02-07 | User favorites access method and device, equipment and medium thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110177163.7A CN112861036B (en) | 2021-02-07 | 2021-02-07 | User favorites access method and device, equipment and medium thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112861036A true CN112861036A (en) | 2021-05-28 |
CN112861036B CN112861036B (en) | 2024-08-06 |
Family
ID=75989476
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110177163.7A Active CN112861036B (en) | 2021-02-07 | 2021-02-07 | User favorites access method and device, equipment and medium thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112861036B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001325336A (en) * | 2000-05-17 | 2001-11-22 | Nec Corp | Settlement inventory method and system, host processor, and information storage medium |
WO2007002754A2 (en) * | 2005-06-27 | 2007-01-04 | Namx, Inc. | System and method for tangible good valuation |
CN105824829A (en) * | 2015-01-06 | 2016-08-03 | 中国移动通信集团浙江有限公司 | Compression method, uncompressing method and apparatus for order history |
US20170008162A1 (en) * | 2015-05-26 | 2017-01-12 | Kabushiki Kaisha Toshiba | Electronic appliance control method and electronic appliance control device |
CN111787099A (en) * | 2020-06-30 | 2020-10-16 | 北京金山安全软件有限公司 | Data base dividing method and device for multi-user application, electronic equipment and storage medium |
US20200379787A1 (en) * | 2018-04-20 | 2020-12-03 | Facebook, Inc. | Assisting Users with Personalized and Contextual Communication Content |
-
2021
- 2021-02-07 CN CN202110177163.7A patent/CN112861036B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2001325336A (en) * | 2000-05-17 | 2001-11-22 | Nec Corp | Settlement inventory method and system, host processor, and information storage medium |
WO2007002754A2 (en) * | 2005-06-27 | 2007-01-04 | Namx, Inc. | System and method for tangible good valuation |
CN105824829A (en) * | 2015-01-06 | 2016-08-03 | 中国移动通信集团浙江有限公司 | Compression method, uncompressing method and apparatus for order history |
US20170008162A1 (en) * | 2015-05-26 | 2017-01-12 | Kabushiki Kaisha Toshiba | Electronic appliance control method and electronic appliance control device |
US20200379787A1 (en) * | 2018-04-20 | 2020-12-03 | Facebook, Inc. | Assisting Users with Personalized and Contextual Communication Content |
CN111787099A (en) * | 2020-06-30 | 2020-10-16 | 北京金山安全软件有限公司 | Data base dividing method and device for multi-user application, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN112861036B (en) | 2024-08-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107943594A (en) | Data capture method and device | |
CN105656663A (en) | Software update method and device | |
US20080249994A1 (en) | System and process for server side stateless data interchange | |
CN101673217B (en) | Method for realizing remote program call and system thereof | |
CN113961643A (en) | Search engine updating method and device, equipment, medium and product thereof | |
CN113793182A (en) | Commodity object recommendation method and device, equipment, medium and product thereof | |
KR20210007155A (en) | Network server to manage user subscription and method of operating thereof | |
CN107844488A (en) | Data query method and apparatus | |
CN114218156A (en) | Data export method, data export device, computer equipment and storage medium | |
CN102103606A (en) | Technology for realizing advanced search of commodities on mobile phone client | |
CN112488803A (en) | Favorite storage access method and device, equipment and medium thereof | |
CN113342866B (en) | Keyword updating method and device, computer equipment and storage medium | |
CN112966188B (en) | Method, device, equipment and medium for updating state of collection commodity | |
CN112861036B (en) | User favorites access method and device, equipment and medium thereof | |
CN113672648B (en) | Rule engine data call control and execution method and device, equipment and medium thereof | |
CN112801641B (en) | Payment gateway purchase limiting control method and device, equipment and medium thereof | |
CN114647702A (en) | Data synchronous processing method and device, equipment and medium thereof | |
US8073796B2 (en) | Obtaining a value via a rule engine implemented by a collection object | |
CN112862500A (en) | Dynamic assembling method for user interest processor, device, equipment and medium thereof | |
CN114443098A (en) | Model deployment updating processing method and device, equipment, medium and product thereof | |
CN112561597A (en) | Information configuration control method, device, equipment and medium thereof | |
CN112883300B (en) | Function label customizing method and device, equipment and medium thereof | |
CN112819521A (en) | Consumption rights and interests multi-rule matching method and device, equipment and medium thereof | |
CN112819519B (en) | Member rule batch processing method and device, equipment and medium thereof | |
CN113672371B (en) | Task engine execution method and device, equipment and medium thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |