CN112632424B - Page opening method and electronic equipment - Google Patents

Page opening method and electronic equipment Download PDF

Info

Publication number
CN112632424B
CN112632424B CN202110261623.4A CN202110261623A CN112632424B CN 112632424 B CN112632424 B CN 112632424B CN 202110261623 A CN202110261623 A CN 202110261623A CN 112632424 B CN112632424 B CN 112632424B
Authority
CN
China
Prior art keywords
url link
page
electronic device
start url
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110261623.4A
Other languages
Chinese (zh)
Other versions
CN112632424A (en
Inventor
王国凡
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Shenzhen Zhixin New Information Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zhixin New Information Technology Co ltd filed Critical Shenzhen Zhixin New Information Technology Co ltd
Priority to CN202110261623.4A priority Critical patent/CN112632424B/en
Publication of CN112632424A publication Critical patent/CN112632424A/en
Application granted granted Critical
Publication of CN112632424B publication Critical patent/CN112632424B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9566URL specific, e.g. using aliases, detecting broken or misspelled links
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a page opening method and electronic equipment, and relates to the field of terminals, wherein the page opening method comprises the following steps: when the electronic device opens the target page, the electronic device may obtain the start URL link of the target page. The electronic device can acquire the initial URL link of the non-target page from the history record and determine the level of the target page. Then, the electronic device may query an initial URL link meeting a preset condition from a linked list in which the equal-level page URL links are stored, acquire a parameter value different from the initial URL link of the target page based on the initial URL link, and then replace the parameter value with the target URL link corresponding to the initial URL link to obtain the target URL link of the target page. The electronic device may display a target page based on the target URL link. In this way, the speed of opening the EPG page can be increased.

Description

Page opening method and electronic equipment
Technical Field
The present application relates to the field of terminals, and in particular, to a method for opening a page and an electronic device.
Background
With the development of terminal technology, an electronic device can perform operations of acquiring information, browsing a target page, and the like by accessing a specified page, for example, an Electronic Program Guide (EPG) page, on a specified server (for example, a Web server).
Currently, when an electronic device responds to an operation of opening an EPG page, the electronic device may obtain a start Uniform Resource Locator (URL) link of the EPG page. The electronic device may send a request instruction to the corresponding server based on the start URL link. After receiving the request instruction, the server may perform one, two, or more than two Hyper Text Transfer Protocol (HTTP) jumps (e.g., HTTP302 jumps) based on load balancing, and then send a target URL link of the EPG page to the electronic device. The target URL link includes an Internet Protocol (IP) address of the server with the lighter load. The electronic device may obtain display data of the EPG page based on the target URL link, and may display the EPG page based on the display data.
It can be seen from the above process that when the electronic device opens the EPG page, the server performs one, two or more HTTP jumps to finally obtain the target URL link, which may cause problems of long time consumption and slow speed for opening the page.
Disclosure of Invention
According to the technical scheme, the time consumed by multiple HTTP jumps for opening the EPG page is reduced, and the EPG page opening speed is improved.
The above and other objects are achieved by the features of the independent claims. Further implementations are presented in the dependent claims, the description and the drawings.
In a first aspect, the present application provides a method for opening a page, where the method may include: the electronic device may display a first interface, which may include a first option, the first option corresponding to a first page. The electronic device may receive a first input by a user for the first option. The electronic device may obtain a first start URL link of the first page. When the history of the electronic device includes a second start URL link satisfying a first preset condition, the electronic device may obtain a page rank of the second start URL link from the history. The electronic device may determine a third start URL link satisfying a second preset condition and a first target URL link corresponding to the third start URL link from a page chain table corresponding to the page level of the second start URL link. The electronic device may determine that a value of a first parameter in the first start URL link is different from a value of a first parameter in the third start URL link, where the value of the first parameter in the first start URL link is the first value. The electronic device may modify the value of the first parameter in the first target URL link to the first value to obtain a second target URL link. The electronic device may open and display a second interface based on the second target URL link, the second interface including the first page. Therefore, the time consumed by multiple HTTP jumps for opening the EPG page can be reduced, and the speed for opening the EPG page is increased.
In one possible implementation, the first preset condition may be that the first start URL link has the same number of parameters and the same parameter type.
In one possible implementation, the second preset condition may be that the first start URL link has the same number of parameters and the same parameter type, and the first start URL link has only one parameter with a different value.
In one possible implementation manner, the electronic device may determine, from the history, a third start URL link satisfying a second preset condition and a first target URL link corresponding to the third start URL link. The electronic device determines that the value of the first parameter in the first start URL link is different from the value of the first parameter in the third start URL link, wherein the value of the first parameter in the first start URL link is the first value. And the electronic equipment modifies the value of the first parameter in the first target URL link into the first value to obtain a second target URL link. The electronic device opens and displays a second interface based on the second target URL link, the second interface including the second page.
In a possible implementation manner, before the electronic device displays the first interface, the method may further include: the electronic device can display a third interface, wherein the third interface comprises a second option corresponding to the first interface. The electronic device may receive and retrieve the third start URL link in response to a second input for the second option. The electronic device may send a first data request to a cloud server based on the third start URL link. The electronic device may receive the first target URL link sent by the cloud server. The electronic device may open and display the first interface based on the first target URL link. The electronic device may determine a page rank of the third start URL link, and may store the third start URL link and the first target URL link in a page linked list corresponding to the page rank of the third start URL link.
In a possible implementation manner, before the electronic device displays the first interface, the method may further include: the electronic device may display a third interface including a third option, the third option corresponding to a fourth interface. The electronic device may receive and respond to a third input for the third option by retrieving the second start URL link having the same page rank as the third start URL link. The electronic device may send a second data request to the cloud server based on the second start URL link. The electronic device may receive a third target URL link sent by the cloud server. The electronic device may open and display the fourth interface based on the third target URL link. The electronic device may determine a page rank of the second start URL link and may store the second start URL link and the page rank of the second start URL link in the history.
In a possible implementation manner, the determining, by the electronic device, the page level of the second start URL link specifically includes: the electronic device may obtain a fourth start URL link and a page rank of the fourth start URL link, where the fourth start URL link satisfies a third preset condition that the number of parameters in the fourth start URL link is one less than that in the second start URL link, and the second start URL link includes the parameters in the fourth start URL link. The electronic device may determine that the page rank of the second starting URL link is next to the page rank of the fourth starting URL link.
In one possible implementation manner, the electronic device opens and displays a second interface based on the second target URL link, and the method may further include: the electronic device may send a data request for the first page to a cloud server based on the second target URL link. When the electronic device receives the display data sent by the cloud server, the electronic device may open and display the second interface based on the display data.
In one possible implementation manner, the electronic device opens and displays a second interface based on the second target URL link, and the method further includes: the electronic device may send a data request for the first page to a cloud server based on the second target URL link. The electronic device may receive access failure information sent by the cloud server. The electronic device may send a third data request to the cloud server based on the first start URL link. The electronic device may receive the fourth target URL link sent by the cloud server. The electronic device may open and display the second interface based on the fourth target URL link. The electronic device may store the first start URL link and the fourth target URL link in a page link table corresponding to a page rank of the second start URL link.
In one possible implementation, the method may further include: when the history of the electronic device does not include the start URL link satisfying the first preset condition, the electronic device may obtain a fifth start URL link satisfying a third preset condition and a page rank of the fifth start URL link from the history, where the third preset condition is that the fifth start URL link is one less than the number of parameters in the first start URL link, and the first start URL link includes the parameters in the fifth start URL link. The electronic device may determine a third start URL link satisfying a second preset condition and a first target URL link corresponding to the third start URL link from a page chain table corresponding to a next page level of the fifth start URL link.
In one possible implementation, the method may further include: the electronic device may store a plurality of page chain tables at different page levels, and the page chain tables at different page levels may include a first chain table, which may include a plurality of URL link pairs at a given page level, and the URL link pairs may include a start URL link and a target URL link of the same page. The electronic equipment can acquire the parameter type and the parameter number in the first initial URL link. When the electronic device determines that the parameter type of the first start URL link is the same as the parameter type of the start URL link in the first linked list, and the number of the parameters in the first start URL link is the same as the number of the parameters in the start URL link in the first linked list, the electronic device may determine, from the first linked list, a third start URL link satisfying a second preset condition and a first target URL link corresponding to the third start URL link.
In one possible implementation, the method may further include: the electronic device may determine a page rank of the second starting URL link as a page rank of the first starting URL link. The electronic device may store the first start URL link and the second target URL link corresponding to the first start URL link in the history and/or a page link list corresponding to a page rank of the first start URL link.
In one possible implementation, the method may further include: the electronic device may determine a page rank next to the page rank of the fifth starting URL link as the page rank of the first starting URL link. The electronic device may store the first start URL link and the second target URL link corresponding to the first start URL link in the history and/or a page link list corresponding to a page rank of the first start URL link.
In one possible implementation, the method may further include: the electronic device may determine the page rank of the first linked list as the page rank of the first starting URL link. The electronic device may store the first start URL link and the second target URL link corresponding to the first start URL link in the history and/or the first linked list.
In one possible implementation, the second start URL link may be the same as the third start URL link.
In one possible implementation, the first interface may further include a second page, and the start URL link of the second page may be the third start URL link. The page rank of the third start URL link may be the same as the page rank of the second start URL link.
In a second aspect, the present application provides an electronic device, which may include: a communication device, a display screen, a memory, and a processor coupled to the memory, the memory having stored therein executable instructions, wherein: the display screen may be used to display a first interface including a first option, the first option corresponding to a first page. The processor may be configured to receive a first input from a user for the first option. The processor may be further configured to retrieve a first start URL link to the first page. When the history record of the memory includes a second start URL link meeting a first preset condition, the processor can be further used for acquiring the page level of the second start URL link from the history record. The processor may be further configured to determine, from the page linked list corresponding to the page level of the second start URL link in the memory, a third start URL link and a first target URL link corresponding to the third start URL link that satisfy a second preset condition. The processor may be further configured to determine that a value of a first parameter in the first start URL link is different from a value of the first parameter in the third start URL link, wherein the value of the first parameter in the first start URL link is the first value. The processor may be further configured to modify a value of a first parameter in the first target URL link to the first value to obtain a second target URL link. The display screen may also be configured to open and display a second interface based on the second target URL link, the second interface including the first page.
Therefore, the time consumed by multiple HTTP jumps for opening the EPG page can be reduced, and the speed for opening the EPG page is increased.
In one possible implementation, the first preset condition may be that the first start URL link has the same number of parameters and the same parameter type.
In a possible implementation manner, the second preset condition may be that the first start URL link has the same number of parameters and the same parameter type, and the value of only one parameter is different from that of the first start URL link.
In a possible implementation manner, the display screen may be further configured to, before displaying the first interface, display a third interface, where the third interface includes a second option corresponding to the first interface. The processor may be operative to receive and retrieve the third start URL link responsive to a second input for the second option. The communication device may be configured to send a first data request to a cloud server based on the third start URL link. The communication device may be further configured to receive the first target URL link sent by the cloud server. The display screen may also be used to open and display the first interface based on the first target URL link. The processor may be further configured to determine a page rank of the third start URL link, and store the third start URL link and the first target URL link in a page chain table corresponding to the page rank of the third start URL link in the memory.
In a possible implementation manner, the display screen may be further configured to display a third interface before displaying the first interface, where the third interface includes a third option, and the third option corresponds to a fourth interface. The processor may be configured to receive and obtain the second start URL link in response to a third input for the third option, the second start URL link having a page rank that is the same as a page rank of the third start URL link. The communication device may be configured to send a second data request to the cloud server based on the second start URL link. The communication device may be further configured to receive a third target URL link sent by the cloud server. The display screen may also be used to open and display the fourth interface based on the third target URL link. The processor may be configured to determine a page rank of the second start URL link and store the second start URL link and the page rank of the second start URL link in the history in the memory.
In a possible implementation manner, the processor may be configured to determine a page rank of the second start URL link, including: the processor may be configured to obtain a fourth start URL link and a page rank of the fourth start URL link meeting a third predetermined condition, where the third predetermined condition is that the fourth start URL link is less than one parameter of the second start URL link, and the second start URL link includes the parameter of the fourth start URL link. The processor may be further configured to determine that the page rank of the second start URL link is a next level of the page rank of the fourth start URL link.
In a possible implementation manner, the display screen may be configured to open and display a second interface based on the second target URL link, and specifically includes: the communication device may be configured to send a data request for the first page to a cloud server based on the second target URL link. When the communication device receives the display data sent by the cloud server, the display screen may be used to open and display the second interface based on the display data.
In a possible implementation manner, the display screen may be configured to open and display a second interface based on the second target URL link, and specifically includes: the communication device may be configured to send a data request for the first page to a cloud server based on the second target URL link. The communication device may be further configured to receive access failure information sent by the cloud server. The communication device may also be configured to send a third data request to the cloud server based on the first start URL link. The communication device may be further configured to receive a fourth target URL link sent by the cloud server. The display screen may be used to open and display the second interface based on the fourth target URL link. The processor may be configured to store the first start URL link and the fourth target URL link in a page link table corresponding to a page rank of the second start URL link.
In a possible implementation manner, when the history record in the memory does not include a start URL link satisfying a first preset condition, the processor may be configured to obtain a fifth start URL link satisfying a third preset condition and a page rank of the fifth start URL link from the history record, where the third preset condition is that the fifth start URL link is one less than the number of parameters in the first start URL link, and the first start URL link includes the parameters in the fifth start URL link. The processor may be further configured to determine a third start URL link and a first target URL link corresponding to the third start URL link that satisfy a second preset condition from a page chain table corresponding to a page level next to the page level of the fifth start URL link.
In one possible implementation, the memory may be configured to store a plurality of page link lists of different page levels, the page link lists of different page levels including a first link list, the first link list including a plurality of URL link pairs for a given page level, the URL link pairs including a start URL link and a target URL link for the same page. The processor may be configured to obtain the parameter type and the parameter number in the first start URL link. When the processor determines that the parameter type of the first start URL link is the same as the parameter type of the start URL link in the first linked list, and the number of the parameters in the first start URL link is the same as the number of the parameters in the start URL link in the first linked list, the processor may be configured to determine, from the first linked list, a third start URL link satisfying a second preset condition and a first target URL link corresponding to the third start URL link.
In one possible implementation, the processor may be configured to determine the page rank of the second start URL link as the page rank of the first start URL link. The processor may be configured to store the first start URL link and the second target URL link corresponding to the first start URL link in the history in the memory and/or a page link list corresponding to a page rank of the first start URL link.
In one possible implementation, the processor may be configured to determine a page rank next to the page rank of the fifth start URL link as the page rank of the first start URL link. The processor may be further configured to store the first start URL link and the second target URL link corresponding to the first start URL link in the history in the memory and/or a page link list corresponding to a page rank of the first start URL link.
In one possible implementation, the processor may be configured to determine the page rank of the first linked list as the page rank of the first starting URL link. The processor may be configured to store the first start URL link and the second target URL link corresponding to the first start URL link in the history in the memory and/or the first linked list.
In one possible implementation, the second start URL link may be the same as the third start URL link.
In one possible implementation, the first interface may further include a second page, and the start URL link of the second page may be the third start URL link. The page rank of the third start URL link may be the same as the page rank of the second start URL link.
In a third aspect, the present application provides a computer storage medium including computer instructions, which, when executed on an electronic device, cause the electronic device to perform the method in any one of the possible implementations of the first aspect.
In a fourth aspect, the present application provides a computer program product, which when run on an electronic device, causes the electronic device to perform the method of any one of the possible implementations of the first aspect.
Drawings
Fig. 1 is a schematic flowchart of a page opening method provided in an embodiment of the present application;
fig. 2 is a schematic architecture diagram of a communication system according to an embodiment of the present application;
fig. 3A is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure;
fig. 3B is a schematic hardware structure diagram of a cloud server according to an embodiment of the present disclosure;
fig. 4 is a schematic flowchart of another page opening method provided in the embodiment of the present application;
FIG. 5A is a schematic view of a user interface provided by an embodiment of the present application;
fig. 5B is a schematic diagram of a request message format according to an embodiment of the present application;
fig. 5C is a schematic diagram of a request line format of a request message according to an embodiment of the present application;
fig. 5D is a schematic diagram of a response packet format according to an embodiment of the present application;
fig. 5E is a schematic diagram of a status line format of a response packet according to an embodiment of the present application;
FIG. 5F is a schematic view of a user interface provided by an embodiment of the present application;
FIG. 5G is a diagram illustrating a storage format provided by an embodiment of the present application;
FIG. 5H is a schematic view of a user interface provided by an embodiment of the present application;
fig. 6A-6D are a set of schematic user interfaces provided by embodiments of the present application.
Detailed Description
The terminology used in the following embodiments of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in this application in the specification and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein is meant to encompass any and all possible combinations of one or more of the listed features. In the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and are not to be construed as implying or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of embodiments of the application, unless stated otherwise, "plurality" means two or more.
First, an opening manner of an EPG page provided in the embodiment of the present application is described.
As shown in fig. 1, the EPG page is opened in a manner including the steps of:
1. the electronic device may display page 1.
2. The electronic device receives and responds to a user action on page1 of a target page option (e.g., clicking, selecting the target page option using a remote control, etc.).
3. The electronic device may obtain a start URL link of the target page. The start URL link may be pre-stored in the electronic device.
4. The electronic device may send a request instruction (e.g., an HTTP request) to the server based on the start URL link. In this process, the electronic device may display a temporary page (e.g., a page showing progress in loading).
5. After receiving the request instruction (e.g., HTTP request), the server may perform one, two, or more HTTP jumps (e.g., HTTP302 jumps) based on load balancing.
6. The server may send a target URL link of the target page to the electronic device. The target URL link may include an IP address. Wherein the IP address may be an IP address of a server that is less loaded than other servers within a given server cluster.
7. The electronic device may obtain display data of the target page based on the target URL link, and may display the target page based on the display data.
As can be seen from the above process, in the method for opening a target page, since the server performs one, two, or more HTTP jumps (e.g., HTTP302 jumps) based on load balancing, the target page may take a long time to open and be slow in speed.
Therefore, the embodiment of the application provides a page opening method, and the electronic device can store, in a history, start URL links for accessing a plurality of EPG pages and target URL links after HTTP302 jumps of the corresponding plurality of EPG pages. When the electronic device opens the target page in response to the input of the user, the electronic device 100 may obtain the start URL link of the target page. The electronic device may obtain the start URL link of the non-target page1 from the start URL links of the multiple EPG pages in the history. The electronic device may determine the rank of the target page based on the starting URL link of the non-target page 1. Then, the electronic device may query a start URL link satisfying a preset condition (e.g., the same number of parameters and the same type of parameters as the start URL link of the target page, and only one parameter different from the value of the start URL link of the target page) from the linked list storing the URL links of the level page. The electronic device 100 may obtain, from the start URL link of the target page, a parameter value that is different from the start URL link satisfying the preset condition based on the start URL link satisfying the preset condition. Then, the electronic device 100 may replace the different parameter values with the target URL link of the page corresponding to the start URL link that meets the preset condition, so as to obtain the target URL link of the target page. The electronic device may obtain display data of the target page based on the target URL link of the target page, and display the target page based on the display data of the target page. Therefore, the time consumed by multiple HTTP jumps for opening the EPG page can be reduced, and the speed for opening the EPG page is increased.
A communication system 10 provided by an embodiment of the present application is described below.
As exemplarily shown in fig. 2, the communication system 10 may include an electronic device 100, a cloud server 200.
The electronic device 100 may be a mobile phone, a large screen device, a tablet computer, a smart television, a wearable device, a vehicle-mounted device, an Augmented Reality (AR)/Virtual Reality (VR) device, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a Personal Digital Assistant (PDA) or a specialized camera (e.g., a single lens reflex camera, a card camera), a set-top box, and the like. When the electronic device 100 is a set-top box, the electronic device 100 may be externally connected to a display device by a wire, for example, the electronic device 100 may be externally connected to the display device by a High Definition Multimedia Interface (HDMI) data line. The electronic device 100 may also be connected to an external display device in a wireless manner, for example, the electronic device 100 may be connected to the external display device through a Wireless Local Area Network (WLAN). The electronic device 100 may send the display data to the display device for display through the connection method. The present application does not impose any limitations on the specific type of electronic device 100.
The cloud server 200 may establish a connection with the electronic device 100 and perform data interaction with the electronic device 100 based on the connection. The cloud server 200 may include a plurality of nodes. The cloud server 200 may distribute the data requests of the electronic devices to appropriate nodes (e.g., nodes with a small amount of tasks and rich resources) based on load balancing to process the processing tasks requested by the electronic devices 100. The cloud server 200 may also distinguish the electronic device 100 by an account (e.g., a glory account) on the electronic device 100 in which the user is logged in.
An exemplary electronic device 100 provided in embodiments of the present application is described below.
Fig. 3A shows a hardware configuration diagram of the electronic apparatus 100.
The electronic device 100 may include a processor 101, a memory 102, a wireless communication module 104, a power switch 105, a Universal Serial Bus (USB) communication processing module 106, a display 107, and an audio module 108. The various modules may be connected by a bus. Wherein:
the processor 101 may be used to read and execute computer readable instructions. In particular implementations, the processor 101 may mainly include a controller, an operator, and a register. The controller is mainly responsible for instruction decoding and sending out control signals for operations corresponding to the instructions. The arithmetic unit is mainly responsible for executing fixed-point or floating-point arithmetic operation, shift operation, logic operation and the like, and can also execute address operation and conversion. The register is mainly responsible for storing temporary register operands, intermediate operation results and the like in the instruction execution process. In a specific implementation, the hardware architecture of the processor 101 may be an Application Specific Integrated Circuit (ASIC) architecture, a MIPS architecture, an ARM architecture, or an NP architecture, etc.
In this embodiment, the processor 101 may be configured to parse a signal received by the wireless communication processing module 104, for example, display data of a target page sent by the cloud server 200. The processor 101 may also be used to compress or decompress the captured video, change the video content format, change an analog source to a digital source, or change a digital source to an analog source.
Memory 102 is coupled to processor 101 for storing various software programs and/or sets of instructions. In particular implementations, memory 102 may include high-speed random access memory and may also include non-volatile memory, such as one or more magnetic disk storage devices, flash memory devices, or other non-volatile solid-state storage devices. The memory 102 may store an operating system, such as an embedded operating system like uCOS, VxWorks, RTLinux, etc. The memory 102 may also store a communication program that may be used to communicate with the cloud server 200 and/or additional devices.
In the embodiment of the present application, the memory 102 may store a start URL link of a page (e.g., a target page) in advance. The memory 102 may also include a Domain Name System (DNS) cache and history for storing page URL links. The description of the history will be described in detail in the following embodiments, and will not be described herein.
The wireless communication module 104 may include a WLAN communication processing module 104A, and may further include a Bluetooth (BT) communication processing module 104B, NFC processing module (not shown), a cellular mobile communication processing module (not shown), and the like.
In this embodiment, the wireless communication processing module 104 may be configured to establish a communication connection with the cloud server 200, and perform data interaction with the cloud server 200 based on the communication connection. The communication connection established between the wireless communication processing module 104 and the cloud server 200 may be various. For example, the WLAN communication processing module 104A may be configured to establish a wireless fidelity (Wi-Fi) direct communication connection with the electronic device 100, and the bluetooth communication processing module 104B may be configured to establish a bluetooth communication connection with the electronic device 100.
The power switch 105 may be used to control the power supply of the power source to the electronic device 100.
The USB communication processing module 106 may be used to communicate with other devices through a USB interface (not shown).
The display screen 107 may be used to display images, video, etc. The display screen 107 may be an LCD, OLED, AMOLED, FLED, QLED, or the like. In some embodiments, the display screen 107 may be provided with a touch sensor (not shown in fig. 3A). The touch sensor and display screen 107 may form a touch screen, also referred to as a "touch screen". The touch sensor may be used to detect a touch operation applied thereto or nearby.
In this embodiment of the application, the display screen 107 may display the user interface of the target page according to the display data of the target page, which is received by the wireless communication module 104 and sent by the cloud server 200.
The audio module 108 is configured to output audio signals through the audio output interface, such that the electronic device 100 supports audio playback. The audio module 108 may also be used to receive audio data through an audio input interface. The audio module 108 may include, but is not limited to: microphones, speakers, receivers, and the like. In some embodiments, electronic device 100 may also include a serial interface such as an RS-232 interface. The serial interface can be connected to other devices, such as audio play-out devices like a sound box, so that the display and the audio play-out devices can cooperatively play audio and video.
In some embodiments, electronic device 100 may further include a wired Local Area Network (LAN) communication processing module (not shown in fig. 3A). The wired LAN communication processing module may be used to communicate with other devices in the same LAN through a wired LAN, and may also be used to connect to a Wide Area Network (WAN) through a wired LAN and communicate with devices in the WAN.
In some embodiments, the electronic device 100 may also include an HDMI communication processing module (not shown in fig. 3A) that may be used to communicate with other devices over an HDMI interface.
It is to be understood that the structure illustrated in fig. 3A does not constitute a specific limitation of the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
An exemplary cloud server 200 provided in the embodiment of the present application is described below.
Fig. 3B shows a hardware configuration diagram of the cloud server 200.
The cloud server 200 may be applied to the communication system 10 described in fig. 2 above. The cloud server 200 may include one or more processors 201A, a communication interface 202A, and a memory 203A, where the processors 201A, the communication interface 202A, and the memory 203A may be connected by a bus or in other manners, and in this embodiment, the connection by the bus 204A is taken as an example. Wherein:
the processor 201A may be constituted by one or more general-purpose processors, such as CPUs. The processor 201A may be used to run the associated program code of the device control method.
The communication interface 202A may be a wired interface (e.g., an ethernet interface) or a wireless interface (e.g., a cellular network interface or using a wireless local area network interface) for communicating with other devices. In this embodiment, the communication interface 202A may be specifically used for communicating with the electronic device 100.
In this embodiment, the cloud server 200 may send the display data of the target page to the electronic device 100 based on the communication interface 202A. After the electronic device 100 receives the display data of the target page, the user interface of the target page may be displayed on the display screen 107 in the electronic device 100 based on the display data.
The memory 203A may include a volatile memory (volatile memory), such as a Random Access Memory (RAM); non-volatile memory (non-volatile memory) such as ROM, flash memory, Hard Disk Drive (HDD), or Solid State Drive (SSD); the memory 203A may also comprise a combination of memories of the kind described above. The memory 203A may store some program codes, so that the processor 201A calls the program codes stored in the memory 203A to implement the implementation method in the cloud server 200 according to the embodiment of the present application.
It is understood that the cloud server 200 shown in fig. 3B is only one implementation manner of the embodiment of the present application, and in practical applications, the cloud server 200 may further include more or less components, which is not limited herein.
Next, a page opening method provided in the embodiment of the present application is described.
Taking the electronic device 100 as an example of an intelligent electronic device, fig. 4 shows a flowchart of a page opening method provided in an embodiment of the present application.
As shown in fig. 4, the method may include:
s401, the electronic device 100 receives input 1.
Specifically, the input 1 may be an operation of opening the electronic device 100 by a user, a touch operation (for example, clicking) performed by the user on an icon or a control, an operation of selecting a corresponding option of a page by using a remote controller, and the like, which is not limited in the present application.
S402, the electronic device 100, in response to the input 1, acquires a start URL link 1 (which may also be referred to as a fourth start URL link) of the user interface 1 (which may also be referred to as a third interface).
Specifically, the start URL link 1 of the user interface 1 may be stored in the electronic device 100 in advance. The start URL link 1 of the user interface 1 may be:
“https://xxx.yyy.com/EPG&type=01”
s403, the electronic device 100 sends a data request 1 to the node a on the cloud server 200 based on the start URL link 1.
Specifically, the cloud server 200 may include a plurality of nodes, and the plurality of nodes may include a node a and a node B. The data request 1 may be sent based on the format of an HTTP request message.
When the electronic device 100 acquires a start URL link 1 stored in advance, it may be searched whether a domain name entry corresponding to the start URL link 1 is stored in a DNS cache on the electronic device 100, where the domain name entry may include a domain name included in the start URL link 1 and an IP address corresponding to the domain name, as shown in table 1:
TABLE 1
Domain name IP address
xxx.yyy.com 180.97.33.108
The electronic device 100 may resolve an IP address (e.g., 180.97.33.108 shown in table 1) corresponding to the domain name (e.g., xxx.yyy.com shown in table 1) based on the domain name entry. The electronic device 100 may communicate with a server (e.g., node a on the cloud server 200) corresponding to the IP address based on the IP address.
If the DNS cache does not have a domain name entry corresponding to the start URL link 1, the electronic device 100 may initiate a domain name resolution request to the DNS server (e.g., may initiate a recursive request to a 53 port of the DNS server through a user datagram protocol), which may carry the domain name (e.g., xxx. The DNS server, upon receiving the request, can find the IP address (e.g., 180.97.33.108) corresponding to the domain name. The DNS server may send the IP address to the electronic device 100. Then, the electronic apparatus 100 may communicate with a server (e.g., node a on the cloud server 200) corresponding to the IP address based on the IP address.
Then, the electronic device 100 may establish a connection with the node a, for example, the electronic device 100 may establish a Transmission Control Protocol (TCP) connection with the node a. The electronic device 100 may first send a connection request message to node a. The connection request message may include a plurality of flags (e.g., ACK flag, SYN flag, etc.). When the ACK flag ACK =0 and the connection flag SYN =1 is established in the connection request message, this may indicate that the connection request is a connection request, and may also indicate that the message cannot carry data. The value of the sequence number flag seq in the connection request message may be a randomly generated value (e.g., 1234567).
After monitoring the connection request message, node a may agree to the connection, and send an acknowledgement message 1 to electronic device 100, where the acknowledgement message 1 may include an acknowledgement flag bit ACK =1, a connection establishment flag bit SYN =1, an acknowledgement number flag acknumber, and a sequence number flag bit seq. The value of the seq flag bit in the acknowledgement message 1 may be a randomly generated value (e.g., 7654321), and the value of the acknumber flag bit may be the value of the seq in the connection request message plus 1 (e.g., 1234568).
After receiving the acknowledgement message 1, the electronic device 100 may check whether the ACK flag is 1, and check whether the value of the acknumber flag in the acknowledgement message 1 is the value of seq in the connection request message plus 1 (e.g., 1234568). If yes, the electronic device 100 sends an acknowledgement message 2 to node a. The ACK flag in acknowledgement packet 2 may have a value of 1 and the acknumber flag may have a value of seq in acknowledgement packet 1 plus 1 (e.g., 7654322).
After receiving the acknowledgement message 2, the node a confirms that the acknumber in the acknowledgement message 2 is the sum of 1 (for example, 7654322) and the value of the ACK flag is 1, and then successfully establishes a connection with the electronic device 100. At this time, the electronic apparatus 100 may transmit an HTTP data request to the node a.
Electronic device 100 may send an HTTP request to a specified port on node a (e.g., 80 port, 443 port, etc.) through a specified browser (e.g., a web browser) and/or a web crawler or other tool. Specifically, as shown in fig. 5B, an HTTP request message may be divided into 4 portions, namely, a request line (request line) field, a request header (header) field, an empty line, and a request data field.
As shown in fig. 5C, the request line field may be divided into a request method (e.g., POST request method, GET request method, etc.) field, a request address (e.g., URL format request address) field in a specified format, a protocol version (e.g., HTTP/major version number. minor version number, which may be HTTP/1.0, HTTP/1.1) field in a specified format, and so on. The request header field may include information of the HTTP request message, such as date (date) information and the like. The end position of the request header field may have an empty line indicating the end of the request header followed by the request data field. The request data field may be an optional part, e.g., a GET request may have no request data.
In some embodiments, the electronic device 100 may also have other domain name resolution methods, which are not limited in this application.
In some embodiments, a domain name may correspond to two or more IP addresses, which is not limited in this application.
S404, the node A determines a target URL link 1 based on a load balancing strategy.
Specifically, after receiving the data request 1, the node a may determine the target URL link 1 based on load balancing, that is, the node a may distribute a task with a higher access amount in a short time to a node (e.g., a node B with a smaller task amount and rich resources) designated on the cloud server 200 for processing. The load balancing may be divided into a hardware scheme (e.g., F5BIG-IP load balancer), a software scheme (e.g., Nginx scheme), and the like, which is not limited in this application.
S405, the node a sends a redirection response 1 to the electronic device 100.
Specifically, the redirection response 1 may carry a target URL link 1. The format of the redirect response 1 may be the format of an HTTP response message. Specifically, as shown in fig. 5D, the HTTP response packet may be composed of a status line field, a response header field, an empty line, and a response data field.
As shown in fig. 5E, the status line field may be composed of a protocol version field, a status code field, and a status code description field. The protocol version field may refer to a protocol version field in a request line field of the HTTP request message in the embodiment of fig. 5C, and details are not described here. The value of the status code field may be three digits, each representing a category of response, e.g., when the value of the status code field is 100, indicating that the client must continue to issue requests; when the value of the status code field is 302, it indicates that the response is a temporary redirect response. The status code description field is a simple description of the status code. The response header field may include some data information (e.g., server type, time of day, etc.). In this step of the embodiment of the present application, when the value of the status code field is 302, the response header field may carry the destination URL link 1. The response data may be used to store data information that needs to be returned to the electronic device 100.
Wherein, the target URL link 1 may be:
“https://xxx.zzz.com/EPG&type=01&cvid=4BB5B1D9CFC”
it should be noted that, in a general case, after the electronic device 100 is powered on and started, the cloud server 200 may allocate, according to the account information on the electronic device 100, an identification number to the electronic device 100 for identifying a client, where the identification number may be a value of a "cvid" parameter in the target URL link, and when the account information is not changed, the value of the "cvid" parameter may be fixed and not changed. For example, in the embodiments of the present application, the value of the "cvid" parameter may be "4 BB5B1D9 CFC".
S406, the electronic device 100 sends a data request 2 based on the target URL link 1.
Specifically, the manner in which the electronic device 100 sends the data request 2 based on the target URL link 1 may refer to the description in the foregoing step S403, and is not repeated here. The IP address corresponding to the target URL link 1 may be an IP address of a node B on the cloud server 200.
S407, the node B transmits the display data of the user interface 1 to the electronic device 100.
Specifically, the node B may transmit the display data of the user interface 1 to the electronic device 100 based on the format of the HTTP response message. The format of the HTTP response packet may refer to the description in S405, and is not described herein again.
S408, the electronic device 100 displays the user interface 1.
Specifically, the electronic device 100 may display the user interface 1 based on the display data sent by the node B, and the user interface 1 may include the option 1 corresponding to the page 1. The user interface 1 may be referred to as a level one page. That is, the EPG page that is first displayed after the electronic apparatus 100 is powered on may be referred to as a primary page.
Illustratively, as shown in fig. 5A, the electronic device 100 may display a user interface 500 (which may also be referred to as a third interface), where the user interface 500 may be the user interface 1 described above. The user interface 500 may include a status bar, one or more page options displayed below the status bar, a selection box 502. The status bar may include, among other things, a "My" option, a "search" control, a signal strength indicator for Wi-Fi signals, a time indicator, a Bluetooth icon, and so forth. The one or more page options may include a tv shopping page option, a movie page option 501 (which may also be referred to as a second option, which may be the same as the third option), a drama page option, a music channel page option, a variety page option, a menu page option, and so forth. The option 1 corresponding to page1 may be a movie page option 501.
In some embodiments, the EPG page first displayed by electronic device 100 may be referred to by other names, e.g., zeroth order page, and so on. The electronic device 100 is not limited in this regard to the naming of the EPG page that is first displayed.
S409, the electronic device 100 stores the start URL link 1 and the target URL link 1 corresponding to the user interface 1 (which may also be referred to as a primary page).
The electronic device 100 may sequentially store the start URL link 1 and the target URL link 1 of the user interface 1 in the history in chronological order, as shown in table 2:
TABLE 2
URL link Time Marking Page rank identification
“https://xxx.zzz.com/EPG&type=01&cvid=4BB5B1D9CFC” 14:56 at 7.2.2021 months End mark 1
“https://xxx.yyy.com/EPG&type=01&temp=zzz&cvid=4BB5B1D9CFC” 14:53 at 7/2/2021
“https://xxx.yyy.com/EPG&type=01&temp=zzz” 14:50 at 7.2.2021 months
“https://xxx.yyy.com/EPG&type=01” 14:47 at 7.2.2021 months Start Mark 1 1
…… …… …… ……
As can be seen from table 2, the URL link in the history record may hold a corresponding time record, for example, the start URL link 1 "https:// xxx.yyy.com/EPG & type = 01" may hold a corresponding time record "14: 47/2/7/2/2021". The start URL link 1 "https:// xxx.yyy.com/EPG & type = 01" in the history may be provided with the start flag 1, and the target URL link 1 "https:// xxx.yy.com/EPG & type =01& cvid =4BB5B1D9 CFC" may be provided with the end flag 1. The unmarked URL link may be a URL link obtained by the cloud server 200 jumping via the HTTP 302. Also, the history may be provided with a page rank indicator at the start URL link 1, for example, at the start URL link 1 "https:// xxx.yyy.com/EPG & type = 01" in the history, a value of the page rank indicator may be set to "1" to indicate that the page corresponding to the start URL link 1 is a first-level page.
It should be noted that, in a general case, after the electronic device 100 is powered on and started, the server address allocated to the electronic device 100 by the cloud server 200 based on load balancing is fixed, that is, the server address "https:// xxx.
In some embodiments, the history may store a specified number of URL links, for example, the history may store 200 URL links. This is not limited by the present application.
In some embodiments, the history record may also store URL links of pages of different levels according to the format shown in table 2, for example, the history record may store a start URL link of a primary page, a target URL link of a primary page, a start URL link of a secondary page, a target URL link of a secondary page, and the like, which is not limited in this application.
In some embodiments, the history is re-recorded each time the electronic device 100 is powered on and restarted, i.e., the previous record is cleared.
S410, the electronic device 100 receives input 2 for option 1.
Specifically, the input 2 may be a touch operation (for example, clicking) performed by the user on an icon or a control, or an operation performed by the user using a remote controller to select a corresponding option of a page, which is not limited in this application.
Illustratively, the electronic device 100 may display the user interface 500 illustrated in FIG. 5A described previously. For the description of the user interface 500, reference may be made to the foregoing description in the embodiment of fig. 5A, and details are not repeated here. Electronic device 100 may receive input 2 (also referred to as a second input, e.g., selecting movie page option 501 using a remote control) from a user acting on movie page option 501 (also referred to as option 1), and in response to input 2, electronic device 100 may execute an instruction corresponding to input 2.
S411, the electronic device 100 displays the user interface 2.
Specifically, the specific process of the electronic device 100 acquiring the start URL link 2, the target URL link 2 and the user interface 2 in response to the input 2 may refer to the descriptions of the foregoing step S402 to step S408, and is not described herein again. The user interface 2 may include page1, and option 2 corresponding to page 2. Among them, the data request that the electronic device 100 sends to the cloud server based on the start URL link 2 may be referred to as a first data request.
Where the start URL link 2 may be:
“https://xxx.yyy.com/EPG&type=01&page=01”
target URL link 2 may be:
“https://xxx.zzz.com/EPG&type=01&page=01&cvid=4BB5B1D9CFC”
illustratively, as shown in fig. 5F, the electronic device 100 may display a user interface 510 (which may also be referred to as a first interface, which may be the same as the fourth interface), where the user interface 510 may be the user interface 2 described above. The user interface 510 may include status bar, category navigation, page 1. The category navigation may include options corresponding to a plurality of pages (e.g., recently hot-cast, homemade large-film, european and american large-film, war film, comedy film, etc.), and the page1 may include a plurality of task options, such as a "landscape" option, a "flying" option, a "swimming" option, a "roller coaster" option, etc. Option 2 for page 2 may be a "home large" option 511 (which may also be referred to as the first option). As shown in fig. 5F, the currently displayed page selected by the user is the "most recently hotcast" page (which may also be referred to as the second page, page 1).
S412, the electronic device 100 determines that the page1 is a secondary page.
Specifically, the electronic apparatus 100 may acquire the start URL links satisfying a preset condition 1 (which may also be referred to as a third preset condition, for example, less than the start URL link 2 and only one less parameter, and the start URL link 2 both have the same type and value) from the history record in a specified time sequence (for example, in the sequence from near to far in time). Electronic device 100 may determine that page1 is the next page to the page to which the start URL link corresponds based on the start URL link. For example, if a start URL link meeting preset condition 1 is obtained from the history record and the start URL link corresponds to a primary page, the electronic device 100 may determine that the page1 is a next-level page of the primary page, that is, a secondary page. The preset condition 1 may be obtained by performing data analysis on URL links of a large number of pages of different levels, and finding that the start URL link of the primary page is less than the start URL link of the secondary page by only one parameter, and that both the start URL link of the secondary page and the start URL link of the primary page have parameters with the same type and value.
For example, the electronic device 100 may query the history record for a start URL link 1 meeting a preset condition 1 in order of time from near to far, where the start URL link 1 is:
“https://xxx.yyy.com/EPG&type=01”
wherein the start URL link 1 is less than and has only one less parameter "page" than the start URL link 2 "https:// xxx. yyy.com/EPG & type =01& page = 01", and both the start URL link 1 and the start URL link 2 have the parameter "type" of which type and value are the same. The page rank of the start URL link 1 is identified as "1". The page level id of the start URL link 1 indicates that the page corresponding to the start URL link 1 is a level page. Therefore, the electronic apparatus 100 may determine that the page1 is a next-level page, i.e., a second-level page, of the first-level page corresponding to the start URL link 1 based on the start URL link 1.
In some embodiments, the electronic device 100 may obtain a most recent start URL link from the history, compare whether the start URL link and the start URL link 2 satisfy a preset condition 1 (for example, the start URL link has less and only one less parameter than the start URL link 2, and the start URL link 2 both have the same type and value of the parameter), and determine whether the page1 is a page next to the page corresponding to the start URL link based on the comparison result. If the comparison result meets the preset condition 1, the page1 is the next level page of the page corresponding to the initial URL link. If the comparison result does not meet the preset condition 1, the page1 is not the next level page of the page corresponding to the initial URL link. For example, the start URL link corresponds to a primary page, and if the comparison result between the start URL link and the start URL link 2 satisfies the preset condition 1, the electronic device 100 may determine that the page 2 is a next-level page of the primary page, that is, a secondary page.
In some embodiments, if the most recent start URL link retrieved by the electronic device 100 from the history is not satisfied with the preset condition 1 (e.g., the start URL link has less and only one less parameter than the start URL link 2, and the start URL link 2 both have the same parameter in type and value) as compared with the start URL link 2, the electronic device 100 may retrieve from the history start URL links satisfying the preset condition 1 (e.g., less and only one less parameter than the start URL link 2, and both have the same parameter in type and value) in a specified chronological order (e.g., in chronological order). Electronic device 100 may determine that page1 is the next page to the page to which the start URL link corresponds based on the start URL link. For example, if a start URL link meeting preset condition 1 is obtained from the history record and the start URL link corresponds to a primary page, the electronic device 100 may determine that the page 2 is a next-level page of the primary page, that is, a secondary page.
S413, the electronic device 100 stores the start URL link 2 and the target URL link 2 corresponding to the page 1.
Specifically, in the embodiment of the present application, the start URL link 2 of the page1 and the target URL link 2 of the page1 may refer to the description in the step S411, and are not described herein again.
The electronic apparatus 100 may store the start URL link 2 and the target URL link 2 in the history record according to the format shown in the foregoing step S409, as shown in table 3:
TABLE 3
URL link Time Marking Page rank identification
“https://xxx.zzz.com/EPG&type=01&page=01&cvid=4BB5B1D9CFC” 2021 year 2, month 7, day 15:03 End mark 2
“https://xxx.yyy.com/EPG&type=01&page=01&temp=zzz&cvid=4BB5B1D9CFC” 2021 year 2 month 7 day 15:02
“https://xxx.yyy.com/EPG&type=01&page=01&temp=zzz” 2021 year 2 month 7 day 15:01
“https://xxx.yyy.com/EPG&type=01&page=01” 2021 year 2, month 7, day 15:00 Start Mark 2 2
“https://xxx.zzz.com/EPG&type=01&cvid=4BB5B1D9CFC” 14:56 at 7.2.2021 months End mark 1
“https://xxx.yyy.com/EPG&type=01&temp=zzz&cvid=4BB5B1D9CFC” 14:53 at 7/2/2021
“https://xxx.yyy.com/EPG&type=01&temp=zzz” 14:50 at 7.2.2021 months
“https://xxx.yyy.com/EPG&type=01” 14:47 at 7.2.2021 months Start Mark 1 1
…… …… …… ……
As can be seen from table 2, the URL link associated with the user interface 1 in the history record may refer to the description in step S409, and is not described herein again. The history may also store the start URL link 2, the destination URL link 2, and related information of the page 1. For example, the start URL link 2 "https:// xxx. yyy.com/EPG & type =01& page = 01" may hold a corresponding time record "15: 00, 2 months, 7 days, 2021". The start URL link 2 "https:// xxx.yyy.com/EPG & type =01& page = 01" may be provided with a start flag 2, and the target URL link 2 "https:// xxx.zzz.com/EPG & type =01& page =01& cvid =4BB5B1D9 CFC" may be provided with an end flag 2. The unmarked URL link may be a URL link obtained by the cloud server 200 jumping via the HTTP 302. Also, the history may be provided with a page rank indicator at the start URL link 2, for example, at the start URL link 2 "https:// xxx.yyy.com/EPG & type =01& page = 01", a value of the page rank indicator may be set to "2" to indicate that the page corresponding to the start URL link 2 is a secondary page.
In some embodiments, after receiving and displaying a level one page (e.g., user interface 1) in response to input 1, electronic device 100 may also receive and display a page other than a level two page (e.g., page 1) in response to input from the user. The electronic apparatus 100 may store the URL link of the page in the history record in the format shown in the foregoing step S409. For example, after electronic device 100 displays user interface 500 (which may also be referred to as user interface 1) as shown in FIG. 5A, electronic device 100 may receive and display a page corresponding to the "My" option that is not a secondary page (e.g., page 1) in response to a user input acting on the "My" option (e.g., selecting the "My" option using a remote control). The electronic apparatus 100 may store the URL link of the page corresponding to the "my" option in the history record according to the format shown in the foregoing step S409. In this process, the history does not yet store the URL links of the secondary pages.
For example, the electronic device 100 may further store the start URL link 2 and the target URL link 2 of the page1 in a specified format, and the specified format may store a correspondence relationship between the start URL link 2 and the target URL link 2. For example, the electronic device 100 may store the start URL link 2 and the target URL link 2 through a structure structUrl, which may have a structure as follows:
struct structUrl{
string strUrl;
string dstUrl;
}
where "string strUrl" may be used to store the starting URL link 2 and "string dstUrl" may be used to store the target URL link 2. Then, as shown in fig. 5G, the electronic device 100 may store the data stored in the specified format (e.g., the structure structUrl) through a linked list of a specified length (e.g., the linked list listUrl of length 100). Wherein the linked list of the specified length (e.g., linked list listUrl of length 100) may be used to store URL links of the secondary page (e.g., a start URL link of the secondary page, a target URL link of the secondary page). This linked list may be referred to as a secondary page linked list.
In some embodiments, electronic device 100 has stored thereon a plurality of linked lists including a primary page linked list, a secondary page linked list, a tertiary page linked list, and the like. The primary page linked list may be used to store the URL links of the primary page (e.g., the primary page's start URL link "https:// xxx. yyy. com/EPG & type = 01", the primary page's target URL link "https:// xxx. zzz. com/EPG & type =01& cvid =4BB5B1D9 CFC"). The secondary page linked list may be used to store URL links for the secondary pages (e.g., a start URL link for the secondary page, a target URL link for the secondary page). The tertiary page linked list may be used to store URL links for tertiary pages (e.g., a start URL link for a tertiary page, a target URL link for a tertiary page). That is, the URL links of the page (e.g., the start URL link of the page and the target URL link of the page) may be stored according to a specified format (e.g., the structure structUrl in the foregoing), and then stored in different page chain tables according to a specified classification manner (e.g., according to the page level).
S414, the electronic device 100 receives input 3 for option 2.
Specifically, the input 3 may be a touch operation (for example, clicking) performed by the user on an icon or a control, or an operation performed by the user using a remote controller to select a corresponding option of a page, and the like, which is not limited in the present application.
Illustratively, the electronic device 100 may display the user interface 510 illustrated in FIG. 5F, previously described. For the description of the user interface 510, reference may be made to the foregoing description in the embodiment of fig. 5F, and details are not repeated here. Electronic device 100 may receive input 3 (which may also be referred to as a first input, e.g., selection of "home large" option 511 using a remote control) from a user on "home large" option 511 (which may also be referred to as option 2), and in response to input 3, electronic device 100 may execute an instruction corresponding to input 3.
S415, in response to the input 3, the electronic device 100 acquires a start URL link 3 (which may also be referred to as a first start URL link) corresponding to the page 2.
Specifically, the start URL link 3 of the page 2 may be stored in the memory space of the electronic device 100 in advance.
And S416, the electronic device 100 determines that the page 2 is a secondary page.
Specifically, the electronic device 100 may obtain, from the history, a start URL link that satisfies a preset condition 2 (which may also be referred to as a first preset condition, for example, the start URL link and the start URL link 3 have the same number of parameters and the same parameter type) in a specified time sequence (for example, in a sequence from near to far in time), and the electronic device 100 may determine the level of the page 2 based on the start URL link. For example, if a start URL link satisfying the preset condition 2 is acquired from the history and the start URL link corresponds to a secondary page, the electronic device 100 may determine that the page 2 corresponding to the start URL link 3 is a secondary page. The preset condition 2 may be obtained by performing data analysis on a large number of URL links of pages of different levels and finding that the initial URL links of the pages of the same level all have the same number of parameters.
For example, the electronic device 100 may query, in order from near to far, from the history, a start URL link 2 (which may also be referred to as a second start URL link, and the second start URL link may be the same as the third start URL link) meeting a preset condition 2, where the start URL link 2 is:
“https://xxx.yyy.com/EPG&type=01&page=01”
the start URL link 3 is:
“https://xxx.yyy.com/EPG&type=01&page=02”
the page1 corresponding to the start URL link 2 is a second-level page, and the start URL link 2 and the start URL link 3 have the same number of parameters and the same parameter types "type" and "page", so that the page 2 and the page1 are pages of the same level, that is, the page 2 can be determined as a second-level page.
In some embodiments, the electronic device 100 may query the history for a start URL link closest in time in a specified time sequence (e.g., in a time sequence from near to far), and compare whether the start URL link and the start URL link 3 satisfy the preset condition 2 (e.g., the start URL link and the start URL link 3 have the same number of parameters and the same type of parameters), so as to determine the level of the page 2. If the comparison result satisfies the preset condition 2 (for example, the start URL link and the start URL link 3 have the same number of parameters and the same parameter type), the page 2 is a peer page of the page corresponding to the start URL link. If the comparison result does not satisfy the preset condition 2 (for example, the start URL link and the start URL link 3 have the same number of parameters and the same parameter type), the page 2 is not a peer page of the page corresponding to the start URL link. The preset condition 2 may be obtained by performing data analysis on a large number of URL links of pages of different levels and finding that the initial URL links of the pages of the same level all have the same number of parameters.
For example, the electronic device 100 may obtain the start mark 2 closest to the current time from the history in the order of time from near to far, and then the electronic device 100 may obtain the corresponding start URL link 2 based on the start mark 2. The start URL link 2 is the start URL link of the secondary page. Then, the electronic apparatus 100 compares the start URL link 2 with the start URL link 3 of the page 2, and if the comparison result satisfies a preset condition 2 (for example, the start URL link 2 and the start URL link 3 have the same number of parameters and the same type of parameters), the page 2 may be determined as a secondary page.
For example, the start URL link 2 is:
“https://xxx.yyy.com/EPG&type=01&page=01”
the start URL link 3 is:
“https://xxx.yyy.com/EPG&type=01&page=02”
the start URL link 2 and the start URL link 3 have the same number of parameters and the same parameter type "," page ", and thus, the page 2 and the page1 are pages of the same level, that is, the page 2 may be determined as a secondary page.
In some embodiments, if the comparison result between the start URL link 3 of the page 2 and the most recent start URL link in the history does not satisfy the preset condition 2 (e.g., the start URL link 3 and the most recent start URL link in the history have the same number of parameters and the same parameter type), the electronic device 100 may query the history for the start URL link satisfying the preset condition 2 (e.g., the start URL link having the same number of parameters as the start URL link of the target page) in a specified time sequence (e.g., in a time sequence from near to far), so as to determine the level of the page 2.
S417, the electronic device 100 determines, based on the start URL link 3, a start URL link that satisfies a preset condition 3 (which may also be referred to as a second preset condition, for example, the number of parameters and the type of parameters that are the same as those of the start URL link 3 and the value of only one parameter that is different from that of the start URL link 3) from a specified linked list (for example, the secondary page linked list listUrl with the length of 100).
Specifically, the electronic device 100 may separate the start URL link 3 of the page 2 into a prefix and a parameter, as shown in table 4:
TABLE 4
The URL prefix srcPefix https://xxx.yyy.com/EPG
The keyword src key01 of URL parameter 1 type
The value of the URL parameter 1, srcValue01 01
The keyword src key02 of URL parameter 2 page
The value of the URL parameter 2, srcValue01 02
Then, the electronic device 100 may obtain a start URL link satisfying a preset condition 3 (e.g., having the same number of parameters and the same parameter type as the start URL link 3 and having a different value of only one parameter from the start URL link 3) from a specified linked list (e.g., a secondary page linked list listUrl of length 100) according to a specified sequence (e.g., a sequence from near to far according to time).
For example, the electronic device 100 may obtain, according to the order from near to far, a start URL link 2 (which may also be referred to as a third start URL link, and the third start URL link may be the same as the second start URL link) in the secondary page link list listUrl, where the start URL link 2 satisfies a preset condition 3 (for example, the number of parameters and the type of parameters are the same as the start URL link 3, and the value of only one parameter is different from the start URL link 3), and separate the parameter and the prefix of the start URL link 2, as shown in table 5:
TABLE 5
The URL prefix historyPrefix https://xxx.yyy.com/EPG
Keyword historyKey01 of URL parameter 1 type
The value historyValue01 of URL parameter 1 01
Keyword historyKey02 of URL parameter 2 page
The value historyValue01 of the URL parameter 2 01
Here, the start URL link 2 and the start URL link 3 have the same number of parameters and the same parameter type "or" page ", and the start URL link 2 is different from the start URL link 3 if and only if the value of the" page "parameter is different. Electronic device 100 may record the start URL link 2.
In some embodiments, the electronic device 100 may also receive and open another secondary page (e.g., open the theatrical page corresponding to the theatrical page option in the user interface 500 shown in fig. 5A) in response to input 3 before receiving and responding to input 2 (e.g., "home large" option 511), at which point the second option may be different from the third option, and the second start URL link may be different from the third start URL link. For example, the movie page option 501 in the user interface 500 shown in fig. 5A may be referred to as a second option, the drama page option in the user interface 500 shown in fig. 5A may be referred to as a third option, an input for the drama page option may be referred to as a third input, a user interface corresponding to a drama page received by and displayed by the electronic device 100 in response to the third input may be referred to as a fourth interface, a start URL link of the user interface corresponding to the drama page may be referred to as a second start URL link, and the start URL link 2 "https:// xxx.yyy.com/EPG & type =01& page = 01" may be referred to as a third start URL link. The data request sent by the electronic device 100 to the cloud server 200 based on the second start URL link may be referred to as a second data request, and the target URL link of the user interface corresponding to the drama page may be referred to as a third target URL link, which is not limited in this application.
S418, the electronic device 100 acquires that the value of the difference parameter (may also be referred to as a first parameter) in the start URL link 3 is a first value.
Specifically, the electronic apparatus 100 may record the parameter having the difference in the start URL link 3 determined in the step S417 and the value of the difference parameter. This value may be referred to as a first value. For example, the electronic apparatus 100 may record the parameter "page" having the difference in the start URL link 3 determined in the foregoing step S417 and the value of the parameter "page", which is 02. The electronic device 100 may acquire, through the recorded start URL link 2, the target URL link 2 (which may also be referred to as a first target URL link) corresponding to the start URL link 2 in the structure in which the start URL link 2 is stored. For example, the target URL link 2 is:
“https://xxx.zzz.com/EPG&type=01&page=01&cvid=4BB5B1D9CFC”
in some embodiments, if the electronic apparatus 100 cannot obtain a start URL link satisfying a preset condition 2 (e.g., having the same number of parameters and the same type of parameters as the start URL link 3) in the history, the electronic apparatus 100 may query the history for a start URL link (which may be referred to as a fifth start URL link) satisfying a preset condition 1 (e.g., less than and only less than the start URL link 3 and having the same type and value as the start URL link 3) in a specified time order (e.g., in a time order from near to far), the next level of the page corresponding to the start URL link satisfying the preset condition 1 being determined as the level of the page 2. Then, the electronic device 100 may determine, from the page linked list corresponding to the page rank, a start URL link and a target URL link corresponding to the start URL link that satisfy a preset condition 3 (for example, the start URL link 3 has the same number of parameters and the same parameter type, and the start URL link 3 has only one parameter with a different value). The electronic device 100 may determine, based on the start URL link meeting the preset condition 3, a value of a parameter that is different between the start URL link 3 and the start URL link meeting the preset condition 3, and the electronic device 100 may replace the value with a target URL link corresponding to the start URL link meeting the preset condition 3 to obtain a target URL link corresponding to the page 2. The electronic device 100 may store the start URL link 3, the target URL link corresponding to the page 2 into the history and/or the page rank linked list corresponding to the page 2. The electronic device 100 may store the page rank corresponding to page 2 in the history.
S419, the electronic device 100 modifies the difference parameter value in the target URL link corresponding to the start URL link that satisfies the preset condition 3 (for example, the start URL link 3 has the same number of parameters and the same parameter type, and the start URL link 3 has only one parameter with a different value) to be the first value, so as to obtain the target URL link 3.
Specifically, for example, in the step S417, the electronic device 100 has obtained a start URL link 2 meeting the preset condition 3 from the secondary page chain table, where the start URL link 2 corresponds to the target URL link 2. The electronic apparatus 100 may modify the value of the difference parameter "page" in the target URL link 2 to the value "02" recorded in the foregoing step S418, so as to obtain the target link 3 of the page 2:
“https://xxx.zzz.com/EPG&type=01&page=02&cvid=4BB5B1D9CFC”
s420, the electronic device 100 sends a data request 3 based on the target URL link 3 (which may also be referred to as a second target URL link).
Specifically, the manner in which the electronic device 100 sends the data request 3 based on the target URL link 3 may refer to the description in the foregoing step S403, and is not repeated here. The IP address corresponding to the target URL link 3 may be an IP address of a node B on the cloud server 200.
S421, the node B transmits the display data of the page 2.
Specifically, the node B may transmit the display data of the page 2 to the electronic device 100 based on the format of the HTTP response message. The format of the HTTP response packet may refer to the description in S405, and is not described herein again.
S422, the electronic device 100 displays the user interface 3.
Specifically, the electronic device 100 may display the user interface 3 based on the display data sent by the node B, and the page 2 may be included in the user interface 3. The electronic device 100 may store the start URL link 3 and the destination URL link 3 of the page 2 in the history and/or the secondary page link list with reference to the description in step S409 and/or step S413.
Illustratively, as shown in fig. 5H, the electronic device 100 may display a user interface 520 (which may also be referred to as a second interface). The user interface 520 may be the user interface 3 described above. The user interface 520 may include status bar, category navigation, page 2. The category navigation may include options corresponding to multiple pages (e.g., recently hot broadcast, homemade movie, european and american movie, war movie, comedy movie, etc.), and the page 2 may include multiple task options, such as "race" option, "yoga" option, "swan" option, "lucky cat" option, etc. As shown in fig. 5H, the currently displayed page selected by the user is a "home large" page (which may also be referred to as a first page, page 2).
It should be noted that the sequence of the above steps is only used for exemplarily explaining a specific flow of the page opening method, and does not specifically limit the present application.
It should be noted that the above-mentioned user interface examples are only used for explaining the present application, and should not be construed as limiting the present application.
In some embodiments, the electronic device 100 may also be a mobile phone.
As shown in fig. 6A, electronic device 100 may display user interface 600. The user interface 600 may include a status bar, a plurality of application icons, a calendar indicator, and a page indicator, among others. The status bar may include, among other things, one or more signal strength indicators, power level indicators, etc. for mobile communication signals (which may also be referred to as cellular signals). The plurality of application icons may include a video application icon 601.
The electronic device 100 may receive a touch operation (e.g., a click) by a user on the video application icon 601, and in response to the touch operation, the electronic device 100 may display the user interface 610.
As shown in FIG. 6B, the user interface 610 may include a status bar, a search box, one or more page options displayed below the search box, a selection box 612. The status bar may refer to the description of the embodiment shown in fig. 6A, and is not described herein again. The one or more page options may include a teleshopping page option, a movies page option 611, a music channel page option, a shows page option, a menu page option, and so forth.
The electronic device 100 may receive a touch operation (e.g., a click) by the user on the movie page option 611 (which may also be referred to as option 1), and in response to the touch operation, the electronic device 100 may display the user interface 620.
As shown in FIG. 6C, the user interface 620 may include a status bar, a search box, category navigation, page 1. The category navigation may include options corresponding to a plurality of pages (e.g., recently hot-cast, homemade, european and american, war, etc.), and the page1 may include a plurality of task options, such as a "landscape" option, an "air ride" option, a "swimming" option, a "roller coaster" option, etc. The "home large" option may be referred to as option 2 for page 2. As shown in FIG. 6C, the currently user-selected displayed page is the "recently hotcast" page (which may also be referred to as Page 1).
The electronic device 100 may receive a touch operation (e.g., a click) by the user on the "home large" option (which may also be referred to as option 2), and in response to the touch operation, the electronic device 100 may display the user interface 630.
As shown in FIG. 6D, the user interface 630 may include a status bar, category navigation, page 2. The category navigation may include options corresponding to multiple pages (e.g., recently hot broadcast, homemade large movie, european and american large movie, war movie, etc.), and the page 2 may include multiple task options, such as a "race" option, a "yoga" option, a "swan" option, a "wealth bringing cat" option, etc. The page selected and displayed by the current user is a "home large" page (which may also be referred to as page 2).
It should be noted that, for the specific implementation steps of the foregoing process, reference may be made to the descriptions in step S401 to step S422, which are not described herein again.
It should be noted that the above-mentioned user interface examples are only used for explaining the present application, and should not be construed as limiting the present application.
In some embodiments, electronic device 100 may maintain a correspondence between the start tag and the end tag of the same page (e.g., electronic device 100 may maintain a correspondence between start tag 2 of the page1 start URL link and end tag 2 of the page1 target URL link). After determining that the page 2 is a secondary page in step S416, the electronic device 100 may query the history for a start URL link 2 that satisfies a preset condition 3 (e.g., the same number of parameters and the same type of parameters as the start URL link 3, and only one parameter different from the start URL link 3 in value), where the start URL link 2 is the start URL link of the page 1. The electronic device 100 may obtain different parameter values in the start URL link 3 corresponding to the page 2 based on the start URL link 2, and the value may be referred to as a first value. Then, the electronic device 100 may obtain, based on the correspondence between the start mark 2 and the end mark 2, a target URL link 2 corresponding to the start URL link 2 from the history, modify the value of the difference parameter in the target URL link 2 to a first value, and obtain a target URL link 3 corresponding to the page 2. The electronic device 100 may obtain the display data of the page 2 based on the target URL link 3 and display the page 2. The electronic device 100 may store the start URL link 3 and the destination URL link 3 of the page 2 in the history and/or the secondary page link list with reference to the description in step S409 and/or step S413.
In some embodiments, the electronic device 100 may perform a query in a specified order (e.g., first querying the primary page linked list and then querying the secondary page linked list) based on the page linked list, determine the level of the page 2, and then obtain the target URL link 3 of the page 2.
For example, after the electronic device 100 performs step S415, the starting URL link 1 with the closest time sequence in the primary page chain table may be queried first, where the starting URL link 1 does not satisfy the preset condition 2 (e.g., has the same number of parameters and the same type of parameters as the starting URL link 3), and then the page 2 is not a primary page, and then the electronic device 100 may query the starting URL link with the closest time sequence in the secondary page chain table.
The starting URL link with the closest time sequence in the secondary page linked list (which may also be referred to as a first linked list) is a starting URL link 2, and if a preset condition 2 is met (for example, the starting URL link 3 has the same number of parameters and the same parameter type), the page 2 is a secondary page. Then, the electronic device 100 may obtain a start URL link satisfying a preset condition 3 (e.g., the same number of parameters and the same parameter type as the start URL link 3, and the value of only one parameter different from the start URL link 3) from the secondary page chain table according to a specified order (e.g., an order from near to far according to time). For example, the electronic device 100 may query the start URL link 2 satisfying the preset condition 3 in the secondary page linked list according to the order of time from far to near. The electronic device 100 may obtain different parameter values in the start URL link 3 corresponding to the page 2 based on the start URL link 2, and the value may be referred to as a first value. Then, the electronic device 100 may obtain the target URL link 2 from the secondary page linked list, modify the value of the difference parameter in the target URL link 2 to the first value, and obtain the target URL link 3 corresponding to the page 2. The electronic device 100 may obtain the display data of the page 2 based on the target URL link 3 and display the page 2. The electronic device 100 may store the start URL link 3 and the destination URL link 3 of the page 2 in the history and/or the secondary page link list with reference to the description in step S409 and/or step S413.
In some embodiments, if the electronic device 100 cannot obtain a start URL link satisfying a preset condition 2 (e.g., the same number of parameters and the same type of parameters as the start URL link of the target page) in the history, the electronic device 100 may query the start URL link satisfying a preset condition 1 (e.g., less than and only one parameter less than the start URL link of the target page and the same type and value as the start URL link of the target page) from the history in a specified time order (e.g., in a time order from near to far), thereby determining the level of the target page (e.g., a third-level page, a fourth-level page, etc.).
Illustratively, the method may comprise:
step S601 to step S613, reference may be made to the descriptions in step S401 to step S413, which are not described herein again.
S614, the electronic device 100 receives the input 4 aiming at the option 3 corresponding to the page 3.
Specifically, the input 4 may be a touch operation (for example, clicking) performed by the user on an icon or a control, or an operation performed by the user using a remote controller to select a corresponding option of a page, and the like, which is not limited in the present application.
Illustratively, the electronic device 100 may display the user interface 510 illustrated in FIG. 5F, previously described. For the description of the user interface 510, reference may be made to the foregoing description in the embodiment of fig. 5F, and details are not repeated here. Electronic device 100 may receive input 4 (e.g., selecting the "landscape" option using a remote control) from a user acting on the "landscape" option (which may also be referred to as option 3 corresponding to page 3), and in response to input 4, electronic device 100 may execute an instruction corresponding to input 4.
S615, in response to the input 4, the electronic device 100 obtains the start URL link 4 corresponding to the page 3.
Specifically, the start URL link 4 of the page 3 may be stored in the memory space of the electronic device 100 in advance.
The start URL link 4 may be:
“https://xxx.yyy.com/EPG&type=01&page=02&page1=01”
s616, the electronic device 100 determines the rank of the page 3.
Specifically, the electronic device 100 may query the history for start URL links satisfying the preset condition 2 (for example, the same number of parameters and the same type of parameters as the start URL link 4) in a specified time sequence (for example, in a sequence from near to far in time), so as to determine the level of the page 3. The preset condition 2 may be obtained by performing data analysis on a large number of URL links of pages of different levels and finding that the initial URL links of the pages of the same level all have the same number of parameters.
If the electronic apparatus 100 does not query the start URL link satisfying the preset condition 2 from the history, the electronic apparatus 100 may query the start URL link satisfying the preset condition 1 (e.g., less and only one parameter less than the start URL link 4, and both the type and the value of the parameter same as the start URL link 4) from the history in a designated time order (e.g., in a time order from near to far). The electronic device 100 may determine that the page 3 is a next page to the page corresponding to the start URL link based on the start URL link. For example, if a start URL link meeting preset condition 1 is obtained from the history record and the start URL link corresponds to a secondary page, the electronic device 100 may determine that the page 3 is a next-level page of the secondary page, that is, a third-level page. The preset condition 1 may be obtained by performing data analysis on URL links of a large number of pages of different levels, and finding that the start URL link of the secondary page is less than the start URL link of the tertiary page by only one parameter, and that both the start URL link of the secondary page and the start URL link of the tertiary page have parameters with the same type and value.
For example, the electronic device 100 may query the history record for a start URL link 2 meeting a preset condition 1 in order of time from near to far, where the start URL link 2 is:
“https://xxx.yyy.com/EPG&type=01&page=01”
wherein the start URL link 2 is less than the start URL link 4 "https:// xxx. yyyy.com/EPG & type =01& page =02& page1= 01" and has only one less parameter "page 1", and the start URL link 2 and the start URL link 4 both have parameters "type", "page" of the same type and value. The page rank of the start URL link 2 is identified as "2". The page level id of the start URL link 2 indicates that the page corresponding to the start URL link 2 is a second level page. Accordingly, the electronic apparatus 100 may determine that the page 3 is a next-level page, i.e., a third-level page, of the second-level page corresponding to the start URL link 2 based on the start URL link 2.
S617, the electronic device 100 displays the page 3.
Specifically, the electronic device 100 obtains the target URL link 4 and displays a specific flow of the page 3 based on the target URL link 4, which may refer to the descriptions of the foregoing step S402 to step S408, and details are not repeated here.
S618, the electronic apparatus 100 stores the start URL link 4 and the target URL link 4.
Specifically, the electronic device 100 may store the start URL link 4 and the target URL link 4 of the page 3 in the history record and/or the third-level page link table with reference to the descriptions in step S409 and/or step S413, which is not described herein again.
In some embodiments, the electronic device 100 may determine, from the three-level page chain table, a start URL link that satisfies a preset condition 3 (e.g., the start URL link 4 has the same number of parameters and the same parameter type, and the start URL link 4 has only one parameter with a different value) and a target URL link corresponding to the start URL link, then the electronic device 100 may determine, based on the start URL link that satisfies the preset condition 3, that the value of the parameter 3 in the start URL link 4 is different from the value of the parameter 3 in the start URL link that satisfies the preset condition 3, the electronic device 100 modifies the value of the parameter 3 in the target URL link corresponding to the start URL link that satisfies the preset condition 3 to the value of the parameter 3 in the start URL link 4, so as to obtain the target URL link 4, and the electronic device 100 may display the page 3 based on the target URL link 4.
In some embodiments, if the electronic device 100 cannot determine the level of the page 2 based on the history, the electronic device 100 may refer to the description of the foregoing step S402 to step S408, and details thereof are omitted here.
In some embodiments, if the electronic device 100 cannot acquire the display data of the page 2 based on steps S417 to S422, the electronic device 100 acquires the display data of the page 2 and displays the page 2 based on the display data, which may refer to the description of steps S402 to S408, and is not described herein again. In this process, the start URL link 3 and the target URL link 5 (which may also be referred to as a fourth target URL link) corresponding to the page 2 acquired by the electronic device 100 may be stored in the manner described in step S413, and details are not described here. The data request transmitted by the electronic device 100 to the cloud server 200 based on the start URL link 3 may be referred to as a third data request.
As used in the above embodiments, the term "when …" may be interpreted to mean "if …" or "after …" or "in response to a determination of …" or "in response to a detection of …", depending on the context. Similarly, depending on the context, the phrase "at the time of determination …" or "if (a stated condition or event) is detected" may be interpreted to mean "if the determination …" or "in response to the determination …" or "upon detection (a stated condition or event)" or "in response to detection (a stated condition or event)".
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed on a computer, cause the processes or functions described in accordance with the embodiments of the application to occur, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, digital subscriber line) or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others.
One of ordinary skill in the art will appreciate that all or part of the processes in the methods of the above embodiments may be implemented by hardware related to instructions of a computer program, which may be stored in a computer-readable storage medium, and when executed, may include the processes of the above method embodiments. And the aforementioned storage medium includes: various media capable of storing program codes, such as ROM or RAM, magnetic or optical disks, etc.

Claims (29)

1. A method for opening a page, comprising:
the method comprises the steps that the electronic equipment displays a first interface, wherein the first interface comprises a first option, and the first option corresponds to a first page;
the electronic equipment receives first input of a user for the first option;
the electronic equipment acquires a first starting URL link of the first page;
when a history record of the electronic equipment comprises a second initial URL link meeting a first preset condition, the electronic equipment acquires the page level of the second initial URL link from the history record, wherein the first preset condition comprises the same parameter number and the same parameter type as the first initial URL link;
the electronic equipment determines a third initial URL link meeting a second preset condition and a first target URL link corresponding to the third initial URL link from a page chain table corresponding to the page level of the second initial URL link, wherein the second preset condition comprises the same parameter number and the same parameter type as the first initial URL link, and only one parameter value is different from that of the first initial URL link;
the electronic equipment determines that the value of the first parameter in the first starting URL link is different from the value of the first parameter in the third starting URL link, wherein the value of the first parameter in the first starting URL link is the first value;
the electronic equipment modifies the value of the first parameter in the first target URL link into the first value to obtain a second target URL link;
and the electronic equipment opens and displays a second interface based on the second target URL link, wherein the second interface comprises the first page.
2. The method of claim 1, wherein before the electronic device displays the first interface, the method further comprises:
the electronic equipment displays a third interface, wherein the third interface comprises a second option corresponding to the first interface;
the electronic device receiving and responding to a second input aiming at the second option, and obtaining the third starting URL link;
the electronic equipment sends a first data request to a cloud server based on the third starting URL link;
the electronic equipment receives a first target URL link sent by the cloud server;
the electronic equipment opens and displays the first interface based on the first target URL link;
and the electronic equipment determines the page level of the third initial URL link and stores the third initial URL link and the first target URL link into a page linked list corresponding to the page level of the third initial URL link.
3. The method of claim 1, wherein before the electronic device displays the first interface, the method further comprises:
the electronic equipment displays a third interface, wherein the third interface comprises a third option, and the third option corresponds to a fourth interface;
the electronic device receives and responds to a third input aiming at the third option, and acquires the second starting URL link, wherein the page level of the second starting URL link is the same as the page level of the third starting URL link;
the electronic device sends a second data request to a cloud server based on the second start URL link;
the electronic equipment receives a third target URL link sent by the cloud server;
the electronic device opens and displays the fourth interface based on the third target URL link;
the electronic device determines a page rank of the second start URL link and stores the second start URL link and the page rank of the second start URL link in the history.
4. The method according to claim 3, wherein the electronic device determines the page rank of the second start URL link, and specifically comprises:
the electronic equipment acquires a fourth initial URL link meeting a third preset condition and the page level of the fourth initial URL link, wherein the third preset condition is that the number of parameters in the fourth initial URL link is less than that in the second initial URL link, and the second initial URL link comprises the parameters in the fourth initial URL link;
the electronic device determines that the page rank of the second start URL link is the next level of the page rank of the fourth start URL link.
5. The method of claim 1, wherein the electronic device opens and displays a second interface based on the second target URL link, the method further comprising:
the electronic device sends a data request for the first page to a cloud server based on the second target URL link;
when the electronic equipment receives the display data sent by the cloud server, the electronic equipment opens and displays the second interface based on the display data.
6. The method of claim 1, wherein the electronic device opens and displays a second interface based on the second target URL link, the method further comprising:
the electronic device sends a data request for the first page to a cloud server based on the second target URL link;
the electronic equipment receives access failure information sent by the cloud server;
the electronic device sends a third data request to the cloud server based on the first start URL link;
the electronic equipment receives a fourth target URL link sent by the cloud server;
the electronic device opens and displays the second interface based on the fourth target URL link;
and the electronic equipment stores the first starting URL link and the fourth target URL link into a page chain table corresponding to the page level of the second starting URL link.
7. The method of claim 1, further comprising:
when the history record of the electronic equipment does not include a start URL link meeting a first preset condition, the electronic equipment acquires a fifth start URL link meeting a third preset condition and a page level of the fifth start URL link from the history record, wherein the third preset condition is that the number of parameters in the fifth start URL link is less than that in the first start URL link, and the first start URL link includes the parameters in the fifth start URL link;
and the electronic equipment determines a third initial URL link meeting a second preset condition and a first target URL link corresponding to the third initial URL link from a page chain table corresponding to the next page level of the fifth initial URL link.
8. The method of claim 1, further comprising:
the electronic equipment is stored with a plurality of page linked lists with different page levels, the page linked lists with different page levels comprise a first linked list, the first linked list comprises a plurality of URL link pairs of appointed page levels, and the URL link pairs comprise a starting URL link and a target URL link of the same page;
the electronic equipment acquires parameter types and parameter numbers in a first initial URL link;
when the electronic equipment determines that the parameter type of the first starting URL link is the same as the parameter type of the starting URL link in the first linked list, and the number of the parameters in the first starting URL link is the same as the number of the parameters in the starting URL link in the first linked list, the electronic equipment determines a third starting URL link meeting the second preset condition and a first target URL link corresponding to the third starting URL link from the first linked list.
9. The method of claim 1, further comprising:
the electronic device determining a page rank of the second start URL link as a page rank of the first start URL link;
and the electronic equipment stores the first starting URL link and the second target URL link corresponding to the first starting URL link into the history record and/or a page linked list corresponding to the page level of the first starting URL link.
10. The method of claim 7, further comprising:
determining, by the electronic device, a page rank next to a page rank of the fifth starting URL link as a page rank of the first starting URL link;
and the electronic equipment stores the first starting URL link and the second target URL link corresponding to the first starting URL link into the history record and/or a page linked list corresponding to the page level of the first starting URL link.
11. The method of claim 8, further comprising:
the electronic equipment determines the page level of the first linked list as the page level of the first starting URL link;
the electronic device stores the first start URL link and the second target URL link corresponding to the first start URL link in the history and/or the first linked list.
12. The method of claim 1, further comprising:
the second start URL link and the third start URL link are the same.
13. The method of claim 1, further comprising:
the first interface further comprises a second page, and the starting URL link of the second page is the third starting URL link;
the page rank of the third start URL link is the same as the page rank of the second start URL link.
14. An electronic device comprising a communication device, a display screen, a memory, and a processor coupled to the memory, the memory having stored therein executable instructions, wherein:
the display screen is used for displaying a first interface, the first interface comprises a first option, and the first option corresponds to a first page;
the processor is used for receiving a first input of a user for the first option;
the processor is further configured to obtain a first start URL link of the first page;
when a history record of the memory includes a second initial URL link meeting a first preset condition, the processor is further configured to obtain a page level of the second initial URL link from the history record, where the first preset condition includes the same number of parameters and the same type of parameters as the first initial URL link;
the processor is further configured to determine, from a page chain table corresponding to a page level of the second start URL link in the memory, a third start URL link and a first target URL link corresponding to the third start URL link, where the third start URL link and the first target URL link meet a second preset condition, where the second preset condition includes that the number of parameters and the type of parameters are the same as those of the first start URL link, and only one parameter has a different value from that of the first start URL link;
the processor is further configured to determine that a value of a first parameter in the first start URL link is different from a value of a first parameter in the third start URL link, wherein the value of the first parameter in the first start URL link is a first value;
the processor is further configured to modify a value of a first parameter in the first target URL link to the first value to obtain a second target URL link;
the display screen is further configured to open and display a second interface based on the second target URL link, the second interface including the first page.
15. The electronic device of claim 14, wherein the first preset condition comprises:
the same number of parameters and the same parameter type as the first start URL link.
16. The electronic device of claim 14, wherein the second preset condition comprises:
the first start URL link has the same number of parameters and the same parameter type, and has a value of only one parameter different from that of the first start URL link.
17. The electronic device of claim 14, wherein the display screen is further configured to, prior to displaying the first interface, display a third interface, the third interface including a second option corresponding to the first interface;
the processor is configured to receive and respond to a second input for the second option by retrieving the third start URL link;
the communication device is configured to send a first data request to a cloud server based on the third start URL link;
the communication device is further used for receiving a first target URL link sent by the cloud server;
the display screen is further used for opening and displaying the first interface based on the first target URL link;
the processor is further configured to determine a page rank of the third start URL link, and store the third start URL link and the first target URL link in a page chain table corresponding to the page rank of the third start URL link in the memory.
18. The electronic device of claim 14, wherein the display screen is further configured to, prior to displaying the first interface, display a third interface, the third interface including a third option, the third option corresponding to a fourth interface;
the processor is configured to receive and respond to a third input for the third option, to obtain the second start URL link, where a page rank of the second start URL link is the same as a page rank of the third start URL link;
the communication device is configured to send a second data request to a cloud server based on the second start URL link;
the communication device is further used for receiving a third target URL link sent by the cloud server;
the display screen is further used for opening and displaying the fourth interface based on the third target URL link;
the processor is configured to determine a page rank of the second start URL link and store the second start URL link and the page rank of the second start URL link in the history of the memory.
19. The electronic device of claim 18, wherein the processor is configured to determine a page rank of the second start URL link, and specifically includes:
the processor is configured to obtain a fourth start URL link and a page rank of the fourth start URL link, where the fourth start URL link meets a third preset condition that the number of parameters in the fourth start URL link is one less than that in the second start URL link, and the second start URL link includes the parameters in the fourth start URL link;
the processor is further configured to determine that a page rank of the second start URL link is a next level of a page rank of the fourth start URL link.
20. The electronic device according to claim 14, wherein the display screen is configured to open and display a second interface based on the second target URL link, and specifically includes:
the communication device is configured to send a data request for the first page to a cloud server based on the second target URL link;
when the communication device receives the display data sent by the cloud server, the display screen is used for opening and displaying the second interface based on the display data.
21. The electronic device according to claim 14, wherein the display screen is configured to open and display a second interface based on the second target URL link, and specifically includes:
the communication device is configured to send a data request for the first page to a cloud server based on the second target URL link;
the communication device is further used for receiving access failure information sent by the cloud server;
the communication device is further configured to send a third data request to the cloud server based on the first start URL link;
the communication device is further used for receiving a fourth target URL link sent by the cloud server;
the display screen is used for opening and displaying the second interface based on the fourth target URL link;
the processor is configured to store the first start URL link and the fourth target URL link in a page chain table corresponding to a page level of the second start URL link.
22. The electronic device according to claim 14, wherein when the history record in the memory does not include a start URL link satisfying a first preset condition, the processor is configured to obtain a fifth start URL link satisfying a third preset condition and a page rank of the fifth start URL link from the history record, wherein the third preset condition is that the fifth start URL link is less than one parameter of the first start URL link, and the first start URL link includes the parameter of the fifth start URL link;
the processor is further configured to determine a third start URL link meeting a second preset condition and a first target URL link corresponding to the third start URL link from a page chain table corresponding to a next page level of the fifth start URL link.
23. The electronic device of claim 14, wherein the memory is configured to store a plurality of page link lists for different page levels, the plurality of page link lists for different page levels including a first link list comprising a plurality of URL link pairs for a given page level, the URL link pairs comprising a start URL link and a target URL link for the same page;
the processor is used for acquiring parameter types and parameter numbers in the first starting URL link;
when the processor determines that the parameter type of the first start URL link is the same as the parameter type of the start URL link in the first linked list, and the number of the parameters in the first start URL link is the same as the number of the parameters in the start URL link in the first linked list, the processor is configured to determine a third start URL link meeting the second preset condition and a first target URL link corresponding to the third start URL link from the first linked list.
24. The electronic device of claim 14, wherein the processor is configured to determine a page rank of the second starting URL link as a page rank of the first starting URL link;
the processor is configured to store the first start URL link and the second target URL link corresponding to the first start URL link into the history in the memory and/or a page link table corresponding to a page level of the first start URL link.
25. The electronic device of claim 22, wherein the processor is configured to determine a page rank next to a page rank of the fifth starting URL link as a page rank of the first starting URL link;
the processor is further configured to store the first start URL link and the second target URL link corresponding to the first start URL link in the history in the memory and/or a page link list corresponding to a page rank of the first start URL link.
26. The electronic device of claim 23, wherein the processor is configured to determine a page rank of the first linked list as a page rank of the first starting URL link;
the processor is configured to store the first start URL link and the second target URL link corresponding to the first start URL link in the history in the memory and/or the first linked list.
27. The electronic device of claim 14, wherein the second start URL link and the third start URL link are the same.
28. The electronic device of claim 14, wherein the first interface further comprises a second page, wherein the start URL link of the second page is the third start URL link;
the page rank of the third start URL link is the same as the page rank of the second start URL link.
29. A computer storage medium comprising computer instructions that, when executed on an electronic device, cause the electronic device to perform the method of any of claims 1-13.
CN202110261623.4A 2021-03-10 2021-03-10 Page opening method and electronic equipment Active CN112632424B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110261623.4A CN112632424B (en) 2021-03-10 2021-03-10 Page opening method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110261623.4A CN112632424B (en) 2021-03-10 2021-03-10 Page opening method and electronic equipment

Publications (2)

Publication Number Publication Date
CN112632424A CN112632424A (en) 2021-04-09
CN112632424B true CN112632424B (en) 2021-06-04

Family

ID=75297741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110261623.4A Active CN112632424B (en) 2021-03-10 2021-03-10 Page opening method and electronic equipment

Country Status (1)

Country Link
CN (1) CN112632424B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220260A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 The method and device that a kind of page is shown
CN109429100A (en) * 2017-08-21 2019-03-05 北京国双科技有限公司 A kind of storage method of page path, apparatus and system
CN110020237A (en) * 2017-09-18 2019-07-16 北京国双科技有限公司 Webpage jump method and device
CN111124493A (en) * 2019-12-17 2020-05-08 天津国芯科技有限公司 Method and circuit for reducing program jump overhead in CPU
CN111143723A (en) * 2019-12-26 2020-05-12 五八同城信息技术有限公司 Page jump method and device, electronic equipment and storage medium
CN112258295A (en) * 2020-11-04 2021-01-22 支付宝(杭州)信息技术有限公司 Recording processing method, device and equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10530746B2 (en) * 2017-10-17 2020-01-07 Servicenow, Inc. Deployment of a custom address to a remotely managed computational instance
CN112711723B (en) * 2019-10-25 2024-04-30 北京搜狗科技发展有限公司 Malicious website detection method and device and electronic equipment
CN111666513A (en) * 2020-04-23 2020-09-15 北京三快在线科技有限公司 Page processing method and device, electronic equipment and readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107220260A (en) * 2016-03-22 2017-09-29 阿里巴巴集团控股有限公司 The method and device that a kind of page is shown
CN109429100A (en) * 2017-08-21 2019-03-05 北京国双科技有限公司 A kind of storage method of page path, apparatus and system
CN110020237A (en) * 2017-09-18 2019-07-16 北京国双科技有限公司 Webpage jump method and device
CN111124493A (en) * 2019-12-17 2020-05-08 天津国芯科技有限公司 Method and circuit for reducing program jump overhead in CPU
CN111143723A (en) * 2019-12-26 2020-05-12 五八同城信息技术有限公司 Page jump method and device, electronic equipment and storage medium
CN112258295A (en) * 2020-11-04 2021-01-22 支付宝(杭州)信息技术有限公司 Recording processing method, device and equipment

Also Published As

Publication number Publication date
CN112632424A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
US11032388B2 (en) Methods for prerendering and methods for managing and configuring prerendering operations
US10372748B2 (en) Methods and apparatuses for presenting content
US9530099B1 (en) Access to network content
CN102771080B (en) Use the system and method that the efficient media of buffer memory transmits
KR100990098B1 (en) Data processing system, data processing method, information processing device, and computer readable recording medium for recording the computer program
US10871881B2 (en) Dynamically picking content from social shares to display in a user interface
US20090019364A1 (en) Method and apparatus for generating electronic content guide
JP6181867B2 (en) Application information search method and apparatus
JP6995211B2 (en) Enhanced online privacy
WO2016000507A1 (en) Traffic-saving mode search service method, server, client and system
US20150012533A1 (en) Method and client device for accessing webpage
US20170272793A1 (en) Media content recommendation method and device
WO2015000342A1 (en) Method and client device for accessing webpage
CN111741338A (en) HLS streaming media playing method, system, equipment and storage medium
US9722967B2 (en) Exposing file metadata as LDAP attributes
CN112632424B (en) Page opening method and electronic equipment
CN103942239A (en) Information processing apparatus and information processing method
CN112052377A (en) Resource recommendation method, device, server and storage medium
JP6752944B2 (en) Devices and methods for sharing images received from user terminals with other user terminals
CN111629256B (en) Page display method, equipment and computer storage medium
CN112783548B (en) Access method and device of network system
JP2012521055A (en) Single library for all media content
JP2001060157A (en) Inter-application message exchange system
US20150227534A1 (en) Method for processing data query using information-centric network
US7937441B2 (en) Data-control device and method of controlling same

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20211119

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518000

Patentee before: Shenzhen Zhixin new information technology Co.,Ltd.