Data verification methods, storage media, electronic devices, and computer program products
By subscribing to the message topics of the activity data table, the first and second applications are automatically invoked, which solves the problem of inconsistent prices between product cards and details pages, achieves fast and accurate data consistency verification, and improves user experience.
Patent Information
- Application Number
- CN202510074538.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2026-01-06
- Estimated Expiration
- 2045-01-16
AI Technical Summary
In existing technologies, the price-related information on product cards and product detail pages is inconsistently displayed due to different implementation logics in different applications, which affects the shopping experience of consumers. Furthermore, manual sampling is inefficient and lacks accuracy.
By subscribing to the message topics in the activity data table, the first and second applications are automatically invoked to predict and generate price-related information. This information is then compared to identify and correct any inconsistencies in the displayed information, ensuring price consistency between product cards and product detail pages.
It enables quick and accurate verification of the consistency of price-related information between product cards and product detail pages, improving the efficiency and accuracy of random checks and enhancing the shopping experience for consumers.
Smart Images

Figure CN120146945B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of commodity information service technology, and in particular to a data verification method and apparatus, a computer-readable storage medium, an electronic device, and a computer program product. Background Technology
[0002] The vast array of products provided by the product information service system will be displayed to consumers in the form of product cards on the product showcase page. Consumers can click on the product card of a product they are interested in to enter the product details page and view more product information.
[0003] Typically, product cards and product detail pages display similar product information, such as price-related details. When the system is functioning correctly, the price information displayed by consumers through product cards should be consistent with the price information displayed through product detail pages.
[0004] However, in practical applications, because product cards and product detail pages are obtained by different applications based on different implementation logics, there may be inconsistencies in the information displayed for the same product, which affects the shopping experience of consumers.
[0005] Currently, the main method is manual sampling, which involves randomly selecting a portion of products from the product display pages provided by the product information service system to check whether the price information displayed on the product cards and details pages matches. However, given the massive number of products provided by the product information service system, this manual sampling method not only suffers from low sampling efficiency but also suffers from low accuracy due to the very limited number of products that can be sampled.
[0006] How to quickly and accurately verify the consistency of price-related information displayed on product cards and product detail pages has become a technical problem that needs to be solved by those skilled in the art. Summary of the Invention
[0007] This application provides a data verification method and apparatus, a computer-readable storage medium, an electronic device, and a computer program product, which can quickly and accurately verify the consistency of price-related information displayed on the first page and the second page.
[0008] This application provides the following solution:
[0009] A data verification method is provided for verifying the consistency of price-related information displayed on a first page and a second page of a product information service system. The first page aggregates and displays summary information of multiple products, and the second page displays detailed information of one product. Both the summary information and the detailed information include price-related information. The method includes:
[0010] From the products provided by the product information service system, a number of target products belonging to the scope of the target activity are identified, and the target activity is used to adjust the product price of the target products;
[0011] If the first application generates first price-related information for the target product under the target activity and the second application generates second price-related information for the target product under the target activity, then the first application and the second application are invoked respectively, using the identification information of the target product as input; the first application predicts and generates the first price-related information for the target product displayed on the first page based on the activity change message of the target activity provided by the activity data table, wherein the activity change message is generated by the update of the target activity; the second application invokes the service provided by the activity data table to predict and generate the second price-related information for the target product displayed on the second page;
[0012] The system obtains the first price-related information of the target product provided by the first application and the second price-related information of the target product provided by the second application, compares the information, and obtains the data consistency verification result of the multiple target products under the target activity based on the information comparison results of the multiple target products.
[0013] The step of identifying multiple target products belonging to the scope of the target activity from the products provided by the product information service system includes:
[0014] Subscribe to a preset message topic, which is used to receive activity change messages published by the activity data table. The activity change message includes the identification information of the activity that has undergone the activity change, and the identification information of the product to which the activity is targeted.
[0015] If an activity change message for the target activity is obtained from the preset message topic, then the identification information of the multiple target products is extracted from the activity change message.
[0016] The method further includes:
[0017] If there are target products with inconsistent information comparison, and the first price-related information is displayed incorrectly, then identify the reason for the error;
[0018] If the error is caused by the accumulation of activity change messages, the first application updates the first price-related information that displays the error by consuming the accumulated messages. Then, when the first page that aggregates the target product is instantiated and displayed according to the access request submitted by the consumer user, the updated first price-related information is displayed to the consumer user.
[0019] The method further includes:
[0020] If the error is caused by the loss of the activity change message, the lost message is republished through the activity data table in the form of message retry. The first application consumes the lost message, updates the first price-related information that displays the error, and then displays the updated first price-related information to the consumer user when the first page that aggregates the target product is instantiated and displayed according to the access request submitted by the consumer user.
[0021] The method further includes:
[0022] If there is a target product with inconsistent information comparison, and the second price-related information is displayed incorrectly, the second application will make a service call with the identification information of the target product that is displayed incorrectly as input. The service will update the second price-related information that is displayed incorrectly based on the activity content stored in the activity data table. Then, when the second page corresponding to the target product is instantiated and displayed according to the access request submitted by the consumer user, the updated second price-related information will be displayed to the consumer user.
[0023] The product information service system provides product purchase services for multiple online stores, and the method further includes:
[0024] From a plurality of online stores that fall within the scope of the target activity, identify at least one target online store;
[0025] Then, determining multiple target products belonging to the scope of the target activity from the products provided by the product information service system includes: determining the products in the target online store that belong to the scope of the target activity as the target products.
[0026] The product information service system integrates offline physical stores and multiple online stores to provide product purchase services.
[0027] The method further includes:
[0028] When the target activity undergoes an activity change, the multiple target products are identified, and the price-related information of the target products displayed on the first page and the second page is checked for data consistency.
[0029] The product price-related information includes the product price and the activity identification information corresponding to that product price.
[0030] A data verification device is provided to perform data consistency verification on price-related information displayed on a first page and a second page of a product information service system. The first page is used to aggregate and display summary information of multiple products, and the second page is used to display detailed information of one product. Both the summary information and the detailed information include price-related information. The device includes:
[0031] The product determination unit is used to determine, from the products provided by the product information service system, multiple target products belonging to the scope of the target activity, wherein the target activity is used to adjust the product price of the target products;
[0032] The application invocation unit is configured to, when a first application generates first price-related information of the target product under the target activity and a second application generates second price-related information of the target product under the target activity, invoke the first application and the second application respectively, using the identification information of the target product as input; the first application predicts and generates the first price-related information of the target product displayed on the first page based on the activity change message of the target activity provided by the activity data table, wherein the activity change message is generated by the update of the target activity; the second application invokes the service provided by the activity data table to predict and generate the second price-related information of the target product displayed on the second page;
[0033] The information comparison unit is used to obtain the first price-related information of the target product provided by the first application and the second price-related information of the target product provided by the second application, perform information comparison, and obtain the data consistency verification result of the multiple target products under the target activity based on the information comparison results of the multiple target products.
[0034] A computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of any of the preceding methods.
[0035] An electronic device, comprising:
[0036] One or more processors; and
[0037] A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of any of the preceding methods.
[0038] A computer program product includes a computer program / computer executable instructions that, when executed by a processor in an electronic device, implement the steps of any of the preceding methods.
[0039] According to the specific embodiments provided in this application, the following technical effects are disclosed:
[0040] In this embodiment of the application, multiple target products within the scope of the target activity can be identified, and the identification information of the target products can be used as input to call the first application and the second application currently used in the product information service system.
[0041] The first application is used to predict product price information on the first page. Therefore, when the first application is called, it can provide the first price information of the target product displayed on the first page. The second application is used to predict product price information on the second page. Therefore, when the second application is called, it can provide the second price information of the target product displayed on the second page.
[0042] After obtaining the first and second price-related information of the target product, information comparison can be performed to quickly and accurately verify the data consistency of the target product under the target activity.
[0043] Of course, any product implementing this application does not necessarily need to achieve all of the advantages described above at the same time. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a schematic diagram of the first page provided in an embodiment of this application;
[0046] Figure 2 This is a schematic diagram of the second page provided in an embodiment of this application;
[0047] Figure 3 This is a flowchart of the data verification method provided in the embodiments of this application;
[0048] Figure 4This is a schematic diagram of the data verification device provided in the embodiments of this application;
[0049] Figure 5 This is a schematic diagram of the electronic device provided in the embodiments of this application. Detailed Implementation
[0050] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0051] When consumers make online purchases, the product information service system can expose a vast number of products through product display pages in the form of applications, web pages, or mini-programs.
[0052] Depending on the display requirements, product display pages can take on different types of forms. For example, a first page might aggregate and display summary information for multiple products. See also... Figure 1 The page illustration shows that the first page provides multiple resource slots (also known as slots, display slots, etc.). Different products can be placed in the corresponding resource slots through product cards to expose the products. In this example, product cards can be used to display product images, product names, product prices, and other product summary information to consumers.
[0053] For example, a product display page can function as a second page showcasing detailed information about a specific product. For instance, after a consumer views multiple products aggregated on the first page and clicks on the product card of a product they are interested in, the product information service system can further provide a details page for that product, displaying more product information to the consumer. This details page is the second page. For example, if a consumer clicks... Figure 1 After viewing the product card for product 1 on the page, you can be redirected to... Figure 2 The product details page for product 1 shown.
[0054] Understandably, the first page and the second page in this application embodiment refer to two different types of pages, each corresponding to a different product display method. Specifically, the first page can be a product list, aggregating and displaying summary information of multiple products; the second page can independently display the detailed information of a single product.
[0055] To ensure a smooth shopping experience for consumers, the information displayed for the same product on both the first and second pages should be consistent, especially the consistency of price-related information. However, in practice, because the price-related information on the first and second pages is obtained by different applications through different implementation logics, inconsistencies in information display may occur.
[0056] In this embodiment, the product price information displayed on the product card on the first page is provided by the first application, and the price information displayed on the second page is provided by the second application. In this embodiment, the product price information may include at least the product price and the corresponding activity identifier information. For example, in the example above, the product price information displayed for product 1 is 54.9 / box, with a 10% discount for buying 2 items.
[0057] Specifically, an activity data table can be created and maintained. This table stores activity information for multiple marketing activities. For example, activity information may include: activity identifiers (activity name); the scope of application (which products offered by the product information service system are eligible for the activity); and activity details related to product price adjustments (specific activity plans such as discounts, trade-ins, and spending-based reductions). Marketers can configure the data table according to activity requirements. For example, for a new marketing activity, the activity can be configured by adding the activity to the data table; for an ended marketing activity, it can be configured by deleting the activity; and for a marketing activity that needs to be edited, the activity can be configured by modifying the activity.
[0058] Regardless of the method used to configure the activity, when an activity change occurs and the activity configuration is completed, the activity data table will act as a message producer, publishing the activity change message to a preset message topic, such as an incremental topic. The activity change message will at least include: the activity identifier, the changed activity content, and which products the activity change applies to, etc., the specifics of which can be determined based on usage requirements.
[0059] Correspondingly, the first application, acting as a message consumer, can receive activity change messages from incremental topics and update the price-related information in the product card of the product affected by the activity change. In other words, the first application updates and displays product price-related information by consuming activity change messages.
[0060] For the second application, when an activity change occurs and the activity configuration is completed, it can call the service provided by the activity data table. This service updates the data based on the activity changes in the activity data table, obtaining the updated product price information, which is then provided to the second application. The second application then displays this updated product price information on the product details page of the product affected by the activity change. In other words, the second application updates and displays product price information through service calls.
[0061] Therefore, it can be concluded that when the first and second applications update product price-related information, the data source domain used is the active data table. When the product information service system is running normally, the product price-related information displayed on the product card and product details page should be consistent in both applications. Although the update processing is based on the same data source, different implementation logics still lead to inconsistencies in the displayed information during actual application.
[0062] In response, this application provides a data verification scheme that automatically performs consistency judgment on the price-related information displayed on the first page and the second page, effectively solving the problems of low sampling efficiency and low accuracy of sampling results in existing manual sampling inspections.
[0063] The implementation process of the data verification method in this application embodiment will be explained below with specific examples. See [link to relevant documentation]. Figure 3 The flowchart shown may include:
[0064] S301: From the products provided by the product information service system, identify multiple target products that belong to the scope of the target activity, and the target activity is used to adjust the product price of the target products.
[0065] In this embodiment of the application, the goods within the scope of the target activity can be identified as the target goods. The target goods are used as the verification object, and the data consistency verification is achieved by using the product price information of the target goods on the first page and the second page.
[0066] In one example, all products within the scope of the target activity can be identified as target products, enabling data consistency verification of all products and effectively ensuring the accuracy and reliability of the data verification results.
[0067] In another example, based on usage requirements, a subset of products within the scope of the target activity, such as featured products—those prioritized for recommendation to consumers during the target activity—can be identified as target products. Utilizing these products, which are given priority exposure to consumers, for data consistency verification improves verification efficiency and ensures the accuracy of price-related information for products displayed to consumers. Furthermore, it helps alleviate the access pressure on the secondary application during data verification. This is because the secondary application's capacity is limited within the overall design of the product information service system; service calls to a limited number of target products reduce the access pressure on the secondary application, ensuring its stable operation.
[0068] As described above, the activity data table stores activity information for all marketing activities. Accessing the activity data table allows you to retrieve multiple target products within the scope of the target activity. Alternatively, to reduce the pressure on the data table, you can refer to the update logic in the first application and extract multiple target products within the scope of the target activity from activity change messages by listening to incremental topics.
[0069] Specifically, a preset message topic can be subscribed to. This preset message topic is used to receive activity change messages published by the activity data table. The activity change message includes the identification information of the activity that has undergone the activity change, as well as the identification information of the products targeted by the activity. If the activity change message of the target activity is obtained from the preset message topic, the identification information of the multiple target products is extracted from the activity change message. In this way, it can be ensured that the target products used for data verification are consistent with the products used in the first application update process. Targeted data verification of the products for which the first application performs update processing helps to improve data verification efficiency.
[0070] In other words, it is possible to listen for activity change messages published from the activity data table to the target activity under the incremental Topic. These messages contain information about the products participating in the target activity. By consuming the activity change messages, the identification information of the target product, i.e., the product ID, can be obtained.
[0071] Additionally, it should be noted that if the product information service system provides product purchase services to multiple online stores, and considering that data verification for a massive number of products would increase the access pressure on the second application, this embodiment of the application, when determining the target product, can first identify at least one target online store from among the multiple online stores belonging to the scope of the target activity, and then determine the products in the target online store that belong to the scope of the target activity as the target products. This helps reduce the access pressure on the second application and ensures the stable operation of the second application.
[0072] Understandably, the product information service system in this application embodiment can provide product purchase services solely through online stores under the traditional e-commerce model; or, under the new retail model, it can provide product purchase services by combining offline physical stores and online stores.
[0073] When this solution is applied to the new retail model, there may be multiple physical stores. The product information service system will provide multiple corresponding online stores. Consumers can either go to the physical stores to purchase products, or they can view and purchase the products offered by the physical stores through the corresponding online stores.
[0074] In practice, marketing activities conducted by stores in different regions may vary. However, multiple stores within the same region typically conduct the same marketing activities simultaneously; that is, multiple stores within the same region fall under the scope of the same marketing activity. Thus, as an example, target online stores can be selected based on region. For instance, if the target activity applies to products offered by five stores in the same region, one of these stores can be identified as the target online store, and all or some of the products from that store participating in the target activity can be designated as the target products.
[0075] Understandably, if the scope of the target activity includes one store, then that store is the target online store. For example, if the target activity is a marketing campaign for a newly opened store, and its scope applies to the products offered by that store, then the newly opened store can be identified as the target online store.
[0076] This application does not specifically limit the implementation method of determining the target online store, the number of target online stores, etc.
[0077] Preferably, in this embodiment of the application, when a target activity undergoes changes, multiple target products can be identified, and data consistency verification can be performed on the price-related information of the target products displayed on the first page and the second page. In other words, when it is determined that a target activity has undergone changes such as addition, deletion, or modification, the data verification scheme of this embodiment can be activated, which helps to promptly identify products with inconsistent information display and to make targeted information corrections, thereby improving the user experience.
[0078] S302: If the first application generates first price-related information of the target product under the target activity and the second application generates second price-related information of the target product under the target activity, then, using the identification information of the target product as input, the first application and the second application are invoked respectively; the first application predicts and generates the first price-related information of the target product displayed on the first page based on the activity change message of the target activity provided by the activity data table, wherein the activity change message is generated by the update of the target activity; the second application invokes the service provided by the activity data table to predict and generate the second price-related information of the target product displayed on the second page.
[0079] In this embodiment, after the first application and the second application generate price-related information for goods within the scope of the target activity based on changes in the target activity, further background processing can be performed to verify the data consistency of the price-related information generated by the two applications. Specifically, the first application adjusts the price-related information for the target goods according to the target activity, generating first price-related information for the target goods under the target activity; and the second application adjusts the price-related information for the target goods according to the target activity, generating second price-related information for the target goods under the target activity. This means that the first application and the second application respectively perform information generation and information adjustment operations based on changes in the target activity.
[0080] In other words, before data consistency verification, the first price-related information generated by the first application for the target product and displayed on the first page, and the second price-related information generated by the second application for the target product and displayed on the second page, are both prediction information for the target product under the target activity. This embodiment of the application can detect the correctness of these prediction information through data consistency verification. If the verifications are consistent, it can be determined that the prediction results of the first and second applications for the price-related information are correct; if the verifications are inconsistent, to avoid affecting the user experience, the erroneous information can be corrected in a timely manner, and the display can be refreshed for the consumer user. For example, when receiving a consumer user's access request for a product for which erroneous information correction has been performed, and instantiating and displaying its corresponding page, the updated price-related information can be displayed to the consumer user, ensuring that the price-related information of the product seen by the user through the first and second pages is consistent.
[0081] Specifically, after obtaining the product ID of the target product, the system can use the product ID as input to call a first application to obtain first price-related information, and call a second application to obtain second price-related information. Specifically, the first application, upon receiving the call, can read the predicted first price-related information for the target product from the product cards included on the first page; the second application, upon receiving the call, can read the predicted second price-related information for the target product from a second page, such as the product details page.
[0082] S303: Obtain the first price-related information of the target product provided by the first application and the second price-related information of the target product provided by the second application, compare the information, and obtain the data consistency verification result of the multiple target products under the target activity based on the information comparison of the multiple target products.
[0083] After obtaining the first price-related information displayed on the product card of the target product provided by the first application, and the second price-related information displayed on the product details page of the target product provided by the second application, information comparison can be performed. For example, it can be determined whether the product prices are the same, and whether the names of the promotions the products participate in are the same, etc. If the first and second price-related information are both identical, it can be determined that the information displayed on the product card and the product details page for the target product is consistent.
[0084] Furthermore, after comparing information for multiple target products, the data consistency verification result of the target products under the target activity can be obtained based on the information comparison results of multiple target products.
[0085] If inconsistencies in information display are found during data verification, the cause can be analyzed so that errors can be corrected in a timely manner.
[0086] Through extensive analysis, the inventors discovered that the inconsistency in information display might be caused by a backlog of change messages. In other words, the first application might fail to consume change messages in a timely manner during the update process, resulting in the price-related information displayed on the product card not being updated synchronously with the activity changes. Alternatively, the inconsistency could be caused by abnormal network conditions. For example, abnormal network conditions could lead to the loss of change messages, affecting the update processing results of the first application. Similarly, abnormal network conditions could cause exceptions when the second application makes service calls, affecting the update processing results of the second application.
[0087] Correspondingly, the embodiments of this application can provide the following error message correction scheme:
[0088] In one scenario, if there is a target product with inconsistent information comparison, and the first price-related information is displayed incorrectly, the cause of the error is identified. If the cause of the error is the accumulation of activity change messages, the first application updates the first price-related information that is displayed incorrectly by consuming the accumulated messages. Then, when the first page that aggregates the target product is instantiated and displayed according to the access request submitted by the consumer user, the updated first price-related information is displayed to the consumer user.
[0089] In other words, if the reason for the inconsistency in information display is that the first application did not consume the activity change message in a timely manner, the first application can be triggered to consume the backlog message to update the price-related information displayed in the product card of the target product, so as to ensure that the price-related information viewed by the user through the first page and the second page is consistent.
[0090] In another scenario, if the first price-related information is displayed incorrectly, and the error is due to the loss of the activity change message, the lost message is republished through the activity data table via message retry. The first application then consumes the lost message, updates the incorrectly displayed first price-related information, and then displays the updated first price-related information to the consumer user when instantiating and displaying the first page that aggregates the target product based on the access request submitted by the consumer user.
[0091] In other words, if the reason for the inconsistency in information display is that the first application has not received the activity change message, the activity data table can be triggered to republish the activity change message of the target activity to the incremental topic, so that the first application can receive and consume the republished message from the incremental topic to update the price-related information displayed in the product card of the target product, thereby ensuring that the price-related information viewed by the user through the first page and the second page is consistent.
[0092] In another scenario, if there are target products with inconsistent information and the second price-related information is displayed incorrectly, the second application will make a service call with the identification information of the target product displaying the error as input. The service will then update the second price-related information displaying the error based on the activity content stored in the activity data table. Subsequently, when the second page corresponding to the target product is instantiated and displayed according to the access request submitted by the consumer user, the updated second price-related information will be displayed to the consumer user.
[0093] In other words, if the second price-related information displayed on the product details page is incorrect, it may be due to an abnormal service call. The second application can be triggered to make another service call with the product ID of the target product that is displaying the error as the input parameter. The service will then update the target activity based on the changes in the activity data table and provide the updated second price-related information to the second application. This will update the price-related information displayed on the second page of the target product, ensuring that the price-related information viewed by the user through the first page and the second page is consistent.
[0094] In summary, the embodiments of this application can identify multiple target products within the scope of the target activity, and, using the identification information of the target products as input, respectively call the first application and the second application currently used in the product information service system. Specifically, the first application is used to predict and generate product price-related information for the first page; therefore, upon being called, the first application can provide the first price-related information of the target product displayed on the first page. Similarly, the second application is used to predict and generate product price-related information for the second page; therefore, upon being called, the second application can provide the second price-related information of the target product displayed on the second page.
[0095] After obtaining the first and second price-related information of the target product, information comparison can be performed to quickly and accurately verify the data consistency of the target product under the target activity.
[0096] If the target products encompass all products within the scope of the target activity, full-scale product data verification ensures the accuracy and reliability of the verification results. If the target products are only a subset of products within the scope of the target activity, targeted verification of these specific products improves verification efficiency and clarifies which products within the scope of the target activity have completed verification and which have not. Optionally, for products that have not completed verification, data consistency verification can be performed in batches according to verification requirements. For example, the verification process for these products can be initiated when the system is idle, which also achieves full-scale product data verification.
[0097] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties. Furthermore, the collection, use and processing of the relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and corresponding operation portals are provided for users to choose to authorize or refuse.
[0098] Corresponding to the foregoing method embodiments, this application also provides a data verification device for verifying the consistency of price-related information displayed on a first page and a second page for products provided by a product information service system. The first page is used to aggregate and display summary information of multiple products, and the second page is used to display detailed information of one product. Both the summary information and the detailed information include price-related information. See also Figure 4 The device may include:
[0099] The product determination unit 401 is used to determine multiple target products belonging to the scope of the target activity from the products provided by the product information service system, wherein the target activity is used to adjust the product price of the target products;
[0100] Application invocation unit 402 is configured to, when a first application generates first price-related information of the target product under the target activity and a second application generates second price-related information of the target product under the target activity, invoke the first application and the second application respectively, using the identification information of the target product as input; the first application predicts and generates the first price-related information of the target product displayed on the first page based on the activity change message of the target activity provided by the activity data table, wherein the activity change message is generated by the update of the target activity; the second application invokes the service provided by the activity data table to predict and generate the second price-related information of the target product displayed on the second page;
[0101] The information comparison unit 403 is used to obtain the first price-related information of the target product provided by the first application and the second price-related information of the target product provided by the second application, perform information comparison, and obtain the data consistency verification result of the multiple target products under the target activity based on the information comparison of the multiple target products.
[0102] Specifically, the product determination unit can be used for:
[0103] Subscribe to a preset message topic, which is used to receive activity change messages published by the activity data table. The activity change message includes the identification information of the activity that has undergone the activity change, and the identification information of the product to which the activity is targeted.
[0104] If an activity change message for the target activity is obtained from the preset message topic, then the identification information of the multiple target products is extracted from the activity change message.
[0105] The device further includes:
[0106] The error cause identification unit is used to identify the error cause when there is a target product with inconsistent information comparison and the first price-related information is displayed incorrectly.
[0107] The update processing unit is configured to update the first price-related information displaying the error by consuming the accumulated activity change messages through the first application when the error is caused by the accumulation of activity change messages. Then, when the first page containing the target product is instantiated and displayed according to the access request submitted by the consumer user, the updated first price-related information is displayed to the consumer user.
[0108] The update processing unit is further configured to, when the error is caused by the loss of the activity change message, republish the lost message through the activity data table in the form of message retry, and have the first application consume the lost message to update the first price-related information that displays the error. Then, when the first page that aggregates the target product is instantiated and displayed according to the access request submitted by the consumer user, the updated first price-related information is displayed to the consumer user.
[0109] The device further includes:
[0110] The update processing unit is used to make a service call through the second application when there is a target product with inconsistent information comparison and the second price-related information is displayed incorrectly. The service updates the second price-related information displayed incorrectly based on the activity content stored in the activity data table. Then, when the second page corresponding to the target product is instantiated and displayed according to the access request submitted by the consumer user, the updated second price-related information is displayed to the consumer user.
[0111] The product information service system provides product purchase services for multiple online stores, and the device further includes:
[0112] The store determination unit is used to determine at least one target online store from a plurality of online stores belonging to the scope of the target activity.
[0113] Therefore, the product determination unit can be specifically used to: determine the products in the target online store that belong to the scope of the target activity as the target products.
[0114] The product information service system integrates offline physical stores and multiple online stores to provide product purchase services.
[0115] The device further includes:
[0116] The activity change monitoring unit is used to monitor changes to the target activity, and when the target activity changes, to identify the multiple target products and to perform data consistency verification on the price-related information of the target products displayed on the first page and the second page.
[0117] The product price-related information includes the product price and the activity identification information corresponding to that product price.
[0118] In addition, embodiments of this application also provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps of the method described in any of the foregoing method embodiments.
[0119] And an electronic device, comprising:
[0120] One or more processors; and
[0121] A memory associated with the one or more processors, the memory being used to store program instructions that, when read and executed by the one or more processors, perform the steps of the method described in any of the foregoing method embodiments.
[0122] Furthermore, embodiments of this application also provide a computer program product, including a computer program / computer executable instructions, which, when executed by a processor in an electronic device, implement the steps of any of the methods described in the foregoing method embodiments.
[0123] in, Figure 5 The architecture of an electronic device is illustrated by example. For instance, device 500 could be a mobile phone, computer, digital broadcasting terminal, messaging device, game console, tablet device, medical device, fitness equipment, personal digital assistant, aircraft, etc.
[0124] Reference Figure 5 The device 500 may include one or more of the following components: processing component 502, memory 504, power supply component 506, multimedia component 508, audio component 510, input / output (I / O) interface 512, sensor component 514, and communication component 516.
[0125] Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording operations. Processing component 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods provided in this disclosure. Furthermore, processing component 502 may include one or more modules to facilitate interaction between processing component 502 and other components. For example, processing component 502 may include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
[0126] Memory 504 is configured to store various types of data to support the operation of device 500. Examples of this data include instructions for any application or method operating on device 500, contact data, phonebook data, messages, pictures, videos, etc. Memory 504 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.
[0127] Power supply component 506 provides power to various components of device 500. Power supply component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 500.
[0128] Multimedia component 508 includes a screen that provides an output interface between device 500 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of touch or swipe actions but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 508 includes a front-facing camera and / or a rear-facing camera. When device 500 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0129] Audio component 510 is configured to output and / or input audio signals. For example, audio component 510 includes a microphone (MIC) configured to receive external audio signals when device 500 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting audio signals.
[0130] Input / output (I / O) interface 512 provides an interface between processing component 502 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, power buttons, and lock buttons.
[0131] Sensor assembly 514 includes one or more sensors for providing state assessments of various aspects of device 500. For example, sensor assembly 514 may detect the on / off state of device 500, the relative positioning of components such as the display and keypad of device 500, changes in the position of device 500 or a component of device 500, the presence or absence of user contact with device 500, the orientation or acceleration / deceleration of device 500, and temperature changes of device 500. Sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 514 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.
[0132] Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. Device 500 can access wireless networks based on communication standards, such as WiFi, or mobile communication networks such as 2G, 3G, 4G / LTE, and 5G. In one exemplary embodiment, communication component 516 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 516 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
[0133] In an exemplary embodiment, device 500 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform the methods described above.
[0134] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, which can be executed by a processor 520 of device 500 to perform the method provided by the present disclosure. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.
[0135] As can be seen from the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.
[0136] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to mutually. Each embodiment focuses on describing the differences from other embodiments. In particular, for system or system embodiments, since they are basically similar to method embodiments, the description is relatively simple, and relevant parts can be referred to the descriptions in the method embodiments. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without creative effort.
[0137] The solutions provided in this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the methods and core ideas of this application. Furthermore, those skilled in the art will recognize that, based on the ideas of this application, there will be changes in the specific implementation methods and application scope. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A data checking method, characterized by, The method is used for data consistency check on price-related information displayed in a first page and a second page for a product provided by a product information service system, the first page is used for aggregated display of abstract information of a plurality of products, the second page is used for display of detail information of one product, the abstract information and the detail information both include price-related information, and the method comprises the following steps: determining a plurality of target products belonging to a target activity from products provided by the product information service system, the target activity is used for adjusting a product price of the target product; if a first application generates first price-related information of the target product under the target activity and a second application generates second price-related information of the target product under the target activity, then taking identification information of the target product as input, the first application and the second application are called respectively; the first application generates the first price-related information of the target product displayed through the first page according to an activity change message of the target activity provided by an activity data table, the activity change message is generated by updating the target activity; the second application generates the second price-related information of the target product displayed through the second page according to a service provided by the activity data table; obtaining the first price-related information of the target product provided by the first application and the second price-related information of the target product provided by the second application, performing information comparison, and obtaining a data consistency check result of the plurality of target products under the target activity according to the information comparison result of the plurality of target products.
2. The method of claim 1, wherein, The method further comprises the following steps: subscribing to a preset message topic, the preset message topic is used for receiving an activity change message published by the activity data table, the activity change message includes identification information of an activity generating the activity change and identification information of a product targeted by the activity; if the activity change message of the target activity is obtained from the preset message topic, then the identification information of the plurality of target products is extracted from the activity change message.
3. The method of claim 1, wherein, The method further comprises the following steps: if there is a target product with inconsistent information comparison, and the first price-related information is displayed incorrectly, then identifying an error cause; if the error cause is the accumulation of the activity change message, then the first application is used to update the first price-related information displayed incorrectly in a manner of consuming the accumulated message, and then the updated first price-related information is displayed to a consumer user when the first page aggregated with the target product is instantiated and displayed according to an access request submitted by the consumer user.
4. The method of claim 3, wherein, The method further comprises the following steps: If the error reason is that the active change message is lost, the lost message is re-published through the active data table in a message retry manner, and the first application consumes the lost message, updates the first price-related information that exhibits an error, and then when the first page that aggregates the target commodity is instantiated and displayed according to the access request submitted by the consumer user, the updated first price-related information is displayed to the consumer user.
5. The method of claim 1, wherein, The method further includes: If there is a target commodity with inconsistent information and an error in the display of the second price-related information, the second application is used to call a service with the identification information of the target commodity that exhibits an error as input, so that the service updates the second price-related information that exhibits an error according to the active content saved in the active data table, and then when the second page corresponding to the target commodity is instantiated and displayed according to the access request submitted by the consumer user, the updated second price-related information is displayed to the consumer user.
6. The method according to any one of claims 1 to 5, characterized in that, The commodity information service system provides commodity purchase services for multiple online stores, and the method further includes: At least one target online store is determined from the multiple online stores that belong to the target activity application scope. Then, the multiple target commodities that belong to the target activity application scope are determined from the commodities provided by the commodity information service system, including determining the commodities in the target online store that belong to the target activity application scope as the target commodities.
7. The method of claim 6, wherein The commodity information service system provides commodity purchase services for multiple online stores and offline physical stores.
8. The method according to any one of claims 1 to 5, characterized in that, The method further includes: When the target activity is changed, the multiple target commodities are determined, and the data consistency of the price-related information displayed in the first page and the second page of the target commodities is verified.
9. The method of any one of claims 1 to 5, wherein The price-related information includes commodity price and activity identification information corresponding to the commodity price.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by a processor to implement the steps of the method of any one of claims 1 to 9.
11. An electronic device, comprising: including: one or more processors; and a memory associated with the one or more processors, the memory being used to store program instructions, the program instructions being read and executed by the one or more processors to perform the steps of the method of any one of claims 1 to 9.
12. A computer program product comprising computer program / computer executable instructions, characterized in that, The computer program / computer executable instructions are executed by the processor in the electronic device to implement the steps of the method of any one of claims 1 to 9. The computer program / computer executable instructions are executed by the processor in the electronic device to implement the steps of the method of any one of claims 1 to 9.
Citation Information
Patent Citations
Commodity price changing method and device, equipment and storage medium
CN111028042A
Article comparison method and device
CN112819559A