A method, apparatus, and electronic device for data synchronization

Through the local platform, the product data of the user's website is automatically converted into the required formats of major media and uploaded, solving the high cost and inefficiency problems caused by the differences in uploading methods of different media, and realizing the automation and efficient delivery of data synchronization.

CN114896318BActive Publication Date: 2025-07-18XIAN MITEZHEN DIGITAL TECHNOLOGY CO LTD +2
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210502770.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-05-10
Publication Date
2025-07-18
Estimated Expiration
2042-05-10

AI Technical Summary

Technical Problem

In overseas advertising, major media have different fields, formats and upload methods for product information. Merchants need to spend time learning to upload them when they are just starting out. They have learned that merchants need to cumbersome maintenance of product data from various media, resulting in high costs and low efficiency.

Method used

Provide a data synchronization method, obtain product data from user websites through local platforms, convert it into the required format of the target media, and automatically upload it to major media, reducing users' need to maintain data on each media side.

Benefits of technology

It reduces the cost of users maintaining the target media side data, improves data synchronization efficiency, reduces time and labor costs, and realizes automatic data upload and advertising delivery.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114896318B_ABST
    Figure CN114896318B_ABST
Patent Text Reader

Abstract

The present invention provides a method, apparatus and electronic device for data synchronization. Among them, the method includes: obtaining product data of a user website; in response to an upload instruction to upload the product data to at least one target medium, converting the product data into a format required by the target medium, and uploading at least part of the converted product data to the target medium according to the upload method supported by the target medium. Through the method, apparatus and electronic device for data synchronization provided by the embodiments of the present invention, it is not necessary for the user to prepare data in the format required by the target medium side, nor is it necessary to separately maintain the data on each target medium side in batches. The user only needs to upload the product data to his own user website and maintain the user website. The local platform can automatically obtain the product data on the user website side and achieve automatic upload, which can greatly reduce the cost for the user to maintain the data on the target medium side and improve the efficiency of data synchronization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular, to a method, device, electronic device and computer-readable storage medium for data synchronization. Background Art

[0002] Currently, in overseas advertising placement, various media such as Facebook, Google, and TikTok all support the placement of DPA (dynamic product ads). This type of placement requires merchants / advertisers to upload the structured information of all products, including name, picture, price, discount, inventory, specifications, etc., to the product library on the media side. The media can then use this structured data to automatically generate dynamic advertising content for the merchants and deliver different advertising content to different users, thereby achieving the so-called one-to-one marketing effect.

[0003] For merchants, each media has differences in the field names, formats, and upload methods required for product information, and information such as product price and inventory is time-sensitive and needs to be updated in a timely manner. For those newly-started merchants, learning how to upload products to different media requires a certain amount of learning and time costs; for those merchants who already know how to upload, maintaining product data is also a very cumbersome and time-consuming task. Summary of the Invention

[0004] To solve the existing technical problems, embodiments of the present invention provide a method, device, electronic device and computer-readable storage medium for data synchronization.

[0005] In a first aspect, an embodiment of the present invention provides a method for data synchronization, including:

[0006] Obtaining product data of a user website, where the product data includes at least one of a product name, a product price, a product picture, a product category, and a product status of at least one product;

[0007] In response to an upload instruction to upload the product data to at least one target media, converting the product data into a format required by the target media, and uploading at least part of the converted product data to the target media according to an upload method supported by the target media.

[0008] In a second aspect, an embodiment of the present invention further provides a device for data synchronization, including:

[0009] An obtaining module, configured to obtain product data of a user website, where the product data includes at least one of a product name, a product price, a product picture, a product category, and a product status of at least one product;

[0010] A processing module, configured to, in response to an upload instruction for uploading the commodity data to at least one target medium, convert the commodity data into a format required by the target medium, and upload at least part of the converted commodity data to the target medium according to an upload method supported by the target medium.

[0011] In a third aspect, an embodiment of the present invention provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor. The transceiver, the memory, and the processor are connected through the bus. When the computer program is executed by the processor, the steps in the data synchronization method described in any one of the above are implemented.

[0012] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the data synchronization method described in any one of the above are implemented.

[0013] The data synchronization method, device, electronic device, and computer-readable storage medium provided by the embodiments of the present invention obtain commodity data from a user's user website. If it needs to be uploaded to a target medium, the commodity data is converted into a format required by the target medium, so that the commodity data can be uploaded to the target medium to achieve data upload and synchronize the commodity data to the target medium side, facilitating users to place advertisements, etc. This method does not require users to prepare data in the format required by the target medium side, nor does it require batch-by-batch maintenance of data on each target medium side. It only requires users to upload commodity data to their own user websites and maintain the user websites. The local platform can automatically obtain the commodity data on the user website side and achieve automatic upload, which can greatly reduce the cost for users to maintain data on the target medium side and improve the efficiency of data synchronization. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the background art, the following will describe the drawings required to be used in the embodiments of the present invention or the background art.

[0015] Figure 1 A flowchart showing a data synchronization method provided by an embodiment of the present invention is shown;

[0016] Figure 2 A schematic structural diagram of a data synchronization device provided by an embodiment of the present invention is shown;

[0017] Figure 3 A schematic structural diagram of an electronic device for executing the data synchronization method provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0018] The embodiments of the present invention are described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0019] A data synchronization method provided by an embodiment of the present invention is executed by a third-party local platform, which can upload the user's product data to the corresponding media side, such as Facebook, Tiktok and other media. Figure 1 FIG. 1 is a flow chart showing a method for data synchronization provided by an embodiment of the present invention. Figure 1 As shown, the method includes:

[0020] Step 101: Acquire product data from a user website, where the product data includes at least one of a product name, a product price, a product image, a product category, and a product status of at least one product.

[0021] In an embodiment of the present invention, a user website is a website owned by a user (e.g., a merchant) that can upload product data, such as an independent website established by a user through a website building SAAS (Software-as-a-Service, Software as a Service; such as Shopify, Shoplazza, etc.). A user can upload the product data of the product that he needs to sell to the user website, and use the user website to maintain the relevant data of his own product. Among them, the product data includes the product name, product price, product image, product classification, product status, etc. of the product (at least one product) that the user needs to sell. Among them, the product classification can be the user's own classification of the product, or it can be a classification pre-set by the system; the product status is used to indicate one or more states of the product, such as remaining inventory, whether it is sold, whether it is off the shelf, etc. Among them, in the product data, each product corresponds to at least one of the product name, product price, product image, product classification, and product status. Generally, the product data at least includes the product name, product price, product image, product classification, and product status.

[0022] Optionally, the local platform needs to obtain authorization from the user website before it can obtain product data from the user website. Specifically, before the above step 101 "obtaining product data from the user website", the method further includes: obtaining a first authorization from the user website, the first authorization being used to indicate that data can be obtained from the user website. After obtaining the first authorization, the local platform can obtain product data from the user website.

[0023] Step 102: In response to an upload instruction to upload product data to at least one target medium, convert the product data into a format required by the target medium, and upload at least part of the converted product data to the target medium according to an upload method supported by the target medium.

[0024] In an embodiment of the present invention, a user sets an upload instruction, which is used to instruct the local platform to upload product data to a required medium, that is, a target medium. The target medium can be one or multiple. For example, it can be Facebook, Google, TikTok, etc. Among them, the upload instruction includes an upload time and / or an upload range, so that the local platform can upload at least part of the product data that meets the upload range in the product data to the required target medium at the upload time. Optionally, the upload instruction is an instruction that is preset by the user and triggered regularly; after the user sets it once, the user no longer needs to set it each time, and the local platform enables the local platform to regularly and automatically upload product data to the target medium, and can regularly update the latest data synchronized to the user website side to the medium side.

[0025] Moreover, the product data uploaded to the target medium needs to conform to the format required by the target medium, and the formats required by different target media are also different. When it is necessary to upload product data to the target medium, this embodiment converts the product data into the format required by the target medium; if it is necessary to upload data to multiple target media, the product data needs to be respectively converted into the format required by each target medium, and then the converted product data is uploaded to the corresponding target medium in the upload manner supported by the target medium (such as writing through the API, or generating a file address and notifying the media party to obtain the data from the file address). Among them, since the user can set the products corresponding to the upload range (for example, the products listed within a certain time period, certain categories of products, or all products, etc.), at this time, the corresponding part or all of the product data can be uploaded to the target medium based on the upload range. After the product data is uploaded to the target medium, the user can generate advertisements, etc. on the target medium side to achieve product promotion.

[0026] In addition, optionally, before uploading data to the target medium, authorization from the user is also required. Specifically, before the above step 102 "in response to an upload instruction to upload product data to at least one target medium", the method further includes: obtaining a second authorization from the user, and the second authorization is used to indicate the ability to upload product data to at least one target medium. After obtaining the authorization from the user, the product data can be uploaded to the corresponding target medium.

[0027] A method for data synchronization provided by an embodiment of the present invention obtains product data from a user's user website. If it needs to be uploaded to a target media, the product data is converted into a format required by the target media, so that the product data can be uploaded to the target media to achieve data upload and synchronize the product data to the target media side, facilitating users to place advertisements, etc. This method does not require users to prepare data in the format required by the target media side, nor does it require maintaining the data of each target media side batch by batch. It only requires users to upload the product data to their own user website and maintain the user website. The local platform can automatically obtain the product data on the user website side and achieve automatic upload, which can greatly reduce the cost for users to maintain the data on the target media side and improve the efficiency of data synchronization.

[0028] Optionally, step 101 of "obtaining product data of the user website" above includes:

[0029] Step A1: Invoke all the product data in the user website from the API of the user website.

[0030] Step A2: Then obtain the changed product data in the user website.

[0031] In the embodiment of the present invention, the user website stores the product data of all products of the user, and the user website provides an API (Application Programming Interface) that can obtain product data. Therefore, the local platform can call the product data in the user website through this API. Since the product data in the user website may be modified during the process of the user maintaining the user website, such as adding new products, modifying product prices, taking products off the shelves, etc., the embodiment of the present invention also obtains the changed product data at the user website.

[0032] Specifically, when the user first needs to synchronize data to the target media with the help of the local platform, the local platform can obtain all the product data in the user website at one time, that is, all the product data. After obtaining all the product data, after the product data in the user website changes, obtain the changed product data. Among them, step A1 above can be executed only once, and step A2 above can be executed multiple times, so that the local platform can timely obtain the real product data in the user website.

[0033] In addition, optionally, step A2 of "obtaining the changed product data in the user website" above includes:

[0034] Step A21: Configure the resource address of the HTTP callback for the user website, and instruct the user website to send the changed product data to the resource address when the data changes.

[0035] Step A22: Subscribe to the resource address and obtain the changed product data actively sent by the user website.

[0036] Since the product data at the user website often changes, that is, the user often modifies the product data in the user website, and this modification is irregular and without rules. In order for the local platform to obtain the changed product data in a timely manner, generally, the local platform needs to continuously poll and access the user website, which not only has low efficiency but also easily causes network congestion. Although the existing WebSocket does not require polling, it needs to establish a persistent connection between both parties and is more suitable for two-way data transmission. In the embodiment of the present invention, the local platform mainly obtains the product data in the user website, that is, mainly needs the user website to unidirectionally send the product data to the local platform. This embodiment realizes obtaining the changed product data in a timely manner by subscribing to the pre-configured address.

[0037] Specifically, the embodiment of the present invention configures a resource address for HTTP callback for the user website. When the data (product data) at the user website changes, a corresponding event can be triggered, so that the changed product data corresponding to the event can be sent to the resource address by using HTTP callback. The resource address can specifically be a URL (Uniform Resource Locator). And the local platform subscribes to this resource address, for example, subscribes to the corresponding URL, so that the changed product data can be immediately obtained after the product data at the user website changes. Among them, the changed product data can be all the data of a certain or certain products that have changed. For example, when only the product price changes, the changed product data can include the product price, product status, etc.; or, the changed product data can be the changed data of a certain or certain products. For example, when only the product price changes, the changed product data only includes the product price.

[0038] This embodiment can obtain the changed product data in a timely manner by configuring a resource address for HTTP callback for the user website and subscribing to this resource address, so that the local platform can know the latest product data in a timely and accurate manner, which is convenient for uploading the latest product data to the target media subsequently and avoiding the problem of data synchronization exception.

[0039] Optionally, after the above step 102 "upload at least part of the converted product data to the target media", the method further includes:

[0040] Step B1: Obtain the upload result feedback by the target media, and the upload result includes at least one of the total number of uploads, the number of successes, the number of failures, and the upload time.

[0041] Step B2: Display the upload result to the user.

[0042] In the embodiment of the present invention, the local platform can also provide a visual human-computer interaction interface to the user. After uploading the product data to the target media, the target media will feedback the corresponding upload results, such as the total number of uploads, the number of successes, the number of failures, the upload time, etc., for the user to view the results and status of the product upload. Among them, after obtaining the product data of the user website in the above step 101, the local platform can store the product data in the local database and can display the product data to the user for the user to consult and query the information of the corresponding product on the local platform side; for example, the user can manage the product, view the status, view the update time, etc.

[0043] Optionally, the method further includes:

[0044] Step C1: In the case where the product data of the user website cannot be obtained, obtain the product data actively uploaded by the user.

[0045] In the embodiment of the present invention, since some users do not establish a user website by themselves, or the website they establish is a self-built website that does not support the local platform to obtain product data from the website side; in this case, the embodiment of the present invention can instruct the user to actively upload the product data to the local platform. For example, the local platform supports file import, and the user can import the file containing the product data of all products into the local platform. At this time, the user still needs to maintain the file containing the product data. After obtaining the product data actively uploaded by the user, the product data can still be converted into the format required by the target media according to the description of the subsequent steps 102, etc., and uploaded to the target media. At this time, the product data on the target media side can also be updated in a timely manner.

[0046] A data synchronization method provided by the embodiment of the present invention obtains product data from the user's user website. If it needs to be uploaded to the target media, the product data is converted into the format required by the target media, so that the product data can be uploaded to the target media to achieve data upload and synchronize the product data to the target media side, which is convenient for users to place advertisements, etc. This method does not require the user to prepare data in the format required by the target media side, nor does it require the user to maintain the data of each target media side batch by batch. It only requires the user to upload the product data to their own user website and maintain the user website. The local platform can automatically obtain the product data on the user website side and achieve automatic upload, which can greatly reduce the cost of the user maintaining the data on the target media side and improve the efficiency of data synchronization. Moreover, the user only needs to authorize and make some basic settings such as time and scope, without daily maintenance and without developers, which can reduce the user's time and labor costs, is faster and more accurate than daily manual maintenance, and the data is updated more timely.

[0047] The method for data synchronization provided by the embodiments of the present invention is described in detail above. This method can also be implemented by a corresponding device. The following describes in detail the device for data synchronization provided by the embodiments of the present invention.

[0048] Figure 2 FIG. shows a schematic structural diagram of a device for data synchronization provided by an embodiment of the present invention. As Figure 2 shown, the device for data synchronization includes:

[0049] An acquisition module 21, configured to acquire commodity data of a user website, where the commodity data includes at least one of a commodity name, a commodity price, a commodity picture, a commodity classification, and a commodity status of at least one commodity;

[0050] A processing module 22, configured to, in response to an upload instruction for uploading the commodity data to at least one target medium, convert the commodity data into a format required by the target medium, and upload at least part of the converted commodity data to the target medium according to an upload method supported by the target medium.

[0051] In a possible implementation manner, the acquisition module 21 includes:

[0052] A full - quantity acquisition unit, configured to call the full - quantity commodity data in the user website from the API of the user website;

[0053] A change acquisition unit, configured to acquire the changed commodity data in the user website later.

[0054] In a possible implementation manner, the change acquisition unit acquires the changed commodity data in the user website, including:

[0055] Configuring a resource address for HTTP callback for the user website, and instructing the user website to send the changed commodity data to the resource address when the data changes;

[0056] Subscribing to the resource address to acquire the changed commodity data actively sent by the user website.

[0057] In a possible implementation manner, the device further includes a first authorization module and a second authorization module;

[0058] The first authorization module is configured to: before acquiring the commodity data of the user website, acquire a first authorization of the user website, and the first authorization is used to indicate that data can be acquired from the user website side;

[0059] The second authorization module is configured to: obtain a second authorization from the user before the upload instruction for uploading the product data to at least one target medium, where the second authorization is used to indicate that the product data can be uploaded to at least one target medium.

[0060] In a possible implementation, the apparatus further includes: a display module;

[0061] The display module is configured to: after uploading at least part of the converted product data to the target medium, obtain an upload result fed back by the target medium, where the upload result includes at least one of the total number of uploads, the number of successes, the number of failures, and the upload time; and display the upload result to the user.

[0062] In a possible implementation, the obtaining module 21 is further configured to:

[0063] In the case where the product data of the user website cannot be obtained, obtain the product data actively uploaded by the user.

[0064] In addition, an embodiment of the present invention further provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor. The transceiver, the memory, and the processor are respectively connected through the bus. When the computer program is executed by the processor, each process of the method embodiment for data synchronization described above is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described in detail here.

[0065] Specifically, referring to Figure 3 As shown, an embodiment of the present invention further provides an electronic device, which includes a bus 1110, a processor 1120, a transceiver 1130, a bus interface 1140, a memory 1150, and a user interface 1160.

[0066] In an embodiment of the present invention, the electronic device further includes: a computer program stored on the memory 1150 and executable on the processor 1120. When the computer program is executed by the processor 1120, each process of the method embodiment for data synchronization described above is implemented.

[0067] The transceiver 1130 is configured to receive and send data under the control of the processor 1120.

[0068] In an embodiment of the present invention, the bus architecture (represented by the bus 1110), the bus 1110 may include any number of interconnected buses and bridges. The bus 1110 connects various circuits including one or more processors represented by the processor 1120 and the memory represented by the memory 1150 together.

[0069] Bus 1110 represents one or more of any of several types of bus structures, including a memory bus and memory controller, a peripheral bus, an Accelerated Graphics Port (AGP), a processor, or a local bus using any of the various bus architectures. By way of example and not limitation, such architectures include: Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Extended ISA (EISA) bus, Video Electronics Standards Association (VESA), Peripheral Component Interconnect (PCI) bus.

[0070] Processor 1120 can be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method embodiments can be completed by the integrated logic circuit in the processor or instructions in software form. The above processors include: general-purpose processors, central processing units (CPU), network processors (NP), digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA), complex programmable logic devices (CPLD), programmable logic arrays (PLA), microcontroller units (MCU), or other programmable logic devices, discrete gates, transistor logic devices, discrete hardware components. The various methods, steps, and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. For example, the processor can be a single-core processor or a multi-core processor, and the processor can be integrated on a single chip or located on multiple different chips.

[0071] The processor 1120 can be a microprocessor or any conventional processor. The method steps disclosed in connection with the embodiments of the present invention can be directly executed by a hardware decoding processor or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a readable storage medium well-known in the art such as Random Access Memory (RAM), Flash Memory, Read-Only Memory (ROM), Programmable ROM (PROM), Erasable PROM (EPROM), registers, etc. The readable storage medium is located in the memory, and the processor reads the information in the memory and combines its hardware to complete the steps of the above method.

[0072] The bus 1110 can also connect together various other circuits such as, for example, peripheral devices, voltage regulators, or power management circuits. The bus interface 1140 provides an interface between the bus 1110 and the transceiver 1130, which are all well-known in the art. Therefore, the embodiments of the present invention will not be further described herein.

[0073] The transceiver 1130 can be a single component or multiple components, such as multiple receivers and transmitters, providing a unit for communicating with various other devices over a transmission medium. For example: The transceiver 1130 receives external data from other devices, and the transceiver 1130 is used to send the data processed by the processor 1120 to other devices. Depending on the nature of the computer system, a user interface 1160 can also be provided, such as: a touch screen, a physical keyboard, a display, a mouse, a speaker, a microphone, a trackball, a joystick, a stylus.

[0074] It should be understood that in the embodiments of the present invention, the memory 1150 may further include a memory remotely disposed relative to the processor 1120, and these remotely disposed memories may be connected to the server through a network. One or more parts of the above network may be an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless local area network (WLAN), a wide area network (WAN), a wireless wide area network (WWAN), a metropolitan area network (MAN), the Internet, a public switched telephone network (PSTN), a plain old telephone service network (POTS), a cellular telephone network, a wireless network, a Wi-Fi network, and a combination of two or more of the above networks. For example, the cellular telephone network and the wireless network may be a Global System for Mobile Communications (GSM) system, a Code Division Multiple Access (CDMA) system, a Worldwide Interoperability for Microwave Access (WiMAX) system, a General Packet Radio Service (GPRS) system, a Wideband Code Division Multiple Access (WCDMA) system, a Long Term Evolution (LTE) system, an LTE Frequency Division Duplexing (FDD) system, an LTE Time Division Duplexing (TDD) system, an Advanced Long Term Evolution (LTE-A) system, a Universal Mobile Telecommunications System (UMTS) system, an Enhance Mobile Broadband (eMBB) system, a massive Machine Type of Communication (mMTC) system, an UltraReliable Low Latency Communications (uRLLC) system, etc.

[0075] It should be understood that the memory 1150 in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory includes: Read-Only Memory (ROM), Programmable ROM (PROM), Erasable PROM (EPROM), Electrically Erasable PROM (EEPROM), or Flash Memory.

[0076] The volatile memory includes: a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as: static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus random access memory (DRRAM). The memory 1150 of the electronic device described in the embodiments of the present invention includes, but is not limited to, the above and any other suitable types of memory.

[0077] In the embodiments of the present invention, the memory 1150 stores the following elements of the operating system 1151 and the application program 1152: executable modules, data structures, or subsets or extended sets thereof.

[0078] Specifically, the operating system 1151 includes various system programs, such as: a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 1152 includes various application programs, such as: a media player and a browser, for implementing various application services. The program for implementing the method of the embodiments of the present invention may be included in the application program 1152. The application program 1152 includes: applets, objects, components, logics, data structures, and other computer system executable instructions for performing specific tasks or implementing specific abstract data types.

[0079] In addition, the embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the method embodiment of the above data synchronization and can achieve the same technical effect. To avoid repetition, it will not be described here again.

[0080] A computer-readable storage medium includes permanent and non-permanent, removable and non-removable media, and is a tangible device that can retain and store instructions for use by an instruction execution device. The computer-readable storage medium includes electronic storage devices, magnetic storage devices, optical storage devices, electromagnetic storage devices, semiconductor storage devices, and any suitable combination thereof. The computer-readable storage medium includes phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), non-volatile random access memory (NVRAM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape storage, magnetic tape disk storage or other magnetic storage devices, memory sticks, mechanical encoding devices (such as punched cards or raised structures in grooves on which instructions are recorded), or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined in the embodiments of the present invention, a computer-readable storage medium does not include transient signals themselves, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (such as light pulses passing through an optical fiber cable), or electrical signals transmitted through a wire.

[0081] In several embodiments provided in the present application, it should be understood that the disclosed devices, electronic devices, and methods can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Additionally, the displayed or discussed coupling or direct coupling or communication connection between each other can be an indirect coupling or communication connection through some interfaces, devices, or units, or can also be in the form of an electrical, mechanical, or other connection.

[0082] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units. They can either be located in one position or distributed across multiple network units. Some or all of the units can be selected according to actual needs to solve the problems to be solved by the solutions of the embodiments of the present invention.

[0083] In addition, in each embodiment of the present invention, the functional units can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.

[0084] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (including: personal computer, server, data center or other network devices) to execute all or part of the steps of the methods described in the various embodiments of the present invention. And the above storage medium includes various media that can store program codes as listed above.

[0085] In the description of the embodiments of the present invention, those skilled in the art should know that the embodiments of the present invention can be implemented as methods, devices, electronic devices and computer-readable storage media. Therefore, the embodiments of the present invention can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), the form of combination of hardware and software. In addition, in some embodiments, the embodiments of the present invention can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage media contains computer program codes.

[0086] The above computer-readable storage media can adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or components, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), flash memory, optical fibers, compact disc read-only memory (CD-ROM), optical storage devices, magnetic storage devices or any combination of the above. In the embodiments of the present invention, the computer-readable storage media can be any tangible medium that contains or stores a program, and the program can be used by or in combination with an instruction execution system, device or component.

[0087] The computer program codes contained in the above computer-readable storage media can be transmitted by any suitable medium, including: wireless, wire, optical fiber cable, radio frequency (RF) or any suitable combination of the above.

[0088] The computer program code for performing the operations of the embodiments of the present invention can be written in assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine - related instructions, microcode, firmware instructions, status - setting data, integrated circuit configuration data, or in one or more programming languages or combinations thereof. The programming languages include object - oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as C language or similar programming languages. The computer program code can be executed entirely on the user's computer, partially on the user's computer, executed as a stand - alone software package, partially on the user's computer and partially on a remote computer, and entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), and can also be connected to an external computer.

[0089] The methods, apparatuses, and electronic devices provided by the embodiments of the present invention are described by flowcharts and / or block diagrams.

[0090] It should be understood that each block of the flowchart and / or block diagram, and the combinations of blocks in the flowchart and / or block diagram, can be implemented by computer - readable program instructions. These computer - readable program instructions can be provided to a processor of a general - purpose computer, a special - purpose computer, or other programmable data - processing device, thereby producing a machine. These computer - readable program instructions, when executed by a computer or other programmable data - processing device, produce an apparatus for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.

[0091] These computer - readable program instructions can also be stored in a computer - readable storage medium that can cause a computer or other programmable data - processing device to work in a specific manner. In this way, the instructions stored in the computer - readable storage medium produce an instruction - device product that includes instructions for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.

[0092] The computer - readable program instructions can also be loaded onto a computer, other programmable data - processing device, or other device, so that a series of operation steps are executed on the computer, other programmable data - processing device, or other device, to produce a computer - implemented process. Thus, the instructions executed on the computer or other programmable data - processing device can provide a process for implementing the functions / operations specified in the blocks of the flowchart and / or block diagram.

[0093] As described above, it is only the specific implementation manner of the embodiments of the present invention, but the protection scope of the embodiments of the present invention is not limited thereto. Any person skilled in the art within the technical scope disclosed by the embodiments of the present invention can easily think of changes or substitutions, which should all be covered within the protection scope of the embodiments of the present invention. Therefore, the protection scope of the embodiments of the present invention shall be subject to the protection scope of the claims.

Claims

1. A method for data synchronization, characterized in that, A local platform applied to a third party, including: Obtain product data of a user website, where the product data includes at least one of product name, product price, product picture, product category, and product status of at least one product; In response to an upload instruction to upload the product data to at least one target medium, convert the product data into a format required by the target medium, and upload at least part of the converted product data to the target medium according to the upload method supported by the target medium; the upload instruction includes upload time and / or upload range; It also includes: When the product data of the user website cannot be obtained, obtain product data actively uploaded by the user; The obtaining of the product data of the user website includes: Call all the product data in the user website from the API of the user website; After that, obtain the product data that has changed in the user website; The obtaining of the product data that has changed in the user website includes: Configure a resource address for HTTP callback for the user website, and instruct the user website to send the changed product data to the resource address when the data changes; Subscribe to the resource address and obtain the changed product data actively sent by the user website; Before obtaining the product data of the user website, it also includes: Obtain the first authorization of the user website, and the first authorization is used to indicate that data can be obtained from the user website end; Before responding to the upload instruction to upload the product data to at least one target medium, it also includes: Obtain the second authorization of the user, and the second authorization is used to indicate that product data can be uploaded to at least one target medium.

2. The method according to claim 1, characterized in that, After uploading at least part of the converted product data to the target medium, it also includes: Obtain the upload result feedback by the target medium, where the upload result includes at least one of the total number of uploads, the number of successes, the number of failures, and the upload time; Show the upload result to the user.

3. A device for data synchronization, characterized in that, A local platform applied to a third party, including: An obtaining module, configured to obtain product data of a user website, where the product data includes at least one of product name, product price, product picture, product category, and product status of at least one product; A processing module, configured to, in response to an upload instruction to upload the product data to at least one target medium, convert the product data into a format required by the target medium, and upload at least part of the converted product data to the target medium according to the upload method supported by the target medium; the upload instruction includes upload time and / or upload range; The obtaining module is further configured to: When the product data of the user website cannot be obtained, obtain product data actively uploaded by the user; The obtaining module includes: A full - amount obtaining unit, configured to call all the product data in the user website from the API of the user website; A change obtaining unit, configured to obtain the product data that has changed in the user website after that; Configure a resource address for HTTP callback for the user website, and instruct the user website to send the changed product data to the resource address when the data changes; Subscribe to the resource address to obtain the changed product data actively sent by the user website; The device further includes a first authorization module and a second authorization module; The first authorization module is configured to: before obtaining the product data of the user website, obtain a first authorization from the user website, and the first authorization is used to indicate that data can be obtained from the user website side; The second authorization module is configured to: before responding to the upload instruction for uploading the product data to at least one target medium, obtain a second authorization from the user, and the second authorization is used to indicate that product data can be uploaded to at least one target medium.

4. An electronic device, comprising a bus, a transceiver, a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, characterized in that, When the computer program is executed by the processor, it implements the steps in the data synchronization method described in any one of claims 1 to 2.

5. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps in the data synchronization method described in any one of claims 1 to 2.

Citation Information

Patent Citations

  • Platform commodity stationing method and device, computer device and storage medium

    CN109542916A

  • Product automatic shelving management method, device and equipment and storage medium

    CN111932343A