Page display method and device, equipment and medium
By receiving page access requests and filtering static resources, the problem of page display fixed is solved, personalized page display and stability is achieved, and user needs are met.
Patent Information
- Application Number
- CN202411032982.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-11-22
AI Technical Summary
The prior art cannot flexibly load and display suitable pages according to the actual needs of different users, resulting in the fixed page display and cannot meet personalized needs.
By receiving the page access request of the target object, based on the identification information and access information in the page access request, a collection of static resources associated with it is obtained, and appropriate static resources are filtered out according to the access rights and business types, and the target page is displayed regularly. Checksum updates static resources to prevent the use of white screens and expired resources.
It realizes personalized page display for different users, reduces page loading delay, ensures the stability and consistency of page display, and meets the actual needs of users.
Smart Images

Figure CN119003908A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a page display method, device, equipment and medium. Background Art
[0002] During the use of the application, it is inevitable to access some pages, especially in the banking business interaction scenario, which will be divided into branches, sub-branches, etc. according to the level and the region where they are located. Banks in different regions have their own specific business characteristics and business needs, resulting in different corresponding pages.
[0003] Currently, when users want to access the pages of these banks, a preloading mechanism is generally used to download or pre-fetch resources that users may access in the future and store them in the cache. When the user accesses, the resource is fully loaded and the page is displayed.
[0004] However, the above-mentioned fixed page preloading solution cannot flexibly load and display pages suitable for users according to actual needs of different users. Summary of the invention
[0005] The embodiments of the present application provide a page display method, apparatus, device and medium for solving the problem of fixed page display.
[0006] In a first aspect, a page display method is provided, the method comprising:
[0007] Receive a page access request from a target object; wherein the page access request carries access information of the target object and identification information of a target enterprise;
[0008] Acquire a static resource set associated with the identification information from local storage;
[0009] Determine the identity association information of the target object according to the access information, and obtain at least one static resource associated with the identity association information from the static resource set;
[0010] Based on the at least one static resource, a target page is displayed.
[0011] In an embodiment of the present application, first, after receiving a page access request from the target object, a pre-stored static resource collection can be obtained from local storage based on the identification information of the target enterprise carried in the page access request; then, the identity association information of the target object can be determined based on the access information of the target object carried in the page access request, and then at least one static resource associated with the identity association information can be obtained from the static resource collection; finally, based on the at least one static resource, a target page that meets the target object is displayed for subsequent operations of the target object; this method can prevent the page from displaying a white screen and prolonging the page loading time, while flexibly loading and displaying pages suitable for the target object according to the actual needs of different target objects, satisfying personalized page display, and solving the problem of fixed page display in the prior art.
[0012] In a possible embodiment, determining the identity association information of the target object according to the access information, and acquiring at least one static resource associated with the identity association information from the static resource set includes:
[0013] Determining the access rights and access roles of the target object according to the login information of the target object in the access information;
[0014] Acquire at least one candidate static resource associated with the access role and the access permission from the static resource set;
[0015] According to the service type in the access information, at least one static resource associated with the service type is acquired from the at least one candidate static resource.
[0016] Through the above method, based on the login information of the target object, the access rights and access roles of the target object are determined, so that at least one corresponding candidate static resource can be screened out from the static resource collection, and further based on the business type in the access information, a secondary screening is performed to screen out static resources related to the business type from at least one candidate static resource, so that pages that meet the target object can be displayed in a targeted manner later.
[0017] In a possible embodiment, before receiving the page access request of the target object, the method further includes:
[0018] Based on the configuration information of the target enterprise and through the API of the target enterprise, a plurality of static resources of the target enterprise are obtained; wherein the configuration information at least includes the name, address information, and application software activation rules of the target enterprise;
[0019] Labels are added to the multiple static resources respectively to form the static resource set; wherein a label at least includes a business type, a resource version number, and a resource level corresponding to a static resource.
[0020] Through the above method, while preventing the white screen problem when the page is loaded for the first time, the usage scope of each static resource can be divided more finely. Different resource levels correspond to different access permissions, which makes it easier to display more appropriate pages for the target object based on this.
[0021] In a possible embodiment, after forming the static resource set, the method further includes:
[0022] According to a set period, checking the validity of the plurality of static resources;
[0023] If it is verified that the target static resource among the multiple static resources is invalid, based on the resource identifier of the target static resource, a new static resource corresponding to the resource identifier is obtained from the target enterprise, and the static resource set is updated according to the new static resource.
[0024] Through the above method, the validity of static resources in the static resource collection is checked regularly, and invalid static resources are updated in real time, which ensures the validity of cached static resources and avoids the use of expired or changed static resources when displaying subsequent pages, thereby ensuring the stability and consistency of subsequent page display.
[0025] In a possible embodiment, updating the static resource set according to the new static resource includes:
[0026] Add a tag to the new static resource, and add the tagged new static resource to the static resource collection;
[0027] The target resource in the static resource set is marked as invalid, or the target resource is deleted from the static resource set.
[0028] In a possible embodiment, after displaying the target page based on the at least one static resource, the method further includes:
[0029] The validity period of the target page is set, and the target page is cached.
[0030] Through the above method, when the target object is accessed again in the future, it can be quickly loaded and used, thereby improving the response speed and satisfying the user experience.
[0031] In a second aspect, the present application provides a page display device, comprising:
[0032] A receiving module, configured to receive a page access request from a target object; wherein the page access request carries access information of the target object and identification information of a target enterprise;
[0033] A screening module, used to obtain a static resource set associated with the identification information from a local storage, and to determine the identity association information of the target object according to the access information, and to obtain at least one static resource associated with the identity association information from the static resource set;
[0034] The display module is used to display a target page based on the at least one static resource.
[0035] In a possible embodiment, the screening module is specifically used to:
[0036] Determining the access rights and access roles of the target object according to the login information of the target object in the access information;
[0037] Acquire at least one candidate static resource associated with the access role and the access permission from the static resource set;
[0038] According to the service type in the access information, at least one static resource associated with the service type is acquired from the at least one candidate static resource.
[0039] In a possible embodiment, the device also includes a resource preloading module; the resource preloading module is used to obtain multiple static resources of the target enterprise based on the configuration information of the target enterprise and through the API of the target enterprise; wherein the configuration information at least includes the name, address information, and application software activation rules of the target enterprise; tags are added to the multiple static resources respectively to form the static resource collection; wherein a tag at least includes a business type, resource version number, and resource level corresponding to a static resource.
[0040] In a possible embodiment, the resource preloading module is further used for:
[0041] According to a set period, checking the validity of the plurality of static resources;
[0042] If it is verified that the target static resource among the multiple static resources is invalid, based on the resource identifier of the target static resource, a new static resource corresponding to the resource identifier is obtained from the target enterprise, and the static resource set is updated according to the new static resource.
[0043] In a possible embodiment, the resource preloading module is specifically used to:
[0044] Add a tag to the new static resource, and add the tagged new static resource to the static resource collection;
[0045] The target resource in the static resource set is marked as invalid, or the target resource is deleted from the static resource set.
[0046] In a possible embodiment, the display module is further used for:
[0047] The validity period of the target page is set, and the target page is cached.
[0048] In a third aspect, the present application provides an electronic device, including:
[0049] A memory for storing program instructions;
[0050] The processor is used to call the program instructions stored in the memory, and execute the steps included in any one of the methods in the first aspect according to the obtained program instructions.
[0051] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes any one of the methods described in the first aspect.
[0052] In a fifth aspect, the present application provides a computer program product, comprising: a computer program code, when the computer program code is run on a computer, the computer executes any one of the methods described in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 A schematic diagram of an application scenario applicable to the embodiments of the present application;
[0054] Figure 2 A flow chart of a page display method provided in an embodiment of the present application;
[0055] Figure 3 A flowchart for checking static resources provided in an embodiment of the present application;
[0056] Figure 4 An example diagram of a correspondence table provided in an embodiment of the present application;
[0057] Figure 5 A schematic diagram of the structure of a page display device provided in an embodiment of the present application;
[0058] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0059] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0060] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the term "comprising" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
[0061] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description. It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0062] In the technical solution of this application, the acquisition, transmission, storage, and use of data are in compliance with the requirements of relevant national laws and regulations.
[0063] Before introducing the page display method provided in the embodiment of the present application, in order to facilitate understanding, the technical background of the embodiment of the present application is first introduced in detail below.
[0064] At present, in the banking business interaction scenario, banks in different regions have their own specific business needs and business characteristics. When a user wants to access a bank's page, a preloading mechanism is generally used to download or pre-fetch resources that the user may access in the future and store them in the cache. When the user accesses, the resource is directly loaded in full and the page is displayed; however, different users (target objects) may have different requirements for the content required in the page. For example, there may be certain differences in the content that a company and an individual want to access; for another example, there may be certain differences in the content that the elderly and young people want to access; for another example, there may be certain differences in the content that VIP users and ordinary users want to access; the existing fixed page preloading solution cannot flexibly load and display pages suitable for users according to the actual needs of different users.
[0065] In view of this, embodiments of the present application provide a page method, apparatus, device and medium for solving the problem of fixed page display.
[0066] First, the following briefly introduces the application scenarios to which the technical solutions of the embodiments of the present application can be applied. It should be noted that the application scenarios introduced below are only used to illustrate the embodiments of the present application and are not limited. In specific implementation, the technical solutions provided by the embodiments of the present application can be flexibly applied according to actual needs.
[0067] Figure 1 Schematic diagram of application scenarios applicable to the embodiments of this application. Figure 1 As shown, the application scenario mainly includes: a terminal 10, a server 11, and a bank (1, 2, 3 ... N); wherein, information exchange can be performed between the terminal 10 and the server 11 through a communication network, and information exchange can be performed between the server 11 and the bank (1, 2, 3 ... N) through a communication network, and the communication methods adopted by the communication network may include: a wireless communication method and a wired communication method.
[0068] Optionally, the terminal 10 can access the network and communicate with the server 11 through cellular mobile communication technology, and the cellular mobile communication technology may include fifth generation mobile communication (5th Generation Mobile Networks, 5G) technology.
[0069] Optionally, the terminal 10 may access the network and communicate with the server 11 via a short-range wireless communication method, and the short-range wireless communication method may include Wireless Fidelity (Wi-Fi) technology.
[0070] The present application embodiment does not impose any restriction on the number of the above terminals. Figure 1 As shown, only the terminal 10 is described as an example, and the above-mentioned devices and their respective functions are briefly introduced below.
[0071] The terminal 10 is a device that can provide voice and / or data connectivity to the user, including: a handheld terminal device with a wireless connection function, a vehicle-mounted terminal device, etc. For example, the terminal 10 includes but is not limited to: a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile Internet device (Mobile Internet Device, MID), a wearable device, a virtual reality (Virtual Reality, VR) device, an augmented reality (Augmented Reality, AR) device, a wireless terminal device in industrial control, a wireless terminal device in unmanned driving, a wireless terminal device in a smart grid, a wireless terminal device in transportation safety, a wireless terminal device in a smart city, or a wireless terminal device in a smart home, etc.
[0072] In addition, a client of the banking system may be installed on the terminal 10, and the client may be software (e.g., APP, browser, etc.), or a web page, a small program, etc. In the embodiment of the present application, the terminal 10 may use the above-mentioned client to interact with the server 11 to access the pages of the bank (1, 2, 3 ..., N).
[0073] Optionally, server 11 can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms.
[0074] Furthermore, in an embodiment of the present application, the above-mentioned server 11 can, after the bank system is started, pre-download the static resources of each branch (1, 2, 3..., N) through the respective APIs of the branches (1, 2, 3..., N), and cache them in local storage to ensure that all required static resources have been downloaded locally before the terminal 10 actually accesses a page of a certain bank, thereby reducing the waiting time during the first loading; the server 11 can also be equipped with a page display device corresponding to the above-mentioned client, and the page display device is used to display a suitable page for the terminal 10 based on the access information of the target object in the page access request and the identification information of the target enterprise (for example, Bank 1) after receiving the page access request from the terminal 10, so as to facilitate the user's subsequent operations.
[0075] To further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation steps as shown in the following embodiments or drawings, more or fewer operation steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application. The method may be executed or executed in parallel in the actual processing process or when the device is executed in accordance with the method sequence shown in the embodiment or drawings.
[0076] Figure 2 This is a flow chart of a page display method provided in an embodiment of the present application. The flow can be executed by a page display device, which can be implemented by software and / or banking methods to solve the problem of fixed page display. Figure 2 As shown, the process includes the following steps:
[0077] 201: Receive a page access request from the target object.
[0078] The page access request carries the access information of the target object and the identification information of the target enterprise.
[0079] In a possible embodiment, before receiving a page access request from a target object, the target enterprise (such as Figure 1 The static resources of bank 1) shown are downloaded in advance and cached in local storage, specifically:
[0080] Based on the configuration information of the target enterprise, multiple static resources (for example, pictures, Cascading Style Sheets (CSS) files, JavaScript files, font files, HTML files, audio files, video files, etc.) of the target enterprise are obtained from the target enterprise's API, so as to prevent the problem of a white screen when the page is loaded for the first time subsequently; wherein, the configuration information at least includes the name, address information, and application software activation rules of the target enterprise, which are used to guide the loading of the corresponding page under specific conditions; tags are added to multiple static resources respectively to form a static resource collection; wherein, a tag at least includes the business type, resource version number, and resource level corresponding to a static resource, and the use scope of each static resource can be divided into finer granularity, and different resource levels correspond to different access rights, so that it is convenient to use this as a basis for displaying more appropriate pages for the target object in the future.
[0081] In a possible embodiment, after the static resource set is formed, a regular check may be performed to ensure the validity of the static resources. Figure 3As shown, a flowchart of checking static resources provided by an embodiment of the present application is exemplarily shown, and the process includes the following steps:
[0082] 301: Verify the validity of the above multiple static resources according to the set period.
[0083] In this step, the setting period can be flexibly set based on the actual scenario, and the embodiment of the present application does not limit this.
[0084] 302: If it is found that the target static resource among the multiple static resources is invalid, a new static resource corresponding to the resource identifier is obtained from the target enterprise based on the resource identifier of the target static resource, and the static resource set is updated according to the new static resource.
[0085] In a possible embodiment, the following methods may be used to verify that the target static resource is invalid:
[0086] Method 1: compare the resource version number recorded in the tag of the target static resource with the resource version number of the target enterprise's current target static resource. If they are inconsistent, the target static resource is verified to be invalid. If they are consistent, the target static resource is verified to be valid and can continue to be used.
[0087] Method 2: If the time interval between the time of acquiring the target static resource and the current time is greater than or equal to the duration threshold, the target static resource is verified to be invalid; if it is less than the duration threshold, the target resource is verified to be valid and can continue to be used.
[0088] Method 3, compare the similarity of the locally stored target static resource with the target static resource currently running in the target enterprise. If it is less than the similarity threshold, the target resource is verified to be invalid. If it is greater than or equal to the similarity threshold, the target resource is verified to be valid.
[0089] In a possible embodiment, updating the static resource collection according to the new static resource may be: adding a label to the new static resource, adding the labeled new static resource to the static resource collection, marking the target resource in the static resource collection as invalid, or deleting the target resource from the static resource collection.
[0090] Through the above Figure 3 The method shown in the figure periodically verifies the validity of the static resources in the static resource collection and updates the invalid static resources in real time, thereby ensuring the validity of the cached static resources and avoiding the use of expired or changed static resources when displaying the page later, thereby ensuring the stability and consistency of the subsequent page display.
[0091] 202: Get a static resource collection associated with the identification information from the local storage.
[0092] In this step, the identification information may be the address information of the target enterprise, the name of the target enterprise, or the number of the target enterprise.
[0093] 203: Determine the identity association information of the target object according to the access information, and obtain at least one static resource associated with the identity association information from the static resource set.
[0094] In a possible embodiment, obtaining at least one static resource associated with identity association information from a static resource collection may include: determining the access rights and access role of the target object based on the login information of the target object in the access information; obtaining at least one candidate static resource associated with the access role and the access rights from the static resource collection; and obtaining at least one static resource associated with the business type from at least one candidate static resource based on the business type in the access information.
[0095] In a possible embodiment, the login information of the target object may include information such as the name, registration account, and user address of the target object.
[0096] Furthermore, the access rights and access role of the target object can be determined based on the login information of the target object in the access information. This can be done by: querying the correspondence table based on the login information of the target object, and querying the access role and access rights corresponding to the login information, so as to facilitate the subsequent acquisition of the corresponding static resources from the static resource collection based on this.
[0097] like Figure 4 As shown in FIG. , an example diagram of a corresponding relationship table is shown. Figure 4 In the example, the login information of target object 1 is A, the corresponding access role is enterprise, and the corresponding access right is level 2; the login information of target object 2 is B, the corresponding access role is department manager, and the corresponding access right is level 8; the login information of target object 3 is C, the corresponding access role is individual user, and the corresponding access right is level 1; the login information of target object 4 is D, the corresponding access role is ordinary employee, and the corresponding access right is level 6.
[0098] Furthermore, the access rights correspond to the resource levels of the static resources. For example, the resource levels corresponding to access rights of levels 1 to 3 are low, the resource levels corresponding to access rights of levels 4 to 7 are medium, and the resource levels corresponding to access rights of levels 8 to 10 are high.
[0099] In a possible embodiment, the resource level may be divided into a finer granularity, for example, into 6 different levels, which may be flexibly set according to actual needs, and the embodiment of the present application does not limit this.
[0100] It should be noted that the above Figure 4 The correspondence table is only an example, and the correspondence table can be divided into finer granularity according to actual needs. For example, it can be divided into VIP users and non-VIP users. For VIP individual users, the corresponding access rights are level 3, and for non-VIP individual users, the corresponding access rights are level 1, and so on; for another example, it can be divided into the elderly and the young. For the elderly, the corresponding access rights are level 1, and for the young, the access rights are level 2, and so on; the embodiments of the present application are not limited here.
[0101] Furthermore, based on the business type in the access information (for example, pension), obtaining at least one static resource associated with the business type from at least one candidate static resource can be: based on the business type in the access information, comparing with the label of at least one candidate static resource, if the business type recorded in the label is consistent with the business type in the access information, filtering it out for subsequent use.
[0102] In an embodiment of the present application, the access rights and access roles of the target object are determined by using the login information of the target object, so that at least one candidate static resource corresponding to the target object can be screened out from the static resource collection, and further based on the business type in the access information, a secondary screening is performed to screen out static resources related to the business type from at least one candidate static resource, so that pages that meet the target object can be displayed in a targeted manner later.
[0103] 204: Display the target page based on at least one static resource.
[0104] In this step, the Puppeteer tool can be used to render, load, process, and perform other operations on the page based on at least one static resource, and then simulate generation based on the Chromium browser engine provided by the Puppeteer tool, and finally display the target page.
[0105] In a possible embodiment, the target page is displayed based on at least one static resource. Alternatively, a suitable target page display template may be screened out from a plurality of pre-configured page display templates, and then a corresponding target page is generated based on the target page display template and at least one static resource, and then the target page is displayed for use by the target object.
[0106] In a possible embodiment, based on at least one static resource, after the target page is displayed, the validity period of the target page can be set, and a cache snapshot of the target page can be taken so that when the target object is accessed again later, it can be quickly loaded and used, thereby improving the response speed and satisfying the user experience.
[0107] In an embodiment of the present application, first, after receiving a page access request from the target object, a pre-stored static resource collection can be obtained from local storage based on the identification information of the target enterprise carried in the page access request; then, the identity association information of the target object can be determined based on the access information of the target object carried in the page access request, and then at least one static resource associated with the identity association information can be obtained from the static resource collection; finally, based on the at least one static resource, a target page that meets the target object is displayed for subsequent operations of the target object; this method can prevent the page from displaying a white screen and prolonging the page loading time, while flexibly loading and displaying pages suitable for the target object according to the actual needs of different target objects, satisfying personalized page display, and solving the problem of fixed page display in the prior art.
[0108] Based on the same technical concept, the embodiment of the present application also provides a page display device, which can implement the process of the above-mentioned page display method in the embodiment of the present application.
[0109] Figure 5 This is a schematic diagram of the structure of a page display device provided in an embodiment of the present application. Figure 5 As shown, the device includes: a receiving module 501 , a screening module 502 , a display module 503 ; further, it may also include a resource preloading module 504 .
[0110] The receiving module 501 is used to receive a page access request of a target object; wherein the page access request carries access information of the target object and identification information of a target enterprise.
[0111] The screening module 502 is used to obtain a static resource set associated with the identification information from the local storage, and to determine the identity association information of the target object according to the access information, and obtain at least one static resource associated with the identity association information from the static resource set.
[0112] The display module 503 is configured to display a target page based on the at least one static resource.
[0113] The resource preloading module 504 is used to obtain multiple static resources of the target enterprise based on the configuration information of the target enterprise and through the API of the target enterprise; wherein the configuration information at least includes the name, address information, and application software activation rules of the target enterprise; tags are added to the multiple static resources respectively to form the static resource collection; wherein a tag at least includes the business type, resource version number, and resource level corresponding to a static resource.
[0114] In a possible embodiment, the screening module 502 is specifically used for:
[0115] Determine the access rights and access role of the target object based on the identification information of the target object in the access information; obtain at least one candidate static resource associated with the access role and the access rights from the static resource set; and obtain at least one static resource associated with the business type from the at least one candidate static resource based on the business type in the access information.
[0116] In a possible embodiment, the resource preloading module 504 is further configured to:
[0117] According to the set period, the validity of the multiple static resources is checked; if it is found that the target static resource among the multiple static resources is invalid, based on the resource identifier of the target static resource, a new static resource corresponding to the resource identifier is obtained from the target enterprise, and the static resource set is updated according to the new static resource.
[0118] In a possible embodiment, the resource preloading module 504 is specifically configured to:
[0119] Add a label to the new static resource, and add the labeled new static resource to the static resource collection; mark the target resource in the static resource collection as invalid, or delete the target resource from the static resource collection.
[0120] In a possible embodiment, the display module 503 is further used for:
[0121] The validity period of the target page is set, and the target page is cached.
[0122] It should be noted here that the above-mentioned device provided in the embodiment of the present application can implement all the method steps in the above-mentioned page display method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0123] Based on the same technical concept, an embodiment of the present application provides an electronic device, which can realize the functions of the page display device discussed above.
[0124] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application is exemplarily shown.
[0125] At least one processor 601, and a memory 602 connected to the at least one processor 601. The specific connection medium between the processor 601 and the memory 602 is not limited in the embodiment of the present application. Figure 6 In the example, the processor 601 and the memory 602 are connected via a bus 600. Figure 6 The connection between other components is shown by bold lines, and is not intended to be limiting. The bus 600 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. Alternatively, the processor 601 can also be called a controller, and there is no limitation on the name.
[0126] In the embodiment of the present application, the memory 602 stores instructions that can be executed by at least one processor 601. The at least one processor 601 can execute a page display method discussed above by executing the instructions stored in the memory 602. The processor 601 can implement Figure 5 The functions of each module in the device shown.
[0127] Among them, the processor 601 is the control center of the device, and can use various interfaces and lines to connect the various parts of the entire control device. By running or executing instructions stored in the memory 602 and calling the data stored in the memory 602, the various functions of the device and processing data, the device can be monitored as a whole.
[0128] In the embodiment of the present application, the processor 601 may include one or more processing units, and the processor 601 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 601. In some embodiments, the processor 601 and the memory 602 may be implemented on the same chip, and in some embodiments, they may also be implemented separately on separate chips.
[0129] Processor 601 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of a page display method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware processor to be executed, or a combination of hardware and software modules in the processor to be executed.
[0130] The memory 602 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 602 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory 602 is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 602 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.
[0131] By programming the processor 601, the code corresponding to the page display method described in the above embodiment can be fixed into the chip, so that the chip can execute the code when running. Figure 2 The embodiment shown is a page display method. How to design and program the processor 601 is a technology well known to those skilled in the art and will not be described in detail here.
[0132] It should be noted here that the above-mentioned electronic device provided in the embodiment of the present application can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.
[0133] Based on the same technical concept, the embodiment of the present application provides a computer-readable storage medium, and the computer program product includes: computer program code, when the computer program code is executed on a computer, the computer executes any of the page display methods discussed above. Since the principle of solving the problem by the above-mentioned computer-readable storage medium is similar to that of the page display method, the implementation of the above-mentioned computer-readable storage medium can refer to the implementation of the method, and the repeated parts will not be repeated.
[0134] Based on the same technical concept, the embodiment of the present application also provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes any of the page display methods discussed above. Since the principle of solving the problem by the above computer program product is similar to that of the page display method, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be repeated.
[0135] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0136] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0137] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0138] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of user-operated steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0139] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A page display method, characterized in that: The method comprises: Receive a page access request from a target object; wherein the page access request carries access information of the target object and identification information of a target enterprise; Acquire a static resource set associated with the identification information from local storage; Determine the identity association information of the target object according to the access information, and obtain at least one static resource associated with the identity association information from the static resource set; Based on the at least one static resource, a target page is displayed.
2. The method according to claim 1, characterized in that The determining, according to the access information, the identity association information of the target object, and acquiring at least one static resource associated with the identity association information from the static resource set includes: Determining the access rights and access roles of the target object according to the login information of the target object in the access information; Acquire at least one candidate static resource associated with the access role and the access permission from the static resource set; According to the service type in the access information, at least one static resource associated with the service type is acquired from the at least one candidate static resource.
3. The method according to claim 1, characterized in that Before receiving the page access request of the target object, the method further includes: Based on the configuration information of the target enterprise and through the API of the target enterprise, a plurality of static resources of the target enterprise are obtained; wherein the configuration information at least includes the name, address information, and application software activation rules of the target enterprise; Labels are added to the multiple static resources respectively to form the static resource set; wherein a label at least includes a business type, a resource version number, and a resource level corresponding to a static resource.
4. The method according to claim 3, characterized in that After forming the static resource set, the method further includes: According to a set period, checking the validity of the plurality of static resources; If it is verified that the target static resource among the multiple static resources is invalid, based on the resource identifier of the target static resource, a new static resource corresponding to the resource identifier is obtained from the target enterprise, and the static resource set is updated according to the new static resource.
5. The method according to claim 4, characterized in that The updating of the static resource set according to the new static resource comprises: Add a tag to the new static resource, and add the tagged new static resource to the static resource collection; The target resource in the static resource set is marked as invalid, or the target resource is deleted from the static resource set.
6. The method according to any one of claims 1 to 5, characterized in that: After displaying the target page based on the at least one static resource, the method further includes: The validity period of the target page is set, and the target page is cached.
7. A page display device, characterized in that: include: A receiving module, configured to receive a page access request from a target object; wherein the page access request carries access information of the target object and identification information of a target enterprise; A screening module, used to obtain a static resource set associated with the identification information from a local storage, and to determine the identity association information of the target object according to the access information, and to obtain at least one static resource associated with the identity association information from the static resource set; The display module is used to display a target page based on the at least one static resource.
8. The device according to claim 7, characterized in that The screening module is specifically used for: Determining the access rights and access roles of the target object according to the login information of the target object in the access information; Acquire at least one candidate static resource associated with the access role and the access permission from the static resource set; According to the service type in the access information, at least one static resource associated with the service type is acquired from the at least one candidate static resource.
9. The device according to claim 7, characterized in that The device also includes a resource preloading module; The resource preloading module is used to obtain multiple static resources of the target enterprise based on the configuration information of the target enterprise and through the API of the target enterprise; wherein the configuration information at least includes the name, address information, and application software activation rules of the target enterprise; Labels are added to the multiple static resources respectively to form the static resource set; wherein a label at least includes a business type, a resource version number, and a resource level corresponding to a static resource.
10. The device according to claim 9, characterized in that The resource preloading module is further used for: According to a set period, checking the validity of the plurality of static resources; If it is verified that the target static resource among the multiple static resources is invalid, based on the resource identifier of the target static resource, a new static resource corresponding to the resource identifier is obtained from the target enterprise, and the static resource set is updated according to the new static resource.
11. The device according to claim 9, characterized in that The resource preloading module is specifically used for: Add a tag to the new static resource, and add the tagged new static resource to the static resource collection; The target resource in the static resource set is marked as invalid, or the target resource is deleted from the static resource set.
12. The device according to any one of claims 7 to 11, characterized in that: The display module is also used for: The validity period of the target page is set, and the target page is cached.
13. An electronic device, characterized in that: include: A memory for storing program instructions; A processor is used to call the program instructions stored in the memory, and execute the method according to any one of claims 1 to 6 according to the obtained program instructions.
14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 6.
15. A computer program product, characterized in that The computer program product comprises: a computer program code, and when the computer program code is run on a computer, the computer is enabled to execute the method according to any one of claims 1 to 6.
Citation Information
Cited By
Authentication method and device, electronic equipment and computer readable storage medium
CN119603027A
