CN109388397B - Product page generation method, system, computer device and storage medium - Google Patents

Product page generation method, system, computer device and storage medium Download PDF

Info

Publication number
CN109388397B
CN109388397B CN201811124681.7A CN201811124681A CN109388397B CN 109388397 B CN109388397 B CN 109388397B CN 201811124681 A CN201811124681 A CN 201811124681A CN 109388397 B CN109388397 B CN 109388397B
Authority
CN
China
Prior art keywords
configuration
page
product
product information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811124681.7A
Other languages
Chinese (zh)
Other versions
CN109388397A (en
Inventor
张瑞辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Property and Casualty Insurance Company of China Ltd
Original Assignee
Ping An Property and Casualty Insurance Company of China Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Property and Casualty Insurance Company of China Ltd filed Critical Ping An Property and Casualty Insurance Company of China Ltd
Priority to CN201811124681.7A priority Critical patent/CN109388397B/en
Publication of CN109388397A publication Critical patent/CN109388397A/en
Application granted granted Critical
Publication of CN109388397B publication Critical patent/CN109388397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a product page generation method, a system, computer equipment and a storage medium based on cluster computing in the technical field of cloud service. The method comprises the following steps: receiving a page configuration file uploaded by a terminal, and reading the page configuration file, wherein a product identifier and corresponding product information are recorded in the page configuration file; acquiring a configuration page, wherein the configuration page comprises a plurality of configuration items; identifying a configuration item corresponding to the product information, and inputting the configuration item corresponding to the product information into the configuration page to obtain configured product information; and acquiring a corresponding page template according to the product identifier, loading the configured product information in the page template, and generating a corresponding product page. By adopting the method, the page generation efficiency of the insurance product can be effectively improved.

Description

Product page generation method, system, computer device and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a system, a computer device, and a storage medium for generating a product page.
Background
As the insurance demands go deep into various industries, the forms of insurance products are diversified, and the guarantee functions are different. Insurance products typically have corresponding pages in which corresponding subject, guarantee, formula, etc. content is referred to. In a conventional manner, the pages of an insurance product are typically completed by a developer by writing code. If some of the content in the page changes, the code needs to be rewritten, thereby resulting in inefficient page generation.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a product page generation method, system, computer device, and storage medium that can effectively improve the page generation efficiency of insurance products.
A method of product page generation, the method comprising:
Receiving a page configuration file uploaded by a terminal, and reading the page configuration file, wherein a product identifier and corresponding product information are recorded in the page configuration file;
Acquiring a configuration page, wherein the configuration page comprises a plurality of configuration items;
Identifying a configuration item corresponding to the product information, and inputting the configuration item corresponding to the product information into the configuration page to obtain configured product information;
And acquiring a corresponding page template according to the product identifier, loading the configured product information in the page template, and generating a corresponding product page.
In one embodiment, the product information includes a plurality of fields; the identifying the configuration item corresponding to the product information, and inputting the configuration item corresponding to the product information to the configuration page comprises:
identifying configuration items corresponding to the fields and input frame coordinates of the configuration items;
and controlling cursor movement in the configuration page according to the input frame coordinates, and inputting the product information of the corresponding field into the input frame of the corresponding configuration item.
In one embodiment, the configuration item is further provided with a drop-down box, and the method further includes:
When the configuration item corresponding to the product information is identified as a drop-down frame, controlling a cursor to move to the position of the drop-down frame;
and selecting an option corresponding to the product information from a plurality of options corresponding to the drop-down frame.
In one embodiment, the method further comprises:
acquiring a product page to be updated and a corresponding configuration update file, wherein a product identifier and corresponding update content are recorded in the configuration update file;
corresponding configuration information is obtained according to the product identifier, and the configuration information is updated according to the updating content;
and uploading the updated configuration information in a page template corresponding to the product identifier to generate an updated product page.
In one embodiment, before the reading the page profile, the method further comprises:
Receiving a product page generation request uploaded by a plurality of terminals through a main node, wherein the product page generation request carries a page configuration file;
The master node generates a product page generation task by utilizing the product page generation request;
the master node polls the load weights of a plurality of slave nodes and distributes the product page generating task to the slave nodes which are adaptive to the master node;
the reading of the page configuration file includes: and the slave node generates a task running configuration script according to the product page, and reads a page configuration file through the configuration script.
In one embodiment, the method further comprises:
the master node and the plurality of slave nodes are monitored in series, and form a linked list;
if the access request is not received between the master node and the slave node or between the slave node and the slave node beyond the preset time, determining that the node which does not send the access request is abnormal;
and updating the linked list according to the abnormal node, and continuously monitoring other nodes in series by using the updated linked list.
A product page generation system, the system comprising:
the terminal is used for creating a page configuration file and uploading the page configuration file to the server;
the server is used for receiving the page configuration file uploaded by the terminal, reading the page configuration file, and recording a product identifier and corresponding product information in the page configuration file; acquiring a configuration page, wherein the configuration page comprises a plurality of configuration items; identifying a configuration item corresponding to the product information, and inputting the configuration item corresponding to the product information into the configuration page to obtain configured product information; and acquiring a corresponding page template according to the product identifier, loading the configured product information in the page template, and generating a corresponding product page.
In one embodiment, the server includes a server cluster, where the server cluster includes a master node and a slave node, where the master node is configured to receive product page generation requests uploaded by multiple terminals, where the product page generation requests carry a page configuration file; generating a product page generation task by utilizing the product page generation request; polling the load weights of a plurality of slave nodes, and distributing the product page generating task to the corresponding slave node; the slave node is used for running a configuration script according to the product page generation task, reading a page configuration file through the configuration script, and executing the product page generation task by using the page configuration file to generate a corresponding product page.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method embodiments described above when the processor executes the computer program.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the various method embodiments described above.
According to the method, the system, the computer equipment and the storage medium for generating the product page, the product identification to be configured and the corresponding product information can be determined by receiving the page configuration file uploaded by the terminal and reading the page configuration file. The configuration page comprises a plurality of configuration items, and the configuration items corresponding to the product information can be input into the configuration page by identifying the configuration items corresponding to the product information, so that the configured product information is obtained. Therefore, the method can automatically configure a plurality of items of product information in the page configuration file. And acquiring a corresponding page template according to the product identifier, loading the configured product information into the page template, and generating a corresponding product page. In the whole process, corresponding codes are not required to be written, a plurality of items of product information are configured through the configuration page, and the configured product information is loaded into the page template, so that the corresponding product page can be generated, the work of writing the codes by a developer is saved, and the generation efficiency of the product page is effectively improved. In addition, in the process of product information configuration and product page generation, the participation of developers is not needed, and the generation efficiency of the product page is further improved.
Drawings
FIG. 1 is an application scenario diagram of a product page generation method in one embodiment;
FIG. 2 is a flow diagram of a method of generating a product page in one embodiment;
FIG. 3 is a flow chart of a method of generating a product page in another embodiment;
FIG. 4 is a schematic diagram of serial monitoring between multiple nodes in one embodiment;
FIG. 5 is a schematic diagram of an embodiment after serial monitoring adjustment after an abnormal node occurs;
FIG. 6 is a block diagram of a product page generation system in one embodiment;
fig. 7 is an internal structural diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
The method for generating the product page can be applied to an application environment shown in figure 1. Wherein the terminal 102 communicates with the server 104 via a network. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smartphones, tablet computers, and portable wearable devices, and the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers. When a developer needs to generate a product page of an insurance product, a corresponding page configuration file can be created through the terminal, and the page configuration file is uploaded to the server. And the server receives the page configuration file uploaded by the terminal. The server can read the page configuration file by running the configuration script to obtain a configuration page, wherein the configuration page comprises a plurality of configuration items. The server identifies configuration items corresponding to the product information through the configuration script, inputs the configuration items corresponding to the product information into the configuration page, obtains a corresponding page template according to the product identification, loads the configured product information in the page template, and generates a corresponding product page. In the whole process, corresponding codes do not need to be written, and the generation efficiency of the product page is effectively improved.
In one embodiment, as shown in fig. 2, a method for generating a product page is provided, and the method is applied to the server in fig. 1 for illustration, and includes the following steps:
Step 202, receiving a page configuration file uploaded by a terminal, reading the page configuration file, and recording a product identifier and corresponding product information in the page configuration file.
When a developer needs to generate a product page of an insurance product, a corresponding page configuration file can be created through the terminal. The page configuration file records the product identification and the corresponding product information. The product information in the page configuration file may be recorded corresponding to the configuration object. The configuration objects include targets, insurance clauses, formulas, and claim-free settings, among others. For example, the configuration object is: and the target attribute, the corresponding product information comprises a description of a freight target, the number of goods, the name of a ship, the number of a bill of lading, the premium factor and the like.
And the server receives the page configuration file uploaded by the terminal. The server stores the configuration script in advance, and when the server receives the page configuration file, the configuration script can be triggered to run. The page configuration file may be read by running a configuration script. The server can group the read product information and store the group information into a corresponding array. The server can read corresponding product information according to the configuration object, and groups the read product information according to the configuration object, wherein the read product information comprises targets, insurance clauses, formulas, claim-free settings and the like. The server may pre-establish an association relationship between the configuration object and the array, and store the read product information into the corresponding array according to the configuration object.
Step 204, a configuration page is obtained, wherein the configuration page comprises a plurality of configuration items.
Step 206, identifying the configuration items corresponding to the product information, and inputting the configuration items corresponding to the product information into the configuration page to obtain the configured product information.
The server enters a configuration page by running a configuration script. The configuration page comprises a plurality of configuration objects, and the configuration objects comprise one or more configuration items. The server can automatically perform configuration in the configuration page according to the page configuration file by running the configuration script. The server identifies the configuration objects, the configuration items and the input frame coordinates and the drop-down frames of the configuration items in the configuration page by running the configuration script. And the server reads the product information from the corresponding array according to the configuration object by running the configuration script, so as to identify the configuration item corresponding to the product information. The server inputs the read product information into an input box in the configuration page according to the corresponding configuration item through the configuration script or selects a corresponding option in the drop-down box, so that the corresponding configuration item of the product information is input into the configuration page. The server can sequentially read the product information in the corresponding array according to the arrangement sequence of each configuration object in the configuration page, and input the read product information to the corresponding position of the configuration page. The server saves the product information input into the configuration page. The product information input into the configuration page (i.e., the product information input into the configuration page corresponding to the configuration item) may also be referred to as configured product information.
Step 208, obtaining a corresponding page template according to the product identifier, loading the configured product information in the page template, and generating a corresponding product page.
A plurality of page templates are prestored on the server, and different insurance products can correspond to different page templates. The page template includes a plurality of items of content including product information in the page configuration file. Such as targets, insurance clauses, formulas, and claim-free settings, etc. The display position of each item of content is preset in the page template. The server groups, sorts, or orders them to determine the classification partition and display order in the page template. The server loads a plurality of items of configured product information, such as configured target fields, configured formulas, insurance clauses and the like, into the page template respectively to generate a product page of a corresponding insurance product.
In this embodiment, the product identifier to be configured and the corresponding product information may be determined by receiving the page configuration file uploaded by the terminal and reading the page configuration file. The configuration page comprises a plurality of configuration items, and the configuration items corresponding to the product information can be input into the configuration page by identifying the configuration items corresponding to the product information, so that the configured product information is obtained. Therefore, the method can automatically configure a plurality of items of product information in the page configuration file. And acquiring a corresponding page template according to the product identifier, loading the configured product information into the page template, and generating a corresponding product page. In the whole process, corresponding codes are not required to be written, a plurality of items of product information are configured through the configuration page, and the configured product information is loaded into the page template, so that the corresponding product page can be generated, the work of writing the codes by a developer is saved, and the generation efficiency of the product page is effectively improved. In addition, in the process of product information configuration and product page generation, the participation of developers is not needed, and the generation efficiency of the product page is further improved.
In one embodiment, the product information includes a plurality of fields; identifying the configuration item corresponding to the product information, and inputting the configuration item corresponding to the product information into the configuration page comprises: identifying configuration items corresponding to the fields and input frame coordinates of the configuration items; and controlling cursor movement in the configuration page according to the coordinates of the input frame, and inputting the product information of the corresponding field into the input frame of the corresponding configuration item.
The product information in the page profile may be recorded in rows or columns. The product information includes a plurality of fields, wherein the content recorded in a row or column corresponds to a configuration object. For example, if the configuration object is a target field, the configuration file may be recorded as: field name, field type, whether preset fields are used, whether the following links have to be recorded, whether to be displayed, whether to print, etc. When the server reads the product information in the page configuration file by running the configuration script, the server can read the product information according to rows or columns, and the read product information is respectively stored in an array. The array may correspond to a configuration object.
The server identifies the configuration item corresponding to the field in each item of product information by running the configuration script. Each configuration item has a unique location in the configuration page. The server identifies input box coordinates of the configuration item by running a configuration script. The server can sequentially read the product information in the corresponding array according to the configuration object, and input the read product information into the input box of the configuration item.
Specifically, the server controls the cursor to move in the configuration page according to the input frame coordinates of each configuration item in the configuration object. After the cursor is moved to the input box, the server may enter corresponding product information into the input box. The server controls the cursor to enter the input frame coordinates of the initial configuration item according to the input frame coordinates of the initial configuration item, the server inputs the product information in the corresponding array to the input frame of the initial configuration item, then the server controls the cursor to move to the input frame of the next configuration item according to the next input frame coordinates, the product information is continuously input, and the operations of controlling the cursor to move and inputting the product information are repeatedly controlled until all the product information is input.
In one embodiment, the configuration item is further provided with a drop-down box, and the method further includes: when the configuration item corresponding to the product information is identified as a drop-down frame, controlling a cursor to move to the position of the drop-down frame; among the plurality of options corresponding to the drop-down box, an option corresponding to the product information is selected.
The server identifies the configuration objects, configuration items and input frame coordinates and drop-down boxes of the configuration items in the configuration page by running the configuration script. And the server reads the product information from the corresponding array according to the configuration object by running the configuration script, so as to identify the configuration item corresponding to the product information. For a partial configuration item, a drop down box may be set. The drop-down box includes a plurality of preset options. When the server identifies that the configuration item corresponding to the product information is a drop-down frame, acquiring coordinates of the drop-down frame, controlling a mouse to move to the position of the coordinates of the drop-down frame in the configuration page, simulating mouse operation to click the drop-down frame, and selecting an option corresponding to the product information from a plurality of options in the drop-down frame.
The server can control the cursor to move in the configuration page and control the mouse to move to the position of the coordinates of the drop-down frame according to the coordinates of the input frame, and the coordinates of the input frame and the coordinates of the drop-down frame of the configuration items corresponding to the fields, so that the product information of the corresponding fields can be automatically input into the configuration page. Through automatic configuration, when more fields are in the product information, the configuration efficiency can be effectively improved, and the configuration accuracy can be effectively improved.
In one embodiment, the configuration of a part of the configuration objects may be repeated multiple times, and when the configuration is completed once, specific fields may be added according to the configuration information, where multiple specific fields form a list corresponding to the configuration. For example, a configuration object that can be repeatedly configured is a target attribute list, when one configuration is completed, a corresponding attribute field can be generated, and when multiple configurations are completed, a corresponding target attribute list can be composed of multiple attribute fields. By repeatedly configuring part of the configuration objects, corresponding product information can be conveniently displayed in the product page in a list form, so that the content of the product page can be enriched, and the display form of the product page can be optimized.
In one embodiment, the method further comprises: acquiring a product page to be updated and a corresponding configuration update file, wherein a product identifier and corresponding update content are recorded in the configuration update file; acquiring corresponding configuration information according to the product identifier, and updating the configuration information according to the updating content; and loading the updated configuration information in a page template corresponding to the product identifier to generate an updated product page.
After the product page of the insurance product is generated, the insurance product can be updated according to the service requirement. In the traditional mode, a developer is required to rewrite codes of a product page according to updating requirements, and the updating efficiency is low. In this embodiment, the server may configure itself using the page configuration file, and load the configured product information into the page template, thereby generating a corresponding product page. The configured product information may also be referred to as configuration information. And the server stores the configuration information corresponding to the product identifier.
Therefore, when the product page needs to be updated, a developer can generate a corresponding configuration update file by using the terminal, and the server only needs to update the product page by using the configuration update file. Specifically, the server receives a product page to be updated and a corresponding configuration update file uploaded by the terminal, and the configuration update file records a product identifier and corresponding update content. The server obtains corresponding configuration information according to the product identifier, identifies a configuration item to be updated corresponding to the update content in a plurality of configuration items according to the update content, and updates the configuration item to be updated by using the update content. The server acquires a page template corresponding to the product identifier, and loads updated configuration information in the page template, so that an updated product page is generated.
In this embodiment, the configuration information corresponding to the product to be updated is updated by using the configuration update file, so that the updated configuration information can be used to complete updating of the product page. And a developer does not need to re-write codes, so that the updating efficiency of the product page is effectively improved.
In one embodiment, a method for generating a product page is provided, which can be applied to a server cluster, wherein the server cluster comprises a master node and a plurality of slave nodes. The specific steps of the method are shown in fig. 3:
in step 302, a product page generation request uploaded by a plurality of terminals is received by a master node, where the product page generation request carries a page configuration file.
In step 304, the master node generates a product page generation task using the product page generation request.
Step 306, the master node polls the load weights of the plurality of slave nodes and distributes the product page generating task to the corresponding slave nodes.
Step 308, the slave node generates a task running configuration script according to the product page, and reads the page configuration file through the configuration script.
In step 310, a configuration page is obtained from the node, where the configuration page includes a plurality of configuration items.
Step 312, the slave node identifies the configuration item corresponding to the product information, and inputs the configuration item corresponding to the product information to the configuration page to obtain the configured product information.
Step 314, the slave node obtains the corresponding page template according to the product identifier, loads the configured product information in the page template, and generates a corresponding product page.
The master node communicates with a plurality of terminals. A plurality of slave nodes communicate with a master node. When the master node receives the product page generation request, a corresponding product page generation task can be generated according to the product page generation request. The slave nodes are pre-deployed with configuration scripts, and the server distributes the product service generating tasks to the corresponding slave nodes by polling the load weights of the slave nodes, so that the slave nodes can run the configuration scripts, and the product page generating tasks are automatically completed. When receiving the task of generating the product page, the slave node can trigger the running of the configuration script according to a preset time interval. With reference to the manner provided in the above embodiments, a corresponding product page is generated. Therefore, when facing various product page generation tasks, a plurality of slave nodes can generate corresponding product pages in parallel, and the generation efficiency of the product pages is further improved.
Specifically, the master node obtains current load weights corresponding to the plurality of slave node identifiers according to the node list, and traverses the current load weights corresponding to the plurality of slave node identifiers to obtain the highest load weight. And the master node distributes the first product page generating task in the message queue to the slave node with the highest load weight, and performs smoothing processing on the current load weight of the slave node after the product page generating task is distributed. The master node calculates current load weights corresponding to the plurality of slave node identifiers according to the smoothing result to obtain the highest current load weight, distributes the next product page generating task in the message queue to the slave node with the highest current load weight, and obtains the slave node identifier corresponding to the next product page generating task. The resource consumption of the slave nodes of the current allocated product page generation task can be offset through smoothing processing, repeated calculation of load weights of the slave nodes is prevented, and load balancing of a plurality of slave nodes in the server cluster is achieved. And meanwhile, the efficiency of the parallel distribution of the product page generation tasks by a plurality of slave nodes is improved.
In one embodiment, the method further comprises: the master node and the slave nodes are monitored in series, and form a linked list; if the access request is not received between the master node and the slave node or between the slave node and the slave node beyond the preset time, determining that the node which does not send the access request is abnormal; and updating the linked list according to the abnormal node, and continuously monitoring other nodes in series by using the updated linked list.
To ensure that each node in a server cluster can continue to operate, the nodes in the cluster employ a mechanism that oversees each other. Specifically, each node is provided with a monitoring thread, and the monitoring thread monitors the running condition of the node and the running condition of the related node. The multiple nodes can be monitored in series to form a linked list. Serial monitoring between multiple nodes may be as shown in fig. 4. The master node accesses the first slave node according to a preset time interval, the first slave node accesses the second slave node according to a preset time interval, the second slave node accesses the third slave node according to a preset time interval, and the third slave node accesses the master node according to a preset time interval. The monitoring thread forms a linked list according to the access sequence among the nodes. The linked list records a plurality of node identifications and access sequences among the nodes. When the preset time interval is exceeded and one of the nodes does not receive the access request, it can be determined that the last node corresponding to the node, that is, the node which does not send the access request, is abnormal. Deleting the node identification of the abnormal node in the linked list through the monitoring thread, correspondingly adjusting the access sequence among the nodes, and updating the linked list. For example, when the occurrence of an abnormality of the third slave node is monitored, the third slave node is deleted from the linked list, and the second slave node is adjusted to access the master node at preset time intervals. The serial monitoring is adjusted as shown in fig. 5. Due to the fact that a serial supervision mechanism is adopted for a plurality of nodes in the cluster, the nodes in the cluster can be ensured to continuously survive.
Furthermore, when nodes are added or reduced in the server cluster, the linked list can be updated correspondingly through the monitoring thread. And serially monitoring according to the nodes recorded in the updated linked list and the access sequence among the nodes, so that after the server cluster is adjusted, the nodes in the server cluster can still be ensured to continuously survive.
It should be understood that, although the steps in the flowcharts of fig. 2 and 3 are shown in order as indicated by the arrows, these steps are not necessarily performed in order as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 2 and 3 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of the other steps or sub-steps of other steps.
In one embodiment, as shown in FIG. 6, there is provided a product page generation system comprising:
And the terminal 602 is used for creating a page configuration file and uploading the page configuration file to the server.
The server 604 is configured to receive a page configuration file uploaded by the terminal, read the page configuration file, and record a product identifier and corresponding product information in the page configuration file; acquiring a configuration page, wherein the configuration page comprises a plurality of configuration items; identifying configuration items corresponding to the product information, and inputting the configuration items corresponding to the product information into a configuration page to obtain configured product information; and acquiring a corresponding page template according to the product identifier, loading the configured product information in the page template, and generating a corresponding product page.
In one embodiment, the product information includes a plurality of fields; the server is also used for identifying the configuration item corresponding to the field and the input frame coordinates of the configuration item; and controlling cursor movement in the configuration page according to the coordinates of the input frame, and inputting the product information of the corresponding field into the input frame of the corresponding configuration item.
In one embodiment, the configuration item is further provided with a drop-down frame, and the server is further configured to control the cursor to move to the position of the drop-down frame when the configuration item corresponding to the product information is identified as the drop-down frame; among the plurality of options corresponding to the drop-down box, an option corresponding to the product information is selected.
In one embodiment, the terminal is further configured to create a configuration update file corresponding to the product page to be updated; the server is also used for acquiring a product page to be updated and a corresponding configuration update file, wherein the configuration update file records a product identifier and corresponding update content; acquiring corresponding configuration information according to the product identifier, and updating the configuration information according to the updating content; and loading the updated configuration information in a page template corresponding to the product identifier to generate an updated product page.
In one embodiment, the server includes a server cluster, where the server cluster includes a master node and a slave node, the master node is configured to receive product page generation requests uploaded by multiple terminals, where the product page generation requests carry a page configuration file; generating a product page generation task by using the product page generation request; polling the load weights of a plurality of slave nodes, and distributing the product page generating task to the corresponding slave nodes; the slave node is used for running a configuration script according to the product page generation task, reading a page configuration file through the configuration script, executing the product page generation task by using the page configuration file, and generating a corresponding product page.
In one embodiment, serial monitoring is performed between a master node and a plurality of slave nodes, and the master node and the plurality of slave nodes form a linked list; if the access request is not received between the master node and the slave node or between the slave node and the slave node beyond the preset time, determining that the node which does not send the access request is abnormal; and updating the linked list according to the abnormal node, and continuously monitoring other nodes in series by using the updated linked list.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 7. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured 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, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store page configuration files, configuration scripts, etc. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a product page generation method.
It will be appreciated by those skilled in the art that the structure shown in FIG. 7 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when executed by a processor, carries out the steps of the respective method embodiments described above.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of 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), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (10)

1. A method of product page generation, the method comprising:
Receiving a page configuration file uploaded by a terminal, reading the page configuration file, recording a product identifier and corresponding product information in the page configuration file, grouping the product information according to a configuration object, and storing the read product information into a corresponding array according to the configuration object;
Acquiring a configuration page, wherein the configuration page comprises a plurality of configuration items;
Identifying a configuration item corresponding to the product information, inputting the configuration item corresponding to the product information into the configuration page to obtain configured product information, wherein the configuration page comprises the following steps of: identifying a configuration object in the configuration page, reading product information in a corresponding array according to the configuration object, inputting the read product information to a corresponding position of the configuration page, repeating configuration for a plurality of times by part of the configuration object, and adding a specific field according to the configuration information when the configuration is completed once, wherein a list corresponding to the configuration is formed by a plurality of specific fields;
Acquiring a corresponding page template according to the product identifier, loading the configured product information in the page template, and generating a corresponding product page;
before the reading of the page profile, the method further comprises:
Receiving a product page generation request uploaded by a plurality of terminals through a main node, wherein the product page generation request carries a page configuration file;
The master node generates a product page generation task by utilizing the product page generation request;
the master node polls the load weights of a plurality of slave nodes and distributes the product page generating task to the slave nodes which are adaptive to the master node;
the reading the page configuration file includes: the slave node generates a task running configuration script according to the product page, and reads a page configuration file through the configuration script;
The method further comprises the steps of:
the master node and the plurality of slave nodes are monitored in series, and form a linked list;
if the access request is not received between the master node and the slave node or between the slave node and the slave node beyond the preset time, determining that the node which does not send the access request is abnormal;
and updating the linked list according to the abnormal node, and continuously monitoring other nodes in series by using the updated linked list.
2. The method of claim 1, wherein the product information comprises a plurality of fields; the identifying the configuration item corresponding to the product information, and inputting the configuration item corresponding to the product information to the configuration page comprises:
identifying configuration items corresponding to the fields and input frame coordinates of the configuration items;
and controlling cursor movement in the configuration page according to the input frame coordinates, and inputting the product information of the corresponding field into the input frame of the corresponding configuration item.
3. The method of claim 2, wherein the configuration item is further provided with a drop-down box, the method further comprising:
When the configuration item corresponding to the product information is identified as a drop-down frame, controlling a cursor to move to the position of the drop-down frame;
and selecting an option corresponding to the product information from a plurality of options corresponding to the drop-down frame.
4. The method according to claim 1, wherein the method further comprises:
acquiring a product page to be updated and a corresponding configuration update file, wherein a product identifier and corresponding update content are recorded in the configuration update file;
corresponding configuration information is obtained according to the product identifier, and the configuration information is updated according to the updating content;
and uploading the updated configuration information in a page template corresponding to the product identifier to generate an updated product page.
5. A product page generation system, the system comprising:
the terminal is used for creating a page configuration file and uploading the page configuration file to the server;
The server is used for receiving the page configuration file uploaded by the terminal, reading the page configuration file, recording a product identifier and corresponding product information in the page configuration file, grouping the product information according to a configuration object, and storing the read product information into a corresponding array according to the configuration object; acquiring a configuration page, wherein the configuration page comprises a plurality of configuration items; identifying a configuration item corresponding to the product information, inputting the configuration item corresponding to the product information into the configuration page to obtain configured product information, wherein the configuration page comprises the following steps of: identifying a configuration object in the configuration page, reading product information in a corresponding array according to the configuration object, inputting the read product information to a corresponding position of the configuration page, repeating configuration for a plurality of times by part of the configuration object, adding a specific field according to the configuration information when configuration is completed once, forming a list corresponding to configuration by a plurality of specific fields, repeating configuration for a plurality of times by part of the configuration object, adding a specific field according to the configuration information when configuration is completed once, and forming a list corresponding to configuration by a plurality of specific fields; acquiring a corresponding page template according to the product identifier, loading the configured product information in the page template, and generating a corresponding product page;
The server comprises a server cluster, wherein the server cluster comprises a master node and a slave node, the master node is used for receiving product page generation requests uploaded by a plurality of terminals, and the product page generation requests carry page configuration files; generating a product page generation task by utilizing the product page generation request; polling the load weights of a plurality of slave nodes, and distributing the product page generating task to the corresponding slave node; the slave node is used for running a configuration script according to the product page generation task, reading a page configuration file through the configuration script, and executing the product page generation task by using the page configuration file to generate a corresponding product page; the master node and the plurality of slave nodes are monitored in series, and form a linked list; if the access request is not received between the master node and the slave node or between the slave node and the slave node beyond the preset time, determining that the node which does not send the access request is abnormal; and updating the linked list according to the abnormal node, and continuously monitoring other nodes in series by using the updated linked list.
6. The system of claim 5, wherein the product information comprises a plurality of fields; the server is also used for identifying the configuration item corresponding to the field and the input frame coordinates of the configuration item; and controlling cursor movement in the configuration page according to the input frame coordinates, and inputting the product information of the corresponding field into the input frame of the corresponding configuration item.
7. The system of claim 6, wherein the configuration item is further provided with a drop-down frame, and the server is further configured to control a cursor to move to a position of the drop-down frame when the configuration item corresponding to the product information is identified as the drop-down frame; and selecting an option corresponding to the product information from a plurality of options corresponding to the drop-down frame.
8. The system of claim 5, wherein the terminal is further configured to create a configuration update file corresponding to a product page to be updated;
The server is also used for acquiring a product page to be updated and a corresponding configuration update file, wherein the configuration update file records a product identifier and corresponding update content; corresponding configuration information is obtained according to the product identifier, and the configuration information is updated according to the updating content; and uploading the updated configuration information in a page template corresponding to the product identifier to generate an updated product page.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the method of any of claims 1 to 4 when the computer program is executed.
10. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method of any of claims 1 to 4.
CN201811124681.7A 2018-09-26 2018-09-26 Product page generation method, system, computer device and storage medium Active CN109388397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811124681.7A CN109388397B (en) 2018-09-26 2018-09-26 Product page generation method, system, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811124681.7A CN109388397B (en) 2018-09-26 2018-09-26 Product page generation method, system, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN109388397A CN109388397A (en) 2019-02-26
CN109388397B true CN109388397B (en) 2024-05-03

Family

ID=65418145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811124681.7A Active CN109388397B (en) 2018-09-26 2018-09-26 Product page generation method, system, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN109388397B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984239B (en) * 2019-05-24 2024-02-09 腾讯科技(深圳)有限公司 Page configuration method, page configuration device, server and storage medium
CN112068873B (en) * 2019-06-10 2024-08-06 腾讯科技(深圳)有限公司 Webpage generation method, device, server and storage medium
CN110704143A (en) * 2019-08-14 2020-01-17 中国平安财产保险股份有限公司 Page generation method and device
CN111080459B (en) * 2019-11-21 2023-08-25 泰康保险集团股份有限公司 Configuration file configuration method and device and readable storage medium
CN112988115A (en) * 2019-12-13 2021-06-18 阿里巴巴集团控股有限公司 Application building method and device and computer readable storage medium
CN111400145B (en) * 2020-03-31 2022-09-09 厦门科灿信息技术有限公司 Configuration method and device of flow chart monitoring page and terminal equipment
CN111736890A (en) * 2020-06-12 2020-10-02 北京达佳互联信息技术有限公司 Data updating method and device, electronic equipment and storage medium
CN112684957A (en) * 2020-12-30 2021-04-20 上海瑞家信息技术有限公司 Information display method and device, electronic equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7353259B1 (en) * 2002-03-07 2008-04-01 Cisco Technology, Inc. Method and apparatus for exchanging configuration information between nodes operating in a master-slave configuration
CN107562496A (en) * 2017-07-21 2018-01-09 阿里巴巴集团控股有限公司 A kind of method and device of page configuration and page presentation
CN108156235A (en) * 2017-12-22 2018-06-12 平安养老保险股份有限公司 Online verification method, apparatus, computer equipment and storage medium
CN108255566A (en) * 2018-01-29 2018-07-06 平安科技(深圳)有限公司 Optimized treatment method, device, computer equipment and the storage medium of data inputting
CN108446116A (en) * 2018-02-26 2018-08-24 平安普惠企业管理有限公司 Generation method, device, computer equipment and the storage medium of the application program page
CN108536459A (en) * 2018-04-13 2018-09-14 深圳壹账通智能科技有限公司 Update method, device, equipment and the computer storage media of financial product

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7353259B1 (en) * 2002-03-07 2008-04-01 Cisco Technology, Inc. Method and apparatus for exchanging configuration information between nodes operating in a master-slave configuration
CN107562496A (en) * 2017-07-21 2018-01-09 阿里巴巴集团控股有限公司 A kind of method and device of page configuration and page presentation
CN108156235A (en) * 2017-12-22 2018-06-12 平安养老保险股份有限公司 Online verification method, apparatus, computer equipment and storage medium
CN108255566A (en) * 2018-01-29 2018-07-06 平安科技(深圳)有限公司 Optimized treatment method, device, computer equipment and the storage medium of data inputting
CN108446116A (en) * 2018-02-26 2018-08-24 平安普惠企业管理有限公司 Generation method, device, computer equipment and the storage medium of the application program page
CN108536459A (en) * 2018-04-13 2018-09-14 深圳壹账通智能科技有限公司 Update method, device, equipment and the computer storage media of financial product

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于配置文件的web页面自动生成***;尹航 等;软件;20141225;第35卷(第10期);第117-121页 *

Also Published As

Publication number Publication date
CN109388397A (en) 2019-02-26

Similar Documents

Publication Publication Date Title
CN109388397B (en) Product page generation method, system, computer device and storage medium
CN112632798B (en) Simulation test method, device, equipment and storage medium of warehouse management system
US20170220667A1 (en) Independent data processing environments within a big data cluster system
CN108874926A (en) Mass data inquiry method, device, computer equipment and storage medium
CN109358874B (en) Business rule updating method, business rule updating device, computer equipment and storage medium
CN110321284B (en) Test data entry method, device, computer equipment and storage medium
CN112163048A (en) Method and device for realizing OLAP analysis based on ClickHouse
CN113439424B (en) Establishing a blockchain having blocks including an adjustable number of transaction blocks and a plurality of intermediate blocks
CN109542962B (en) Data processing method, data processing device, computer equipment and storage medium
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
US20220292056A1 (en) Method and apparatus for modifying file name, and storage medium
CN114089921A (en) Power system data storage method and device, computer equipment and storage medium
CN112465461A (en) Business object information changing method, system, computer device and storage medium
CN116185740A (en) Scheme testing method, device, computer equipment and storage medium
CN113962587A (en) Device inventory method, device, computer device and computer-readable storage medium
US11126604B2 (en) Aggregation apparatus, aggregation method, and storage medium
CN112561421A (en) Multi-warehouse logistics source-finding distribution method and device, computer equipment and storage medium
US10402230B2 (en) System allocating links for data packets in an electronic system
JP7285115B2 (en) Subscription device, subscription method, and subscription program
CN117235156B (en) Data analysis processing method, device, computer equipment and storage medium
CN105683961A (en) Method and system for managing data for performing write back on what-if analysis
CN113656155B (en) Task processing method, device, computer equipment and storage medium
CN112363927B (en) Code testing method, device, computer equipment and storage medium
CN112883123B (en) Method and device for maintaining inter-organization dependency relationship, computer equipment and storage medium
CN112749821B (en) Express delivery quantity prediction method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant