CN107273548B - Dynamic page implementation method and device - Google Patents

Dynamic page implementation method and device Download PDF

Info

Publication number
CN107273548B
CN107273548B CN201710596421.9A CN201710596421A CN107273548B CN 107273548 B CN107273548 B CN 107273548B CN 201710596421 A CN201710596421 A CN 201710596421A CN 107273548 B CN107273548 B CN 107273548B
Authority
CN
China
Prior art keywords
template
sub
rule
client
page
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
CN201710596421.9A
Other languages
Chinese (zh)
Other versions
CN107273548A (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.)
Advanced Nova Technology Singapore Holdings Ltd
Original Assignee
Advanced New Technologies 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 Advanced New Technologies Co Ltd filed Critical Advanced New Technologies Co Ltd
Priority to CN201710596421.9A priority Critical patent/CN107273548B/en
Publication of CN107273548A publication Critical patent/CN107273548A/en
Application granted granted Critical
Publication of CN107273548B publication Critical patent/CN107273548B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present specification provides a method for implementing a dynamic page, including: after receiving a page data request of a client, acquiring rule configuration of a requested page, wherein the rule configuration comprises a plurality of sub-templates and selection rules of at least one sub-template; acquiring a rule characteristic parameter of the client, and determining a sub-template in a template set of the requested page according to the rule characteristic parameter and a selection rule of the sub-template; and generating page data issued to the client by adopting the template set.

Description

Dynamic page implementation method and device
Technical Field
The present disclosure relates to the field of network communication technologies, and in particular, to a method and an apparatus for implementing a dynamic page.
Background
With the development of mobile network technology, a client App (application program) becomes a mainstream program on a terminal at a rapid pace. The user can use the apps of the network service providers to communicate with the corresponding service terminals, so as to realize various services of the network service providers. Specifically, the user interacts with the server through each page opened in the App to complete each process of acquiring service information, starting and controlling a service process, submitting service data and the like.
Because the coupling degree of the page and the service is very high, and the upgrading speed of the client is difficult to adapt to the requirement of rapid change of the service, many pages in the App are dynamic pages, namely pages which can change along with the service requirement without upgrading client software installed on the terminal. The client dynamic page can be realized by combining a page template and business data. Generally, the unchanged content of the dynamic page is described by the template file of the page template, the content which may change is used as the service data, and the client combines the template file of the page template and the service data to obtain the complete page data to present the page (including running the service logic on the page).
The page template for a client page is typically fixed. When a certain page is requested by the client, the server sends the page template determined by the page and the current service data matched with the page template to the client. That is, only the service data is often included in the page data according to the current actual situation change. With the increase of the business complexity, the requirement is put forward on the capability of providing more detailed business service for the dynamic page.
Disclosure of Invention
In view of this, the present specification provides a method for implementing a dynamic page, including:
after receiving a page data request of a client, acquiring rule configuration of a requested page, wherein the rule configuration comprises a plurality of sub-templates and selection rules of at least one sub-template;
acquiring a rule characteristic parameter of the client, and determining a sub-template in a template set of the requested page according to the rule characteristic parameter and a selection rule of the sub-template;
and generating page data issued to the client by adopting the template set.
This specification also provides an implementation apparatus for a dynamic page, including:
the rule configuration acquisition unit is used for acquiring the rule configuration of a requested page after receiving a page data request of a client, wherein the rule configuration comprises a plurality of sub-templates and selection rules of at least one sub-template;
the template set determining unit is used for acquiring the rule characteristic parameters of the client and determining the sub-templates in the template set of the requested page according to the rule characteristic parameters and the selection rules of the sub-templates;
and the page data generating unit is used for generating page data issued to the client by adopting the template set.
This specification provides a computer device comprising: a memory and a processor; the memory having stored thereon a computer program executable by the processor; and when the processor runs the computer program, executing the steps of the implementation method of the dynamic page.
The present specification provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program executes the steps of the implementation method of the dynamic page.
It can be seen from the above technical solutions that, in the embodiments of this specification, a template set including a plurality of sub-templates is used as a page template of a dynamic page, a sub-template and a selection rule of the sub-template are specified in a rule configuration set for the dynamic page, after a server receives a page data request of a client, a rule characteristic parameter of the client is applied to the selection rule of the sub-template to determine which sub-template or sub-templates are used as members of the template set, and page data is issued to the client according to the template set, so that the page template applicable to the client can be dynamically generated according to an actual situation described by the rule characteristic parameter of the client, and the method has an ability of providing more detailed business services, and provides a good support for realizing a high-complexity business.
Drawings
FIG. 1 is a flowchart of a method for implementing a dynamic page in an embodiment of the present specification;
FIG. 2 is a schematic diagram illustrating an interaction flow among a client, a business server, a template server, a rule server and a data server in an example of application of the present specification;
fig. 3 is a schematic flow chart of determining whether a sub-template is selected in an application example of the present specification;
FIG. 4 is a hardware block diagram of an apparatus for carrying out embodiments of the present description;
fig. 5 is a logical structure diagram of an implementation apparatus of a dynamic page in an embodiment of the present specification.
Detailed Description
The page template of the client page can be split into a plurality of sub-templates, and the template file of each sub-template describes the content of a part of the page which does not change along with the change of the service data. Thus, the page template of each page may correspond to a template set, where the template set includes one or more sub-templates respectively corresponding to the parts constituting the page; and after the sub-templates of all members in the template set are arranged, the page template of the page can be obtained.
When the member sub-templates of the template set of a certain page change, the page template also correspondingly changes; for example, after a new sub-template is added to the template set, corresponding content can be added to the page, after an original sub-template is deleted from the template set, corresponding content can be removed from the page, and after one sub-template which is a member of the template set is replaced by another sub-template, a part of content on the page can be modified, and the like.
It can be seen that the dynamic page can be split into several parts, each part corresponds to one or more sub-templates, and if a certain applicable condition is adopted to determine whether a certain part is included in the page and which sub-template the part is to use, the client can use the matched page template according to the actual situation of the client (including the specific situation of the client itself and the specific situation of the service performed by the client). In addition, only the applicable conditions need to be modified, and the page template used by the client can be changed when the service requirement changes.
Based on the above thought, embodiments of the present specification provide a new method for implementing a dynamic page, in which all sub-templates that may be members of a template set of the page are specified in a rule configuration of the page, and a selection rule of at least one sub-template is set; after receiving a page data request of a client, applying the rule characteristic parameters of the client to the selection rules of the sub-templates to determine the sub-templates in the template set of the page so as to generate page data issued to the client, so that the page template can be changed according to the change of the actual situation, thereby solving the problems in the prior art.
In the embodiment of the present specification, a client of a certain network provider is installed on a device on a user side, and is mutually accessible with a server of the network service provider through a network. The device for operating the client may be a mobile phone, a tablet Computer, a PC (Personal Computer), a notebook, etc.; the server can operate on one or more devices, such as a PC, a notebook, a server, and the like, and the server can operate as a logic server, or two or more logic servers sharing different responsibilities cooperate with each other to implement various functions of the server in the embodiments of the present specification.
In the embodiment of the present specification, a flow of a method for implementing a dynamic page is shown in fig. 1, and the method is applied to a server of a network service provider.
Step 110, after receiving a page data request from a client, obtaining a rule configuration of a requested page, where the rule configuration includes a plurality of sub-templates and a selection rule of at least one sub-template.
In the embodiment of the present specification, rule configuration is set in advance for each page for which a page template needs to be dynamically generated. The page template is composed of all member sub-templates in the template set of the page, and all the sub-templates which can become the members of the template set of the page are included in the rule configuration. Some or each of the sub-templates can become a template set member of the page under certain conditions, and the conditions which can and/or cannot become the template set member are described by the selection rules of the sub-template. In addition, there may be a sub-template as a fixed member of the page template set (i.e., the sub-template may become a component of the page template under any condition), and no selection rule may be set for the sub-template as a fixed member.
The conditions in the optional rule are set for one to a plurality of rule characteristic parameters. The rule characteristic parameter may be any parameter that is available to the server and can reflect the actual situation of the client, for example, may be a client attribute parameter describing the client itself (e.g., a client version, whether a component is installed on the client, etc.), may be a user attribute parameter describing a user account logged in at the client (e.g., a VIP level of the user account, a user account category, etc.), may be a geographic location parameter describing a current geographic location of a device running the client (e.g., a city where the client is located, a latitude and longitude based on a global positioning system, etc.), may be an operating system attribute parameter describing an operating system where the client is located (e.g., a name of the operating system, an operating system version number, etc.), and may be a business attribute parameter describing one or more businesses associated with the page by the client (e.g., a business type of a business conducted by the client, The level of security required for the service, etc.).
Different types of selection rules can be adopted according to the requirements of application scenarios, and embodiments of the present specification are not limited. The types of rules that are typically selected include one or both of inclusion rules and exclusion rules. The method comprises the following steps that an entry rule of a certain sub-template is used as a member of a template set when one or more rule characteristic parameters of a client meet a preset entry condition of the sub-template; the exclusion rule of a certain sub-template is that when one to a plurality of rule characteristic parameters of the client side meet the preset exclusion condition of the sub-template, the sub-template is not taken as a member of the template set.
In some application scenarios, one or some of the sub-templates are typically used under certain conditions, and become fixed members of the template set within some specific time period. For such an application scenario, a forcing rule may be added to the type of the selection rule, and when the selection rule of a certain sub-template includes the forcing rule, the sub-template is directly used as a member of the template set without considering other selection rules of the sub-template. Therefore, when a specific time period comes, the forcing rule can be added into the selection rule of the sub-template without changing other selection rules of the sub-template, when the specific time period passes, the rule configuration of the sub-template can be recovered as long as the forcing rule is deleted, and the temporary adjustment of the page template is greatly facilitated.
After the rule configuration of the page is generated, the corresponding relationship between the page and the rule configuration thereof can be stored in a storage location accessible by the server.
When a certain page realized by using the embodiments of the present specification is opened, a client initiates a page data request to a server, where the page data request carries information that can be used to determine which page is opened, where the information may be an identifier of the page to be opened, or an indication that the client initiates a certain business process (that is, the page to be opened is a page used to perform the business process), without limitation. And the server receives a page data request of the client, determines the page requested by the client, and reads the rule configuration of the page from the storage position for storing the corresponding relation between the page and the rule configuration.
And step 120, acquiring the rule characteristic parameters of the client, and determining the sub-templates in the template set of the requested page according to the rule characteristic parameters and the selection rules of the sub-templates.
After obtaining the rule configuration of the client request page, the server may obtain values of the rule configuration parameters of the client according to the rule configuration parameters adopted in the rule configuration. In different application scenarios, different acquisition modes can be adopted for different rule characteristic parameters by the server, and the embodiments of the present specification are not limited.
For example, in some application scenarios, an operating system attribute parameter, a client attribute parameter, and a user attribute parameter of a client may be provided to a server by the client when the client logs in the server, and the server may store a corresponding relationship between the parameters and a user-side device where the client is located. After the client initiates the page data request, the server can obtain the rule characteristic parameters of the client from the stored corresponding relation according to the user side equipment initiating the request.
For another example, some rule characteristic parameters reflecting the current state of the client, such as geographic location parameters, service attribute parameters, and the like, may be sent to the server by the client in the page data request, and the server may extract these parameter values from the page data request.
After the rule characteristic parameters of the client are obtained, the server applies the rule characteristic parameters to the selection rule of each sub-template in the rule configuration of the page to determine whether a certain sub-template becomes a member of the page template set. Specifically, for a page comprising a fixed member of a template set, assuming that a selection rule is not set in rule configuration for the fixed member, after a server obtains rule configuration parameters of a client, a sub-template without the selection rule in the rule configuration of a requested page is used as a member of the requested page template set, rule characteristic parameters of the client are matched with the selection rule of each sub-template, and whether the sub-template with the selection rule is used as the member of the requested page template set is determined according to a matching result and the type of the selection rule.
For example, if the rule characteristic parameters of the client match the entry rules of a certain sub-template, the sub-template becomes a member of the template set; for another example, if the rule feature parameters of the client match the exclusion rule of a certain sub-template, the sub-template will not become a member of the template set.
In the rule configuration of a page, one sub-template may have one or more optional rules, and the optional rules may be of different types, adopt different rule characteristic parameters, have different conditions (such as a predetermined inclusion condition or a predetermined exclusion condition), and are not limited. In this way, by writing the sub-templates possibly used on a page into the rule configuration of the page and using the rule characteristic parameters capable of describing the actual situation of using each sub-template to form the selection rule of each sub-template, a template set matching various different actual situations can be obtained. Several examples are presented below.
The first example is as follows: if it is desired to present content using different templates in a certain portion of the page for users in different cities, the city where the client is located may be used as a rule feature parameter, the template to be used in the portion of each city may be used as a sub-template, and which of the cities the client is located is used as an enrollment rule for the sub-template for the city. Therefore, at least part of pages can be displayed in a differentiated mode by taking cities as regional levels, and templates used in page rendering are controlled according to different cities.
The second example: the client version is used as a rule characteristic parameter, different layouts on a page due to different client versions are used as a plurality of sub-templates corresponding to each client version, and the client version is used as an entry rule of the sub-template used for the client version, so that differentiated template rendering control based on the client version is realized.
The third example: the user account level logged in the client is used as a rule characteristic parameter, each user account level corresponds to a sub-template, the user account level is set to be several levels and used as an entry rule of the sub-templates used for the user accounts of the level, and template differentiation based on the user accounts can be achieved.
The fourth example: the name of an operating system where a client is located, such as Android or IOS, is used as a rule characteristic parameter, a page layout suitable for each operating system is used as a sub-template, and the name of the operating system is used as an entry rule of the sub-template for the operating system, so that differentiated template rendering control based on different operating systems is realized.
The fifth example: the network service provider is set to carry out several promotion activities, and when a client starts a certain service, the corresponding part of the page is displayed according to the promotion activity set for the service. The service started by the client can be used as a rule characteristic parameter, the template for showing each promotion activity is used as a sub-template, and the page presentation can be carried out according to the service started by the client by taking which service is started by the client as an entry rule of the sub-template for the promotion activity corresponding to the service.
And step 130, generating page data issued to the client by adopting the template set.
For the page requested by the client, the template set of the page determined by the server is the set of all sub-templates forming the page template. The method for generating page data can be realized by referring to the prior art, and is not described in detail. According to the specific implementation of the server and the client, the generated page data may have different forms, and the embodiments of the present specification are not limited.
For example, in an application scenario where a service end of a network service provider includes a service server and a data server, the service server is responsible for responding to a page data request of a client, and the data server is responsible for providing service data. In this application scenario, after generating a template set of a page requested by a client, a service server may obtain service data corresponding to each sub-template in the template set from a data server, and package a template file of each sub-template in the template set and the service data corresponding to each sub-template to generate page data of the client.
For another example, in an application scenario where a service end of a network service provider includes a service server, a template server and a data server, the service server is responsible for responding to a page data request of a client, the data server is responsible for providing service data, and the template server is responsible for providing a template file to the client. In this application scenario, after generating a template set of a page requested by the client, the service server may obtain, from the data server, service data corresponding to each sub-template in the template set, and generate page data by using the template set and the obtained service data, and send the page data to the client. The client can know which sub-template or sub-templates template file is/are used from the page data, so that the client can obtain the template file of each sub-template as a template set member from the template server and perform page presentation according to the template file and the service data.
It can be seen that, in the embodiment of the present specification, a template set including a plurality of sub-templates is used as a page template of a page, a sub-template and a selection rule of the sub-template are specified in rule configuration of the page, after a server receives a page data request of a client, a rule characteristic parameter of the client is applied to the selection rule of the sub-template to determine the sub-template in the template set of the page, and page data is issued to the client according to the template set, so that the page template can change according to changes along with actual situations of the client, and has an ability of providing a more detailed service, and provides a good support for realizing a service with a high complexity.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In an application example of the present specification, the server of the third party payment platform includes a business server, a template server, a rule server and a data server, and the client of the third party payment platform is installed on the terminal of the user. The interaction flow among the client, the business server, the template server, the rule server and the data server is shown in fig. 2. The rule configuration server maintains the corresponding relation between the page identification of each dynamic page of the client and the rule configuration of the page, and the template server maintains the template file of each sub-template.
When a user opens a certain dynamic page on a client, the client sends a page data request to a service server, wherein the page data request comprises the identification of the requested page.
And the service server extracts the page identifier in the page data request and inquires the rule configuration of the page from the rule server. And the rule server returns the rule configuration corresponding to the page identifier to the service server.
The rule configuration of the page includes the selection rule of each possible sub-template used in the page and some or all of the sub-templates. The selection rules include an INCLUDED rule, an EXCLUDED rule and an IGNORE rule.
The format of the regular configuration of the page is a json (JavaScript Object Notation) structure. An exemplary structure is as follows:
Figure BDA0001356006780000091
Figure BDA0001356006780000101
Figure BDA0001356006780000111
PAGE1 and PAGE2 are PAGE identifiers of two PAGEs, BLOCK1 and BLOCK2 are identifiers of two sub-templates, ruleType is used for defining rule types, key1, key2 and key3 are rule characteristic parameters, and value1, value2 and value3 are values of the rule characteristic parameters. The rule characteristic parameters and the values thereof define matching conditions, the ruleType defines rule types, and the matching conditions are combined with the rule types to determine whether the sub-template to which the sub-template belongs is a member of the page template set, namely whether the sub-template is adopted by the page.
The meaning of the rule configuration example described above is: for a PAGE identified as PAGE1, when the value of rule characteristic parameter key1 is value1 or value2, the value of rule characteristic parameter key2 is value1 or value2, and the value of rule characteristic parameter key3 is value3 or value2, including sub-template BLOCK1 and not including sub-template BLOCK2 in the template set of PAGE1 PAGE; otherwise, PAGE1 PAGE contains no sub-template BLOCK1 and no sub-template BLOCK2 in the template set. For PAGEs identified as PAGE2, the sub-template BLOCK1 applies the IGNORE forcing rule, and the sub-template BLOCK1 is included in the template set of PAGE2 PAGEs, regardless of whether other rules are defined for the sub-template BLOCK 1.
The business server obtains the values of the rule characteristic parameters of the client according to the rule characteristic parameters adopted in the rule configuration of the page requested by the client, applies the values to the selection rules of each sub-template in the rule configuration, and determines which sub-template or sub-templates are included in the template set of the page.
Setting the rule characteristic parameters of the client page comprises the following steps: five of userList (user account name), arecodelist (client-side city), bizIdList (service type), clientOsTypeList (operating system name), and clientversisionlist (client version number), the matching conditions of the sub-template selection rules are set by using the above 5 rule characteristic parameters in the rule configuration, and then for each sub-template, it can be determined whether to use the sub-template as a member of the template set according to the flow shown in fig. 3:
step 302, extracting a selection rule of a sub-template;
step 304, judging whether the selected rule includes an IGNORE type, if so, writing the identifier of the sub-template into a template set, and ending the process; otherwise, go to step 306;
step 306, judging whether the value of the client userList meets the matching condition of the userList, if so, executing step 308, otherwise, turning to step 318;
step 308, determining whether the value of the client area codelist meets the matching condition of the area codelist, if yes, executing step 310, otherwise, turning to step 318;
step 310, judging whether the value of the client bizIdList meets the matching condition of the bizIdList, if so, executing step 312, otherwise, turning to step 318;
step 312, judging whether the value of the clientOsTypeList of the client side meets the matching condition of the clientOsTypeList, if so, executing step 314, otherwise, turning to step 318;
step 314, judging whether the value of the client clientVersionList meets the matching condition of the clientVersionList, if so, executing step 316, otherwise, turning to step 318;
step 316, judging the rule type of the sub-template, if the rule type is INCLUDED, writing the identifier of the sub-template into the template set, and ending the process;
step 318, judging the rule type of the sub-template, if the rule type is EXCLUDED, writing the identifier of the sub-template into the template set, and ending the process.
The rule configuration of the PAGE identified as HOME _ PAGE and the PAGE identified as SHOP _ PAGE is as follows:
Figure BDA0001356006780000121
Figure BDA0001356006780000131
Figure BDA0001356006780000141
according to the rule configuration, for the HOME _ PAGE, if the client has rule characteristic parameters, namely, area code of 810000, 820000, or match 392 ], bizId of 1111 or 2222, the client operating system is android or ios, and userList of 123[45], the sub-template homeblock1 becomes a template set member of the HOME _ PAGE of the client; otherwise, the HOME _ PAGE PAGE of the client does not use the submodel homeblock 1;
for the HOME _ PAGE, if the regular characteristic parameters areCode of the client is 810000, 820000, or 392, bizId is 1111 or 2222, the operating system of the client is android or ios, userList is 123[45], the HOME _ PAGE of the client does not use the daughter board homeblock 2; otherwise, the sub-template homeblock2 becomes a template set member of the HOME _ PAGE of the client;
for the SHOP _ PAGE, since the child template loopblock 1 sets the IGNORE rule, the other rule set for the child template loopblock 1 is ignored, and the child template loopblock 1 becomes a template set member of the SHOP _ PAGE of the client.
After determining the template set suitable for the page requested by the client, the service server initiates a service data query request to the data server according to the service data required by each sub-template in the template set. The data server returns the requested service data to the service server. In order to increase the response speed to the client, the service server may employ multiple processes or threads to obtain service data.
And the service server packages the template set and the service data into page data according to a preset format and sends the page data response to the client.
The client extracts the template set and the service data from the page data response, and initiates a template file request to the template server according to the identification of each sub-template in the template set. The template server returns the template file of the sub-template with the identification to the client.
And the client combines the template file with the service data and then performs page presentation.
Corresponding to the above flow implementation, embodiments of the present specification further provide an implementation apparatus for a dynamic page. The apparatus may be implemented by software, or by hardware, or by a combination of hardware and software. Taking a software implementation as an example, the logical means is formed by reading a corresponding computer program instruction into a memory for running through a Central Processing Unit (CPU) of the device in the embodiments of the present specification. In terms of hardware, in addition to the CPU, the memory, and the storage shown in fig. 4, the device in which the dynamic page implementation apparatus is located generally includes other hardware such as a chip for performing wireless signal transmission and reception and/or other hardware such as a board for implementing a network communication function.
Fig. 5 is a diagram illustrating an implementation apparatus of a dynamic page provided in an embodiment of the present specification, and the implementation apparatus includes a rule configuration obtaining unit, a template set determining unit, and a page data generating unit, where: the rule configuration acquisition unit is used for acquiring the rule configuration of a requested page after receiving a page data request of a client, wherein the rule configuration comprises a plurality of sub-templates and selection rules of at least one sub-template; the template set determining unit is used for acquiring the rule characteristic parameters of the client and determining the sub-templates in the template set of the requested page according to the rule characteristic parameters and the selection rules of the sub-templates; the page data generating unit is used for generating page data issued to the client by adopting the template set.
In one example, the types of the selected rules of the sub-templates include: at least one of an inclusion rule and an exclusion rule; the selection rule is as follows: when one or more rule characteristic parameters of the client meet the preset selecting condition of the sub-template, taking the sub-template as a member of the template set; the exclusion rule is: and when one or more rule characteristic parameters of the client meet the preset exclusion condition of the sub-template, not taking the sub-template as a member of the template set.
In the above example, the types of the selection rules of the sub-templates further include: and a forcing rule, wherein when the selection rule of the sub-template comprises the forcing rule, the sub-template is taken as a member of the template set.
Optionally, the determining unit of the template set determines the sub-template in the template set of the requested page according to the rule feature parameter and the selection rule of the sub-template, and includes: taking the sub-template without the selection rule in the rule configuration of the requested page as a member of the requested page template set; matching the rule characteristic parameters of the client with the selection rules of the sub-templates, and determining whether the sub-templates with the selection rules are used as members of the requested page template set or not according to the matching result and the types of the selection rules.
In one implementation, the rule feature parameters include one or more of: geographic location parameters, operating system attribute parameters, client attribute parameters, user attribute parameters, and service attribute parameters.
In the foregoing implementation manner, the geographic location parameter includes: the city in which it is located; the operating system parameters include: the name of the operating system; the client attribute parameters include: a client version.
Optionally, the page data generating unit is specifically configured to: and acquiring service data corresponding to each sub-template in the template set, generating page data by adopting the template set and the acquired service data, sending the page data to the client, allowing the client to acquire a template file of the sub-template as a member of the client according to the template set, and presenting the page according to the template file and the service data.
Embodiments of the present description provide a computer device that includes a memory and a processor. Wherein the memory has stored thereon a computer program executable by the processor; the processor, when executing the stored computer program, performs the steps of the method for implementing a dynamic page in the embodiments of the present specification. For detailed description of each step of the implementation method of the dynamic page, please refer to the previous content, which is not repeated.
Embodiments of the present description provide a computer-readable storage medium on which computer programs are stored, which, when executed by a processor, perform the steps of the implementation method of dynamic pages in embodiments of the present description. For detailed description of each step of the implementation method of the dynamic page, please refer to the previous content, which is not repeated.
The above description is only exemplary of the present invention and should not be taken as limiting the scope of the present invention, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
As will be appreciated by one skilled in the art, embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.

Claims (16)

1. A method for implementing a dynamic page includes:
after receiving a page data request of a client, acquiring rule configuration of a requested page, wherein the rule configuration comprises a plurality of sub-templates and selection rules of at least one sub-template;
acquiring rule characteristic parameters of the client, and determining sub-templates which are members in a template set of the requested page in the plurality of sub-templates according to the rule characteristic parameters and the selection rules of the sub-templates; the rule characteristic parameter is used for reflecting the actual situation of the client;
and generating page data issued to the client by adopting the template set.
2. The method of claim 1, the type of the opt-in rules of the sub-template comprising: at least one of an inclusion rule and an exclusion rule;
the selection rule is as follows: when one or more rule characteristic parameters of the client meet the preset selecting condition of the sub-template, taking the sub-template as a member of the template set;
the exclusion rule is: and when one or more rule characteristic parameters of the client meet the preset exclusion condition of the sub-template, not taking the sub-template as a member of the template set.
3. The method of claim 2, the type of opt-in rule for the sub-template further comprising: and a forcing rule, wherein when the selection rule of the sub-template comprises the forcing rule, the sub-template is taken as a member of the template set.
4. The method of claim 2, wherein determining, from the plurality of sub-templates, a sub-template that is a member of the template set for the requested page according to the rule-feature parameters and the sub-template-selection rules, comprises: taking the sub-template without the selection rule in the rule configuration of the requested page as a member of the requested page template set; matching the rule characteristic parameters of the client with the selection rules of the sub-templates, and determining whether the sub-templates with the selection rules are used as members of the requested page template set or not according to the matching result and the types of the selection rules.
5. The method of claim 1, the rule feature parameters comprising one to more of: geographic location parameters, operating system attribute parameters, client attribute parameters, user attribute parameters, and service attribute parameters.
6. The method of claim 5, the geographic location parameter comprising: the city in which it is located; the operating system parameters include: the name of the operating system; the client attribute parameters include: a client version.
7. The method of claim 1, wherein the generating the page data delivered to the client by using the template set comprises: and acquiring service data corresponding to each sub-template in the template set, generating page data by adopting the template set and the acquired service data, sending the page data to the client, allowing the client to acquire a template file of the sub-template as a member of the client according to the template set, and presenting the page according to the template file and the service data.
8. An apparatus for implementing a dynamic page, comprising:
the rule configuration acquisition unit is used for acquiring the rule configuration of a requested page after receiving a page data request of a client, wherein the rule configuration comprises a plurality of sub-templates and selection rules of at least one sub-template;
the template set determining unit is used for acquiring the rule characteristic parameters of the client and determining the sub-templates which are members in the template set of the requested page from the plurality of sub-templates according to the rule characteristic parameters and the selection rules of the sub-templates; the rule characteristic parameter is used for reflecting the actual situation of the client;
and the page data generating unit is used for generating page data issued to the client by adopting the template set.
9. The apparatus of claim 8, the type of opt-in rule for the sub-template comprising: at least one of an inclusion rule and an exclusion rule;
the selection rule is as follows: when one or more rule characteristic parameters of the client meet the preset selecting condition of the sub-template, taking the sub-template as a member of the template set;
the exclusion rule is: and when one or more rule characteristic parameters of the client meet the preset exclusion condition of the sub-template, not taking the sub-template as a member of the template set.
10. The apparatus of claim 9, the type of opt-in rule for the sub-template further comprising: and a forcing rule, wherein when the selection rule of the sub-template comprises the forcing rule, the sub-template is taken as a member of the template set.
11. The apparatus of claim 9, wherein the template set determining unit determines the sub-template that is a member of the template set of the requested page in the plurality of sub-templates according to the rule feature parameter and the selection rule of the sub-template, and includes: taking the sub-template without the selection rule in the rule configuration of the requested page as a member of the requested page template set; matching the rule characteristic parameters of the client with the selection rules of the sub-templates, and determining whether the sub-templates with the selection rules are used as members of the requested page template set or not according to the matching result and the types of the selection rules.
12. The apparatus of claim 8, the rule feature parameters comprising one to more of: geographic location parameters, operating system attribute parameters, client attribute parameters, user attribute parameters, and service attribute parameters.
13. The apparatus of claim 12, the geographic location parameter comprising: the city in which it is located; the operating system parameters include: the name of the operating system; the client attribute parameters include: a client version.
14. The apparatus according to claim 8, wherein the page data generating unit is specifically configured to: and acquiring service data corresponding to each sub-template in the template set, generating page data by adopting the template set and the acquired service data, sending the page data to the client, allowing the client to acquire a template file of the sub-template as a member of the client according to the template set, and presenting the page according to the template file and the service data.
15. A computer device, comprising: a memory and a processor; the memory having stored thereon a computer program executable by the processor; the processor, when executing the computer program, performs the steps of any of claims 1 to 7.
16. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of any one of claims 1 to 6.
CN201710596421.9A 2017-07-20 2017-07-20 Dynamic page implementation method and device Active CN107273548B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710596421.9A CN107273548B (en) 2017-07-20 2017-07-20 Dynamic page implementation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710596421.9A CN107273548B (en) 2017-07-20 2017-07-20 Dynamic page implementation method and device

Publications (2)

Publication Number Publication Date
CN107273548A CN107273548A (en) 2017-10-20
CN107273548B true CN107273548B (en) 2020-10-27

Family

ID=60078377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710596421.9A Active CN107273548B (en) 2017-07-20 2017-07-20 Dynamic page implementation method and device

Country Status (1)

Country Link
CN (1) CN107273548B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108282518A (en) * 2017-12-26 2018-07-13 阿里巴巴集团控股有限公司 A kind of customer terminal webpage generation method and device
CN108446116B (en) * 2018-02-26 2021-10-08 平安普惠企业管理有限公司 Application program page generation method and device, computer equipment and storage medium
CN109857454B (en) * 2018-12-15 2023-07-18 中国平安人寿保险股份有限公司 Method, device, electronic equipment and storage medium for generating and caching installation package
CN110928613A (en) * 2019-09-29 2020-03-27 京东数字科技控股有限公司 Method and device for acquiring page data, electronic equipment and readable storage medium
CN111061476B (en) * 2019-11-18 2023-12-26 用友网络科技股份有限公司 Mobile template construction method, server and computer readable storage medium
CN113434755A (en) * 2021-06-15 2021-09-24 北京百度网讯科技有限公司 Page generation method and device, electronic equipment and storage medium
CN113656139B (en) * 2021-08-27 2024-06-04 上海云轴信息科技有限公司 Interface rule adding method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747582A (en) * 2005-02-07 2006-03-15 中国联合通信有限公司 Generating method and system for dynamic mobile terminal customized information interface
CN102193786A (en) * 2010-03-11 2011-09-21 中国工商银行股份有限公司 Device and method for constructing self-adaptive graphic user interface (GUI)
CN103678981A (en) * 2013-12-06 2014-03-26 北京奇虎科技有限公司 Method and device for realizing different interfaces for different users
CN105930020A (en) * 2015-12-29 2016-09-07 中国银联股份有限公司 Method and apparatus for function icons of management terminal application program
CN106155641A (en) * 2015-03-24 2016-11-23 北京神州泰岳软件股份有限公司 The method and system that a kind of mobile terminal application interface dynamically generates
CN106227742A (en) * 2016-07-12 2016-12-14 乐视控股(北京)有限公司 Dynamic web page based on B/S pattern generates method, server and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103198074A (en) * 2012-01-09 2013-07-10 北大方正集团有限公司 Page design method and system for dynamic publishing website
CN102662962B (en) * 2012-03-08 2014-12-10 北京思特奇信息技术股份有限公司 Dynamic display method based on webpage elements
US20150106751A1 (en) * 2013-10-11 2015-04-16 ContentActivator Systems And Methods For Creating And Serving Dynamically Adjustable Web Pages
US20160246481A1 (en) * 2015-02-20 2016-08-25 Ebay Inc. Extraction of multiple elements from a web page
CN106406846B (en) * 2015-08-03 2020-02-07 腾讯科技(深圳)有限公司 Display interface creating method and device
CN106648630A (en) * 2016-12-01 2017-05-10 北京趣拿软件科技有限公司 Page obtaining method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1747582A (en) * 2005-02-07 2006-03-15 中国联合通信有限公司 Generating method and system for dynamic mobile terminal customized information interface
CN102193786A (en) * 2010-03-11 2011-09-21 中国工商银行股份有限公司 Device and method for constructing self-adaptive graphic user interface (GUI)
CN103678981A (en) * 2013-12-06 2014-03-26 北京奇虎科技有限公司 Method and device for realizing different interfaces for different users
CN106155641A (en) * 2015-03-24 2016-11-23 北京神州泰岳软件股份有限公司 The method and system that a kind of mobile terminal application interface dynamically generates
CN105930020A (en) * 2015-12-29 2016-09-07 中国银联股份有限公司 Method and apparatus for function icons of management terminal application program
CN106227742A (en) * 2016-07-12 2016-12-14 乐视控股(北京)有限公司 Dynamic web page based on B/S pattern generates method, server and system

Also Published As

Publication number Publication date
CN107273548A (en) 2017-10-20

Similar Documents

Publication Publication Date Title
CN107273548B (en) Dynamic page implementation method and device
CN104580406B (en) A kind of method and apparatus of synchronous logging state
EP3525410A1 (en) Account login method, apparatus, and server
CN109462601B (en) Multi-platform access method and device based on eSIM
CN113360812B (en) Service execution method and device
CN106878368B (en) Method and device for realizing information push
CN107092634B (en) Method and device for realizing page preview
US20160224530A1 (en) Mapping stored client data to requested data using metadata
US11019008B2 (en) Method, public account server, and mobile terminal for sending and generating cards
US11004054B2 (en) Updating account data for multiple account providers
CN107291744A (en) It is determined that and with the method and device of the relationship between application program
CN104244174A (en) Method for obtaining geographical location information of terminals and server
CN112579118A (en) Method, device, system, medium and equipment for updating configuration information of microservice
CN113536174A (en) Interface loading method, device and equipment
CN106658666B (en) Method and equipment for establishing wireless connection
US9164817B2 (en) Mobile communication terminal to provide widget expansion function using message communication, and operation method of the mobile communication terminal
CN112579877B (en) Control method, device, storage medium and equipment of information source system
CN112818270A (en) Data cross-domain transfer method and device and computer equipment
CN112114804A (en) Application program generation method, device and system
CN116860699A (en) File management method, system, computer device and computer readable storage medium
CN108804403B (en) Method and device for realizing service chart
US8838596B2 (en) Systems and methods to process enquires by receving and processing user defined scopes first
CN106656940B (en) Method and apparatus for processing service access requests
CN111625288B (en) Method and device for controlling starting of application program, computer equipment and storage medium
CN110968888B (en) Data processing method and device

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1245454

Country of ref document: HK

TA01 Transfer of patent application right

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200921

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240219

Address after: Guohao Times City # 20-01, 128 Meizhi Road, Singapore

Patentee after: Advanced Nova Technology (Singapore) Holdings Ltd.

Country or region after: Singapore

Address before: Ky1-9008 Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands, ky1-9008

Patentee before: Innovative advanced technology Co.,Ltd.

Country or region before: Cayman Islands

TR01 Transfer of patent right