CN107644044B - Page content generation method and device - Google Patents

Page content generation method and device Download PDF

Info

Publication number
CN107644044B
CN107644044B CN201610585277.4A CN201610585277A CN107644044B CN 107644044 B CN107644044 B CN 107644044B CN 201610585277 A CN201610585277 A CN 201610585277A CN 107644044 B CN107644044 B CN 107644044B
Authority
CN
China
Prior art keywords
page
content
page template
identifier
preset
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
CN201610585277.4A
Other languages
Chinese (zh)
Other versions
CN107644044A (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 Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co 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 Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201610585277.4A priority Critical patent/CN107644044B/en
Publication of CN107644044A publication Critical patent/CN107644044A/en
Application granted granted Critical
Publication of CN107644044B publication Critical patent/CN107644044B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention relates to a page content generation method and a device, wherein the method comprises the following steps: acquiring a page content generation request, wherein the page content generation request comprises a user identifier, modified content and a content type identifier corresponding to the modified content; searching at least one first page template identifier corresponding to the content type identifier according to the corresponding relation between the preset content type identifier and the page template identifier; acquiring a user grade corresponding to the user identification, and searching a second page template identification corresponding to the user grade from the first page template identification; and acquiring page template information corresponding to the second page template identifier, and generating static page information according to the modified content and the page template information. The page updating efficiency is improved.

Description

Page content generation method and device
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method and an apparatus for generating page content.
Background
In order to meet the faster life rhythm of modern people, the updating speed of information content is very fast, and some page contents need to be modified frequently due to business requirements.
In order to avoid the database from being over stressed due to reading updated page data from the background database, static pages are usually developed and made manually by modifying code. Thus, as long as business requirements require modification of page content, developers are required to manually modify code to develop a new static page version. Obviously, the labor cost is high, and the page content updating efficiency is low.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a page content generating method and apparatus capable of improving page update efficiency.
A method of generating page content, the method comprising the steps of:
acquiring a page content generation request, wherein the page content generation request comprises a user identifier, modified content and a content type identifier corresponding to the modified content;
searching at least one first page template identifier corresponding to the content type identifier according to the corresponding relation between the preset content type identifier and the page template identifier;
acquiring a user grade corresponding to the user identification, and searching a second page template identification corresponding to the user grade from the first page template identification;
and acquiring page template information corresponding to the second page template identifier, and generating static page information according to the modified content and the page template information.
In one embodiment, before the step of searching for the at least one first page template identifier corresponding to the content type identifier, the method further includes:
generating a signing request according to the modified content and the user identification, and sending the signing request to a signing system;
and receiving a signing result returned by the signing system, and searching at least one first page template identifier corresponding to the content type identifier according to the corresponding relation between the preset content type identifier and the page template identifier when the signing result is that the signing passes.
In one embodiment, the method further comprises:
acquiring a uniform resource identifier corresponding to the static page information;
acquiring a domain name of a preset content distribution network;
and generating a page link corresponding to the static page information according to the uniform resource identifier corresponding to the static page information and the domain name of the preset content distribution network.
In one embodiment, the step of generating static page information according to the modified content and the page template information includes:
when the modified content contains preset keywords, acquiring a style adjustment mode corresponding to the preset keywords, and adjusting the style of the page template information according to the corresponding style adjustment mode;
and generating static page information according to the modified content and the page template information after the style adjustment.
In one embodiment, the step of generating static page information according to the modified content and the page template information includes:
when the number of the modified content exceeds a preset character number threshold, calculating the character number difference value between the number of the modified content and the preset character number threshold;
adjusting the style of the page template information according to the character number difference value;
and generating a static page according to the modified content and the page template information after the style adjustment.
An apparatus for generating page content, the apparatus comprising:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring a page content generation request which comprises a user identifier, modified content and a content type identifier corresponding to the modified content;
the first page template identification determining module is used for searching at least one first page template identification corresponding to the content type identification according to the corresponding relation between the preset content type identification and the page template identification;
the second page template identification determining module is used for acquiring the user grade corresponding to the user identification and searching a second page template identification corresponding to the user grade from the first page template identification;
and the generating module is used for acquiring page template information corresponding to the second page template identifier and generating static page information according to the modified content and the page template information.
In one embodiment, the generating module is further configured to generate a signing request according to the modified content and the user identifier, and send the signing request to a signing system;
the acquisition module is further configured to receive an approval result returned by the approval system, and when the approval result is that the approval passes, notify the first page template identifier determination module to search for at least one first page template identifier corresponding to the content type identifier according to the correspondence between the preset content type identifier and the page template identifier.
In one embodiment, the obtaining module is further configured to obtain a uniform resource identifier corresponding to the static page information, and obtain a domain name of a preset content distribution network;
the generating module is further configured to generate a page link corresponding to the static page information according to the uniform resource identifier corresponding to the static page information and the domain name of the preset content distribution network.
In one embodiment, the generating module comprises:
the first pattern adjusting module is used for acquiring a pattern adjusting mode corresponding to a preset keyword when the modified content contains the preset keyword, and adjusting the pattern of the page template information according to the corresponding pattern adjusting mode;
and the first page information generating module is used for generating static page information according to the modified content and the page template information after the style adjustment.
In one embodiment, the generating module comprises:
the second style adjusting module is used for calculating a character number difference value between the character number of the modified content and a preset character number threshold when the character number of the modified content exceeds the preset character number threshold, and adjusting the style of the page template information according to the character number difference value;
and the second page information generating module is used for generating a static page according to the modified content and the page template information after the style adjustment.
In the embodiment, a page content generation request is obtained, wherein the page content generation request comprises a user identifier, modified content and a content type identifier corresponding to the modified content; searching at least one first page template identifier corresponding to the content type identifier according to the corresponding relation between the preset content type identifier and the page template identifier; acquiring a user grade corresponding to the user identification, and searching a second page template identification corresponding to the user grade from the first page template identification; and acquiring page template information corresponding to the second page template identifier, and generating static page information according to the modified content and the page template information. Namely, the static page information is automatically generated according to the modified content, so that the time cost is reduced, and the page updating efficiency is improved.
Drawings
FIG. 1 is a flowchart illustrating a method for generating page content according to an embodiment;
FIG. 2 is a flowchart illustrating a method for generating a page link according to one embodiment;
FIG. 3 is a flowchart illustrating a method for generating static page information according to an embodiment;
FIG. 4 is a diagram showing the structure of a page content generating apparatus according to an embodiment;
FIG. 5 is a diagram illustrating the structure of a generation module in one embodiment;
fig. 6 is a schematic structural diagram of a generation module in another embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As shown in fig. 1, there is provided a page content generating method, including the steps of:
step 102, a page content generation request is obtained, wherein the page content generation request comprises a user identifier, modified content and a content type identifier corresponding to the modified content.
In this embodiment, after a page content modifying person modifies the page content through the terminal according to a service requirement, the terminal generates a corresponding page content generation request and sends the page content generation request to the Web server, and the Web server obtains the page content generation request. Further, the user identifier, the modified content and the content type identifier corresponding to the modified content included in the page content generation request are obtained.
It is to be understood that the terminal herein refers to a terminal having a function of transmitting a page content generation request. The terminal also has other functions. And the user corresponding to the user identification is a page content modifier for modifying the page content. Modified content refers to the full amount of content for page presentation that is made up of modified content and unmodified content.
Further, the content type refers to the type of each display item in the page, including the types of activity details, advertisement details, and the like.
And 104, searching at least one first page template identifier corresponding to the content type identifier according to the corresponding relation between the preset content type identifier and the page template identifier.
In this embodiment, the corresponding relationship between the content type identifier and the page template identifier is preset in the Web server. The same content type identifier may correspond to one or more page template identifiers, and one page template identifier corresponds to one content type identifier.
Further, at least one first page template identifier corresponding to the content type identifier corresponding to the modified content is searched according to the corresponding relation.
And 106, acquiring the user grade corresponding to the user identification, and searching a second page template identification corresponding to the user grade from the first page template identification.
In this embodiment, the Web server stores in advance a correspondence between the user identifier and the user level. And determining the user grade corresponding to the user identification contained in the page content generation request according to the corresponding relation.
The corresponding relation between the user grade and the page template identification is preset in the Web server, and the page template identification corresponding to the user grade is found out from the first page template identification according to the corresponding relation, namely the second page template identification.
And step 108, acquiring page template information corresponding to the second page template identifier, and generating static page information according to the modified content and the page template information.
Further, the Web server pre-stores the corresponding relationship between the page template identifier and the page template information, and searches the page template information corresponding to the second page template identifier according to the corresponding relationship. And generating static page information according to the modified content and the searched page template information. Specifically, the modified content is added to the page template information to generate static page information.
In this embodiment, after the page content generation request is obtained, the corresponding first page template identifier is automatically searched according to the content type identifier corresponding to the modified content, the user level corresponding to the user identifier is obtained, the second page template identifier corresponding to the user level is further searched from the searched first page template identifier, the page template information corresponding to the second page template identifier is obtained, and the static page information is generated according to the modified content and the page template information. Namely, the static page information is automatically generated according to the modified content, so that the time cost is reduced, and the page updating efficiency is improved.
In addition, code modification is not required to be carried out by special developers, static page information is automatically generated according to modified contents, the professional requirements on page content modifiers are reduced, and the page content modification difficulty is reduced.
In addition, the static page information corresponding to the user level is generated, so that the flexibility and the safety of generating the static page are improved.
In one embodiment, before the step of searching for the at least one first page template identifier corresponding to the content type identifier, the method further includes: and generating a signing request according to the modified content and the user identification, sending the signing request to a signing system, receiving a signing result returned by the signing system, and searching at least one first page template identification corresponding to the content type identification according to a preset corresponding relation between the content type identification and the page template identification when the signing result is that the signing passes.
In this embodiment, before the Web server searches for at least one first page template identifier corresponding to the content type identifier, the modified content and the user identifier signing request included in the request are generated according to the page content. And the Web server sends the generated approving request to the approving system. And the approving system performs corresponding approving operation according to the approving request and returns an approving result to the Web server after the approving operation is completed.
And the Web server receives the signing result returned by the signing system. And when the signing and checking result is that the signing and checking pass, executing a step of searching at least one first page template mark corresponding to the content type mark according to the corresponding relation between the preset content type mark and the page template mark. And when the signing result is that the signing is failed, the step of searching at least one first page template identifier corresponding to the content type identifier is not executed.
In this embodiment, after receiving the page content generation request, the signing and approving system may automatically generate a signing and approving request according to the modified content and the user identifier included in the page content generation request, and when the signing and approving result returned by the signing and approving system is that the signing and approving passes, the signing and approving system may then perform the search for at least one first page template identifier corresponding to the content type identifier. The controllability of the modification of the page content is improved, and therefore the safety is improved.
As shown in fig. 2, in an embodiment, the method further includes a page link generating step, which specifically includes the following steps:
step 202, obtaining a uniform resource identifier corresponding to the static page information.
Step 204, obtaining a preset domain name of the content distribution network.
In this embodiment, after the Web server generates the static page information, the uniform resource identifier corresponding to the static page information is obtained. Here, a Uniform Resource Identifier (URI) refers to a number or a name for uniquely identifying an element or an attribute.
The Web server has a domain name of a corresponding content distribution network set in advance. The content Delivery Network is a cdn (content Delivery Network web), a novel Network content service system is constructed based on an IP Network, and provides content Delivery and service based on efficiency requirements, quality requirements, and content order of content access and application.
Further, the Web server may obtain a domain name of a preset content distribution network after generating the static page information.
It should be noted that, the order of executing steps 202 and 204 is not limited, and step 202 may be executed first and then step 204 is executed, or step 204 may be executed and then step 202 is executed.
And step 206, generating a page link corresponding to the static page information according to the uniform resource identifier corresponding to the static page information and a preset domain name of the content distribution network.
Further, the Web server generates a page link corresponding to the static page information according to the uniform resource identifier corresponding to the static page information and a preset domain name of the content distribution network.
In this embodiment, the page link of the static page information is generated according to the uniform resource identifier corresponding to the static page information and the preset domain name of the content distribution network. When a user clicks a page link to access static page information through a terminal, the user can access a nearby content delivery network server (hereinafter referred to as a CDN server) corresponding to a content delivery network domain name in the page link to access the page, so that the condition that the access speed is slow due to the fact that the user pulls the static page information from a relatively far Web server when accessing the static page information is avoided, and the page access efficiency is improved.
It can be understood that after the Web server generates the static page information, the Web server may also generate the page link according to the domain name corresponding to the Web server and the uniform resource identifier corresponding to the static page information.
In one embodiment, the step of generating static page information based on the modified content and page template information comprises: and when the modified content contains the preset keyword, acquiring a style adjusting mode corresponding to the preset keyword, adjusting the style of the page template information according to the corresponding style adjusting mode, and generating the static page information according to the modified content and the page template information after the style adjustment.
Specifically, the Web server presets keywords, and after acquiring the page template information corresponding to the second page template identifier, the Web server further detects whether the modified content includes the preset keywords.
The corresponding relation between the preset keywords and the style adjusting mode is preset in the Web server. And when the modified content is detected to contain the preset keywords, acquiring a style adjusting mode corresponding to the contained preset keywords according to the corresponding relation.
It can be understood that when it is detected that the modified content does not include the preset keyword, the static page information may be generated directly according to the modified content and the page template information corresponding to the second page template identifier. It is also possible to further detect whether the number of characters of the modified content exceeds a preset character threshold.
And the Web server correspondingly adjusts the style of the page template information according to the acquired style adjustment mode.
And further, generating static page information according to the modified content and the page template information after the style adjustment.
Specifically, the style of the page template information is adjusted according to the acquired style adjusting mode to obtain the page template information with the adjusted style. And then, generating static page information according to the modified content and the page template information after the style adjustment.
In this embodiment, when it is detected that the modified content includes the preset keyword, the style adjustment is performed on the page template information according to a style adjustment manner corresponding to the preset keyword. The automatically adjusted page template information is matched with the modified content better. And then, generating static page information according to the page template information after the style adjustment and the modified content. The automatically generated static page information can better meet the display requirement of the page content, and the layout and the style of the generated static page information are more reasonable.
As shown in fig. 3, in an embodiment, the step of generating the static page information according to the modified content and the page template information (referred to as the static page information generating step for short) specifically includes the following steps:
step 302, when the number of characters of the modified content exceeds the preset number of characters threshold, calculating the difference between the number of characters in the modified content and the preset number of characters threshold.
In this embodiment, a character number threshold is preset in the Web server, and after the page template information corresponding to the second page template identifier is acquired, the Web server further detects whether the character number of the modified content exceeds the preset character number threshold.
And when the number of the characters of the modified content exceeds the preset character number threshold, calculating the difference value between the number of the characters in the modified content and the preset character number threshold.
It can be understood that when the number of characters of the modified content does not exceed the preset number of characters threshold, the static page information can be directly generated according to the modified content and the page template information corresponding to the second page template identifier. Or, further detecting whether the modified content contains a preset keyword.
And step 304, adjusting the style of the page template information according to the character number difference.
Further, the Web server determines the page template adjustment range corresponding to the character number difference value. Specifically, a correspondence between the character number difference interval and the page template adjustment range may be preset in the Web server. The Web server searches a character number difference interval corresponding to the character number difference, and searches a page template adjustment range corresponding to the corresponding character number difference interval according to the corresponding relation.
Or, a proportional relationship between the character number difference and the page template adjustment range is preset, and the page template adjustment range corresponding to the character number difference is determined according to the proportional relationship.
And further, adjusting the style of the page template information according to the determined page template adjustment range.
And step 306, generating a static page according to the modified content and the page template information after the style adjustment.
Specifically, the style of the page template information is adjusted according to the acquired style adjusting mode to obtain the page template information with the adjusted style. And then, generating static page information according to the modified content and the page template information after the style adjustment.
In this embodiment, when it is detected that the number of characters of the modified content exceeds the preset number-of-characters threshold, the style of the page template information is adjusted according to the character number difference between the number of characters of the modified content and the character number threshold. The automatically adjusted page template information is matched with the modified content better. And then, generating static page information according to the page template information after the style adjustment and the modified content. The automatically generated static page information can better meet the display requirement of the page content, and the layout, the style and the like of the generated static page information are more reasonable.
It can be understood that, in an embodiment, after the style of the page template information is adjusted according to the style adjustment manner corresponding to the preset keyword included in the modified content, it may be continuously detected whether the number of characters of the modified content exceeds the preset character number threshold, and when the number of characters of the modified content exceeds the preset character number threshold, the style of the page template information is adjusted according to the character number difference between the number of characters of the modified content and the character number threshold. And when the number of the characters does not exceed the preset character number threshold, generating static page information according to the modified content and the page template information after the style adjustment.
In another embodiment, after the style of the page template information is adjusted according to the character number difference between the modified content and the character number threshold, it may be continuously detected whether the modified content includes the preset keyword, and when the modified content includes the preset keyword, the style of the page template information is adjusted according to the style adjustment mode corresponding to the preset keyword. And when detecting that the preset keyword is not contained, generating static page information according to the modified content and the page template information after the style adjustment.
In this embodiment, the modified content is respectively detected by the preset keywords and the number of characters, so that the style of the page template information can be more comprehensively adjusted according to the modified content, and the automatically generated static page information can better meet the page content display requirement. Therefore, the layout, the style and the like of the generated static page information are more reasonable.
In one embodiment, the method further comprises: and acquiring a page access request, analyzing the page access request to obtain a uniform resource identifier of the static page information, searching the corresponding static page information according to the obtained uniform resource identifier of the static page information, and sending the static page information to the terminal to enable the terminal to display the static page information.
In this embodiment, the Web server may obtain the page access request. Specifically, the page access request may be sent by a terminal that displays a page, or may be sent by a CDN server (i.e., a content delivery network server). It can be understood that, when the page link is generated according to the domain name of the content delivery network and the Uniform Resource Identifier (URI) corresponding to the static page information, the Web server obtains the page access request sent by the CDN server. When the page link is generated according to the domain name corresponding to the Web server and the uniform resource identifier corresponding to the static page information, the Web server acquires the page access request sent by the page display terminal.
The Web server can analyze the acquired page access request to obtain a uniform resource identifier containing static page information in the page access request. And searching the corresponding static page information according to the obtained uniform resource identifier of the static page information.
Further, the Web server sends the searched static page information to the terminal, so that the terminal displays the static page information. Here, the terminal refers to a terminal for displaying page information.
Specifically, when the page access request is sent by the CDN server, the Web server sends the found static page information to the CDN server, and the CDN server forwards the static page information to the terminal. And when the page access request is sent by the terminal, the Web server directly sends the searched static page information to the terminal.
As shown in fig. 4, in one embodiment, a page content generating apparatus is provided, which includes an obtaining module 402, a first page template identifier determining module 404, a second page template identifier determining module 406, and a generating module 408, where:
an obtaining module 402, configured to obtain a page content generating request, where the page content generating request includes a user identifier, modified content, and a content type identifier corresponding to the modified content.
The first page template identifier determining module 404 is configured to search for at least one first page template identifier corresponding to the content type identifier according to a correspondence between the preset content type identifier and the page template identifier.
The second page template identifier determining module 406 is configured to obtain a user level corresponding to the user identifier, and find out a second page template identifier corresponding to the user level from the first page template identifier.
The generating module 408 is configured to obtain page template information corresponding to the second page template identifier, and generate static page information according to the modified content and the page template information.
In one embodiment, the generating module 408 is further configured to generate a signing request according to the modified content and the user identifier, and send the signing request to the signing system.
The obtaining module 402 is further configured to receive a signing result returned by the signing system, and when the signing result is that the signing passes, notify the first page template identifier determining module 404 to search for at least one first page template identifier corresponding to the content type identifier according to a preset correspondence between the content type identifier and the page template identifier.
In an embodiment, the obtaining module 402 is further configured to obtain a uniform resource identifier corresponding to the static page information, and obtain a domain name of the preset content distribution network.
The generating module 408 is further configured to generate a page link corresponding to the static page information according to the uniform resource identifier corresponding to the static page information and a preset domain name of the content distribution network.
As shown in FIG. 5, in one embodiment, the generation module 408 includes:
the first pattern adjusting module 408A is configured to, when the modified content includes a preset keyword, obtain a pattern adjusting manner corresponding to the preset keyword, and adjust the pattern of the page template information according to the corresponding pattern adjusting manner.
The first page information generating module 408B is configured to generate static page information according to the modified content and the page template information after the style adjustment.
As shown in FIG. 6, in one embodiment, the generation module 408 includes:
the second style adjusting module 408a is configured to, when the number of characters of the modified content exceeds the preset number-of-characters threshold, calculate a difference between the number of characters of the modified content and the preset number-of-characters threshold, and adjust the style of the page template information according to the difference between the number of characters;
and the second page information generating module 408b is configured to generate a static page according to the modified content and the page template information after the style adjustment.
It should be noted that the first and second pairs of style adjustment modules and page information generation modules are used for limitation, and are only used for distinguishing module names in different embodiments, and are not limited otherwise.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of generating page content, the method comprising the steps of:
acquiring a page content generation request sent by a terminal after a user modifies page content, wherein the page content generation request comprises a user identifier of the user, modified content and a content type identifier corresponding to the modified content; the content type refers to the type of each display item in the page, and comprises activity details and notice details; the modified content refers to the total content for page display, which is composed of modified content and unmodified content;
searching at least one first page template identifier corresponding to the content type identifier according to the corresponding relation between the preset content type identifier and the page template identifier;
acquiring a user grade corresponding to the user identification, and searching a second page template identification corresponding to the user grade from the first page template identification;
acquiring page template information corresponding to the second page template identifier, acquiring a style adjustment mode corresponding to a preset keyword when the modified content contains the preset keyword, and adjusting the style of the page template information according to the corresponding style adjustment mode;
when the modified content does not contain preset keywords, detecting whether the number of characters of the modified content exceeds a preset character threshold value;
when the number of the modified content exceeds a preset character number threshold, calculating the character number difference value between the number of the modified content and the preset character number threshold; adjusting the style of the page template information according to the character number difference value;
generating static page information according to the modified content and the page template information after the style adjustment;
acquiring a uniform resource identifier corresponding to the static page information and a preset domain name of a content distribution network;
generating a page link corresponding to the static page information according to the uniform resource identifier and the domain name of the preset content distribution network; and the page link is used for accessing a nearby content distribution network server corresponding to the content distribution network domain name in the page link through the terminal when a user clicks through the terminal so as to pull the static page information.
2. The method according to claim 1, further comprising, before the step of searching for the first page template identifier corresponding to at least one of the content type identifiers:
generating a signing request according to the modified content and the user identification, and sending the signing request to a signing system;
and receiving a signing result returned by the signing system, and searching at least one first page template identifier corresponding to the content type identifier according to the corresponding relation between the preset content type identifier and the page template identifier when the signing result is that the signing passes.
3. The method of claim 1, wherein the user is a page content modifier performing a modification operation on a page content.
4. The method of claim 1, wherein said searching for a second page template identifier corresponding to the user rank from the first page template identifier comprises:
and searching a second page template identifier corresponding to the user grade from the first page template identifier according to the corresponding relation between the pre-stored user grade and the page template identifier.
5. The method according to claim 1, wherein the adjusting the style of the page template information according to the character number difference comprises: and determining the page template adjustment range corresponding to the character number difference value, and adjusting the style of the page template information according to the determined page template adjustment range.
6. An apparatus for generating page content, the apparatus comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a page content generation request sent by a terminal after a user modifies page content, and the page content generation request comprises a user identifier of the user, modified content and a content type identifier corresponding to the modified content; the content type refers to the type of each display item in the page; the modified content refers to the total content for page display, which is composed of modified content and unmodified content;
the first page template identification determining module is used for searching at least one first page template identification corresponding to the content type identification according to the corresponding relation between the preset content type identification and the page template identification;
the second page template identification determining module is used for acquiring the user grade corresponding to the user identification and searching a second page template identification corresponding to the user grade from the first page template identification;
the generating module comprises a first style adjusting module, a first page information generating module, a second style adjusting module and a second page information generating module;
the first pattern adjustment module is configured to, when the modified content includes a preset keyword, obtain a pattern adjustment manner corresponding to the preset keyword, and adjust the pattern of the page template information according to the corresponding pattern adjustment manner;
the first page information generating module is used for generating static page information according to the modified content and the page template information after the style is adjusted by the first style adjusting module;
the second style adjusting module is used for detecting whether the number of characters of the modified content exceeds a preset character threshold value or not when the modified content does not contain preset keywords; when the number of the modified content exceeds a preset character number threshold, calculating the character number difference value between the number of the modified content and the preset character number threshold; adjusting the style of the page template information according to the character number difference value;
the second page information generating module is used for generating static page information according to the modified content and the page template information after the style is adjusted by the second style adjusting module;
the acquisition module is further used for acquiring a uniform resource identifier corresponding to the static page information and a preset domain name of a content distribution network;
the generating module is further configured to generate a page link corresponding to the static page information according to the uniform resource identifier and the domain name of the preset content distribution network; and the page link is used for accessing a nearby content distribution network server corresponding to the content distribution network domain name in the page link through the terminal when a user clicks through the terminal so as to pull the static page information.
7. The apparatus of claim 6, wherein the generating module is further configured to generate a signing request according to the modified content and the user identifier, and send the signing request to a signing system;
the acquisition module is further configured to receive an approval result returned by the approval system, and when the approval result is that the approval passes, notify the first page template identifier determination module to search for at least one first page template identifier corresponding to the content type identifier according to the correspondence between the preset content type identifier and the page template identifier.
8. The apparatus of claim 6, wherein the user is a page content modifier performing a modification operation on a page content.
9. The apparatus according to claim 6, wherein the second page template identifier determining module is further configured to find the second page template identifier corresponding to the user rank from the first page template identifier according to a pre-stored correspondence between the user rank and the page template identifier.
10. The apparatus of claim 6, wherein the second style adjustment module is further configured to determine a page template adjustment range corresponding to the character number difference; and adjusting the style of the page template information according to the determined page template adjustment range.
CN201610585277.4A 2016-07-22 2016-07-22 Page content generation method and device Active CN107644044B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610585277.4A CN107644044B (en) 2016-07-22 2016-07-22 Page content generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610585277.4A CN107644044B (en) 2016-07-22 2016-07-22 Page content generation method and device

Publications (2)

Publication Number Publication Date
CN107644044A CN107644044A (en) 2018-01-30
CN107644044B true CN107644044B (en) 2021-01-15

Family

ID=61109539

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610585277.4A Active CN107644044B (en) 2016-07-22 2016-07-22 Page content generation method and device

Country Status (1)

Country Link
CN (1) CN107644044B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109474668B (en) * 2018-10-16 2022-03-04 平安科技(深圳)有限公司 CDN service switching method and device, computer equipment and storage medium
CN114968447A (en) * 2022-03-30 2022-08-30 中国人寿保险股份有限公司 Online webpage generation and management method and related equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373567A (en) * 2014-09-01 2016-03-02 北京奇虎科技有限公司 Page generation method and client

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101398828A (en) * 2007-09-28 2009-04-01 李凤仙 Information precision search and information publishing method
CN103488732A (en) * 2013-09-17 2014-01-01 北京思特奇信息技术股份有限公司 Generation method and device of static pages
CN104636400A (en) * 2013-11-15 2015-05-20 腾讯科技(深圳)有限公司 Browser webpage generating method, browser and system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105373567A (en) * 2014-09-01 2016-03-02 北京奇虎科技有限公司 Page generation method and client

Also Published As

Publication number Publication date
CN107644044A (en) 2018-01-30

Similar Documents

Publication Publication Date Title
CN108255730B (en) Software interface testing method, testing equipment, storage medium and device
AU2011204803B2 (en) Browser based user identification
CN109951435B (en) Equipment identifier providing method and device and risk control method and device
US20140095308A1 (en) Advertisement distribution apparatus and advertisement distribution method
US20080208682A1 (en) Revenue Generation and Sharing for Content Sharing Services
CN103268328B (en) The verification method of Quick Response Code and search engine server
CN106951270B (en) Code processing method, system and server
CN108228229B (en) Method and system for managing Maven dependence
US20160140230A1 (en) Implicit Collaborative Searching Based on Search History Database
CN107644044B (en) Page content generation method and device
US10491592B2 (en) Cross device user identification
JP5289535B2 (en) Search result providing method and system
CN106210810B (en) Advertisement information processing method and device
US9160807B2 (en) System and method for deriving a name for association with a device
CN113094287B (en) Page compatibility detection method, device, equipment and storage medium
CN108596661B (en) Advertisement configuration method and system
US20150134632A1 (en) Search method
US10402449B2 (en) Information processing system, information processing method, and information processing program
CN110825638B (en) Test case generation method, device, server and storage medium
CN102890717B (en) Webpage category knowledge base set up system and method
WO2021133471A1 (en) Skill determination framework for individuals and groups
JP2010262369A (en) Recommendation information generating device, terminal device, recommendation information generating method, and recommendation information presenting system
CN107122381A (en) Document generating method and device and data analysing method and device
CN109325063B (en) Data management method and device
CN102902793B (en) Webpage category knowledge base set up system and method

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