Data verification method, storage medium, electronic equipment and computer program product
By determining the target products within the scope of application of target activities in the product information service system, and calling the first application and the second application prediction to generate price-related information for comparison, the problem of inconsistent prices of the product card and the details page is solved, and the rapid and accurate data consistency verification is achieved, and the shopping experience is improved.
Patent Information
- Application Number
- CN202510074538.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-16
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2045-01-16
AI Technical Summary
In the product information service system, the price-related information displayed on the product card and the details page may be inconsistent, which will affect the shopping experience of consumers. The existing manual sampling methods are inefficient and have low accuracy.
By determining multiple target products within the scope of application of target activities, calling the first application and the second application respectively, predicting and generating price-related information displayed on the first page and the second page, and performing information comparison to achieve data consistency verification.
It realizes rapid and accurate consistency verification of the price-related information displayed in the product card and the details page, improving the efficiency and accuracy of data verification, and improving the shopping experience of consumer users.
Smart Images

Figure CN120146945A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of commodity information services, and particularly to a data verification method and device, a computer-readable storage medium, an electronic device, and a computer program product. Background Art
[0002] For the vast number of commodities provided by a commodity information service system, they will be exposed to consumer users in the form of commodity cards through a commodity display page. When a consumer user clicks on the commodity card of an interested commodity, they can enter the detailed page of the commodity to further view more commodity information.
[0003] Generally, some same types of commodity information will be displayed on the commodity card and the commodity detailed page, such as information related to the commodity price. When the system is running normally, the commodity price-related information viewed by the consumer user through the commodity card should be consistent with the commodity price-related information viewed through the commodity detailed page.
[0004] However, in the actual application process, since the commodity card and the detailed page obtain the commodity price-related information respectively by different applications based on different implementation logics, there may be a situation where the information displays are inconsistent for the same commodity, affecting the shopping experience of consumer users.
[0005] Currently, mainly through the method of manual sampling inspection, in the commodity display page provided by the commodity information service system, randomly check whether the price-related information displayed in the commodity cards and detailed pages of some commodities is consistent. Facing the vast number of commodities provided by the commodity information service system, this manual sampling inspection scheme not only has the problem of low sampling inspection efficiency, but also has low accuracy of the sampling inspection results due to the very limited number of commodities that can be sampled.
[0006] How to quickly and accurately perform consistency verification on the price-related information displayed in the commodity card and the commodity detailed page 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 device, a computer-readable storage medium, an electronic device, and a computer program product, which can quickly and accurately perform consistency verification on the price-related information displayed in the first page and the second page.
[0008] This application provides the following solutions:
[0009] A data verification method is used to perform data consistency verification on price-related information displayed on the first page and the second page for the products provided by the product information service system. The first page is used to aggregately display summary information of multiple products, and the second page is used to display detailed information of one of the products. 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, determine multiple target products that belong to the applicable scope of the target activity, where the target activity is used to adjust the product prices of the target products;
[0011] 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 use the identification information of the target product as the input, and call the first application and the second application respectively; the first application predicts and generates the first price-related information of the target product displayed through the first page according to the activity change message of the target activity provided by the activity data table, and the activity change message is generated by the update of the target activity; the second application calls the service provided by the activity data table to predict and generate the second price-related information of the target product displayed through the second page;
[0012] 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 according to the information comparison situation of the multiple target products.
[0013] Among them, determining multiple target products that belong to the applicable scope of the target activity from the products provided by the product information service system includes:
[0014] Subscribe to a preset message topic, where the preset message topic is used to receive the activity change message published by the activity data table, and the activity change message includes the identification information of the activity with activity changes and the identification information of the product targeted by the activity;
[0015] If the activity change message of the target activity is obtained from the preset message topic, then extract the identification information of the multiple target products from the activity change message.
[0016] Among them, the method further includes:
[0017] If there are target products with inconsistent information comparison and the display of the first price-related information is incorrect, then identify the error reason;
[0018] If the cause of the error is the accumulation of the activity change messages, the first application updates the first price-related information showing the error in the way of consuming the accumulated messages. Then, when instantiating and displaying the first page aggregating the target product according to the access request submitted by the consumer user, the updated first price-related information is displayed to the consumer user.
[0019] Wherein, the method further includes:
[0020] If the cause of the error is the loss of the activity change messages, the lost messages are republished through the activity data table in the way of message retry, and the first application consumes the lost messages to update the first price-related information showing the error. Then, when instantiating and displaying the first page aggregating the target product according to the access request submitted by the consumer user, the updated first price-related information is displayed to the consumer user.
[0021] Wherein, the method further includes:
[0022] If there is a target product with inconsistent information comparison and the second price-related information shows an error, the second application makes a service call with the identification information of the target product showing the error as the input, so that the service updates the second price-related information showing the error according to the activity content saved in the activity data table. Then, when instantiating and displaying the second page corresponding to the target product according to the access request submitted by the consumer user, the updated second price-related information is displayed to the consumer user.
[0023] Wherein, the product information service system provides product purchase services for multiple online stores, and the method further includes:
[0024] Determine at least one target online store from multiple online stores belonging to the applicable scope of the target activity;
[0025] Then, determining multiple target products belonging to the applicable scope of the target activity from the products provided by the product information service system includes: determining the products belonging to the applicable scope of the target activity in the target online store as the target products.
[0026] Wherein, the product information service system provides product purchase services by integrating offline physical stores and the multiple online stores.
[0027] Wherein, the method further includes:
[0028] When an activity change occurs in the target activity, determine the multiple target commodities, and perform data consistency verification on the price-related information of the target commodities displayed on the first page and the second page.
[0029] Among them, the commodity price-related information includes the commodity price and the activity identification information corresponding to the commodity price.
[0030] A data verification device performs data consistency verification on the price-related information displayed on the first page and the second page for the commodities provided by the commodity information service system. The first page is used to aggregately display the summary information of multiple commodities, and the second page is used to display the detailed information of one of the commodities. Both the summary information and the detailed information include price-related information. The device includes:
[0031] A commodity determination unit is configured to determine, from the commodities provided by the commodity information service system, multiple target commodities that belong to the applicable scope of the target activity, where the target activity is used to adjust the commodity price of the target commodities;
[0032] An application call unit is configured to, when the first application generates first price-related information of the target commodity under the target activity and the second application generates second price-related information of the target commodity under the target activity, use the identification information of the target commodity as input to call the first application and the second application respectively; the first application predicts and generates the first price-related information of the target commodity displayed through the first page according to the activity change message of the target activity provided by the activity data table, and the activity change message is generated by the update of the target activity; the second application calls the service provided by the activity data table and predicts and generates the second price-related information of the target commodity displayed through the second page;
[0033] An information comparison unit is configured to obtain the first price-related information of the target commodity provided by the first application and the second price-related information of the target commodity provided by the second application, perform information comparison, and obtain the data consistency verification result of the multiple target commodities under the target activity according to the information comparison situation of the multiple target commodities.
[0034] A computer-readable storage medium stores a computer program thereon, and when the program is executed by a processor, it implements the steps of the method described in any one of the foregoing.
[0035] An electronic device includes:
[0036] One or more processors; and
[0037] A memory associated with the one or more processors, the memory being configured to store program instructions that, when read and executed by the one or more processors, perform the steps of the method according to any one of the foregoing.
[0038] A computer program product comprising computer programs / computer-executable instructions that, when executed by a processor in an electronic device, implement the steps of the method according to any one of the foregoing.
[0039] According to the specific embodiments provided in this application, the following technical effects are disclosed in this application:
[0040] In the embodiments of this application, multiple target commodities within the applicable range of a target activity can be determined, and using the identification information of the target commodities as input, the first application and the second application currently in use in the commodity information service system are respectively invoked.
[0041] Among them, the first application is used to predict commodity price-related information in a first page. Therefore, when the first application is invoked, it can provide the first price-related information displayed for the target commodity in the first page; the second application is used to predict commodity price-related information in a second page. Therefore, when the second application is invoked, it can provide the second price-related information displayed for the target commodity in the second page.
[0042] After obtaining the first price-related information and the second price-related information of the target commodity, information comparison can be performed to quickly and accurately achieve data consistency verification of the target commodity under the target activity.
[0043] Of course, it is not necessary for any product implementing this application to simultaneously achieve all the above-mentioned advantages. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following will briefly introduce the drawings required for use in the embodiments. Obviously, the drawings described below are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0045] Figure 1 is a schematic diagram of the first page provided by the embodiments of this application;
[0046] Figure 2 is a schematic diagram of the second page provided by the embodiments of this application;
[0047] Figure 3 is a flowchart of the data verification method provided by the embodiments of this application;
[0048] Figure 4It is a schematic diagram of the data verification device provided by an embodiment of the present application;
[0049] Figure 5 It is a schematic diagram of the electronic device provided by an embodiment of the present application. Detailed implementation manners
[0050] Next, the technical solutions in the embodiments of the present application will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art shall fall within the protection scope of the present application.
[0051] When consumer users conduct online commodity selection, the commodity information service system can expose a large number of commodities through commodity display pages in the form of applications, web pages, or mini-programs.
[0052] Under different display requirements, the commodity display page can be embodied as different types of pages. For example, a first page that aggregates and displays the summary information of multiple commodities. Refer to Figure 1 In the shown page schematic diagram, there are multiple resource positions (which can also be called slots, display positions, etc.) provided on the first page. Different commodities can be put into the corresponding resource positions in the form of commodity cards for commodity exposure. In this example, through the commodity cards, the summary information of the commodities such as commodity pictures, commodity names, and commodity prices can be displayed for consumer users to view.
[0053] For another example, the commodity display page can be embodied as a second page that displays the detailed information of a specific commodity. For example, when a consumer user views multiple commodities aggregated and displayed on the first page and clicks on the commodity card of the commodity of interest, the commodity information service system can further provide the detailed page of the commodity to display more commodity information of the commodity to the consumer user. This commodity detailed page is the second page. For example, when the consumer user clicks Figure 1 on the commodity card of Commodity 1 on the page, it can jump to Figure 2 the detailed page of Commodity 1 shown.
[0054] It can be understood that the first page and the second page in the embodiments of the present application refer to two different types of pages, corresponding to different commodity display methods. Among them, the first page can aggregate and display the summary information of multiple commodities in the form of a commodity list; the second page can independently display the detailed information of a single commodity.
[0055] To ensure the shopping experience of consumer users, the consistency of the information displayed for the same product on the first page and the second page should be guaranteed, especially the consistency of the information related to the product price. However, in actual applications, since the price-related information on the first page and the second page is obtained by different applications through different implementation logics, there may be a situation where the information display is inconsistent.
[0056] Among them, the price-related information displayed in the product card on the first page is provided by the first application, and the price-related information displayed on the second page is provided by the second application. In the embodiments of the present application, the price-related information of the product may at least include the product price and the activity identification information corresponding to the product price. For example, the price-related information displayed for Product 1 in the above example is 54.9 / box, 10% off for 2 pieces.
[0057] Specifically, an activity data table can be created and maintained. The activity information of multiple marketing activities is stored in this data table. For example, the activity information may include: the identification information of the activity, that is, the activity name; the scope of application of the activity, that is, which products provided by the product information service system the activity is targeted at; the activity content related to the product price adjustment, that is, specific activity plans such as discounts, trade-ins, and full reduction. Marketers can configure the data table according to the activity requirements. For example, for a new marketing activity, the activity configuration can be achieved by adding an activity in the data table; for an ended marketing activity, the activity configuration can be achieved by deleting the activity in the data table; for a marketing activity that needs to be re-edited, the activity configuration can be achieved by modifying the activity.
[0058] Regardless of which way the activity configuration is achieved, when an activity change occurs and the activity configuration is completed, the activity data table will act as a message producer (Producer) and publish the activity change message under a preset message topic (Topic). For example, this preset message topic can be defined as an incremental Topic. Among them, the activity change message may at least include: the identification information of the activity for which the activity change occurs, the changed activity content, which products the activity change is targeted at, etc., and can be specifically determined according to the usage requirements.
[0059] Correspondingly, as a message consumer (Consumer), the first application can receive the activity change message from under the incremental Topic and accordingly perform update processing on the price-related information in the product card of the product targeted by the activity change. That is to say, the first application realizes the updated display of the price-related information of the product by consuming the activity change message.
[0060] For the second application, when an activity change occurs and the activity configuration is completed, the service provided by the activity data table can be called. Based on the activity change situation in the activity data table, the service performs update processing and provides the updated product price-related information to the second application. The second application then displays the updated product price-related information on the product detail page of the product targeted by the activity change. That is to say, the second application realizes the updated display of product price-related information through service calls.
[0061] It can be seen from this that when the first application and the second application perform update processing on product price-related information, the source domain of the data used is the activity data table. When the product information service system is running normally, the product price-related information updated and displayed on the product card and the product detail page by the two should be the same. Although the update processing is implemented based on the same data source, due to different implementation logics, there are still situations where the displayed information is inconsistent in the actual application process.
[0062] Corresponding to this, the embodiment of the present application provides a data verification scheme to automatically judge the consistency of the price-related information displayed on the first page and the second page, effectively solving the problems of low sampling inspection efficiency and low accuracy of sampling inspection results existing in the existing manual sampling inspection.
[0063] The implementation process of the data verification method in the embodiment of the present application will be explained below with specific examples. Refer to Figure 3 the flowchart shown, which may include:
[0064] S301: Determine multiple target products belonging to the applicable scope of the target activity from the products provided by the product information service system. The target activity is used to adjust the product price of the target products.
[0065] In the embodiment of the present application, the products within the applicable scope of the target activity can be determined as target products. Taking the target products as the verification objects, the data consistency verification is realized by using the product price-related information of the target products on the first page and the second page.
[0066] In one example, all the products within the applicable scope of the target activity can be determined as target products to realize the data consistency verification of all products, effectively ensuring the accuracy and reliability of the data verification results.
[0067] In another example, some products that are key focuses within the applicable scope of the target activity according to usage requirements, such as the promoted products, that is, the products that are preferentially recommended to consumer users in the target activity, can be determined as the target products. Using these products that are preferentially exposed to consumer users to achieve data consistency verification can not only improve the data verification efficiency but also ensure the correctness of the price-related information of the products preferentially displayed for consumer users to view to the greatest extent. Additionally, it helps to relieve the access pressure on the second application brought by data verification. This is because, in the overall design of the product information service system, the bearing capacity of the second application itself is limited. The service calls for a limited number of target products can reduce the access pressure on the second application and ensure the stable operation of the second application.
[0068] As introduced above, the activity data table stores the activity information of all marketing activities, and the activity data table can be accessed to obtain multiple target products within the applicable scope of the target activity. Or, to reduce the access pressure on the data table, the implementation logic of the update process of the first application can also be referred to, and multiple target products within the applicable scope of the target activity can be extracted from the activity change messages by listening to the incremental Topic.
[0069] Specifically, a preset message topic can be subscribed to. The preset message topic is used to receive the activity change messages published by the activity data table. The activity change messages include the identification information of the activity with the activity change and 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 update process of the first application, and targeted data verification is performed on the products for which the first application performs the update process, which helps to improve the data verification efficiency.
[0070] That is to say, the activity change message of the target activity published by the activity data table to the incremental Topic can be listened to. The activity change message covers the information of the products participating in the target activity. By consuming the activity change message, the identification information of the target products, that is, the product id, can be obtained.
[0071] In addition, it should be noted that if the product information service system provides product purchase services for multiple online stores, and considering that data verification for a large number of products will increase the access pressure on the second application, in the embodiment of the present application, when determining the target products, at least one target online store can be determined first from multiple online stores belonging to the applicable scope of the target activity, and then the products belonging to the applicable scope of the target activity in the target online store are determined as the target products. This helps to reduce the access pressure on the second application and ensure the stable operation of the second application.
[0072] Understandably, the product information service system in the embodiments of the present application can provide product purchase services solely through online stores in the traditional e-commerce model; or, in the new retail model, it can provide product purchase services by integrating offline physical stores and online stores.
[0073] When this solution is applied to the new retail model, there may be multiple physical stores, and the product information service system will provide corresponding multiple online stores. Consumers can either go to the physical stores opened offline to select products, or view and select the products provided by the physical stores through the corresponding online stores in the way of online shopping.
[0074] In actual applications, the marketing activities carried out among stores in different regions will be different. However, for multiple stores in the same region, usually the same marketing activities will be carried out simultaneously, that is, multiple stores in the same region belong to the applicable scope of the same marketing activity. Thus, as an example, the target online store can be selected according to the region. For example, if the applicable scope of the target activity includes products provided by 5 stores in the same area, 1 of them can be determined as the target online store, and all or part of the products participating in the target activity in this store can be determined as the target products.
[0075] Understandably, if the applicable scope of the target activity includes 1 store, then this store is the target online store. For example, if the target activity is a marketing activity carried out for a newly opened store, and its applicable scope is the products provided by this store, then this newly opened store can be determined as the target online store.
[0076] The embodiments of the present application do not make specific limitations on the implementation manner of determining the target online store, the number of target online stores, etc.
[0077] Preferably, in the embodiments of the present application, when an activity change occurs in the target activity, multiple target products can be determined, and data consistency verification can be performed on the price-related information displayed by the target products on the first page and the second page. That is to say, when it is determined that an activity change such as addition, deletion, or modification occurs in the target activity, the data verification solution of the embodiments of the present application can be started, which helps to timely discover products with inconsistent information display and perform targeted information correction, improving the usage experience of consumer users.
[0078] S302: If the first application generates the first price-related information of the target commodity under the target activity and the second application generates the second price-related information of the target commodity under the target activity, then, using the identification information of the target commodity as the input, call the first application and the second application respectively; the first application predicts and generates the first price-related information of the target commodity to be displayed on the first page according to the activity change message of the target activity provided in the activity data table, where the activity change message is generated by the update of the target activity; the second application calls the service provided in the activity data table and predicts and generates the second price-related information of the target commodity to be displayed on the second page.
[0079] In the embodiments of the present application, after the first application and the second application generate price-related information for the commodities within the scope of application of the target activity according to the change situation of the target activity, background processing can be further performed to perform data consistency verification on the price-related information generated by the two. Among them, the first application adjusts the price-related information for the target commodity according to the target activity and generates the first price-related information of the target commodity under the target activity, and the second application adjusts the price-related information for the target commodity according to the target activity and generates the second price-related information of the target commodity under the target activity, which means that the first application and the second application respectively perform operations of information generation and information adjustment according to the change situation of the target activity.
[0080] That is to say, before performing data consistency verification, the first price-related information of the target commodity generated by the first application and to be displayed on the first page, and the second price-related information of the target commodity generated by the second application and to be displayed on the second page are both prediction information of the target commodity under the target activity. In the embodiments of the present application, the correctness of these prediction information can be detected through data consistency verification. If the verification is consistent, it can be determined that the prediction results of the first application and the second application for the price-related information are correct; if the verification is inconsistent, to avoid affecting the user experience, the error information can be corrected in a timely manner and refreshed and displayed to the consumer user. For example, when receiving an access request from a consumer user for a commodity for which the error information has been corrected and instantiating and displaying its corresponding page, the updated price-related information can be displayed to the consumer user to ensure that the price-related information of the commodity viewed by the user through the first page and the second page is consistent.
[0081] Specifically, after obtaining the product ID of the target product, the first application can be called with the product ID as the input to obtain the first price-related information, and the second application can be called to obtain the second price-related information. Specifically, when the first application receives the call, it can read the first price-related information currently predicted for the target product from the product cards included in the first page; when the second application receives the call, it can read the second price-related information currently predicted for the target product from the 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, perform information comparison, and obtain the data consistency verification result of the multiple target products under the target activity according to the information comparison situation of the multiple target products.
[0083] After obtaining the first price-related information of the target product displayed in the product card provided by the first application and the second price-related information of the target product displayed in the product details page 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 activities participated in by the product are the same, etc. If the first price-related information and the second price-related information both correspond and are the same, it can be determined that the information display of the product card and the product details page for the target product is consistent.
[0084] Furthermore, after completing the information comparison for multiple target products, the data consistency verification result of the target products under the target activity can be obtained according to the information comparison situation of the multiple target products.
[0085] If inconsistent information display is found during the data verification process, cause analysis can be performed to correct the error information in a timely manner.
[0086] After a large amount of analysis, the inventor found that the reason for the inconsistent information display may be the accumulation of change messages. That is to say, the first application did not consume the change messages in a timely manner during the update process, resulting in the first price-related information displayed through the product card not being synchronized and updated following the activity change situation. And / or, the reason for the inconsistent information display may be an abnormal network status. For example, the abnormal network status causes the loss of change messages, affecting the update processing result of the first application. Another example is that the abnormal network status causes an exception when the second application makes a service call, affecting the update processing result of the second application.
[0087] Correspondingly, the embodiments of the present application can provide the following error information correction solutions:
[0088] In one case, if there is a target product with inconsistent information comparison and the first price-related information is displayed incorrectly, the error cause is identified. If the error cause is the accumulation of activity change messages, the first application updates the incorrectly displayed first price-related information by consuming the accumulated messages. Then, when instantiating and displaying the first page aggregated with the target product according to the access request submitted by the consumer user, the updated first price-related information is displayed to the consumer user.
[0089] That is to say, if the reason for the inconsistent information display is that the first application fails to consume the activity change messages in a timely manner, the first application can be triggered to consume the accumulated messages to update the price-related information displayed in the product card of the target product, ensuring that the price-related information viewed by the user through the first page and the second page is consistent.
[0090] In another case, if the first price-related information is displayed incorrectly and the error cause is the loss of the activity change messages, the lost messages are republished through the activity data table in the form of message retry, and the first application consumes the lost messages to update the incorrectly displayed first price-related information. Then, when instantiating and displaying the first page aggregated with the target product according to the access request submitted by the consumer user, the updated first price-related information is displayed to the consumer user.
[0091] That is to say, if the reason for the inconsistent information display is that the first application fails to receive the activity change messages, the activity data table can be triggered to republish the activity change messages of the target activity to the incremental Topic, so that the first application can receive and consume the republished messages from the incremental Topic to update the price-related information displayed in the product card of the target product, and then ensure that the price-related information viewed by the user through the first page and the second page is consistent.
[0092] In yet another case, if there is a target product with inconsistent information comparison and the second price-related information is displayed incorrectly, the second application makes a service call with the identification information of the target product with the incorrect display as the input, so that the service updates the incorrectly displayed second price-related information according to the activity content saved in the activity data table. Then, when instantiating and displaying the second page corresponding to the target product according to the access request submitted by the consumer user, the updated second price-related information is displayed to the consumer user.
[0093] That is to say, if the display of the second price-related information on the product details page is incorrect, it may be caused by an abnormal service call. The second application can be triggered with the product ID of the target product with the incorrect display as the input parameter to make another service call. The service updates and processes based on the target activity change situation in the activity data table, obtains the updated second price-related information, and provides it to the second application to 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 the present application can determine multiple target products within the applicable scope of the target activity, and use the identification information of the target products as input to separately call the first application and the second application of the current application in the product information service system. Among them, the first application is used to predict and generate the product price-related information on the first page. Therefore, when the first application is called, it can provide the first price-related information displayed on the first page of the target product. The second application is used to predict and generate the product price-related information on the second page. Therefore, when the second application is called, it can provide the second price-related information displayed on the second page of the target product.
[0095] After obtaining the first price-related information and the second price-related information of the target product, information comparison can be performed to quickly and accurately achieve data consistency verification of the target product under the target activity.
[0096] If the target products are all the products within the applicable scope of the target activity, through full-scale product data verification, the accuracy and reliability of the data verification result can be ensured. If the target products are some of the products within the applicable scope of the target activity, through this targeted partial product data verification, the data verification efficiency can be improved. At the same time, it can also be clear which products within the applicable scope of the target activity have completed data verification and which products have not. Optionally, for the products that have not completed data verification, according to the verification requirements, data consistency verification of this part of the products can be implemented in batches. For example, the data verification process for this part of the products can be started when the system is idle, and full-scale product data verification can also be achieved.
[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 for analysis, stored data, displayed data, etc.) involved in the present application are all information and data that have been authorized by the user or fully authorized by all parties. And the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0098] Corresponding to the foregoing method embodiments, an embodiment of the present application further provides a data verification device, which performs data consistency verification on 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 aggregately display summary information of multiple products, and the second page is used to display detailed information of one of the products. Both the summary information and the detailed information include price-related information. Refer to Figure 4 , the device may include:
[0099] A product determination unit 401, configured to determine, from the products provided by the product information service system, multiple target products that belong to the applicable scope of a target activity, where the target activity is used to adjust the product prices of the target products;
[0100] An application calling unit 402, 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, use the identification information of the target product as input to call the first application and the second application respectively; the first application predicts and generates the first price-related information of the target product displayed through the first page according to the activity change message of the target activity provided by the activity data table, and the activity change message is generated by the update of the target activity; the second application calls the service provided by the activity data table to predict and generate the second price-related information of the target product displayed through the second page;
[0101] An information comparison unit 403, configured 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 a data consistency verification result of the multiple target products under the target activity according to the information comparison situation of the multiple target products.
[0102] Among them, the product determination unit may specifically be used for:
[0103] Subscribe to a preset message topic, where the preset message topic is used to receive the activity change message published by the activity data table, and the activity change message includes the identification information of the activity with the activity change and the identification information of the product targeted by the activity;
[0104] If the activity change message of the target activity is obtained from the preset message topic, extract the identification information of the multiple target products from the activity change message.
[0105] Among them, the device further includes:
[0106] An error cause identification unit, configured to identify the error cause when there is a target product with inconsistent information comparison and the display of the first price-related information is incorrect;
[0107] An update processing unit, configured to, when the error cause is the accumulation of activity change messages, update the incorrectly displayed first price-related information by consuming the accumulated messages through the first application, and then, when instantiating and displaying the first page aggregated with the target product according to the access request submitted by the consumer user, display the updated first price-related information to the consumer user.
[0108] Wherein, the update processing unit is further configured to, when the error cause is the loss of activity change messages, republish the lost messages through the activity data table in the manner of message retry, and the first application consumes the lost messages to update the incorrectly displayed first price-related information, and then, when instantiating and displaying the first page aggregated with the target product according to the access request submitted by the consumer user, display the updated first price-related information to the consumer user.
[0109] Wherein, the device further includes:
[0110] An update processing unit, configured to, when there is a target product with inconsistent information comparison and the display of the second price-related information is incorrect, perform a service call through the second application with the identification information of the target product with incorrect display as the input, so that the service updates the incorrectly displayed second price-related information according to the activity content saved in the activity data table, and then, when instantiating and displaying the second page corresponding to the target product according to the access request submitted by the consumer user, display the updated second price-related information to the consumer user.
[0111] Wherein, the product information service system provides product purchase services for multiple online stores, and the device further includes:
[0112] A store determination unit, configured to determine at least one target online store from multiple online stores belonging to the applicable scope of the target activity;
[0113] Then, the product determination unit may specifically be configured to: determine the products belonging to the applicable scope of the target activity in the target online store as the target products.
[0114] Wherein, the product information service system provides product purchase services by integrating offline physical stores and the multiple online stores.
[0115] Wherein, the device further includes:
[0116] An activity change monitoring unit is used to monitor changes for the target activity, and then when an activity change occurs in the target activity, determine the multiple target commodities, and perform data consistency verification on the price-related information of the target commodities displayed on the first page and the second page.
[0117] Among them, the commodity price-related information includes the commodity price and the activity identification information corresponding to the commodity price.
[0118] In addition, an embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, it implements the steps of the method described in any one of the foregoing method embodiments.
[0119] And an electronic device, including:
[0120] One or more processors; and
[0121] A memory associated with the one or more processors, the memory is used to store program instructions, and when the program instructions are read and executed by the one or more processors, they execute the steps of the method described in any one of the foregoing method embodiments.
[0122] In addition, an embodiment of the present application also provides a computer program product, including a computer program / computer executable instruction, and when the computer program / computer executable instruction is executed by a processor in an electronic device, it implements the steps of the method described in any one of the foregoing method embodiments.
[0123] Among them, Figure 5 Exemplarily shows the architecture of the electronic device. For example, device 500 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, an aircraft, etc.
[0124] Referring to Figure 5 , device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input / output (I / O) interface 512, a sensor component 514, and a communication component 516.
[0125] The processing component 502 generally controls the overall operation of the device 500, such as operations associated with display, telephone calls, data communication, camera operation, and recording operation. The processing component 502 may include one or more processors 520 to execute instructions to complete all or part of the steps of the methods provided by the technical solutions of the present disclosure. In addition, the processing component 502 may include one or more modules to facilitate the interaction between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate the interaction between the multimedia component 508 and the processing component 502.
[0126] The memory 504 is configured to store various types of data to support the operation of the device 500. Examples of such data include instructions for any application or method operating on the device 500, contact data, phone book data, messages, pictures, videos, etc. The memory 504 may 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 memory, flash memory, magnetic disk, or optical disk.
[0127] The power component 506 provides power to various components of the device 500. The power component 506 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 500.
[0128] The multimedia component 508 includes a screen that provides an output interface between the 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 touch screen 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 can not only sense the boundaries of touch or swipe actions, but also detect the duration and pressure associated with the touch or swipe operation. In some embodiments, the multimedia component 508 includes a front camera and / or a rear camera. When the device 500 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera can receive external multimedia data. Each of the front camera and the rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
[0129] The audio component 510 is configured to output and / or input audio signals. For example, the audio component 510 includes a microphone (MIC) that is configured to receive external audio signals when the device 500 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals can be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further includes a speaker for outputting audio signals.
[0130] The input / output (I / O) interface 512 provides an interface between the processing component 502 and a peripheral interface module, and the peripheral interface module may be a keyboard, a click wheel, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a power button, and a lock button.
[0131] The sensor component 514 includes one or more sensors for providing an assessment of various aspects of the state of the device 500. For example, the sensor component 514 can detect the on / off state of the device 500, the relative positioning of components, such as the display and keypad of the device 500, the sensor component 514 can also detect a change in the position of the device 500 or a component of the device 500, the presence or absence of user contact with the device 500, the orientation or acceleration / deceleration of the device 500, and the temperature change of the device 500. The sensor component 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor component 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 514 may further include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0132] The communication component 516 is configured to facilitate communication between the device 500 and other devices in a wired or wireless manner. The device 500 can access a wireless network based on a communication standard, such as WiFi, or a mobile communication network such as 2G, 3G, 4G / LTE, 5G, etc. In an exemplary embodiment, the communication component 516 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 further includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can 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, the 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 for performing the above method.
[0134] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 504 including instructions, and the above instructions can be executed by a processor 520 of the device 500 to complete the method provided by the technical solution of the present disclosure. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.
[0135] From the description of the above embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus a necessary general hardware platform. Based on such an 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. The computer software product can be stored in a storage medium, such as a ROM / RAM, a magnetic disk, an optical disc, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in various embodiments or some parts of the embodiments of this application.
[0136] Each embodiment in this specification is described in a progressive manner, and the same or similar parts among the embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The systems and system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art can understand and implement it without creative efforts.
[0137] The above provides a detailed introduction to the solution of this application. Specific examples are used in this article to elaborate on the principle and implementation manner of this application. The description of the above embodiments is only used to help understand the method and its core idea of this application; at the same time, for those of ordinary skill in the art, according to the idea of this application, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to this application.
Claims
1. A data verification method, characterized in that: For commodities provided by a commodity information service system, data consistency check is performed on price-related information displayed on a first page and a second page, the first page is used to aggregate and display summary information of multiple commodities, and the second page is used to display detailed information of one of the commodities, and both the summary information and the detailed information include price-related information, and the method includes: Determining, from the commodities provided by the commodity information service system, a plurality of target commodities belonging to the applicable scope of the target activity, wherein the target activity is used to adjust the commodity prices of the target commodities; 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, the first application and the second application are respectively called with the identification information of the target product as input; the first application predicts and generates first price-related information of the target product displayed on the first page according to the activity change message of the target activity provided by the activity data table, and the activity change message is generated by the update of the target activity; the second application calls the service provided by the activity data table to predict and generate second price-related information of the target product displayed on the second page; Obtain first price-related information of the target product provided by the first application and second price-related information of the target product provided by the second application, perform information comparison, and obtain data consistency verification results of the multiple target products under the target activity based on the information comparison of the multiple target products.
2. The method according to claim 1, characterized in that The step of determining a plurality of target commodities belonging to the applicable scope of the target activity from the commodities provided by the commodity information service system includes: Subscribing to a preset message topic, wherein the preset message topic is used to receive an activity change message published by the activity data table, wherein the activity change message includes identification information of the activity in which the activity change occurs and identification information of the commodity targeted by the activity; If an activity change message of the target activity is obtained from the preset message topic, identification information of the plurality of target commodities is extracted from the activity change message.
3. The method according to claim 1, characterized in that The method further comprises: If there is a target product with inconsistent information, and the first price-related information is displayed incorrectly, identifying the cause of the error; If the cause of the error is the accumulation of activity change messages, the first price-related information displayed incorrectly is updated through the first application by consuming the accumulated messages, and then when the first page that aggregates the target product is instantiated and displayed based on the access request submitted by the consumer user, the updated first price-related information is displayed to the consumer user.
4. The method according to claim 3, characterized in that The method further comprises: If the cause of the error is the loss of the activity change message, the lost message is republished through the activity data table in the form of a message retry, and the first application consumes the lost message, and the first price-related information displayed incorrectly is updated. Then, based on the access request submitted by the consumer user, when the first page that aggregates the target product is instantiated and displayed, the updated first price-related information is displayed to the consumer user.
5. The method according to claim 1, characterized in that: The method further comprises: If there is a target product with inconsistent information comparison, and the second price-related information is displayed incorrectly, the second application is used to make a service call with the identification information of the target product that is displayed incorrectly as input, so that the service can update the second price-related information that is displayed incorrectly according to the activity content stored in the activity data table, and 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.
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: Determine at least one target online store from a plurality of online stores that fall within the applicable scope of the target activity; Then, determining a plurality of target commodities belonging to the applicable scope of the target activity from the commodities provided by the commodity information service system includes: determining commodities in the target online store belonging to the applicable scope of the target activity as the target commodities.
7. The method according to claim 6, characterized in that The commodity information service system integrates offline physical stores and the multiple online stores to provide commodity purchasing services.
8. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: When an activity change occurs in the target activity, the multiple target commodities are determined, and data consistency verification is performed on price-related information of the target commodities displayed on the first page and the second page.
9. The method according to any one of claims 1 to 5, characterized in that: The commodity price related information includes the commodity price and the activity identification information corresponding to the commodity price.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method described in any one of claims 1 to 9 are implemented.
11. An electronic device, characterized in that: include: one or more processors; as well as A memory associated with the one or more processors, the memory being used to store program instructions, wherein when the program instructions are read and executed by the one or more processors, the steps of the method according to any one of claims 1 to 9 are executed.
12. A computer program product comprising a computer program / computer executable instructions, characterized in that: When the computer program / computer executable instructions are executed by a processor in an electronic device, the steps of the method according to any one of claims 1 to 9 are implemented.
Citation Information
Patent Citations
Commodity price changing method and device, equipment and storage medium
CN111028042A
Article comparison method and device
CN112819559A
Page data display method, device and equipment based on cloud computing
CN115393095A
Information exception processing method and device and storage medium
CN115422187A
Price monitoring method and device, equipment, storage medium and program product
CN115564375A