Method, system, device and medium for batch generating advertising landing page codes
By using BAT batch files and PHP program files to automatically configure and generate ad landing page codes, the problem of low production efficiency of landing pages during advertising delivery is solved, mass production and cost savings are achieved, and market placement efficiency is improved.
Patent Information
- Application Number
- CN202210501622.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-09
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2042-05-09
AI Technical Summary
The production efficiency of the landing page during advertising is low, and mass production cannot be achieved, resulting in high time and labor costs, and the inability to seize the best time for market placement.
By obtaining the BAT batch file and PHP program file, the configuration file is configured, the visual interface window is opened based on the BAT batch file, the controller name and confirmation value are received, and the PHP program file is executed to generate the ad landing page code in batches.
It realizes batch generation of advertising landing page codes without manual code writing, saves labor costs, improves production efficiency, shortens production cycle, and seizes the best time for market placement, thereby improving advertising and marketing conversion.
Smart Images

Figure CN115080020B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of advertisement delivery, and in particular to a method, system, electronic device and storage medium for batch generating advertisement landing page codes. Background Art
[0002] In the process of market advertising, a large number of landing page web links are needed for external link clicks of advertisements, that is, to support users who watch advertisements to jump to a specific landing page by clicking on the external link of the advertisement, and then watch specific promotional content or download specified software applications.
[0003] Since each landing page has a corresponding web page code, it takes about an hour to manually write the web page code required for a landing page for advertising. However, there are generally hundreds of similar landing page requirements for distribution and delivery. If all of them are written manually, not only will the production efficiency be low, a lot of time and manpower costs will be consumed, and mass production will not be achieved. In addition, due to the long development cycle, it is not conducive to seizing the best time for market launch.
[0004] Currently, no effective solution has been proposed for the problem of low production efficiency of landing pages during the advertising delivery process in related technologies. Summary of the invention
[0005] The embodiments of the present application provide a method, system, device and medium for batch generating advertisement landing page codes, so as to at least solve the problems in the related art of low efficiency in producing landing pages and inability to achieve batch production during advertisement delivery.
[0006] In a first aspect, an embodiment of the present application provides a method for batch generating advertisement landing page codes, the method comprising the following steps:
[0007] Get BAT batch files and PHP program files;
[0008] The configuration file is configured; wherein the configuration file is provided with several rows of configuration tasks, and each row of configuration tasks has a final link address written thereon;
[0009] When the configuration file is configured, upon receiving a click instruction, a visualization interface window is opened based on the BAT batch file;
[0010] When the preset prompt content is displayed in the visual interface window, receiving the input controller name and confirmation value respectively;
[0011] After the controller name and the confirmation value are input, the PHP program file is executed to batch generate advertising landing page codes.
[0012] In some embodiments, configuring the configuration file includes:
[0013] Obtaining the configuration file;
[0014] When the configuration file is opened, the initial link address and the final link address written in each line of configuration task according to the preset website link format are received.
[0015] In some embodiments, after the controller name and the confirmation value are input, executing the PHP program file to batch generate the advertisement landing page code includes:
[0016] Get the controller name;
[0017] Determine whether there is a controller name with the same name as the controller name;
[0018] If not, a new controller is generated, wherein each controller is a program class object, and each program class object is stored in a separate file;
[0019] If so, continue to execute the PHP program file.
[0020] In some of these embodiments, when each program class object includes a plurality of object methods, the method further includes:
[0021] Read the number of lines of configuration tasks in the configuration file;
[0022] In the case that the first line of the configuration file does not contain the initial link address or the final link address, the number of rows of the configuration task is reduced by one to obtain the number of rows of the new configuration task T, wherein the number of times the configuration task is traversed is the number of rows of the new configuration task T;
[0023] Loop through the configuration tasks T times;
[0024] After completing the traversal configuration task, run the SVN COMMIT command to display the update confirmation interface;
[0025] After confirming that the code files generated by looping through the configuration tasks T times meet the expected task requirements, when receiving the submission instruction, batch generate the advertising landing page codes.
[0026] In some embodiments, when the number of traversing the configuration tasks is T times, the loop traversing the configuration tasks includes:
[0027] Determine whether the initial link address and the final link address are written in the configuration task of the current row;
[0028] If yes, obtain a template code according to the initial link address, wherein the template code is the code corresponding to the initial link address; if no, start the next traversal configuration task;
[0029] Determine whether the code of the final link address already exists;
[0030] If the code of the final link address does not exist, or if the code of the final link address already exists and the confirmation value is the preset first confirmation value, the generated code of the final link address will overwrite the source code file, wherein the source code file includes a program file with a PHP suffix and an HTML suffix;
[0031] If the code of the final link address exists and the confirmation value is the preset second confirmation value, the next traversal configuration task is started.
[0032] In some embodiments, when the preset prompt content is displayed in the visual interface window, receiving the input controller name and confirmation value respectively includes:
[0033] In the case where the BAT batch file and the PHP program file are written in the scripting language of the DOS system and the Windows system, when the visualization interface window of the DOS system is opened under the Windows system based on the BAT batch file, when the visualization interface window displays the first preset prompt content, the controller name is received, and when the visualization interface window displays the second preset prompt content, the confirmation value is received.
[0034] In a second aspect, an embodiment of the present application provides a system for batch generating advertisement landing page codes, characterized in that the system comprises:
[0035] Acquisition module, used to obtain BAT batch files and PHP program files;
[0036] A configuration module, used to configure a configuration file, wherein the configuration file is provided with a plurality of rows of configuration tasks, each row of configuration tasks having a final link address written thereon;
[0037] A visualization interface window opening module is used to open a visualization interface window based on the BAT batch file when receiving a click instruction when the configuration file is completed;
[0038] The receiving module is used to receive the input controller name and confirmation value respectively when the preset prompt content is displayed in the visual interface window;
[0039] The batch generation module is used to execute the PHP program file to batch generate advertising landing page codes after the controller name and the confirmation value are input.
[0040] In some embodiments, the configuration module includes:
[0041] A configuration file acquisition module, used to acquire the configuration file;
[0042] The link address receiving module is used to receive the initial link address and the final link address written in each row of configuration tasks according to the preset website link format when opening the configuration file.
[0043] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to implement the method for batch generating advertising landing page codes as described in the first aspect above when running the computer program.
[0044] In a fourth aspect, an embodiment of the present application provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the method for batch generating advertising landing page codes as described in the first aspect above when running.
[0045] Based on the above content, in this embodiment, in the process of market advertising, a large number of landing page web links are needed for external link clicks of advertisements. Through the above steps, there is no need to manually write code. When the configuration file is configured, the user only needs to enter the click command and open the visual interface window based on the BAT batch file. When the preset prompt content is displayed in the visual interface window, the input controller name and confirmation value are respectively received, and the PHP program file can be automatically executed to batch generate advertising landing page codes. Compared with the previous manual writing method, the method of this embodiment has low production efficiency, consumes a lot of time and labor costs, and cannot achieve mass production. It not only saves labor costs, improves production efficiency, and shortens the production cycle, but also can realize batch generation of advertising landing page codes. In this way, it helps users seize the best time for market launch, thereby improving advertising and sales conversion, and solves the problems of low landing page production efficiency and inability to achieve mass production in the related technology during advertising launch. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0047] Figure 1 This is a first flow chart of a method for batch generating advertisement landing page codes according to an embodiment of the present application;
[0048] Figure 2is a schematic diagram of a configuration page of a configuration file of an embodiment of the present application;
[0049] Figure 3 is a first schematic diagram of a visualization interface window of an embodiment of the present application;
[0050] Figure 4 It is a schematic diagram of a submission interface of a visualization interface window of an embodiment of the present application;
[0051] Figure 5 is another schematic diagram of the visual interface window of an embodiment of the present application;
[0052] Figure 6 This is a second flow chart of the method for batch generating advertisement landing page codes according to an embodiment of the present application;
[0053] Figure 7 This is a second flow chart of the method for batch generating advertisement landing page codes according to an embodiment of the present application;
[0054] Figure 8 It is a structural block diagram of a system for batch generating advertisement landing page codes according to an embodiment of the present application;
[0055] Fig. 9 It is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0056] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the contents disclosed in the present application, some changes such as design, manufacturing or production based on the technical contents disclosed in the present application are only conventional technical means, and should not be understood as insufficient contents disclosed in the present application.
[0057] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
[0058] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to greater than or equal to two. "And / or" describes the association relationship of associated objects, indicating that there can be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The terms "first", "second", "third" and the like involved in the present application are merely used to distinguish similar objects and do not represent a specific ordering of the objects.
[0059] This application provides a method for batch generating advertising landing page codes, which can be applied in the process of market advertising delivery, where a large number of advertising landing page codes need to be generated. Figure 1 is a first flow chart of a method for batch generating advertisement landing page codes according to an embodiment of the present application, such as Figure 1 As shown, in this embodiment, the method includes the following steps:
[0060] Step S101, obtaining a BAT batch file and a PHP program file;
[0061] Step S102, configure the configuration file to facilitate subsequent script calculations, wherein the configuration file is provided with several rows of configuration tasks, each row of configuration tasks having a final link address written thereon; in actual use, those skilled in the art may configure the corresponding configuration file according to the number of final link addresses actually desired to be supported, and the specific number is not specifically limited here; for example, if there are 100 similar landing page requirements for the release, the configuration file is provided with 100 rows of configuration tasks, each row of configuration tasks having a final link address written thereon;
[0062] It should be noted that, in this embodiment, the format of the configuration file is list.xls. Of course, in some other embodiments, according to different actual needs, the format of the configuration file can also be set to other formats, which is not specifically limited here;
[0063] Step S103, when the configuration file is configured, upon receiving a click instruction, a visualization interface window is opened based on the BAT batch file; that is, for the configuration file, the user only needs to click the click button of the BAT batch file (i.e., the BAT batch tool), and the program will automatically open the visualization interface window;
[0064] It should be noted that the BAT batch file in this embodiment can be understood as a BAT batch processing tool. The main function of the BAT batch file in this embodiment is to display the interface process, receive user input, and then pass the input parameters to the specific execution PHP script for execution and processing, as well as call SVN commands.
[0065] Step S104, when the preset prompt content is displayed in the visual interface window, the input controller name and confirmation value are received respectively; in this way, the operation is simple and convenient. Among them, the preset prompt content can be set according to user needs, and is not specifically limited here;
[0066] It should be noted that the controller in this embodiment is an alias for a functional module in the PHP language specifically used to process business processes; when the input control name is parameter A, the computer automatically generates a code block named after parameter A through the controller name.
[0067] Before step S104, the method further includes the computer silently running the SVNUP command in the background process so that the computer system executes and updates the source code files in the project directory, wherein the logic layer code of the source code file PHP and the code used for web page display, the logic layer code of PHP and the code used for web page display can be set by the user according to the actual needs of the user, and are not specifically limited here;
[0068] Step S105, after the controller name and confirmation value are entered, execute the PHP program file to batch generate advertising landing page codes.
[0069] In the process of market advertising, a large number of landing page web links are needed for external link clicks of advertisements. Through the above steps S101 to S105, there is no need to manually write code. When the configuration file is configured, the user only needs to enter the click command and open the visual interface window based on the BAT batch file. When the preset prompt content is displayed in the visual interface window, the input controller name and confirmation value are respectively received, and the PHP program file can be automatically executed to batch generate advertising landing page codes. Compared with the previous manual writing method, the method of this embodiment has low production efficiency, consumes a lot of time and labor costs, and cannot achieve mass production. It not only saves labor costs, improves production efficiency, and shortens the production cycle, but also can achieve batch generation of advertising landing page codes. In this way, it helps users seize the best time for market launch, thereby improving advertising and sales conversion, and solves the problems of low landing page production efficiency and inability to achieve mass production in the related technology during advertising launch.
[0070] In some embodiments, in step S102, configuring the configuration file includes the following steps:
[0071] Get the configuration file;
[0072] When opening the configuration file, the initial link address and the final link address written in each line of configuration task according to the preset URL link format are received. The initial link address in this embodiment is also called a template link; Figure 2 is a schematic diagram of a configuration page of a configuration file of an embodiment of the present application, such as Figure 2 As shown, each line includes a template link (a pre-made template link, i.e., parameter L1) and a final link address (the link address that is finally allowed to be accessed, i.e., parameter L2). One line is taken as a task amount, and the task configuration that needs to be completed in batches is input; in this way, the configuration file is obtained. When the configuration file is opened, the configuration file can receive the initial link address and the final link address written in the preset URL link format on each line of configuration tasks; in addition, in order for users to understand the specific meaning of each configuration task, the configuration file can also write other non-configuration task content (e.g., title line) according to user needs; refer to Figure 2The first line of the configuration file is a title line with a template connection address and a final link address, and the second and third lines of the configuration file are respectively written with an initial link address (i.e., parameter L1 is http: / / youdong.com / ldj / hjh_wap_a_1) and a final link address (i.e., parameter L2 is https: / / youdong.com / ldj / hjh_wap_a_2). Of course, in the configuration files in other embodiments, corresponding template links and final link addresses can also be configured for the third line, the fourth line or more lines, which are not specifically limited here; it should be noted that the formats of L1 and L2 in the configuration must conform to the format of the standard URL link: http(s): / / xxxx / aaa / bbb, for example: https: / / youdong.com / zykqgcfy / ios_1 or http: / / youdong.com / zykqgcfy / ios_1.
[0073] Figure 3 is a first schematic diagram of a visualization interface window of an embodiment of the present application, such as Figure 3 In some embodiments, in step S105, after the controller name and confirmation value are input, executing the PHP program file to batch generate the advertisement landing page code includes the following steps:
[0074] Get the controller name;
[0075] Determine whether there is a controller name with the same name as the controller name; in this way, duplicate naming is prevented; because there are multiple technicians in actual working conditions, in order to facilitate the maintenance of their respective work content, generally each technician will use a fixed controller name.
[0076] If not, a new controller is generated, where each controller is a program class object, and each program class object is stored in a separate file; since those skilled in the art understand the meaning of program class objects in PHP programs, they are not described here one by one.
[0077] If so, continue executing the PHP program file.
[0078] Figure 4 It is a schematic diagram of a visual interface window of an embodiment of the present application, a submission interface, such as Figure 4 In some embodiments, in step S105, when each program class object includes a plurality of object methods, the method further includes the following steps:
[0079] Read the number of lines of configuration tasks in the configuration file; refer to Figure 2 , the number of lines of configuration tasks in the configuration file read at this time is 3;
[0080] If the first line of the configuration file does not contain the initial link address or the final link address, the number of rows of the configuration task is reduced by one to obtain the number of rows of the new configuration task T, where the number of times the configuration task is traversed is the number of rows of the new configuration task T; where T is a positive integer; refer to Figure 2 For example, if the first line of the configuration file contains a title, the number of lines for reading configuration tasks in the configuration file changes from 3 to 2.
[0081] Loop through T configuration tasks;
[0082] After completing the traversal configuration task, run the SVN COMMIT command to display the update confirmation interface;
[0083] After confirming that the code files generated by looping through the configuration tasks T times meet the expected task requirements, when receiving the submit command, the advertisement landing page codes are generated in batches. That is to say, through the above steps, when the update confirmation interface (not shown in the figure) is displayed, the user only needs to confirm that the code files displayed on the update interface meet the expected task requirements, and then the user enters the submit command, and the PHP program file will be automatically executed to generate advertisement landing page codes in batches. This is simple and convenient.
[0084] Figure 5 is another schematic diagram of the visual interface window of the embodiment of the present application, such as Figure 5 In order to facilitate the determination of whether the user wants to overwrite the original code, in some embodiments, when the number of traversal of the configuration task is T times, the cyclic traversal of the configuration task includes the following steps:
[0085] Determine whether the initial link address and the final link address are written in the configuration task of the current row;
[0086] If yes, obtain the template code according to the initial link address, where the template code is the code corresponding to the initial link address; if no, start the next traversal configuration task;
[0087] Determine whether the code for the final link address already exists;
[0088] If the code of the final link address does not exist, or if the code of the final link address already exists and the confirmation value is the preset first confirmation value, the generated code of the final link address will overwrite the source code file, wherein the source code file includes program files with PHP suffix and HTML suffix;
[0089] If the code of the final link address exists and the confirmation value is the preset second confirmation value, start the next traversal configuration task. Herein, the preset first confirmation value in this embodiment is Y, and the preset second confirmation value is N. Of course, in other embodiments, the preset first confirmation value and the preset second confirmation value can also be set to others according to actual needs, and no specific limitation is made here;
[0090] That is to say, when the user wants to overwrite the code corresponding to the initial link address with the code of the final link address of this line, as long as Y is input in the input interface of the visual interface window, the generated code of the final link address can overwrite the source code file. On the contrary, when the user does not want to overwrite the code corresponding to the initial link address with the code of the final link address of this line, as long as N is input in the input interface of the visual interface window, the original code will not be overwritten. In short, inputting Y will directly overwrite the source code, and inputting N will not overwrite it.
[0091] To facilitate people to display preset prompt content through the visual interface window to speed up the production progress, referring to Figure 3 and Figure 5 , in some embodiments, in step S104, when preset prompt content is displayed in the visual interface window, receiving the input controller name and confirmation value includes the following steps:
[0092] In the case that the BAT batch file and the PHP program file are written in the scripting languages of the DOS system and the Windows system, when the visual interface window of the DOS system is opened based on the BAT batch file under the Windows system, when the first preset prompt content is displayed in the visual interface window, receive the controller name, and when the second preset prompt content is displayed in the visual interface window, receive the confirmation value. It should be noted that the first preset prompt content in this embodiment is "
Step 1
Step 2
[0093] Figure 6 is the second process schematic diagram of the method for batch generating advertisement landing page codes in the embodiments of the present application, Figure 7 is the second process schematic diagram of the method for batch generating advertisement landing page codes in the embodiments of the present application, referring to Figure 6 and Figure 7 , in an exemplary embodiment, the method includes the following steps:
[0094] Step a is to configure the required parameters. In step a, the following steps are included:
[0095] Step i: Open the configuration file;
[0096] Step ii: Enter the task configuration line by line. Each line should contain the configuration parameters L1 and L2, and then proceed to step b;
[0097] Step b includes: After configuring the configuration file, click the Run BAT batch script tool to start executing the PHP program file; Step b includes: After the user clicks the Run BAT script tool, the following steps are executed:
[0098] Step i: The computer executes SVN UP to update the code directory;
[0099] Step ii: Enter the operation interface (i.e., the visualization interface window);
[0100] Step ii-1: Enter parameter A; among them, parameter A is the controller name;
[0101] Step ii-2: Enter parameter B; among them, parameter B is the confirmation value;
[0102] Step iii: The computer executes the PHP program;
[0103] Step iii-1: Obtain parameter A, and judge whether the code with the same name exists. If it does not exist, generate a code block. If it exists, continue to execute the program logic, that is, step iii-2;
[0104] Step iii-2: Read the configuration of the configuration file (the name of the configuration file is list.xls), and start traversing the loop (T = 0, T < n, n = the total number of configuration lines);
[0105] Step iii-3: T = T + 1, and judge whether the parameters L1 (i.e., the initial link address) and L2 (i.e., the final link address) have values. If they have values, enter step iii-4. If they do not have values, return to step iii-3; that is to say, after reading the configuration, start traversing the configuration in a loop. The task progress bar T starts counting from 0. If there are n lines in the configuration task, the loop will execute n - 1 times (excluding the title first line); when the T value is incremented by 1, it represents that the number of task executions is incremented by one. Judge whether the T-line configuration has the corresponding L1 and L2 parameters. If not, end the loop task and jump to step iiiii;
[0106] Step iii-4: Match the template code according to L1, and judge whether the template code exists; if it exists, continue to execute step iii-5. If it does not exist, return to step iii-3;
[0107] Step iii-5: Check whether the code to be generated already exists according to L2 matching; if L2 does not exist or L2 already exists and B==Y, the computer generates new code content to overwrite the original file; if L2 already exists and B==N, return to step iii-3; that is, when parameter B is equal to Y, the program determines that if the code file of parameter L2 already exists, the new code can be used to overwrite the original code file content, and if it does not exist, a new code file is directly generated; when parameter B is equal to N, the program determines that if the code file of parameter L2 already exists, the original code file will not be processed, and if it does not exist, a new code file is directly generated;
[0108] Step iii-6: Determine whether the task is finished; when T < (n-1), return to step iii-3; when T == (n-1), it means that the batch task has been processed. Jump out of the loop and jump to step iiii;
[0109] Step iiii: The computer runs the SVN COMMIT command to open the code version update confirmation interface of the SVN software and proceed to step C;
[0110] Step C: After the technician manually confirms that the code file and content meet the expected task requirements, click the "ok" button on the software interface to submit the code version and the script ends.
[0111] It should be noted that the steps shown in the above process or the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0112] This embodiment also provides a system for batch generating advertising landing page codes, which is used to implement the above embodiments and preferred implementations, and will not be repeated here. As used below, the terms "module", "unit", "subunit", etc. can be a combination of software and / or hardware that implements a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0113] Figure 8 is a structural block diagram of a system for batch generating advertisement landing page codes according to an embodiment of the present application, such as Figure 8 As shown, the system includes:
[0114] An acquisition module 81 is used to acquire a BAT batch file and a PHP program file;
[0115] Configuration module 82, used to configure the configuration file, wherein the configuration file is provided with several rows of configuration tasks, each row of configuration tasks having a final link address written thereon;
[0116] The module 83 for opening the visual interface window is used to open the visual interface window based on the BAT batch file when receiving a click instruction when the configuration file is configured;
[0117] The receiving module 84 is used to receive the input controller name and confirmation value respectively when the preset prompt content is displayed in the visual interface window;
[0118] Batch generation module 85 is used to execute PHP program files to batch generate advertising landing page codes after the controller name and confirmation value are input. The system is applied to the scenario where a large number of landing page web links are needed for external link clicks of advertisements during the process of market advertising. The system of this embodiment does not need to manually write code. When the configuration file is configured, the user only needs to enter the click instruction, and when the visual interface window is opened based on the BAT batch file and the preset prompt content is displayed, the input controller name and confirmation value are received respectively, and the PHP program file can be automatically executed to batch generate advertising landing page codes. Compared with the previous method of all manual writing, the method of this embodiment has low production efficiency, consumes a lot of time and labor costs, and cannot achieve batch production. This embodiment not only saves labor costs, improves production efficiency, shortens the production cycle, but also can realize batch generation of advertising landing page codes, helping users to seize the best time for market delivery, thereby improving advertising and marketing conversion, and solving the problem of low landing page production efficiency and inability to achieve batch production in the related technology during advertising delivery.
[0119] In some embodiments, the configuration module includes:
[0120] A configuration file acquisition module is used to acquire configuration files;
[0121] The link address receiving module is used to receive the initial link address and the final link address written in each line of configuration task according to the preset website link format when opening the configuration file.
[0122] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. For modules implemented by hardware, the above modules can be located in the same processor; or the above modules can be located in different processors in any combination.
[0123] This embodiment further provides an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.
[0124] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.
[0125] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:
[0126] Step S101, obtaining a BAT batch file and a PHP program file;
[0127] Step S102, configuring the configuration file;
[0128] Step S103, when the configuration file is configured, upon receiving a click instruction, a visual interface window is opened based on the BAT batch file, wherein the configuration file is provided with several rows of configuration tasks, each row of configuration tasks having a final link address;
[0129] Step S104, when the preset prompt content is displayed in the visual interface window, receiving the input controller name and confirmation value respectively;
[0130] Step S105, after the controller name and confirmation value are entered, execute the PHP program file to batch generate advertising landing page codes.
[0131] It should be noted that the specific examples in this embodiment can refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.
[0132] In addition, in combination with the method for batch generating advertising landing page codes in the above embodiment, the embodiment of the present application can provide a storage medium for implementation. The storage medium stores a computer program; when the computer program is executed by a processor, any of the methods for batch generating advertising landing page codes in the above embodiment is implemented.
[0133] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for batch generating advertising landing page codes is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computer device, or an external keyboard, touchpad or mouse, etc.
[0134] In one embodiment, Fig. 9 is a schematic diagram of the internal structure of an electronic device according to an embodiment of the present application, such as Fig. 9 As shown, an electronic device is provided, which may be a server, and its internal structure diagram may be as shown in Fig. 9 As shown. The electronic device includes a processor, a network interface, an internal memory and a non-volatile memory connected through an internal bus, wherein the non-volatile memory stores an operating system, a computer program and a database. The processor is used to provide computing and control capabilities, the network interface is used to communicate with an external terminal through a network connection, the internal memory is used to provide an environment for the operation of the operating system and the computer program, the computer program is executed by the processor to implement a method for batch generating advertising landing page codes, and the database is used to store data.
[0135] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is merely a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the electronic device to which the scheme of the present application is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0136] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0137] Those skilled in the art should understand that the technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0138] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the patent of the present application shall be subject to the attached claims.
Claims
1. A method for batch generating advertisement landing page codes, characterized in that: The method comprises: Get BAT batch files and PHP program files; Configuring the configuration file includes: obtaining the configuration file; when opening the configuration file, receiving the initial link address and the final link address written in each line of configuration task according to a preset URL link format; wherein the configuration file is provided with a plurality of lines of configuration tasks, and each line of configuration task has a final link address written thereon; When the configuration file is configured, upon receiving a click instruction, a visualization interface window is opened based on the BAT batch file; When the preset prompt content is displayed in the visualization interface window, the input controller name and confirmation value are received respectively, and the controller name is the name of the function module in the PHP language specifically used to process the business process; After the controller name and the confirmation value are input, the PHP program file is executed to batch generate advertising landing page codes.
2. The method according to claim 1, characterized in that: After the controller name and the confirmation value are input, executing the PHP program file to batch generate the advertisement landing page code includes: Get the controller name; Determine whether there is a controller name with the same name as the controller name; If not, a new controller is generated, wherein each controller is a program class object, and each program class object is stored in a separate file; If so, continue to execute the PHP program file.
3. The method according to claim 2, characterized in that: In the case where each program class object includes a number of object methods, the methods also include: Read the number of lines of configuration tasks in the configuration file; In the case that the first line of the configuration file does not contain the initial link address or the final link address, the number of rows of the configuration task is reduced by one to obtain the number of rows of the new configuration task T, wherein the number of times the configuration task is traversed is the number of rows of the new configuration task T; Loop through the configuration tasks T times; After completing the traversal configuration task, run the SVN COMMIT command to display the update confirmation interface; After confirming that the code files generated by looping through the configuration tasks T times meet the expected task requirements, when receiving the submission instruction, batch generate the advertising landing page codes.
4. The method according to claim 3, characterized in that: When the number of traversal configuration tasks is T, the cyclic traversal configuration tasks includes: Determine whether the initial link address and the final link address are written in the configuration task of the current row; If yes, obtain a template code according to the initial link address, wherein the template code is the code corresponding to the initial link address; if no, start the next traversal configuration task; Determine whether the code of the final link address already exists; If the code of the final link address does not exist, or if the code of the final link address already exists and the confirmation value is the preset first confirmation value, the generated code of the final link address will overwrite the source code file, wherein the source code file includes a program file with a PHP suffix and an HTML suffix; If the code of the final link address exists and the confirmation value is the preset second confirmation value, the next traversal configuration task is started.
5. The method according to claim 1, characterized in that: When the preset prompt content is displayed in the visual interface window, receiving the input controller name and confirmation value respectively includes: In the case where the BAT batch file and the PHP program file are written in the scripting language of the DOS system and the Windows system, when the visualization interface window of the DOS system is opened under the Windows system based on the BAT batch file, when the visualization interface window displays the first preset prompt content, the controller name is received, and when the visualization interface window displays the second preset prompt content, the confirmation value is received.
6. A system for batch generating advertisement landing page codes, characterized in that: The system comprises: Acquisition module, used to obtain BAT batch files and PHP program files; The configuration module is used to configure the configuration file, including: obtaining the configuration file; when opening the configuration file, receiving the initial link address and the final link address written in each line of configuration task according to the preset URL link format, wherein the configuration file is equipped with several lines of configuration tasks, and each line of configuration task has a final link address written thereon; A visualization interface window opening module is used to open a visualization interface window based on the BAT batch file when receiving a click instruction when the configuration file is completed; A receiving module, used to receive the input controller name and confirmation value respectively when the preset prompt content is displayed in the visual interface window, wherein the controller name is the name of the function module in the PHP language specifically used to process the business process; The batch generation module is used to execute the PHP program file to batch generate advertising landing page codes after the controller name and the confirmation value are input.
7. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to execute the method for batch generating advertising landing page codes according to any one of claims 1 to 5.
8. A storage medium, characterized in that: The storage medium stores a computer program, wherein the computer program is configured to execute the method for batch generating advertising landing page codes according to any one of claims 1 to 5 when running.
Citation Information
Patent Citations
Advertisement landing page detection method and device, electronic equipment and storage medium
CN113723980A
Page generation method and device
CN114036443A