Activity display time verification method, device, equipment and storage medium

Through automated time verification scripts and browser instance technology, the problem of inconsistent promotion activities in application scenarios in many countries has been solved, and efficient and accurate time verification of event display is achieved. It is suitable for cloud technology, artificial intelligence and smart transportation and other fields.

CN114417218BActive Publication Date: 2025-07-18TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In many application scenarios, the activity time calculation errors or rendering errors of promotion activities lead to inconsistent display time in different time zones. The existing solutions require manual verification and low efficiency and accuracy.

Method used

The time verification script calls the management interface to obtain activity configuration information, create a browser instance to load the activity page, obtain the display time, and verify it according to the target configuration time, and automatically verify the activity display time in different time zones.

Benefits of technology

It improves the efficiency and accuracy of the time verification of activity display, reduces manual intervention, has high transplantability and generalization capabilities, and can be flexibly applied to different promotion activities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114417218B_ABST
    Figure CN114417218B_ABST
Patent Text Reader

Abstract

The present application provides a method, device, equipment and storage medium for verifying the activity display time, which relates to the field of artificial intelligence technology and can be applied to various scenarios such as cloud technology, artificial intelligence, intelligent transportation, assisted driving, etc., including: in response to a time verification instruction, calling the promotion activity interface of the management end through a time verification script to obtain the activity configuration information of the promotion activity from the management end; creating at least one browser instance of the corresponding promotion time zone based on the promotion region information; respectively loading the activity pages of the corresponding promotion time zones through each browser instance based on the activity page address information, and obtaining the activity display times displayed in the activity pages of the respective promotion time zones, determining the target configuration times of the respective promotion time zones according to the promotion region information and the activity configuration time data in the preset time zone, and further obtaining the display time verification result. The present application can effectively improve the verification efficiency, accuracy and generalization ability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of Internet technologies, and in particular, to a method, apparatus, device, and storage medium for verifying the display time of an activity. Background Art

[0002] With the development of Internet technologies, a large number of application programs that can provide services to multiple countries simultaneously have emerged. These programs can launch promotion activities for multiple countries at the same time and push the activity pages of the promotion activities to the application program terminals in each country. Usually, a promotion activity is set with an activity time, which can be a start time point or a time range. The activity page will display this activity time to inform the user. In a multi-country application scenario, different countries may be in different time zones. To ensure that the promotion activities start simultaneously, the display times on the activity pages in different time zones are different. If there are calculation errors or rendering errors, etc. in the display time of a certain country, the wrong activity time will be displayed, resulting in asynchronous promotion activities, or the background activity execution time being inconsistent with the foreground display time, causing activity accidents. In existing solutions, usually relevant personnel need to manually verify the display times in each time zone for each activity, which has a high time cost, low verification efficiency and accuracy. Therefore, an improved activity display time verification solution is needed to improve the verification efficiency, accuracy, and generalization ability. Summary of the Invention

[0003] This application provides a method, apparatus, and storage medium for verifying the display time of an activity, which can effectively improve the verification efficiency, accuracy, and generalization ability.

[0004] On the one hand, this application provides a method for verifying the display time of an activity. The method includes:

[0005] In response to a time verification instruction, call the promotion activity interface of the management end through a time verification script to obtain the activity configuration information of the promotion activity from the management end; the activity configuration information includes the activity page address information, promotion region information, and activity configuration time data in a preset time zone of the promotion activity;

[0006] Create browser instances for at least one promotion time zone corresponding to the promotion region information;

[0007] Through each browser instance, load the activity pages of the corresponding promotion time zones based on the activity page address information;

[0008] Based on preset time tag information, obtain the activity display times shown in the activity pages of each promotion time zone from the activity pages loaded by each browser instance;

[0009] Determine the target configuration time of the promotion activity in each promotion time zone respectively according to the promotion region information and the activity configuration time data in the preset time zone;

[0010] Based on the target configuration time, perform time verification on the activity display time of the corresponding promotion time zone to obtain the display time verification result of each activity page.

[0011] On the other hand, an activity display time verification device is provided, and the device includes:

[0012] Script call module: used to respond to the time verification instruction, call the promotion activity interface of the management end through the time verification script to obtain the activity configuration information of the promotion activity from the management end; the activity configuration information includes the activity page address information, promotion region information and activity configuration time data in the preset time zone of the promotion activity;

[0013] Browser instance creation module: used to create browser instances of at least one corresponding promotion time zone based on the promotion region information;

[0014] Activity page loading module: used to load the activity pages of the corresponding promotion time zones respectively through each browser instance based on the activity page address information;

[0015] Activity display time acquisition module: used to acquire the activity display time displayed in the activity pages of each promotion time zone from the activity pages loaded by each browser instance respectively based on the preset time tag information;

[0016] Target configuration time determination module: used to determine the target configuration time of the promotion activity in each promotion time zone respectively according to the promotion region information and the activity configuration time data in the preset time zone;

[0017] Time verification module: used to perform time verification on the activity display time of the corresponding promotion time zone based on the target configuration time to obtain the display time verification result of each activity page.

[0018] On the other hand, a computer device is provided, and the device includes a processor and a memory. At least one instruction or at least one program segment is stored in the memory, and the at least one instruction or the at least one program segment is loaded and executed by the processor to implement the activity display time verification method as described above.

[0019] On the other hand, a computer-readable storage medium is provided, and at least one instruction or at least one program segment is stored in the storage medium. The at least one instruction or the at least one program segment is loaded and executed by a processor to implement the activity display time verification method as described above.

[0020] On the other hand, a server is provided, which includes a processor and a memory. At least one instruction or at least one program segment is stored in the memory, and the at least one instruction or the at least one program segment is loaded and executed by the processor to implement the activity display time verification method as described above.

[0021] On the other hand, a computer program product is provided. The computer program includes computer instructions, and when the computer instructions are executed by a processor, the activity display time verification method as described above is implemented.

[0022] On the other hand, a computer program product is provided. The computer program product includes computer instructions, and when the computer instructions are executed by a processor, the activity display time verification method as described above is implemented.

[0023] The activity display time verification method, device, equipment, storage medium, server, computer program and computer program product provided by this application have the following technical effects:

[0024] In response to a time verification instruction, this application calls the promotion activity interface of the management end through a time verification script to obtain the activity configuration information of the promotion activity from the management end. The activity configuration information includes the activity page address information, promotion region information, and activity configuration time data in a preset time zone of the promotion activity. Create at least one browser instance corresponding to the promotion time zone based on the promotion region information. Then, through each browser instance, load the activity pages corresponding to the promotion time zones based on the activity page address information. And based on the preset time tag information, obtain the activity display times displayed in the activity pages of each promotion time zone from the activity pages loaded by each browser instance. And, determine the target configuration times of the promotion activity in each promotion time zone according to the promotion region information and the activity configuration time data in the preset time zone. Furthermore, perform time verification on the activity display times of the corresponding promotion time zones based on the target configuration times to obtain the display time verification results of each activity page. It can automatically execute the activity display time verification in different time zones through the time verification script, without manual inspection, effectively improving the verification accuracy and efficiency. And, by creating browser instances to load the activity pages, and grabbing the activity display times through the time tag information and verifying them with the target configuration times in the specified time zone, it can simulate the real activity page display scenario to perform the display time verification, and at the same time determine whether there are other rendering anomalies. In addition, the technical solution of this application has high portability, can be flexibly deployed, can be applied to different promotion activities, and has strong generalization ability. Description of the Drawings

[0025] To more clearly illustrate the technical solutions and advantages in the embodiments of the present application or the prior art, the following will briefly introduce the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other accompanying drawings can be obtained based on these drawings.

[0026] Figure 1 It is a schematic diagram of an application environment provided by an embodiment of the present application;

[0027] Figure 2 It is a schematic flowchart of a method for verifying the activity display time provided by an embodiment of the present application;

[0028] Figure 3 It is a schematic diagram of a page of an activity page provided by an embodiment of the present application;

[0029] Figure 4 It is a schematic flowchart of another method for verifying the activity display time provided by an embodiment of the present application;

[0030] Figure 5 It is a schematic flowchart of another method for verifying the activity display time provided by an embodiment of the present application;

[0031] Figure 6 It is a schematic flowchart of another method for verifying the activity display time provided by an embodiment of the present application;

[0032] Figure 7 It is a schematic framework diagram of a device for verifying the activity display time provided by an embodiment of the present application;

[0033] Figure 8 It is a schematic principle diagram of a method for verifying the activity display time provided by an embodiment of the present application;

[0034] Figure 9 It is a hardware structure block diagram of an electronic device for a method for verifying the activity display time provided by an embodiment of the present application;

[0035] Figure 10 It is a schematic structural diagram of a blockchain system provided by an embodiment of the present application. Detailed implementation manners

[0036] The following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, rather than all embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts belong to the scope of protection of the present application.

[0037] It should be noted that in the description and claims of this application and the above-mentioned drawings, the terms "first", "second", etc. are used to distinguish similar objects and do not necessarily describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances so that the embodiments of this application described here can be implemented in an order other than those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or server that includes a series of steps or sub-modules does not necessarily have to be limited to those steps or sub-modules clearly listed, but may include other steps or sub-modules that are not clearly listed or are inherent to these processes, methods, products, or devices.

[0038] Before further elaborating on the embodiments of this application, the nouns and terms involved in the embodiments of this application are described. The nouns and terms involved in the embodiments of this application are applicable to the following explanations.

[0039] HTML (HyperText Markup Language, text markup language): A markup language. It includes a series of tags. Through these tags, the formats of documents on the network can be unified, connecting scattered Internet resources into a logical whole. HTML text is descriptive text composed of HTML commands.

[0040] Puppeteer: An official headless Chrome tool of the Google Chrome team. It is a Node library that provides a high-level API to control the headless version of Chrome on the DevTools protocol and can also be configured to use the full (non-headless) Chrome.

[0041] Please refer to Figure 1 , Figure 1 which is a schematic diagram of an application environment provided by the embodiments of this application. As Figure 1 shown, this application environment may at least include server 01 and terminal 02. In practical applications, terminal 01, server 01, and terminal 02 can be directly or indirectly connected through wired or wireless communication methods, and this application does not make any restrictions here.

[0042] In the embodiments of the present application, the server 01 may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers. It may also be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0043] Specifically, cloud technology refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or local area network to achieve data computing, storage, processing, and sharing. It distributes computing tasks across a resource pool composed of a large number of computing devices, enabling various application systems to obtain computing power, storage space, and information services according to needs. The network that provides resources is called the "cloud". Among them, artificial intelligence cloud services are generally also referred to as AIaaS (AI as a Service). This is a mainstream service method for artificial intelligence platforms. Specifically, the AIaaS platform will split several common AI services and provide independent or packaged services in the cloud. This service model is similar to opening an AI-themed mall: all developers can access and use one or more artificial intelligence services provided by the platform through the API interface. Some senior developers can also use the AI frameworks and AI infrastructure provided by the platform to deploy and operate their own exclusive cloud artificial intelligence services.

[0044] Specifically, the above-mentioned server may include physical devices, which may specifically include a network communication sub-module, a processor, a memory, etc., or may include software running on the physical device, which may specifically include application programs, etc.

[0045] In the embodiments of the present application, the terminal 02 may include physical devices such as smartphones, desktop computers, tablet computers, laptop computers, digital assistants, augmented reality (AR) / virtual reality (VR) devices, intelligent voice interaction devices, smart home appliances, smart wearable devices, in-vehicle terminal devices, etc., or may include software running on the physical device, such as application programs, etc.

[0046] In the embodiments of the present application, the server 01 may run a management terminal, a background server, and a time verification server. The time verification server is used to provide the activity display time verification service of the present application; the management terminal is a business management terminal, which is used to receive and store configuration information for the application program, such as activity configuration information for promotion activities; the background server may be a web server, which is used to interact with the terminal 01 to feedback page data, etc. to the terminal 01. Specifically, the management terminal, the background server, and the time verification server may be respectively deployed on different servers, or any two or all three of them may be deployed on the same server, and the server here may be a server cluster. The terminal 02 may run the client of the application program, and be able to send a page data request to the server 01, and display the activity page based on the page data feedback by the server 01. The activity display time of the activity page may be calculated by the terminal or carried in the page data. It can be understood that, in some cases, the present application may also execute the activity display time verification service through the terminal.

[0047] In addition, it can be understood that Figure 1 What is shown is only an application environment of an activity display time verification method. This application environment may include more or fewer nodes, and the present application does not make any restrictions here.

[0048] The application environment involved in the embodiments of the present application, or the terminal 02 and the server 01 in the application environment, etc. may be a distributed system formed by connecting a client and multiple nodes (any form of computing device accessing the network, such as a server, a user terminal) through network communication. The distributed system may be a blockchain system, and this blockchain system may provide the above-mentioned activity display time verification service and data storage service, etc.

[0049] See Figure 10 , Figure 10 FIG. is an optional structural schematic diagram of the distributed system 100 applied to the blockchain system provided by the embodiments of the present invention. It is formed by multiple nodes (any form of computing device accessing the network, such as a server, a user terminal) and a client. A peer-to-peer (P2P) network is formed between the nodes. The P2P protocol is an application layer protocol running on top of the Transmission Control Protocol (TCP). In the distributed system, any machine such as a server or a terminal can join and become a node. The node includes a hardware layer, an intermediate layer, an operating system layer, and an application layer.

[0050] The following introduces a method for verifying the display time of an event based on the above application environment. It is applied to a server or a terminal. The embodiments of the present application can be applied to various scenarios, including but not limited to cloud technology, artificial intelligence, intelligent transportation, assisted driving, etc. Please refer to Figure 2 , Figure 2 FIG. Figure 2 is a schematic flowchart of a method for verifying the display time of an event provided by an embodiment of the present application. This specification provides method operation steps such as in the embodiment or flowchart, but based on routine or non-creative labor, there may be more or fewer operation steps. The order of steps listed in the embodiment is only one of the execution orders of numerous steps and does not represent the only execution order. When the actual system or server product executes, it can be executed in the order shown in the embodiment or the drawing or executed in parallel (for example, in an environment of parallel processors or multi-threaded processing). In the application scenario of an application in multiple time zones, the display times of a promotion event starting at the same time in different time zone regions are different. If the display time of an event in a certain region is incorrect, it will cause an event promotion accident. For example, in a lottery event, if the display time of an event in a certain time zone should be from 20:00 on April 15th to 20:00 on April 16th, but due to a calculation error, it shows from 8:00 on April 16th to 8:00 on April 17th, then it will result in that the lottery could have been participated in at 20:00 on the 15th in this time zone, but due to the display error, other time zones with correct displays participate in the event normally, while in this time zone, it shows that the event has ended when the lottery is conducted. Therefore, it is necessary to verify the display time of the event in each promotion region. Specifically, as Figure 2 shown, the method may include the following steps.

[0051] S201: In response to a time verification instruction, call the promotion event interface of the management end through a time verification script to obtain the event configuration information of the promotion event from the management end.

[0052] In the embodiments of the present application, the promotion event is an event formulated for an application program or a product of an application program, including but not limited to a traffic pulling event, a new product promotion event, a product recommendation event, a promotion event, etc. For example, it can be specifically a lottery event or a game new product promotion event, etc. It can be understood that the form of the promotion event is set based on actual needs and is not limited herein. The time verification script is a pre-set automated script for verifying the display time of event pages in different time zones. By setting this script, the automated display time verification of each promotion event of the application program can be achieved in batches, and through simple configuration modification, it can be applied to other application programs, with strong generalization ability and reduced verification cost. In some embodiments, the time verification script can be a JavaScript script (JS script).

[0053] In the embodiments of the present application, the management terminal can be the business management terminal of the application program, and can be used to receive and store the activity configuration information of the promotion activity. The activity time verification device of the present application can run on the management server, or can run on a separate time verification terminal, or can also run on the terminal. After the time verification instruction is triggered, the time verification script can be started to call the promotion activity interface of the management terminal, so as to obtain the activity configuration information from the database of the management terminal. The activity configuration information includes the activity page address information of the promotion activity, the promotion area information, and the activity configuration time data in the preset time zone. Specifically, the time zone set by the management terminal is the preset time zone. Exemplarily, the preset time zone can be UTC+0. Specifically, the activity page address information can include, but is not limited to, the URL address of the activity page, etc.; the promotion area information represents the area where the promotion activity is to be launched, and can include the area name of the area to be launched. Exemplarily, the area name can be specifically a country identifier or a city identifier, etc., such as the country name / code; the activity configuration time data here can be the configuration time of the promotion activity in the preset time zone, and the format of the activity configuration time data can be, for example, Greenwich Mean Time GMT, Coordinated Universal Time UTC, or Unix timestamp, etc. The activity configuration time data can include the start configuration time data and the end configuration time data of the promotion activity.

[0054] In practical applications, before S201, the method may further include the following steps of generating a time verification instruction.

[0055] S101: Create a timing task based on the activity configuration time of the promotion activity.

[0056] S103: Based on the timing task, trigger the start operation of the time verification script and generate a time verification instruction.

[0057] In a specific embodiment, a corresponding timing task can be created for the promotion activity. Through this timing task, the start of the time verification script is triggered at a set time, and a time verification instruction is generated. Specifically, each time a new promotion activity is added, a timing task for this activity can be added. Specifically, creating a timing task based on the activity configuration time of the promotion activity can be: creating timing tasks based on the start configuration time data and the end configuration time data of the promotion activity respectively, so as to verify the start time and end time of the activity displayed on the activity page of the promotion activity respectively. Specifically, the timing task is implemented by setting a timer. The timer can trigger at least one time verification before the start configuration time, and can also trigger at least one time verification again during the activity period of the promotion activity.

[0058] S203: Create browser instances for at least one promotion time zone based on the promotion area information.

[0059] In the embodiments of the present application, the promotion time zones for a promotion activity to be launched can be determined based on the promotion region information, and then browser instances corresponding to each promotion time can be created. Correspondingly, S203 may include the following steps.

[0060] S2031: Determine the promotion time zones to which the respective promotion regions corresponding to the promotion region information belong according to the correspondence between time zones and regions.

[0061] S2032: Create browser instances corresponding to each promotion time zone through a preset browser simulation tool.

[0062] In practical applications, the promotion time zones to which the respective promotion regions corresponding to the promotion region information belong can be determined according to the pre-stored correspondence between time zones and regions, that is, the promotion time zones for the promotion activity to be launched are obtained. It can be understood that different regions belong to different time zones, and the activity display times of the same promotion activity in different time zones are different. Taking the GMT time zone as an example, if the activity configuration time is 12:00 (UTC) on May 1, 2020, the activity configuration time in the GMT-5 time zone is 7:00 in the early morning of May 1, 2020, and the activity configuration time in the GMT-7 time zone is 5:00 in the early morning of May 1, 2020, where GMT = UTC + 0. In some cases, the dates of the activity display times in different time zones may also be different. For example, if the start time of the activity is 00:00 to 24:00 on April 16th in UTC time, the activity display time of this activity page in the UTC+8 time zone should be 8:00 on April 16th to 8:00 on April 17th, and the activity display time in the UTC-4 time zone should be 20:00 on April 15th to 20:00 on April 16th. Therefore, there is a cross-day logic for the activity display time in some time zones.

[0063] In practical applications, the time verification script can start a pre-created verification service and use the verification service to create browser instances and perform corresponding time verification. Specifically, Puppeteer can be used to create browser instances to open the front-end activity page on the Node side. By passing different promotion time zones, browser instances for each promotion time zone can be opened.

[0064] S205: Through each browser instance, load the activity pages corresponding to the respective promotion time zones based on the activity page address information.

[0065] In the embodiments of the present application, by using the browser instances in each promotion time zone to open the activity pages of the promotion activity, it can be understood that the activity display times shown in the activity pages of each promotion time zone are determined based on that time zone, and the activity display times in different promotion time zones are different. Loading the activity pages in different time zones in parallel or serially based on the created browser instances eliminates the need for manual page scraping operations and improves the time verification efficiency. Please refer toFigure 3 , Figure 3 shows a page schematic diagram of an activity page provided by an embodiment. The activity display time shown in the figure is 6:30 am on May 29th (29 / May 6:30am).

[0066] In practical applications, different promotion time zones can correspond to the same activity page address, or different activity page addresses can be set for different promotion time zones, such as one-to-one correspondence. The page text of different promotion time zones can be requested through the same activity page address, or the page text can be requested through the activity page addresses corresponding to each promotion time zone. The page text can be HTML text. After adding a new promotion activity, the business front-end of the application can call the background activity interface through the activity entry to obtain activity information including activity time data from the background. The background can be the aforementioned management end, and the background activity interface is the promotion activity interface of the management end. Or, the background can also be a web server connected to the management end in communication, and the background activity interface is the web server interface. The activity time can be obtained by the web server from the management end or set manually. After the business front-end obtains the activity configuration information, it converts the obtained configuration time data based on the time zone where the front-end is located to obtain the activity display time in the current time zone, and inserts it into the activity page for display. The page display module of the front-end can set the activity display time as the tag value of the preset page time tag in the activity page. Correspondingly, an invisible page time tag is pre-inserted in the page text of the activity page. The page time tag can be used as an activity time identifier, such as using start_time as the activity time identifier. In this way, the activity display time of the activity page can be dynamically filled according to the time zone, avoiding editing the activity time in the way of Hard Code. When modifying the activity time, only the activity configuration time in the preset time zone needs to be modified, and then the linkage modification of multiple time zones can be realized, reducing the difficulty of modifying the activity time in multiple time zones and the verification difficulty of time verification.

[0067] In practical applications, please refer to Figure 4 , S205 may include the following steps.

[0068] S2051: Obtain the page data corresponding to the activity page address information through each browser instance respectively.

[0069] Specifically, the page data includes the activity timestamp of the promotion activity for the preset time zone. The activity timestamp represents the time interval between the activity display time on the activity page corresponding to the promotion activity in the preset time zone and the reference time in the preset time zone. Exemplarily, the activity timestamp can be a Unix timestamp, such as the duration from the set activity display time in the UTC time zone to 00:00:00 UTC (reference time) on January 1, 1970. Specifically, the page data can be provided by the background server. By sending a page request to the activity page address corresponding to the activity page address information through a browser instance, the corresponding page data can be obtained. It can be understood that the page data in different promotion time zones can be the same or different. Specifically, page text can be generated based on the page data, or the page data can directly be pre-constructed page text.

[0070] S2052: Call the preset date conversion function to perform time conversion on the activity timestamp for each promotion time zone respectively, and obtain the activity display time corresponding to each promotion time zone.

[0071] Specifically, after obtaining the activity display time in the preset time zone, the preset date conversion function can be called for serial or parallel calculation to convert the activity display time into the activity display time in each promotion time zone. Exemplarily, the preset date conversion function can be the Date function in JavaScript. In some cases, the time unit of the activity timestamp returned by the background server and the time unit of the preset date conversion function may be different. Before performing time conversion using the preset date conversion function, it is necessary to perform unit conversion on the activity timestamp. For example, the unit of the Unix timestamp is seconds, and the time unit required by the Date function is milliseconds. Multiply the Unix timestamp by 1000 to obtain the number of milliseconds, pass it into the function, and perform calculation based on the set time difference between the current promotion time zone and the preset time zone to obtain the activity display time in the current promotion time zone.

[0072] S2053: Load and process the page data through each browser instance respectively, and set the activity display time of the corresponding promotion time zone as the label value of the page time label during the loading process, so as to obtain the activity page of each promotion time zone.

[0073] As described above, the page time label is preset in the page text of the activity page. During the page loading process of the browser instance, each obtained activity display time is set as the label value of the page time label in the page text of the corresponding promotion time zone, and the activity page of this promotion time zone is obtained. The activity display time is displayed in the activity page.

[0074] S207: Based on the preset time label information, obtain the activity display time displayed in the activity page of each promotion time zone from the activity pages loaded by each browser instance respectively.

[0075] In the embodiments of the present application, the preset time tag information may be the tag identifier of the foregoing page time tag, such as the tag name, etc. By matching the tags in each activity page with the preset time tag information, and based on the tag value of the page time tag obtained by the matching, the activity display time of the current activity page is determined.

[0076] In practical applications, please refer to Figure 5 , S207 may include the following steps.

[0077] S2071: Based on the preset time tag information, perform tag scanning on each activity page respectively to obtain the page time tag that matches the preset time tag information from each activity page.

[0078] S2072: Obtain the tag values of the page time tags in each activity page to obtain the activity display time corresponding to each promotion time zone.

[0079] In a specific embodiment, the getAttribute method of the browser may be used to scan the tags inserted in the activity page based on the preset time tag information, such as the start_time identifier implanted in the activity page, until a matching page time tag is obtained. The tag value of the page time tag is the activity display time of the activity page corresponding to the current promotion time zone.

[0080] In this way, by searching for the activity display time through the pre-implanted page time tag for the activity timestamp, the accuracy of the activity display time can be ensured, and interference from page information can be prevented. For example, when there is other time information, such as the founding time, etc. displayed on the activity page, the activity display time can be accurately located through tag scanning. Compared with methods such as image recognition or text recognition, there is no need to screen from multiple sets of time information, reducing the number of verification points and improving the accuracy of time matching. In the case where there is a cross-day logic for the activity time, date verification can be avoided and incorrect display can be avoided.

[0081] S209: Determine the target configuration time of the promotion activity in each promotion time zone according to the promotion region information and the activity configuration time data in the preset time zone.

[0082] In the embodiments of the present application, the target configuration time is calculated based on the original activity configuration time data. The foregoing activity display time is calculated based on the activity timestamp carried in the page data, and the activity timestamp carried in the page data may be obtained from a background server, such as a web server.

[0083] In some embodiments, the target configuration time may be directly calculated through the set time difference between time zones. Correspondingly, S209 may include the following steps.

[0084] S2091: Determine the promotion time zones to which the respective promotion regions corresponding to the promotion region information belong according to the correspondence between time zones and regions.

[0085] S2092: Perform time conversion on the activity configuration time data according to the set time differences between the respective promotion time zones and a preset time zone, to obtain the target configuration times within the respective promotion time zones.

[0086] It can be understood that the set time differences can be time differences based on UCT or time differences based on CMT, etc. After the verification service obtains the activity configuration time data and the respective promotion time zones, it performs conversion on the activity configuration time data according to the set time differences. Specifically, the activity configuration time data can be in the format of a time stamp, such as a Unix time stamp. Correspondingly, the activity configuration time data can be added to the set time differences between the preset time zone and each promotion time zone respectively, to obtain the configuration time stamps for each promotion time zone, and then perform time format conversion on the configuration time stamps based on the format of the activity display time, to obtain the target configuration times.

[0087] In some other embodiments, the activity configuration time data is a configuration time stamp, and S209 may include step S2093: Based on the browser instances of the respective promotion time zones corresponding to the promotion region information, perform time conversion on the configuration time stamp respectively, to obtain the target configuration times within the respective promotion time zones.

[0088] Specifically, reference browser instances corresponding to the respective promotion time zones can be created respectively through Puppeteer. By passing the configuration time stamp, initialize the corresponding configuration time stamp in the reference browser instance to obtain the target configuration time for the promotion time zone. The time conversion method here is similar to that in S2052 and will not be elaborated here.

[0089] S211: Perform time verification on the activity display times of the corresponding promotion time zones based on the target configuration times, to obtain the display time verification results for the respective activity pages.

[0090] In the embodiments of the present application, for each promotion time zone, compare the corresponding target configuration time with the activity display time to obtain the display time verification result for each promotion time zone. If the display time verification result is that the target configuration time is inconsistent with the activity display time of the corresponding promotion time zone, it is determined that there is an abnormality in the activity display time of the current promotion time zone, such as front-end rendering abnormality or background service abnormality, and then a display time abnormality warning is generated. After generating the abnormality warning, the abnormality warning can be sent to relevant terminals through communication software to inform relevant personnel. If the display time verification result is that the target configuration time is consistent with the activity display time of the corresponding promotion time zone, it indicates that the activity display time displayed in the current promotion time zone is correct and the verification passes.

[0091] It can be understood that when the activity display time is a time period, the activity display time includes the activity start time and the activity end time. Correspondingly, the activity timestamp of the page data includes the start timestamp and the end timestamp, the activity configuration time data includes the start configuration time data and the end configuration time data. The activity page can also be pre-implanted with a start time tag and an end time tag, such as the start_time tag and the end_time tag. It is possible to perform verification of the activity start display time based on the start timestamp, the start configuration time data, and the start time tag, and perform verification of the activity end display time based on the end timestamp, the end configuration time data, and the end time tag. When both the start display time verification result and the end display time verification result meet the verification passed condition, it is determined that the activity display time is correct. If any one of the verification results is inconsistent, an exception alarm is generated.

[0092] Based on some or all of the above embodiments, in the embodiments of the present application, the activity configuration information further includes the version information of the activity configuration time data; the page data further includes the version information of the activity timestamp in the preset time zone. Correspondingly, the method may further include the following steps.

[0093] S301: Compare the version information of the activity configuration time data with the version information of the activity timestamp in the preset time zone.

[0094] S303: If the version information of the activity configuration time data is inconsistent with the version information of the activity timestamp, update the activity timestamp based on the activity configuration time data.

[0095] In practical applications, before or during the activity, the activity configuration time data of the management end may be updated. Correspondingly, the activity configuration time data carries version information, and the activity timestamp stored in the background server also carries version information. Steps S301 and S302 can be periodically executed to determine whether the activity timestamp needs to be updated. Or, before S2052, execute S301 and S302. If the version information is inconsistent, update the activity timestamp and send the updated activity timestamp to the background server; if the version information is consistent, execute S2052. Specifically, in the case of activity time update, the activity display time verification of the corresponding activity can be automatically triggered, that is, use the time verification script to monitor the update of each activity configuration time, and then perform time verification on the activity pages in different time zones.

[0096] The following introduces the activity display time verification method of the present application in combination with practical applications. Please refer to Figure 6 , the method may include the following steps.

[0097] S1. Create a task timer for the scheduled task.

[0098] S2. Trigger the JS script to periodically pull the promotion activity interface of the management terminal based on the task timer to obtain the activity configuration information of the current promotion activity. The activity configuration information includes the activity page URL, the activity configuration timestamp, and the promotion region information.

[0099] It can be understood that the management terminal can be configured with the activity configuration information of multiple promotion activities, and the activity display time verification of one or more promotion activities can be started simultaneously through a timed task, that is, obtain the activity configuration information of one or more promotion activities, such as the activity address URLs of activities A, B, and C, the start configuration time, and the end configuration time, etc.

[0100] S3. Use Puppeteer to create a server-side browser instance 1 in the specified time zone.

[0101] S4. Use Puppeteer to create a server-side browser instance 2 in the same specified time zone.

[0102] S5. Open the front-end activity page of the current promotion activity through browser instance 1. The front-end activity page has an activity display time displayed based on the page time tag.

[0103] Specifically, through browser instance 1, send a request based on the activity page URL to obtain the HTML text and load the activity page.

[0104] S6. Use a preset browser method (such as the getAttribute method) to capture the activity display time in the activity page.

[0105] Specifically, use the JS script to call the preset browser method to capture the tag value of the page time tag, that is, the activity display time.

[0106] S7. Use browser instance 2 to format the activity configuration time data in the time zone to obtain the target configuration time in the promotion time zone.

[0107] S8. Determine whether the activity display time is consistent with the target configuration time. If it is consistent, execute S9; if it is not consistent, execute S10.

[0108] Specifically, based on the activity display time and the target configuration time, determine whether the activity start display time and the activity end display time meet the expectations. If they meet, the verification passes; if they do not meet, an exception alarm is generated.

[0109] S9. Determine that the display is correct and the verification passes.

[0110] S10. Determine that the display is abnormal and generate an exception alarm.

[0111] Please refer to Figure 8 , Figure 8The schematic diagram of the principle of the activity display time verification method based on the above technical solution is shown. The time verification script periodically executes the promotion activity interface call to obtain the configured activities and related activity configuration information from the database of the management end through the promotion activity interface, including the activity links url of activities A, B, C, etc., the start configuration time start_time, the end configuration time end_time, etc. Among them, the management end server is a UTC server, and the activity configuration time returned by it is in the timestamp format; in the created browser instance, the activity link url is requested in the vpn time zone through the promotion activity interface to obtain the activity html, and the display time of the page time label in the html is obtained through the time verification script; the corresponding activity configuration time is subjected to time zone formatting conversion to obtain the target configuration time in this time zone; it is asserted to judge whether the display time of the page time label is consistent with the target configuration time. If it is consistent, it meets the expectation. Taking the promotion activity as a game new promotion activity as an example, a scheduled task is created, and the preset time verification script is used to periodically obtain the activity page URL, the activity configuration timestamp, and the promotion region information of the new promotion activity from the promotion activity interface of the management end. Different activity page URLs correspond to different time zones; using Puppeteer, a corresponding server-side browser instance 1 is created for each activity time zone, and a corresponding server-side browser instance 2 is created; then the server-side browser instance 1 is used to request the activity page URL to open the front-end activity page of the game new promotion activity, and the time verification script is used to call the preset browser method to capture the label value of the page time label to obtain the activity display time of the game new promotion activity in each activity time zone; then the browser instance 2 is used to perform time zone conversion on the activity configuration timestamp of the new promotion activity for each activity time zone to obtain the target configuration time of each time zone; the target configuration time of each time zone is compared with the corresponding activity display time to judge whether the two are consistent. If they are consistent, it is determined that the activity display time is correct and meets the expectation. If they are not consistent, it indicates that there is an abnormality in the activity display time, such as incorrect time setting or rendering error, etc., an exception alarm is generated, and information such as the activity page URL and the activity time zone corresponding to the inconsistent result is recorded for subsequent operations such as activity page verification.

[0112] Based on the above solution, it is possible to automatically execute the activity display time verification in different time zones without manual inspection, effectively improving the verification accuracy and efficiency. Moreover, by creating a browser instance to load the activity page and capturing the activity display time through the time label information, and verifying it with the target configuration time in the specified time zone, it is possible to simulate the real activity page display scenario to perform the display time verification, and at the same time determine whether there are other rendering abnormalities. When the activity configuration time changes, it is also possible to automatically update the display time of the activity pages in each activity time zone in a timely manner. In addition, the technical solution of the present application has high portability, can be flexibly deployed, can be applied to different promotion activities, and has strong generalization ability.

[0113] The embodiment of the present application also provides an activity display time verification device 800, as Figure 7 shown Figure 7 shown in the structural schematic diagram of an activity display time verification device provided by the embodiment of the present application. The device may include the following modules.

[0114] Script call module 10: configured to respond to a time verification instruction, call the promotion activity interface of the management end through a time verification script, so as to obtain the activity configuration information of the promotion activity from the management end; the activity configuration information includes the activity page address information, promotion region information, and activity configuration time data within a preset time zone of the promotion activity.

[0115] Browser instance creation module 20: configured to create browser instances corresponding to at least one promotion time zone based on the promotion region information.

[0116] Activity page loading module 30: configured to load the activity pages corresponding to the respective promotion time zones through each browser instance based on the activity page address information.

[0117] Activity display time acquisition module 40: configured to acquire the activity display time displayed in the activity pages of each promotion time zone from the activity pages loaded by each browser instance based on preset time tag information.

[0118] Target configuration time determination module 50: configured to determine the target configuration time of the promotion activity in each promotion time zone according to the promotion region information and the activity configuration time data within the preset time zone.

[0119] Time verification module 60: configured to perform time verification on the activity display time of the corresponding promotion time zone based on the target configuration time, so as to obtain the display time verification result of each activity page.

[0120] In some embodiments, the browser instance creation module 20 may include the following units.

[0121] First promotion time zone determination unit: configured to determine the promotion time zones to which the respective promotion regions corresponding to the promotion region information belong according to the correspondence between time zones and regions.

[0122] Browser instance creation unit: configured to create browser instances corresponding to each promotion time zone through a preset browser simulation tool.

[0123] In some embodiments, the activity page loading module 30 may include the following units.

[0124] Page data acquisition unit: used to obtain page data corresponding to the active page address information through each browser instance respectively; the page data includes the activity timestamp of the promotion activity for the preset time zone; the activity timestamp represents the interval duration between the activity display time on the active page corresponding to the promotion activity in the preset time zone and the reference time in the preset time zone.

[0125] First time conversion unit: used to call the preset date conversion function to perform time conversion on the activity timestamp for each promotion time zone respectively, and obtain the activity display time corresponding to each promotion time zone.

[0126] Page data loading unit: used to perform loading processing on the page data through each browser instance respectively, and set the activity display time of the corresponding promotion time zone as the tag value of the page time tag during the loading process, so as to obtain the active page of each promotion time zone.

[0127] In some embodiments, the activity display time acquisition module 40 may include the following units.

[0128] Tag scanning unit: used to perform tag scanning on each active page respectively based on the preset time tag information, so as to obtain the page time tag matching the preset time tag information from each active page.

[0129] Tag value acquisition unit: used to obtain the tag value of the page time tag in each active page, and obtain the activity display time corresponding to each promotion time zone.

[0130] In some embodiments, the device further includes the following modules.

[0131] Scheduled task creation module: used to create a scheduled task based on the activity configuration time of the promotion activity before, in response to the time verification instruction, calling the promotion activity interface of the management end through the time verification script to obtain the activity configuration information of the promotion activity from the management end.

[0132] Task trigger module: used to trigger the start operation of the time verification script based on the scheduled task and generate a time verification instruction.

[0133] In some embodiments, the target configuration time determination module 50 may include the following units.

[0134] Second promotion time zone determination unit: used to determine the promotion time zones to which each promotion region corresponding to the promotion region information belongs according to the corresponding relationship between the time zone and the region.

[0135] Second time conversion unit: used to perform time conversion on the activity configuration time data according to the set time difference between each promotion time zone and the preset time zone, and obtain the target configuration time in each promotion time zone.

[0136] In some other embodiments, the active configuration time data is a configuration timestamp, and the target configuration time determination module 50 may include a timestamp conversion unit: for respectively performing time conversion on the configuration timestamp based on browser instances in each promotion time zone corresponding to the promotion region information to obtain the target configuration time in each promotion time zone.

[0137] In some embodiments, the device may further include an exception warning generation module: for performing time verification on the activity display time in the corresponding promotion time zone based on the target configuration time, and after obtaining the display time verification result of each activity page, if the display time verification result is that the target configuration time is inconsistent with the activity display time in the corresponding promotion time zone, generating a display time exception warning.

[0138] In some embodiments, the activity configuration information further includes version information of the activity configuration time data; the page data further includes version information of the activity timestamp in the preset time zone, and the device may further include the following modules.

[0139] Version comparison module: for comparing the version information of the activity configuration time data with the version information of the activity timestamp in the preset time zone.

[0140] Activity time update module: for if the version information of the activity configuration time data is inconsistent with the version information of the activity timestamp, updating the activity timestamp based on the activity configuration time data.

[0141] It should be noted that the above device embodiments and method embodiments are based on the same implementation manner.

[0142] The embodiments of the present application provide an activity display time verification device. The recognition device may be a terminal or a server. The activity display time verification device includes a processor and a memory. At least one instruction or at least one program segment is stored in the memory, and the at least one instruction or the at least one program segment is loaded and executed by the processor to implement the activity display time verification method provided in the above method embodiments.

[0143] The memory can be used to store software programs and modules. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory. The memory mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for functions, etc.; the data storage area can store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory may further include a memory controller to provide the processor with access to the memory.

[0144] The method embodiments provided by the embodiments of the present application can be executed in electronic devices such as mobile terminals, computer terminals, servers, or similar computing devices. Figure 9 It is a hardware block diagram of an electronic device for a method of verifying the activity display time provided by the embodiments of the present application. As Figure 9 shown, the electronic device 900 may vary greatly due to configuration or performance differences, and may include one or more central processing units (CPUs) 910 (the processor 910 may include, but is not limited to, a processing device such as a microprocessor MCU or a field programmable gate array FPGA), a memory 930 for storing data, and one or more storage media 920 for storing application programs 923 or data 922 (such as one or more mass storage devices). Among them, the memory 930 and the storage medium 920 may be transient storage or persistent storage. The program stored in the storage medium 920 may include one or more modules, and each module may include a series of instruction operations on the electronic device. Further, the central processor 910 may be configured to communicate with the storage medium 920 and execute a series of instruction operations in the storage medium 920 on the electronic device 900. The electronic device 900 may also include one or more power supplies 960, one or more wired or wireless network interfaces 950, one or more input / output interfaces 940, and / or one or more operating systems 921, such as Windows Server TM , Mac OS X TM , Unix TM , LinuxTM, FreeBSDTM, and so on.

[0145] The input / output interface 940 can be used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by the communication provider of the electronic device 900. In one instance, the input / output interface 940 includes a network interface controller (NIC), which can be connected to other network devices through a base station and thus communicate with the Internet. In one instance, the input / output interface 940 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0146] Those of ordinary skill in the art can understand that Figure 9 the structure shown is only schematic and does not limit the structure of the above electronic device. For example, the electronic device 900 may also include more or fewer components than those shown in Figure 9 , or have a different configuration from that shown in Figure 9 .

[0147] An embodiment of the present application further provides a computer-readable storage medium. The storage medium can be disposed in an electronic device to store at least one instruction or at least one segment of program related to a method for verifying the activity display time in the method embodiment. The at least one instruction or the at least one segment of program is loaded and executed by the processor to implement the method for verifying the activity display time provided in the above method embodiment.

[0148] Optionally, in this embodiment, the above storage medium may be located in at least one of multiple network servers in a computer network. Optionally, in this embodiment, the above storage medium may include, but is not limited to: various media that can store program codes such as USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), mobile hard disks, magnetic disks, or optical discs.

[0149] According to one aspect of the present application, there is provided a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the methods provided in the above various optional implementation manners.

[0150] As can be seen from the embodiments of the activity display time verification method, device, equipment, server, terminal storage medium, and program product provided by the present application above, in response to a time verification instruction, the present application calls the promotion activity interface of the management end through a time verification script to obtain the activity configuration information of the promotion activity from the management end; the activity configuration information includes the activity page address information of the promotion activity, the promotion region information, and the activity configuration time data in a preset time zone; creates at least one browser instance corresponding to the promotion time zone based on the promotion region information; then, through each browser instance, loads the activity pages corresponding to the promotion time zones respectively based on the activity page address information; and obtains the activity display times displayed in the activity pages of each promotion time zone respectively from the activity pages loaded by each browser instance based on the preset time tag information; and, determines the target configuration times of the promotion activity in each promotion time zone respectively according to the promotion region information and the activity configuration time data in the preset time zone; furthermore, performs time verification on the activity display times of the corresponding promotion time zones based on the target configuration times to obtain the display time verification results of each activity page. It can automatically perform the activity display time verification of different time zones through the time verification script, without manual inspection, effectively improving the verification accuracy and efficiency. Moreover, by creating browser instances to load the activity pages and grabbing the activity display times through the time tag information and verifying them with the target configuration times in the specified time zone, it can simulate the real activity page display scenario to perform the display time verification and at the same time determine whether there are other rendering anomalies. In addition, the technical solution of the present application has high portability, can be flexibly deployed, can be applied to different promotion activities, and has strong generalization ability.

[0151] It should be noted that: the above sequence of the embodiments of the present application is only for description and does not represent the superiority or inferiority of the embodiments. And the above specific embodiments of the present application have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be executed in a different order than in the embodiments and still achieve the desired results. Additionally, the processes depicted in the figures do not necessarily require the particular order or sequential order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0152] Each embodiment in the present application is described in a progressive manner. The same or similar parts among the embodiments can be referred to each other, and the key points of each embodiment are the differences from other embodiments. In particular, for the embodiments of the device, equipment, and storage medium, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments.

[0153] Those of ordinary skill in the art can understand that all or part of the steps to implement the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the above-mentioned storage medium can be a read-only memory, a disk, an optical disc, etc.

[0154] The above are only the preferred embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. An activity display time verification method, characterized in that The method includes: In response to a time verification instruction, call the promotion activity interface of the management end through a time verification script to obtain the activity configuration information of the promotion activity from the management end; the activity configuration information includes the activity page address information of the promotion activity, the promotion region information, and the activity configuration time data within a preset time zone; Create browser instances for at least one corresponding promotion time zone based on the promotion region information; Through each browser instance, load the activity pages of the corresponding promotion time zones respectively based on the activity page address information; Based on preset time tag information, obtain the activity display times shown in the activity pages of each promotion time zone from the activity pages loaded by each browser instance; the activity display time is the tag value of a preset page time tag in the activity page, and the preset time tag information is the tag identifier of the page time tag; Determine the target configuration times of the promotion activity in each promotion time zone respectively according to the promotion region information and the activity configuration time data within the preset time zone; Perform time verification on the activity display times of the corresponding promotion time zones based on the target configuration times to obtain the display time verification results of each activity page.

2. The method according to claim 1, wherein The creating browser instances for at least one corresponding promotion time zone based on the promotion region information includes: Determine the promotion time zones to which the respective promotion regions corresponding to the promotion region information belong according to the correspondence between time zones and regions; Create browser instances corresponding to each promotion time zone respectively through a preset browser simulation tool.

3. The method according to claim 1, wherein The loading the activity pages of the corresponding promotion time zones respectively through each browser instance based on the activity page address information includes: Respectively obtain the page data corresponding to the activity page address information through each browser instance; the page data includes the activity timestamp of the promotion activity for the preset time zone; the activity timestamp represents the interval duration between the activity display time on the activity page corresponding to the promotion activity in the preset time zone and the reference time of the preset time zone; Call a preset date conversion function to perform time conversion on the activity timestamp for each promotion time zone respectively to obtain the activity display times corresponding to each promotion time zone; Respectively perform loading processing on the page data through each browser instance, and set the activity display time of the corresponding promotion time zone as the tag value of the page time tag during the loading process to obtain the activity pages of each promotion time zone.

4. The method according to claim 1, wherein The obtaining the activity display times shown in the activity pages of each promotion time zone from the activity pages loaded by each browser instance based on preset time tag information includes: Based on the preset time tag information, perform tag scanning on each activity page respectively to obtain the page time tags matching the preset time tag information from each activity page; Obtain the tag values of the page time tags in each activity page to obtain the activity display times corresponding to each promotion time zone.

5. The method according to claim 1, wherein Before invoking the promotion activity interface of the management end through the time verification script in response to the time verification instruction to obtain the activity configuration information of the promotion activity from the management end, the method further includes: Create a timing task based on the activity configuration time of the promotion activity; Trigger the start operation of the time verification script based on the timing task and generate the time verification instruction.

6. The method according to claim 1, wherein The determining of the target configuration time of the promotion activity in each promotion time zone according to the promotion region information and the activity configuration time data in the preset time zone includes: Determine the respective promotion time zones to which the respective promotion regions corresponding to the promotion region information belong according to the correspondence between time zones and regions; Perform time conversion on the activity configuration time data according to the set time differences between each promotion time zone and the preset time zone to obtain the target configuration time in each promotion time zone.

7. The method according to claim 1, wherein The activity configuration time data is a configuration timestamp, and the determining of the target configuration time of the promotion activity in each promotion time zone according to the promotion region information and the activity configuration time data in the preset time zone includes: Perform time conversion on the configuration timestamp respectively based on the browser instances of each promotion time zone corresponding to the promotion region information to obtain the target configuration time in each promotion time zone.

8. The method according to claim 1, characterized in that, After performing time verification on the activity display time in the corresponding promotion time zone based on the target configuration time to obtain the display time verification result of each activity page, the method further includes: If the display time verification result is that the target configuration time is inconsistent with the activity display time in the corresponding promotion time zone, generate a display time anomaly alarm.

9. The method according to claim 3, wherein The activity configuration information further includes the version information of the activity configuration time data; the page data further includes the version information of the activity timestamp in the preset time zone, and the method further includes: Compare the version information of the activity configuration time data with the version information of the activity timestamp in the preset time zone; If the version information of the activity configuration time data is inconsistent with the version information of the activity timestamp, update the activity timestamp based on the activity configuration time data.

10. An activity display time verification device, characterized in that, The device includes: A script invocation module: configured to, in response to a time verification instruction, invoke the promotion activity interface of the management end through a time verification script to obtain the activity configuration information of the promotion activity from the management end; the activity configuration information includes the activity page address information, promotion region information, and activity configuration time data in a preset time zone of the promotion activity; A browser instance creation module: configured to create browser instances of at least one corresponding promotion time zone based on the promotion region information; An activity page loading module: configured to load the activity pages of the corresponding promotion time zones respectively based on the activity page address information through each browser instance; Activity display time acquisition module: It is used to acquire the activity display time shown in the activity pages of each promotion time zone from the activity pages loaded by each browser instance based on the preset time tag information; the activity display time is the tag value of the preset page time tag in the activity page, and the preset time tag information is the tag identifier of the page time tag; Target configuration time determination module: It is used to determine the target configuration time of the promotion activity in each promotion time zone respectively according to the promotion region information and the activity configuration time data in the preset time zone; Time verification module: It is used to perform time verification on the activity display time of the corresponding promotion time zone based on the target configuration time, and obtain the display time verification result of each activity page.

11. The device according to claim 10, characterized in that, The browser instance creation module includes: First promotion time zone determination unit: It is used to determine the promotion time zones to which the respective promotion regions corresponding to the promotion region information belong according to the corresponding relationship between the time zone and the region; Browser instance creation unit: It is used to create browser instances corresponding to each promotion time zone through a preset browser simulation tool.

12. The device according to claim 10, wherein The activity page loading module includes: Page data acquisition unit: It is used to acquire the page data corresponding to the activity page address information through each browser instance respectively; the page data includes the activity timestamp of the promotion activity for the preset time zone; the activity timestamp represents the interval duration between the activity display time on the activity page corresponding to the preset time zone of the promotion activity and the reference time of the preset time zone; First time conversion unit: It is used to call a preset date conversion function to perform time conversion on the activity timestamp for each promotion time zone respectively, and obtain the activity display time corresponding to each promotion time zone; Page data loading unit: It is used to perform loading processing on the page data through each browser instance respectively, and set the activity display time of the corresponding promotion time zone as the tag value of the page time tag during the loading process, so as to obtain the activity pages of each promotion time zone.

13. The device according to claim 10, characterized in that, The activity display time acquisition module includes: Tag scanning unit: It is used to perform tag scanning on each activity page based on the preset time tag information, so as to obtain the page time tags matching the preset time tag information from each activity page; Tag value acquisition unit: It is used to acquire the tag values of the page time tags in each activity page, and obtain the activity display time corresponding to each promotion time zone.

14. The device according to claim 10, characterized in that, The device further includes: Timed task creation module: It is used to create a timed task based on the activity configuration time of the promotion activity before calling the promotion activity interface of the management end through the time verification script in response to the time verification instruction to obtain the activity configuration information of the promotion activity from the management end; Task trigger module: It is used to trigger the start operation of the time verification script based on the timed task and generate the time verification instruction.

15. The device according to claim 10, characterized in that, The target configuration time determination module includes: The second promotion time zone determination unit: used to determine the respective promotion time zones to which the respective promotion regions corresponding to the promotion region information belong according to the correspondence between time zones and regions; The second time conversion unit: used to perform time conversion on the activity configuration time data according to the set time differences between the respective promotion time zones and the preset time zone, so as to obtain the target configuration time in the respective promotion time zones.

16. The device according to claim 10, wherein The activity configuration time data is a configuration timestamp, and the target configuration time determination module includes a timestamp conversion unit: used to perform time conversion on the configuration timestamp respectively based on the browser instances of the respective promotion time zones corresponding to the promotion region information, so as to obtain the target configuration time in the respective promotion time zones.

17. The device according to claim 10, characterized in that, The device further includes an exception alarm generation module: used to generate a display time exception alarm if the display time check result is that the target configuration time is inconsistent with the activity display time in the corresponding promotion time zone after performing time check on the activity display time in the corresponding promotion time zone based on the target configuration time to obtain the display time check result of each activity page.

18. The device according to claim 12, characterized in that, The activity configuration information further includes the version information of the activity configuration time data; the page data further includes the version information of the activity timestamp in the preset time zone, and the device further includes: A version comparison module: used to compare the version information of the activity configuration time data with the version information of the activity timestamp in the preset time zone; An activity time update module: used to update the activity timestamp based on the activity configuration time data if the version information of the activity configuration time data is inconsistent with the version information of the activity timestamp.

19. A computer-readable storage medium, characterized in that, At least one instruction or at least one program segment is stored in the storage medium, and the at least one instruction or the at least one program segment is loaded and executed by a processor to implement the activity display time check method according to any one of claims 1-9.

20. A computer device, characterized in that, The device includes a processor and a memory, and at least one instruction or at least one program segment is stored in the memory, and the at least one instruction or the at least one program segment is loaded and executed by the processor to implement the activity display time check method according to any one of claims 1-9.

21. A computer program product, characterized in that, The computer program product includes computer instructions, and when the computer instructions are executed by a processor, the activity display time check method according to any one of claims 1-9 is implemented.

Citation Information

Patent Citations

  • An automatic page data verification method and device

    CN109901968A

  • Method and device for generating webpage screenshot and electronic equipment

    CN113032707A

  • Method and device for processing time information in page and terminal equipment

    CN113591001A