CN112561654A - Commodity adding method and device, computer equipment and readable storage medium - Google Patents

Commodity adding method and device, computer equipment and readable storage medium Download PDF

Info

Publication number
CN112561654A
CN112561654A CN202011521661.0A CN202011521661A CN112561654A CN 112561654 A CN112561654 A CN 112561654A CN 202011521661 A CN202011521661 A CN 202011521661A CN 112561654 A CN112561654 A CN 112561654A
Authority
CN
China
Prior art keywords
commodity
information
customization
identification
user
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
CN202011521661.0A
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.)
Hangzhou Beidu Technology Co ltd
Original Assignee
Hangzhou Beidu Technology 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 Hangzhou Beidu Technology Co ltd filed Critical Hangzhou Beidu Technology Co ltd
Priority to CN202011521661.0A priority Critical patent/CN112561654A/en
Publication of CN112561654A publication Critical patent/CN112561654A/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/0621Item configuration or customization
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0633Lists, e.g. purchase orders, compilation or processing
    • G06Q30/0635Processing of requisition or of purchase orders

Abstract

The application relates to a commodity adding method, a commodity adding device, a computer device and a readable storage medium, wherein the method comprises the following steps: acquiring commodity customization information of a user, wherein the commodity customization information comprises customization parameters, a commodity ID and commodity information; acquiring a commodity identification based on the commodity customization information, and storing the commodity customization information into a local database based on the commodity identification, wherein the commodity identification points to a first storage position in the local database; receiving synchronous updating information, wherein the synchronous updating information comprises information of successful login of a user; and acquiring a commodity identification based on the synchronous updating information, and synchronously updating the commodity customization information from the local database to a user login account in the server based on the commodity identification. Through the method and the device, the problem that the user can add the commodity to the shopping cart only by logging in the related technology is solved.

Description

Commodity adding method and device, computer equipment and readable storage medium
Technical Field
The application relates to the technical field of internet of things, in particular to a commodity adding method and device, computer equipment and a readable storage medium.
Background
With the rapid development of the internet, online shopping is more and more appeared in the life of people, and the heart-shaped goods can be purchased without going out, which brings great convenience to the life of people. While online shopping is rapidly popularized, various shopping websites and shopping APPs are promoted. All be provided with virtual shopping cart in a lot of shopping websites and shopping APP to the user can deposit the commodity of selecting to virtual shopping cart in, selects to purchase the placing order according to the wish again. Therefore, how to improve the convenience of the virtual shopping cart becomes one of the technical problems to be solved urgently by those skilled in the art.
In the related art, only the viewed article can be added to the shopping cart in the case where the user logs in, and only the article can be viewed in the case where the user does not log in, and the viewed article cannot be added to the shopping cart.
At present, no effective solution is provided for the problem that in the related art, a user must log in to add a commodity to a shopping cart.
Disclosure of Invention
The embodiment of the application provides a commodity adding method, a commodity adding device, computer equipment and a readable storage medium, and aims to at least solve the problem that in the related art, a user needs to log in to add a commodity to a shopping cart.
In a first aspect, an embodiment of the present application provides a commodity adding method, including:
the method comprises the steps of obtaining commodity customization information of a user, wherein the commodity customization information comprises customization parameters, commodity IDs and commodity information;
acquiring a commodity identification based on the commodity customization information, and storing the commodity customization information into a local database based on the commodity identification, wherein the commodity identification points to a first storage position in the local database;
receiving synchronous updating information, wherein the synchronous updating information comprises information of successful login of a user;
and acquiring the commodity identification based on the synchronous updating information, and synchronously updating the commodity customization information from the local database to a user login account in a server based on the commodity identification.
In some embodiments, storing the merchandise customization information in a local database based on the merchandise identification comprises:
locating a first storage location in the local database based on the merchandise identification;
and storing the commodity customization information to the first storage position by taking the commodity identification as a name and the commodity customization information as content.
In some of these embodiments, the customization parameters include at least a customization number, a customization garment type, a collar shape, a button type, and whether to embroider.
In some embodiments, before the obtaining the commodity customization information of the user, the method further includes:
obtaining user customization request information, wherein the user customization request information comprises information of a user entering a customization interface;
acquiring a commodity ID based on the user customization request information, and generating the commodity identification based on the commodity ID;
and binding the commodity identification with a first storage position in the local database.
In some of these embodiments, said generating said item identification based on said item ID comprises:
and acquiring the current time and random parameters, and generating the commodity identification based on the current time, the random parameters and the commodity ID.
In some embodiments, the obtaining of the merchandise identification based on the merchandise customization information includes: and acquiring the commodity identification based on the commodity ID in the commodity customization information.
In some embodiments, the obtaining the article identifier based on the article ID in the article customization information includes:
finding the commodity identification based on the commodity ID in the commodity customization information, wherein the commodity identification generated based on the commodity ID is stored in a first data cache region, and the obtained commodity customization information of the user is stored in a second data cache region;
transcoding and splicing the commodity identification based on a preset transcoding function and a preset transfer parameter to obtain a target character string;
transmitting the target character string from the first data cache region to the second data cache region where the commodity customization information is located;
and decoding and restoring the target character string based on a preset decoding function and a preset restoring rule to obtain the commodity identification.
In a second aspect, an embodiment of the present application provides a commodity adding apparatus, including:
the data acquisition module is used for acquiring commodity customization information of a user, wherein the commodity customization information comprises customization parameters, a commodity ID and commodity information;
the local storage module is used for acquiring a commodity identification based on the commodity customization information and storing the commodity customization information into a local database based on the commodity identification, wherein the commodity identification points to a first storage position in the local database;
the data receiving module is used for receiving synchronous updating information, and the synchronous updating information comprises information that a user successfully logs in;
and the synchronous updating module is used for acquiring the commodity identification based on the synchronous updating information and synchronously updating the commodity customization information from the local database to a user login account in the server based on the commodity identification.
In a third aspect, an embodiment of the present application provides a computer device, which includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the computer program, the article adding method according to the first aspect is implemented.
In a fourth aspect, the present application provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the article adding method according to the first aspect.
Compared with the related art, the commodity adding method, the commodity adding device, the computer equipment and the readable storage medium provided by the embodiment of the application have the advantages that the commodity customization information of a user is obtained, and the commodity customization information comprises customization parameters, commodity IDs and commodity information; acquiring a commodity identification based on the commodity customization information, and storing the commodity customization information into a local database based on the commodity identification, wherein the commodity identification points to a first storage position in the local database; receiving synchronous updating information, wherein the synchronous updating information comprises information of successful login of a user; and acquiring a commodity identification based on the synchronous updating information, and synchronously updating the commodity customization information from the local database to a user login account in the server based on the commodity identification, so that the problem that the user can add the commodity to the shopping cart only by logging in the related technology is solved.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a commodity addition method according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating the generation of a product identifier based on a product ID according to an embodiment of the present application;
fig. 3 is a flowchart of acquiring a product identifier based on a product ID in product customization information according to an embodiment of the present application;
fig. 4 is a flowchart of a commodity adding method according to a first embodiment of the present application;
fig. 5 is a flowchart of a product adding method according to a second embodiment of the present application;
fig. 6 is a block diagram showing a structure of a product adding apparatus according to an embodiment of the present application;
fig. 7 is a schematic hardware configuration diagram of a commodity adding apparatus according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application.
It is obvious that the drawings in the following description are only examples or embodiments of the present application, and that it is also possible for a person skilled in the art to apply the present application to other similar contexts on the basis of these drawings without inventive effort. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. One of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein can be combined with other embodiments without conflict.
Unless defined otherwise, technical or scientific terms referred to herein shall have the ordinary meaning as understood by those of ordinary skill in the art to which this application belongs. Reference to "a," "an," "the," and similar words throughout this application are not to be construed as limiting in number, and may refer to the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or elements, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as referred to herein means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
The various techniques described herein may be applied, but are not limited to, various merchandise customization systems, platforms, and devices, and various shopping systems, platforms, and devices.
In view of the problem that a user must log in to add a product to a shopping cart in the related art, the present application provides a product adding method applied to a local processor, and fig. 1 is a flowchart of a product adding method according to an embodiment of the present application, and as shown in fig. 1, the flowchart includes the following steps:
step S110, obtaining commodity customization information of a user, wherein the commodity customization information comprises customization parameters, commodity IDs and commodity information.
The commodity ID represents a unique code of the commodity, and the commodity ID may be a commodity number formed by multiple numbers, letters, special symbols, or a combination thereof, or may be a commodity detail page address searched by an engine.
And step S120, acquiring a commodity identification based on the commodity customization information, and storing the commodity customization information into a local database based on the commodity identification, wherein the commodity identification points to a first storage position in the local database.
The commodity identification has the functions of uniquely identifying the customized commodity and storing the orientation. For example, the commodity identifier may be associated or bound with the first storage location in the local database, so that the first storage location in the local database may be found based on the commodity identifier. For another example, the product identifier may be used as a storage location number of the first storage location in the local database, and the first storage location in the local database may also be found based on the product identifier. The embodiment is not limited as long as the function that the commodity identification points to the first storage position in the local database can be realized.
Step S130, receiving the synchronization update information, where the synchronization update information includes information that the user successfully logs in.
The information that the user successfully logs in indicates information that the user successfully logs in the user login account of the server.
And step S140, acquiring a commodity identification based on the synchronous updating information, and synchronously updating the commodity customization information from the local database to a user login account in the server based on the commodity identification.
Specifically, after the user selects the customization parameters of the customized commodity, the local processor obtains the commodity customization information corresponding to the customized commodity and obtains the commodity identification corresponding to the customized commodity, so that the commodity customization information is stored in the local database based on the commodity identification. And after the user successfully logs in, the local processor acquires the commodity identification corresponding to the customized commodity based on the synchronous updating information, and synchronously updates the commodity customized information from the local database to the user login account in the server based on the commodity identification.
Through the steps S110 to S140, the commodity customization information of the user is obtained, where the commodity customization information includes customization parameters, a commodity ID, and commodity information; acquiring a commodity identification based on the commodity customization information, and storing the commodity customization information into a local database based on the commodity identification, wherein the commodity identification points to a first storage position in the local database; receiving synchronous updating information, wherein the synchronous updating information comprises information of successful login of a user; and acquiring a commodity identification based on the synchronous updating information, and synchronously updating the commodity customization information from the local database to a user login account in the server based on the commodity identification. According to the method and the system, the commodity customization information is stored in the local database based on the commodity identification before the user logs in, and the commodity customization information is synchronously updated to the user login account in the server from the local database after the user logs in, so that the function that the user can add commodities to the shopping cart without logging in is realized, and the problem that the user can add commodities to the shopping cart only by logging in is solved.
In some of these embodiments, step S120 includes: based on the commodity identification, positioning to a first storage position in a local database; and storing the commodity customization information to a first storage position by taking the commodity identification as a name and the commodity customization information as content.
Further, the data format of the commodity customization information may be a JSON format, or may be other data formats, which is not limited in this embodiment.
Further, the step of storing the commodity customization information to the first storage location with the commodity identification as a name and the commodity customization information as a content includes: and storing the commodity identification and the commodity customization information to a first storage position in a data storage format of a KEY Value pair by taking the commodity identification as a KEY (KEY) and the commodity customization information as a Value (Value).
In some of these embodiments, the customization parameters include at least a customization number, a customization garment type, a collar shape, a button type, and whether or not to embroider.
Further, the customized parameters also include customized garment color and customized garment size.
In addition, in the related art, when the user does not log in, adding a product to the shopping cart is prone to error, specifically, in the same browser, a product a and a product B which are different from each other are opened in sequence, when the product a is opened, the information of the product a being browsed is information of the product a, and when the product B is opened, the information of the product B is information of the product a being browsed instead of the information of the product a. In this case, even if the article is added to the interface of the article a, only the article B can be added to the shopping cart, which causes a problem that an error is likely to occur when the article is added to the shopping cart.
In some embodiments, fig. 2 is a flowchart of generating a product identifier based on a product ID in the embodiment of the present application, and as shown in fig. 2, the flowchart includes the following steps:
step S210, obtaining the user customizing request information, wherein the user customizing request information comprises the information of the user entering the customizing interface.
The customized interface is an interface for a user to select customized parameters, for example, when the user shops in an online shop, the user selects the size, model and color of a commodity according to actual requirements on a customized page for the commodity of a mood tester, and the customized page is equivalent to a shopping page on a shopping website.
Step S220, a product ID is obtained based on the user customization request information, and a product identifier is generated based on the product ID.
The commodity identification also has the function of commodity tracking, for example, the processing state of the customized commodity can be tracked based on the commodity identification, so that the problem that the currently tracked target commodity is lost, and other commodities are mistakenly purchased in the shopping cart is solved.
Further, the user-customized request information further includes an article ID. And acquiring the commodity ID from the user customization request information, and generating a commodity identification based on the commodity ID.
Step S230, the product identifier is bound with the first storage location in the local database.
Specifically, when a user clicks to enter a customization interface, the local processor acquires a commodity ID corresponding to a customized commodity based on user customization request information, generates a commodity identifier based on the commodity ID, and binds the commodity identifier with a first storage position in the local database.
Through the steps S210 to S230, obtaining user customization request information, where the user customization request information includes information that a user enters a customization interface; acquiring a commodity ID based on the user customization request information, and generating a commodity identification based on the commodity ID; and binding the commodity identification with a first storage position in a local database. The commodity identification is generated based on the commodity ID, unique identification of the customized commodity is achieved, and then the commodity processing state can be tracked based on the commodity identification in the follow-up process. In addition, this embodiment binds the commodity sign with first memory location in the local database to in the follow-up first memory location based on commodity sign location, thereby can realize very conveniently accessing commodity customization information, improved data processing efficiency and commodity and purchased efficiency.
Further, the step S230 includes: the processing authority of a first storage position in a local database is acquired, an empty data line is created in the first storage position, and the commodity identification is used as the number of the data line, so that the commodity identification is bound with the first storage position in the local database.
In some embodiments, the step of generating the product identifier based on the product ID includes: and acquiring the current time and the random parameter, and generating a commodity identification based on the current time, the random parameter and the commodity ID.
The current time and the random parameters are obtained through the embodiment, the commodity identification is generated based on the current time, the random parameters and the commodity ID, and the two parameters of the current time and the random parameters are increased when the commodity identification is generated, so that the problem that corresponding commodity identification is repeated when the same commodity appears in the commodity customization information for many times can be solved.
In some embodiments, the step of obtaining the product identifier includes: and acquiring the commodity identification based on the commodity ID in the commodity customization information.
In some embodiments, fig. 3 is a flowchart of acquiring a product identifier based on a product ID in product customization information according to an embodiment of the present application, and as shown in fig. 3, the flowchart includes the following steps:
step S310, finding out a commodity identification based on the commodity ID in the commodity customization information, wherein the commodity identification generated based on the commodity ID is stored in a first data cache area, and the obtained commodity customization information of the user is stored in a second data cache area.
And S320, carrying out transcoding splicing processing on the commodity identification based on a preset transcoding function and a preset transfer parameter to obtain a target character string.
Further, transcoding the commodity identification based on a preset transcoding function to obtain a transcoded first character string, and splicing the preset transfer parameter and the first character string to obtain a target character string.
Wherein, the first character string after transcoding processing is a stack of random codes, for example: % E8% BD% AC% E.
Step S330, the target character string is transmitted from the first data cache region to a second data cache region where the commodity customization information is located.
And step S340, decoding and reducing the target character string based on a preset decoding function and a preset reduction rule to obtain a commodity identifier.
Further, a first character string is extracted from the target character string, the first character string is decoded based on a preset decoding function to obtain a commodity identifier, and the preset transcoding function corresponds to the preset decoding function.
Through the steps S310 to S340, the commodity identifier is found based on the commodity ID in the commodity customization information, wherein the commodity identifier generated based on the commodity ID is stored in the first data cache region, and the obtained commodity customization information of the user is stored in the second data cache region; carrying out transcoding splicing processing on the commodity identification based on a preset transcoding function and a preset transfer parameter to obtain a target character string; transmitting the target character string from the first data cache region to a second data cache region where the commodity customization information is located; and decoding and restoring the target character string based on a preset decoding function and a preset restoring rule to obtain the commodity identification. According to the embodiment, the commodity identification is subjected to transcoding splicing processing based on the preset transcoding function and the preset transfer parameter, so that the data transmission efficiency is improved, and the commodity purchasing efficiency can be further improved.
Further, the preset transcoding function may be an encode URI Component function in the JS native function, or may be another transcoding function, which is not specifically limited in the embodiment of the present application.
Further, the preset decoding function includes a decode URI Component function in the JS native function, and may also be another decoding function, which is not specifically limited in the embodiment of the present application.
Further, the preset delivery parameter may be a URL encoding parameter, or may be another delivery parameter, which is not specifically limited in the embodiment of the present application.
In some embodiments, a user customized commodity list under a user login account is obtained, wherein the user customized commodity list comprises at least one user customized commodity; detecting whether each user customized commodity in the user customized commodity list is effective or not; and if the user customized commodity is invalid, marking the user customized commodity as a failure commodity, displaying the failure commodity in a webpage-side shopping cart under the user login account, or sending failure prompt information to the user side.
Further, the user may modify the customization parameters at the shopping cart interface of the server.
The embodiments of the present application are described and illustrated below by means of preferred embodiments.
In a first embodiment, fig. 4 is a flowchart of a product adding method according to the first embodiment of the present application, and as shown in fig. 4, the product adding method includes the following steps:
step S410, obtaining commodity customization information of a user, wherein the commodity customization information comprises customization parameters, commodity IDs and commodity information.
Step S420, a commodity identification is obtained based on the commodity ID in the commodity customization information, the commodity customization information is stored in the local database based on the commodity identification, and the commodity identification is generated based on the current time, the random parameter and the commodity ID and points to a first storage position in the local database.
Step S430, receiving the synchronization update information, where the synchronization update information includes information that the user successfully logs in.
And step S440, acquiring a commodity identification based on the synchronous updating information, and synchronously updating the commodity customization information from the local database to a user login account in the server based on the commodity identification.
In a second embodiment, fig. 5 is a flowchart of a product adding method according to the second embodiment of the present application, and as shown in fig. 5, the product adding method includes the following steps:
step S510, obtaining the user customization request information, where the user customization request information includes information of the user entering the customization interface.
Step S520, obtaining the commodity ID, the current time and the random parameter based on the user customization request information, generating a commodity identification based on the current time, the random parameter and the commodity ID, and binding the commodity identification with the first storage position in the local database.
Step S530, obtaining the commodity customization information of the user, wherein the commodity customization information comprises customization parameters, commodity IDs and commodity information.
And step S540, acquiring a commodity identification based on the commodity ID in the commodity customization information, and storing the commodity customization information to a first storage position in a local database based on the commodity identification.
Step S550, receiving the synchronization update information, where the synchronization update information includes information that the user successfully logs in.
And step S560, acquiring the commodity identification based on the synchronous updating information, and synchronously updating the commodity customization information from the local database to the user login account in the server based on the commodity identification.
In a third specific embodiment, (1) when the user clicks to enter the customization interface, the local processor obtains a commodity ID corresponding to the customized commodity based on the user customization request information to obtain current time and random parameters, generates a commodity identifier based on the current time, the random parameters and the commodity ID, and binds the commodity identifier with the first storage location in the local database.
(2) When a user selects the customization parameters of the customized commodity, the local processor obtains the commodity customization information commodity identification corresponding to the customized commodity and points to a first storage position in the local database, the commodity customization information comprises the customization parameters, the commodity ID and the commodity information, and the customization parameters at least comprise the customization quantity, the customized clothing type, the collar shape, the button type and whether to embroider characters.
(3) Finding out a commodity identification based on the commodity ID in the commodity customization information, wherein the commodity identification generated based on the commodity ID is stored in a first data cache region, and the obtained commodity customization information of the user is stored in a second data cache region; carrying out transcoding splicing processing on the commodity identification based on a preset transcoding function and a preset transfer parameter to obtain a target character string; transmitting the target character string from the first data cache region to a second data cache region where the commodity customization information is located; and decoding and restoring the target character string based on a preset decoding function and a preset restoring rule to obtain the commodity identification.
(4) And storing the commodity customization information to a first storage position by taking the commodity identification as a name and the commodity customization information as content. And after the user successfully logs in, acquiring a commodity identification corresponding to the customized commodity based on the synchronous updating information, and synchronously updating the commodity customized information from the local database to a user login account in the server based on the commodity identification.
(5) After the synchronous updating is completed, the server acquires a user customized commodity list under a user login account, wherein the user customized commodity list comprises at least one user customized commodity; detecting whether each user customized commodity in the user customized commodity list is effective or not; and if the user customized commodity is invalid, marking the user customized commodity as a failure commodity, displaying the failure commodity in a webpage-side shopping cart under the user login account, or sending failure prompt information to the user side.
It should be noted that the steps illustrated in the above-described flow diagrams or in the flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order different than here.
The embodiment further provides a commodity adding device, which is used for implementing the above embodiments and preferred embodiments, and the description of the commodity adding device is omitted. As used hereinafter, the terms "module," "unit," "subunit," and the like may implement a combination of software and/or hardware for a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 6 is a block diagram of a structure of a product adding apparatus according to an embodiment of the present application, and as shown in fig. 6, the product adding apparatus includes:
the data obtaining module 610 is configured to obtain commodity customization information of a user, where the commodity customization information includes customization parameters, a commodity ID, and commodity information.
The local storage module 620 is configured to obtain a commodity identifier based on the commodity customization information, and store the commodity customization information in the local database based on the commodity identifier, where the commodity identifier points to a first storage location in the local database.
The data receiving module 630 is configured to receive synchronization update information, where the synchronization update information includes information that the user successfully logs in.
And the synchronous updating module 640 is configured to obtain the commodity identifier based on the synchronous updating information, and synchronously update the commodity customization information from the local database to the user login account in the server based on the commodity identifier.
In some of these embodiments, the local storage module 620 includes an identification location unit and a local storage unit, wherein:
and the identification positioning unit is used for positioning to a first storage position in the local database based on the commodity identification.
And the local storage unit is used for storing the commodity customization information to the first storage position by taking the commodity identification as a name and the commodity customization information as content.
In some of these embodiments, the customization parameters include at least a customization number, a customization garment type, a collar shape, a button type, and whether or not to embroider.
In some embodiments, the commodity adding apparatus further includes an identifier generating module, and the identifier generating module includes an information obtaining unit, an identifier generating unit, and a location binding unit, where:
and the information acquisition unit is used for acquiring the user customization request information, and the user customization request information comprises information of the user entering the customization interface.
And the identification generating unit is used for acquiring the commodity ID based on the user customization request information and generating the commodity identification based on the commodity ID.
And the position binding unit is used for binding the commodity identification with the first storage position in the local database.
In some embodiments, the identification generation unit is further configured to obtain a current time and a random parameter, and generate the product identification based on the current time, the random parameter, and the product ID.
In some embodiments, the local storage module 620 includes an identification obtaining unit, and the identification obtaining unit is configured to obtain the product identification based on the product ID in the product customization information.
In some embodiments, the identifier obtaining unit includes an identifier searching subunit, a transcoding and splicing subunit, a character string transmitting subunit, and a decoding and returning atomic unit, wherein:
and the identification searching subunit is used for searching the commodity identification based on the commodity ID in the commodity customization information, wherein the commodity identification generated based on the commodity ID is stored in the first data cache area, and the obtained commodity customization information of the user is stored in the second data cache area.
And the transcoding and splicing subunit is used for transcoding and splicing the commodity identification based on a preset transcoding function and a preset transfer parameter to obtain a target character string.
And the character string transmission subunit is used for transmitting the target character string from the first data cache region to a second data cache region where the commodity customization information is located.
And the decoding reduction subunit is used for performing decoding reduction processing on the target character string based on a preset decoding function and a preset reduction rule to obtain the commodity identification.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the modules may be located in the same processor; or the modules can be respectively positioned in different processors in any combination.
In addition, the commodity adding method described in conjunction with fig. 1 in the embodiment of the present application may be implemented by a commodity adding device. Fig. 7 is a schematic hardware configuration diagram of a commodity adding apparatus according to an embodiment of the present application.
The article adding device may comprise a processor 71 and a memory 72 storing computer program instructions.
Specifically, the processor 71 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
Memory 72 may include, among other things, mass storage for data or instructions. By way of example, and not limitation, memory 72 may include a Hard Disk Drive (Hard Disk Drive, abbreviated to HDD), a floppy Disk Drive, a Solid State Drive (SSD), flash memory, an optical Disk, a magneto-optical Disk, tape, or a Universal Serial Bus (USB) Drive or a combination of two or more of these. Memory 72 may include removable or non-removable (or fixed) media, where appropriate. The memory 72 may be internal or external to the data processing apparatus, where appropriate. In a particular embodiment, the memory 72 is a Non-Volatile (Non-Volatile) memory. In particular embodiments, Memory 72 includes Read-Only Memory (ROM) and Random Access Memory (RAM). The ROM may be mask-programmed ROM, Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), Electrically rewritable ROM (EAROM), or FLASH Memory (FLASH), or a combination of two or more of these, where appropriate. The RAM may be a Static Random-Access Memory (SRAM) or a Dynamic Random-Access Memory (DRAM), where the DRAM may be a Fast Page Mode Dynamic Random-Access Memory (FPMDRAM), an Extended data output Dynamic Random-Access Memory (EDODRAM), a Synchronous Dynamic Random-Access Memory (SDRAM), and the like.
The memory 72 may be used to store or cache various data files that need to be processed and/or used for communication, as well as possible computer program instructions executed by the processor 71.
The processor 71 reads and executes the computer program instructions stored in the memory 72 to implement any one of the article adding methods in the above-described embodiments.
In some of these embodiments, the article adding device may also include a communication interface 73 and a bus 70. As shown in fig. 7, the processor 71, the memory 72, and the communication interface 73 are connected via the bus 70 to complete mutual communication.
The communication interface 73 is used for realizing communication among modules, devices, units and/or equipment in the embodiment of the present application. The communication interface 73 may also enable communication with other components such as: the data communication is carried out among external equipment, image/data acquisition equipment, a database, external storage, an image/data processing workstation and the like.
The bus 70 includes hardware, software, or both that couple the components of the article adding device to one another. Bus 70 includes, but is not limited to, at least one of the following: data Bus (Data Bus), Address Bus (Address Bus), Control Bus (Control Bus), Expansion Bus (Expansion Bus), and Local Bus (Local Bus). By way of example, and not limitation, Bus 70 may include an Accelerated Graphics Port (AGP) or other Graphics Bus, an Enhanced Industry Standard Architecture (EISA) Bus, a Front-Side Bus (FSB), a Hyper Transport (HT) Interconnect, an ISA (ISA) Bus, an InfiniBand (InfiniBand) Interconnect, a Low Pin Count (LPC) Bus, a memory Bus, a microchannel Architecture (MCA) Bus, a PCI (Peripheral Component Interconnect) Bus, a PCI-Express (PCI-X) Bus, a Serial Advanced Technology Attachment (SATA) Bus, a Video Electronics Bus (audio Electronics Association), abbreviated VLB) bus or other suitable bus or a combination of two or more of these. Bus 70 may include one or more buses, where appropriate. Although specific buses are described and shown in the embodiments of the application, any suitable buses or interconnects are contemplated by the application.
The commodity adding device can execute the commodity adding method in the embodiment of the application based on the obtained commodity addition, so that the commodity adding method described in conjunction with fig. 1 is realized.
In addition, in combination with the commodity adding method in the above embodiments, the embodiments of the present application may provide a computer-readable storage medium to implement. The computer readable storage medium having stored thereon computer program instructions; the computer program instructions, when executed by a processor, implement any of the article adding methods of the above embodiments.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of adding a commodity, comprising:
the method comprises the steps of obtaining commodity customization information of a user, wherein the commodity customization information comprises customization parameters, commodity IDs and commodity information;
acquiring a commodity identification based on the commodity customization information, and storing the commodity customization information into a local database based on the commodity identification, wherein the commodity identification points to a first storage position in the local database;
receiving synchronous updating information, wherein the synchronous updating information comprises information of successful login of a user;
and acquiring the commodity identification based on the synchronous updating information, and synchronously updating the commodity customization information from the local database to a user login account in a server based on the commodity identification.
2. The merchandise addition method according to claim 1, wherein the storing the merchandise customization information into a local database based on the merchandise identification comprises:
locating a first storage location in the local database based on the merchandise identification;
and storing the commodity customization information to the first storage position by taking the commodity identification as a name and the commodity customization information as content.
3. The merchandise adding method according to claim 1, wherein the customization parameters include at least a customization number, a customization garment type, a collar shape, a button type, and whether to embroider a word.
4. The merchandise addition method according to claim 1, wherein before said acquiring the merchandise customization information of the user, the method further comprises:
obtaining user customization request information, wherein the user customization request information comprises information of a user entering a customization interface;
acquiring a commodity ID based on the user customization request information, and generating the commodity identification based on the commodity ID;
and binding the commodity identification with a first storage position in the local database.
5. The item addition method according to claim 4, wherein the generating the item identification based on the item ID includes:
and acquiring the current time and random parameters, and generating the commodity identification based on the current time, the random parameters and the commodity ID.
6. The merchandise addition method according to claim 4, wherein said customizing information based on the merchandise includes: and acquiring the commodity identification based on the commodity ID in the commodity customization information.
7. The article adding method according to claim 6, wherein the acquiring the article identification based on the article ID in the article customization information includes:
finding the commodity identification based on the commodity ID in the commodity customization information, wherein the commodity identification generated based on the commodity ID is stored in a first data cache region, and the obtained commodity customization information of the user is stored in a second data cache region;
transcoding and splicing the commodity identification based on a preset transcoding function and a preset transfer parameter to obtain a target character string;
transmitting the target character string from the first data cache region to the second data cache region where the commodity customization information is located;
and decoding and restoring the target character string based on a preset decoding function and a preset restoring rule to obtain the commodity identification.
8. An article adding device, comprising:
the data acquisition module is used for acquiring commodity customization information of a user, wherein the commodity customization information comprises customization parameters, a commodity ID and commodity information;
the local storage module is used for acquiring a commodity identification based on the commodity customization information and storing the commodity customization information into a local database based on the commodity identification, wherein the commodity identification points to a first storage position in the local database;
the data receiving module is used for receiving synchronous updating information, and the synchronous updating information comprises information that a user successfully logs in;
and the synchronous updating module is used for acquiring the commodity identification based on the synchronous updating information and synchronously updating the commodity customization information from the local database to a user login account in the server based on the commodity identification.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the item addition method according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing an article adding method according to any one of claims 1 to 7.
CN202011521661.0A 2020-12-21 2020-12-21 Commodity adding method and device, computer equipment and readable storage medium Pending CN112561654A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011521661.0A CN112561654A (en) 2020-12-21 2020-12-21 Commodity adding method and device, computer equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011521661.0A CN112561654A (en) 2020-12-21 2020-12-21 Commodity adding method and device, computer equipment and readable storage medium

Publications (1)

Publication Number Publication Date
CN112561654A true CN112561654A (en) 2021-03-26

Family

ID=75031157

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011521661.0A Pending CN112561654A (en) 2020-12-21 2020-12-21 Commodity adding method and device, computer equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN112561654A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113837641A (en) * 2021-09-30 2021-12-24 商派软件有限公司 Commodity material management method, server, and computer-readable medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279687A (en) * 2015-10-20 2016-01-27 陈宏堃 On-line shopping method, client, server and system
CN105808767A (en) * 2016-03-21 2016-07-27 北京小米移动软件有限公司 Data updating method and apparatus
CN106447343A (en) * 2016-08-22 2017-02-22 璧垫尝 Data interaction and maintenance methods and apparatuses based on commodity information
CN107730371A (en) * 2017-11-27 2018-02-23 北京小米移动软件有限公司 Create the method, apparatus and storage medium of order
CN108280726A (en) * 2017-01-06 2018-07-13 中兴通讯股份有限公司 Purchase data moving method and device
CN108665335A (en) * 2017-04-01 2018-10-16 北京京东尚科信息技术有限公司 The method for handling the shopping cart data of shopping website
CN108765044A (en) * 2018-03-29 2018-11-06 深圳市爱乐墨科技有限公司 Synchronous method, terminal and the computer readable storage medium of merchandise news
CN110033340A (en) * 2018-12-29 2019-07-19 香港乐蜜有限公司 Interior purchase management method, device and the client device of virtual goods
CN111985591A (en) * 2020-07-24 2020-11-24 南通大学 Commodity anti-counterfeiting code generation method based on character string encryption
CN112015812A (en) * 2020-08-10 2020-12-01 仁励家网络科技(杭州)有限公司 Data synchronization method and data synchronization device

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105279687A (en) * 2015-10-20 2016-01-27 陈宏堃 On-line shopping method, client, server and system
CN105808767A (en) * 2016-03-21 2016-07-27 北京小米移动软件有限公司 Data updating method and apparatus
CN106447343A (en) * 2016-08-22 2017-02-22 璧垫尝 Data interaction and maintenance methods and apparatuses based on commodity information
CN108280726A (en) * 2017-01-06 2018-07-13 中兴通讯股份有限公司 Purchase data moving method and device
CN108665335A (en) * 2017-04-01 2018-10-16 北京京东尚科信息技术有限公司 The method for handling the shopping cart data of shopping website
CN107730371A (en) * 2017-11-27 2018-02-23 北京小米移动软件有限公司 Create the method, apparatus and storage medium of order
CN108765044A (en) * 2018-03-29 2018-11-06 深圳市爱乐墨科技有限公司 Synchronous method, terminal and the computer readable storage medium of merchandise news
CN110033340A (en) * 2018-12-29 2019-07-19 香港乐蜜有限公司 Interior purchase management method, device and the client device of virtual goods
CN111985591A (en) * 2020-07-24 2020-11-24 南通大学 Commodity anti-counterfeiting code generation method based on character string encryption
CN112015812A (en) * 2020-08-10 2020-12-01 仁励家网络科技(杭州)有限公司 Data synchronization method and data synchronization device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113837641A (en) * 2021-09-30 2021-12-24 商派软件有限公司 Commodity material management method, server, and computer-readable medium

Similar Documents

Publication Publication Date Title
US11928551B2 (en) Computer configured to display multimedia content
US11875391B2 (en) Message based generation of item listings
US11392660B2 (en) Presentation of information on multiple devices
US9262686B1 (en) Product image information extraction
CN104168293B (en) The method and system of suspicious fishing webpage are recognized with reference to local content rule base
KR102317111B1 (en) Marketplace listing generation using message metadata
CN107958078A (en) Information generating method and device
JP2018500670A (en) Handling unstructured messages
CN112561654A (en) Commodity adding method and device, computer equipment and readable storage medium
CN112187622A (en) Instant message display method and device and server
CN113656549B (en) Content searching method of electronic book, electronic device and computer storage medium
CN116862620B (en) Comment query method and related device
WO2023130812A1 (en) Multimedia processing method and apparatus, device, medium, and computer program product
WO2014043748A1 (en) A server for selecting tag data
CN115374335A (en) Object searching method, device, medium and electronic equipment
GB2556075A (en) A processor for interacting with a social media platform

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