CN111159595A - Page loading method, system, computer equipment and computer readable storage medium - Google Patents

Page loading method, system, computer equipment and computer readable storage medium Download PDF

Info

Publication number
CN111159595A
CN111159595A CN201911351015.1A CN201911351015A CN111159595A CN 111159595 A CN111159595 A CN 111159595A CN 201911351015 A CN201911351015 A CN 201911351015A CN 111159595 A CN111159595 A CN 111159595A
Authority
CN
China
Prior art keywords
page
loading
resource
relation
request source
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.)
Pending
Application number
CN201911351015.1A
Other languages
Chinese (zh)
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 Pension Insurance Corp
Original Assignee
Ping An Pension Insurance Corp
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 Pension Insurance Corp filed Critical Ping An Pension Insurance Corp
Priority to CN201911351015.1A priority Critical patent/CN111159595A/en
Publication of CN111159595A publication Critical patent/CN111159595A/en
Pending legal-status Critical Current

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/957Browsing optimisation, e.g. caching or content distillation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Data Mining & Analysis (AREA)
  • Storage Device Security (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a page loading method, a page loading system, computer equipment and a computer readable storage medium. The page loading method comprises the following steps: receiving a page loading request; performing authority authentication on the request source information according to a preset authority authentication rule; when the authority authentication is successful, searching a loading relation group corresponding to the page template identification in a preset loading relation library; searching a target loading relation corresponding to the request source type of the request source information in the loading relation group; requesting page resources from a resource server according to the page resource identification in the target loading relation; and acquiring and loading the page template according to the page template identifier, and dynamically loading each requested page resource on the page template. According to the invention, the authority control and personalized display of the page can be realized.

Description

Page loading method, system, computer equipment and computer readable storage medium
Technical Field
The present invention relates to the field of page loading technologies, and in particular, to a page loading method, a page loading system, a computer device, and a computer-readable storage medium.
Background
With the popularization of mobile terminals, H5 pages, i.e., technical pages based on HTML5(Hyper text markup Language 5, fifth generation hypertext markup Language), are largely used in mobile applications. In one prior art, multimedia information such as pictures in the H5 page and the style of the page are stored in a common HTML5 template to form a static page, and when page loading is required, the static page is loaded directly. For the page loading method, on the first aspect, when the multimedia information in the page needs to be replaced, a new static page needs to be formed again; in the second aspect, because a fixed static page is loaded during page loading, pages with different multimedia information cannot be loaded according to different users, that is, the H5 page cannot automatically display a page conforming to the individuation of the user; in the third aspect, after the page information is shared, all the personnel can access the page without permission control, and the security measures of the page cannot be realized.
Therefore, it is a technical problem to be solved in the art to provide a page loading method, system, computer device and computer readable storage medium to implement the authority control and personalized display of a page.
Disclosure of Invention
The invention aims to provide a page loading method, a page loading system, computer equipment and a computer readable storage medium, which are used for solving the technical problem that the authority control and personalized display of a page cannot be realized in the prior art.
In one aspect, the present invention provides a page loading method for achieving the above-mentioned object.
The page loading method comprises the following steps: receiving a page loading request, wherein the page loading request comprises request source information and a page template identifier; the page template identification is used for acquiring a page template; performing authority authentication on the request source information according to a preset authority authentication rule; when the authority authentication is successful, searching a loading relation group corresponding to the page template identification in a preset loading relation library; the loading relation group comprises a plurality of loading relations, and each loading relation is used for describing the corresponding relation between the request source type corresponding to the request source information and the page resource identifiers; searching a target loading relation corresponding to the request source type of the request source information in the loading relation group; requesting page resources from a resource server according to the page resource identifier in the target loading relationship; and acquiring and loading a page template according to the page template identifier, and dynamically loading the page resource on the page template.
Further, the page loading request further comprises timestamp information; the step of requesting page resources from a resource server according to the page resource identifier in the target loading relationship comprises: requesting the page resource and the effective duration of the page resource from a resource server according to the page resource identifier; after the step of dynamically loading the page resource on the page template, the page loading method further includes: judging whether the time difference between the timestamp information and the current time exceeds the effective duration or not; and if the time difference exceeds the effective duration, hiding the page resource.
Further, the step of obtaining and loading the page template according to the page template identifier includes: querying a data record containing the page template identifier in a database, wherein the data record comprises the page template identifier and a storage address of the page template; and accessing the storage address to acquire and load the page template.
Further, the page loading method further includes: and when the authority authentication fails, dynamically loading an identifier representing no access authority on the page template.
Further, after hiding the page resource, the page loading method further includes: and loading a preset public page resource at the position of loading the hidden page resource.
Further, the request source information includes an ip address and a user type of the requesting device; the step of searching the target loading relation corresponding to the request source type of the request source information in the loading relation group comprises the following steps: searching a target loading relation corresponding to an ip address segment to which an ip address of the request device belongs in the loading relation group, wherein different ip address segments are different request source types; and searching a target loading relation corresponding to the user type in the loading relation group, wherein different user types are different request source types.
Further, the page resource identifier includes a type of the page resource, the type of the page resource includes a picture file, a video file and an audio file, and the step of requesting the effective duration of the page resource from the resource server according to the page resource identifier includes: determining the type of the page resource according to the page resource identifier, requesting the effective duration of the page resource to be a first duration when the type of the page resource is a picture file, and requesting the effective duration of the page resource to be a second duration when the type of the page resource is a video file or an audio file, wherein the first duration is less than the second duration.
In another aspect, the present invention provides a page loading system for achieving the above-mentioned objectives.
The page loading system comprises: resource server and back-end server, wherein, resource server is used for storing page resource, and back-end server includes: the device comprises a request receiving module, a page loading module and a page template identification module, wherein the request receiving module is used for receiving a page loading request, and the page loading request comprises request source information and a page template identification; the page template identification is used for acquiring a page template; the authority authentication module is used for carrying out authority authentication on the request source information according to a preset authority authentication rule; the relation group searching module is used for searching a loading relation group corresponding to the page template identifier in a preset loading relation library when the authority authentication is successful, wherein the loading relation group comprises a plurality of loading relations, and each loading relation is used for describing the corresponding relation between the request source type corresponding to the request source information and a plurality of page resource identifiers; the relation searching module is used for searching a target loading relation corresponding to the request source type of the request source information in the loading relation group; the resource request module is used for requesting page resources from a resource server according to the page resource identification in the target loading relation; and the resource loading module is used for acquiring and loading the page template according to the page template identification and dynamically loading the page resources on the page template.
To achieve the above object, the present invention further provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of any one of the above methods when executing the computer program.
To achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of any one of the methods described above.
According to the page loading method, the page loading system, the computer equipment and the computer readable storage medium, when the page resources in the page need to be replaced, only the page resources marked by the corresponding page resource identification need to be updated in the resource server, the processing mode is simple, and the bottom program logic in the resource loading process does not need to be modified; meanwhile, different loading relations are set for different request source types to correspond to different page resources, so that pages with different page contents can be loaded in the same page link according to different request source types to which the request sources belong; in addition, when the page resources are acquired, the authority is verified firstly, the request source can be controlled, even if the page information is shared, the request source outside the authority cannot be accessed, and the confidentiality of the page can be realized according to the requirement.
Drawings
Fig. 1 is a flowchart of a page loading method according to an embodiment of the present invention;
fig. 2 is a flowchart of a page loading method according to a second embodiment of the present invention;
fig. 3 is a flowchart of a page loading method according to a third embodiment of the present invention;
fig. 4 is a block diagram of a page loading system according to a fourth embodiment of the present invention; and
fig. 5 is a hardware configuration diagram of a computer device according to a fifth embodiment of the present invention.
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. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a page loading method, a page loading system, computer equipment and a computer readable storage medium. When the background server receives a page loading request, performing permission verification on request source information in the page loading request according to a preset permission authentication rule, namely verifying whether a page requester meets permission requirements, when the permission authentication is successful, searching a loading relation group matched with a page template identifier in a loading relation library through the page template identifier, then searching a target loading relation corresponding to the request source type of the request source information in the loading relation group, namely determining an individualized page resource identifier aiming at the page loading request, requesting a page resource from a resource server through the page resource identifier, finally acquiring and loading a page template according to the page template identifier, and loading the requested page resource in the page template, thereby realizing the complete page loading process. Based on the page loading method, when the multimedia information in the page needs to be replaced, only the page resources need to be updated in the resource server, the processing mode is simple, and the bottom program logic in the resource loading process does not need to be modified; meanwhile, different loading relations are set for different users to correspond to different page resources, so that pages with different page contents can be loaded in the same page link according to different request sources; in addition, when the page resources are acquired, the authority is verified firstly, the request source can be controlled, even if the page information is shared, the request source outside the authority cannot be accessed, and the confidentiality of the page can be realized according to the requirement.
Specific embodiments of a page loading method, a page loading system, a computer device, and a computer-readable storage medium according to the present invention will be described in detail below.
Example one
The embodiment of the invention provides a page loading method. Fig. 1 is a flowchart of a page loading method according to an embodiment of the present invention, and specifically, as shown in fig. 1, the page loading method according to the embodiment includes steps S101 to S106.
Step S101: a page load request is received.
And when the background server loading the page receives the page loading request, analyzing the page loading request to obtain request parameters after analysis. In this embodiment, the request parameters include request source information and a page template identification.
Specifically, the request source information includes an ip address of the requesting device, an access mode adopted by the requesting device, and a user type. When a user opens an H5 page through a client on the mobile phone, the ip address of a request device in a page loading request is the ip address of the mobile phone; the access mode adopted by the request equipment comprises a WEB access mode based on a browser or an access mode based on a client; the user types include a general registered user type, a non-registered guest user type, and an administrator user type.
The page template identifier is an inherent parameter of the page to be loaded, and is used for acquiring the page template, and each page to be loaded has a corresponding page template identifier after being generated, and specifically, may be a string of digital codes.
The page template identification and the page template are in a unique corresponding relation, so that the corresponding page template can be determined through the page template identification, and the page template is further obtained. Specifically, the page template may be stored in the background server, and the page template identifier is used as a storage tag, so that the page template may be obtained by matching the page template identifier with the tag. Or the page template may be stored in other positions, the obtaining address of the page template is stored in the background server, and the page template identifier is also used as the storage tag, so that the obtaining address of the page template can be obtained by matching the page template identifier with the tag, and then the page template is obtained by accessing the obtaining address.
No matter how the page template is obtained, the page template is loaded so as to be displayed at the front end (including WEB and client end, specifically corresponding to the access mode in the request source information).
Step S102: and performing authority authentication on the request source information according to a preset authority authentication rule.
The authority authentication rules are preset in the background server, for example, a blacklist or a white list of the request source information is set, or other condition restrictions may also be set according to the request source information.
In the step, the request source information is subjected to authority authentication according to the authority authentication rule, the authority authentication is successful if the authority authentication rule is satisfied, and the authority authentication is failed if the authority authentication rule is not satisfied.
Step S103: and when the authority authentication is successful, searching a loading relation group corresponding to the page template identification in a preset loading relation library.
The background server presets a loading relational library, a plurality of loading relational groups are arranged in the loading relational library, each loading relational group is an element in the loading relational library, the loading relational groups correspond to the page template identifications one by one, and one loading relational group can be determined in the loading relational library through the page template identifications.
The loading relation group comprises a plurality of loading relations, the loading relations are used for describing corresponding relations between request source types corresponding to the request source information and the page resource identifications, specifically comprise the request source types and the page resource identifications corresponding to the request source types, and one loading relation can be determined in the loading relation group through the request source types, namely one or more page resource identifications corresponding to the request source types are determined.
The page resource identifier corresponds to the page resource one to one, and the page resource identifier may be an identifier parameter uniquely formed when the page resource is uploaded to the resource server, and specifically may also be a string of digital codes. And one page resource can be uniquely marked in the resource server through the page resource identifier.
Specifically, type division may be performed on the request source information, for example, the type division may be performed according to an ip address, the ip addresses in different ip address segments are different request source types, and for example, the type division may be performed according to a user type, and different user types are different request source types, or the request source type may be defined by combining two dimensions of the ip address and the user type, and specifically, a division manner of the request source type may be set according to an actual usage scenario and a requirement.
In any case, in whatever form the request source type is predefined, in this step the request source type in question for the request source information can be determined.
Step S104: and searching a target loading relation corresponding to the request source type of the request source information in the loading relation group.
In this step, a target loading relationship is determined in the loading relationship group by the request source type, and the target loading relationship also includes the loading relationship of the request source type.
Step S105: and requesting the page resource from the resource server according to the page resource identifier in the target loading relation.
Step S106: and acquiring and loading the page template according to the page template identifier, and dynamically loading page resources on the page template.
By adopting the page loading method provided by the embodiment, when the page resource in the page needs to be replaced, only the page resource marked by the corresponding page resource identifier needs to be updated in the resource server, the processing mode is simple, and the bottom program logic in the resource loading process does not need to be modified; meanwhile, different loading relations are set for different request source types to correspond to different page resources, so that pages with different page contents can be loaded in the same page link according to different request source types to which the request sources belong; in addition, when the page resources are acquired, the authority is verified firstly, the request source can be controlled, even if the page information is shared, the request source outside the authority cannot be accessed, and the confidentiality of the page can be realized according to the requirement.
Example two
The second embodiment of the present invention provides a preferred page loading method, partial technical features and corresponding technical effects on the basis of the first embodiment, which have been described in detail in the first embodiment, and details of the second embodiment are not repeated herein, which may be referred to in detail in the first embodiment. Fig. 2 is a flowchart of a page loading method according to a second embodiment of the present invention, and specifically, as shown in fig. 2, the page loading method according to the second embodiment includes steps S201 to S208 as follows.
Step S201: a page load request is received.
The page loading request comprises request source information, a page template identifier and timestamp information. The time stamp information includes time information when the page load request is generated.
Step S202: and performing authority authentication on the request source information according to a preset authority authentication rule.
Step S203: and when the authority authentication is successful, searching a loading relation group corresponding to the page template identification in a preset loading relation library.
The loading relation library comprises a plurality of loading relation groups, and the loading relation groups correspond to the page template identifications one to one.
Step S204: and searching a target loading relation corresponding to the request source type of the request source information in the loading relation group.
The loading relation group comprises a plurality of loading relations, and each loading relation comprises a request source type and a plurality of page resource identifications corresponding to the request source type.
Step S205: and requesting the page resources and the effective duration of the page resources from the resource server according to the page resource identification in the target loading relation.
The page resource identification corresponds to the page resource one by one, and the page resource comprises a picture file, a video file and an audio file.
The effective time lengths of different page resources can be the same or different. The corresponding effective duration may be specifically set for the resource type of the page resource, for example, when the page resource is a picture file, the effective duration is relatively short, and when the page resource is a video or audio file, the effective duration is relatively long, specifically: the page resource identification comprises the type of the page resource, the type of the page resource comprises a picture file, a video file and an audio file, and the steps comprise: determining the type of the page resource according to the page resource identifier, wherein when the type of the page resource is a picture file, the effective duration of the requested page resource is a first duration, and when the type of the page resource is a video file or an audio file, the effective duration of the requested page resource is a second duration, and the first duration is less than the second duration.
For part of page resources, the effective duration is not required to be controlled, and the effective duration can be set as a specific identification code, so that the loading duration of the page resources is not controlled in the effective duration control process.
Step S206: and acquiring and loading the page template according to the page template identifier, and dynamically loading page resources on the page template.
Step S207: and judging whether the time difference between the timestamp information and the current time exceeds the effective duration.
Specifically, the time difference between the timestamp information and the current time may be calculated at predetermined time intervals after the page resources are dynamically loaded.
Step S208: and if the time difference exceeds the effective duration, hiding the page resources.
By adopting the page loading method provided by the embodiment, the timestamp information is added in the page loading request, and the effective duration is set for the page resource, so that after the page resource is dynamically loaded, whether the loading duration of the page resource reaches the effective duration or not is judged according to the timestamp information and the current time, the page resource is hidden when the effective duration is reached, and the information security protection can be improved.
EXAMPLE III
The third embodiment of the present invention provides a preferred page loading method, partial technical features, and corresponding technical effects on the basis of the first embodiment and the second embodiment, which have been described in detail in the first embodiment and the second embodiment, and details of the third embodiment are not repeated, which may be specifically referred to in the first embodiment and the second embodiment. Fig. 3 is a flowchart of a page loading method according to a third embodiment of the present invention, and specifically, as shown in fig. 3, the page loading method according to the third embodiment includes steps S301 to S314 as follows.
Step S301: a page load request is received.
The page loading request comprises request source information, a page template identifier and timestamp information.
Step S302: and querying a data record containing the page template identification in a database.
The data record comprises a page template identifier and a storage address of the page template.
Step S303: the memory address is accessed to retrieve the page template.
Step S304: and loading the page template.
Step S305: and performing authority authentication on the request source information according to a preset authority authentication rule.
Step S306: and when the authority authentication fails, dynamically loading an identifier representing no access authority on the page template.
And when the authority authentication fails, loading the identification representing no access authority to the page template, so that the user can know the page feedback result.
Step S307: and when the authority authentication is successful, searching a loading relation group corresponding to the page template identification in a preset loading relation library.
The loading relation library comprises a plurality of loading relation groups, and the loading relation groups correspond to the page template identifications one to one.
Step S308: and searching a target loading relation corresponding to the request source type of the request source information in the loading relation group.
The loading relation group comprises a plurality of loading relations, and each loading relation comprises a request source type and a plurality of page resource identifications corresponding to the request source type.
Step S309: and requesting the page resources and the effective duration of the page resources from the resource server according to the page resource identification in the target loading relation.
The page resource identification corresponds to the page resource one by one.
The page resources include picture files, video files, and audio files.
Step S310: and dynamically loading the requested page resources on the page template.
Step S311: and judging whether the time difference between the timestamp information and the current time exceeds the effective duration.
Step S312: and if the time difference exceeds the effective duration, hiding the page resources.
Step S313: and loading the preset public page resource at the position of loading the hidden page resource.
Public page resources are set in the background server, and when the page resources are hidden, the preset public page resources are used for replacing the original page resources to display, so that all positions of the page can still be completely displayed, and the user experience is improved.
Example four
Corresponding to the foregoing method embodiments, a page loading system is provided in the fourth embodiment of the present invention, fig. 4 is a block diagram of the page loading system provided in the fourth embodiment of the present invention, and as shown in fig. 4, the system includes a resource server 41 and a backend server 42, where the resource server 41 is configured to store a page resource, and the backend server 42 includes a request receiving module 421, a permission authentication module 424, a relation group searching module 425, a relation searching module 427, a resource request module 428, and a resource loading module 429.
The request receiving module 421 is configured to receive a page loading request, where the page loading request includes request source information and a page template identifier; the authority authentication module 424 is used for performing authority authentication on the request source information according to a preset authority authentication rule; the relation group searching module 425 is configured to search, when the authority authentication is successful, a loading relation group corresponding to the page template identifier in a preset loading relation library, where the loading relation group includes multiple loading relations, and each loading relation is used to describe a corresponding relation between a request source type corresponding to the request source information and a plurality of page resource identifiers; the relation searching module 427 is configured to search a target loading relation corresponding to the request source type to which the request source information belongs in the loading relation group; the resource request module 428 is configured to request a resource server for a page resource according to the page resource identifier in the target loading relationship; and the resource loading module 429 is used for acquiring and loading the page template according to the page template identifier and dynamically loading each requested page resource on the page template.
Optionally, the page load request further includes timestamp information; when the resource request module 428 requests a resource server for a page resource, the specific steps executed include: requesting the resource server 41 for the page resource and the effective duration of the page resource according to the page resource identifier; the back-end server 42 further comprises a duration judging module and a resource hiding module, wherein the duration judging module is configured to judge whether a time difference between the timestamp information and the current time exceeds an effective duration after the resource loading module 429 dynamically loads the page resource on the page template; and the resource hiding module is used for hiding the page resources when the time difference exceeds the effective duration.
Optionally, when the resource loading module 429 acquires and loads the page template according to the page template identifier, the specifically executed steps include: inquiring a data record containing a page template identifier in a database, wherein the data record comprises the page template identifier and a storage address of the page template; the memory address is accessed to retrieve the page template.
Optionally, the backend server 42 further includes an identifier loading module, and the identifier loading module is configured to dynamically load an identifier representing no access right on the page template when the right authentication fails.
Optionally, the resource loading module 429 is further configured to load a predetermined common page resource at a position where the hidden page resource is loaded after the resource hiding module hides the page resource.
Optionally, the request source information includes an ip address and a user type of the requesting device, and the searching module 427 is configured to specifically execute steps when searching for the target loading relationship in the loading relationship group, including: searching a target loading relation corresponding to an ip address segment to which an ip address of the request equipment belongs in the loading relation group, wherein different ip address segments are different request source types; and searching a target loading relation corresponding to the user type in the loading relation group, wherein different user types are different request source types.
Optionally, the page resource identifier includes a type of the page resource, the type of the page resource includes a picture file, a video file, and an audio file, and the step of requesting the resource server for the effective duration of the page resource according to the page resource identifier includes: determining the type of the page resource according to the page resource identifier, wherein when the type of the page resource is a picture file, the effective duration of the requested page resource is a first duration, and when the type of the page resource is a video file or an audio file, the effective duration of the requested page resource is a second duration, and the first duration is less than the second duration.
EXAMPLE five
The embodiment also provides a computer device, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a rack server, a blade server, a tower server or a rack server (including an independent server or a server cluster composed of a plurality of servers) capable of executing programs, and the like. As shown in fig. 5, the computer device 01 of the present embodiment at least includes but is not limited to: a memory 011 and a processor 012, which are communicatively connected to each other via a system bus, as shown in fig. 5. It is noted that fig. 5 only shows the computer device 01 having the component memory 011 and the processor 012, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
In this embodiment, the memory 011 (i.e., a readable storage medium) includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, and the like. In some embodiments, the storage 011 can be an internal storage unit of the computer device 01, such as a hard disk or a memory of the computer device 01. In other embodiments, the memory 011 can also be an external storage device of the computer device 01, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the computer device 01. Of course, the memory 011 can also include both internal and external memory units of the computer device 01. In this embodiment, the memory 011 is generally used to store an operating system installed in the computer device 01 and various application software, such as program codes of the page loading methods in the first to third embodiments. Further, the memory 011 can also be used to temporarily store various kinds of data that have been output or are to be output.
The processor 012 may be a Central Processing Unit (CPU), a controller, a microcontroller, a microprocessor, or other data Processing chip in some embodiments. The processor 012 is generally used to control the overall operation of the computer device 01. In this embodiment, the processor 012 is configured to run a program code stored in the memory 011 or process data, for example, the page loading method in the first to third embodiments.
EXAMPLE six
The present embodiment also provides a computer-readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., on which a computer program is stored, which when executed by a processor implements corresponding functions. The computer-readable storage medium of this embodiment is used for storing each module of the back-end server in the page loading system, and when being executed by the processor, the computer-readable storage medium implements the page loading method of the first embodiment.
It should be noted that, in this document, 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.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A page loading method is characterized by comprising the following steps:
receiving a page loading request, wherein the page loading request comprises request source information and a page template identifier; the page template identification is used for acquiring a page template;
performing authority authentication on the request source information according to a preset authority authentication rule;
when the authority authentication is successful, searching a loading relation group corresponding to the page template identification in a preset loading relation library; the loading relation group comprises a plurality of loading relations, and each loading relation is used for describing the corresponding relation between the request source type corresponding to the request source information and the page resource identifiers;
searching a target loading relation corresponding to the request source type of the request source information in the loading relation group;
requesting page resources from a resource server according to the page resource identifier in the target loading relationship; and
and acquiring and loading a page template according to the page template identifier, and dynamically loading the page resource on the page template.
2. The page loading method according to claim 1,
the page load request further includes timestamp information;
the step of requesting page resources from a resource server according to the page resource identifier in the target loading relationship comprises: requesting the page resource and the effective duration of the page resource from a resource server according to the page resource identifier;
after the step of dynamically loading the page resource on the page template, the page loading method further includes: judging whether the time difference between the timestamp information and the current time exceeds the effective duration or not; and if the time difference exceeds the effective duration, hiding the page resource.
3. The page loading method according to claim 1, wherein the step of obtaining and loading a page template according to the page template identifier comprises:
querying a data record containing the page template identifier in a database, wherein the data record comprises the page template identifier and a storage address of the page template;
and accessing the storage address to acquire and load the page template.
4. The page loading method according to claim 1, wherein the page loading method further comprises:
and when the authority authentication fails, dynamically loading an identifier representing no access authority on the page template.
5. The page loading method according to claim 1, wherein after hiding the page resource, the page loading method further comprises:
and loading a preset public page resource at the position of loading the hidden page resource.
6. The page loading method according to claim 1,
the request source information comprises an ip address and a user type of the request equipment;
the step of searching the target loading relation corresponding to the request source type of the request source information in the loading relation group comprises the following steps:
searching a target loading relation corresponding to an ip address segment to which an ip address of the request device belongs in the loading relation group, wherein different ip address segments are different request source types;
and searching a target loading relation corresponding to the user type in the loading relation group, wherein different user types are different request source types.
7. The page loading method according to claim 2,
the page resource identification comprises the type of the page resource, the type of the page resource comprises a picture file, a video file and an audio file,
the step of requesting the effective duration of the page resource from a resource server according to the page resource identifier comprises the following steps: determining the type of the page resource according to the page resource identifier, requesting the effective duration of the page resource to be a first duration when the type of the page resource is a picture file, and requesting the effective duration of the page resource to be a second duration when the type of the page resource is a video file or an audio file, wherein the first duration is less than the second duration.
8. A page loading system, comprising: the system comprises a resource server and a back-end server, wherein the resource server is used for storing page resources, and the back-end server comprises:
the device comprises a request receiving module, a page loading module and a page template identification module, wherein the request receiving module is used for receiving a page loading request, and the page loading request comprises request source information and a page template identification; the page template identification is used for acquiring a page template;
the authority authentication module is used for carrying out authority authentication on the request source information according to a preset authority authentication rule;
the relation group searching module is used for searching a loading relation group corresponding to the page template identifier in a preset loading relation library when the authority authentication is successful, wherein the loading relation group comprises a plurality of loading relations, and each loading relation is used for describing the corresponding relation between the request source type corresponding to the request source information and a plurality of page resource identifiers;
the relation searching module is used for searching a target loading relation corresponding to the request source type of the request source information in the loading relation group;
the resource request module is used for requesting page resources from a resource server according to the page resource identification in the target loading relation; and
and the resource loading module is used for acquiring and loading the page template according to the page template identifier and dynamically loading the page resources on the page template.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented by the processor when executing the computer program.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that: the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 7.
CN201911351015.1A 2019-12-24 2019-12-24 Page loading method, system, computer equipment and computer readable storage medium Pending CN111159595A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911351015.1A CN111159595A (en) 2019-12-24 2019-12-24 Page loading method, system, computer equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911351015.1A CN111159595A (en) 2019-12-24 2019-12-24 Page loading method, system, computer equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN111159595A true CN111159595A (en) 2020-05-15

Family

ID=70557904

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911351015.1A Pending CN111159595A (en) 2019-12-24 2019-12-24 Page loading method, system, computer equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN111159595A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112100681A (en) * 2020-11-18 2020-12-18 北京联想协同科技有限公司 Data access method, device and storage medium
CN112764732A (en) * 2021-01-25 2021-05-07 百果园技术(新加坡)有限公司 Code generation method and device applied to loading target resource
CN113536185A (en) * 2021-07-28 2021-10-22 平安科技(深圳)有限公司 Application page loading method, storage medium and related equipment thereof
CN113934469A (en) * 2021-10-13 2022-01-14 北京有竹居网络技术有限公司 Template loading method, control method, device, equipment and storage medium
CN114745363A (en) * 2022-03-18 2022-07-12 成都数联云算科技有限公司 Method, system, device and medium for processing front-end application request message

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598554A (en) * 2014-12-31 2015-05-06 微梦创科网络科技(中国)有限公司 Webpage page loading method and device
CN106156131A (en) * 2015-04-08 2016-11-23 苏宁云商集团股份有限公司 Templating online page editing method and system
CN109213947A (en) * 2018-08-31 2019-01-15 北京京东金融科技控股有限公司 Browser page methods of exhibiting, device, electronic equipment and readable medium
CN109614545A (en) * 2018-11-13 2019-04-12 阿里巴巴集团控股有限公司 Page loading method, device and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104598554A (en) * 2014-12-31 2015-05-06 微梦创科网络科技(中国)有限公司 Webpage page loading method and device
CN106156131A (en) * 2015-04-08 2016-11-23 苏宁云商集团股份有限公司 Templating online page editing method and system
CN109213947A (en) * 2018-08-31 2019-01-15 北京京东金融科技控股有限公司 Browser page methods of exhibiting, device, electronic equipment and readable medium
CN109614545A (en) * 2018-11-13 2019-04-12 阿里巴巴集团控股有限公司 Page loading method, device and equipment

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112100681A (en) * 2020-11-18 2020-12-18 北京联想协同科技有限公司 Data access method, device and storage medium
CN112764732A (en) * 2021-01-25 2021-05-07 百果园技术(新加坡)有限公司 Code generation method and device applied to loading target resource
CN112764732B (en) * 2021-01-25 2024-03-08 百果园技术(新加坡)有限公司 Code generation method and device applied to loading target resource
CN113536185A (en) * 2021-07-28 2021-10-22 平安科技(深圳)有限公司 Application page loading method, storage medium and related equipment thereof
CN113536185B (en) * 2021-07-28 2024-01-02 平安科技(深圳)有限公司 Application page loading method, storage medium and related equipment
CN113934469A (en) * 2021-10-13 2022-01-14 北京有竹居网络技术有限公司 Template loading method, control method, device, equipment and storage medium
CN113934469B (en) * 2021-10-13 2023-11-24 北京有竹居网络技术有限公司 Template loading method, control method, device, equipment and storage medium
CN114745363A (en) * 2022-03-18 2022-07-12 成都数联云算科技有限公司 Method, system, device and medium for processing front-end application request message
CN114745363B (en) * 2022-03-18 2023-12-15 成都数联云算科技有限公司 Front-end application request message processing method, system and device and medium

Similar Documents

Publication Publication Date Title
CN111159595A (en) Page loading method, system, computer equipment and computer readable storage medium
CN109743315B (en) Behavior identification method, behavior identification device, behavior identification equipment and readable storage medium for website
US20200089718A1 (en) Inferred user identity in content distribution
CN111181975B (en) Account management method, device, equipment and storage medium
CN109462601B (en) Multi-platform access method and device based on eSIM
CN110839014B (en) Authentication method, authentication device, computer equipment and readable storage medium
CN111343168B (en) Identity authentication method and device, computer equipment and readable storage medium
CN104424423B (en) The permission of application program determines method and apparatus
US20160004850A1 (en) Secure download from internet marketplace
US11138153B2 (en) Data tagging
CN112860778B (en) Database management method, device, equipment and medium for desktop application program
CN111460496A (en) Permission configuration method based on user role, electronic device and storage medium
CN113239397A (en) Information access method, device, computer equipment and medium
CN110750765B (en) Service system, front-end page control method thereof, computer device, and storage medium
CN115455925A (en) Contract generation method and device, electronic equipment and storage medium
CN113282591B (en) Authority filtering method, authority filtering device, computer equipment and storage medium
US10162488B1 (en) Browser-based media scan
CN111949363B (en) Service access management method, computer equipment, storage medium and system
CN116029526B (en) Scheduling method, device, equipment and storage medium of experimental resources
CN111193729A (en) Cross-terminal user identity recognition method and device and computer readable storage medium
CN105141586B (en) A kind of method and system verified to user
CN110704498A (en) Data extraction method, device, equipment and computer readable storage medium
CN112148597B (en) Method for eliminating iOS device authorization dialog box, test method and storage medium
CN114912003A (en) Document searching method and device, computer equipment and storage medium
CN106485104B (en) Automatic restoration method, device and system for terminal security policy

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