WO2024021472A1 - Interface information processing method and apparatus - Google Patents

Interface information processing method and apparatus Download PDF

Info

Publication number
WO2024021472A1
WO2024021472A1 PCT/CN2022/141444 CN2022141444W WO2024021472A1 WO 2024021472 A1 WO2024021472 A1 WO 2024021472A1 CN 2022141444 W CN2022141444 W CN 2022141444W WO 2024021472 A1 WO2024021472 A1 WO 2024021472A1
Authority
WO
WIPO (PCT)
Prior art keywords
external link
information
link resources
resources
resource
Prior art date
Application number
PCT/CN2022/141444
Other languages
French (fr)
Chinese (zh)
Inventor
罗宇雯
齐铁鹏
郭迎
尹聪聪
林金棚
余升水
谢苍红
Original Assignee
天翼云科技有限公司
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 天翼云科技有限公司 filed Critical 天翼云科技有限公司
Publication of WO2024021472A1 publication Critical patent/WO2024021472A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • G06F16/972Access to data in other repository systems, e.g. legacy data or dynamic Web page generation
    • 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/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9558Details of hyperlinks; Management of linked annotations

Definitions

  • the present application relates to the field of computer technology, and in particular to an interface information processing method and device.
  • the acceleration platform When the acceleration platform processes user requests, it obtains interface information based on the distribution logic corresponding to the user requests.
  • the interface information may contain some external link resources that need to be requested again.
  • Embodiments of the present application provide an interface information processing method and device to improve the efficiency of obtaining external link resources and quickly respond to user requests.
  • inventions of the present application provide an interface information processing method, which is applied to an edge gateway in an acceleration platform.
  • the method includes:
  • the information processing device determines the first information based on alternative external link resources.
  • Corresponding external link resources and send the determined external link resources to the edge gateway; wherein the candidate external link resources include external link resources obtained by the information processing device from the external link device based on the historical first information. ;
  • the first information in the interface information is replaced with the corresponding external link resource, including:
  • determining whether the first information matches the corresponding external link resource includes:
  • the external link resource contains key information corresponding to the type of the first information; and the type of the external link resource is the same as the type of the first information, then the first information and the corresponding external link resource match; otherwise, it is determined that the first information does not match the corresponding external link resource.
  • embodiments of the present application provide another interface information processing method, which is applied to the information processing equipment in the acceleration platform.
  • the method includes:
  • the candidate external link resources include the information processing device selecting external links based on the historical first information.
  • External link resources obtained from the device;
  • External link resources update alternative external link resources based on the acquired external link resources, and send the external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that the edge gateway Replace the first information in the interface information with the corresponding external link resource.
  • the method before sending the external link resources corresponding to the first information in the alternative external link resources to the edge gateway, the method further includes:
  • the expiration time limit of the external link resource is determined in the following manner:
  • the time corresponding to the validity period after the time when the external link resource is received is determined as the expiration time limit of the external link resource.
  • inventions of the present application provide an interface information processing device, which is applied to an edge gateway in an acceleration platform.
  • the device includes:
  • An information determination module configured to determine whether the interface information corresponding to the user request contains first information representing an external link after receiving a user request sent by the user terminal;
  • a first sending module configured to send the first information to the information processing device in the acceleration platform when the interface information corresponding to the user request contains first information representing an external link; so that the information After receiving the first information, the processing device determines the external link resources corresponding to the first information based on the alternative external link resources, and sends the determined external link resources to the edge gateway; wherein, the alternative external link resources External link resources include external link resources obtained by the information processing device from the external link device based on historical first information;
  • An information replacement module configured to replace the first information in the interface information with the corresponding external link resource after receiving the external link resource sent by the information processing device, and send the replaced new interface information to The client.
  • inventions of the present application provide another interface information processing device, which is applied to information processing equipment in an acceleration platform.
  • the device includes:
  • a receiving module configured to receive the first information among the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;
  • An external link resource determination module configured to determine, for any first information, whether there are external link resources corresponding to the first information among the candidate external link resources; wherein the candidate external link resources include the information processing device External link resources obtained from external link devices based on historical first information;
  • the second sending module is configured to send the external link resources corresponding to the first information in the candidate external link resources to the external link resources when there are external link resources corresponding to the first information in the candidate external link resources.
  • the edge gateway is also configured to obtain the external link resource corresponding to the first information from the external link device based on the first information when there is no external link resource corresponding to the first information in the candidate external link resource, based on The obtained external link resources update the alternative external link resources, and send the external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that the edge gateway transmits the interface information The first information in the link is replaced with the corresponding external link resource.
  • embodiments of the present application provide an edge gateway in an acceleration platform, including at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, The processor is caused to execute the method described in any one of the above first aspects.
  • embodiments of the present application provide an information processing device in an acceleration platform, including at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor , causing the processor to execute the method described in any one of the above second aspects.
  • embodiments of the present application provide a computer-readable storage medium.
  • a computer program is stored in the computer-readable storage medium.
  • the computer program is executed by a processor, the first aspect or the second aspect is implemented. any of the methods described.
  • Figure 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • Figure 2 is an interactive flow chart of the first interface information processing method provided by the embodiment of the present application.
  • Figure 3 is an interactive flow chart of the second interface information processing method provided by the embodiment of the present application.
  • Figure 4 is an interactive flow chart of the third interface information processing method provided by the embodiment of the present application.
  • Figure 5 is a schematic flow chart of the first interface information processing method provided by the embodiment of the present application.
  • Figure 6 is a schematic flow chart of the second interface information processing method provided by the embodiment of the present application.
  • Figure 7 is a schematic structural diagram of the first interface information processing device provided by the embodiment of the present application.
  • Figure 8 is a schematic structural diagram of a second interface information processing device provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an edge gateway provided by an embodiment of the present application.
  • Figure 10 is a schematic structural diagram of an information processing device provided by an embodiment of the present application.
  • connection should be understood in a broad sense. For example, it can be directly connected, or it can be indirectly connected through an intermediate medium, and it can be two devices. Internal connectivity.
  • connection should be understood in a broad sense. For example, it can be directly connected, or it can be indirectly connected through an intermediate medium, and it can be two devices. Internal connectivity.
  • first and second are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.
  • the acceleration platform When the acceleration platform processes user requests, it obtains interface information based on the distribution logic corresponding to the user requests.
  • the interface information may contain some external link resources that need to be requested again.
  • the acceleration platform modifies the domain name and returns it to the client, and the client initiates multiple external link requests.
  • embodiments of the present application propose an interface information processing method and device.
  • the method is applied to the edge gateway in the acceleration platform.
  • the method includes: after receiving a user request sent by the user end, determining the user request corresponding to the Whether there is first information representing external links in the interface information; if so, the first information is sent to the information processing device in the acceleration platform; so that the information processing device will receive the first information after receiving the first information.
  • the first information is the external link resource obtained from the external link device; after receiving the external link resource sent by the information processing device, replace the first information in the interface information with the corresponding external link resource, and replace the first information with the external link resource.
  • the obtained new interface information is sent to the client.
  • the acceleration platform is equipped with information processing equipment that manages external link resources.
  • the information processing equipment has external link resources (alternative external link resources) obtained from the external link equipment based on the first historical information; the edge gateway is determining After the interface information contains the first information representing the external link, instead of directly requesting the external link resource from the external link device, the first information is sent to the information processing device, and the information processing device determines the first information correspondence based on the alternative external link resource. External link resources, thereby reducing the time to request external link resources from external link devices and improving the efficiency of obtaining external link resources. After receiving the external link resources, the edge gateway replaces the first information in the interface information with the corresponding external link resources, and sends the replaced new interface information to the user to quickly respond to user requests.
  • external link resources alternative external link resources
  • the application scenario includes a client, an edge gateway in an acceleration platform, and an information processing device in the acceleration platform;
  • the edge gateway is configured to, after receiving a user request sent by the client, determine whether the interface information corresponding to the user request contains first information representing an external link; if so, send the first information to the acceleration platform information processing equipment;
  • the information processing device is configured to determine, for any first information, whether there are external link resources corresponding to the first information among the candidate external link resources; wherein the candidate external link resources include the information processing device based on the historical An external link resource obtained from an external link device; if so, send the external link resource corresponding to the first information in the candidate external link resource to the edge gateway; otherwise, based on the first information Obtain the external link resources corresponding to the first information from the external link device, update the candidate external link resources based on the obtained external link resources, and update the external link resources corresponding to the first information in the candidate external link resources. Sent to the edge gateway;
  • the edge gateway is also configured to, after receiving the external link resource sent by the information processing device, replace the first information in the interface information with the corresponding external link resource, and send the replaced new interface information to the external link resource. Describes the client.
  • the information processing device is a device with a specific caching function, such as an ATS (a cache server).
  • ATS a cache server
  • Figure 2 is an interactive flow chart of the first interface information processing method provided by the embodiment of the present application. As shown in Figure 2, it includes the following steps:
  • Step S201 The client sends a user request to the edge gateway.
  • the client when the user needs to obtain interface information, he needs to type the URL corresponding to the interface information to the client, and the client triggers a user request after receiving the URL.
  • Step S202 The edge gateway determines whether the interface information corresponding to the user request contains first information representing an external link.
  • the above user request is a static request or a dynamic request;
  • the information processing device is also preset with interface information for each static request;
  • the user request is a static request, obtain the interface information corresponding to the static request from the information processing device;
  • the above-mentioned interface information may contain first information representing external links. In this case, it is necessary to obtain the external link resources corresponding to the first information, and then modify the above-mentioned interface information before returning it to the user; the interface information may not contain Contains the first information characterizing the external link. At this time, the above interface information can be directly returned to the user end.
  • Step S203 If the interface information corresponding to the user request contains first information representing an external link, the edge gateway sends the first information to the information processing device.
  • this embodiment is provided with information processing equipment for managing external link resources in the acceleration platform.
  • the information processing equipment includes external link resources (alternative external link resources) obtained from the external link equipment based on the first historical information;
  • the edge gateway After determining that the interface information contains the first information representing the external link, the edge gateway does not directly request the external link resource from the external link device, but sends the first information to the information processing device, and the information processing device determines the external link based on the alternative external link resource. External link resources corresponding to the first information.
  • the caching rules of the information processing device and the external link identification rules can be set through the edge gateway.
  • Step S204 For any first information, the information processing device determines whether there are external link resources corresponding to the first information among the candidate external link resources.
  • the candidate external link resources include external link resources obtained by the information processing device from the external link device based on historical first information.
  • the information processing device contains external link resources (alternative external link resources) obtained from the external link device based on the historical first information; after the edge gateway determines that the interface information contains the first information representing the external link, it does not directly Request external link resources from the external link device, but send the first information to the information processing device. If there are external link resources corresponding to the above-mentioned first information among the candidate external link resources, directly select from the candidate external link resources; if If there is no external link resource corresponding to the first information among the candidate external link resources, the external link resource is requested from the external link device, and the candidate external link resource is updated based on the external link resource so that the external link resource can be used subsequently.
  • external link resources alternative external link resources
  • the information processing device will only request external link resources from the external link device when it receives new first information sent by the edge gateway (the same first information has not been received before), and based on the external link Resource update alternative external link resources.
  • step S205 if there is an external link resource corresponding to the first information among the candidate external link resources, step S205 is executed; otherwise, step S206 is executed.
  • Step S205 The information processing device sends the external link resource corresponding to the first information in the candidate external link resource to the edge gateway.
  • Step S206 The information processing device obtains the external link resources corresponding to the first information from the external link device based on the first information, updates the candidate external link resources based on the obtained external link resources, and updates the candidate external links.
  • the external link resources corresponding to the first information in the resources are sent to the edge gateway.
  • Step S207 The edge gateway replaces the first information in the interface information with the corresponding external link resource.
  • the above interface information contains the first information representing external links
  • Step S208 The edge gateway sends the replaced new interface information to the client.
  • the acceleration platform is equipped with information processing equipment that manages external link resources.
  • the information processing equipment has external link resources (alternative external link resources) obtained from the external link equipment based on historical first information; the edge gateway is determining After the interface information contains the first information representing the external link, the external link resource is not directly requested from the external link device, but the first information is sent to the information processing device. If the candidate external link resource has the above-mentioned first information corresponding to External link resources are directly selected from the candidate external link resources; if there is no external link resource corresponding to the above-mentioned first information among the candidate external link resources, the external link resource is requested from the external link device, and the backup device is updated based on the external link resource.
  • the edge gateway After receiving the external link resources, the edge gateway will Replace the information with the corresponding external link resources, and send the replaced new interface information to the user end to quickly respond to user requests.
  • This embodiment does not limit the specific implementation manner in which the edge gateway sends the first information to the information processing device, and the information processing device sends the external link resources to the edge gateway.
  • the edge gateway and the information processing device directly interact with each other; or, The edge gateway interacts with information processing equipment through domain name equipment.
  • Figure 3 is an interactive flow chart of the second interface information processing method provided by the embodiment of the present application. As shown in Figure 3, it includes the following steps:
  • Step S301 The client sends a user request to the edge gateway.
  • Step S302 The edge gateway determines whether the interface information corresponding to the user request contains first information representing an external link.
  • Step S303 If the interface information corresponding to the user request contains first information representing an external link, the edge gateway sends the first information to the information processing device.
  • Step S304 For any first information, the information processing device determines whether there are external link resources corresponding to the first information among the candidate external link resources.
  • step S305 If there are external link resources corresponding to the first information among the candidate external link resources, step S305 is executed; otherwise, step S306 is executed.
  • Step S305 The information processing device sends the external link resource corresponding to the first information in the candidate external link resource to the edge gateway.
  • Step S306 The information processing device obtains the external link resources corresponding to the first information from the external link device based on the first information, updates the candidate external link resources based on the obtained external link resources, and updates the updated candidate external links.
  • the external link resources corresponding to the first information in the resources are sent to the edge gateway.
  • steps S305-S306 may refer to the above embodiment, and will not be described again here.
  • Step S307 For any first information, if the edge gateway determines that the first information matches the corresponding external link resource, replace the first information with the corresponding external link resource.
  • the edge gateway may receive incorrect external link resources.
  • security testing of external link resources can be performed.
  • the external link resource fails the security test and the first information in the interface information is retained (without replacement).
  • the external link resource contains key information corresponding to the type of the first information; and the type of the external link resource is the same as the type of the first information, then the first information and the corresponding external link resource match; otherwise, it is determined that the first information does not match the corresponding external link resource.
  • first information will appear in the interface information.
  • the type of each first information is the same as the type of the corresponding external link resource, and the external link resource will contain key information corresponding to the type of first information. .
  • the external link resource passes the security test, and the first information is replaced with the corresponding external link resource.
  • the security of external link resources can be accurately detected.
  • Step S308 The edge gateway sends the replaced new interface information to the client.
  • step S308 may refer to the above embodiment, and will not be described again here.
  • the above solution adds a process of security detection of external link resources. If the first information matches the corresponding external link resource and the external link resource passes the security detection, the first information is replaced with the corresponding external link resource, and the return to the external link resource is improved.
  • the security of user interface information If the first information matches the corresponding external link resource and the external link resource passes the security detection, the first information is replaced with the corresponding external link resource, and the return to the external link resource is improved.
  • Figure 4 is an interactive flow chart of the third interface information processing method provided by the embodiment of the present application. As shown in Figure 4, it includes the following steps:
  • Step S401 The client sends a user request to the edge gateway.
  • Step S402 The edge gateway determines whether the interface information corresponding to the user request contains first information representing an external link.
  • Step S403 If the interface information corresponding to the user request contains first information representing an external link, the edge gateway sends the first information to the information processing device.
  • Step S404 For any first information, the information processing device determines whether there are external link resources corresponding to the first information among the candidate external link resources.
  • step S405 If there are external link resources corresponding to the first information among the candidate external link resources, step S405 is executed; otherwise, step S406 is executed.
  • steps S401-S404 may refer to the above embodiment, and will not be described again here.
  • Step S405 If the information processing device determines that the current time is earlier than the expiration time limit of the external link resource corresponding to the first information in the candidate external link resource, then the information processing device sends the external link resource to the edge gateway.
  • the external link equipment will update the external link resources. Some external link resources are updated more frequently, and some external link resources are updated less frequently. Therefore, the external link resources will have an expiration time limit. After the expiration time limit, the external link resource is Invalid resource.
  • this embodiment determines that the current time is earlier than the expiration time limit of the external link resource corresponding to the first information in the candidate external link resource, and then sends the external link resource to the edge gateway, ensuring the timeliness of the external link resource. ;
  • the external link resource needs to be reacquired from the external link device and the candidate external link resource needs to be updated.
  • the expiration time limit of the external link resource is determined in the following manner:
  • the time corresponding to the validity period after the time when the external link resource is received is determined as the expiration time limit of the external link resource.
  • the update frequencies of external link resources of the same type are relatively close.
  • this embodiment sets a corresponding relationship between the type and validity period of each external link resource, thereby determining each external link in the candidate external link resources.
  • the validity period of the resource starts when the external link resource is obtained from the external link device and expires after the validity period. That is, the expiration time limit of the external link resource is the moment corresponding to the validity period after the time when the information processing device receives the external link resource. .
  • Step S406 The information processing device obtains the external link resources corresponding to the first information from the external link device based on the first information, updates the candidate external link resources based on the obtained external link resources, and updates the candidate external links.
  • the external link resources corresponding to the first information in the resources are sent to the edge gateway.
  • Step S407 The edge gateway replaces the first information in the interface information with the corresponding external link resource.
  • Step S408 The edge gateway sends the replaced new interface information to the client.
  • steps S406-S408 may refer to the above embodiment, and will not be described again here.
  • the external link resources in the external link resources will have an expiration time limit. If the expiration time limit is exceeded, the external link resource will be an invalid resource; by determining that the current time is earlier than the alternative external link After the expiration time limit of the external link resource corresponding to the first information in the resource, the external link resource is sent to the edge gateway, ensuring the timeliness of the external link resource.
  • the information processing device is also provided with granular information of each first information. After receiving the first information, it is determined based on the granular information whether there is the same historical first information, that is, alternative external link resources. Whether there are external link resources corresponding to the first information.
  • the interface information processing method executed by the edge gateway is shown in Figure 5, including the following steps:
  • Step S501 After receiving a user request sent by the client, determine whether the interface information corresponding to the user request contains first information representing an external link;
  • Step S502 If yes, send the first information to the information processing device in the acceleration platform; so that after receiving the first information, the information processing device determines the information based on the alternative external link resources. External link resources corresponding to the first information, and the determined external link resources are sent to the edge gateway; wherein the candidate external link resources include the information processing device obtained from the external link device based on the historical first information. External link resources;
  • Step S503 After receiving the external link resources sent by the information processing device, replace the first information in the interface information with the corresponding external link resources, and send the replaced new interface information to the user end.
  • the first information in the interface information is replaced with the corresponding external link resource, including:
  • determining whether the first information matches the corresponding external link resource includes:
  • the external link resource contains key information corresponding to the type of the first information; and the type of the external link resource is the same as the type of the first information, then the first information and the corresponding external link resource match; otherwise, it is determined that the first information does not match the corresponding external link resource.
  • Step S601 Receive the first information in the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;
  • Step S602 For any first information, determine whether there are external link resources corresponding to the first information among the candidate external link resources; wherein the candidate external link resources include the information processing device based on the historical first information External link resources obtained from external link devices;
  • Step S603 If yes, send the external link resource corresponding to the first information in the candidate external link resource to the edge gateway; otherwise, obtain the first external link device from the external link device based on the first information.
  • External link resources corresponding to the information update alternative external link resources based on the obtained external link resources, and send external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that all The edge gateway replaces the first information in the interface information with the corresponding external link resource.
  • the method before sending the external link resources corresponding to the first information in the alternative external link resources to the edge gateway, the method further includes:
  • the expiration time limit of the external link resource is determined in the following manner:
  • the time corresponding to the validity period after the time when the external link resource is received is determined as the expiration time limit of the external link resource.
  • the embodiment of the present application provides a first interface information processing device 700, which is applied to the edge gateway in the acceleration platform.
  • the device includes:
  • the information determination module 701 is configured to, after receiving a user request sent by the client, determine whether the interface information corresponding to the user request contains first information representing an external link;
  • the first sending module 702 is configured to send the first information to the information processing device in the acceleration platform when the interface information corresponding to the user request contains first information representing external links; so that the After receiving the first information, the information processing device determines the external link resources corresponding to the first information based on the candidate external link resources, and sends the determined external link resources to the edge gateway; wherein, the backup
  • the selected external link resources include external link resources obtained by the information processing device from the external link device based on historical first information;
  • the information replacement module 703 is configured to, after receiving the external link resources sent by the information processing device, replace the first information in the interface information with the corresponding external link resources, and send the replaced new interface information. to the client.
  • the information replacement module 703 is specifically used to:
  • the information replacement module 703 is specifically used to:
  • the external link resource contains key information corresponding to the type of the first information; and the type of the external link resource is the same as the type of the first information, then the first information and the corresponding external link resource match; otherwise, it is determined that the first information does not match the corresponding external link resource.
  • the embodiment of the present application provides a second interface information processing device 800, which is applied to information processing equipment, including:
  • the receiving module 801 is configured to receive the first information among the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;
  • the external link resource determination module 802 is used to determine, for any first information, whether there are external link resources corresponding to the first information among the candidate external link resources; wherein the candidate external link resources include the information processing
  • the device obtains external link resources from the external link device based on the historical first information;
  • the second sending module 803 is configured to send the external link resources corresponding to the first information in the candidate external link resources to the external link resources when there are external link resources corresponding to the first information in the candidate external link resources.
  • the edge gateway is also configured to obtain the external link resource corresponding to the first information from the external link device based on the first information when there is no external link resource corresponding to the first information in the candidate external link resource, Update the alternative external link resources based on the acquired external link resources, and send the external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that the edge gateway will send the interface to the edge gateway.
  • the first information in the information is replaced with the corresponding external link resource.
  • the second sending module 803 before sending the external link resources corresponding to the first information in the alternative external link resources to the edge gateway, the second sending module 803 is also used to:
  • the second sending module 803 is also configured to determine the expiration time limit of the external link resource in the following manner:
  • the time corresponding to the validity period after the time when the external link resource is received is determined as the expiration time limit of the external link resource.
  • the embodiment of the present application also provides an edge gateway 900, as shown in Figure 9, including at least one processor 901, and a memory 902 connected to the at least one processor.
  • an edge gateway 900 including at least one processor 901, and a memory 902 connected to the at least one processor.
  • the processor 901 and the memory 902 are connected through the bus 903 in FIG. 9 as an example.
  • the bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 9, but it does not mean that there is only one bus or one type of bus.
  • the processor 901 is the control center of the edge gateway. It can use various interfaces and lines to connect various parts of the edge gateway, and implement data by running or executing instructions stored in the memory 902 and calling data stored in the memory 902. deal with.
  • the processor 901 may include one or more processing units.
  • the processor 901 may integrate an application processor and a modem processor.
  • the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor
  • the debugging processor mainly handles issuing instructions. It can be understood that the above modem processor may not be integrated into the processor 901.
  • the processor 901 and the memory 902 can be implemented on the same chip, and in some embodiments, they can also be implemented on separate chips.
  • the processor 901 may be a general processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array or other programmable logic devices, discrete gates or transistors Logic devices and discrete hardware components can implement or execute the methods, steps and logical block diagrams disclosed in the embodiments of this application.
  • a general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the interface information processing method embodiment can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory 902 can be used to store non-volatile software programs, non-volatile computer executable programs and modules.
  • the memory 902 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, or a random access memory (Random Access Memory).
  • Memory RAM
  • static random access memory Static Random Access Memory (SRAM)
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • EEPROM Electrically Erasable Programmable Read Only Memory
  • magnetic memory magnetic disks, optical disks, etc.
  • Memory 902 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the memory 902 in the embodiment of the present application can also be a circuit or any other device capable of realizing a storage function, used to store program instructions and/or data.
  • the memory 902 stores a computer program.
  • the program When the program is executed by the processor 901, it causes the processor 901 to execute:
  • the information processing device determines the first information based on alternative external link resources.
  • Corresponding external link resources and send the determined external link resources to the edge gateway; wherein the candidate external link resources include external link resources obtained by the information processing device from the external link device based on the historical first information. ;
  • the processor 901 specifically executes:
  • the processor 901 specifically executes:
  • the external link resource contains key information corresponding to the type of the first information; and the type of the external link resource is the same as the type of the first information, then the first information and the corresponding external link resource match; otherwise, it is determined that the first information does not match the corresponding external link resource.
  • the edge gateway is the edge gateway in the method in the embodiment of the present application, and the principle of solving the problem by the edge gateway is similar to that of the method, the implementation of the edge gateway can be referred to the implementation of the method, and repeated details will not be repeated.
  • the embodiment of the present application also provides an information processing device 1000, as shown in Figure 10, including at least one processor 1001 and a memory 1002 connected to the at least one processor.
  • the specific connection medium between the processor 1001 and the memory 1002 is defined.
  • the processor 1001 and the memory 1002 are connected through the bus 1003 as an example.
  • the bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 10, but it does not mean that there is only one bus or one type of bus.
  • the processor 1001 is the control center of the information processing equipment. It can use various interfaces and lines to connect various parts of the information processing equipment, by running or executing instructions stored in the memory 1002 and calling data stored in the memory 1002, thereby Implement data processing.
  • the processor 1001 may include one or more processing units.
  • the processor 1001 may integrate an application processor and a modem processor.
  • the application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor
  • the debugging processor mainly handles issuing instructions. It can be understood that the above modem processor may not be integrated into the processor 1001.
  • the processor 1001 and the memory 1002 can be implemented on the same chip, and in some embodiments, they can also be implemented on separate chips.
  • Processor 1001 may be a general processor, such as a central processing unit, 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, or a discrete hardware component that may implement or execute Each method, step and logical block diagram disclosed in the embodiment of this application.
  • a general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the interface information processing method embodiment can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
  • the memory 1002 can be used to store non-volatile software programs, non-volatile computer executable programs and modules.
  • the memory 1002 may include at least one type of storage medium, for example, may include flash memory, hard disk, multimedia card, card-type memory, random access memory, static random access memory, programmable read-only memory, read-only memory, power-erasable removable memory.
  • Memory 1002 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer.
  • the memory 1002 in the embodiment of the present application can also be a circuit or any other device capable of realizing a storage function, used to store program instructions and/or data.
  • the memory 1002 stores a computer program.
  • the program When the program is executed by the processor 1001, it causes the processor 1001 to execute:
  • the candidate external link resources include the information processing device selecting external links based on the historical first information.
  • External link resources obtained from the device;
  • External link resources update alternative external link resources based on the obtained external link resources, and send the external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that the edge gateway Replace the first information in the interface information with the corresponding external link resource.
  • the processor 901 before sending the external link resources corresponding to the first information in the alternative external link resources to the edge gateway, the processor 901 also executes:
  • the processor 901 also executes:
  • the time corresponding to the validity period after the time when the external link resource is received is determined as the expiration time limit of the external link resource.
  • the information processing device is the information processing device in the method in the embodiment of the present application, and the principle of solving problems by the information processing device is similar to that of the method, the implementation of the information processing device can be referred to the implementation of the method. Repeated points No longer.
  • embodiments of the present application also provide a computer-readable storage medium that stores a computer program.
  • the computer program is executed by a processor, the steps of the above interface information processing method are implemented.
  • embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
  • computer-usable storage media including, but not limited to, disk storage, CD-ROM, optical storage, etc.
  • These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions
  • the device implements the functions specified in a process or processes in the flowchart and/or in a block or blocks in the block diagram.
  • These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device.
  • Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Embodiments of the present application provide an interface information processing method and apparatus. The method is applied to a border gateway in an acceleration platform, and comprises: after a user request sent by a user side is received, determining whether first information representing an external link exists in interface information corresponding to the user request; if yes, sending the first information to an information processing device in the acceleration platform, such that after receiving the first information, the information processing device determines, on the basis of alternative external link resources, an external link resource corresponding to the first information, and sends the determined external link resource to the border gateway, wherein the alternative external link resources comprise external link resources acquired on the basis of historical first information by the information processing device from an external link device; and after the external link resource sent by the information processing device is received, replacing the first information in the interface information with the corresponding external link resource, and sending to the user side new interface information obtained by means of the replacement.

Description

一种界面信息处理方法及装置An interface information processing method and device 技术领域Technical field
本申请涉及计算机技术领域,特别涉及一种界面信息处理方法及装置。The present application relates to the field of computer technology, and in particular to an interface information processing method and device.
背景技术Background technique
加速平台在处理用户请求时,基于用户请求对应的分发逻辑,获取界面信息。界面信息中可能包含一些需要再次请求的外链资源。When the acceleration platform processes user requests, it obtains interface information based on the distribution logic corresponding to the user requests. The interface information may contain some external link resources that need to be requested again.
相关技术中,需要再次向其他设备发起请求,获取外链资源。In related technologies, it is necessary to initiate a request to other devices again to obtain external link resources.
技术问题technical problem
然而,如果外链资源的请求较为频繁,或者外链资源的内容较多时,获取这些资源会消耗大量时间,导致用户请求响应时间较长。However, if requests for external link resources are frequent or the content of external link resources is large, obtaining these resources will consume a lot of time, resulting in a longer response time for user requests.
技术解决方案Technical solutions
本申请实施例提供了一种界面信息处理方法及装置,用以提高获取外链资源的效率,快速响应用户请求。Embodiments of the present application provide an interface information processing method and device to improve the efficiency of obtaining external link resources and quickly respond to user requests.
第一方面,本申请实施例提供了一种界面信息处理方法,应用于加速平台中的边缘网关,该方法包括:In the first aspect, embodiments of the present application provide an interface information processing method, which is applied to an edge gateway in an acceleration platform. The method includes:
在收到用户端发送的用户请求后,确定所述用户请求对应的界面信息中是否有表征外链的第一信息;After receiving the user request sent by the user terminal, determine whether the interface information corresponding to the user request contains first information characterizing the external link;
若是,则将所述第一信息发送给所述加速平台中的信息处理设备;以使所述信息处理设备在收到所述第一信息后,基于备选外链资源确定所述第一信息对应的外链资源,并将确定的外链资源发送给所述边缘网关;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;If so, send the first information to the information processing device in the acceleration platform; so that after receiving the first information, the information processing device determines the first information based on alternative external link resources. Corresponding external link resources, and send the determined external link resources to the edge gateway; wherein the candidate external link resources include external link resources obtained by the information processing device from the external link device based on the historical first information. ;
在收到所述信息处理设备发送的外链资源后,将所述界面信息中的第一信息替换为对应的外链资源,并将替换得到的新的界面信息发送给所述用户端。After receiving the external link resource sent by the information processing device, replace the first information in the interface information with the corresponding external link resource, and send the replaced new interface information to the user terminal.
一些可选的实施方式中,将所述界面信息中的第一信息替换为对应的外链资源,包括:In some optional implementations, the first information in the interface information is replaced with the corresponding external link resource, including:
针对任一第一信息,确定所述第一信息与对应的外链资源是否匹配;For any first information, determine whether the first information matches the corresponding external link resource;
若是,则将所述第一信息替换为对应的外链资源。If so, replace the first information with the corresponding external link resource.
一些可选的实施方式中,确定所述第一信息与对应的外链资源是否匹配,包括:In some optional implementations, determining whether the first information matches the corresponding external link resource includes:
确定所述外链资源是否包含所述第一信息的类型所对应的关键信息;以及确定所述外链资源的类型与所述第一信息的类型是否相同;Determine whether the external link resource contains key information corresponding to the type of the first information; and determine whether the type of the external link resource is the same as the type of the first information;
若所述外链资源包含所述第一信息的类型所对应的关键信息;且所述外链资源的类型与所述第一信息的类型相同,则所述第一信息与对应的外链资源匹配;否则确定所述第一信息与对应的外链资源不匹配。If the external link resource contains key information corresponding to the type of the first information; and the type of the external link resource is the same as the type of the first information, then the first information and the corresponding external link resource match; otherwise, it is determined that the first information does not match the corresponding external link resource.
第二方面,本申请实施例提供了另一种界面信息处理方法,应用于加速平台中的信息处理设备,所述方法包括:In the second aspect, embodiments of the present application provide another interface information processing method, which is applied to the information processing equipment in the acceleration platform. The method includes:
接收所述加速平台中的边缘网关发送的用户请求对应的界面信息中的第一信息;Receive the first information among the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;
针对任一第一信息,确定备选外链资源中是否有所述第一信息对应的外链资源;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;For any first information, determine whether there are external link resources corresponding to the first information among the candidate external link resources; wherein the candidate external link resources include the information processing device selecting external links based on the historical first information. External link resources obtained from the device;
若是,则将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;否则,基于所述第一信息从外链设备中获取所述第一信息对应的外链资源,基于获取的外链资源更新备选外链资源,并将更新后备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;以使所述边缘网关将所述界面信息中第一信息替换为对应的外链资源。If so, send the external link resource corresponding to the first information in the candidate external link resource to the edge gateway; otherwise, obtain the external link resource corresponding to the first information from the external link device based on the first information. External link resources: update alternative external link resources based on the acquired external link resources, and send the external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that the edge gateway Replace the first information in the interface information with the corresponding external link resource.
一些可选的实施方式中,将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关之前,还包括:In some optional implementations, before sending the external link resources corresponding to the first information in the alternative external link resources to the edge gateway, the method further includes:
确定当前时刻早于所述外链资源的失效时限。It is determined that the current time is earlier than the expiration time limit of the external link resource.
一些可选的实施方式中,通过以下方式确定所述外链资源的失效时限:In some optional implementations, the expiration time limit of the external link resource is determined in the following manner:
确定所述外链资源的类型对应的有效时长;Determine the validity period corresponding to the type of the external link resource;
将收到所述外链资源的时刻之后的有效时长对应的时刻,确定为所述外链资源的失效时限。The time corresponding to the validity period after the time when the external link resource is received is determined as the expiration time limit of the external link resource.
第三方面,本申请实施例提供了一种界面信息处理装置,应用于加速平台中的边缘网关,该装置包括:In the third aspect, embodiments of the present application provide an interface information processing device, which is applied to an edge gateway in an acceleration platform. The device includes:
信息确定模块,用于在收到用户端发送的用户请求后,确定所述用户请求对应的界面信息中是否有表征外链的第一信息;An information determination module, configured to determine whether the interface information corresponding to the user request contains first information representing an external link after receiving a user request sent by the user terminal;
第一发送模块,用于在所述用户请求对应的界面信息中有表征外链的第一信息时,将所述第一信息发送给所述加速平台中的信息处理设备;以使所述信息处理设备在收到所述第一信息后,基于备选外链资源确定所述第一信息对应的外链资源,并将确定的外链资源发送给所述边缘网关;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;A first sending module, configured to send the first information to the information processing device in the acceleration platform when the interface information corresponding to the user request contains first information representing an external link; so that the information After receiving the first information, the processing device determines the external link resources corresponding to the first information based on the alternative external link resources, and sends the determined external link resources to the edge gateway; wherein, the alternative external link resources External link resources include external link resources obtained by the information processing device from the external link device based on historical first information;
信息替换模块,用于在收到所述信息处理设备发送的外链资源后,将所述界面信息中的第一信息替换为对应的外链资源,并将替换得到的新的界面信息发送给所述用户端。An information replacement module, configured to replace the first information in the interface information with the corresponding external link resource after receiving the external link resource sent by the information processing device, and send the replaced new interface information to The client.
第四方面,本申请实施例提供了另一种界面信息处理装置,应用于加速平台中的信息处理设备,该装置包括:In the fourth aspect, embodiments of the present application provide another interface information processing device, which is applied to information processing equipment in an acceleration platform. The device includes:
接收模块,用于接收所述加速平台中的边缘网关发送的用户请求对应的界面信息中的第一信息;A receiving module configured to receive the first information among the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;
外链资源确定模块,用于针对任一第一信息,确定备选外链资源中是否有所述第一信息对应的外链资源;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;An external link resource determination module, configured to determine, for any first information, whether there are external link resources corresponding to the first information among the candidate external link resources; wherein the candidate external link resources include the information processing device External link resources obtained from external link devices based on historical first information;
第二发送模块,用于在备选外链资源中有所述第一信息对应的外链资源时,将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;还用于在备选外链资源中没有所述第一信息对应的外链资源时,基于所述第一信息从外链设备中获取所述第一信息对应的外链资源,基于获取的外链资源更新备选外链资源,并将更新后备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;以使所述边缘网关将所述界面信息中第一信息替换为对应的外链资源。The second sending module is configured to send the external link resources corresponding to the first information in the candidate external link resources to the external link resources when there are external link resources corresponding to the first information in the candidate external link resources. The edge gateway is also configured to obtain the external link resource corresponding to the first information from the external link device based on the first information when there is no external link resource corresponding to the first information in the candidate external link resource, based on The obtained external link resources update the alternative external link resources, and send the external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that the edge gateway transmits the interface information The first information in the link is replaced with the corresponding external link resource.
第五方面,本申请实施例提供一种加速平台中的边缘网关,包括至少一个处理器以及至少一个存储器,其中,所述存储器存储有计算机程序,当所述程序被所述处理器执行时,使得所述处理器执行如上述第一方面中任一所述的方法。In a fifth aspect, embodiments of the present application provide an edge gateway in an acceleration platform, including at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, The processor is caused to execute the method described in any one of the above first aspects.
第六方面,本申请实施例提供一种加速平台中的信息处理设备,包括至少一个处理器以及至少一个存储器,其中,所述存储器存储有计算机程序,当所述程序被所述处理器执行时,使得所述处理器执行如上述第二方面中任一所述的方法。In a sixth aspect, embodiments of the present application provide an information processing device in an acceleration platform, including at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor , causing the processor to execute the method described in any one of the above second aspects.
第七方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质内存储有计算机程序,所述计算机程序被处理器执行时,实现如上述第一方面或者第二方面任一所述的方法。In a seventh aspect, embodiments of the present application provide a computer-readable storage medium. A computer program is stored in the computer-readable storage medium. When the computer program is executed by a processor, the first aspect or the second aspect is implemented. any of the methods described.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, a brief introduction will be given below to the drawings needed to be used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings based on these drawings without exerting creative efforts.
图1为本申请实施例提供的一种应用场景示意图;Figure 1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图2为本申请实施例提供的第一种界面信息处理方法的交互流程图;Figure 2 is an interactive flow chart of the first interface information processing method provided by the embodiment of the present application;
图3为本申请实施例提供的第二种界面信息处理方法的交互流程图;Figure 3 is an interactive flow chart of the second interface information processing method provided by the embodiment of the present application;
图4为本申请实施例提供的第三种界面信息处理方法的交互流程图;Figure 4 is an interactive flow chart of the third interface information processing method provided by the embodiment of the present application;
图5为本申请实施例提供的第一种界面信息处理方法的流程示意图;Figure 5 is a schematic flow chart of the first interface information processing method provided by the embodiment of the present application;
图6为本申请实施例提供的第二种界面信息处理方法的流程示意图;Figure 6 is a schematic flow chart of the second interface information processing method provided by the embodiment of the present application;
图7为本申请实施例提供的第一种界面信息处理装置的结构示意图;Figure 7 is a schematic structural diagram of the first interface information processing device provided by the embodiment of the present application;
图8为本申请实施例提供的第二种界面信息处理装置的结构示意图;Figure 8 is a schematic structural diagram of a second interface information processing device provided by an embodiment of the present application;
图9为本申请实施例提供的边缘网关的结构示意图;Figure 9 is a schematic structural diagram of an edge gateway provided by an embodiment of the present application;
图10为本申请实施例提供的信息处理设备的结构示意图。Figure 10 is a schematic structural diagram of an information processing device provided by an embodiment of the present application.
本发明的实施方式Embodiments of the invention
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述,显然,所描述的实施例仅仅是本申请的一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本申请保护的范围。In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described in further detail below in conjunction with the accompanying drawings. Obviously, the described embodiments are only some of the embodiments of the present application, not all of them. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the scope of protection of this application.
在本申请的描述中,需要说明的是,除非另有明确的规定和限定,术语 “连接”应做广义理解,例如,可以是直接相连,也可以通过中间媒介间接相连,可以是两个器件内部的连通。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本申请中的具体含义。In the description of this application, it should be noted that, unless otherwise clearly stated and limited, the term "connection" should be understood in a broad sense. For example, it can be directly connected, or it can be indirectly connected through an intermediate medium, and it can be two devices. Internal connectivity. For those of ordinary skill in the art, the specific meanings of the above terms in this application can be understood according to specific circumstances.
术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。The terms “first” and “second” are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.
加速平台在处理用户请求时,基于用户请求对应的分发逻辑,获取界面信息。界面信息中可能包含一些需要再次请求的外链资源。When the acceleration platform processes user requests, it obtains interface information based on the distribution logic corresponding to the user requests. The interface information may contain some external link resources that need to be requested again.
相关技术中,需要再次向其他设备发起请求,获取外链资源。具体的:加速平台修改域名后返还给用户端,用户端发起多次外链请求。In related technologies, it is necessary to initiate a request to other devices again to obtain external link resources. Specifically: the acceleration platform modifies the domain name and returns it to the client, and the client initiates multiple external link requests.
然而,如果外链资源的请求较为频繁,或者外链资源的内容较多时,获取这些资源会消耗大量时间,导致用户请求响应时间较长。另外,如果修改后域名访问出现问题,则对应的外链资源显示异常,影响界面信息完整性与响应时间。However, if requests for external link resources are frequent or the content of external link resources is large, obtaining these resources will consume a lot of time, resulting in a longer response time for user requests. In addition, if there is a problem with domain name access after modification, the corresponding external link resources will display abnormally, affecting the interface information integrity and response time.
鉴于此,本申请实施例提出一种界面信息处理方法及装置,该方法应用于加速平台中的边缘网关,该方法包括:在收到用户端发送的用户请求后,确定所述用户请求对应的界面信息中是否有表征外链的第一信息;若是,则将所述第一信息发送给所述加速平台中的信息处理设备;以使所述信息处理设备在收到所述第一信息后,基于备选外链资源确定所述第一信息对应的外链资源,并将确定的外链资源发送给所述边缘网关;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;在收到所述信息处理设备发送的外链资源后,将所述界面信息中的第一信息替换为对应的外链资源,并将替换得到的新的界面信息发送给所述用户端。In view of this, embodiments of the present application propose an interface information processing method and device. The method is applied to the edge gateway in the acceleration platform. The method includes: after receiving a user request sent by the user end, determining the user request corresponding to the Whether there is first information representing external links in the interface information; if so, the first information is sent to the information processing device in the acceleration platform; so that the information processing device will receive the first information after receiving the first information. , determine the external link resources corresponding to the first information based on the alternative external link resources, and send the determined external link resources to the edge gateway; wherein the alternative external link resources include the information processing device based on history The first information is the external link resource obtained from the external link device; after receiving the external link resource sent by the information processing device, replace the first information in the interface information with the corresponding external link resource, and replace the first information with the external link resource. The obtained new interface information is sent to the client.
上述方案,加速平台中设置有对外链资源进行管理的信息处理设备,信息处理设备中有基于历史第一信息从外链设备中获取的外链资源(备选外链资源);边缘网关在确定界面信息中有表征外链的第一信息后,不是直接向外链设备请求外链资源,而是将第一信息发送给信息处理设备,信息处理设备基于备选外链资源确定第一信息对应的外链资源,从而减少向外链设备请求外链资源的时间,提高获取外链资源的效率,边缘网关在收到外链资源后,将界面信息中的第一信息替换为对应的外链资源,并将替换得到的新的界面信息发送给用户端,快速响应用户请求。In the above scheme, the acceleration platform is equipped with information processing equipment that manages external link resources. The information processing equipment has external link resources (alternative external link resources) obtained from the external link equipment based on the first historical information; the edge gateway is determining After the interface information contains the first information representing the external link, instead of directly requesting the external link resource from the external link device, the first information is sent to the information processing device, and the information processing device determines the first information correspondence based on the alternative external link resource. External link resources, thereby reducing the time to request external link resources from external link devices and improving the efficiency of obtaining external link resources. After receiving the external link resources, the edge gateway replaces the first information in the interface information with the corresponding external link resources, and sends the replaced new interface information to the user to quickly respond to user requests.
参阅图1所示,为本申请实施例提供的一种应用场景,该应用场景包括用户端、加速平台中的边缘网关以及加速平台中的信息处理设备; Referring to Figure 1, an application scenario is provided according to an embodiment of the present application. The application scenario includes a client, an edge gateway in an acceleration platform, and an information processing device in the acceleration platform;
边缘网关用于在收到用户端发送的用户请求后,确定所述用户请求对应的界面信息中是否有表征外链的第一信息;若是,则将所述第一信息发送给所述加速平台中的信息处理设备;The edge gateway is configured to, after receiving a user request sent by the client, determine whether the interface information corresponding to the user request contains first information representing an external link; if so, send the first information to the acceleration platform information processing equipment;
信息处理设备用于针对任一第一信息,确定备选外链资源中是否有所述第一信息对应的外链资源;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;若是,则将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;否则,基于所述第一信息从外链设备中获取所述第一信息对应的外链资源,基于获取的外链资源更新备选外链资源,并将更新后备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;The information processing device is configured to determine, for any first information, whether there are external link resources corresponding to the first information among the candidate external link resources; wherein the candidate external link resources include the information processing device based on the historical An external link resource obtained from an external link device; if so, send the external link resource corresponding to the first information in the candidate external link resource to the edge gateway; otherwise, based on the first information Obtain the external link resources corresponding to the first information from the external link device, update the candidate external link resources based on the obtained external link resources, and update the external link resources corresponding to the first information in the candidate external link resources. Sent to the edge gateway;
边缘网关还用于在收到所述信息处理设备发送的外链资源后,将所述界面信息中的第一信息替换为对应的外链资源,并将替换得到的新的界面信息发送给所述用户端。The edge gateway is also configured to, after receiving the external link resource sent by the information processing device, replace the first information in the interface information with the corresponding external link resource, and send the replaced new interface information to the external link resource. Describes the client.
本实施例对上述信息处理设备的具体实现方式不做限定,实施中,该信息处理设备为具体缓存功能的设备,如ATS(一种缓存服务器)。This embodiment does not limit the specific implementation of the above information processing device. In implementation, the information processing device is a device with a specific caching function, such as an ATS (a cache server).
上述应用场景只是实现本申请实施例的应用场景的示例,本申请实施例并不限于上述应用场景。The above application scenarios are only examples of application scenarios for implementing the embodiments of the present application, and the embodiments of the present application are not limited to the above application scenarios.
下面将结合附图及具体实施例,对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。The technical solution of the present application and how the technical solution of the present application solves the above technical problems will be described in detail below with reference to the accompanying drawings and specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
图2为本申请实施例提供的第一种界面信息处理方法的交互流程图,如图2所示,包括以下步骤:Figure 2 is an interactive flow chart of the first interface information processing method provided by the embodiment of the present application. As shown in Figure 2, it includes the following steps:
步骤S201:用户端向边缘网关发送用户请求。Step S201: The client sends a user request to the edge gateway.
实施中,用户在需要获取界面信息时,需要向用户端键入该界面信息对应的网址,用户端收到网址后触发用户请求。In the implementation, when the user needs to obtain interface information, he needs to type the URL corresponding to the interface information to the client, and the client triggers a user request after receiving the URL.
步骤S202:边缘网关确定所述用户请求对应的界面信息中是否有表征外链的第一信息。Step S202: The edge gateway determines whether the interface information corresponding to the user request contains first information representing an external link.
示例性的,上述用户请求为静态请求或者动态请求;信息处理设备中还预设有各静态请求的界面信息;Illustratively, the above user request is a static request or a dynamic request; the information processing device is also preset with interface information for each static request;
如果用户请求为静态请求,则从信息处理设备中获取该静态请求对应的界面信息; If the user request is a static request, obtain the interface information corresponding to the static request from the information processing device;
如果用户请求为动态请求,则确定从动态请求对应的源设备中获取界面信息。If the user request is a dynamic request, determine to obtain the interface information from the source device corresponding to the dynamic request.
本实施例,上述界面信息中可能包含有表征外链的第一信息,这时需要获取第一信息对应的外链资源,对上述界面信息进行修改后才能返回给用户端;界面信息中可能不包含表征外链的第一信息,这时可直接将上述界面信息返回给用户端。In this embodiment, the above-mentioned interface information may contain first information representing external links. In this case, it is necessary to obtain the external link resources corresponding to the first information, and then modify the above-mentioned interface information before returning it to the user; the interface information may not contain Contains the first information characterizing the external link. At this time, the above interface information can be directly returned to the user end.
步骤S203:若所述用户请求对应的界面信息中有表征外链的第一信息,则边缘网关将所述第一信息发送给信息处理设备。Step S203: If the interface information corresponding to the user request contains first information representing an external link, the edge gateway sends the first information to the information processing device.
实施中,如果界面信息中有较多第一信息,直接向各第一信息对应的外链设备请求外链资源,会消耗大量时间,且在外链设备处理效率较低,或出现故障时,可能还会面临无法获取外链资源的问题。During implementation, if there is a lot of first information in the interface information, directly requesting external link resources from the external link device corresponding to each first information will consume a lot of time, and the processing efficiency of the external link device will be low, or when there is a failure, it may You will also face the problem of being unable to obtain external link resources.
基于此,本实施例在加速平台中设置有对外链资源进行管理的信息处理设备,信息处理设备中有基于历史第一信息从外链设备中获取的外链资源(备选外链资源);Based on this, this embodiment is provided with information processing equipment for managing external link resources in the acceleration platform. The information processing equipment includes external link resources (alternative external link resources) obtained from the external link equipment based on the first historical information;
边缘网关在确定界面信息中有表征外链的第一信息后,不是直接向外链设备请求外链资源,而是将第一信息发送给信息处理设备,信息处理设备基于备选外链资源确定第一信息对应的外链资源。After determining that the interface information contains the first information representing the external link, the edge gateway does not directly request the external link resource from the external link device, but sends the first information to the information processing device, and the information processing device determines the external link based on the alternative external link resource. External link resources corresponding to the first information.
示例性的,可通过边缘网关设置信息处理设备的缓存规则,以及外链识别规则。For example, the caching rules of the information processing device and the external link identification rules can be set through the edge gateway.
步骤S204:信息处理设备针对任一第一信息,确定备选外链资源中是否有所述第一信息对应的外链资源。Step S204: For any first information, the information processing device determines whether there are external link resources corresponding to the first information among the candidate external link resources.
其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源。Wherein, the candidate external link resources include external link resources obtained by the information processing device from the external link device based on historical first information.
实施中,信息处理设备中有基于历史第一信息从外链设备中获取的外链资源(备选外链资源);边缘网关在确定界面信息中有表征外链的第一信息后,不是直接向外链设备请求外链资源,而是将第一信息发送给信息处理设备,如果备选外链资源中有上述第一信息对应的外链资源,直接从备选外链资源中选择;如果备选外链资源中没有上述第一信息对应的外链资源,再从外链设备请求外链资源,并基于该外链资源更新备选外链资源,以便后续使用该外链资源。During implementation, the information processing device contains external link resources (alternative external link resources) obtained from the external link device based on the historical first information; after the edge gateway determines that the interface information contains the first information representing the external link, it does not directly Request external link resources from the external link device, but send the first information to the information processing device. If there are external link resources corresponding to the above-mentioned first information among the candidate external link resources, directly select from the candidate external link resources; if If there is no external link resource corresponding to the first information among the candidate external link resources, the external link resource is requested from the external link device, and the candidate external link resource is updated based on the external link resource so that the external link resource can be used subsequently.
也就是说,信息处理设备只有在收到边缘网关发送的新的第一信息(之前没有收到过相同的第一信息)时,才会从外链设备请求外链资源,并基于该外链资源更新备选外链资源。That is to say, the information processing device will only request external link resources from the external link device when it receives new first information sent by the edge gateway (the same first information has not been received before), and based on the external link Resource update alternative external link resources.
即,如果上述备选外链资源中有所述第一信息对应的外链资源,则执行步骤S205,否则执行步骤S206。That is, if there is an external link resource corresponding to the first information among the candidate external link resources, step S205 is executed; otherwise, step S206 is executed.
步骤S205:信息处理设备将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关。Step S205: The information processing device sends the external link resource corresponding to the first information in the candidate external link resource to the edge gateway.
步骤S206:信息处理设备基于所述第一信息从外链设备中获取所述第一信息对应的外链资源,基于获取的外链资源更新备选外链资源,并将更新后备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关。 Step S206: The information processing device obtains the external link resources corresponding to the first information from the external link device based on the first information, updates the candidate external link resources based on the obtained external link resources, and updates the candidate external links. The external link resources corresponding to the first information in the resources are sent to the edge gateway.
步骤S207:边缘网关将所述界面信息中的第一信息替换为对应的外链资源。Step S207: The edge gateway replaces the first information in the interface information with the corresponding external link resource.
实施中,上述界面信息中包含有表征外链的第一信息时,需要获取第一信息对应的外链资源,将第一信息替换为对应的外链资源,得到用户所需的新的界面信息。During implementation, when the above interface information contains the first information representing external links, it is necessary to obtain the external link resources corresponding to the first information, replace the first information with the corresponding external link resources, and obtain the new interface information required by the user. .
步骤S208:边缘网关将替换得到的新的界面信息发送给所述用户端。Step S208: The edge gateway sends the replaced new interface information to the client.
上述方案,加速平台中设置有对外链资源进行管理的信息处理设备,信息处理设备中有基于历史第一信息从外链设备中获取的外链资源(备选外链资源);边缘网关在确定界面信息中有表征外链的第一信息后,不是直接向外链设备请求外链资源,而是将第一信息发送给信息处理设备,如果备选外链资源中有上述第一信息对应的外链资源,直接从备选外链资源中选择;如果备选外链资源中没有上述第一信息对应的外链资源,再从外链设备请求外链资源,并基于该外链资源更新备选外链资源,以便后续使用该外链资源;从而减少向外链设备请求外链资源的时间,提高获取外链资源的效率,边缘网关在收到外链资源后,将界面信息中的第一信息替换为对应的外链资源,并将替换得到的新的界面信息发送给用户端,快速响应用户请求。In the above scheme, the acceleration platform is equipped with information processing equipment that manages external link resources. The information processing equipment has external link resources (alternative external link resources) obtained from the external link equipment based on historical first information; the edge gateway is determining After the interface information contains the first information representing the external link, the external link resource is not directly requested from the external link device, but the first information is sent to the information processing device. If the candidate external link resource has the above-mentioned first information corresponding to External link resources are directly selected from the candidate external link resources; if there is no external link resource corresponding to the above-mentioned first information among the candidate external link resources, the external link resource is requested from the external link device, and the backup device is updated based on the external link resource. Select external link resources so that they can be used later; thereby reducing the time required to request external link resources from external link devices and improving the efficiency of obtaining external link resources. After receiving the external link resources, the edge gateway will Replace the information with the corresponding external link resources, and send the replaced new interface information to the user end to quickly respond to user requests.
本实施例对边缘网关将第一信息发送给信息处理设备,以及信息处理设备将外链资源发送给边缘网关的具体实现方式不做限定,例如边缘网关与信息处理设备直接进行信息交互;或者,边缘网关通过域名设备与信息处理设备进行信息交互。This embodiment does not limit the specific implementation manner in which the edge gateway sends the first information to the information processing device, and the information processing device sends the external link resources to the edge gateway. For example, the edge gateway and the information processing device directly interact with each other; or, The edge gateway interacts with information processing equipment through domain name equipment.
图3为本申请实施例提供的第二种界面信息处理方法的交互流程图,如图3所示,包括以下步骤:Figure 3 is an interactive flow chart of the second interface information processing method provided by the embodiment of the present application. As shown in Figure 3, it includes the following steps:
步骤S301:用户端向边缘网关发送用户请求。Step S301: The client sends a user request to the edge gateway.
步骤S302:边缘网关确定所述用户请求对应的界面信息中是否有表征外链的第一信息。Step S302: The edge gateway determines whether the interface information corresponding to the user request contains first information representing an external link.
步骤S303:若所述用户请求对应的界面信息中有表征外链的第一信息,则边缘网关将所述第一信息发送给信息处理设备。Step S303: If the interface information corresponding to the user request contains first information representing an external link, the edge gateway sends the first information to the information processing device.
步骤S304:信息处理设备针对任一第一信息,确定备选外链资源中是否有所述第一信息对应的外链资源。Step S304: For any first information, the information processing device determines whether there are external link resources corresponding to the first information among the candidate external link resources.
如果上述备选外链资源中有所述第一信息对应的外链资源,则执行步骤S305,否则执行步骤S306。If there are external link resources corresponding to the first information among the candidate external link resources, step S305 is executed; otherwise, step S306 is executed.
步骤S305:信息处理设备将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关。Step S305: The information processing device sends the external link resource corresponding to the first information in the candidate external link resource to the edge gateway.
步骤S306:信息处理设备基于所述第一信息从外链设备中获取所述第一信息对应的外链资源,基于获取的外链资源更新备选外链资源,并将更新后备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关。Step S306: The information processing device obtains the external link resources corresponding to the first information from the external link device based on the first information, updates the candidate external link resources based on the obtained external link resources, and updates the updated candidate external links. The external link resources corresponding to the first information in the resources are sent to the edge gateway.
该步骤S305-S306的具体实现方式可参照上述实施例,此处不再赘述。The specific implementation of steps S305-S306 may refer to the above embodiment, and will not be described again here.
步骤S307:针对任一第一信息,若边缘网关确定所述第一信息与对应的外链资源匹配,则将所述第一信息替换为对应的外链资源。Step S307: For any first information, if the edge gateway determines that the first information matches the corresponding external link resource, replace the first information with the corresponding external link resource.
实施中,因访问故障等因素,边缘网关有可能收到错误的外链资源,为了提高返回给用户端的界面信息的安全性,可对外链资源进行安全性检测。During implementation, due to factors such as access failures, the edge gateway may receive incorrect external link resources. In order to improve the security of the interface information returned to the user, security testing of external link resources can be performed.
示例性的,如果第一信息与对应的外链资源匹配,该外链资源通过安全性检测,将第一信息替换为对应的外链资源;For example, if the first information matches the corresponding external link resource and the external link resource passes the security test, replace the first information with the corresponding external link resource;
反之,如果第一信息与对应的外链资源不匹配,该外链资源没有通过安全性检测,保留界面信息中的第一信息(不做替换)。On the contrary, if the first information does not match the corresponding external link resource, the external link resource fails the security test and the first information in the interface information is retained (without replacement).
一些可选的实施方式中,通过以下方式确定所述第一信息与对应的外链资源是否匹配:In some optional implementations, it is determined whether the first information matches the corresponding external link resource in the following manner:
确定所述外链资源是否包含所述第一信息的类型所对应的关键信息;以及确定所述外链资源的类型与所述第一信息的类型是否相同;Determine whether the external link resource contains key information corresponding to the type of the first information; and determine whether the type of the external link resource is the same as the type of the first information;
若所述外链资源包含所述第一信息的类型所对应的关键信息;且所述外链资源的类型与所述第一信息的类型相同,则所述第一信息与对应的外链资源匹配;否则确定所述第一信息与对应的外链资源不匹配。If the external link resource contains key information corresponding to the type of the first information; and the type of the external link resource is the same as the type of the first information, then the first information and the corresponding external link resource match; otherwise, it is determined that the first information does not match the corresponding external link resource.
实施中,界面信息中会出现不同类型的第一信息,各第一信息的类型与对应的外链资源的类型是相同的,且外链资源中会包含第一信息的类型所对应的关键信息。During implementation, different types of first information will appear in the interface information. The type of each first information is the same as the type of the corresponding external link resource, and the external link resource will contain key information corresponding to the type of first information. .
基于此,需要确定外链资源是否包含第一信息的类型所对应的关键信息;以及确定外链资源的类型与第一信息的类型是否相同;Based on this, it is necessary to determine whether the external link resource contains key information corresponding to the type of the first information; and determine whether the type of the external link resource is the same as the type of the first information;
如果满足上述两个条件,该外链资源通过安全性检测,将第一信息替换为对应的外链资源。If the above two conditions are met, the external link resource passes the security test, and the first information is replaced with the corresponding external link resource.
基于第一信息的类型,可以精准地对外链资源进行安全性检测。Based on the type of the first information, the security of external link resources can be accurately detected.
步骤S308:边缘网关将替换得到的新的界面信息发送给所述用户端。Step S308: The edge gateway sends the replaced new interface information to the client.
该步骤S308的具体实现方式可参照上述实施例,此处不再赘述。The specific implementation of step S308 may refer to the above embodiment, and will not be described again here.
上述方案,增加对外链资源进行安全性检测的过程,如果第一信息与对应的外链资源匹配,该外链资源通过安全性检测,将第一信息替换为对应的外链资源,提高返回给用户端的界面信息的安全性。The above solution adds a process of security detection of external link resources. If the first information matches the corresponding external link resource and the external link resource passes the security detection, the first information is replaced with the corresponding external link resource, and the return to the external link resource is improved. The security of user interface information.
图4为本申请实施例提供的第三种界面信息处理方法的交互流程图,如图4所示,包括以下步骤:Figure 4 is an interactive flow chart of the third interface information processing method provided by the embodiment of the present application. As shown in Figure 4, it includes the following steps:
步骤S401:用户端向边缘网关发送用户请求。Step S401: The client sends a user request to the edge gateway.
步骤S402:边缘网关确定所述用户请求对应的界面信息中是否有表征外链的第一信息。Step S402: The edge gateway determines whether the interface information corresponding to the user request contains first information representing an external link.
步骤S403:若所述用户请求对应的界面信息中有表征外链的第一信息,则边缘网关将所述第一信息发送给信息处理设备。Step S403: If the interface information corresponding to the user request contains first information representing an external link, the edge gateway sends the first information to the information processing device.
步骤S404:信息处理设备针对任一第一信息,确定备选外链资源中是否有所述第一信息对应的外链资源。Step S404: For any first information, the information processing device determines whether there are external link resources corresponding to the first information among the candidate external link resources.
如果上述备选外链资源中有所述第一信息对应的外链资源,则执行步骤S405,否则执行步骤S406。If there are external link resources corresponding to the first information among the candidate external link resources, step S405 is executed; otherwise, step S406 is executed.
该步骤S401-S404的具体实现方式可参照上述实施例,此处不再赘述。The specific implementation of steps S401-S404 may refer to the above embodiment, and will not be described again here.
步骤S405:信息处理设备若确定当前时刻早于所述备选外链资源中所述第一信息对应的外链资源的失效时限,则将所述外链资源发送给所述边缘网关。Step S405: If the information processing device determines that the current time is earlier than the expiration time limit of the external link resource corresponding to the first information in the candidate external link resource, then the information processing device sends the external link resource to the edge gateway.
实施中,外链设备会对外链资源进行更新,有些外链资源更新频率较高,有些外链资源更新频率较低,因此,外链资源会有失效时限,超过该失效时限该外链资源就是无效资源。During implementation, the external link equipment will update the external link resources. Some external link resources are updated more frequently, and some external link resources are updated less frequently. Therefore, the external link resources will have an expiration time limit. After the expiration time limit, the external link resource is Invalid resource.
基于此,本实施例在确定当前时刻早于备选外链资源中第一信息对应的外链资源的失效时限后,再将该外链资源发送给边缘网关,保证了外链资源的时效性;Based on this, this embodiment determines that the current time is earlier than the expiration time limit of the external link resource corresponding to the first information in the candidate external link resource, and then sends the external link resource to the edge gateway, ensuring the timeliness of the external link resource. ;
反之,如果当前时刻不早于备选外链资源中第一信息对应的外链资源的失效时限,需要从外链设备中重新获取外链资源,并更新备选外链资源。On the contrary, if the current time is not earlier than the expiration time limit of the external link resource corresponding to the first information in the candidate external link resource, the external link resource needs to be reacquired from the external link device and the candidate external link resource needs to be updated.
一些可选的实施方式中,通过以下方式确定所述外链资源的失效时限:In some optional implementations, the expiration time limit of the external link resource is determined in the following manner:
确定所述外链资源的类型对应的有效时长;Determine the validity period corresponding to the type of the external link resource;
将收到所述外链资源的时刻之后的有效时长对应的时刻,确定为所述外链资源的失效时限。The time corresponding to the validity period after the time when the external link resource is received is determined as the expiration time limit of the external link resource.
示例性的,相同类型的外链资源的更新频率较为接近,基于此,本实施例设置有各外链资源的类型与有效时长之间的对应关系,从而确定备选外链资源中各外链资源的有效时长,在从外链设备中获取外链资源开始计时,直到有效时长后过期,即外链资源的失效时限为信息处理设备收到该外链资源的时刻之后的有效时长对应的时刻。For example, the update frequencies of external link resources of the same type are relatively close. Based on this, this embodiment sets a corresponding relationship between the type and validity period of each external link resource, thereby determining each external link in the candidate external link resources. The validity period of the resource starts when the external link resource is obtained from the external link device and expires after the validity period. That is, the expiration time limit of the external link resource is the moment corresponding to the validity period after the time when the information processing device receives the external link resource. .
步骤S406:信息处理设备基于所述第一信息从外链设备中获取所述第一信息对应的外链资源,基于获取的外链资源更新备选外链资源,并将更新后备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关。Step S406: The information processing device obtains the external link resources corresponding to the first information from the external link device based on the first information, updates the candidate external link resources based on the obtained external link resources, and updates the candidate external links. The external link resources corresponding to the first information in the resources are sent to the edge gateway.
步骤S407:边缘网关将所述界面信息中的第一信息替换为对应的外链资源。Step S407: The edge gateway replaces the first information in the interface information with the corresponding external link resource.
步骤S408:边缘网关将替换得到的新的界面信息发送给所述用户端。Step S408: The edge gateway sends the replaced new interface information to the client.
该步骤S406-S408的具体实现方式可参照上述实施例,此处不再赘述。The specific implementation of steps S406-S408 may refer to the above embodiment, and will not be described again here.
上述方案,由于外链设备会对外链资源进行更新,外链资源中的外链资源会有失效时限,超过该失效时限该外链资源就是无效资源;通过在确定当前时刻早于备选外链资源中第一信息对应的外链资源的失效时限后,再将该外链资源发送给边缘网关,保证了外链资源的时效性。In the above scheme, since the external link equipment will update the external link resources, the external link resources in the external link resources will have an expiration time limit. If the expiration time limit is exceeded, the external link resource will be an invalid resource; by determining that the current time is earlier than the alternative external link After the expiration time limit of the external link resource corresponding to the first information in the resource, the external link resource is sent to the edge gateway, ensuring the timeliness of the external link resource.
一些可选的实施方式中,信息处理设备中还设置有各第一信息的粒度信息,在收到第一信息后,基于粒度信息确定是否有相同的历史第一信息,即备选外链资源中是否有该第一信息对应的外链资源。In some optional implementations, the information processing device is also provided with granular information of each first information. After receiving the first information, it is determined based on the granular information whether there is the same historical first information, that is, alternative external link resources. Whether there are external link resources corresponding to the first information.
在本申请实施例中,边缘网关执行的界面信息处理方法如图5所示,包括如下步骤:In the embodiment of this application, the interface information processing method executed by the edge gateway is shown in Figure 5, including the following steps:
步骤S501:在收到用户端发送的用户请求后,确定所述用户请求对应的界面信息中是否有表征外链的第一信息;Step S501: After receiving a user request sent by the client, determine whether the interface information corresponding to the user request contains first information representing an external link;
步骤S502:若是,则将所述第一信息发送给所述加速平台中的信息处理设备;以使所述信息处理设备在收到所述第一信息后,基于备选外链资源确定所述第一信息对应的外链资源,并将确定的外链资源发送给所述边缘网关;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;Step S502: If yes, send the first information to the information processing device in the acceleration platform; so that after receiving the first information, the information processing device determines the information based on the alternative external link resources. External link resources corresponding to the first information, and the determined external link resources are sent to the edge gateway; wherein the candidate external link resources include the information processing device obtained from the external link device based on the historical first information. External link resources;
步骤S503:在收到所述信息处理设备发送的外链资源后,将所述界面信息中的第一信息替换为对应的外链资源,并将替换得到的新的界面信息发送给所述用户端。Step S503: After receiving the external link resources sent by the information processing device, replace the first information in the interface information with the corresponding external link resources, and send the replaced new interface information to the user end.
一些可选的实施方式中,将所述界面信息中的第一信息替换为对应的外链资源,包括:In some optional implementations, the first information in the interface information is replaced with the corresponding external link resource, including:
针对任一第一信息,确定所述第一信息与对应的外链资源是否匹配;For any first information, determine whether the first information matches the corresponding external link resource;
若是,则将所述第一信息替换为对应的外链资源。If so, replace the first information with the corresponding external link resource.
一些可选的实施方式中,确定所述第一信息与对应的外链资源是否匹配,包括:In some optional implementations, determining whether the first information matches the corresponding external link resource includes:
确定所述外链资源是否包含所述第一信息的类型所对应的关键信息;以及确定所述外链资源的类型与所述第一信息的类型是否相同;Determine whether the external link resource contains key information corresponding to the type of the first information; and determine whether the type of the external link resource is the same as the type of the first information;
若所述外链资源包含所述第一信息的类型所对应的关键信息;且所述外链资源的类型与所述第一信息的类型相同,则所述第一信息与对应的外链资源匹配;否则确定所述第一信息与对应的外链资源不匹配。If the external link resource contains key information corresponding to the type of the first information; and the type of the external link resource is the same as the type of the first information, then the first information and the corresponding external link resource match; otherwise, it is determined that the first information does not match the corresponding external link resource.
在本申请实施例中,信息处理设备执行的界面信息处理方法如图6所示,包括如下步骤:In the embodiment of this application, the interface information processing method executed by the information processing device is shown in Figure 6, including the following steps:
步骤S601:接收所述加速平台中的边缘网关发送的用户请求对应的界面信息中的第一信息;Step S601: Receive the first information in the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;
步骤S602:针对任一第一信息,确定备选外链资源中是否有所述第一信息对应的外链资源;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;Step S602: For any first information, determine whether there are external link resources corresponding to the first information among the candidate external link resources; wherein the candidate external link resources include the information processing device based on the historical first information External link resources obtained from external link devices;
步骤S603:若是,则将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;否则,基于所述第一信息从外链设备中获取所述第一信息对应的外链资源,基于获取的外链资源更新备选外链资源,并将更新后备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;以使所述边缘网关将所述界面信息中第一信息替换为对应的外链资源。Step S603: If yes, send the external link resource corresponding to the first information in the candidate external link resource to the edge gateway; otherwise, obtain the first external link device from the external link device based on the first information. External link resources corresponding to the information, update alternative external link resources based on the obtained external link resources, and send external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that all The edge gateway replaces the first information in the interface information with the corresponding external link resource.
一些可选的实施方式中,将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关之前,还包括:In some optional implementations, before sending the external link resources corresponding to the first information in the alternative external link resources to the edge gateway, the method further includes:
确定当前时刻早于所述外链资源的失效时限。It is determined that the current time is earlier than the expiration time limit of the external link resource.
一些可选的实施方式中,通过以下方式确定所述外链资源的失效时限:In some optional implementations, the expiration time limit of the external link resource is determined in the following manner:
确定所述外链资源的类型对应的有效时长;Determine the validity period corresponding to the type of the external link resource;
将收到所述外链资源的时刻之后的有效时长对应的时刻,确定为所述外链资源的失效时限。The time corresponding to the validity period after the time when the external link resource is received is determined as the expiration time limit of the external link resource.
图5~图6实施例的具体实现方式可以参见上述交互方法的实施,重复之处不再赘述。For specific implementation methods of the embodiments shown in Figures 5 and 6, please refer to the implementation of the above interaction method, and repeated details will not be described again.
如图7所示,基于与图5所示的界面信息处理方法相同的发明构思,本申请实施例提供第一种界面信息处理装置700,应用于加速平台中的边缘网关,该装置包括:As shown in Figure 7, based on the same inventive concept as the interface information processing method shown in Figure 5, the embodiment of the present application provides a first interface information processing device 700, which is applied to the edge gateway in the acceleration platform. The device includes:
信息确定模块701,用于在收到用户端发送的用户请求后,确定所述用户请求对应的界面信息中是否有表征外链的第一信息;The information determination module 701 is configured to, after receiving a user request sent by the client, determine whether the interface information corresponding to the user request contains first information representing an external link;
第一发送模块702,用于在所述用户请求对应的界面信息中有表征外链的第一信息时,将所述第一信息发送给所述加速平台中的信息处理设备;以使所述信息处理设备在收到所述第一信息后,基于备选外链资源确定所述第一信息对应的外链资源,并将确定的外链资源发送给所述边缘网关;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;The first sending module 702 is configured to send the first information to the information processing device in the acceleration platform when the interface information corresponding to the user request contains first information representing external links; so that the After receiving the first information, the information processing device determines the external link resources corresponding to the first information based on the candidate external link resources, and sends the determined external link resources to the edge gateway; wherein, the backup The selected external link resources include external link resources obtained by the information processing device from the external link device based on historical first information;
信息替换模块703,用于在收到所述信息处理设备发送的外链资源后,将所述界面信息中的第一信息替换为对应的外链资源,并将替换得到的新的界面信息发送给所述用户端。The information replacement module 703 is configured to, after receiving the external link resources sent by the information processing device, replace the first information in the interface information with the corresponding external link resources, and send the replaced new interface information. to the client.
一些可选的实施方式中,所述信息替换模块703具体用于:In some optional implementations, the information replacement module 703 is specifically used to:
针对任一第一信息,确定所述第一信息与对应的外链资源是否匹配;For any first information, determine whether the first information matches the corresponding external link resource;
若是,则将所述第一信息替换为对应的外链资源。If so, replace the first information with the corresponding external link resource.
一些可选的实施方式中,所述信息替换模块703具体用于:In some optional implementations, the information replacement module 703 is specifically used to:
确定所述外链资源是否包含所述第一信息的类型所对应的关键信息;以及确定所述外链资源的类型与所述第一信息的类型是否相同;Determine whether the external link resource contains key information corresponding to the type of the first information; and determine whether the type of the external link resource is the same as the type of the first information;
若所述外链资源包含所述第一信息的类型所对应的关键信息;且所述外链资源的类型与所述第一信息的类型相同,则所述第一信息与对应的外链资源匹配;否则确定所述第一信息与对应的外链资源不匹配。If the external link resource contains key information corresponding to the type of the first information; and the type of the external link resource is the same as the type of the first information, then the first information and the corresponding external link resource match; otherwise, it is determined that the first information does not match the corresponding external link resource.
如图8所示,基于与图6所示的界面信息处理方法相同的发明构思,本申请实施例提供第二种界面信息处理装置800,应用于信息处理设备,包括:As shown in Figure 8, based on the same inventive concept as the interface information processing method shown in Figure 6, the embodiment of the present application provides a second interface information processing device 800, which is applied to information processing equipment, including:
接收模块801,用于接收所述加速平台中的边缘网关发送的用户请求对应的界面信息中的第一信息;The receiving module 801 is configured to receive the first information among the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;
外链资源确定模块802,用于针对任一第一信息,确定备选外链资源中是否有所述第一信息对应的外链资源;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;The external link resource determination module 802 is used to determine, for any first information, whether there are external link resources corresponding to the first information among the candidate external link resources; wherein the candidate external link resources include the information processing The device obtains external link resources from the external link device based on the historical first information;
第二发送模块803,用于在备选外链资源中有所述第一信息对应的外链资源时,将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;还用于在备选外链资源中没有所述第一信息对应的外链资源时,基于所述第一信息从外链设备中获取所述第一信息对应的外链资源,基于获取的外链资源更新备选外链资源,并将更新后备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;以使所述边缘网关将所述界面信息中第一信息替换为对应的外链资源。The second sending module 803 is configured to send the external link resources corresponding to the first information in the candidate external link resources to the external link resources when there are external link resources corresponding to the first information in the candidate external link resources. The edge gateway is also configured to obtain the external link resource corresponding to the first information from the external link device based on the first information when there is no external link resource corresponding to the first information in the candidate external link resource, Update the alternative external link resources based on the acquired external link resources, and send the external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that the edge gateway will send the interface to the edge gateway. The first information in the information is replaced with the corresponding external link resource.
一些可选的实施方式中,第二发送模块803将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关之前,还用于:In some optional implementations, before sending the external link resources corresponding to the first information in the alternative external link resources to the edge gateway, the second sending module 803 is also used to:
确定当前时刻早于所述外链资源的失效时限。It is determined that the current time is earlier than the expiration time limit of the external link resource.
一些可选的实施方式中,第二发送模块803还用于通过以下方式确定所述外链资源的失效时限:In some optional implementations, the second sending module 803 is also configured to determine the expiration time limit of the external link resource in the following manner:
确定所述外链资源的类型对应的有效时长;Determine the validity period corresponding to the type of the external link resource;
将收到所述外链资源的时刻之后的有效时长对应的时刻,确定为所述外链资源的失效时限。The time corresponding to the validity period after the time when the external link resource is received is determined as the expiration time limit of the external link resource.
图7~图8实施例的具体实现方式可以参见上述交互方法的实施,重复之处不再赘述。For specific implementation methods of the embodiments in Figures 7 to 8, please refer to the implementation of the above interaction method, and repeated details will not be described again.
基于相同的技术构思,本申请实施例还提供了一种边缘网关900,如图9所示,包括至少一个处理器901,以及与至少一个处理器连接的存储器902,本申请实施例中不限定处理器901与存储器902之间的具体连接介质,图9中处理器901和存储器902之间通过总线903连接为例。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Based on the same technical concept, the embodiment of the present application also provides an edge gateway 900, as shown in Figure 9, including at least one processor 901, and a memory 902 connected to the at least one processor. This is not limited in the embodiment of the present application. As for the specific connection medium between the processor 901 and the memory 902, the processor 901 and the memory 902 are connected through the bus 903 in FIG. 9 as an example. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 9, but it does not mean that there is only one bus or one type of bus.
其中,处理器901是边缘网关的控制中心,可以利用各种接口和线路连接边缘网关的各个部分,通过运行或执行存储在存储器902内的指令以及调用存储在存储器902内的数据,从而实现数据处理。可选的,处理器901可包括一个或多个处理单元,处理器901可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理下发指令。可以理解的是,上述调制解调处理器也可以不集成到处理器901中。在一些实施例中,处理器901和存储器902可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。Among them, the processor 901 is the control center of the edge gateway. It can use various interfaces and lines to connect various parts of the edge gateway, and implement data by running or executing instructions stored in the memory 902 and calling data stored in the memory 902. deal with. Optionally, the processor 901 may include one or more processing units. The processor 901 may integrate an application processor and a modem processor. The application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor The debugging processor mainly handles issuing instructions. It can be understood that the above modem processor may not be integrated into the processor 901. In some embodiments, the processor 901 and the memory 902 can be implemented on the same chip, and in some embodiments, they can also be implemented on separate chips.
处理器901可以是通用处理器,例如中央处理器(CPU)、数字信号处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合界面信息处理方法实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。The processor 901 may be a general processor, such as a central processing unit (CPU), a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array or other programmable logic devices, discrete gates or transistors Logic devices and discrete hardware components can implement or execute the methods, steps and logical block diagrams disclosed in the embodiments of this application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the interface information processing method embodiment can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
存储器902作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器902可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器(Random Access Memory,RAM)、静态随机访问存储器(Static Random Access Memory,SRAM)、可编程只读存储器(Programmable Read Only Memory,PROM)、只读存储器(Read Only Memory,ROM)、带电可擦除可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、磁性存储器、磁盘、光盘等等。存储器902是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器902还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。As a non-volatile computer-readable storage medium, the memory 902 can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 902 may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, or a random access memory (Random Access Memory). Memory, RAM), static random access memory (Static Random Access Memory (SRAM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (Electrically Erasable Programmable Read-Only Memory (EEPROM), magnetic memory, magnetic disks, optical disks, etc. Memory 902 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 902 in the embodiment of the present application can also be a circuit or any other device capable of realizing a storage function, used to store program instructions and/or data.
在本申请实施例中,存储器902存储有计算机程序,当该程序被处理器901执行时,使得处理器901执行: In this embodiment of the present application, the memory 902 stores a computer program. When the program is executed by the processor 901, it causes the processor 901 to execute:
在收到用户端发送的用户请求后,确定所述用户请求对应的界面信息中是否有表征外链的第一信息;After receiving the user request sent by the user terminal, determine whether the interface information corresponding to the user request contains first information characterizing the external link;
若是,则将所述第一信息发送给所述加速平台中的信息处理设备;以使所述信息处理设备在收到所述第一信息后,基于备选外链资源确定所述第一信息对应的外链资源,并将确定的外链资源发送给所述边缘网关;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;If so, send the first information to the information processing device in the acceleration platform; so that after receiving the first information, the information processing device determines the first information based on alternative external link resources. Corresponding external link resources, and send the determined external link resources to the edge gateway; wherein the candidate external link resources include external link resources obtained by the information processing device from the external link device based on the historical first information. ;
在收到所述信息处理设备发送的外链资源后,将所述界面信息中的第一信息替换为对应的外链资源,并将替换得到的新的界面信息发送给所述用户端。After receiving the external link resource sent by the information processing device, replace the first information in the interface information with the corresponding external link resource, and send the replaced new interface information to the user terminal.
一些可选的实施方式中,处理器901具体执行:In some optional implementations, the processor 901 specifically executes:
针对任一第一信息,确定所述第一信息与对应的外链资源是否匹配;For any first information, determine whether the first information matches the corresponding external link resource;
若是,则将所述第一信息替换为对应的外链资源。If so, replace the first information with the corresponding external link resource.
一些可选的实施方式中,处理器901具体执行:In some optional implementations, the processor 901 specifically executes:
确定所述外链资源是否包含所述第一信息的类型所对应的关键信息;以及确定所述外链资源的类型与所述第一信息的类型是否相同;Determine whether the external link resource contains key information corresponding to the type of the first information; and determine whether the type of the external link resource is the same as the type of the first information;
若所述外链资源包含所述第一信息的类型所对应的关键信息;且所述外链资源的类型与所述第一信息的类型相同,则所述第一信息与对应的外链资源匹配;否则确定所述第一信息与对应的外链资源不匹配。If the external link resource contains key information corresponding to the type of the first information; and the type of the external link resource is the same as the type of the first information, then the first information and the corresponding external link resource match; otherwise, it is determined that the first information does not match the corresponding external link resource.
由于该边缘网关即是本申请实施例中的方法中的边缘网关,并且该边缘网关解决问题的原理与该方法相似,因此该边缘网关的实施可以参见方法的实施,重复之处不再赘述。Since the edge gateway is the edge gateway in the method in the embodiment of the present application, and the principle of solving the problem by the edge gateway is similar to that of the method, the implementation of the edge gateway can be referred to the implementation of the method, and repeated details will not be repeated.
基于相同的技术构思,本申请实施例还提供了一种信息处理设备1000,如图10所示,包括至少一个处理器1001,以及与至少一个处理器连接的存储器1002,本申请实施例中不限定处理器1001与存储器1002之间的具体连接介质,图10中处理器1001和存储器1002之间通过总线1003连接为例。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。Based on the same technical concept, the embodiment of the present application also provides an information processing device 1000, as shown in Figure 10, including at least one processor 1001 and a memory 1002 connected to the at least one processor. The specific connection medium between the processor 1001 and the memory 1002 is defined. In Figure 10, the processor 1001 and the memory 1002 are connected through the bus 1003 as an example. The bus can be divided into address bus, data bus, control bus, etc. For ease of presentation, only one thick line is used in Figure 10, but it does not mean that there is only one bus or one type of bus.
其中,处理器1001是信息处理设备的控制中心,可以利用各种接口和线路连接信息处理设备的各个部分,通过运行或执行存储在存储器1002内的指令以及调用存储在存储器1002内的数据,从而实现数据处理。可选的,处理器1001可包括一个或多个处理单元,处理器1001可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理下发指令。可以理解的是,上述调制解调处理器也可以不集成到处理器1001中。在一些实施例中,处理器1001和存储器1002可以在同一芯片上实现,在一些实施例中,它们也可以在独立的芯片上分别实现。Among them, the processor 1001 is the control center of the information processing equipment. It can use various interfaces and lines to connect various parts of the information processing equipment, by running or executing instructions stored in the memory 1002 and calling data stored in the memory 1002, thereby Implement data processing. Optionally, the processor 1001 may include one or more processing units. The processor 1001 may integrate an application processor and a modem processor. The application processor mainly processes the operating system, user interface, application programs, etc., and the modem processor The debugging processor mainly handles issuing instructions. It can be understood that the above modem processor may not be integrated into the processor 1001. In some embodiments, the processor 1001 and the memory 1002 can be implemented on the same chip, and in some embodiments, they can also be implemented on separate chips.
处理器1001可以是通用处理器,例如中央处理器、数字信号处理器、专用集成电路、现场可编程门阵列或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件,可以实现或者执行本申请实施例中公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者任何常规的处理器等。结合界面信息处理方法实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。Processor 1001 may be a general processor, such as a central processing unit, 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, or a discrete hardware component that may implement or execute Each method, step and logical block diagram disclosed in the embodiment of this application. A general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the interface information processing method embodiment can be directly implemented by a hardware processor, or executed by a combination of hardware and software modules in the processor.
存储器1002作为一种非易失性计算机可读存储介质,可用于存储非易失性软件程序、非易失性计算机可执行程序以及模块。存储器1002可以包括至少一种类型的存储介质,例如可以包括闪存、硬盘、多媒体卡、卡型存储器、随机访问存储器、静态随机访问存储器、可编程只读存储器、只读存储器、带电可擦除可编程只读存储器、磁性存储器、磁盘、光盘等等。存储器1002是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。本申请实施例中的存储器1002还可以是电路或者其它任意能够实现存储功能的装置,用于存储程序指令和/或数据。As a non-volatile computer-readable storage medium, the memory 1002 can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory 1002 may include at least one type of storage medium, for example, may include flash memory, hard disk, multimedia card, card-type memory, random access memory, static random access memory, programmable read-only memory, read-only memory, power-erasable removable memory. Program ROM, magnetic memory, magnetic disks, CD-ROMs, etc. Memory 1002 is, but is not limited to, any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 1002 in the embodiment of the present application can also be a circuit or any other device capable of realizing a storage function, used to store program instructions and/or data.
在本申请实施例中,存储器1002存储有计算机程序,当该程序被处理器1001执行时,使得处理器1001执行: In this embodiment of the present application, the memory 1002 stores a computer program. When the program is executed by the processor 1001, it causes the processor 1001 to execute:
接收所述加速平台中的边缘网关发送的用户请求对应的界面信息中的第一信息;Receive the first information among the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;
针对任一第一信息,确定备选外链资源中是否有所述第一信息对应的外链资源;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;For any first information, determine whether there are external link resources corresponding to the first information among the candidate external link resources; wherein the candidate external link resources include the information processing device selecting external links based on the historical first information. External link resources obtained from the device;
若是,则将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;否则,基于所述第一信息从外链设备中获取所述第一信息对应的外链资源,基于获取的外链资源更新备选外链资源,并将更新后备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;以使所述边缘网关将所述界面信息中第一信息替换为对应的外链资源。If so, send the external link resource corresponding to the first information in the candidate external link resource to the edge gateway; otherwise, obtain the external link resource corresponding to the first information from the external link device based on the first information. External link resources: update alternative external link resources based on the obtained external link resources, and send the external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that the edge gateway Replace the first information in the interface information with the corresponding external link resource.
一些可选的实施方式中,将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关之前,处理器901还执行:In some optional implementations, before sending the external link resources corresponding to the first information in the alternative external link resources to the edge gateway, the processor 901 also executes:
确定当前时刻早于所述外链资源的失效时限。It is determined that the current time is earlier than the expiration time limit of the external link resource.
一些可选的实施方式中,处理器901还执行:In some optional implementations, the processor 901 also executes:
确定所述外链资源的类型对应的有效时长;Determine the validity period corresponding to the type of the external link resource;
将收到所述外链资源的时刻之后的有效时长对应的时刻,确定为所述外链资源的失效时限。The time corresponding to the validity period after the time when the external link resource is received is determined as the expiration time limit of the external link resource.
由于该信息处理设备即是本申请实施例中的方法中的信息处理设备,并且该信息处理设备解决问题的原理与该方法相似,因此该信息处理设备的实施可以参见方法的实施,重复之处不再赘述。Since the information processing device is the information processing device in the method in the embodiment of the present application, and the principle of solving problems by the information processing device is similar to that of the method, the implementation of the information processing device can be referred to the implementation of the method. Repeated points No longer.
基于相同的技术构思,本申请实施例还提供了一种计算机可读存储介质,其存储有计算机程序,当所述计算机程序被处理器执行时,实现上述界面信息处理方法的步骤。Based on the same technical concept, embodiments of the present application also provide a computer-readable storage medium that stores a computer program. When the computer program is executed by a processor, the steps of the above interface information processing method are implemented.
本领域内的技术人员应明白,本申请的实施例可提供为方法、系统、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will understand that embodiments of the present application may be provided as methods, systems, or computer program products. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
本申请是参照根据本申请的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the present application. It will be understood that each process and/or block in the flowchart illustrations and/or block diagrams, and combinations of processes and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine, such that the instructions executed by the processor of the computer or other programmable data processing device produce a use A device for realizing the functions specified in a process or processes in a flowchart and/or a block or blocks in a block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that causes a computer or other programmable data processing apparatus to operate in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including the instruction means, the instructions The device implements the functions specified in a process or processes in the flowchart and/or in a block or blocks in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device, causing a series of operating steps to be performed on the computer or other programmable device to produce computer-implemented processing, thereby executing on the computer or other programmable device. Instructions provide steps for implementing the functions specified in a process or processes of a flowchart diagram and/or a block or blocks of a block diagram.
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。Although the preferred embodiments of the present application have been described, those skilled in the art will be able to make additional changes and modifications to these embodiments once the basic inventive concepts are apparent. Therefore, it is intended that the appended claims be construed to include the preferred embodiments and all changes and modifications that fall within the scope of this application.
显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。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. In this way, if these modifications and variations of the present application fall within the scope of the claims of the present application and equivalent technologies, the present application is also intended to include these modifications and variations.

Claims (10)

  1. 一种界面信息处理方法,其特征在于,应用于加速平台中的边缘网关,所述方法包括:An interface information processing method, characterized in that it is applied to an edge gateway in an acceleration platform, and the method includes:
    在收到用户端发送的用户请求后,确定所述用户请求对应的界面信息中是否有表征外链的第一信息;After receiving the user request sent by the user terminal, determine whether the interface information corresponding to the user request contains first information characterizing the external link;
    若是,则将所述第一信息发送给所述加速平台中的信息处理设备;以使所述信息处理设备在收到所述第一信息后,基于备选外链资源确定所述第一信息对应的外链资源,并将确定的外链资源发送给所述边缘网关;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;If so, send the first information to the information processing device in the acceleration platform; so that after receiving the first information, the information processing device determines the first information based on alternative external link resources. Corresponding external link resources, and send the determined external link resources to the edge gateway; wherein the candidate external link resources include external link resources obtained by the information processing device from the external link device based on the historical first information. ;
    在收到所述信息处理设备发送的外链资源后,将所述界面信息中的第一信息替换为对应的外链资源,并将替换得到的新的界面信息发送给所述用户端。After receiving the external link resource sent by the information processing device, replace the first information in the interface information with the corresponding external link resource, and send the replaced new interface information to the user terminal.
  2. 根据权利要求1所述的方法,其特征在于,将所述界面信息中的第一信息替换为对应的外链资源,包括:The method according to claim 1, characterized in that replacing the first information in the interface information with corresponding external link resources includes:
    针对任一第一信息,确定所述第一信息与对应的外链资源是否匹配;For any first information, determine whether the first information matches the corresponding external link resource;
    若是,则将所述第一信息替换为对应的外链资源。If so, replace the first information with the corresponding external link resource.
  3. 根据权利要求2所述的方法,其特征在于,确定所述第一信息与对应的外链资源是否匹配,包括:The method according to claim 2, characterized in that determining whether the first information matches the corresponding external link resource includes:
    确定所述外链资源是否包含所述第一信息的类型所对应的关键信息;以及确定所述外链资源的类型与所述第一信息的类型是否相同;Determine whether the external link resource contains key information corresponding to the type of the first information; and determine whether the type of the external link resource is the same as the type of the first information;
    若所述外链资源包含所述第一信息的类型所对应的关键信息;且所述外链资源的类型与所述第一信息的类型相同,则所述第一信息与对应的外链资源匹配;否则确定所述第一信息与对应的外链资源不匹配。If the external link resource contains key information corresponding to the type of the first information; and the type of the external link resource is the same as the type of the first information, then the first information and the corresponding external link resource match; otherwise, it is determined that the first information does not match the corresponding external link resource.
  4. 一种界面信息处理方法,其特征在于,应用于加速平台中的信息处理设备,所述方法包括:An interface information processing method, characterized in that it is applied to information processing equipment in an acceleration platform, and the method includes:
    接收所述加速平台中的边缘网关发送的用户请求对应的界面信息中的第一信息;Receive the first information among the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;
    针对任一第一信息,确定备选外链资源中是否有所述第一信息对应的外链资源;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;For any first information, determine whether there is an external link resource corresponding to the first information among the candidate external link resources; wherein the candidate external link resource includes the information processing device selecting an external link based on the historical first information. External link resources obtained from the device;
    若是,则将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;否则,基于所述第一信息从外链设备中获取所述第一信息对应的外链资源,基于获取的外链资源更新备选外链资源,并将更新后备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;以使所述边缘网关将所述界面信息中第一信息替换为对应的外链资源。If so, send the external link resource corresponding to the first information in the candidate external link resource to the edge gateway; otherwise, obtain the external link resource corresponding to the first information from the external link device based on the first information. External link resources: update alternative external link resources based on the acquired external link resources, and send the external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that the edge gateway Replace the first information in the interface information with the corresponding external link resource.
  5. 根据权利要求4所述的方法,其特征在于,将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关之前,还包括:The method according to claim 4, characterized in that, before sending the external link resources corresponding to the first information in the candidate external link resources to the edge gateway, it further includes:
    确定当前时刻早于所述外链资源的失效时限。It is determined that the current time is earlier than the expiration time limit of the external link resource.
  6. 根据权利要求5所述的方法,其特征在于,通过以下方式确定所述外链资源的失效时限:The method according to claim 5, characterized in that the expiration time limit of the external link resource is determined in the following manner:
    确定所述外链资源的类型对应的有效时长;Determine the validity period corresponding to the type of the external link resource;
    将收到所述外链资源的时刻之后的有效时长对应的时刻,确定为所述外链资源的失效时限。The time corresponding to the validity period after the time when the external link resource is received is determined as the expiration time limit of the external link resource.
  7. 一种界面信息处理装置,其特征在于,应用于加速平台中的边缘网关,该装置包括:An interface information processing device, characterized in that it is applied to an edge gateway in an acceleration platform, and the device includes:
    信息确定模块,用于在收到用户端发送的用户请求后,确定所述用户请求对应的界面信息中是否有表征外链的第一信息;An information determination module, configured to determine whether the interface information corresponding to the user request contains first information representing an external link after receiving a user request sent by the user terminal;
    第一发送模块,用于在所述用户请求对应的界面信息中有表征外链的第一信息时,将所述第一信息发送给所述加速平台中的信息处理设备;以使所述信息处理设备在收到所述第一信息后,基于备选外链资源确定所述第一信息对应的外链资源,并将确定的外链资源发送给所述边缘网关;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;A first sending module, configured to send the first information to the information processing device in the acceleration platform when the interface information corresponding to the user request contains first information representing an external link; so that the information After receiving the first information, the processing device determines the external link resources corresponding to the first information based on the alternative external link resources, and sends the determined external link resources to the edge gateway; wherein, the alternative external link resources External link resources include external link resources obtained by the information processing device from the external link device based on historical first information;
    信息替换模块,用于在收到所述信息处理设备发送的外链资源后,将所述界面信息中的第一信息替换为对应的外链资源,并将替换得到的新的界面信息发送给所述用户端。An information replacement module, configured to replace the first information in the interface information with the corresponding external link resource after receiving the external link resource sent by the information processing device, and send the replaced new interface information to The client.
  8. 一种界面信息处理装置,其特征在于,应用于加速平台中的信息处理设备,该装置包括:An interface information processing device, characterized in that it is applied to information processing equipment in an acceleration platform, and the device includes:
    接收模块,用于接收所述加速平台中的边缘网关发送的用户请求对应的界面信息中的第一信息;A receiving module configured to receive the first information among the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;
    外链资源确定模块,用于针对任一第一信息,确定备选外链资源中是否有所述第一信息对应的外链资源;其中,所述备选外链资源包括所述信息处理设备基于历史第一信息从外链设备中获取的外链资源;An external link resource determination module, configured to determine, for any first information, whether there are external link resources corresponding to the first information among the candidate external link resources; wherein the candidate external link resources include the information processing device External link resources obtained from external link devices based on historical first information;
    第二发送模块,用于在备选外链资源中有所述第一信息对应的外链资源时,将所述备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;还用于在备选外链资源中没有所述第一信息对应的外链资源时,基于所述第一信息从外链设备中获取所述第一信息对应的外链资源,基于获取的外链资源更新备选外链资源,并将更新后备选外链资源中所述第一信息对应的外链资源发送给所述边缘网关;以使所述边缘网关将所述界面信息中第一信息替换为对应的外链资源。The second sending module is configured to send the external link resources corresponding to the first information in the candidate external link resources to the external link resources when there are external link resources corresponding to the first information in the candidate external link resources. The edge gateway is also configured to obtain the external link resource corresponding to the first information from the external link device based on the first information when there is no external link resource corresponding to the first information in the candidate external link resource, based on The obtained external link resources update the alternative external link resources, and send the external link resources corresponding to the first information in the updated alternative external link resources to the edge gateway; so that the edge gateway transmits the interface information The first information in the link is replaced with the corresponding external link resource.
  9. 一种边缘网关,其特征在于,包括至少一个处理器以及至少一个存储器,其中,所述存储器存储有计算机程序,当所述程序被所述处理器执行时,使得所述处理器执行如权利要求1~3中任一所述的方法。An edge gateway, characterized in that it includes at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor executes the claims Any method described in 1 to 3.
  10. 一种信息处理设备,其特征在于,包括至少一个处理器以及至少一个存储器,其中,所述存储器存储有计算机程序,当所述程序被所述处理器执行时,使得所述处理器执行如权利要求4~6中任一所述的方法。An information processing device, characterized in that it includes at least one processor and at least one memory, wherein the memory stores a computer program, and when the program is executed by the processor, the processor executes as claimed in the claim The method described in any one of requirements 4 to 6.
PCT/CN2022/141444 2022-07-29 2022-12-23 Interface information processing method and apparatus WO2024021472A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210905114.5A CN115391703A (en) 2022-07-29 2022-07-29 Interface information processing method and device
CN202210905114.5 2022-07-29

Publications (1)

Publication Number Publication Date
WO2024021472A1 true WO2024021472A1 (en) 2024-02-01

Family

ID=84116114

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/141444 WO2024021472A1 (en) 2022-07-29 2022-12-23 Interface information processing method and apparatus

Country Status (2)

Country Link
CN (1) CN115391703A (en)
WO (1) WO2024021472A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115391703A (en) * 2022-07-29 2022-11-25 天翼云科技有限公司 Interface information processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107056A (en) * 2019-11-22 2020-05-05 睿哲科技股份有限公司 Method and device for calling out-link URL (Uniform resource locator) resource and protocol conversion server
CN113204721A (en) * 2021-05-14 2021-08-03 网宿科技股份有限公司 Request processing method, node and storage medium
WO2021253244A1 (en) * 2020-06-16 2021-12-23 Oppo广东移动通信有限公司 Resource publishing method and apparatus, gateway, cloud platform and computer storage medium
CN114254218A (en) * 2021-12-14 2022-03-29 云盾智慧安全科技有限公司 External link access acceleration method and device and computer storage medium
CN115391703A (en) * 2022-07-29 2022-11-25 天翼云科技有限公司 Interface information processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111107056A (en) * 2019-11-22 2020-05-05 睿哲科技股份有限公司 Method and device for calling out-link URL (Uniform resource locator) resource and protocol conversion server
WO2021253244A1 (en) * 2020-06-16 2021-12-23 Oppo广东移动通信有限公司 Resource publishing method and apparatus, gateway, cloud platform and computer storage medium
CN113204721A (en) * 2021-05-14 2021-08-03 网宿科技股份有限公司 Request processing method, node and storage medium
CN114254218A (en) * 2021-12-14 2022-03-29 云盾智慧安全科技有限公司 External link access acceleration method and device and computer storage medium
CN115391703A (en) * 2022-07-29 2022-11-25 天翼云科技有限公司 Interface information processing method and device

Also Published As

Publication number Publication date
CN115391703A (en) 2022-11-25

Similar Documents

Publication Publication Date Title
US10896102B2 (en) Implementing secure communication in a distributed computing system
CN109684307B (en) Data storage method, device, equipment and storage medium
US10642694B2 (en) Monitoring containers in a distributed computing system
CN111078147B (en) Processing method, device and equipment for cache data and storage medium
WO2020181810A1 (en) Data processing method and apparatus applied to multi-level caching in cluster
US9442715B2 (en) Patch process ensuring high availability of cloud application
US9910881B1 (en) Maintaining versions of control plane data for a network-based service control plane
CN108932249B (en) Method and device for managing file system
US9954958B2 (en) Shared resource management
US11687507B2 (en) Termination of database sessions for planned failover
CN107391033B (en) Data migration method and device, computing equipment and computer storage medium
CN111176584B (en) Data processing method and device based on hybrid memory
WO2024021472A1 (en) Interface information processing method and apparatus
CN111198845A (en) Data migration method, readable storage medium and computing device
WO2019228012A1 (en) Method and apparatus for correcting transaction causal sequence, and electronic device
US20230222092A1 (en) Method of managing storage space based on robust determinations of durations for deleting snapshots
US10678453B2 (en) Method and device for checking false sharing in data block deletion using a mapping pointer and weight bits
WO2018076954A1 (en) Data storage method, apparatus and system
CN114816682A (en) Distributed transaction processing method, system and device
US7664916B2 (en) Global smartcard cache methods and apparatuses
CN111343258A (en) Peer node management method, device, storage medium and electronic equipment
CN108763247B (en) Method and device for processing user request in data migration process
KR102416337B1 (en) Device, method, system and computer readable storage medium for managing blockchain
JP2009176192A (en) Electronic commerce transaction device
JP2005063139A (en) Computer system and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22952903

Country of ref document: EP

Kind code of ref document: A1