An interface information processing method and device

By setting up information processing equipment in the acceleration platform and replacing the external link resources in the interface information with alternative external link resources, the problem of excessively long response time caused by frequent external link resource requests was solved, achieving fast response and complete interface information.

CN115391703BActive Publication Date: 2026-01-06CHINA TELECOM CLOUD TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210905114.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-29
Publication Date
2026-01-06
Estimated Expiration
2042-07-29

AI Technical Summary

Technical Problem

In existing technologies, when external link resources are requested frequently or contain a lot of content, obtaining these resources will consume a lot of time, resulting in long user request response times and affecting the integrity of interface information and response speed.

Method used

Information processing devices are set up in the acceleration platform to manage external link resources. The external link information in the user request is sent to the information processing devices through the edge gateway. The corresponding external link resources are determined using the alternative external link resources and replaced in the interface information, thereby reducing the number of requests to the external link devices directly and improving the efficiency of obtaining external link resources.

Benefits of technology

By reducing the number of direct requests to external devices, the efficiency of acquiring external resources is improved, the response time for user requests is shortened, and the integrity and rapid response of interface information are ensured.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115391703B_ABST
    Figure CN115391703B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide an interface information processing method and device, the method is applied to an edge gateway in an acceleration platform, and the method comprises the following steps: after receiving a user request sent by a user end, determining whether there is first information representing an external link in interface information corresponding to the user request; if yes, sending the first information to an information processing device in the acceleration platform; so that the information processing device determines an external link resource corresponding to the first information based on alternative external link resources after receiving the first information, and sends the determined external link resource to the edge gateway; wherein the alternative external link resources comprise external link resources obtained by the information processing device from an external link device based on historical first information; after receiving the external link resource sent by the information processing device, replacing the first information in the interface information with the corresponding external link resource, and sending the new interface information obtained by the replacement to the user end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a method and apparatus for processing interface information. Background Technology

[0002] When processing user requests, the acceleration platform obtains interface information based on the corresponding distribution logic. This interface information may contain external link resources that need to be requested again.

[0003] In related technologies, it is necessary to make another request to other devices to obtain external link resources.

[0004] However, if requests for external links are frequent or the content of these external links is extensive, acquiring them can consume a significant amount of time, resulting in longer response times for user requests. Summary of the Invention

[0005] This application provides a method and apparatus for processing interface information to improve the efficiency of acquiring external link resources and quickly respond to user requests.

[0006] In a first aspect, embodiments of this application provide an interface information processing method applied to an edge gateway in an acceleration platform, the method comprising:

[0007] After receiving a user request from the user terminal, determine whether the interface information corresponding to the user request contains first information representing an external link;

[0008] If so, the first information is sent to the information processing device in the acceleration platform; so that after receiving the first information, the information processing device determines the external link resource corresponding to the first information based on the candidate external link resources, and sends the determined external link resource to the edge gateway; wherein, the candidate external link resources include the external link resources obtained by the information processing device from the external link device based on the historical first information;

[0009] After receiving the external link resources sent by the information processing device, the first information in the interface information is replaced with the corresponding external link resources, and the new interface information obtained by replacement is sent to the user terminal.

[0010] In some optional implementations, the first information in the interface information is replaced with the corresponding external link resource, including:

[0011] For any given piece of information, determine whether the first piece of information matches the corresponding external link resource;

[0012] If so, the first information will be replaced with the corresponding external link resource.

[0013] In some optional implementations, determining whether the first information matches the corresponding external link resource includes:

[0014] 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.

[0015] 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 matches the corresponding external link resource; otherwise, it is determined that the first information does not match the corresponding external link resource.

[0016] Secondly, embodiments of this application provide another interface information processing method, applied to an information processing device in an acceleration platform, the method comprising:

[0017] Receive the first information from the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;

[0018] For any given 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 resources include external link resources obtained by the information processing device from the external link device based on historical first information;

[0019] If so, the external link resource corresponding to the first information in the candidate external link resources is sent to the edge gateway; otherwise, the external link resource corresponding to the first information is obtained from the external link device based on the first information, the candidate external link resources are updated based on the obtained external link resources, and the external link resource corresponding to the first information in the updated candidate external link resources is sent to the edge gateway; so that the edge gateway replaces the first information in the interface information with the corresponding external link resource.

[0020] In some optional implementations, before sending the external link resource corresponding to the first information in the candidate external link resources to the edge gateway, the method further includes:

[0021] Determine if the current time is earlier than the expiration time of the external link resource.

[0022] In some alternative implementations, the expiration time of the external link resource is determined in the following ways:

[0023] Determine the effective duration corresponding to the type of external link resource;

[0024] The time corresponding to the effective duration after the moment the external link resource is received is determined as the expiration time limit of the external link resource.

[0025] Thirdly, embodiments of this application provide an interface information processing device applied to an edge gateway in an acceleration platform, the device comprising:

[0026] The information determination module is used to determine whether the interface information corresponding to the user request contains first information representing an external link after receiving a user request from the user terminal.

[0027] A first sending module is configured to send the first information representing an external link to an 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 after receiving the first information, the information processing device determines the external link resource corresponding to the first information based on candidate external link resources, and sends the determined external link resource to the edge gateway; wherein, the candidate external link resources include external link resources obtained by the information processing device from external link devices based on historical first information;

[0028] The information replacement module is used 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 new interface information obtained by replacement to the user terminal.

[0029] Fourthly, embodiments of this application provide another interface information processing apparatus, applied to an information processing device in an acceleration platform, the apparatus comprising:

[0030] The receiving module is used to receive the first information in the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;

[0031] The external link resource determination module is used to determine, for any first information, whether there is an external link resource 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;

[0032] The second sending module is configured to send the external link resource corresponding to the first information from the candidate external link resources to the edge gateway when there is an external link resource corresponding to the first information among the candidate external link resources; and 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 among the candidate external link resources, update the candidate external link resources based on the obtained external link resource, and send the external link resource corresponding to the first information among the updated candidate external link resources to the edge gateway; so that the edge gateway replaces the first information in the interface information with the corresponding external link resource.

[0033] Fifthly, embodiments of this 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 that, when executed by the processor, causes the processor to perform any of the methods described in the first aspect above.

[0034] In a sixth aspect, embodiments of this 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 that, when executed by the processor, causes the processor to perform any of the methods described in the second aspect above.

[0035] In a seventh aspect, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the method described in either the first or second aspect above. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1 This is a schematic diagram of an application scenario provided by an embodiment of this application;

[0038] Figure 2 An interactive flowchart of the first interface information processing method provided in the embodiments of this application;

[0039] Figure 3 An interactive flowchart of the second interface information processing method provided in the embodiments of this application;

[0040] Figure 4 An interactive flowchart illustrating the third interface information processing method provided in this application embodiment;

[0041] Figure 5 A flowchart illustrating the first interface information processing method provided in this application embodiment;

[0042] Figure 6 A flowchart illustrating the second interface information processing method provided in this application embodiment;

[0043] Figure 7 This is a schematic diagram of the structure of the first interface information processing device provided in the embodiments of this application;

[0044] Figure 8This is a schematic diagram of the structure of the second interface information processing device provided in the embodiments of this application;

[0045] Figure 9 This is a schematic diagram of the structure of an edge gateway provided in an embodiment of this application;

[0046] Figure 10 This is a schematic diagram of the structure of the information processing device provided in the embodiments of this application. Detailed Implementation

[0047] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments in this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0048] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the term "connection" should be interpreted broadly. For example, it can refer to a direct connection, an indirect connection through an intermediate medium, or a connection within two devices. Those skilled in the art can understand the specific meaning of the above term in this application based on the specific circumstances.

[0049] The terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.

[0050] When processing user requests, the acceleration platform obtains interface information based on the corresponding distribution logic. This interface information may contain external link resources that need to be requested again.

[0051] In related technologies, it is necessary to make further requests to other devices to obtain external link resources. Specifically: after the acceleration platform modifies the domain name and returns it to the user, the user initiates multiple external link requests.

[0052] However, if requests for external links are frequent or the content of these links is extensive, retrieving them can be time-consuming, leading to longer user response times. Furthermore, if access to the modified domain encounters issues, the corresponding external links will display abnormally, affecting the integrity of the interface information and response time.

[0053] In view of this, this application proposes an interface information processing method and apparatus. The method is applied to an edge gateway in an acceleration platform. The method includes: after receiving a user request sent by a user terminal, determining whether there is first information representing an external link in the interface information corresponding to the user request; if so, sending the first information to an information processing device in the acceleration platform; so that after receiving the first information, the information processing device determines the external link resource corresponding to the first information based on candidate external link resources, and sends the determined external link resource to the edge gateway; wherein, the candidate external link resources include external link resources obtained by the information processing device from external link devices based on historical first information; after receiving the external link resource sent by the information processing device, replacing the first information in the interface information with the corresponding external link resource, and sending the new interface information obtained by replacement to the user terminal.

[0054] The above solution accelerates the process by installing an information processing device within the platform to manage external link resources. This device contains external link resources (potential external link resources) acquired from external link devices based on historical first information. When the edge gateway determines that the interface information contains first information representing an external link, it does not directly request external link resources from the external link device. Instead, it sends the first information to the information processing device. The information processing device then determines the external link resource corresponding to the first information based on the potential external link resources, thereby reducing the time spent requesting external link resources from the external link device and improving the efficiency of acquiring external link resources. Upon receiving the external link resource, the edge gateway replaces the first information in the interface information with the corresponding external link resource and sends the new interface information to the user terminal, quickly responding to user requests.

[0055] See Figure 1 As shown, this is an application scenario provided by an embodiment of the present application. The application scenario includes a user terminal, an edge gateway in the acceleration platform, and an information processing device in the acceleration platform.

[0056] The edge gateway is used to determine whether the interface information corresponding to the user request contains first information representing an external link after receiving a user request from the user terminal; if so, it sends the first information to the information processing device in the acceleration platform.

[0057] The information processing device is used to determine, for any given first information, whether there is an external link resource 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 external link devices based on historical first information; if yes, the external link resource corresponding to the first information among the candidate external link resources is sent to the edge gateway; otherwise, the external link resource corresponding to the first information is obtained from the external link device based on the first information, the candidate external link resources are updated based on the obtained external link resources, and the external link resource corresponding to the first information among the updated candidate external link resources is sent to the edge gateway;

[0058] The edge gateway is also used 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 new interface information obtained by replacement to the user terminal.

[0059] This embodiment does not limit the specific implementation of the above-mentioned information processing device. In practice, the information processing device is a device with a specific caching function, such as an ATS (a type of cache server).

[0060] The above application scenarios are merely examples of application scenarios for implementing the embodiments of this application, and the embodiments of this application are not limited to the above application scenarios.

[0061] The technical solution of this application and how it solves the above-mentioned 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.

[0062] Figure 2 The interaction flowchart of the first interface information processing method provided in the embodiments of this application is as follows: Figure 2 As shown, it includes the following steps:

[0063] Step S201: The user sends a user request to the edge gateway.

[0064] In practice, when a user needs to obtain interface information, they need to enter the URL corresponding to that interface information into the user terminal. After receiving the URL, the user terminal triggers a user request.

[0065] Step S202: The edge gateway determines whether the interface information corresponding to the user request contains first information representing an external link.

[0066] For example, the above user request may be a static request or a dynamic request; the information processing device also has preset interface information for each static request;

[0067] If the user request is a static request, the interface information corresponding to the static request is obtained from the information processing device;

[0068] If the user request is a dynamic request, then the interface information will be obtained from the source device corresponding to the dynamic request.

[0069] In this embodiment, the interface information may contain first information representing an external link. In this case, it is necessary to obtain the external link resource corresponding to the first information and modify the interface information before returning it to the user. Alternatively, the interface information may not contain the first information representing an external link. In this case, the interface information can be directly returned to the user.

[0070] 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.

[0071] In practice, if there is a lot of primary information in the interface, directly requesting external resources from the external link devices corresponding to each primary information will consume a lot of time. Furthermore, if the processing efficiency of the external link devices is low or they malfunction, there may be a problem of being unable to obtain external link resources.

[0072] Based on this, this embodiment sets up an information processing device in the acceleration platform to manage external link resources. The information processing device has external link resources (optional external link resources) obtained from the external link device based on historical first information.

[0073] 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. Instead, it sends the first information to the information processing device, which then determines the external link resource corresponding to the first information based on the candidate external link resources.

[0074] For example, caching rules and external link identification rules for information processing devices can be configured through an edge gateway.

[0075] Step S204: For any first piece of information, the information processing device determines whether there is an external link resource corresponding to the first piece of information among the candidate external link resources.

[0076] The alternative external link resources include external link resources obtained by the information processing device from the external link device based on historical first information.

[0077] In practice, the information processing device has external link resources (candidate external link resources) obtained from the external link device based on historical first information. After determining that the interface information contains first information representing an external link, the edge gateway does not directly request external link resources from the external link device, but sends the first information to the information processing device. If there is an external link resource corresponding to the first information among the candidate external link resources, it directly selects one from the candidate external link resources. If there is no external link resource corresponding to the first information among the candidate external link resources, it requests external link resources from the external link device and updates the candidate external link resources based on the external link resources so that the external link resources can be used later.

[0078] In other words, the information processing device will only request external link resources from the external link device and update the candidate external link resources based on the new first information sent by the edge gateway (which has not been received before).

[0079] That is, if the above-mentioned candidate external link resources include the external link resources corresponding to the first information, then step S205 is executed; otherwise, step S206 is executed.

[0080] Step S205: The information processing device sends the external link resource corresponding to the first information in the candidate external link resources to the edge gateway.

[0081] 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 sends the external link resources corresponding to the first information in the updated candidate external link resources to the edge gateway.

[0082] Step S207: The edge gateway replaces the first information in the interface information with the corresponding external link resource.

[0083] In practice, when the interface information contains the first information representing the external link, it is necessary to obtain the external link resource corresponding to the first information, replace the first information with the corresponding external link resource, and obtain the new interface information required by the user.

[0084] Step S208: The edge gateway sends the new interface information obtained from the replacement to the user terminal.

[0085] The above solution accelerates the process by incorporating an information processing device within the platform to manage external link resources. This device contains external link resources (candidate external link resources) acquired from external link devices based on historical first information. When the edge gateway determines that the interface information contains first information representing an external link, it does not directly request the external link resource from the external link device. Instead, it sends the first information to the information processing device. If the candidate external link resources include the external link resource corresponding to the first information, it directly selects one from the candidate resources. If the candidate external link resources do not contain the external link resource corresponding to the first information, it then requests the external link resource from the external link device and updates the candidate external link resources based on this resource for subsequent use. This reduces the time spent requesting external link resources from the external link device and improves the efficiency of acquiring external link resources. After receiving the external link resource, the edge gateway replaces the first information in the interface information with the corresponding external link resource and sends the new interface information to the user terminal, quickly responding to user requests.

[0086] This embodiment does not limit the specific implementation of the edge gateway sending the first information to the information processing device, and the information processing device sending external link resources to the edge gateway. For example, the edge gateway and the information processing device can directly interact with each other; or the edge gateway can interact with the information processing device through the domain name device.

[0087] Figure 3 The interaction flowchart of the second interface information processing method provided in the embodiments of this application is as follows: Figure 3 As shown, it includes the following steps:

[0088] Step S301: The user sends a user request to the edge gateway.

[0089] Step S302: The edge gateway determines whether the interface information corresponding to the user request contains first information representing an external link.

[0090] 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.

[0091] Step S304: For any first piece of information, the information processing device determines whether there is an external link resource corresponding to the first piece of information among the candidate external link resources.

[0092] If any of the candidate external link resources corresponds to the first information, then proceed to step S305; otherwise, proceed to step S306.

[0093] Step S305: The information processing device sends the external link resource corresponding to the first information in the candidate external link resources to the edge gateway.

[0094] 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 sends the external link resources corresponding to the first information in the updated candidate external link resources to the edge gateway.

[0095] The specific implementation of steps S305-S306 can be found in the above embodiments, and will not be repeated here.

[0096] Step S307: For any first information, if the edge gateway determines that the first information matches the corresponding external link resource, then replace the first information with the corresponding external link resource.

[0097] During implementation, edge gateways may receive incorrect external link resources due to factors such as access failures. In order to improve the security of the interface information returned to the user, security checks can be performed on the external link resources.

[0098] For example, if the first information matches the corresponding external link resource, the external link resource passes the security check and the first information is replaced with the corresponding external link resource;

[0099] Conversely, if the first information does not match the corresponding external link resource, the external link resource has not passed the security check, and the first information in the interface information is retained (without being replaced).

[0100] In some optional implementations, the matching of the first information with the corresponding external link resource is determined by the following method:

[0101] 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.

[0102] 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 matches the corresponding external link resource; otherwise, it is determined that the first information does not match the corresponding external link resource.

[0103] 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 the key information corresponding to the type of the first information.

[0104] Based on this, it is necessary to determine whether the external link resource contains the key information corresponding to the type of the first information; and to determine whether the type of the external link resource is the same as the type of the first information.

[0105] If the above two conditions are met, the external link resource will pass the security check, and the first information will be replaced with the corresponding external link resource.

[0106] Based on the type of primary information, security checks on external link resources can be accurately performed.

[0107] Step S308: The edge gateway sends the new interface information obtained from the replacement to the user terminal.

[0108] The specific implementation of step S308 can be found in the above embodiments, and will not be repeated here.

[0109] The above solution adds a process for security detection of external link resources. If the first information matches the corresponding external link resource, the external link resource passes the security detection, and the first information is replaced with the corresponding external link resource, thereby improving the security of the interface information returned to the user.

[0110] Figure 4 The interaction flowchart of the third interface information processing method provided in the embodiments of this application is as follows: Figure 4 As shown, it includes the following steps:

[0111] Step S401: The user sends a user request to the edge gateway.

[0112] Step S402: The edge gateway determines whether the interface information corresponding to the user request contains first information representing an external link.

[0113] 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.

[0114] Step S404: For any first piece of information, the information processing device determines whether there is an external link resource corresponding to the first piece of information among the candidate external link resources.

[0115] If any of the candidate external link resources corresponds to the first information, then proceed to step S405; otherwise, proceed to step S406.

[0116] The specific implementation of steps S401-S404 can be found in the above embodiments, and will not be repeated here.

[0117] 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 resources, then the external link resource is sent to the edge gateway.

[0118] During implementation, the external link device will update the external link resources. Some external link resources are updated more frequently, while others are updated less frequently. Therefore, external link resources have an expiration time limit. Once the expiration time limit is exceeded, the external link resource becomes invalid.

[0119] Based on this, in this embodiment, after determining 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 resources, the external link resource is sent to the edge gateway, thus ensuring the timeliness of the external link resource.

[0120] Conversely, if the current time is not earlier than the expiration time of the external link resource corresponding to the first information in the candidate external link resources, it is necessary to re-obtain the external link resource from the external link device and update the candidate external link resources.

[0121] In some alternative implementations, the expiration time of the external link resource is determined in the following ways:

[0122] Determine the effective duration corresponding to the type of external link resource;

[0123] The time corresponding to the effective duration after the moment the external link resource is received is determined as the expiration time limit of the external link resource.

[0124] For example, external link resources of the same type have similar update frequencies. Based on this, this embodiment sets a correspondence between the type of each external link resource and its validity period, thereby determining the validity period of each external link resource among the candidate external link resources. The timer starts from when the external link resource is obtained from the external link device and expires after the validity period. That is, the expiration time of the external link resource is the time corresponding to the validity period after the information processing device receives the external link resource.

[0125] 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 sends the external link resources corresponding to the first information in the updated candidate external link resources to the edge gateway.

[0126] Step S407: The edge gateway replaces the first information in the interface information with the corresponding external link resource.

[0127] Step S408: The edge gateway sends the new interface information obtained from the replacement to the user terminal.

[0128] The specific implementation of steps S406-S408 can be found in the above embodiments, and will not be repeated here.

[0129] The above solution ensures the timeliness of external resources because external link devices update external link resources, and external link resources have expiration time limits. Once the expiration time limit is exceeded, the external link resource becomes invalid. By determining 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 resources, the external link resource is sent to the edge gateway.

[0130] In some optional implementations, the information processing device is further provided with granularity information for each first piece of information. After receiving the first piece of information, it is determined whether there is the same historical first piece of information based on the granularity information, that is, whether there is an external link resource corresponding to the first piece of information among the candidate external link resources.

[0131] In this embodiment of the application, the interface information processing method performed by the edge gateway is as follows: Figure 5 As shown, it includes the following steps:

[0132] Step S501: After receiving a user request sent by the user terminal, determine whether the interface information corresponding to the user request contains first information representing an external link;

[0133] Step S502: If yes, the first information is sent to the information processing device in the acceleration platform; so that after receiving the first information, the information processing device determines the external link resource corresponding to the first information based on the candidate external link resources, and sends the determined external link resource to the edge gateway; wherein, the candidate external link resources include the external link resources obtained by the information processing device from the external link device based on the historical first information;

[0134] Step S503: 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 new interface information obtained by replacement to the user terminal.

[0135] In some optional implementations, the first information in the interface information is replaced with the corresponding external link resource, including:

[0136] For any given piece of information, determine whether the first piece of information matches the corresponding external link resource;

[0137] If so, the first information will be replaced with the corresponding external link resource.

[0138] In some optional implementations, determining whether the first information matches the corresponding external link resource includes:

[0139] 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.

[0140] 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 matches the corresponding external link resource; otherwise, it is determined that the first information does not match the corresponding external link resource.

[0141] In this embodiment of the application, the interface information processing method executed by the information processing device is as follows: Figure 6As shown, it includes the following steps:

[0142] Step S601: Receive the first information from the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;

[0143] Step S602: 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 resources include external link resources obtained by the information processing device from the external link device based on the historical first information;

[0144] Step S603: If yes, send the external link resource corresponding to the first information in the candidate external link resources 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, update the candidate external link resources based on the obtained external link resources, and send the external link resource corresponding to the first information in the updated candidate external link resources to the edge gateway; so that the edge gateway replaces the first information in the interface information with the corresponding external link resource.

[0145] In some optional implementations, before sending the external link resource corresponding to the first information in the candidate external link resources to the edge gateway, the method further includes:

[0146] Determine if the current time is earlier than the expiration time of the external link resource.

[0147] In some alternative implementations, the expiration time of the external link resource is determined in the following ways:

[0148] Determine the effective duration corresponding to the type of external link resource;

[0149] The time corresponding to the effective duration after the moment the external link resource is received is determined as the expiration time limit of the external link resource.

[0150] Figures 5-6 For details on the specific implementation of the embodiments, please refer to the implementation of the above-described interaction method; repeated details will not be repeated here.

[0151] like Figure 7 As shown, based on and Figure 5 Using the same inventive concept as the interface information processing method shown, this application provides a first interface information processing device 700, applied to an edge gateway in an acceleration platform, the device comprising:

[0152] The information determination module 701 is used 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.

[0153] The first sending module 702 is configured to send the first information representing an external link 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 after receiving the first information, the information processing device determines the external link resource corresponding to the first information based on the candidate external link resources, and sends the determined external link resource 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;

[0154] The information replacement module 703 is used 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 new interface information obtained by replacement to the user terminal.

[0155] In some optional implementations, the information replacement module 703 is specifically used for:

[0156] For any given piece of information, determine whether the first piece of information matches the corresponding external link resource;

[0157] If so, the first information will be replaced with the corresponding external link resource.

[0158] In some optional implementations, the information replacement module 703 is specifically used for:

[0159] 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.

[0160] 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 matches the corresponding external link resource; otherwise, it is determined that the first information does not match the corresponding external link resource.

[0161] like Figure 8 As shown, based on and Figure 6 Using the same inventive concept as the interface information processing method shown, this application provides a second interface information processing device 800, applied to an information processing equipment, including:

[0162] The receiving module 801 is used to receive the first information in the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;

[0163] The external link resource determination module 802 is used to determine, for any first information, whether there is an external link resource 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;

[0164] The second sending module 803 is configured to send the external link resource corresponding to the first information in the candidate external link resources to the edge gateway when there is an external link resource corresponding to the first information in the candidate external link resources; and 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 resources, update the candidate external link resources based on the obtained external link resource, and send the external link resource corresponding to the first information in the updated candidate external link resources to the edge gateway; so that the edge gateway replaces the first information in the interface information with the corresponding external link resource.

[0165] In some optional implementations, before the second sending module 803 sends the external link resource corresponding to the first information in the candidate external link resources to the edge gateway, it is further configured to:

[0166] Determine if the current time is earlier than the expiration time of the external link resource.

[0167] In some optional implementations, the second sending module 803 is further configured to determine the expiration time limit of the external link resource in the following manner:

[0168] Determine the effective duration corresponding to the type of external link resource;

[0169] The time corresponding to the effective duration after the moment the external link resource is received is determined as the expiration time limit of the external link resource.

[0170] Figures 7-8 For details on the specific implementation of the embodiments, please refer to the implementation of the above-described interaction method; repeated details will not be repeated here.

[0171] Based on the same technical concept, this application also provides an edge gateway 900, such as... Figure 9 As shown, it includes at least one processor 901 and a memory 902 connected to at least one processor. In this embodiment, the specific connection medium between the processor 901 and the memory 902 is not limited. Figure 9 Taking the connection between processor 901 and memory 902 via bus 903 as an example, the bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, Figure 9 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0172] The processor 901 serves as the control center of the edge gateway, connecting various parts of the gateway via various interfaces and lines. It performs data processing by running or executing instructions stored in the memory 902 and accessing data stored in the memory 902. 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 primarily handles the operating system, user interface, and applications, while the modem processor primarily handles issuing instructions. It is understood that the modem processor may not be integrated into the processor 901. In some embodiments, the processor 901 and the memory 902 may be implemented on the same chip; in other embodiments, they may be implemented on separate chips.

[0173] The processor 901 can be a general-purpose processor, such as a central processing unit (CPU), digital signal processor, application-specific integrated circuit (ASIC), field-programmable gate array (FPGA), or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the interface information processing method can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0174] Memory 902, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 902 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, 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), magnetic storage, magnetic disk, optical disk, etc. Memory 902 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 902 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0175] In this embodiment, the memory 902 stores a computer program, which, when executed by the processor 901, causes the processor 901 to perform the following:

[0176] After receiving a user request from the user terminal, determine whether the interface information corresponding to the user request contains first information representing an external link;

[0177] If so, the first information is sent to the information processing device in the acceleration platform; so that after receiving the first information, the information processing device determines the external link resource corresponding to the first information based on the candidate external link resources, and sends the determined external link resource to the edge gateway; wherein, the candidate external link resources include the external link resources obtained by the information processing device from the external link device based on the historical first information;

[0178] After receiving the external link resources sent by the information processing device, the first information in the interface information is replaced with the corresponding external link resources, and the new interface information obtained by replacement is sent to the user terminal.

[0179] In some optional implementations, processor 901 specifically performs:

[0180] For any given piece of information, determine whether the first piece of information matches the corresponding external link resource;

[0181] If so, the first information will be replaced with the corresponding external link resource.

[0182] In some optional implementations, processor 901 specifically performs:

[0183] 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.

[0184] 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 matches the corresponding external link resource; otherwise, it is determined that the first information does not match the corresponding external link resource.

[0185] Since the edge gateway is the same as the edge gateway in the method of this application embodiment, and the principle of the edge gateway in solving the problem is similar to that of this method, the implementation of the edge gateway can refer to the implementation of the method, and the repeated parts will not be described again.

[0186] Based on the same technical concept, this application also provides an information processing device 1000, such as... Figure 10 As shown, it includes at least one processor 1001 and a memory 1002 connected to at least one processor. In this embodiment, the specific connection medium between the processor 1001 and the memory 1002 is not limited. Figure 10 Taking the connection between processor 1001 and memory 1002 via bus 1003 as an example. The bus can be divided into address bus, data bus, control bus, etc. For ease of illustration, Figure 10 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0187] The processor 1001 is the control center of the information processing device. It can connect to various parts of the information processing device using various interfaces and lines. It performs data processing by running or executing instructions stored in the memory 1002 and calling data stored in the memory 1002. 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 handles the operating system, user interface, and applications, while the modem processor mainly handles issuing instructions. It is understood that the 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; in some embodiments, they can also be implemented on separate chips.

[0188] The processor 1001 can be a general-purpose processor, such as a central processing unit, digital signal processor, application-specific integrated circuit, field-programmable gate array or other programmable logic device, discrete gate or transistor logic device, or discrete hardware component, capable of implementing or executing the methods, steps, and logic block diagrams disclosed in the embodiments of this application. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of the interface information processing method can be directly manifested as being executed by a hardware processor, or executed by a combination of hardware and software modules within the processor.

[0189] Memory 1002, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. Memory 1002 may include at least one type of storage medium, such as flash memory, hard disk, multimedia card, card-type memory, random access memory, static random access memory, programmable read-only memory, read-only memory, electrically erasable programmable read-only memory, magnetic memory, magnetic disk, optical disk, etc. Memory 1002 can be any other medium capable of carrying or storing desired program code in the form of instructions or data structures that can be accessed by a computer, but is not limited thereto. In the embodiments of this application, memory 1002 can also be a circuit or any other device capable of implementing storage functions for storing program instructions and / or data.

[0190] In this embodiment, the memory 1002 stores a computer program, which, when executed by the processor 1001, causes the processor 1001 to perform the following:

[0191] Receive the first information from the interface information corresponding to the user request sent by the edge gateway in the acceleration platform;

[0192] For any given 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 resources include external link resources obtained by the information processing device from the external link device based on historical first information;

[0193] If so, the external link resource corresponding to the first information in the candidate external link resources is sent to the edge gateway; otherwise, the external link resource corresponding to the first information is obtained from the external link device based on the first information, the candidate external link resources are updated based on the obtained external link resources, and the external link resource corresponding to the first information in the updated candidate external link resources is sent to the edge gateway; so that the edge gateway replaces the first information in the interface information with the corresponding external link resource.

[0194] In some optional implementations, before sending the external link resource corresponding to the first information in the candidate external link resources to the edge gateway, the processor 901 further performs the following:

[0195] Determine if the current time is earlier than the expiration time of the external link resource.

[0196] In some alternative implementations, processor 901 also performs:

[0197] Determine the effective duration corresponding to the type of external link resource;

[0198] The time corresponding to the effective duration after the moment the external link resource is received is determined as the expiration time limit of the external link resource.

[0199] Since the information processing device is the same as the information processing device in the method of this application embodiment, and the principle of the information processing device in solving the problem is similar to that of the method, the implementation of the information processing device can refer to the implementation of the method, and the repeated parts will not be described again.

[0200] Based on the same technical concept, embodiments of this application also provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the steps of the above-described interface information processing method.

[0201] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can 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.) containing computer-usable program code.

[0202] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0203] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0204] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0205] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.

[0206] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.

Claims

1. An interface information processing method characterized by comprising: The method applied to an edge gateway in an acceleration platform, the method comprises: After receiving a user request sent by a user terminal, determining whether there is first information representing an external link in interface information corresponding to the user request; If yes, sending the first information to an information processing device in the acceleration platform; so that the information processing device, after receiving the first information, determines an external link resource corresponding to the first information based on alternative external link resources, and sends the determined external link resource to the edge gateway; wherein the alternative external link resources include external link resources obtained by the information processing device from an external link device based on historical first information; After receiving the external link resource sent by the information processing device, replacing the first information in the interface information with the corresponding external link resource, and sending the new interface information obtained by the replacement to the user terminal; Replacing the first information in the interface information with the corresponding external link resource comprises: For any first information, determining whether the first information matches the corresponding external link resource; If yes, replacing the first information with the corresponding external link resource.

2. The method of claim 1, wherein, Determining whether the first information matches the corresponding external link resource comprises: Determining whether the external link resource contains key information corresponding to the type of the first information; and determining whether the type of the external link resource is the same as the type of the first information; If the external link resource contains the 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, the first information matches the corresponding external link resource; otherwise, it is determined that the first information does not match the corresponding external link resource.

3. An interface information processing method characterized by comprising: The method applied to an information processing device in an acceleration platform, the method comprises: Receiving first information in interface information corresponding to a user request sent by an edge gateway in the acceleration platform; For any first information, determining whether there is an external link resource corresponding to the first information in alternative external link resources; wherein the alternative external link resources include external link resources obtained by the information processing device from an external link device based on historical first information; If yes, sending the external link resource corresponding to the first information in the alternative external link resources to the edge gateway; otherwise, obtaining the external link resource corresponding to the first information from the external link device based on the first information, updating the alternative external link resources based on the obtained external link resource, and sending the external link resource corresponding to the first information in the updated alternative external link resources to the edge gateway; so that the edge gateway performs: for any first information, determining whether the first information matches the corresponding external link resource; if yes, replacing the first information with the corresponding external link resource.

4. The method of claim 3, wherein, Before sending the external link resource corresponding to the first information in the alternative external link resources to the edge gateway, further comprising: Determining that the current time is earlier than the invalidation time limit of the external link resource.

5. The method of claim 4, wherein, The invalidation time limit of the external link resource is determined in the following way: Determining the effective duration corresponding to the type of the external link resource; Determining the time corresponding to the effective duration after the time when the external link resource is received as the invalidation time limit of the external link resource.

6. An interface information processing apparatus characterized by comprising: The device applied to an edge gateway in an acceleration platform, the device comprises: The information determining module is configured to determine whether there is first information representing an external link in interface information corresponding to a user request after receiving the user request sent by the user terminal. The first sending module is configured to send the first information to an information processing device in the acceleration platform when there is first information representing an external link in the interface information corresponding to the user request, so that the information processing device determines an external link resource corresponding to the first information based on alternative external link resources after receiving the first information, and sends the determined external link resource to the edge gateway, wherein the alternative external link resources include external link resources obtained by the information processing device from an external link device based on historical first information. The information replacing module is 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 new interface information obtained by the replacement to the user terminal. The information replacing module is specifically configured to: For any first information, determine whether the first information matches the corresponding external link resource. If yes, replace the first information with the corresponding external link resource.

7. An interface information processing apparatus characterized by comprising: The information processing device applied to the acceleration platform comprises: The receiving module is configured to receive first information in interface information corresponding to a user request sent by an edge gateway in the acceleration platform. The external link resource determining module is configured to determine whether there is an external link resource corresponding to any first information in alternative external link resources, wherein the alternative external link resources include external link resources obtained by the information processing device from an external link device based on historical first information. The second sending module is configured to send the external link resource corresponding to the first information in the alternative external link resources to the edge gateway when there is the external link resource corresponding to the first information in the alternative external link resources, and is further 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 alternative external link resources, update the alternative external link resources based on the obtained external link resource, and send the external link resource corresponding to the first information in the updated alternative external link resources to the edge gateway, so that the edge gateway performs: for any first information, determine whether the first information matches the corresponding external link resource; if yes, replace the first information with the corresponding external link resource.

8. An edge gateway, characterized by The device comprises at least one processor and at least one memory, wherein the memory stores a computer program which, when executed by the processor, causes the processor to perform the method of any one of claims 1-2.

9. An information processing apparatus, characterized by comprising: The device comprises at least one processor and at least one memory, wherein the memory stores a computer program which, when executed by the processor, causes the processor to perform the method of any one of claims 3-5.

Citation Information

Patent Citations

  • Resource description file processing method, page resource obtaining method and intermediate server

    CN109670131A