CN112328922A - Processing method and device - Google Patents

Processing method and device Download PDF

Info

Publication number
CN112328922A
CN112328922A CN202011380962.6A CN202011380962A CN112328922A CN 112328922 A CN112328922 A CN 112328922A CN 202011380962 A CN202011380962 A CN 202011380962A CN 112328922 A CN112328922 A CN 112328922A
Authority
CN
China
Prior art keywords
target
address
access
page
access page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011380962.6A
Other languages
Chinese (zh)
Inventor
邝宇豪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202011380962.6A priority Critical patent/CN112328922A/en
Publication of CN112328922A publication Critical patent/CN112328922A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

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 processing method and a device, wherein the method comprises the following steps: obtaining an interactive identifier of a preset operation executed at a target position, wherein the interactive identifier points to a target access address; and processing the interactive identifier to obtain a first network address, wherein the first network address can point to a current access page and an updated access page of the target access address, so that if the interactive identifier is triggered, the current access page or the updated access page is returned.

Description

Processing method and device
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a processing method and apparatus.
Background
Typically, hyperlinks are added to documents such as slides, tables, or words, so that when a user accesses the document, the user can access the corresponding page content by clicking on the hyperlink.
However, there may be cases where a hyperlink in a document is invalid, and thus, the user may not have access to the page content to which the hyperlink corresponds.
Disclosure of Invention
In view of the above, the present application provides a processing method and apparatus, as follows:
a method of processing, comprising:
obtaining an interactive identifier of a preset operation executed at a target position, wherein the interactive identifier points to a target access address;
and processing the interactive identifier to obtain a first network address, wherein the first network address can point to a current access page and an updated access page of the target access address, so that if the interactive identifier is triggered, the current access page or the updated access page is returned.
The method preferably obtains the interactive identifier of the preset operation performed at the target position, and includes:
receiving an interactive identifier sent by a target application process, wherein the interactive identifier is an identifier added to an input area of the target application process or received by the target application process; or the like, or, alternatively,
and monitoring the editing operation acting on the target application process, acquiring an object pointed by the editing operation acting on the target position of the target application process, and taking the object as the interactive identifier.
The method preferably obtains the interactive identifier of the preset operation performed at the target position, and includes:
receiving a long link which is sent by a first target application process after receiving the long link added to an input area of the first target application process or receiving a long link pushed by a server side, and taking the long link as the interactive identification; or the like, or, alternatively,
acquiring a long link on which a copy operation is executed in an address bar of a second target application process, and taking the long link as the interactive identification; or the like, or, alternatively,
obtaining public information or control information pushed by a server and received by a third application process, and taking the public information or the control information as the interactive identification;
and acquiring a long link, a public number message or control information which is sent to a fifth application process or a client by a fourth application process, and taking the long link, the public number message or the control information as the interactive identification.
Preferably, the method for processing the interactive identifier to obtain the first network address includes:
determining accessibility of the target access address;
if the target access address is accessible, storing a current access page and corresponding identification information of the target access address, generating a short link corresponding to the target access website, and taking the short link as the first network address; or the like, or, alternatively,
if the target access address is inaccessible, a source address of the target access address is acquired, a current access page and corresponding identification information of the source address are stored, and the source address is used as the first network address or the source address is processed into a short link and then used as the first network address.
The above method, preferably, further comprises:
accessing the first network address every preset time interval;
if the access page pointed by the first network address is updated, storing the updated access page and corresponding identification information;
and if the access page pointed by the first network address is not updated, the updating operation related to the current access page is not executed.
Preferably, the method further includes, after obtaining the first network address:
and returning the first network address to a corresponding target position of the target application process.
Preferably, in the above method, if the interaction identifier is triggered, returning to the current access page or the updated access page includes:
if the interactive identification is determined to be triggered in a corresponding mode, determining the accessibility of a target access address corresponding to the first network address;
if the target access address is accessible, saving a current access page corresponding to the target access address and corresponding identification information, and returning the current access page to enable the electronic equipment to output the current access page; or the like, or, alternatively,
and if the target access address is not accessible, returning the saved access page so that the electronic equipment can output the access page.
The method, preferably, returning the saved access page includes:
and obtaining the identification information of the access page, and returning the access page meeting the return condition to the electronic equipment according to the identification information.
Preferably, the method for outputting the access page by the electronic device includes:
if the interaction identifier is triggered, outputting the content of the access page on a sub-process interface of a target application process of the electronic equipment, or building a browser process different from the target application process in the electronic equipment to output the access page, or outputting the access page on an application process associated with the target access address in the electronic equipment; or, outputting the content of the access page in a superposition and/or filling mode at a target position or a non-target position of the electronic equipment.
A processing apparatus, comprising:
the identification obtaining unit is used for obtaining an interactive identification which is executed with preset operation at a target position, and the interactive identification points to a target access address;
and the address obtaining unit is used for processing the interactive identifier to obtain a first network address, and the first network address can point to the current access page and the updated access page of the target access address, so that the interactive identifier is triggered to return to the current access page or the updated access page.
An electronic device, comprising:
the memory is used for storing the application program and data generated by the running of the application program;
a processor for executing the application to implement: obtaining an interactive identifier of a preset operation executed at a target position, wherein the interactive identifier points to a target access address; and processing the interactive identifier to obtain a first network address, wherein the first network address can point to a current access page and an updated access page of the target access address, so that if the interactive identifier is triggered, the current access page or the updated access page is returned.
A storage medium having stored therein computer-executable instructions that, when loaded and executed by a processor, carry out a processing method as claimed in any preceding claim.
According to the technical scheme, in the processing method and the processing device disclosed by the application, the interaction identifier which is executed with the preset operation and points to the target access address is obtained, so that the interaction identifier can be processed to obtain the current access page which can point to the target access address and the first network address of the updated access page, and based on the interaction identifier, the current access page which is pointed by the first network address or the updated access page can be returned when the interaction identifier is triggered. Therefore, even if the access address corresponding to the interactive identifier fails, the current access page or the updated access page pointed by the first network address can be returned through the corresponding first network address, so that the condition that a user cannot access the page is avoided, and the reliability of page access is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings without creative efforts.
Fig. 1 is a flowchart of a processing method according to an embodiment of the present disclosure;
FIGS. 2-6 are exemplary diagrams of embodiments of the present application, respectively;
FIG. 7 is a partial flow chart of a processing method according to an embodiment of the present disclosure;
FIG. 8 is another flow chart of a processing method according to an embodiment of the present disclosure;
FIGS. 9-13 are other exemplary diagrams of embodiments of the present application, respectively;
fig. 14 is a schematic structural diagram of a processing apparatus according to a second embodiment of the present application;
fig. 15 is another schematic structural diagram of a processing apparatus according to the second embodiment of the present application;
fig. 16 is a schematic structural diagram of an electronic device according to a third embodiment of the present application;
FIGS. 17-19 are diagrams of examples of applications of the present application for adding a target link to a document.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Referring to fig. 1, a flowchart of an implementation of a processing method provided in an embodiment of the present application is shown, where the method may be applied to an electronic device capable of outputting a page and processing data, such as a mobile phone, a pad, a computer, or a server. The technical solution in this embodiment may be implemented by a control module configured in the electronic device, such as a short link system, and is mainly used to improve the reliability of page access, but may also be implemented by other platforms or hardware devices that implement the same function due to the short link system in other embodiments.
Specifically, the method in this embodiment may include the following steps:
step 101: and obtaining the interactive identification of the preset operation executed at the target position.
The interactive identifier points to a target access address, the target access address corresponds to an access page or an access interface, the target access address is an address corresponding to the access page, such as a web address corresponding to a current page of the browser on an address bar, and further such as a public address corresponding to a public number push page, and the like. The preset operation can be an input operation or a copy operation, and the operated object is an interactive identifier.
It should be noted that the above access page is a page or an interface with display content, such as a public number push page, a commodity information page, or a marathon registration interface.
Specifically, the target location is a location where the interaction identifier is located on the target application, such as an address bar location where a web address of a current page of the browser is located when a copy operation is performed on the web address, an input location where a hyperlink input to a current editing page in a document or mail is located, a location where a message including a public link received in the chat application is located or a display location of a received network address, or an input box where a target access address is input, and the like.
In an implementation manner, in this embodiment, when the pre-operation on the target position is executed, step 101 is started to be executed, and the interactive identifier of the pre-operation executed on the target position is identified and extracted, so as to obtain the interactive identifier. For example, when the web page address on the address bar of the browser is copied, the short link system in this embodiment obtains the copied web page address on the address bar, for example, when a hyperlink is input in a document or a mail, the short link system in this embodiment obtains the input hyperlink, for example, when a chat application receives a message containing a public number link, the short link system in this embodiment obtains a public number message link in the message, and so on.
Step 102: and processing the interactive identification to obtain a first network address.
The first network address can point to a current access page and an updated access page of the target access address, so that the current access page or the updated access page is returned when the interactive identifier is triggered.
In particular, the first network address may be stored in a location associated with the interaction identifier, so that, in a case where the interaction identifier is triggered, a current access page or an updated access page pointed to by the first network address may be returned to a current target application, such as a browser or a chat application, through the first network address.
The current access page may be an access page corresponding to the interaction identifier when the preset operation is executed, or an access page or an access interface corresponding to a target access address corresponding to the current interaction identifier when the interaction identifier is obtained, and the updated access page may be an access page after the current access page is updated once or for multiple times. In this embodiment, the short link system obtains the current access page capable of pointing to the target access address and the first network address of the updated access page by processing the interactive identifier, so that when the interactive identifier is triggered, whether the target access address is accessible or not, the executed access page can be returned through the first network address corresponding to the interactive identifier.
As can be seen from the foregoing solution, in the processing method provided in the first embodiment of the present application, by obtaining the interaction identifier pointing to the target access address, where the preset operation is executed on the target location, the interaction identifier may be processed to obtain the current access page capable of pointing to the target access address and the first network address of the updated access page, and based on this, when the interaction identifier is triggered, the current access page pointed to by the first network address or the updated access page may be returned. It can be seen that, in this embodiment, the interaction identifier corresponding to the target access address is processed to obtain the first network address capable of pointing to the current access page or the updated access page, so that even if the access address corresponding to the interaction identifier fails, the current access page or the updated access page pointed to by the first network address can be returned through the corresponding first network address, thereby avoiding a situation that the user cannot access the page, and improving reliability of page access.
In an implementation manner, when the interaction identifier is obtained in step 101, the following implementation manner may be specifically used:
and receiving the interactive identification sent by the target application process. The interactive identifier is an identifier added to the input area of the target application process or an identifier received by the target application process.
The target application process refers to an application process currently running on the electronic device, such as a browser application, a chat application, a document editing application, or a mail application currently used by a user.
Correspondingly, the interactive identifier sent by the target application process refers to: when the target position in the target application process has the interactive identifier input in the input area of the target application process, the target application process sends the interactive identifier input in the input area of the target application process to the short link system in this embodiment. For example, when a user inputs a hyperlink in a current editing interface of a document or an email, the process of the document or the email sends the hyperlink input by the user to the short link system in this embodiment, and the short link system in this embodiment receives the hyperlink sent by the process of the document or the email.
Or, the interactive identifier sent by the target application process refers to: when the target application process receives a message sent by another application, the target application sends an interactive identifier included in the message to the short link system in this embodiment. For example, when the chat application receives a message including a public number link, the process of the chat application sends the public number link to the short link system in this embodiment, and the short link system in this embodiment receives the public number message link sent by the process of the chat application.
In another implementation manner, when the interaction identifier is obtained in step 101, the following implementation manner may be specifically used:
and monitoring the editing operation acting on the target application process to obtain an object executed by the editing operation acting on the target position of the target application process, and taking the object as the interactive identifier.
The short link system in this embodiment may monitor the editing operation of the target application process through a script and the like, and further obtain an object executed by the editing operation of the target position acting on the target application process when it is monitored that the target application process has a corresponding editing operation at the target position, and further use the object as the interactive identifier.
Taking a browser application as an example, the short link system in this embodiment monitors editing operation of a browser process, and when it is monitored that an address copying operation is performed on a target position, that is, an address bar, in the browser process, the short link system obtains a copied web page address acting on the address bar of the browser process, and uses the web page address as an interactive identifier.
In a specific implementation, the following conditions may be in step 101:
in one case, in step 101, a long link sent by the first target application process after receiving the long link added to the input area of the first target application process or receiving the long link pushed by the server may be received, and then the long link is used as the interactive identifier.
For example, the short link system in this embodiment receives a long link sent by a first target application process such as a document or an email after receiving a long link input or pasted by a user in an input area, as shown in fig. 2, or the short link system in this embodiment receives a long link sent by a first target application process such as a chat application after receiving a long link pushed by a server, as shown in fig. 3, where the long link is the interactive identifier obtained in step 101.
In one case, in step 101, a long link on which a copy operation is performed in the address bar of the second target application process may be obtained, and the long link is used as the interactive identifier.
For example, the short link system in this embodiment obtains a long link in which a copy operation is performed on an address bar of a second application process, such as a browser, as shown in fig. 4, where the long link is the interactive identifier obtained in step 101.
In one case, in step 101, a public information or control information pushed by a server and received by a third application process may be acquired, and the public information or control information may be used as an interactive identifier.
For example, the short link system in this embodiment obtains comic public number messages or picture control information pushed by the chat server and received by a third application process such as the chat application, as shown in fig. 5, where the comic public number messages or picture control information is the interactive identifier obtained in step 101.
In one case, the long link, the public number message, or the control information sent by the fourth application process to the fifth application process or the client is obtained in step 101, and the long link, the public number message, or the control information is used as the interactive identifier.
For example, the short link system in this embodiment obtains a web page length link, a comic public number message, or control information, which is sent by the running application process or the like to the social application process or the mobile phone client, as shown in fig. 6, where the web page length link, the comic public number message, or the control information is the interactive identifier obtained in step 101.
Based on this, the short link system in this embodiment obtains the current access page pointing to the target access address and the first network address of the updated access page by processing the interactive identifier, so that when the interactive identifier is triggered, the access page pointed to by the interactive identifier can be returned through the first network address, and a situation that page access cannot be realized under the condition that the target access address is not accessible is avoided.
In an implementation manner, after the short link system in this embodiment obtains the interactive identifier, when the interactive identifier is processed in step 102, the obtaining of the first network address may be implemented by determining the accessibility of the target access address, which is specifically implemented as follows:
firstly, determining the accessibility of a target access address, namely judging whether an access page of the target access address can be read through the target access address, for example, judging whether the target access address is invalid;
if the target access address is accessible, that is, the target access address is not invalid, the current access page of the target access address can be read, at this time, the short link system in this embodiment stores the current access page of the target access address and the corresponding identification information, and generates a short connection corresponding to the target access address, and further takes the short connection as a first network address;
if the target access address is inaccessible, that is, the target access address is invalid and the current access page of the target access address cannot be read, at this time, the short link system in this embodiment acquires the source address of the target access address, stores the current access page of the source address and corresponding identification information, and further takes the source address as the first network address or takes a short link as the first network address after processing the source address into a short link.
In a case that the target access address is accessible, the current access page of the target access address may be stored in the electronic device implementing the embodiment, and the identification information corresponding to the current access page of the target access address is used to uniquely characterize the current access page, for example, information such as a page version number 2020-10-30 is used as the identification information to uniquely characterize the current access page. Meanwhile, the short link system in this embodiment generates a corresponding short link for the target access address as the first network address, where the short link can point to the stored current access page and the identification information;
in the case that the target access address is inaccessible, the short link system in this embodiment may analyze the target access address to obtain a source address of the target access address, and further store a current access page of the source address and corresponding identification information, which may be specifically stored in the electronic device implementing this embodiment, where the identification information corresponding to the current access page of the source address is used to uniquely characterize the access page, for example, a version number is used as the identification information.
It should be noted that, in the case that the target access address is not accessible, the short-link system in this embodiment may use the source address of the target access address as the first network address, or may process the source address of the target access address into a form of a short link, use the short link as the first network address, and point to the currently accessed page and the representation information of the source address by the first network address.
Based on this, when the interactive identifier is triggered, the access page pointed by the interactive identifier can be returned through the first network address, so that the situation that page access cannot be realized under the condition that the target access address is inaccessible is avoided.
In one implementation, the method in this embodiment may further include the following steps, as shown in fig. 7:
step 103: the first network address is accessed every preset time.
Here, the preset time interval refers to a time interval designated, and the preset time may be a fixed time interval or a non-fixed time interval, such as accessing the first network address once every 1 minute or accessing the first network address once every 5 minutes.
Step 104: and judging whether the access page pointed by the first network address has updating or not, and if so, pointing to the step 105.
In this embodiment, the access page pointed to by the first network address may be compared with the access page corresponding to the first network address stored in history to determine whether the access page pointed to by the first network address is updated, if the access page pointed to by the first network address is compared with the access page corresponding to the first network address stored in history, it is characterized that the access page pointed to by the first network address is not updated, and if the access page pointed to by the first network address is not compared with the access page corresponding to the first network address stored in history, it is characterized that the access page pointed to by the first network address is updated.
Step 105: and storing the updated access page and the identification information.
In this embodiment, under the condition that it is determined that the access page to which the first network address points is updated, snapshot processing may be performed on the updated access page, so that the updated access page that is snapshot-taken may be stored, and the updated access page that is snapshot-taken may be stored in the same storage location as the historically-stored access page to which the first network address points, and meanwhile, identification information is generated for the updated access page, and the identification information uniquely represents the updated access page, so as to distinguish the updated access page from other historically-stored access pages. Specifically, a page version number such as 2020-11-01 may be used as the identification information.
And when the access page pointed by the first network address is judged to have no update, the update operation related to the access page is not executed, for example, the access page executed by the first network address and the identification information do not need to be saved again.
Based on this, in this embodiment, after obtaining the first network address in step 102, the following steps may also be included, as shown in fig. 8:
step 106: and returning the first network address to the corresponding target position of the target application process.
Based on this, in this embodiment, the first network address is returned to the target location, the first network address is associated with the interaction identifier on the target location, and when the interaction identifier is triggered, the access page pointed to by the first network address is returned through the associated first network address.
For example, the short link system in this embodiment processes the long link of the web page copied on the address bar of the browser to obtain a short link, returns the short link to the address bar to be associated with the long link, and returns the access page pointed by the short link through the associated short link when the long link is triggered.
Specifically, in this embodiment, the interaction identifier on which the preset operation is performed may be processed into a first network address and then added to the target location, for example, the short link system in this embodiment processes a long link to be pasted in a document or a mail page into a short link and then adds the short link to an input location in the document or the mail page; or, in this embodiment, the first network address is directly saved in the target location to replace the interactive identifier on the target location on which the preset operation is executed, for example, the short link system in this embodiment saves the short link processed by the copied long link in the address bar or in the favorite corresponding to the address bar; or, in this embodiment, the interactive identifier in another form is processed into the first network address, and then added to the target location, for example, the short link system in this embodiment processes the comic public number message received by the chat application into a short link, and adds the short link to the location corresponding to the comic public number message in the chat application.
Based on this, when the interactive identifier on the target location is triggered, the present embodiment returns the current access page or the updated access page pointed by the first network address through the first network link stored on the target location. For example, when a long link in a document or an email page is clicked, the short link system in this embodiment obtains an access page pointed by the short link through the short link stored in the position of the long link, which may include an initial access page and an updated access page, and returns the access page pointed by the short link based on the initial access page and the updated access page. For another example, when the long link in the address bar is clicked, the access page pointed by the long link is obtained through the short link corresponding to the address bar or the favorite, and the access page is returned.
Based on the above implementation, in this embodiment, when the interaction identifier is triggered, the current access page or the updated access page may be returned in the following manner, specifically as follows:
if the interactive identifier is triggered in a corresponding mode, for example, the interactive identifier is triggered by clicking or copied and the like when an access page of a target access address needs to be read, firstly, the accessibility of the target access address corresponding to the first network address is determined;
if the target access address is accessible, saving a current access page corresponding to the target access address and corresponding identification information, and returning the current access page, so that the electronic equipment can output the current access page.
That is to say, when the target access address is accessible, the electronic device implementing the embodiment can output the current access page in addition to returning the current access page of the target access address, and can also store the identification information such as the current access page of the target access address and the page version number.
And if the target access address is not accessible, returning the stored access page, and certainly returning the identification information of the stored access page at the same time, so that the electronic equipment can output the returned access page and the identification information. For example, the short link system in this embodiment may obtain a source address corresponding to the target access address, and then return the stored access pages pointed by the corresponding first network address according to the source address, where the stored access pages may include an initial access page, and may also include access pages that have been updated once or multiple times.
Specifically, under the condition that the target access address is inaccessible, when the stored access page is returned, the identification information of the stored access page can be obtained first, and then the access page meeting the return condition in the stored access page is returned to the electronic device according to the identification information.
Wherein, the returning condition may be: the saved time of the access page is maximum or minimum, and at the moment, the output of the electronic equipment is an initial access page or a last saved access page;
alternatively, the return condition may be: the identification information of the access page is matched with the identification information in the input operation, where the input operation is an operation of outputting the obtained identification information and then selecting, by a user, the output identification information, as shown in fig. 9, in this embodiment, the short link system outputs the identification information of each stored access page to an interface of the electronic device, and the user performs a selection operation on one or more pieces of identification information in the interface, thereby generating an input operation on the electronic device.
Based on this, when the electronic device outputs the access page, the following specific method may be implemented:
if the interactive identifier is triggered, outputting the content of the access page on the sub-process interface of the target application process of the electronic device, for example, if the public number message in the chat application is clicked, the short link system in this embodiment obtains and returns the stored public number push page pointed by the short link system through the short link corresponding to the public number message, and further outputs the public number push page in the application window or interface of the chat application, as shown in fig. 10, so as to avoid that the corresponding public number push page cannot be accessed when the public number message fails.
Or if the interaction identifier is triggered, a browser process different from the target application process is newly built in the electronic equipment, and the content of the access page is output. For example, if a long link in a document or email page is clicked, the short link system in this embodiment obtains a saved web page pointed by the long link through a short link corresponding to the long link and returns the saved web page, and further outputs the content of the returned web page in a browser page newly created in the electronic device, as shown in fig. 11.
Or if the interaction identifier is triggered, outputting the content of the access page by an application process associated with the target access address in the electronic equipment. For example, if the page link of the knee care push page of the running application received in the chat application is clicked, the short link system in this embodiment obtains the stored knee care push page pointed by the short link through the short link corresponding to the page link and returns the knee care push page, so as to start the running application in the electronic device and output the content of the knee care push page in the running application, as shown in fig. 12.
Or if the interaction identification is triggered, outputting the content of the access page in a superposition and/or filling mode at a target position or a non-target position of the electronic equipment. For example, if the added long link in the document or email page is clicked, the short link system in this embodiment obtains the saved web page pointed by the long link through the short link corresponding to the long link and returns the saved web page, and further superimposes and outputs the content of the returned web page at a blank position in the document or email in the electronic device, or fills the content of the returned web page to the position where the long link is located, as shown in fig. 13.
Referring to fig. 14, a schematic structural diagram of a processing device according to a second embodiment of the present disclosure is provided, where the processing device may be configured in an electronic device capable of outputting pages and processing data, such as a mobile phone, a pad, a computer, or a server. The technical scheme in the embodiment can be realized by a control module configured in the electronic device, such as a short link system, and is mainly used for improving the reliability of page access.
Specifically, the apparatus in this embodiment may include the following units:
an identifier obtaining unit 1401, configured to obtain an interaction identifier for performing a preset operation at a target location, where the interaction identifier points to a target access address;
an address obtaining unit 1402, configured to process the interaction identifier to obtain a first network address, where the first network address can point to a current access page of the target access address and an updated access page;
a page returning unit 1403, configured to return the current access page or the updated access page if the interactive mark is triggered.
As can be seen from the foregoing solution, in the processing device provided in the second embodiment of the present application, by obtaining the interaction identifier pointing to the target access address, where the preset operation is performed on the target position, the interaction identifier may be processed to obtain the current access page capable of pointing to the target access address and the first network address of the updated access page, and based on this, when the interaction identifier is triggered, the current access page pointed to by the first network address or the updated access page may be returned. It can be seen that, in this embodiment, the interaction identifier corresponding to the target access address is processed to obtain the first network address capable of pointing to the current access page or the updated access page, so that even if the access address corresponding to the interaction identifier fails, the current access page or the updated access page pointed to by the first network address can be returned through the corresponding first network address, thereby avoiding a situation that the user cannot access the page, and improving reliability of page access.
In one implementation, the identifier obtaining unit 1401 is specifically configured to: receiving an interactive identifier sent by a target application process, wherein the interactive identifier is an identifier added to an input area of the target application process or received by the target application process; or monitoring the editing operation acting on the target application process, acquiring an object pointed by the editing operation acting on the target position of the target application process, and taking the object as the interactive identifier.
In one implementation, the identifier obtaining unit 1401 is specifically configured to:
receiving a long link which is sent by a first target application process after receiving the long link added to an input area of the first target application process or receiving a long link pushed by a server side, and taking the long link as the interactive identification; or the like, or, alternatively,
acquiring a long link on which a copy operation is executed in an address bar of a second target application process, and taking the long link as the interactive identification; or the like, or, alternatively,
obtaining public information or control information pushed by a server and received by a third application process, and taking the public information or the control information as the interactive identification;
and acquiring a long link, a public number message or control information which is sent to a fifth application process or a client by a fourth application process, and taking the long link, the public number message or the control information as the interactive identification.
In one implementation, address obtaining unit 1402 is specifically configured to: determining accessibility of the target access address; if the target access address is accessible, storing a current access page and corresponding identification information of the target access address, generating a short link corresponding to the target access website, and taking the short link as the first network address; or, if the target access address is inaccessible, acquiring a source address of the target access address, storing a current access page of the source address and corresponding identification information, and using the source address as the first network address or processing the source address into a short link to be used as the first network address.
In one implementation, the apparatus in this embodiment may further include the following units, as shown in fig. 15:
a page saving unit 1404 configured to: accessing the first network address every preset time interval; if the access page pointed by the first network address is updated, storing the updated access page and corresponding identification information; and if the access page pointed by the first network address is not updated, the updating operation related to the current access page is not executed.
In one implementation, after obtaining the first network address, the address obtaining unit 1402 is further configured to: and returning the first network address to a corresponding target position of the target application process.
In one implementation, the page return unit 1403 is specifically configured to: if the interactive identification is determined to be triggered in a corresponding mode, determining the accessibility of a target access address corresponding to the first network address; if the target access address is accessible, saving a current access page corresponding to the target access address and corresponding identification information, and returning the current access page to enable the electronic equipment to output the current access page; or if the target access address is not accessible, returning the saved access page to enable the electronic equipment to output the access page.
Specifically, the page return unit 1403, when returning the saved access page, is specifically configured to: and obtaining the identification information of the access page, and returning the access page meeting the return condition to the electronic equipment according to the identification information.
The electronic device outputs the access page, which may specifically be: if the interaction identifier is triggered, outputting the content of the access page on a sub-process interface of a target application process of the electronic equipment, or building a browser process different from the target application process in the electronic equipment to output the access page, or outputting the access page on an application process associated with the target access address in the electronic equipment; or, outputting the content of the access page in a superposition and/or filling mode at a target position or a non-target position of the electronic equipment.
It should be noted that, for the specific implementation of each unit in the present embodiment, reference may be made to the corresponding content in the foregoing, and details are not described here.
Referring to fig. 16, a schematic structural diagram of an electronic device according to a third embodiment of the present disclosure is shown, where the electronic device may be an electronic device capable of page output and data processing, such as a mobile phone, a pad, a computer, or a server. The technical scheme in the embodiment is mainly used for improving the reliability of page access.
Specifically, the electronic device in this embodiment may include the following structure:
a memory 1601 for storing applications and data generated by the application operations;
a processor 1602 for executing the application to implement:
obtaining an interactive identifier of a preset operation executed at a target position, wherein the interactive identifier points to a target access address; processing the interactive identification to obtain a first network address, wherein the first network address can point to a current access page and an updated access page of the target access address; and if the interactive mark identification is triggered, returning the current access page or the updated access page.
Specifically, a corresponding control module, such as a short link system, is configured in the processor, and based on this, the technical solution in the present embodiment is implemented by the short link system.
As can be seen from the foregoing solution, in the electronic device provided in the third embodiment of the present application, by obtaining the interaction identifier pointing to the target access address, where the preset operation is performed on the target position, the interaction identifier may be processed to obtain the current access page capable of pointing to the target access address and the first network address of the updated access page, and based on this, when the interaction identifier is triggered, the current access page pointed to by the first network address or the updated access page may be returned. It can be seen that, in this embodiment, the interaction identifier corresponding to the target access address is processed to obtain the first network address capable of pointing to the current access page or the updated access page, so that even if the access address corresponding to the interaction identifier fails, the current access page or the updated access page pointed to by the first network address can be returned through the corresponding first network address, thereby avoiding a situation that the user cannot access the page, and improving reliability of page access.
It should be noted that, in the present embodiment, reference may be made to the corresponding contents in the foregoing, and details are not described here.
In addition, the present application also provides a storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the processing method according to any one of the above-mentioned embodiments is implemented.
Taking a scene of adding a link in a document as an example, the technical scheme of the application is exemplified as follows:
firstly, a short link system executing the technical solution of the present application generates a short link when a target link is added to a document and directs the short link to the target link, refer to a sequence diagram of adding links to a document shown in fig. 17, and when a document user adds a target link to a document, the short link system obtains the target link and checks the accessibility of a page of the target link, for example, tries to access the page of the target link on a website of the target link, and stores a page snapshot and version of the target link under the condition that the page of the target link is accessible, thereby generating a short link corresponding to the target link and returning the short link to the document, and further, the returned short link may be inserted into the document;
further, the short link system caches the target link, updates the cache when the target link is updated, and refers to a timing chart of periodic update of the short link system shown in fig. 18, the short link system periodically checks the page accessibility of the target link, makes a page snapshot and marks a version when the page of the target link is checked to be updated, and simultaneously saves the page snapshot, wherein the saved page snapshot is associated with the short link generated by the short link for the target link;
based on the method, when a document visitor clicks a long link in a document and other triggering operations are carried out, the short link system returns the latest cached page snapshot content to the document visitor through the short link corresponding to the clicked long link, or outputs a page to enable the document visitor to select the page of the version needing to be visited. Referring to the sequence diagram of accessing links in a document shown in fig. 19, when a document user accesses a short link in the document, the short link system finds a target link corresponding to the short link in a page snapshot and determines the accessibility of a page of the target link, when the target link is accessible in a website of the target link, the page of the target link is snapshot and is returned to the document after the page of the target link is marked with a version, and when the target link is inaccessible in the website of the target link, the short link system obtains a saved latest or historically saved page snapshot and returns the saved page snapshot to the document or returns a user-specified version of the page snapshot to the document.
Therefore, the existing use habit of a user does not need to be changed in the technical scheme, the original document does not need to be updated when the target link is updated, and link updates of different versions can be provided.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (10)

1. A method of processing, comprising:
obtaining an interactive identifier of a preset operation executed at a target position, wherein the interactive identifier points to a target access address;
and processing the interactive identifier to obtain a first network address, wherein the first network address can point to a current access page and an updated access page of the target access address, so that if the interactive identifier is triggered, the current access page or the updated access page is returned.
2. The method of claim 1, obtaining an interactive identity of a preset operation performed at a target location, comprising:
receiving an interactive identifier sent by a target application process, wherein the interactive identifier is an identifier added to an input area of the target application process or received by the target application process; or the like, or, alternatively,
and monitoring the editing operation acting on the target application process, acquiring an object pointed by the editing operation acting on the target position of the target application process, and taking the object as the interactive identifier.
3. The method of claim 1, obtaining an interactive identity of a preset operation performed at a target location, comprising:
receiving a long link which is sent by a first target application process after receiving the long link added to an input area of the first target application process or receiving a long link pushed by a server side, and taking the long link as the interactive identification; or the like, or, alternatively,
acquiring a long link on which a copy operation is executed in an address bar of a second target application process, and taking the long link as the interactive identification; or the like, or, alternatively,
obtaining public information or control information pushed by a server and received by a third application process, and taking the public information or the control information as the interactive identification;
and acquiring a long link, a public number message or control information which is sent to a fifth application process or a client by a fourth application process, and taking the long link, the public number message or the control information as the interactive identification.
4. The method of claim 1, processing the interactive identifier to obtain a first network address, comprising:
determining accessibility of the target access address;
if the target access address is accessible, storing a current access page and corresponding identification information of the target access address, generating a short link corresponding to the target access website, and taking the short link as the first network address; or the like, or, alternatively,
if the target access address is inaccessible, a source address of the target access address is acquired, a current access page and corresponding identification information of the source address are stored, and the source address is used as the first network address or the source address is processed into a short link and then used as the first network address.
5. The method of claim 1 or 4, further comprising:
accessing the first network address every preset time interval;
if the access page pointed by the first network address is updated, storing the updated access page and corresponding identification information;
and if the access page pointed by the first network address is not updated, the updating operation related to the current access page is not executed.
6. The method of claim 5, wherein after obtaining the first network address, further comprising:
and returning the first network address to a corresponding target position of the target application process.
7. The method of claim 5, wherein returning the current access page or the updated access page if the interaction identifier is triggered comprises:
if the interactive identification is determined to be triggered in a corresponding mode, determining the accessibility of a target access address corresponding to the first network address;
if the target access address is accessible, saving a current access page corresponding to the target access address and corresponding identification information, and returning the current access page to enable the electronic equipment to output the current access page; or the like, or, alternatively,
and if the target access address is not accessible, returning the saved access page so that the electronic equipment can output the access page.
8. The method of claim 7, wherein returning saved access pages comprises:
and obtaining the identification information of the access page, and returning the access page meeting the return condition to the electronic equipment according to the identification information.
9. The method of claim 7 or 8, wherein the electronic device outputting the access page comprises:
if the interaction identifier is triggered, outputting the content of the access page on a sub-process interface of a target application process of the electronic equipment, or building a browser process different from the target application process in the electronic equipment to output the access page, or outputting the access page on an application process associated with the target access address in the electronic equipment; or, outputting the content of the access page in a superposition and/or filling mode at a target position or a non-target position of the electronic equipment.
10. A processing apparatus, comprising:
the identification obtaining unit is used for obtaining an interactive identification which is executed with preset operation at a target position, and the interactive identification points to a target access address;
and the address obtaining unit is used for processing the interactive identifier to obtain a first network address, and the first network address can point to the current access page and the updated access page of the target access address, so that the interactive identifier is triggered to return to the current access page or the updated access page.
CN202011380962.6A 2020-11-30 2020-11-30 Processing method and device Pending CN112328922A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011380962.6A CN112328922A (en) 2020-11-30 2020-11-30 Processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011380962.6A CN112328922A (en) 2020-11-30 2020-11-30 Processing method and device

Publications (1)

Publication Number Publication Date
CN112328922A true CN112328922A (en) 2021-02-05

Family

ID=74308320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011380962.6A Pending CN112328922A (en) 2020-11-30 2020-11-30 Processing method and device

Country Status (1)

Country Link
CN (1) CN112328922A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115774736A (en) * 2023-02-10 2023-03-10 之江实验室 NUMA (non Uniform memory Access) architecture time-varying graph processing method and device for delayed data transmission

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050108418A1 (en) * 2003-11-19 2005-05-19 International Business Machines Corporation Method and system for updating/reloading the content of pages browsed over a network
JP2006058978A (en) * 2004-08-17 2006-03-02 Fujitsu Ltd Invalidation control method for bookmark, program and its device
US20090043874A1 (en) * 2007-08-10 2009-02-12 Yahoo! Inc., A Delaware Corporation Method and System for Replacing Hyperlinks in a Webpage
CN102937981A (en) * 2012-10-18 2013-02-20 北京奇虎科技有限公司 Webpage representing system and method
US20130325919A1 (en) * 2012-05-30 2013-12-05 International Business Machines Corporation Resolving a dead shortened uniform resource locator
CN104462183A (en) * 2014-10-10 2015-03-25 北京国双科技有限公司 Webpage skipping processing method and device
US20150193389A1 (en) * 2012-03-06 2015-07-09 Google Inc. Presenting updated hyperlink information on a webpage
CN106294648A (en) * 2016-08-03 2017-01-04 腾讯科技(深圳)有限公司 A kind of processing method and processing device for page access path
CN106919600A (en) * 2015-12-25 2017-07-04 青岛海信移动通信技术股份有限公司 One kind failure network address access method and terminal
CN107404508A (en) * 2016-05-20 2017-11-28 阿里巴巴集团控股有限公司 Access method, client and the electronic equipment of customer terminal webpage
CN108363793A (en) * 2018-02-13 2018-08-03 广东欧珀移动通信有限公司 Access method, device, storage medium and the electronic equipment of web application
CN108390944A (en) * 2018-03-28 2018-08-10 北京小米移动软件有限公司 Information interacting method and device
CN109918586A (en) * 2019-01-21 2019-06-21 广东万丈金数信息技术股份有限公司 Short link jump method, device, short linked server and storage medium

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050108418A1 (en) * 2003-11-19 2005-05-19 International Business Machines Corporation Method and system for updating/reloading the content of pages browsed over a network
JP2006058978A (en) * 2004-08-17 2006-03-02 Fujitsu Ltd Invalidation control method for bookmark, program and its device
US20090043874A1 (en) * 2007-08-10 2009-02-12 Yahoo! Inc., A Delaware Corporation Method and System for Replacing Hyperlinks in a Webpage
US20150193389A1 (en) * 2012-03-06 2015-07-09 Google Inc. Presenting updated hyperlink information on a webpage
US20130325919A1 (en) * 2012-05-30 2013-12-05 International Business Machines Corporation Resolving a dead shortened uniform resource locator
CN102937981A (en) * 2012-10-18 2013-02-20 北京奇虎科技有限公司 Webpage representing system and method
CN104462183A (en) * 2014-10-10 2015-03-25 北京国双科技有限公司 Webpage skipping processing method and device
CN106919600A (en) * 2015-12-25 2017-07-04 青岛海信移动通信技术股份有限公司 One kind failure network address access method and terminal
CN107404508A (en) * 2016-05-20 2017-11-28 阿里巴巴集团控股有限公司 Access method, client and the electronic equipment of customer terminal webpage
CN106294648A (en) * 2016-08-03 2017-01-04 腾讯科技(深圳)有限公司 A kind of processing method and processing device for page access path
CN108363793A (en) * 2018-02-13 2018-08-03 广东欧珀移动通信有限公司 Access method, device, storage medium and the electronic equipment of web application
CN108390944A (en) * 2018-03-28 2018-08-10 北京小米移动软件有限公司 Information interacting method and device
CN109918586A (en) * 2019-01-21 2019-06-21 广东万丈金数信息技术股份有限公司 Short link jump method, device, short linked server and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115774736A (en) * 2023-02-10 2023-03-10 之江实验室 NUMA (non Uniform memory Access) architecture time-varying graph processing method and device for delayed data transmission

Similar Documents

Publication Publication Date Title
JP6091579B2 (en) Method and apparatus for handling nested fragment caching of web pages
CN102449649B (en) Account-recovery technique
US8527862B2 (en) Methods for making ajax web applications bookmarkable and crawlable and devices thereof
CN110263275A (en) A kind of method, apparatus, mobile terminal and storage medium accessing webpage
CN110572390A (en) Method, device, computer equipment and storage medium for detecting domain name hijacking
CN110866198A (en) Static resource caching method, system, device, computer equipment and storage medium
CN108959384B (en) Webpage data acquisition method and device, computer equipment and storage medium
CN109634753B (en) Data processing method, device, terminal and storage medium for switching browser kernels
CN111090797A (en) Data acquisition method and device, computer equipment and storage medium
CN110071926B (en) Data processing method and device
CN112328922A (en) Processing method and device
CN110457900B (en) Website monitoring method, device and equipment and readable storage medium
CN108255898B (en) Page display method and device
CN112905936A (en) Page recording animation generation method, page operation log query method and computer equipment
CN110460685B (en) User unique identifier processing method and device, computer equipment and storage medium
CN112433784A (en) Page loading method, device, equipment and storage medium
CN110944037B (en) Method, computer device and storage medium for client cache change configuration
CN106649792B (en) Page access method and device
CN107203915B (en) Data storage method and device
CN114629875A (en) Active detection domain name brand protection method and device
CN114844771A (en) Monitoring method, device, storage medium and program product for micro-service system
CN108989371B (en) Data reporting method and device
CN114024774A (en) Method and device for generating attacker portrait and electronic equipment
CN107451160B (en) Page pre-reading method and device
CN104965926A (en) Webpage providing method and device

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