Link processing method and apparatus, and electronic device and storage medium
By identifying and removing privacy parameters from links, the problem of social media account leaks was solved, and privacy protection was achieved when sharing links.
Patent Information
- Application Number
- PCT/CN2025/090017
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-04-24
- Filing Date
- 2025-04-21
- Publication Date
- 2025-10-30
AI Technical Summary
When a user shares a link, others may be able to locate the sharer's social media account through that link, leading to the leakage of social media accounts.
Obtain the link that the first target wants to share, identify the privacy parameters (such as account information) in it, remove them, obtain the second link, and then share the second link.
It blocked the tracking of the first party's account based on links, thus protecting the privacy and security of the first party.
Smart Images

Figure CN2025090017_30102025_PF_FP_ABST
Abstract
Description
Link processing methods, devices, electronic devices and storage media
[0001] Cross-reference to related applications
[0002] This application claims priority to Chinese Patent Application No. 202410502988.5, filed on April 24, 2024, entitled “Link Processing Method, Apparatus, Electronic Device and Storage Medium”, the entire contents of which are incorporated herein by reference. Technical Field
[0003] This application relates to the field of communication technology, and in particular to a link processing method, apparatus, electronic device, and storage medium. Background Technology
[0004] Currently, users often share links with friends or family when using electronic devices. After a user shares a link with friends or family, others may be able to locate the sharer's social media account through the shared link, thus resulting in the leakage of the sharer's social media account. For example, if a user shares a link with friend A, and friend A then shares the link with others, those others who receive the link may be able to locate the user's social media account through the link, resulting in the leakage of the user's social media account. Summary of the Invention
[0005] The purpose of this application is to provide a link processing method, apparatus, electronic device, and readable storage medium to block social media accounts from being tracked and protect user privacy.
[0006] In a first aspect, embodiments of this application provide a link processing method, the method comprising:
[0007] Get the first link that the first object wants to share to the second object;
[0008] Identify privacy parameters in the first link, wherein the privacy parameters are parameters related to the account information of the first object;
[0009] The privacy parameters are removed from the first link to obtain the second link;
[0010] Share the second link to the second object.
[0011] Secondly, embodiments of this application provide a link processing apparatus, the apparatus comprising:
[0012] The first acquisition module is used to acquire the first link that the first object wants to share to the second object;
[0013] The identification module is used to identify privacy parameters in the first link, wherein the privacy parameters are parameters related to the account information of the first object;
[0014] A first determining module is used to remove the privacy parameters from the first link to obtain a second link;
[0015] The sharing module is used to share the second link to the second object.
[0016] Thirdly, embodiments of this application provide an electronic device including a processor and a memory, wherein the memory stores programs or instructions executable on the processor, and the programs or instructions, when executed by the processor, implement the steps of the method described in the first aspect.
[0017] Fourthly, embodiments of this application also provide an electronic device configured to perform the data processing method as described in the first aspect.
[0018] Fifthly, embodiments of this application provide a readable storage medium on which a program or instructions are stored, which, when executed by a processor, implement the steps of the method described in the first aspect.
[0019] In a sixth aspect, embodiments of this application provide a chip, the chip including a processor and a communication interface, the communication interface being coupled to the processor, the processor being used to run programs or instructions to implement the method as described in the first aspect.
[0020] In a seventh aspect, embodiments of this application provide a computer program product stored in a storage medium, which is executed by at least one processor to implement the method described in the first aspect.
[0021] In this embodiment, by obtaining a first link that a first object wants to share to a second object, identifying privacy parameters related to the first object's account information in the first link, removing the privacy parameters from the first link to obtain a second link, and then sharing the second link to the second object, the link shared by the first object to the second object is a link with the parameters related to the first object's account information removed. Thus, it is impossible to track the first object's account based on this link, thereby blocking the tracking of the first object's account and protecting the privacy and security of the first object. Attached Figure Description
[0022] To more clearly illustrate the technical solutions of the embodiments of this application, the drawings used in the description of the embodiments of this application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 is a flowchart illustrating the link processing method provided in some embodiments of this application;
[0024] Figure 2 is a schematic diagram of query information provided in some embodiments of this application;
[0025] Figure 3 is a schematic diagram of setting the target label of the second object according to some embodiments of this application;
[0026] Figure 4 is a flowchart illustrating the link processing method provided in some embodiments of this application;
[0027] Figure 5 is a schematic diagram of the structure of a link processing device shown in some embodiments of this application;
[0028] Figure 6 is a schematic diagram of the structure of an electronic device shown in some embodiments of this application;
[0029] Figure 7 is a schematic diagram of the hardware structure of an electronic device shown in some embodiments of this application. Detailed Implementation
[0030] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.
[0031] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such use of data can be interchanged where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.
[0032] As described in the background section, existing technologies have the problem that after a link is shared with others, others may be able to track down the account information of the link sharer, thus causing the leakage of the link sharer's account information. To solve this problem, embodiments of this application provide a link processing method, apparatus, electronic device, and storage medium. By obtaining a first link that a first object wants to share to a second object, identifying privacy parameters related to the first object's account information in the first link, removing the privacy parameters from the first link to obtain a second link, and then sharing the second link to the second object, the link shared by the first object to the second object is a link with the parameters related to the first object's account information removed. Thus, it is impossible to track down the first object's account based on this link, preventing the first object's account from being tracked and protecting the first object's privacy and security.
[0033] The technical solutions of this application embodiment can be applied to link sharing scenarios, such as when a user sends a link to a product to a friend.
[0034] The link processing method provided in this application will be described in detail below with reference to the accompanying drawings, through specific embodiments and application scenarios.
[0035] Figure 1 is a schematic flowchart of a link processing method provided in an embodiment of this application. This link processing method can be applied to electronic devices, including but not limited to personal computers (PCs), smartphones, tablets, or personal digital assistants (PDAs). It should be noted that the above-mentioned execution subject is not a limitation on the embodiments of this application.
[0036] As shown in Figure 1, the link processing method provided in this application embodiment may include steps 110-140.
[0037] Step 110: Obtain the first link that the first object wants to share to the second object.
[0038] The first object can be the object whose link is to be shared. The second object can be the object whose link is being shared.
[0039] The first link can be the link that the first object wants to share.
[0040] In one example, if user A shares a link to product F in a shopping application C with friend B through instant messaging application D, then user A is the first object, the link to product F is the first link, and friend B is the second object.
[0041] In some embodiments of this application, taking the above example as an example, if user A wants to share a link to product F in shopping application C with friend B through instant messaging application D, there are generally two ways:
[0042] The first method is to forward the link:
[0043] User A clicks the share control in application C corresponding to product F → selects the instant messaging application D to share to → enters friend B's chat page in instant messaging application D and passes the link to product F → redirects to instant messaging application D.
[0044] The second method is to copy the link:
[0045] User A clicks the share control in application C corresponding to product F → selects the copy URL control → writes the link of product F to the clipboard → User A opens instant messaging application D → User A pastes the link of product F into the input box of the chat page with friend B.
[0046] It should be noted that regardless of which method the first object uses to share the first link, the shared first link is actually a web address, namely a Uniform Resource Locator (URL). The second object can directly enter the page corresponding to the web address by clicking the URL, or the second object can copy the URL into the application corresponding to the URL, and the application corresponding to the URL will actively read the URL and then load the page corresponding to the URL to display to the second object.
[0047] In some embodiments of this application, since there are two ways to share the first link, the method of obtaining the first link will also be different for different sharing methods. That is, step 110 may specifically include:
[0048] Determine the sharing scenario for the first link;
[0049] Based on the acquisition strategy corresponding to the sharing scenario, obtain the first link that the first object wants to share to the second object.
[0050] The first link can be shared in either of the two ways mentioned above.
[0051] In some embodiments of this application, different strategies for obtaining the first link can be used for different sharing scenarios of the first link. In this way, the first link that the first object wants to share to the second object can be obtained according to the sharing scenario of the first link and the acquisition strategy corresponding to the sharing scenario.
[0052] In the embodiments of this application, the first link is obtained according to the sharing scenario and the acquisition strategy corresponding to the sharing scenario, thereby improving the accuracy and flexibility of obtaining the first link.
[0053] In some embodiments of this application, when the sharing scenario involves forwarding a first link from a forwarding application to a receiving application, i.e., when the method of sharing the first link is the first method described above, the step of obtaining the first link to be shared by the first object to the second object according to the sharing scenario of the first link and the acquisition strategy corresponding to the sharing scenario may specifically include:
[0054] The function to be called when the first link is forwarded;
[0055] If it is determined that the forwarding application and the receiving application of the first link in the calling function are inconsistent, and the calling function contains a first parameter, and the information corresponding to the first parameter is URL type data, then obtain the information corresponding to the first parameter.
[0056] Use the information corresponding to the first parameter as the first link to share from the first object to the second object.
[0057] The function to be called can be the function used when forwarding the first link. For example, it could be the startActivity() function.
[0058] The forwarding application can be the party that forwards the first link. The receiving application can be the party that receives the first link. Here, the forwarding application can be described as the first application, and the receiving application can be described as the second application. Both the forwarding application and the receiving application can be any application.
[0059] Continuing with the example above, if user A wants to share a link to product F from shopping application C with friend B via instant messaging application D, then the first application to forward the link is application C, and the receiving application is instant messaging application D.
[0060] The first parameter can be a parameter used to represent the shared link, such as the extra parameter in the startActivity() function.
[0061] In some embodiments of this application, for scenarios involving forwarded links, in Android, forwarding data from one application to another is an operation that launches a third-party application page, which requires the use of the startActivity() function to launch the page. Therefore, when intercepting forwarded data, the startActivity() function can be listened to at the system level. If the startActivity() function is heard, it means that data needs to be forwarded. Then, it can be compared whether the forwarding party and the receiving application are the same. If they are not the same, it means that the data needs to be forwarded across applications.
[0062] When determining whether the forwarding and receiving applications of forwarded data are consistent, this can be done by comparing the compressed package name of the forwarding application and the compressed package name of the receiving application. If the forwarding and receiving applications are inconsistent, it is also necessary to check whether the `startActivity()` function contains an `extra` parameter. If it does, the data to be forwarded is a link, meaning the `extra` parameter is the parameter for forwarding the link. If the `startActivity()` function contains an `extra` parameter, it is further checked whether the `extra` parameter contains specific parameter information. If it does, the link to be forwarded is present; otherwise, no link is present. If the `extra` parameter contains specific parameter information, it is determined whether this parameter information is URL type data. Since links are generally in the form of `http:` or `https:`, this data is URL type data. If the parameter information is determined to be URL type data, the data to be forwarded is a link, and this parameter information can be directly obtained and used as the first link.
[0063] In the embodiments of this application, when the sharing scenario involves forwarding a first link from a forwarding application to a receiving application, by listening to the function call when forwarding the first link, if it is determined that the forwarding application and the receiving application of the first link in the function call are inconsistent, and the function call contains a first parameter, and the information corresponding to the first parameter is URL type data, the information corresponding to the first parameter is used as the first link to be shared from the first object to the second object. In this way, the first link can be accurately obtained when the sharing link is a forwarding scenario, improving the accuracy and flexibility of obtaining the first link.
[0064] In some embodiments of this application, when the sharing scenario is copying the first link, i.e., when the method of sharing the first link is the second method described above, the step of obtaining the first link to be shared by the first object to the second object according to the sharing scenario of the first link and the acquisition strategy corresponding to the sharing scenario may specifically include:
[0065] Listen for the data written to the clipboard when the first link is copied;
[0066] If it is determined that the clipboard contains first data, and the first data is of type URL, then retrieve the first data.
[0067] Use the first data as the first link to share with the second object.
[0068] The first data may be data located in the clipboard of the forwarding application of the first link.
[0069] In some embodiments of this application, for the scenario of copying a link, it is generally implemented through a copy and paste operation. That is, the forwarding application of the first link writes the first link into the clipboard of the forwarding application and initiates the operation of jumping to the receiving application (or the user actively opens the receiving application). The first link is pasted in the receiving application. Therefore, the existence of the first data can be monitored in the clipboard of the forwarding application. If the first data exists, it is determined whether the first data is of the URL type. If so, the first data is used as the first link of the first object to be shared to the second object.
[0070] In the embodiments of this application, when the sharing scenario is copying the first link, by listening to the data written to the clipboard when copying the first link, if it is determined that there is first data in the clipboard and the first data is URL type data, the first data is used as the first link to be shared by the first object to the second object. In this way, the first link can be accurately obtained when the sharing link is a copy link scenario, which improves the accuracy and flexibility of obtaining the first link.
[0071] Step 120: Identify the privacy parameters in the first link.
[0072] Among them, privacy parameters can be parameters related to the account information of the first object. Specifically, it can be the account of the first object logging into the application corresponding to the first link, such as, but not limited to, the first object's email address, phone number, and ID number.
[0073] In some embodiments of this application, to improve the flexibility of concealing the privacy parameters of the first object, the method described above may further include the following steps before step 120:
[0074] Displays a prompt asking whether to enable anonymous sharing mode;
[0075] Receive the first input of the query information;
[0076] In response to the first input, determine whether to enable anonymous sharing mode for the first link;
[0077] Step 120 may specifically include:
[0078] If it is determined that the anonymous sharing mode is enabled for the first link, identify the privacy parameters in the first link.
[0079] The anonymous sharing mode can be a setting that hides privacy parameters in the first link. This anonymous sharing mode can be based on component services provided by the operating system to support its operation. Specifically, the operating system can be Linux. The component services can be, but are not limited to, built using the Spring framework, Spring Boot framework, or ToySpring framework.
[0080] The query information can be a request to the first party to inquire whether they have enabled anonymous sharing mode.
[0081] The first input is the input of query information. This first input is used to determine whether to enable the anonymous sharing mode for the first link. The first input can be a first operation. Exemplarily, the first input includes, but is not limited to: touch input of the query information by the first object using a finger or stylus, or a voice command input by the first object, or a specific gesture input by the first object, or other feasible inputs, which can be determined according to actual usage needs. This embodiment of the invention does not limit this. The specific gesture in this application embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, or a double-tap gesture. The click input in this application embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input. For example, the first input can be: the first object's click input of the query information.
[0082] In some embodiments of this application, when the first object shares the first link with the second object, an inquiry message can be displayed asking the first object whether to enable the anonymous sharing mode. Then, in response to the first object's first input to the inquiry message, it is determined whether to enable the anonymous sharing mode for the first link based on the first input. If it is determined that the anonymous sharing mode for the first link is enabled, the privacy parameters in the first link are identified by a parameter recognition model.
[0083] In one example, referring to Figure 2, let's continue with the example of user A wanting to share a link to product F from shopping application C with friend B via instant messaging application D. When user A shares the link to product F with friend B, a query message 21 appears in instant messaging application D. This query message 21 is displayed in the form of a pop-up window. Specifically, the query message 21 is: "Potential disclosure of social media account detected. Do you want to enable [Anonymous Sharing Mode]?" If user A clicks the "OK" control 22, the anonymous sharing mode is enabled. If the user clicks the "Cancel" control 23, the anonymous sharing mode is disabled.
[0084] In the embodiments of this application, by displaying an inquiry message asking whether to enable anonymous sharing mode, and then responding to the first object's first input of the inquiry message, it is determined whether to enable anonymous sharing mode for the first link. If it is determined that anonymous sharing mode is enabled for the first link, privacy parameters in the first link are identified through a parameter recognition model. Thus, based on the needs of the first object, it is selected whether to enable anonymous sharing mode for the first link. Only when it is determined that anonymous sharing mode is enabled for the first link are privacy parameters in the first link identified through a parameter recognition model, thereby improving the flexibility of processing the first link.
[0085] In some embodiments of this application, in order to accurately determine whether to enable the anonymous sharing mode for the first link, the determination of whether to enable the anonymous sharing mode for the first link may specifically include:
[0086] Receive the second input;
[0087] In response to the second input, set the target label for the second object;
[0088] Based on the first input and the target tag, determine whether to enable anonymous sharing mode for the first link.
[0089] The second input is an input to the object identifier corresponding to the second object. This second input is used to set a target label for the second object and can be a second operation. For example, the second input includes, but is not limited to: touch input from the first object to the object identifier corresponding to the second object in the receiving application via a finger or stylus, or a voice command input by the first object, or a specific gesture input by the first object, or other feasible inputs, which can be determined according to actual usage needs. This embodiment of the invention does not limit this. The specific gesture in this application embodiment can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure recognition gesture, a long-press gesture, an area change gesture, a double-press gesture, or a double-click gesture; the click input in this application embodiment can be a single-click input, a double-click input, or any number of clicks, and can also be a long-press input or a short-press input. For example, the second input can be: a click input from the first object to the object identifier corresponding to the second object.
[0090] The target tag can be a tag used to characterize whether the second object and the first object are friends. This target tag can include either a first tag or a second tag. The first tag can represent a whitelist for sharing the first link; that is, when the first object shares the first link with objects on the whitelist, the link can include the first object's privacy parameters. The second tag can indicate that when the first object shares the first link with objects corresponding to this tag, the link cannot include the first object's privacy parameters.
[0091] In some embodiments of this application, a first tag can be used to indicate that a first object and a second object are friends, and a second tag can be used to indicate that a first object and a second object are not friends. Whether a first object and a second object are friends does not refer to whether they are friends in an instant messaging application, but rather to whether the first object subjectively believes they are friends. For example, although the first object and the second object follow each other in a short video social application and are friends in the application, the first object subjectively believes that if it shares a link with the second object, the second object might forward that link to others. Therefore, the first object sets the tag for the second object as "not friends," i.e., the second tag. If the first object subjectively believes that if it shares a link with the second object, the second object will not forward that link to others, then the first object sets the tag for the second object as "friends," i.e., the first tag. In other words, if the first object sets the target tag for the second object to the first tag, the first object is confident that the second object will not share the shared link with others. If the first object sets the target tag for the second object to the second tag, the first object believes that the second object might share the shared link with others. In some embodiments of this application, after setting a target tag for the second object, it is determined whether to enable the anonymous sharing mode for the first link based on the first input and the target tag.
[0092] In the embodiments of this application, based on the first input, the target tag set by the first object for the second object is further referenced to determine whether to enable the anonymous sharing mode for the first link. Thus, the determination of whether to enable the anonymous sharing mode for the first link is based on the needs of the first object, thereby improving the accuracy and flexibility of whether to enable the anonymous sharing mode for the first link.
[0093] In some embodiments of this application, to improve the flexibility of setting the target label of the second object, the method described above may further include the following before receiving the second input of the first object:
[0094] Receive the third input from the first object;
[0095] In response to a third input, obtain a friend list of at least one receiving application;
[0096] Display a list of friends from at least one receiving application;
[0097] The second input received from the first object includes:
[0098] The first object receives a second input, which is the object identifier of the second object in the first receiving application.
[0099] The third input refers to input made to the electronic device. This third input is used to obtain a friend list from at least one receiving application. The third input can be a third operation. Exemplarily, the third input includes, but is not limited to: touch input from the first object to the electronic device using a finger or stylus, voice commands input by the first object, specific gestures input by the first object, or other feasible inputs, which can be determined according to actual usage needs. This embodiment of the invention does not limit the specific gestures. In this application embodiment, the specific gestures can be any one of a single-click gesture, a swipe gesture, a drag gesture, a pressure-recognition gesture, a long-press gesture, an area-change gesture, a double-press gesture, or a double-tap gesture. The click input in this application embodiment can be a single-click input, a double-tap input, or any number of clicks, and can also be a long-press input or a short-press input. For example, the third input can be: a click input from the first object to the electronic device.
[0100] In some embodiments of this application, at least one receiving application may include a first receiving application, wherein the friend list of the first receiving application may include a second object.
[0101] The object identifier of the second object can be the identifier of the second object, such as the avatar of the second object, the name of the second object, or a combination of the above two identifiers. In this embodiment of the application, no limitation is made.
[0102] In some embodiments of this application, by responding to a third input from a first object, a friend list of at least one receiving application can be obtained and displayed. Then, by receiving a second input from the first object regarding the object identifier of a second object in the first receiving application, the target tag of the second object can be set.
[0103] In one example, referring to Figure 3, let's continue with the example of user A sharing a link to product F in a shopping application C with friend B through instant messaging application D. After user A clicks the share control 31 in application C corresponding to product F, multiple application icons will be displayed, such as application icon 32 of application D, application icon 33 of application E, and application icon 34 of application G in Figure 3. If the first person wants to share the first link with friend B in application D, the first person clicks application icon 32 of application D, which displays the first person's friend list 35 in application D. Then, the first person finds the object identifier 36 of friend B in the friend list 35 and clicks on the object identifier 36 of friend B to set the target tag for the second person.
[0104] In the embodiments of this application, by responding to the third input of the first object, the friend list of at least one receiving application is obtained and displayed, and then the second input of the first object on the object identifier of the second object in the first receiving application is received, the target tag of the second object can be set. In this way, the target tag of the second object can be set according to the needs of the first object, which improves the flexibility of the target tag setting of the second object.
[0105] In some embodiments of this application, in order to accurately determine whether to enable the anonymous sharing mode for the first link, the determination of whether to enable the anonymous sharing mode for the first link is based on the first input and the target tag, including:
[0106] If the first input is determined to enable the hidden sharing mode for the first link, and the target tag is the first tag, then the hidden sharing mode for the first link is not enabled.
[0107] If the first input is determined to enable anonymous sharing mode for the first link, and the target tag is the second tag, then the anonymous sharing mode for the first link is enabled.
[0108] In some embodiments of this application, when the first input is to confirm that the anonymous sharing mode is enabled for the first link, that is, the first object clicks the "OK" control 22 in Figure 2 and the first object sets the tag of the second object as the first tag, the first object does not need to enable the anonymous sharing mode when sharing the first link with the second object. This is because the first object considers itself and the second object to be friends and is relatively confident that the second object will not forward the link it shared to others at will, so the anonymous sharing mode does not need to be enabled.
[0109] If the first input is to confirm that the first link is to be shared anonymously, that is, the first object clicks the "OK" control 22 in Figure 2 and sets the second object's label to the second label, then the first object needs to enable the anonymous sharing mode when sharing the first link with the second object. This is because the first object believes that it and the second object are not friends and believes that the second object may forward the link it shared to others at will, so the anonymous sharing mode needs to be enabled.
[0110] If the first input is to confirm that the first link will not be enabled in anonymous sharing mode, then regardless of what target tag the first object sets for the second object, the first link will not be enabled in anonymous sharing mode.
[0111] It should be noted that if the first input is to confirm that the anonymous sharing mode is enabled for the first link, it is necessary to determine whether to enable the anonymous sharing mode for the first link based on the target tag of the first object.
[0112] The above situations can be summarized as shown in Table 1 below:
[0113] Table 1
[0114] In the embodiments of this application, whether to enable the hidden sharing mode for the first link is determined comprehensively based on the first input and the target tag of the second object, thereby improving the accuracy of enabling the hidden sharing mode.
[0115] In some embodiments of this application, to improve the flexibility of identifying privacy parameters in the first link, step 120 may specifically include:
[0116] When the first link is in the form of a first form, privacy parameters are identified from the first link in the first form using a parameter identification model;
[0117] If the first link takes the form of the second form, the first link is parsed, and based on the parsing result, privacy parameters are identified through a parameter recognition model.
[0118] The first and second forms can each be a form of the first link. Specifically, the first form can be a regular link, such as: https: / / demo.com / article / 10001110001112345 / ?app_platfrom=ios&appuid=2345678&time=1710832357&phone=131xxxxxxxx.
[0119] The second form can be a short link, such as: https: / / demoshort.com / uR031E.
[0120] In some embodiments of this application, the first type of link does not require processing, and privacy parameters can be directly identified from the first link of the first type using a parameter recognition model. The second type of link requires processing, and then the privacy parameters are identified from the processed link using a parameter recognition model.
[0121] The parameter identification model can be a pre-trained model that identifies privacy parameters in the first link. This parameter identification model can be, but is not limited to, a neural network model, a support vector machine model, and a decision tree model.
[0122] In the embodiments of this application, different methods can be used to identify privacy parameters depending on the different forms of the first link, thereby improving the flexibility of identifying privacy parameters in the first link.
[0123] In some embodiments of this application, the first link is parsed, and based on the parsing result, privacy parameters are identified through a parameter recognition model, which may specifically include:
[0124] The first link is parsed to obtain the access server parameters for the first link;
[0125] Access the server based on the access server parameters and obtain the storage address of the first link from the server;
[0126] Obtain the third link based on the storage address;
[0127] Privacy parameters are identified from third-party links using a parameter recognition model.
[0128] The access server parameters for the first link can be the server accessing the first link, that is, the server parameters of the forwarding application corresponding to the first link.
[0129] The third link can be a real URL obtained from the storage address of the first link, and the third link is in the first form.
[0130] In some embodiments of this application, the first link can be parsed. Specifically, the WebView component can be called to actively access the second form of the first link, then the access server parameters of the first link can be obtained, and then the server can be accessed based on the access server parameters. The storage address of the first link can be obtained from the server, and the real URL can be obtained based on the storage address. Privacy parameters can be identified from the real URL through a parameter recognition model.
[0131] In one example, taking the first link as https: / / demoshort.com / uR031E, the access server parameter of the first link is "demoshort.com", and the storage address of the first link is "uR031E". The real URL can be found based on the storage address "uR031E", and then the privacy parameters can be identified from the real URL through the parameter recognition model.
[0132] In the embodiments of this application, the access server parameters of the first link are obtained by parsing the first link, and then the server is accessed based on the access server parameters. The storage address of the first link is obtained from the server, and the third link is obtained based on the storage address. Privacy parameters are identified from the third link through a parameter recognition model. In this way, the real sharing link can be obtained through the first link in the second form, so that privacy parameters can be identified based on the third link, thereby improving the accuracy of privacy parameter identification.
[0133] In some embodiments of this application, target link privacy parameters are identified through a parameter recognition model, which may specifically include:
[0134] The parameters in the target link are broken down using a parameter recognition model;
[0135] Based on the meaning of each parameter, identify the parameters related to the account information of the first object.
[0136] Parameters related to the account information of the first object will be used as privacy parameters.
[0137] The target link can be a third link or a first link in the first form.
[0138] In some embodiments of this application, the parameters in the target link can be split using a parameter recognition model. For example, the parameters in the target link may include privacy parameters, unique identifier parameters representing the webpage, and device information parameters of the electronic device used by the first object. Then, based on the meaning of each parameter, parameters related to the account information of the first object are identified from each parameter, and the parameters related to the account information of the first object are used as privacy parameters.
[0139] In one example, taking the target link as "https: / / demo.com / article / 10001110001112345 / ?app_platform=ios&appuid=2345678&time=1710832357&phone=131xxxxxxxx", "https: / / demo.com / article / 10001110001112345 / " is the website's domain name and the article's unique identifier. "app_platform=ios" indicates that the device accessing the link is an iOS system. "time=1710832357" indicates the timestamp information for accessing the link. "appuid=2345678" is the user ID of the application that forwarded the link, used to identify the user accessing the link. "phone=131xxxxxxxx" is the phone number of the first object forwarding the link. Among the above parameters, "appuid=2345678" and "phone=131xxxxxxxx" are privacy parameters.
[0140] In some embodiments of this application, before using the parameter recognition model, it is necessary to train the parameter recognition model first. The specific training process can be the same as the model training method in the prior art, and will not be described in detail here.
[0141] After the parameter recognition model is trained, it can be evaluated. Specifically, the accuracy and recall of the parameter recognition model in terms of parameter recognition can be checked. Once the accuracy and recall of the trained parameter recognition model meet the requirements, the trained parameter recognition model can be deployed to electronic devices to identify privacy parameters in target links in real time.
[0142] In the embodiments of this application, the parameters in the target link are split by a parameter recognition model, and then the parameters related to the account information of the first object are identified from the parameters according to the meaning of each parameter. The parameters related to the account information of the first object are used as privacy parameters. In this way, privacy parameters can be identified accurately and quickly, improving the accuracy and efficiency of privacy parameter identification.
[0143] Step 130: Remove the privacy parameters from the first link to obtain the second link.
[0144] The second link can be the link obtained by removing the privacy parameters from the first link.
[0145] Continuing with the example above, taking the target link as "https: / / demo.com / article / 10001110001112345 / ?app_platfrom=ios&appuid=2345678&time=1710832357&phone=131xxxxxxxx" as an example, after removing the privacy parameters from the target link, the resulting second link is "https: / / demo.com / article / 10001110001112345 / ?app_platfrom=ios&time=1710832357".
[0146] Step 140: Share the second link to the second person.
[0147] In some embodiments of this application, a second link obtained after removing privacy parameters can be shared with a second object.
[0148] In some embodiments of this application, in order to better understand the link processing method provided by the embodiments of this application, the embodiments of this application also provide another possible implementation of the link processing method, as shown in FIG4, which may include steps 1-10.
[0149] Step 1: The sharing scenario is forwarding the first link.
[0150] Step 2: Listen for the function call when forwarding the first link.
[0151] Step 3: The sharing scenario is copying the first link.
[0152] Step 4: Listen for the clipboard of the application that forwards the first link when it is copied.
[0153] Step 5: The first link has been identified.
[0154] In the sharing scenario where the forwarding application forwards the first link to the receiving application, the specific method of identifying the first link by listening to the function call when forwarding the first link is consistent with the implementation method in the above embodiment will not be elaborated here.
[0155] In the scenario where the sharing is to copy the first link, the specific method of identifying the first link by listening to the clipboard of the application that forwards the first link when it is copied is consistent with the implementation method in the above embodiment, and will not be elaborated here.
[0156] Step 6: Determine whether the anonymous sharing mode is enabled for the first link. If yes, proceed to step 7; otherwise, proceed to step 8.
[0157] In step 6, it is necessary to determine whether to enable anonymous sharing mode for the first link based on the first input of the query information regarding whether to enable anonymous sharing mode and the target tag set for the second object. The specific process for determining whether to enable anonymous sharing mode for the first link based on the first input and the target tag set for the second object can be found in the above embodiment and will not be repeated here.
[0158] Step 7: Identify the privacy parameters in the first link using the parameter recognition model.
[0159] In step 7, how to identify the privacy parameters in the first link through the parameter recognition model can be referred to the specific process in the above embodiments, which will not be repeated here.
[0160] Step 8: Share the first link.
[0161] Step 9: Remove the privacy parameters from the first link to obtain the second link.
[0162] Step 10: Share the second link.
[0163] The linking method provided in this application can be executed by a linking device. This application uses an example of a linking device executing the linking method to illustrate the linking device provided in this application.
[0164] Figure 5 is a schematic diagram of a link processing device according to an exemplary embodiment.
[0165] As shown in Figure 5, the link processing device 400 may include:
[0166] The first acquisition module 410 is used to acquire the first link that the first object wants to share to the second object;
[0167] The identification module 420 is used to identify privacy parameters in the first link, wherein the privacy parameters are parameters related to the account information of the first object;
[0168] The first determining module 430 is used to remove the privacy parameters from the first link to obtain the second link;
[0169] The sharing module 440 is used to share the second link to the second object.
[0170] In this embodiment, by obtaining a first link that a first object wants to share to a second object, identifying privacy parameters related to the first object's account information in the first link, removing the privacy parameters from the first link to obtain a second link, and then sharing the second link to the second object, the link shared by the first object to the second object is a link with the parameters related to the first object's account information removed. Thus, it is impossible to track the first object's account based on this link, thereby blocking the tracking of the first object's account and protecting the privacy and security of the first object.
[0171] In some embodiments of this application, the first acquisition module 410 may include:
[0172] The first determining unit is used to determine the sharing scenario of the first link;
[0173] The first acquisition unit acquires the first link that the first object wants to share to the second object according to the acquisition strategy corresponding to the sharing scenario.
[0174] In some embodiments of this application, when the sharing scenario involves a forwarding application forwarding the first link to a receiving application, the first acquisition unit is specifically used for:
[0175] Listen for the function call when forwarding the first link;
[0176] If it is determined that the forwarding application and the receiving application of the first link in the calling function are inconsistent, and the calling function contains a first parameter, and the information corresponding to the first parameter is data of the Uniform Resource Locator (URL) type, the information corresponding to the first parameter is obtained, wherein the first parameter is a parameter used to characterize the shared link;
[0177] Use the information corresponding to the first parameter as the first link to be shared from the first object to the second object.
[0178] In some embodiments of this application, when the sharing scenario involves copying the first link, the first acquisition unit is specifically used for:
[0179] Listen for the data written to the clipboard when the first link is copied;
[0180] If it is determined that the clipboard contains first data, and the first data is of URL type, then the first data is obtained.
[0181] The first data is used as the first link to be shared from the first object to the second object.
[0182] In some embodiments of this application, the apparatus described above may further include:
[0183] The display module is used to show a query message indicating whether the anonymous sharing mode is enabled;
[0184] The first receiving module is used to receive the first input of the query information;
[0185] The second determining module is used to determine, in response to the first input, whether to enable the anonymous sharing mode for the first link;
[0186] The recognition module 420 is specifically used for:
[0187] If it is determined that the anonymous sharing mode is enabled for the first link, the privacy parameters in the first link are identified.
[0188] In some embodiments of this application, the second determining module may include:
[0189] The first receiving unit is used to receive the second input;
[0190] A setting unit is configured to set a target label on the second object in response to the second input, wherein the target label includes a first label or a second label;
[0191] The second determining unit is used to determine whether to enable the anonymous sharing mode for the first link based on the first input and the target tag.
[0192] In some embodiments of this application, the second determining unit is specifically used for:
[0193] If the first input is determined to enable the hidden sharing mode for the first link, and the target tag is the first tag, then it is determined not to enable the hidden sharing mode for the first link.
[0194] If the first input is determined to enable anonymous sharing mode for the first link, and the target tag is the second tag, then the anonymous sharing mode for the first link is enabled.
[0195] In some embodiments of this application, the identification module 420 may include:
[0196] The first identification unit is configured to identify the privacy parameters from the first link of the first form using a parameter identification model when the first link is in the first form.
[0197] The second identification unit is used to parse the first link when the first link is in the second form, and to identify the privacy parameters through a parameter identification model based on the parsing result.
[0198] In some embodiments of this application, the second identification unit is specifically used for:
[0199] The first link is parsed to obtain the access server parameters of the first link;
[0200] Access the server based on the access server parameters and obtain the storage address of the first link from the server;
[0201] A third link is obtained based on the storage address, and the third link is in the form of the first link.
[0202] The privacy parameters are identified from the third link using a parameter recognition model.
[0203] In some embodiments of this application, the identification module 420 is specifically used for:
[0204] The parameters in the target link are split using a parameter recognition model, wherein the target link is the third link or the first link of the first form;
[0205] Based on the meaning of each parameter, identify the parameters related to the account information of the first object from each of the parameters;
[0206] The parameters related to the account information of the first object are used as the privacy parameters.
[0207] The link processing device in this application embodiment can be an electronic device or a component within an electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices besides a terminal. For example, the electronic device can be a mobile phone, tablet computer, laptop computer, PDA, in-vehicle electronic device, mobile internet device (MID), augmented reality (AR) / virtual reality (VR) device, robot, wearable device, ultra-mobile personal computer (UMPC), netbook, or personal digital assistant (PDA), etc. It can also be a server, network attached storage (NAS), personal computer (PC), television set (TV), ATM, or self-service machine, etc. This application embodiment does not specifically limit the scope of the device.
[0208] The link processing device in this application embodiment can be a device with an operating system. This operating system can be Android, iOS, or other possible operating systems; this application embodiment does not specifically limit it.
[0209] The link processing apparatus provided in this application embodiment can implement the various processes implemented in the method embodiment of FIG1. To avoid repetition, it will not be described again here.
[0210] Optionally, as shown in FIG6, this application embodiment also provides an electronic device 500, including a processor 501 and a memory 502. The memory 502 stores a program or instructions that can run on the processor 501. When the program or instructions are executed by the processor 501, they implement the various steps of the above-described linking processing method embodiment and can achieve the same technical effect. To avoid repetition, they will not be described again here.
[0211] It should be noted that the electronic devices in the embodiments of this application include the mobile electronic devices and non-mobile electronic devices described above.
[0212] Figure 7 is a schematic diagram of the hardware structure of an electronic device that implements an embodiment of this application.
[0213] The electronic device 600 includes, but is not limited to, components such as: radio frequency unit 601, network module 602, audio output unit 603, input unit 604, sensor 605, display unit 606, user input unit 607, interface unit 608, memory 609, and processor 610.
[0214] Those skilled in the art will understand that the electronic device 600 may also include a power supply (such as a battery) for powering various components. The power supply can be logically connected to the processor 610 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The electronic device structure shown in Figure 7 does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown, or combine certain components, or have different component arrangements, which will not be elaborated here.
[0215] The processor 610 is configured to: obtain a first link that a first object wants to share to a second object; identify privacy parameters in the first link, wherein the privacy parameters are parameters related to the account information of the first object; remove the privacy parameters from the first link to obtain a second link; and share the second link to the second object.
[0216] In this way, by obtaining the first link that the first object wants to share to the second object, identifying the privacy parameters related to the first object's account information in the first link, and then removing the privacy parameters from the first link to obtain the second link, and then sharing the second link to the second object, the link shared by the first object to the second object is a link with the parameters related to the first object's account information removed. Thus, it is impossible to track the first object's account based on this link, blocking the tracking of the first object's account and protecting the first object's privacy and security.
[0217] Optionally, the processor 610 is further configured to determine the sharing scenario of the first link and, according to the acquisition strategy corresponding to the sharing scenario, acquire the first link that the first object wants to share to the second object.
[0218] In this way, by determining the sharing scenario of the first link and obtaining the first link according to the acquisition strategy corresponding to the sharing scenario, the accuracy and flexibility of obtaining the first link are improved.
[0219] Optionally, in the case where the sharing scenario involves a forwarding application forwarding the first link to a receiving application, the processor 610 is further configured to listen to the calling function when forwarding the first link; if it is determined that the forwarding application and the receiving application of the first link in the calling function are inconsistent, and the calling function contains a first parameter, and the information corresponding to the first parameter is data of the Uniform Resource Locator (URL) type, the processor obtains the information corresponding to the first parameter, wherein the first parameter is a parameter used to characterize the sharing link; and uses the information corresponding to the first parameter as the first link to be shared from the first object to the second object.
[0220] Thus, in the scenario where the sharing application forwards the first link to the receiving application, by listening to the function call when forwarding the first link, if it is determined that the forwarding application and the receiving application of the first link in the function call are inconsistent, and the function call contains a first parameter, and the information corresponding to the first parameter is URL type data, the information value corresponding to the first parameter is used as the first link to be shared from the first object to the second object. In this way, the first link can be accurately obtained in the case of sharing the link in the forwarding scenario, improving the accuracy and flexibility of obtaining the first link.
[0221] Optionally, when the sharing scenario involves copying the first link, the processor 610 is further configured to listen to the data written to the clipboard when the first link is copied; if it is determined that the clipboard contains first data and the first data is URL-type data, the processor obtains the first data; and uses the first data as the first link to be shared from the first object to the second object.
[0222] Thus, in the case of sharing a copy of the first link, by listening to the data written to the clipboard when the first link is copied, if it is determined that the clipboard contains the first data and the first data is of URL type, the first data is used as the first link to be shared from the first object to the second object. In this way, the first link can be accurately obtained in the case of sharing a copy link, improving the accuracy and flexibility of obtaining the first link.
[0223] Optionally, the display unit 606 is used to display query information on whether the anonymous sharing mode is enabled;
[0224] User input unit 607 is used to receive a first input of the query information;
[0225] The processor 610 is further configured to respond to the first input to determine whether to enable the anonymous sharing mode for the first link; if it is determined that the anonymous sharing mode is enabled for the first link, to identify privacy parameters in the first link through a parameter recognition model.
[0226] In this way, by displaying a query message asking whether to enable anonymous sharing mode, and then responding to the first object's first input of the query message, it is determined whether to enable anonymous sharing mode for the first link. If it is determined that anonymous sharing mode is enabled for the first link, the privacy parameters in the first link are identified through a parameter recognition model. Thus, based on the needs of the first object, it is selected whether to enable anonymous sharing mode for the first link. Only when it is determined that anonymous sharing mode is enabled for the first link will the privacy parameters in the first link be identified through a parameter recognition model, thereby improving the flexibility of processing the first link.
[0227] Optionally, the user input unit 607 is also configured to receive a second input;
[0228] The processor 610 is further configured to, in response to the second input, set a target label for the second object, wherein the target label includes a first label or a second label; and determine, based on the first input and the target label, whether to enable an anonymous sharing mode for the first link.
[0229] Thus, based on the first input, the target tags set by the first object for the second object are further referenced to determine whether to enable the anonymous sharing mode for the first link. This further determines whether to enable the anonymous sharing mode for the first link based on the needs of the first object, improving the accuracy and flexibility of whether to enable the anonymous sharing mode for the first link.
[0230] Optionally, the processor 610 is further configured to: determine not to enable the hidden sharing mode for the first link when the first input is determined to enable the hidden sharing mode for the first link and the target tag is a first tag; and determine to enable the hidden sharing mode for the first link when the first input is determined to enable the hidden sharing mode for the first link and the target tag is a second tag.
[0231] Thus, by comprehensively determining whether to enable the hidden sharing mode for the first link based on the first input and the target tags of the second object, the accuracy of enabling the hidden sharing mode is improved.
[0232] Optionally, the processor 610 is further configured to: when the first link is in a first form, identify the privacy parameter from the first link in the first form using a parameter identification model; when the first link is in a second form, parse the first link and identify the privacy parameter using a parameter identification model based on the parsing result.
[0233] Thus, depending on the different forms of the first link, different methods can be used to identify privacy parameters, improving the flexibility of identifying privacy parameters in the first link.
[0234] Optionally, the processor 610 is further configured to parse the first link to obtain access server parameters of the first link; access a server based on the access server parameters to obtain the storage address of the first link from the server; obtain a third link based on the storage address, wherein the third link is in the form of the first link; and identify the privacy parameters from the third link through a parameter recognition model.
[0235] Thus, by parsing the first link, the access server parameters of the first link are obtained. Then, the server is accessed based on the access server parameters, and the storage address of the first link is obtained from the server. The third link is obtained based on the storage address. Privacy parameters are identified from the third link through the parameter recognition model. In this way, the real sharing link can be obtained through the first link in the second form, so that privacy parameters can be identified based on the third link, thereby improving the accuracy of privacy parameter identification.
[0236] Optionally, the processor 610 is further configured to split the parameters in the target link using a parameter recognition model, wherein the target link is the third link or the first link of the first form; to identify parameters related to the account information of the first object from the parameters according to the meaning of each parameter; and to use the parameters related to the account information of the first object as the privacy parameters.
[0237] In this way, by using a parameter recognition model to break down the parameters in the target link, and then based on the meaning of each parameter, parameters related to the account information of the first object are identified from each parameter. These parameters related to the account information of the first object are used as privacy parameters. This allows for accurate and rapid identification of privacy parameters, improving the accuracy and efficiency of privacy parameter identification.
[0238] It should be understood that, in this embodiment, the input unit 604 may include a graphics processing unit (GPU) 6041 and a microphone 6042. The GPU 6041 processes image data of still images or videos obtained by an image capture device (such as a color camera) in video capture mode or image capture mode. The display unit 606 may include a display panel 6061, which may be configured in the form of a liquid crystal display, an organic light-emitting diode, or the like. The user input unit 607 includes at least one of a touch panel 6071 and other input devices 6072. The touch panel 6071 is also called a touch screen. The touch panel 6071 may include a touch detection device and a touch controller. Other input devices 6072 may include, but are not limited to, physical keyboards, function keys (such as volume control buttons, power buttons, etc.), trackballs, mice, and joysticks, which will not be described in detail here.
[0239] The memory 609 can be used to store software programs and various data. The memory 609 may primarily include a first storage area for storing programs or instructions and a second storage area for storing data. The first storage area may store the operating system, application programs or instructions required for at least one function (such as sound playback, image playback, etc.). Furthermore, the memory 609 may include volatile memory or non-volatile memory, or both. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory can be random access memory (RAM), static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus RAM (DRRAM). The memory 609 in this embodiment includes, but is not limited to, these and any other suitable types of memory.
[0240] Processor 610 may include one or more processing units; optionally, processor 610 integrates an application processor and a modem processor, wherein the application processor mainly handles operations involving the operating system, user interface, and applications, and the modem processor mainly handles wireless communication signals, such as a baseband processor. It is understood that the aforementioned modem processor may also not be integrated into processor 610.
[0241] This application also provides a readable storage medium storing a program or instructions. When the program or instructions are executed by a processor, they implement the various processes of the above-described linking method embodiments and achieve the same technical effect. To avoid repetition, they will not be described again here.
[0242] The processor is the processor in the electronic device described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.
[0243] This application embodiment also provides a chip, which includes a processor and a communication interface. The communication interface is coupled to the processor. The processor is used to run programs or instructions to implement the various processes of the above-described linking processing method embodiments and can achieve the same technical effect. To avoid repetition, it will not be described again here.
[0244] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.
[0245] This application provides a computer program product that is stored in a storage medium and executed by at least one processor to implement the various processes of the linking method embodiment described above, and achieves the same technical effect. To avoid repetition, it will not be described again here.
[0246] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Furthermore, it should be noted that the scope of the methods and apparatuses in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may also include performing functions substantially simultaneously or in the reverse order, depending on the functions involved. For example, the described methods may be performed in a different order than described, and various steps may be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
[0247] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a computer software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0248] The embodiments of this application have been described above with reference to the accompanying drawings. However, this application is not limited to the specific embodiments described above. The specific embodiments described above are merely illustrative and not restrictive. Those skilled in the art can make many other forms under the guidance of this application without departing from the spirit and scope of the claims, and all of these forms are within the protection scope of this application.
Claims
1. A link processing method, the method comprising: Get the first link that the first object wants to share to the second object; Identify privacy parameters in the first link, wherein the privacy parameters are parameters related to the account information of the first object; The privacy parameters are removed from the first link to obtain the second link; Share the second link to the second object.
2. The method according to claim 1, wherein, The step of obtaining the first link to be shared from the first object to the second object includes: Determine the sharing scenario for the first link; According to the acquisition strategy corresponding to the sharing scenario, obtain the first link that the first object wants to share to the second object.
3. The method according to claim 2, wherein, In the case where the sharing scenario involves forwarding the first link from a forwarding application to a receiving application, obtaining the first link that the first object wants to share to the second object according to the acquisition strategy corresponding to the sharing scenario includes: Listen for the function call when forwarding the first link; If it is determined that the forwarding application and the receiving application of the first link in the calling function are inconsistent, and the calling function contains a first parameter, and the information corresponding to the first parameter is data of the Uniform Resource Locator (URL) type, the information corresponding to the first parameter is obtained, wherein the first parameter is a parameter used to characterize the shared link; Use the information corresponding to the first parameter as the first link to be shared from the first object to the second object.
4. The method according to claim 2, wherein, In the case where the sharing scenario involves copying the first link, obtaining the first link that the first object wants to share to the second object according to the acquisition strategy corresponding to the sharing scenario includes: Listen for the data written to the clipboard when the first link is copied; If it is determined that the clipboard contains first data, and the first data is of URL type, then the first data is obtained. The first data is used as the first link to be shared from the first object to the second object.
5. The method according to claim 1, wherein, Prior to identifying the privacy parameters in the first link, the method further includes: Displays a prompt asking whether to enable anonymous sharing mode; Receive the first input regarding the query information; In response to the first input, determine whether to enable anonymous sharing mode for the first link; The identification of privacy parameters in the first link includes: If it is determined that the anonymous sharing mode is enabled for the first link, the privacy parameters in the first link are identified.
6. The method according to claim 5, wherein, Determining whether to enable anonymous sharing mode for the first link includes: Receive the second input; In response to the second input, a target label is set for the second object, wherein the target label includes a first label or a second label; Based on the first input and the target tag, determine whether to enable anonymous sharing mode for the first link.
7. The method according to claim 6, wherein, The step of determining whether to enable anonymous sharing mode for the first link based on the first input and the target tag includes: If the first input is determined to enable the hidden sharing mode for the first link, and the target tag is the first tag, then it is determined not to enable the hidden sharing mode for the first link. If the first input is determined to enable anonymous sharing mode for the first link, and the target tag is the second tag, then the anonymous sharing mode for the first link is enabled.
8. The method according to claim 1, wherein, The identification of privacy parameters in the first link includes: When the first link is in the form of a first form, the privacy parameters are identified from the first link in the first form using a parameter recognition model; If the first link is in the second form, the first link is parsed, and the privacy parameters are identified through a parameter recognition model based on the parsing result.
9. The method according to claim 8, wherein, The step of parsing the first link and identifying the privacy parameters using a parameter recognition model based on the parsing results includes: The first link is parsed to obtain the access server parameters of the first link; Access the server based on the access server parameters and obtain the storage address of the first link from the server; A third link is obtained based on the storage address, and the third link is in the form of the first link. The privacy parameters are identified from the third link using a parameter recognition model.
10. The method according to claim 8 or 9, wherein, The privacy parameters in the target link are identified using a parameter recognition model, including: The parameters in the target link are split using a parameter recognition model, wherein the target link is a third link or a first link of the first form; Based on the meaning of each parameter, identify the parameters related to the account information of the first object from each of the parameters; The parameters related to the account information of the first object are used as the privacy parameters.
11. A link processing apparatus, the apparatus comprising: The first acquisition module is used to acquire the first link that the first object wants to share to the second object; The identification module is used to identify privacy parameters in the first link, wherein the privacy parameters are parameters related to the account information of the first object; A first determining module is used to remove the privacy parameters from the first link to obtain a second link; The sharing module is used to share the second link to the second object.
12. An electronic device comprising a processor and a memory, the memory storing a program or instructions executable on the processor, the program or instructions, when executed by the processor, implementing the steps of the linking processing method as described in any one of claims 1-10.
13. An electronic device configured to perform the link processing method as described in any one of claims 1-10.
14. A readable storage medium storing a program or instructions that, when executed by a processor, implement the steps of the linking method as described in any one of claims 1-10.
15. A computer program product, said computer program product being executed by at least one processor to implement the linking processing method as described in any one of claims 1-10.
16. A chip, the chip comprising a processor and a communication interface, the communication interface being coupled to the processor, the processor being configured to run a program or instructions to implement the linking processing method as described in any one of claims 1-10.
Citation Information
Patent Citations
Medical history sharing system and method
CN107315899A
Page sharing method and related device
CN107766358A
Link processing method and device, electronic equipment and storage medium
CN118337462A
Operation method, intelligent terminal, and storage medium
WO2023169236A1