Abnormal link synchronization method and device, computer equipment, readable storage medium and program product
By obtaining and filtering the latest abnormal links and directly synchronizing them to the local abnormal link library, the problem of redundant data in the existing technology is solved and the efficiency and accuracy of abnormal link synchronization is improved.
Patent Information
- Application Number
- CN202410635261.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-06
AI Technical Summary
In the existing technology, when synchronizing abnormal links, all links in the background link library need to be synchronized locally, resulting in the generation of redundant data and low synchronization efficiency.
By obtaining the maximum version number of the local exception link, sending and receiving the latest exception link to the background exception link library, filtering out the latest exception link with a version number greater than the maximum version number, and synchronizing it to the target link, reducing the generation of redundant data .
It improves the synchronization efficiency of abnormal links, reduces the generation of redundant data, and ensures the accuracy and efficiency of the synchronization process.
Smart Images

Figure CN118606582A
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to an abnormal link synchronization method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] The rapid development of Internet technology has brought more and more convenience to society. For example, people can download all kinds of information and conduct online shopping through the Internet. At the same time, there are abnormal behaviors such as using phishing website links to imitate normal website links to steal important data. Therefore, it is necessary to identify abnormal links.
[0003] At present, abnormal links are usually identified based on a local link library that stores various abnormal links in advance, so the local link library needs to synchronize abnormal links in real time. However, when synchronizing abnormal links, the local link library often synchronizes all links in the background link library, which will generate a lot of redundant data, resulting in low synchronization efficiency of abnormal links. Summary of the invention
[0004] Based on this, it is necessary to provide an abnormal link synchronization method, device, computer equipment, computer-readable storage medium and computer program product that can improve the efficiency of abnormal link synchronization in response to the above technical problems.
[0005] In a first aspect, the present application provides an exception link synchronization method, which is applied to a local exception link library, including: in response to an exception link synchronization instruction, respectively obtaining the first candidate version number of each local exception link and the maximum version number of each first candidate version number; sending the maximum version number to a background exception link library, and receiving multiple latest exception links returned by the background exception link library based on the maximum version number; the version number of the latest exception link is greater than the maximum version number; obtaining valid links in each latest exception link, and filtering out target links that match the valid links from each local exception link; synchronizing the link content of the valid link to the target link.
[0006] In one embodiment, obtaining valid links from each latest abnormal link includes: respectively obtaining first link numbers from each latest abnormal link; and obtaining valid links from each latest abnormal link based on each first link number.
[0007] In one of the embodiments, based on each first link number, a valid link in each latest abnormal link is obtained, including: for each first link number, the first link number is matched with the second link number of each local abnormal link, and a number matching result corresponding to the first link number is obtained; when the number matching result indicates that the first link number matches any one of the second link numbers, the latest abnormal link corresponding to the first link number is used as a valid link.
[0008] In one of the embodiments, the method also includes: obtaining a link synchronization result corresponding to the target link; in response to an abnormal identification instruction for the link to be identified, sending the link synchronization result and the local original link that has not undergone abnormal link synchronization to an abnormal link identification module; through the abnormal link identification module, link matching the link to be identified with the link synchronization result and the local original link respectively, to obtain a link matching result corresponding to the link to be identified; when the link matching result indicates that the link to be identified matches either the link synchronization result or the local original link, determining that the link to be identified is an abnormal link.
[0009] The present application also provides an exception link synchronization method, which is applied to a background exception link library, including: when receiving the maximum version number sent by the local exception link library, respectively obtaining the second candidate version number of each background exception link; the maximum version number refers to the largest version number among the first candidate version numbers of each local exception link stored in the local exception link library; from each second candidate version number, screening out each latest version number whose version number is greater than the maximum version number; returning the latest exception link corresponding to each latest version number to the local exception link library; the latest exception link is used for the local exception link library to perform exception link synchronization.
[0010] In one of the embodiments, the method further includes: in response to an abnormal link update instruction, obtaining the link to be updated in the abnormal link update instruction and the update content corresponding to the link to be updated; determining a target update link that matches the link to be updated in the background original link; and updating the content of the target update link based on the update content to obtain the background abnormal link.
[0011] In one of the embodiments, based on the update content, the target update link is updated to obtain a background exception link, including: based on the update content, the target update link is updated to obtain an intermediate link; the original version number of each background original link and the maximum original version number among the original version numbers are obtained; according to the version number increment rule, the maximum original version number is incremented to obtain the incremented version number; the version number of the intermediate link is updated to the incremented version number to obtain the background exception link.
[0012] In the second aspect, the present application also provides an exception link synchronization device, which is applied to a local exception link library, including: a first version number acquisition module, which is used to respond to the exception link synchronization instruction, and obtain the first candidate version number of each local exception link and the maximum version number of each first candidate version number; the latest link acquisition module, which is used to send the maximum version number to the background exception link library, and receive multiple latest exception links returned by the background exception link library based on the maximum version number; the version number of the latest exception link is greater than the maximum version number; a link matching module, which is used to obtain the valid links in each latest exception link, and filter out the target link that matches the valid link from each local exception link; a link synchronization module, which is used to synchronize the link content of the latest exception link to the target link.
[0013] The present application also provides an exception link synchronization device, which is applied to a background exception link library, including: a second version number acquisition module, which is used to obtain the second candidate version number of each background exception link when receiving the maximum version number sent by the local exception link library; the maximum version number refers to the maximum version number among the first candidate version numbers of each local exception link stored in the local exception link library; a version number screening module, which is used to screen out the latest version numbers whose version numbers are greater than the maximum version number from each second candidate version number; a latest link return module, which is used to return the latest exception link corresponding to each latest version number to the local exception link library; the latest exception link is used for the local exception link library to perform exception link synchronization.
[0014] In a third aspect, the present application also provides a computer device, comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program: in response to an exception link synchronization instruction, respectively obtaining the first candidate version number of each local exception link and the maximum version number among the first candidate version numbers; sending the maximum version number to a background exception link library, and receiving multiple latest exception links returned by the background exception link library based on the maximum version number; the version number of the latest exception link is greater than the maximum version number; obtaining valid links in each latest exception link, and filtering out target links that match the valid links from each local exception link; synchronizing the link content of the valid link to the target link.
[0015] In a fourth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, which implements the following steps when executed by a processor: in response to an exception link synchronization instruction, respectively obtain the first candidate version number of each local exception link and the maximum version number among the first candidate version numbers; send the maximum version number to the background exception link library, and receive multiple latest exception links returned by the background exception link library based on the maximum version number; the version number of the latest exception link is greater than the maximum version number; obtain the valid links in each latest exception link, and filter out the target link that matches the valid link from each local exception link; synchronize the link content of the valid link to the target link.
[0016] In a fifth aspect, the present application also provides a computer program product, comprising a computer program, which implements the following steps when executed by a processor: in response to an exception link synchronization instruction, obtain the first candidate version number of each local exception link and the maximum version number among the first candidate version numbers; send the maximum version number to the background exception link library, and receive multiple latest exception links returned by the background exception link library based on the maximum version number; the version number of the latest exception link is greater than the maximum version number; obtain the valid links in each latest exception link, and filter out the target link that matches the valid link from each local exception link; synchronize the link content of the valid link to the target link.
[0017] The above-mentioned abnormal link synchronization method, device, computer equipment, computer-readable storage medium and computer program product are respectively applied to a local abnormal link library and a background abnormal link library. In response to the abnormal link synchronization instruction, the local abnormal link library obtains the first candidate version number of each local abnormal link stored therein and the maximum version number among the first candidate version numbers, and then sends the maximum version number to the background abnormal link library. When the background abnormal link library receives the maximum version number, it obtains the second candidate version number of each background abnormal link stored therein, and then selects the latest version number with a version number greater than the maximum version number from the second candidate version number, and returns the latest abnormal link corresponding to each latest version number to the local abnormal link library. After receiving the latest abnormal link, the local abnormal link library can extract the valid link in each latest abnormal link, thereby selecting the target link matching the valid link in each local abnormal link, and finally synchronizing the link content of the valid link to the target link, so as to complete the abnormal link synchronization process between the local abnormal link library and the background abnormal link library. This application filters out the latest exception link from the background exception link library according to the version number, and synchronizes the latest exception link to the local exception link library. There is no need to synchronize all links in the background exception link library to the local, which reduces the generation of redundant data and effectively improves the synchronization efficiency of the exception link. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0019] FIG1 is an application environment diagram of an abnormal link synchronization method according to an embodiment;
[0020] FIG2 is a schematic diagram of a flow chart of an abnormal link synchronization method applied to a local abnormal link library in one embodiment;
[0021] FIG3 is a schematic diagram of a process of obtaining a valid link in one embodiment;
[0022] FIG4 is a schematic diagram of a process of abnormal link identification in one embodiment;
[0023] FIG5 is a schematic diagram of a flow chart of an abnormal link synchronization method applied to a background abnormal link library in one embodiment;
[0024] FIG6 is a schematic diagram of a link update process in one embodiment;
[0025] FIG7 is a schematic diagram of a process of updating a version number in one embodiment;
[0026] FIG8 is a structural block diagram of an abnormal link synchronization device applied to a local abnormal link library in one embodiment;
[0027] FIG9 is a structural block diagram of an abnormal link synchronization device applied to a background abnormal link library in one embodiment;
[0028] FIG. 10 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0030] The rapid development of Internet technology has brought more and more convenience to society. For example, people can download all kinds of information and conduct online shopping through the Internet. At the same time, there are abnormal behaviors such as using phishing website links to imitate normal website links to steal important data. For security reasons, it is necessary to identify abnormal links.
[0031] At present, abnormal links are usually identified based on a local link library that stores various abnormal links in advance, that is, the link to be identified is compared with the local link library to determine whether the link to be identified is an abnormal link. In order to ensure the accuracy of abnormal link identification, the local link library needs to synchronize abnormal links with the background link library in real time. However, when synchronizing abnormal links, the local link library often synchronizes all links in the background link library, which will generate a lot of redundant data, resulting in low synchronization efficiency of abnormal links.
[0032] The abnormal link synchronization method provided in the embodiment of the present application can be applied to the application environment as shown in FIG. 1, including a local abnormal link library 102 and a background abnormal link library 104, and the local abnormal link library is connected to the background abnormal link library 104 and the general controller 106 respectively. Specifically, the local abnormal link library 102 responds to the abnormal link synchronization instruction sent by the general controller 106, and respectively obtains the first candidate version number of each local abnormal link and the maximum version number of each first candidate version number; and sends the maximum version number to the background abnormal link library 104. When receiving the maximum version number sent by the local abnormal link library 102, the background abnormal link library 104 obtains the second candidate version number of each background abnormal link; from each second candidate version number, the latest version number with a version number greater than the maximum version number is screened out; and the latest abnormal link corresponding to each latest version number is returned to the local abnormal link library 102. The local abnormal link library 102 obtains the valid link in each latest abnormal link, and screens out the target link matching the valid link from each local abnormal link; and synchronizes the link content of the valid link to the target link. The master controller 106 may be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0033] It should be noted that the master controller may also be connected to the background abnormal link library to control the background abnormal link library to update the background abnormal links stored therein.
[0034] In an exemplary embodiment, as shown in FIG. 2 , a method for synchronizing an abnormal link is provided, which is described by taking the method applied to the local abnormal link library 102 in FIG. 1 as an example, and includes:
[0035] Step S202: In response to the exception link synchronization instruction, the first candidate version number of each local exception link and the maximum version number among the first candidate version numbers are respectively obtained.
[0036] Among them, the abnormal link synchronization instruction refers to the link synchronization instruction between the local abnormal link in the local abnormal link library and the background abnormal link in the background abnormal link library. It is understandable that the background abnormal link library will perform real-time abnormal link updates, so that the latest abnormal links are stored. Whenever the local terminal device needs to perform abnormal identification on the link to be identified, it is compared with the link stored in the local abnormal link library. Therefore, in order to ensure the accuracy of identification, the local abnormal link library and the background abnormal link library need to keep the link information synchronized to ensure that the latest abnormal link is stored in the local abnormal link library. The local abnormal link refers to each abnormal link stored in the local abnormal link library. The first candidate version number refers to the version number of each local abnormal link, and each local abnormal link has a corresponding version number. The maximum version number refers to the largest version number among the first candidate version numbers.
[0037] Exemplarily, when receiving the exception link synchronization instruction sent by the master controller, the local exception link library first obtains the version numbers of each local exception link stored therein, and obtains the largest version number among these version numbers, and sends the largest version number to the background exception link library.
[0038] Step S204, sending the maximum version number to the background abnormal link library, and receiving multiple latest abnormal links returned by the background abnormal link library based on the maximum version number; the version number of the latest abnormal link is greater than the maximum version number.
[0039] Among them, the latest exception link refers to the latest exception link stored in the background exception link library. Whether the exception link is the latest is determined based on the version number. In this embodiment, the exception link in the background exception link library whose version number is greater than the maximum version number is taken as the latest exception link.
[0040] For example, assuming that the maximum version number sent by the local exception link library is v1, and the background exception links currently stored in the background exception link library are [1, v1], [2, v5], [3, v3], [4, v6], then the latest exception links filtered out by the background exception link library are [2, v5], [3, v3], [4, v6].
[0041] Exemplarily, the local exception link library sends the maximum version number to the background exception link library, so that the background exception link library can filter out the latest version numbers greater than the maximum version number from the version numbers of the stored background exception links, thereby taking the background exception links corresponding to the latest version numbers as the latest exception links and returning them to the local exception link library.
[0042] In one example, after receiving the maximum version number sent by the local exception link library, the background exception link library can obtain the version numbers of each background exception link stored in it, that is, the second candidate version number, and each background exception link has a corresponding version number. And from each second candidate version number, the latest version number greater than the maximum version number is screened out, so that the background exception link corresponding to each latest version number is returned as the latest exception link to the local exception link library, so that the local exception link library can perform exception link synchronization.
[0043] In one example, the link update process in the background abnormal link library further includes: in response to the abnormal link update instruction, obtaining the link to be updated in the abnormal link update instruction and the update content corresponding to the link to be updated. In the background original link, determining the target update link that matches the link to be updated. Based on the update content, updating the content of the target update link to obtain the background abnormal link.
[0044] Among them, the abnormal link update instruction refers to an instruction to update the background abnormal link in the background abnormal link library. The link to be updated refers to the link that needs to be updated in the background abnormal link library. It should be noted that the link update in this embodiment does not only refer to the link that needs to be updated, and the newly added link also belongs to the link update. The updated content includes but is not limited to the updated URL, link code, picture, description and other content. The background original link refers to the abnormal links stored in the background abnormal link library before the current link update is executed. The target update link refers to the link with the same link number as the link to be updated.
[0045] Exemplarily, in response to the abnormal link update instruction, the background abnormal link library first obtains the link to be updated contained in the abnormal link update instruction and the update content corresponding to the link to be updated. The background abnormal link library obtains each abnormal link stored before the current link update is executed, and matches the numbers of these abnormal links with the numbers of the links to be updated, so as to use the abnormal links with the same numbers as the target update links. The background abnormal link library updates the current link content of the target update link to the update content contained in the abnormal link update instruction, so as to obtain the background abnormal link.
[0046] In one example, based on the updated content, the target update link is updated to obtain a background abnormal link, including: based on the updated content, the target update link is updated to obtain an intermediate link. The original version number of each background original link and the maximum original version number among the original version numbers are obtained. According to the version number increment rule, the maximum original version number is incremented to obtain the incremented version number. The version number of the intermediate link is updated to the incremented version number to obtain the background abnormal link.
[0047] Among them, the intermediate link refers to a link that only updates the content of the target update link. It should be noted that link updates include content updates and version number updates. The original version number refers to the version number of the original link in the background, and the maximum original version number refers to the largest version number among the original version numbers. Version number increment means incrementing on the basis of the maximum original version number according to the preset increment rule. For example, if the maximum original version number is v1 and the increment rule is to increment by 1 each time, then the incremented version number is v2. Of course, the increment rule is not limited to this. You can also set increment rules for letters, and you can also freely set the value of each increment. The specific setting can be made according to the actual situation.
[0048] Exemplarily, the background abnormal link library updates the link content of the target update link based on the update content, thereby obtaining an intermediate link. The original version number of each background original link and the largest version number among these original version numbers are obtained. After the background abnormal link library completes the content update of the target update link, it can further update the version number of the target update link, that is, according to the preset incremental rule, the largest original version number is incremented to obtain the incremented version number, and then the background abnormal link is obtained.
[0049] Step S206, obtaining valid links from each latest abnormal link, and filtering out target links matching the valid links from each local abnormal link.
[0050] Among them, the valid link refers to the link in each latest abnormal link that has the same link number as the local abnormal link. It can be understood that the synchronization of abnormal links is to synchronize the link content of the background abnormal link to the local abnormal link, and these two links need to be consistent, that is, have the same link number, and the link content of the background abnormal link cannot be synchronized to any local abnormal link. The target link refers to the link in each local abnormal link that has the same link number as the valid link.
[0051] Exemplarily, the local abnormal link library extracts valid links from the latest abnormal links according to the link numbers, and selects target links with the same link numbers as the valid links from the local abnormal links. The target links are the links for subsequent link synchronization.
[0052] In actual applications, a valid link can also be determined based on whether the link is compliant, such as whether the link content is empty or the link format is inaccurate, etc.
[0053] Step S208: synchronizing the link content of the valid link to the target link.
[0054] The link content refers to the specific content of the effective link, including but not limited to the URL, link code, picture, description, etc.
[0055] Exemplarily, after the local abnormal link library extracts the valid link, the URL, link code, image, description and other contents contained in the valid link can be synchronized to the target link.
[0056] In this embodiment, the local abnormal link library responds to the abnormal link synchronization instruction, obtains the first candidate version number of each local abnormal link stored therein, and the maximum version number of each first candidate version number, and then sends the maximum version number to the background abnormal link library. When the background abnormal link library receives the maximum version number, it obtains the second candidate version number of each background abnormal link stored therein, and then filters out the latest version numbers with a version number greater than the maximum version number from each second candidate version number, and returns the latest abnormal link corresponding to each latest version number to the local abnormal link library. After receiving the latest abnormal link, the local abnormal link library can extract the valid link in each latest abnormal link, thereby filtering out the target link matching the valid link in each local abnormal link, and finally synchronizing the link content of the valid link to the target link, so as to complete the abnormal link synchronization process between the local abnormal link library and the background abnormal link library. The present application filters out the latest abnormal link from the background abnormal link library according to the version number, thereby synchronizing the latest abnormal link to the local abnormal link library, without synchronizing all links in the background abnormal link library to the local, reducing the generation of redundant data, thereby effectively improving the synchronization efficiency of the abnormal link.
[0057] In an exemplary embodiment, as shown in FIG3 , obtaining a valid link in each latest abnormal link includes:
[0058] Step S302, respectively obtain the first link number of each latest abnormal link.
[0059] Step S304: based on each first link number, obtain a valid link in each latest abnormal link.
[0060] The first link number refers to the number of the latest abnormal link, including but not limited to the link id (identification).
[0061] Exemplarily, after obtaining each latest exception link sent by the background exception link library, the local exception link library can further obtain the link id of each latest exception link, so as to filter out valid links from each latest exception link according to the link id, that is, a link consistent with the link id in the local exception link library is a valid link.
[0062] In actual applications, the link number of each latest abnormal link can also be matched with the link number of each local abnormal link, so as to obtain a valid link according to the matching result. In one embodiment, for each first link number, the first link number is matched with the second link number of each local abnormal link to obtain a number matching result corresponding to the first link number; when the number matching result indicates that the first link number matches any one of the second link numbers, the latest abnormal link is used as a valid link.
[0063] The second link number refers to the number of the local abnormal link, that is, the link ID of the local abnormal link. The number matching result is used to indicate whether the first link number is consistent with the second link number.
[0064] Exemplarily, for each first link id, the local exception link library matches the first link id with the second link id of each local exception link to obtain a number matching result corresponding to the first link id. When the number matching result indicates that the first link id matches any one of the second link ids, the latest exception link corresponding to the first link id is used as a valid link.
[0065] Of course, if there is no link with the same link number as the latest abnormal link in the local abnormal links, link synchronization can be further performed according to the link type of the latest abnormal link.
[0066] For example, if the latest exception link is [1, insert, v1], its link number is 1, the link type is insert, and the version number is v1, in this case, there will be no link with the same link number in the local exception link library, so the latest exception link can be directly inserted into the local exception link library. For another example, if the latest exception link is [2, update, v2], its link number is 2, the link type is update, and the version number is v2, then it is necessary to detect whether there is a link with a link number of 2 in the local exception link library. If so, the link content of the latest exception link [2, update, v2] is synchronized to the link with a link number of 2 in the local exception link library. If the link type of a certain latest exception link is delete, the background exception link library will not return the link content of the link to the local exception link library, and the local exception link library can directly delete the link content in the local exception link with the same number as the link.
[0067] In this embodiment, valid links are screened out from the latest abnormal links based on the link numbers, thereby ensuring the consistency of the links to be synchronized and thus ensuring the accuracy of link synchronization.
[0068] In an exemplary embodiment, as shown in FIG4 , the abnormal link identification process includes:
[0069] Step S402: Obtain the link synchronization result corresponding to the target link.
[0070] The link synchronization result refers to the link content after the target link completes the link synchronization.
[0071] Step S404: in response to the abnormality identification instruction for the link to be identified, the link synchronization result and the local original link that has not been synchronized with the abnormal link are sent to the abnormal link identification module.
[0072] The link to be identified refers to a link that needs to be identified as abnormal. The abnormal identification instruction is an instruction to identify whether the link to be identified is an abnormal link. The abnormal link identification module is a module in the master controller for performing abnormal link identification, which receives the link synchronization result returned by the local database and the local original link to perform abnormal identification on the link to be identified.
[0073] Exemplarily, the local abnormal link library obtains the link synchronization result after the target link completes link synchronization, and upon receiving the abnormal identification instruction for the link to be identified, sends the link synchronization result and the local original link that has not undergone abnormal link synchronization to the abnormal link identification module in the main controller.
[0074] Step S406: The abnormal link identification module performs link matching on the link to be identified, the link synchronization result and the local original link respectively, to obtain a link matching result corresponding to the link to be identified.
[0075] Step S408: When the link matching result indicates that the link to be identified matches any one of the link synchronization result and the local original link, it is determined that the link to be identified is an abnormal link.
[0076] The link matching result is used to indicate whether the link to be identified is consistent with any one of the link synchronization result and the local original link.
[0077] Exemplarily, the abnormal link identification module compares the link to be identified with the link synchronization result and the local original link respectively to detect whether the link to be identified is consistent with any one of the link synchronization result and the local original link, thereby obtaining a link matching result corresponding to the link to be identified. If the link matching result indicates that the link to be identified matches any one of the link synchronization result or the local original link, it is determined that the link to be identified is an abnormal link. If the link matching result indicates that the link to be identified does not match either the link synchronization result or the local original link, it is considered that the link to be identified is not an abnormal link.
[0078] In this embodiment, by comparing the link to be identified with the link synchronization result after synchronization and the local original link that has not been synchronized, it is determined whether the link to be identified is an abnormal link, thereby improving the accuracy of abnormal link identification.
[0079] In an exemplary embodiment, as shown in FIG. 5 , a method for synchronizing an abnormal link is provided, which is described by taking the method applied to the background abnormal link library 104 in FIG. 1 as an example, and includes:
[0080] Step S502, upon receiving the maximum version number sent by the local exception link library, respectively obtain the second candidate version number of each background exception link; the maximum version number refers to the largest version number among the first candidate version numbers of each local exception link stored in the local exception link library.
[0081] Among them, the background exception link refers to each exception link stored in the background exception link library. The second candidate version number refers to the version number of each background exception link. The first candidate version number refers to the version number of each local exception link, and each local exception link has a corresponding version number. The maximum version number refers to the largest version number among the first candidate version numbers. The local exception link refers to each exception link stored in the local exception link library.
[0082] Exemplarily, after receiving the maximum version number sent by the local abnormal link library, the background abnormal link library can obtain the version number of each background abnormal link stored therein, that is, the second candidate version number, and each background abnormal link has a corresponding version number. In one example, when the local abnormal link library receives the abnormal link synchronization instruction sent by the main controller, it first obtains the version number of each local abnormal link stored therein, and obtains the maximum version number among these version numbers, so as to send the maximum version number to the background abnormal link library.
[0083] Step S504: Filter out the latest version numbers whose version numbers are greater than the maximum version number from the second candidate version numbers.
[0084] Exemplarily, the background exception link library selects the latest version numbers greater than the maximum version number from the second candidate version numbers, and returns the background exception links corresponding to the latest version numbers as the latest exception links to the local exception link library for the local exception link library to perform exception link synchronization.
[0085] Step S506, returning the latest exception link corresponding to each latest version number to the local exception link library; the latest exception link is used for the local exception link library to perform exception link synchronization.
[0086] Exemplarily, the background exception link library returns the background exception links corresponding to the latest version numbers as the latest exception links to the local exception link library, so that the local exception link library can extract valid links from the latest exception links according to the link numbers, and screen out target links with the same link numbers as the valid links from among the local exception links, and synchronize the link content of the valid links, i.e. the URLs, link codes, pictures, descriptions, etc. contained therein, to the target links.
[0087] In actual applications, after obtaining each latest abnormal link sent by the background abnormal link library, the local abnormal link library can further obtain the first link number of each latest abnormal link respectively, and obtain the valid link in each latest abnormal link based on each first link number. The first link number refers to the number of the latest abnormal link, including but not limited to the link id. That is, the local abnormal link library obtains the link id of each latest abnormal link, so as to screen out the valid links in each latest abnormal link according to the link id, and the link consistent with the link id in the local abnormal link library is a valid link. Specifically, for each first link id, the local abnormal link library matches the first link id with the second link id of each local abnormal link respectively, and obtains the number matching result corresponding to the first link id. When the number matching result indicates that the first link id matches any one of the link ids in the second link ids, the latest abnormal link corresponding to the first link id is used as a valid link.
[0088] In actual application, the abnormal link identification process includes: obtaining the link synchronization result corresponding to the target link, wherein the link synchronization result refers to the link content after the target link ends the link synchronization. In response to the abnormal identification instruction for the link to be identified, the local abnormal link library sends the link synchronization result and the local original link that has not undergone abnormal link synchronization to the abnormal link identification module. Through the abnormal link identification module, the link to be identified is respectively matched with the link synchronization result and the local original link to obtain the link matching result corresponding to the link to be identified. When the link matching result indicates that the link to be identified matches any one of the link synchronization result or the local original link, it is determined that the link to be identified belongs to an abnormal link.
[0089] The link to be identified refers to the link that needs to be identified for abnormality. The abnormality identification instruction is an instruction to identify whether the link to be identified is an abnormal link. The abnormal link identification module is a module in the master controller for abnormal link identification, which receives the link synchronization result and the local original link returned by the local database to identify the abnormality of the link to be identified. The link matching result is used to indicate whether the link to be identified is consistent with any one of the link synchronization result and the local original link.
[0090] Exemplarily, the local abnormal link library obtains the link synchronization result after the target link completes the link synchronization, and upon receiving the abnormal identification instruction for the link to be identified, sends the link synchronization result and the local original link that has not undergone abnormal link synchronization to the abnormal link identification module in the general controller. The abnormal link identification module compares the link to be identified with the link synchronization result and the local original link respectively to detect whether the link to be identified is consistent with any one of the link synchronization result and the local original link, thereby obtaining the link matching result corresponding to the link to be identified. And when the link matching result indicates that the link to be identified matches any one of the link synchronization result or the local original link, it is determined that the link to be identified belongs to an abnormal link, and when the link matching result indicates that the link to be identified does not match either the link synchronization result or the local original link, it is considered that the link to be identified does not belong to an abnormal link.
[0091] In an exemplary embodiment, as shown in FIG6 , the link update process in the background abnormal link library further includes:
[0092] Step S602: in response to the abnormal link update instruction, obtaining the link to be updated in the abnormal link update instruction and the update content corresponding to the link to be updated.
[0093] Among them, the abnormal link update instruction refers to an instruction to update the background abnormal link in the background abnormal link library. The link to be updated refers to the link that needs to be updated in the background abnormal link library. It should be noted that the link update in this embodiment does not only refer to the link that needs to be updated, but also the newly added link belongs to the link update. The updated content includes but is not limited to the updated URL, link code, picture, description and other content.
[0094] Exemplarily, in response to the abnormal link update instruction, the background abnormal link library first obtains the link to be updated contained in the abnormal link update instruction and the update content corresponding to the link to be updated.
[0095] Step S604: Determine a target update link that matches the link to be updated in the background original links.
[0096] The background original link refers to each abnormal link stored in the background abnormal link library before the current link update is performed. The target update link refers to a link with the same link number as the link to be updated.
[0097] Exemplarily, the background abnormal link library obtains abnormal links stored before the current link update is executed, and matches the numbers of these abnormal links with the numbers of the links to be updated, so as to use the abnormal links with the same numbers as the target update links.
[0098] Step S606: based on the updated content, update the content of the target update link to obtain a background abnormal link.
[0099] Exemplarily, the background abnormal link library updates the current link content of the target update link to the update content included in the abnormal link update instruction, thereby obtaining the background abnormal link.
[0100] In this embodiment, by updating the background abnormal link library, the real-time and accuracy of the abnormal links in the background abnormal link library are ensured, thereby ensuring the accuracy of subsequent abnormal link synchronization, thereby improving the accuracy of abnormal link identification.
[0101] In an exemplary embodiment, as shown in FIG7 , based on the update content, the target update link is updated to obtain a background abnormal link, including:
[0102] Step S702: based on the updated content, update the content of the target update link to obtain an intermediate link.
[0103] Step S704, obtaining the original version number of each background original link and the maximum original version number among the original version numbers.
[0104] The intermediate link refers to a link that only updates the content of the target update link. It should be noted that link updates include content updates and version number updates. The original version number refers to the version number of the original link in the background, and the maximum original version number refers to the maximum version number among the original version numbers.
[0105] Exemplarily, the background abnormal link library updates the link content of the target update link based on the update content, thereby obtaining the intermediate link, and obtains the original version number of each background original link and the largest version number among these original version numbers.
[0106] Step S706: increment the maximum original version number according to the version number increment rule to obtain an incremented version number.
[0107] Step S708, updating the version number of the intermediate link to the incremented version number, and obtaining the background abnormal link.
[0108] Among them, version number increment means to increment based on the maximum original version number according to the preset increment rule. For example, if the maximum original version number is v1 and the increment rule is to increment by 1 each time, then the incremented version number is v2. Of course, the increment rule is not limited to this. You can also set increment rules for letters, and you can also freely set the value of each increment. The specific setting can be made according to the actual situation.
[0109] Exemplarily, after the background exception link library completes the content update of the target update link, it can further update the version number of the target update link, that is, increment the maximum original version number according to the preset increment rule to obtain the incremented version number, and then obtain the background exception link.
[0110] In this embodiment, the version number of the target update link is updated according to the version number increment rule to ensure the accuracy of the version number of the background exception link, thereby improving the accuracy of subsequent version number queries based on the maximum version number of the local exception link library, and further improving the accuracy of link synchronization.
[0111] In a specific embodiment, the abnormal link synchronization method further includes: the background abnormal link library responds to the abnormal link update instruction, obtains the link to be updated in the abnormal link update instruction, and the update content corresponding to the link to be updated. In the background original link, determine the target update link that matches the link to be updated. Based on the update content, update the content of the target update link to obtain an intermediate link. Obtain the original version number of each background original link and the maximum original version number among the original version numbers. According to the version number increment rule, increment the version number of the maximum original version number to obtain the incremented version number. Update the version number of the intermediate link to the incremented version number to obtain the background abnormal link. In response to the abnormal link synchronization instruction, the local abnormal link library respectively obtains the first candidate version number of each local abnormal link and the maximum version number among the first candidate version numbers. Send the maximum version number to the background abnormal link library. When receiving the maximum version number sent by the local abnormal link library, the background abnormal link library respectively obtains the second candidate version number of each background abnormal link. From each second candidate version number, filter out each latest version number whose version number is greater than the maximum version number. The latest abnormal link corresponding to each latest version number is returned to the local abnormal link library. The local abnormal link library receives multiple latest abnormal links returned by the background abnormal link library based on the maximum version number, obtains the first link number of each latest abnormal link respectively, and matches the first link number with the second link number of each local abnormal link for each first link number respectively, and obtains the number matching result corresponding to the first link number; when the number matching result indicates that the first link number matches any one of the second link numbers, the latest abnormal link is used as a valid link. And from each local abnormal link, the target link matching the valid link is screened out. The link content of the valid link is synchronized to the target link. The link synchronization result corresponding to the target link is obtained, and the local abnormal link library responds to the abnormal identification instruction for the link to be identified, and sends the link synchronization result and the local original link that has not been synchronized with the abnormal link to the abnormal link identification module. Through the abnormal link identification module, the link to be identified is respectively matched with the link synchronization result and the local original link, and the link matching result corresponding to the link to be identified is obtained. When the link matching result indicates that the link to be identified matches any one of the link synchronization result or the local original link, it is determined that the link to be identified belongs to an abnormal link.
[0112] In this embodiment, the local abnormal link library responds to the abnormal link synchronization instruction, obtains the first candidate version number of each local abnormal link stored therein, and the maximum version number of each first candidate version number, and then sends the maximum version number to the background abnormal link library. When the background abnormal link library receives the maximum version number, it obtains the second candidate version number of each background abnormal link stored therein, and then filters out the latest version numbers with a version number greater than the maximum version number from each second candidate version number, and returns the latest abnormal link corresponding to each latest version number to the local abnormal link library. After receiving the latest abnormal link, the local abnormal link library can extract the valid link in each latest abnormal link, thereby filtering out the target link matching the valid link in each local abnormal link, and finally synchronizing the link content of the valid link to the target link, so as to complete the abnormal link synchronization process between the local abnormal link library and the background abnormal link library. The present application filters out the latest abnormal link from the background abnormal link library according to the version number, thereby synchronizing the latest abnormal link to the local abnormal link library, without synchronizing all links in the background abnormal link library to the local, reducing the generation of redundant data, thereby effectively improving the synchronization efficiency of the abnormal link.
[0113] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0114] Based on the same inventive concept, the embodiment of the present application also provides an abnormal link synchronization device for implementing the abnormal link synchronization method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more abnormal link synchronization device embodiments provided below can refer to the limitations of the abnormal link synchronization method above, and will not be repeated here.
[0115] In an exemplary embodiment, as shown in FIG8 , an exception link synchronization device is provided, which is applied to a local exception link library, and includes: a first version number acquisition module 802, which is used to respond to an exception link synchronization instruction and respectively acquire the first candidate version number of each local exception link and the maximum version number of each first candidate version number; a latest link acquisition module 804, which is used to send the maximum version number to the background exception link library, and receive multiple latest exception links returned by the background exception link library based on the maximum version number; the version number of the latest exception link is greater than the maximum version number; a link matching module 806, which is used to acquire the valid links in each latest exception link, and filter out the target link that matches the valid link from each local exception link; a link synchronization module 808, which is used to synchronize the link content of the latest exception link to the target link.
[0116] In one embodiment, the link matching module 806 is further configured to: respectively obtain the first link number of each latest abnormal link; and obtain a valid link in each latest abnormal link based on each first link number.
[0117] In one embodiment, the link matching module 806 is also used to: for each first link number, match the first link number with the second link number of each local abnormal link respectively to obtain a number matching result corresponding to the first link number; when the number matching result indicates that the first link number matches any one of the second link numbers, the latest abnormal link corresponding to the first link number is used as a valid link.
[0118] In one embodiment, the device is also used to: obtain a link synchronization result corresponding to the target link; in response to an abnormal identification instruction for the link to be identified, send the link synchronization result and the local original link that has not undergone abnormal link synchronization to the abnormal link identification module; through the abnormal link identification module, link match the link to be identified with the link synchronization result and the local original link respectively to obtain a link matching result corresponding to the link to be identified; when the link matching result indicates that the link to be identified matches either the link synchronization result or the local original link, it is determined that the link to be identified is an abnormal link.
[0119] In an exemplary embodiment, as shown in FIG9 , an exception link synchronization device is provided, which is applied to a background exception link library, and includes: a second version number acquisition module 902, which is used to obtain the second candidate version number of each background exception link when receiving the maximum version number sent by the local exception link library; the maximum version number refers to the maximum version number among the first candidate version numbers of each local exception link stored in the local exception link library; a version number screening module 904, which is used to screen out the latest version numbers whose version numbers are greater than the maximum version number from each second candidate version number; a latest link return module 906, which is used to return the latest exception link corresponding to each latest version number to the local exception link library; the latest exception link is used for the local exception link library to perform exception link synchronization.
[0120] In one embodiment, the device also includes: an update instruction acquisition unit, which is used to respond to the abnormal link update instruction to acquire the link to be updated in the abnormal link update instruction and the update content corresponding to the link to be updated; an update link matching unit, which is used to determine the target update link that matches the link to be updated in the background original link; and an update unit, which is used to update the content of the target update link based on the update content to obtain the background abnormal link.
[0121] In one embodiment, the update unit is also used to: based on the update content, update the content of the target update link to obtain an intermediate link; obtain the original version number of each background original link, and the maximum original version number among the original version numbers; according to the version number increment rule, increment the maximum original version number to obtain the incremented version number; update the version number of the intermediate link to the incremented version number to obtain the background exception link.
[0122] Each module in the abnormal link synchronization device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.
[0123] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG10. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store abnormal link synchronization data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, an abnormal link synchronization method is implemented.
[0124] Those skilled in the art will understand that the structure shown in FIG. 10 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0125] In an exemplary embodiment, a computer device is provided, which is applied to a local exception link library, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: in response to an exception link synchronization instruction, respectively obtaining the first candidate version number of each local exception link and the maximum version number of each first candidate version number; sending the maximum version number to a background exception link library, and receiving multiple latest exception links returned by the background exception link library based on the maximum version number; the version number of the latest exception link is greater than the maximum version number; obtaining valid links in each latest exception link, and filtering out target links matching the valid links from each local exception link; and synchronizing the link content of the valid link to the target link.
[0126] In one embodiment, when the processor executes the computer program, the following steps are further implemented: respectively obtaining the first link number of each latest abnormal link; and obtaining a valid link in each latest abnormal link based on each first link number.
[0127] In one embodiment, when the processor executes the computer program, the following steps are also implemented: for each first link number, the first link number is matched with the second link number of each local abnormal link respectively to obtain a number matching result corresponding to the first link number; when the number matching result indicates that the first link number matches any one of the second link numbers, the latest abnormal link corresponding to the first link number is used as a valid link.
[0128] In one embodiment, when the processor executes the computer program, the following steps are also implemented: obtaining a link synchronization result corresponding to the target link; in response to an abnormal identification instruction for the link to be identified, sending the link synchronization result and the local original link that has not undergone abnormal link synchronization to the abnormal link identification module; through the abnormal link identification module, link matching the link to be identified with the link synchronization result and the local original link respectively, to obtain a link matching result corresponding to the link to be identified; when the link matching result indicates that the link to be identified matches either the link synchronization result or the local original link, determining that the link to be identified is an abnormal link.
[0129] In an exemplary embodiment, a computer device is also provided, which is applied to a background exception link library, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when executing the computer program: upon receiving the maximum version number sent by the local exception link library, the second candidate version number of each background exception link is obtained respectively; the maximum version number refers to the largest version number among the first candidate version numbers of each local exception link stored in the local exception link library; from each second candidate version number, the latest version number whose version number is greater than the maximum version number is screened out; the latest exception link corresponding to each latest version number is returned to the local exception link library; the latest exception link is used for the local exception link library to synchronize the exception link.
[0130] In one embodiment, when the processor executes the computer program, the following steps are also implemented: in response to the abnormal link update instruction, the link to be updated in the abnormal link update instruction and the update content corresponding to the link to be updated are obtained; in the background original link, a target update link matching the link to be updated is determined; based on the update content, the content of the target update link is updated to obtain the background abnormal link.
[0131] In one embodiment, when the processor executes the computer program, the following steps are also implemented: based on the update content, the target update link is updated to obtain an intermediate link; the original version number of each background original link and the maximum original version number among the original version numbers are obtained; according to the version number incrementing rule, the maximum original version number is incremented to obtain the incremented version number; the version number of the intermediate link is updated to the incremented version number to obtain the background exception link.
[0132] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: in response to an exception link synchronization instruction, the first candidate version number of each local exception link and the maximum version number of each first candidate version number are respectively obtained; the maximum version number is sent to a background exception link library, and a plurality of latest exception links returned by the background exception link library based on the maximum version number are received; the version number of the latest exception link is greater than the maximum version number; the valid links in each latest exception link are obtained, and a target link matching the valid link is screened out from each local exception link; and the link content of the valid link is synchronized to the target link.
[0133] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: respectively obtaining the first link number of each latest abnormal link; and obtaining a valid link in each latest abnormal link based on each first link number.
[0134] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: for each first link number, the first link number is matched with the second link number of each local exception link respectively to obtain a number matching result corresponding to the first link number; when the number matching result indicates that the first link number matches any one of the second link numbers, the latest exception link corresponding to the first link number is used as a valid link.
[0135] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a link synchronization result corresponding to the target link; in response to an abnormal identification instruction for the link to be identified, sending the link synchronization result and the local original link that has not undergone abnormal link synchronization to the abnormal link identification module; through the abnormal link identification module, link matching the link to be identified with the link synchronization result and the local original link respectively, to obtain a link matching result corresponding to the link to be identified; when the link matching result indicates that the link to be identified matches either the link synchronization result or the local original link, determining that the link to be identified is an abnormal link.
[0136] In one embodiment, a computer-readable storage medium is also provided, on which a computer program is stored. When the computer program is executed by a processor, the following steps are implemented: when the maximum version number sent by the local exception link library is received, the second candidate version number of each background exception link is obtained respectively; the maximum version number refers to the largest version number among the first candidate version numbers of each local exception link stored in the local exception link library; from each second candidate version number, the latest version number whose version number is greater than the maximum version number is screened out; the latest exception link corresponding to each latest version number is returned to the local exception link library; the latest exception link is used for the local exception link library to synchronize the exception link.
[0137] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to the abnormal link update instruction, the link to be updated in the abnormal link update instruction and the update content corresponding to the link to be updated are obtained; in the background original link, a target update link matching the link to be updated is determined; based on the update content, the content of the target update link is updated to obtain the background abnormal link.
[0138] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the update content, the target update link is updated to obtain an intermediate link; the original version number of each background original link and the maximum original version number among the original version numbers are obtained; according to the version number incrementing rule, the maximum original version number is incremented to obtain the incremented version number; the version number of the intermediate link is updated to the incremented version number to obtain the background exception link.
[0139] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: in response to an exception link synchronization instruction, respectively obtain the first candidate version number of each local exception link and the maximum version number of each first candidate version number; send the maximum version number to a background exception link library, and receive multiple latest exception links returned by the background exception link library based on the maximum version number; the version number of the latest exception link is greater than the maximum version number; obtain the valid links in each latest exception link, and filter out the target link matching the valid link from each local exception link; synchronize the link content of the valid link to the target link.
[0140] In one embodiment, when the computer program is executed by the processor, the following steps are further implemented: respectively obtaining the first link number of each latest abnormal link; and obtaining a valid link in each latest abnormal link based on each first link number.
[0141] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: for each first link number, the first link number is matched with the second link number of each local exception link respectively to obtain a number matching result corresponding to the first link number; when the number matching result indicates that the first link number matches any one of the second link numbers, the latest exception link corresponding to the first link number is used as a valid link.
[0142] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: obtaining a link synchronization result corresponding to the target link; in response to an abnormal identification instruction for the link to be identified, sending the link synchronization result and the local original link that has not undergone abnormal link synchronization to the abnormal link identification module; through the abnormal link identification module, link matching the link to be identified with the link synchronization result and the local original link respectively, to obtain a link matching result corresponding to the link to be identified; when the link matching result indicates that the link to be identified matches either the link synchronization result or the local original link, determining that the link to be identified is an abnormal link.
[0143] In one embodiment, a computer program product is provided, including a computer program, which implements the following steps when executed by a processor: upon receiving a maximum version number sent by a local exception link library, obtaining a second candidate version number of each background exception link respectively; the maximum version number refers to the largest version number among the first candidate version numbers of each local exception link stored in the local exception link library; from each second candidate version number, screening out each latest version number whose version number is greater than the maximum version number; returning the latest exception link corresponding to each latest version number to the local exception link library; the latest exception link is used for the local exception link library to perform exception link synchronization.
[0144] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: in response to the abnormal link update instruction, the link to be updated in the abnormal link update instruction and the update content corresponding to the link to be updated are obtained; in the background original link, a target update link matching the link to be updated is determined; based on the update content, the content of the target update link is updated to obtain the background abnormal link.
[0145] In one embodiment, when the computer program is executed by the processor, the following steps are also implemented: based on the update content, the target update link is updated to obtain an intermediate link; the original version number of each background original link and the maximum original version number among the original version numbers are obtained; according to the version number incrementing rule, the maximum original version number is incremented to obtain the incremented version number; the version number of the intermediate link is updated to the incremented version number to obtain the background exception link.
[0146] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0147] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0148] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0149] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. An abnormal link synchronization method, characterized in that: Applied to a local abnormal link library, the method comprises: In response to the exception link synchronization instruction, respectively obtain the first candidate version number of each local exception link and the maximum version number among the first candidate version numbers; Sending the maximum version number to a background abnormal link library, and receiving a plurality of latest abnormal links returned by the background abnormal link library based on the maximum version number; the version number of the latest abnormal link is greater than the maximum version number; Acquire valid links from each of the latest abnormal links, and filter out target links that match the valid links from each of the local abnormal links; The link content of the valid link is synchronized to the target link.
2. The method according to claim 1, characterized in that The obtaining of valid links in each of the latest abnormal links includes: Respectively obtain the first link number of each of the latest abnormal links; Based on each of the first link numbers, a valid link in each of the latest abnormal links is obtained.
3. The method according to claim 2, characterized in that The acquiring, based on each of the first link numbers, a valid link in each of the latest abnormal links comprises: For each of the first link numbers, matching the first link number with the second link number of each of the local abnormal links respectively to obtain a number matching result corresponding to the first link number; When the number matching result indicates that the first link number matches any one of the second link numbers, the latest abnormal link is used as a valid link.
4. The method according to claim 1, characterized in that: The method further comprises: Obtaining a link synchronization result corresponding to the target link; In response to an abnormality identification instruction for a link to be identified, sending the link synchronization result and the local original link that has not undergone abnormal link synchronization to an abnormal link identification module; Through the abnormal link identification module, the link to be identified is respectively matched with the link synchronization result and the local original link to obtain a link matching result corresponding to the link to be identified; When the link matching result indicates that the link to be identified matches any one of the link synchronization result and the local original link, it is determined that the link to be identified is an abnormal link.
5. An abnormal link synchronization method, characterized in that: Applied to the background abnormal link library, the method includes: Upon receiving the maximum version number sent by the local abnormal link library, respectively obtaining the second candidate version number of each background abnormal link; the maximum version number refers to the largest version number among the first candidate version numbers of each local abnormal link stored in the local abnormal link library; Filter out the latest version numbers whose version numbers are greater than the maximum version number from the second candidate version numbers; The latest exception link corresponding to each of the latest version numbers is returned to the local exception link library; the latest exception link is used by the local exception link library to perform exception link synchronization.
6. The method according to claim 5, characterized in that The method further comprises: In response to the abnormal link update instruction, obtaining the link to be updated in the abnormal link update instruction and the update content corresponding to the link to be updated; Determine a target update link that matches the link to be updated in the background original links; Based on the updated content, the target update link is updated to obtain the background abnormal link.
7. The method according to claim 6, characterized in that The updating of the target update link based on the update content to obtain the background abnormal link includes: Based on the updated content, updating the content of the target update link to obtain an intermediate link; Obtaining the original version number of each of the background original links and the maximum original version number among the original version numbers; According to the version number increment rule, the maximum original version number is incremented to obtain an incremented version number; The version number of the intermediate link is updated to the incremented version number to obtain the background abnormal link.
8. An abnormal link synchronization device, characterized in that: Applied to a local abnormal link library, the device comprises: A first version number acquisition module, configured to respectively acquire a first candidate version number of each local abnormal link and a maximum version number among the first candidate version numbers in response to an abnormal link synchronization instruction; The latest link acquisition module is used to send the maximum version number to the background abnormal link library, and receive multiple latest abnormal links returned by the background abnormal link library based on the maximum version number; the version number of the latest abnormal link is greater than the maximum version number; A link matching module, used to obtain valid links from each of the latest abnormal links, and filter out target links that match the valid links from each of the local abnormal links; A link synchronization module is used to synchronize the link content of the latest abnormal link to the target link.
9. An abnormal link synchronization device, characterized in that: Applied to the background abnormal link library, the device includes: A second version number acquisition module is used to acquire the second candidate version number of each background abnormal link respectively when receiving the maximum version number sent by the local abnormal link library; the maximum version number refers to the maximum version number among the first candidate version numbers of each local abnormal link stored in the local abnormal link library; A version number screening module, used to screen out the latest version numbers whose version numbers are greater than the maximum version number from the second candidate version numbers; The latest link returning module is used to return the latest exception link corresponding to each of the latest version numbers to the local exception link library; the latest exception link is used by the local exception link library to perform exception link synchronization.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
