A resource sharing method, device, computer device and storage medium

By generating channel address information that is integrated with channel identification information, the problem of resource waste and leakage in cross-channel resource sharing is solved, and efficient and secure resource access is achieved.

CN115604363BActive Publication Date: 2025-08-01CHINA CONSTRUCTION BANK +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211207302.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2025-08-01
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

When sharing resources across channels, the existing technology leads to resource waste and leaks, and it is impossible to verify whether the network configuration of the user terminal can access the resources to be shared.

Method used

Generate source address information based on the target category of the resource to be shared, and integrate it with the channel identification information to generate channel address information. By verifying the target channel identification, configuration and accessing the environment of the user terminal, directly accessing the resources, avoiding the database maintaining the association relationship between the source address and the channel identification.

Benefits of technology

It improves resource utilization and channel access security, avoids resource waste and leaks, and realizes efficient cross-channel sharing of the same resource.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115604363B_ABST
    Figure CN115604363B_ABST
Patent Text Reader

Abstract

This specification relates to the field of computer technologies, and particularly to a resource sharing method, apparatus, computer device, and storage medium. The method includes determining a target category according to the content information of the resource to be shared; generating source address information corresponding to the resource to be shared according to a resource address generation policy corresponding to the target category; determining channel identification information according to a received sharing request for the resource to be shared; generating channel address information according to the source address information and the channel identification information; and sending the channel address information to a user terminal that sends the sharing request. By using the embodiments of this specification, source address information corresponding to the resource to be shared is generated according to the target category of the resource to be shared, so as to be used for fusion with the channel identification information that needs to be shared, to obtain channel address information, so that a user terminal corresponding to the channel identification information can directly access the resource to be shared, thereby improving the resource utilization rate when the resource to be shared is shared across channels.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of computer technology, and in particular, to a resource sharing method, apparatus, computer device, and storage medium. Background Art

[0002] Currently, when sharing a resource to be shared across channels, random garbled information is generated for the resource to be shared, and the garbled information is associated and stored with the target channel identifier and the resource to be shared, and the garbled information is sent to the user terminal of the target channel or the garbled information and the feature information of the resource to be shared are sent to the user terminal of the target channel. When the user terminal needs to access the resource to be shared, the garbled information and the feature information of the resource to be shared are sent to the server through the user terminal. After the server receives the garbled information and the feature information of the resource to be shared, according to the garbled information and the target channel identifier, the corresponding resource to be shared is matched from the database and sent to the user terminal. As a result, every time the resource to be shared is shared, corresponding garbled information needs to be generated, and a database needs to be established to maintain the association relationship information between the garbled information, the target channel identifier, and the resource to be shared, resulting in waste of resources. Moreover, if the resource to be shared is confidential information, directly displaying the feature information of the resource to be shared will lead to leakage of secrets. In addition, currently, it is impossible to verify whether the user terminal accessing the garbled information can access the resource to be shared based on its network configuration.

[0003] How to avoid leakage of secrets and improve resource utilization rate when sharing a resource to be shared across channels is an urgent problem to be solved in the prior art. Summary of the Invention

[0004] To solve the problems in the prior art, embodiments of this specification provide a resource sharing method, apparatus, computer device, and storage medium. For a resource to be shared, source address information is generated according to a resource address generation policy corresponding to the target category of the resource to be shared, so as to be fused with the channel identifier information that needs to be shared to obtain channel address information, so that the user terminal corresponding to the channel identifier information can directly access the resource to be shared, thereby improving the resource utilization rate when the resource to be shared is shared across channels.

[0005] To solve the above technical problems, the specific technical solutions of this specification are as follows:

[0006] On the one hand, embodiments of this specification provide a resource sharing method, including:

[0007] Determine a target category according to the content information of the resource to be shared;

[0008] Generate source address information corresponding to the resource to be shared according to the resource address generation policy corresponding to the target category;

[0009] Determine channel identification information according to the received sharing request for the resource to be shared;

[0010] Generate channel address information according to the source address information and the channel identification information; and

[0011] Send the channel address information to the user terminal that sent the sharing request,

[0012] wherein, the resource address generation policy includes a target address generation rule and a target address resolution rule, and the target address generation rule and the target address resolution rule are inverse rules.

[0013] Furthermore, the target address generation rule includes a resource address generation rule and a target generation template. Generating source address information corresponding to the resource to be shared according to the resource address generation policy corresponding to the target category includes:

[0014] Obtain the resource address generation rule and the target generation template from the address generation rule library and the generation template library respectively according to the target category;

[0015] Process the resource to be shared by using the resource address generation rule to obtain pre-address information; and

[0016] Process the pre-address information, or the pre-address information and the resource to be shared, according to the target generation template to obtain the source address information.

[0017] Furthermore, processing the pre-address information, or the pre-address information and the resource to be shared, according to the target generation template to obtain source address information further includes,

[0018] In the case where it is determined that the target category is the first category, fill the pre-address information into the target generation template to obtain the source address information;

[0019] Or;

[0020] In the case where it is determined that the target category is the second category, obtain resource characterization information for the resource to be shared; and

[0021] Fill the resource characterization information and the pre-address information into the target generation template to obtain the source address information.

[0022] Furthermore, the resource characterization information includes at least one of resource rendering style information and resource browsing clickstream information.

[0023] Further, the first category includes the graphic and text category, and the second category includes the audio and video category.

[0024] Further, the resource sharing method further includes

[0025] obtaining, from the access request sent by the user terminal, the target channel identification information, the target channel configuration information, and the channel address information of the user terminal;

[0026] performing a second verification on the target channel identification information, the target channel configuration information, and the current access environment information; and

[0027] when it is determined that the target channel identification information, the current access environment information, and the target channel configuration information pass the second verification, generating the resource to be shared according to the channel address information and sending the resource to be shared to the user terminal.

[0028] Further, the performing a second verification on the target channel identification information further includes

[0029] analyzing the channel address information to obtain the channel identification information;

[0030] determining whether the target channel identification information is consistent with the channel identification information; and

[0031] when it is determined that the target channel identification information is consistent with the channel identification information, determining that the target channel identification information passes the second verification.

[0032] Further, the performing a second verification on the target channel configuration information further includes

[0033] determining, from a preset channel configuration information library, the target access restriction information associated with the target channel identification information;

[0034] calculating a similarity value between the target channel configuration information and the target access restriction information; and

[0035] when it is determined that the similarity value is less than or equal to a preset threshold, determining that the target channel configuration information passes the second verification.

[0036] Further, the establishment process of the preset channel configuration information library further includes

[0037] determining, according to the received access restriction configuration request, the access restriction channel identification information and the configured access restriction information corresponding to the access restriction channel identification information;

[0038] performing a first verification on the configured access restriction information; and

[0039] When it is determined that the configured access restriction information passes the first verification, the access restriction channel identification information and the configured access restriction information are associated and stored.

[0040] Furthermore, the further second verification of the current access environment information includes,

[0041] When it is determined that the current access environment information represents accessibility, it is determined that the current access environment information passes the second verification.

[0042] Furthermore, the further steps of generating the resource to be shared according to the channel address information and sending the resource to be shared to the user terminal include:

[0043] Determining the target category according to the channel address information; and

[0044] Generating the resource to be shared corresponding to the channel address information according to the target address resolution rule included in the resource address generation policy corresponding to the target category.

[0045] On the other hand, an embodiment of the present specification further provides a resource sharing device, including,

[0046] A generating unit, configured to generate a configuration file according to a received file cleaning request, where the configuration file includes a target file to be cleaned identifier and a cleaning policy associated with the target file to be cleaned identifier;

[0047] A first determining unit, configured to determine a target category according to the content information of the resource to be shared;

[0048] A first generating unit, configured to generate source address information corresponding to the resource to be shared according to a resource address generation policy corresponding to the target category;

[0049] A second determining unit, configured to determine channel identification information according to a received sharing request for the resource to be shared;

[0050] A second generating unit, configured to generate channel address information according to the source address information and the channel identification information; and

[0051] A sending unit, configured to send the channel address information to the user terminal that sends the sharing request,

[0052] Wherein, the resource address generation policy includes a target address generation rule and a target address resolution rule, and the target address generation rule and the target address resolution rule are inverse rules.

[0053] Furthermore, the resource sharing device further includes,

[0054] An acquisition unit, configured to acquire, from the access request sent by the user terminal, the target channel identification information, the target channel configuration information, and the channel address information of the user terminal;

[0055] A verification unit, configured to perform a second verification on the target channel identification information, the target channel configuration information, and the current access environment information; and

[0056] A third generation unit, configured to, when determining that the target channel identification information, the current access environment information, and the target channel configuration information pass the second verification, generate the resource to be shared according to the channel address information and send the resource to be shared to the user terminal.

[0057] On the other hand, an embodiment of this specification further provides a computer device, including a memory, a processor, and a computer program stored on the memory and executable on the processor. When the processor executes the computer program, the above method is implemented.

[0058] On the other hand, an embodiment of this specification further provides a computer-readable storage medium, on which a computer instruction is stored. When the computer instruction is executed by a processor, the above method is implemented.

[0059] On the other hand, an embodiment of this specification further provides a computer program product, including a computer program / instructions. When the computer program / instructions are executed by a processor, the steps of the above method are implemented.

[0060] Using the embodiment of this specification, by generating source address information corresponding to the resource to be shared according to the target category of the resource to be shared, for fusion with the channel identification information that needs to be shared, to obtain channel address information, so that the user terminal corresponding to the channel identification information can directly access the resource to be shared. After receiving the channel address information sent by the user terminal, perform a second verification on the current access environment information, the target channel identification information of the user terminal, and the target channel configuration of the user terminal. When determining that the current access environment information, the target channel identification information of the user terminal, and the target channel configuration of the user terminal pass the second verification, generate the resource to be shared according to the channel address information, so as to improve the security of channel access. Thus, for the same resource to be shared, a source address information that can be accessed is generated, and the channel address information sent to the user terminal is generated according to the source address information and the corresponding channel identification information that needs to be shared, without establishing a database to maintain the association relationship information between the source address information, the channel identification, and the resource to be shared, thereby improving resource utilization. Description of the Drawings

[0061] To more clearly illustrate the technical solutions in the embodiments of this specification or the prior art, the following will briefly introduce the drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of this specification. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0062] Figure 1 The figure shows a schematic diagram of an implementation system of a resource sharing method according to an embodiment of this specification;

[0063] Figure 2 The figure shows a flowchart of a resource sharing method according to an embodiment of this specification;

[0064] Figure 3 The figure shows a flowchart of a resource sharing method according to another embodiment of this specification;

[0065] Figure 4A The figure shows a flowchart of a resource sharing method according to another embodiment of this specification;

[0066] Figure 4B The figure shows a flowchart of a resource sharing method according to another embodiment of this specification;

[0067] Figure 5 The figure shows a schematic diagram of the structure of a resource sharing device according to an embodiment of this specification;

[0068] Figure 6 The figure shows a schematic diagram of the structure of a resource sharing device according to another embodiment of this specification;

[0069] Figure 7 It is a schematic diagram of the structure of a computer device according to an embodiment of this specification.

[0070]

Explanation of the Reference Numerals

[0071] 101, User terminal;

[0072] 102, Server;

[0073] 510, First determination unit;

[0074] 520, First generation unit;

[0075] 530, Second determination unit;

[0076] 540, Second generation unit;

[0077] 550, Sending unit;

[0078] 660, Obtaining unit;

[0079] 670, Verification unit;

[0080] 680. The third generation unit;

[0081] 702. Computer device;

[0082] 704. Processing device;

[0083] 706. Storage resource;

[0084] 708. Driving mechanism;

[0085] 710. Input / output module;

[0086] 712. Input device;

[0087] 714. Output device;

[0088] 716. Presentation device;

[0089] 718. Graphical user interface;

[0090] 720. Network interface;

[0091] 722. Communication link;

[0092] 724. Communication bus. Detailed implementation manners

[0093] Next, the technical solutions in the embodiments of this specification will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of this specification. Obviously, the described embodiments are only a part of the embodiments of this specification, rather than all the embodiments. Based on the embodiments in this specification, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of this specification.

[0094] It should be noted that the terms "first", "second", etc. in the description and claims of this specification and the above accompanying drawings are used to distinguish similar objects, and do not necessarily need to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of this specification described here can be implemented in an order different from those illustrated or described here. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, device, product, or equipment that includes a series of steps or units does not necessarily need to be limited to those clearly listed steps or units, but may include other steps or units that are not clearly listed or are inherent to these processes, methods, products, or equipment.

[0095] It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.

[0096] Figure 1 The following is a schematic diagram of an implementation system of a file processing method according to an embodiment of this specification, which may include: a user terminal 101 and a server 102. The user terminal 101 and the server 102 communicate with each other through a network. The network may include a local area network (LAN for short), a wide area network (WAN for short), the Internet, or a combination thereof, and is connected to a website, user equipment (such as a computing device), and a backend system. The server 102 generates corresponding source address information for the resource to be shared. The user can use the user terminal 101 to send a sharing request for the resource to be shared to the server 102. After receiving the sharing request, the server 102 generates channel address information according to the source address information corresponding to the resource to be shared and the channel identification information corresponding to the sharing request, and sends the channel address information to the user terminal 101. When the user terminal 101 receives the channel address information, after receiving the click information of the user, it sends the channel address information to the server 102. After receiving the target channel identification information, the target channel configuration information of the user terminal 101, and the channel address information, the server 102 performs a second verification on the target channel identification information, the target channel configuration information, and the current access environment information. When it is determined that the target channel identification information, the current access environment information, and the target channel configuration information pass the second verification, the server 102 generates the resource to be shared according to the channel address information and sends the resource to be shared to the user terminal 101. After receiving the resource to be shared, the user terminal 101 displays it to the user for the user to view. Optionally, the server 102 may be a node of a cloud computing system (not shown in the figure), or each server 102 may be an independent cloud computing system, including multiple computers interconnected by a network and working as a distributed processing system.

[0097] In an alternative embodiment, the user terminal 101 may include electronic devices such as, but not limited to, smartphones, acquisition devices, desktop computers, tablet computers, laptop computers, smart speakers, digital assistants, augmented reality (AR) / virtual reality (VR) devices, smart wearable devices, and other types of electronic devices. Optionally, the operating systems running on the electronic devices may include, but are not limited to, Android, IOS, Linux, Windows, etc.

[0098] In addition, it should be noted that Figure 1 The one shown is only an application environment provided in this specification. In actual applications, there may also be multiple user terminals 101, which are not limited in this specification.

[0099] Figure 2 The figure shows a flowchart of a resource sharing method according to an embodiment of this specification. The resource sharing process is described in this figure, but based on routine or non-creative labor, it may include more or fewer operation steps. The order of steps listed in the embodiment is only one way among the execution orders of numerous steps and does not represent the only execution order. When the actual system or device product executes, it can be executed in the order shown in the embodiment or the figure or executed in parallel. Specifically, as Figure 2 shown, the method may include:

[0100] S210, determine the target category according to the content information of the resource to be shared;

[0101] S220, generate source address information corresponding to the resource to be shared according to the resource address generation policy corresponding to the target category;

[0102] S230, determine the channel identification information according to the received sharing request for the resource to be shared;

[0103] S240, generate channel address information according to the source address information and the channel identification information;

[0104] S250, send the channel address information to the user terminal that sent the sharing request.

[0105] Using the embodiment of this specification, by generating source address information corresponding to the resource to be shared according to the target category of the resource to be shared, for fusion with the channel identification information that needs to be shared, to obtain channel address information for the user terminal corresponding to the channel identification information to directly access the resource to be shared. Thus, for the same resource to be shared, an accessible source address information is generated, and the channel address information sent to the user terminal is generated based on the source address and the corresponding channel identification information that needs to be shared, without the need to establish a database to maintain the association relationship information between the source address information and the channel identification and the resource to be shared, thereby improving resource utilization.

[0106] According to the embodiment of this specification, the category is pre-configured, and the category may be, for example, audio, picture, video, text, etc.

[0107] The content extraction model is used to process the resource to be shared to obtain content information. The similarity values between the content information and each of multiple preset categories are determined to obtain multiple similarity values. The maximum similarity value is determined from the multiple similarity values, and the category corresponding to the maximum similarity value is determined as the target category. The content extraction model can be, for example, any trained neural network model for extracting the main content. The content information represents the main content of the resource to be shared.

[0108] A resource address generation policy library is pre-configured, and the resource address generation policy library includes multiple categories and resource address policies corresponding to each category.

[0109] For example, for the target category, from the multiple categories included in the resource address generation policy library, the generation category that is consistent with the target category is determined, and the resource to be shared is processed according to the resource address generation policy associated with the generation category to obtain source address information.

[0110] The resource address generation policy includes a target address generation rule and a target address parsing rule, and the target address generation rule and the target address parsing rule are inverse rules. The target address generation rule can include, for example, any rule that can process resource information to obtain address information. The target address parsing rule is a rule inverse to the target address generation rule, and the target address parsing rule can include, for example, any rule that can process address information to obtain resource information.

[0111] The target address generation rule can be, for example, an encryption method, and the target address parsing rule is a decryption method corresponding to the encryption method. Taking the target address generation rule as an example, feature processing is performed on the resource to be shared to obtain feature data; the feature data is encrypted using an encryption key to obtain source address information corresponding to the resource to be shared. The target address generation rules included in different resource address generation policies can be, for example, at least one of different feature processing methods and encryption keys.

[0112] Furthermore, after the above processing, for the same resource to be shared, the same source address information will be generated. For example, for a resource to be shared for which source address information has already been generated, an association relationship between the resource to be shared and the source address information is established. When a sharing request for the resource to be shared is received next time, it can be first determined whether the resource to be shared has associated source address information. In the case of no associated source address information, the corresponding source address information is generated, and in the case of having associated source address information, the source address information is directly used.

[0113] Determine the channel identification information according to the sharing request for the resource to be shared sent by the user terminal. The sharing request may include, for example, the identification information of the target software to which the user terminal wants to share the resource to be shared. When the user shares the resource to be shared to software A, a sharing request including the identification of software A is sent to the server. After receiving the identification of software A, the server uses the identification of software A as the channel identification information.

[0114] Fuse the determined source address information and the channel identification information to obtain the fused information. For example, the fused information can be used as the channel address information. For example, if the source address information is "First Information" and the channel identification information is "Second Information", the channel address information is "First Information|Second Information". For example, address encryption processing can also be performed on the fused information to obtain the corresponding channel address information. The encryption algorithm selected during the address encryption processing can be, for example, a symmetric encryption algorithm or an asymmetric encryption algorithm.

[0115] After the user terminal receives the channel identification, when accessing the channel address information using the channel corresponding to the channel identification information, the channel address information is sent to the server. After receiving the channel address information, the server performs a consistency verification on the target channel identification corresponding to the corresponding channel and the channel identification included in the channel address information. If the verification is passed, the resource to be shared is sent to the channel of the user terminal. It is precisely because the channel identification information is added to the channel address information that the problem of leakage caused by unauthorized channels accessing the resource to be shared is avoided, thereby improving the security of resource access after sharing the resource across multiple channels.

[0116] After determining the channel address information, send the channel address information to the user terminal that sent the sharing request.

[0117] According to another embodiment of this specification, the target address generation rule includes a resource address generation rule and a target generation template. Generating the source address information corresponding to the resource to be shared according to the resource address generation strategy corresponding to the target category includes: respectively obtaining the resource address generation rule and the target generation template from the address generation rule library and the generation template library according to the target category; using the resource address generation rule to process the resource to be shared to obtain pre-address information; and according to the target generation template, processing the pre-address information, or the pre-address information and the resource to be shared, to obtain the source address information.

[0118] The resource address generation policy library may include, for example, a target address generation rule library. The target address generation rule library includes an address generation rule library and a generation template library. The first generation rules and generation templates included in the address generation rule library and the generation template library are associated with corresponding categories. It can also be that both the first generation rules and the generation templates are associated with corresponding categories.

[0119] The address generation rule may be, for example, a content encryption method. For example, perform feature processing on the resource to be shared to obtain feature data; use the content encryption key to encrypt the feature data to obtain pre-address information corresponding to the resource to be shared. The address generation rules included in different resource address generation policies may be, for example, at least one of a feature processing method and a content encryption key that is different.

[0120] The target generation template may be, for example, a template for generating source address information. For example, the target generation template includes the position of the pre-address information in the source address information.

[0121] In the case where it is determined that the content to be supplemented in the target generation template is only the pre-address information, then fill the pre-address information into the target generation template to obtain the source address information.

[0122] According to another embodiment of the present specification, processing the pre-address information, or the pre-address information and the resource to be shared according to the target generation template to obtain the source address information includes: in the case where it is determined that the target category is the first category, fill the pre-address information into the target generation template to obtain the source address information; or; in the case where it is determined that the target category is the second category, obtain resource characterization information for the resource to be shared; and fill the resource characterization information and the pre-address information into the target generation template to obtain the source address information.

[0123] For different categories, the target generation templates are not the same. The differences in the target generation templates may be, for example, that the contents to be supplemented are different. For example, for one category, the content to be supplemented in the target generation template is only the pre-address information, but for another category, the content to be supplemented in the target generation template includes, in addition to the pre-address information, other information corresponding to the resource to be shared.

[0124] For example, multiple categories can also be divided into two categories. For one category, the content to be supplemented in the corresponding target generation template is only the pre-address information, and for the other category, the content to be supplemented in the corresponding target generation template includes the pre-address information and the resource characterization information corresponding to the resource to be shared. It should be noted that for the resource to be shared, generating the resource characterization information specifically means using any method that can determine the resource rendering style information and the resource browsing buried point information corresponding to the resource rendering style and the resource browsing buried point respectively based on the resource, and the method is reversible.

[0125] According to another embodiment of this specification, the resource representation information includes at least one of resource rendering style information and resource browsing click-through information.

[0126] According to another embodiment of this specification, the first category includes the graphic and text category.

[0127] According to another embodiment of this specification, the second category includes the audio and video category.

[0128] For example, according to the content information of the resource to be shared, it is determined that the resource to be shared belongs to the audio and video category, that is, the second category. According to this second category, a corresponding resource address generation strategy is determined, and the resource to be shared is processed using the resource address generation rule included in this resource address generation strategy to obtain pre-address information. Furthermore, for the resource to be shared, at least one of the resource rendering style information and the resource browsing click-through information is determined. Furthermore, the pre-address information and at least one of the resource rendering style information and the resource browsing click-through information are filled into the target generation template included in this resource address generation strategy to obtain the source address information corresponding to the resource to be shared.

[0129] Figure 3 The following shows a flowchart of a resource sharing method according to another embodiment of this specification. The resource sharing process is described in this figure, but based on routine or non-creative labor, it may include more or fewer operation steps. The step order listed in the embodiment is only one way among the execution orders of numerous steps and does not represent the only execution order. When the actual system or device product executes, it can be executed sequentially or in parallel according to the method order shown in the embodiment or the accompanying drawings. Specifically, as Figure 3 shown, the method may include:

[0130] S310, according to the received access restriction configuration request, determine the access restriction channel identification information and the configuration access restriction information corresponding to the access restriction channel identification information;

[0131] S320, perform a first verification on the configuration access restriction information;

[0132] S330, when it is determined that the configuration access restriction information passes the first verification, associate and store the access restriction channel identification information and the configuration access restriction information.

[0133] By using the embodiment of this specification, by receiving the administrator's configuration of corresponding access restrictions for each channel using the administrator terminal, it is realized that when receiving the corresponding channel's access to the resource to be shared subsequently, a corresponding second verification is performed for this channel.

[0134] According to another embodiment of this specification, when an administrator needs to restrict access to a certain software when accessing resources to be shared, an access restriction configuration request including the identifier of the software is sent to the server. After receiving the access restriction configuration request, the server uses the identifier of the software as the access restriction channel identifier and obtains the configured access restriction information in the access restriction configuration request. The configured access restriction information can be, for example, prohibited access, only accessible within a target network environment, the concurrency of resource access, and the daily access volume of the resource, etc.

[0135] The first verification is, for example, consistency matching. This consistency matching can be, for example, determining whether two pieces of information are the same. Multiple preset configured access restriction information are preset in the database. After determining the configured access restriction information, it is determined whether the configured access restriction information is consistently matched with each preset configured access restriction information. In the case where it is determined that the configured access restriction information matches the target preset configured access restriction information, it is determined that the configured access restriction information passes the first verification. Furthermore, in the case where it is determined that the configured access restriction information passes the first verification, the access restriction channel identifier information and the configured access restriction information are associated and stored in the preset channel configuration information library.

[0136] Figure 4A The figure shows a flowchart of a resource sharing method according to another embodiment of this specification. Figure 4B The figure shows a flowchart of a resource sharing method according to another embodiment of this specification. The resource sharing process is described in this figure, but based on routine or non-creative labor, it may include more or fewer operation steps. The order of steps listed in the embodiment is only one way among the execution orders of numerous steps and does not represent the only execution order. When the actual system or device product executes, it can be executed in the order of the method shown in the embodiment or the figure, or executed in parallel. Specifically, as Figure 4A shown, the method may include:

[0137] S460, obtain the target channel identifier information, target channel configuration information, and channel address information of the user terminal from the access request sent by the user terminal;

[0138] S470, perform a second verification on the target channel identifier information, target channel configuration information, and the current access environment information;

[0139] S480, in the case where it is determined that the target channel identifier information, the current access environment information, and the target channel configuration information pass the second verification, generate the resource to be shared according to the channel address information and send the resource to be shared to the user terminal.

[0140] Using the embodiments of this specification, after receiving the channel address information sent by the user terminal, a second verification is performed on the current access environment information, the target channel identification information of the user terminal, and the target channel configuration of the user terminal. When it is determined that the current access environment information, the target channel identification information of the user terminal, and the target channel configuration of the user terminal pass the second verification, a resource to be shared is generated according to the channel address information. Thus, a second verification is implemented for the channel corresponding to the user terminal, and when the verification passes, the corresponding resource to be shared is directly generated according to the channel address information, thereby improving the resource utilization rate.

[0141] After the user sends a sharing request for the resource to be shared to the server based on the user terminal, the server sends the channel address information. When the user wants to view the resource to be shared on the corresponding channel based on the user terminal, the user clicks on the channel address information. When the user terminal detects the click, an access request including the channel address information is sent to the server. After receiving the channel address information, the server determines the target channel identification information and the target channel configuration information from the access request. The target channel identification information can be, for example, the corresponding channel. For example, if the user wants to open the resource to be shared in software S, that is, the user terminal sends the access request in the environment of software S, then the identification of software S is the target channel identification information. The target channel configuration information is the configuration information of the target channel, and the configuration information can be, for example, the network environment of the current user terminal, and the network environment is, for example, the address information (IP address).

[0142] After receiving the access request, the current access environment information corresponding to the current moment is obtained. A second verification is performed on the determined target channel identification information, target channel configuration information, and the current access environment information. When it is determined that the determined target channel identification information, target channel configuration information, and the current access environment information all pass the second verification respectively, a corresponding resource to be shared is generated according to the channel address information, and the resource to be shared is sent to the user terminal.

[0143] The second verification can be, for example, determining whether the target channel identification information is consistent with the channel identification information included in the channel address information, and whether the target channel configuration information and the current access environment information meet the access conditions. When it is determined that the target channel identification information is consistent with the channel identification information, and both the target channel configuration information and the current access environment information meet the access conditions, it is determined that the determined target channel identification information, target channel configuration information, and the current access environment information all pass the second verification respectively.

[0144] Based on the channel address information, the corresponding resource to be shared is generated. For example, it can be obtained by processing the channel address information according to any rule that can process the address information to obtain the resource information, and the resource to be shared is obtained.

[0145] According to another embodiment of the present specification, the second verification of the target channel identification information includes: parsing the channel address information to obtain the channel identification information; determining whether the target channel identification information is consistent with the channel identification information; and in the case where it is determined that the target channel identification information is consistent with the channel identification information, determining that the target channel identification information passes the second verification.

[0146] For example, the parsing of the channel address information can be: according to the channel address information template, determining the position information of the channel identification information, and according to this position information, determining the channel identification information from the channel address information.

[0147] According to another embodiment of the present specification, the second verification of the target channel configuration information includes: determining, from a preset channel configuration information library, the target access restriction information associated with the target channel identification information; calculating the similarity value between the target channel configuration information and the target access restriction information; and in the case where it is determined that the similarity value is less than or equal to a preset threshold, determining that the target channel configuration information passes the second verification.

[0148] The target channel identification information is matched with multiple access restriction channel identification information included in the preset channel configuration information library to determine the target access restriction channel identification information that matches the target channel identification information. Then, the preset configuration access restriction information associated with the target access restriction channel identification information is used as the target access restriction information associated with the target channel identification information.

[0149] It should be noted that in the case where it is determined that there is no target access restriction channel identification information that matches the target channel identification information, it is also determined that the target channel configuration information passes the second verification.

[0150] According to another embodiment of the present specification, the second verification of the current access environment information includes: in the case where it is determined that the current access environment information represents accessibility, determining that the current access environment information passes the second verification.

[0151] The current access environment information can be, for example, the interface traffic and interface access volume of the current server. In the case where both the interface traffic and the interface access volume meet the flow control volume and interface access control volume of the server, it is determined that the current access environment information represents accessibility.

[0152] Specifically, as Figure 4B shown, the method may include:

[0153] S481. Determine the target category according to the channel address information;

[0154] S482. Generate the resource to be shared corresponding to the channel address information according to the target address parsing rule corresponding to the target category.

[0155] Using the embodiments of this specification, by parsing the channel address information using the target address parsing rule that is inverse to the target address generation rule, the resource to be shared corresponding to the channel address information is directly generated, without the need to establish a database to maintain the association relationship information between the source address information included in the channel address information, the channel identifier, and the resource to be shared, thereby improving resource utilization.

[0156] The target address parsing rule includes a resource address parsing rule and a target parsing template. According to the channel address information, the corresponding target parsing template is determined from the parsing template library. After determining the target parsing template, the category corresponding to the target parsing template is determined as the target category. Furthermore, using the user category, the corresponding resource address parsing rule is obtained from the address parsing rule library. According to the target parsing template, the source address information is obtained from the channel address information.

[0157] When the target category is the graphic category, the source address information is processed using the resource address parsing rule to obtain the resource to be shared.

[0158] When the target category is the audio-video category, the source address information is processed using the resource address parsing rule to obtain the first sub-resource to be shared, and the inverse operation of the operation of obtaining the resource representation information is used to process the resource representation information to obtain at least one of the corresponding resource rendering style information and resource browsing clickstream information, that is, the second sub-resource to be shared. According to the first sub-resource to be shared and the second sub-resource to be shared, the resource to be shared is generated.

[0159] The resource address parsing rule can be, for example, a decryption method corresponding to the encryption method in the generation rule, so as to generate the corresponding resource to be shared according to the source address information.

[0160] Figure 5 The following shows a schematic structural diagram of a resource sharing device according to an embodiment of this specification. As Figure 5 shown, it includes

[0161] The first determination unit 510 is used to determine the target category according to the content information of the resource to be shared;

[0162] The first generation unit 520 is used to generate the source address information corresponding to the resource to be shared according to the resource address generation policy corresponding to the target category;

[0163] A second determination unit 530, configured to determine channel identification information according to a received sharing request for a resource to be shared;

[0164] A second generation unit 540, configured to generate channel address information according to source address information and channel identification information; and

[0165] A sending unit 550, configured to send the channel address information to a user terminal that sends the sharing request.

[0166] Since the principle of the above device for solving problems is similar to that of the above method, the implementation of the above device can refer to the implementation of the above method, and the repeated parts will not be described again.

[0167] Figure 6 The following shows a schematic structural diagram of a resource sharing device according to another embodiment of this specification. As Figure 6 shown, it includes

[0168] An obtaining unit 660, configured to obtain target channel identification information, target channel configuration information, and channel address information of a user terminal from an access request sent by the user terminal;

[0169] A verification unit 670, configured to perform a second verification on the target channel identification information, the target channel configuration information, and the current access environment information; and

[0170] A third generation unit 680, configured to generate a resource to be shared according to the channel address information and send the resource to be shared to the user terminal when it is determined that the target channel identification information, the current access environment information, and the target channel configuration information pass the second verification.

[0171] Since the principle of the above device for solving problems is similar to that of the above method, the implementation of the above device can refer to the implementation of the above method, and the repeated parts will not be described again.

[0172] As Figure 7The following is a schematic structural diagram of a computer device according to an embodiment of this specification. The device in this specification may be the computer device in this embodiment, which executes the method of this specification. The computer device 702 may include one or more processing devices 704, such as one or more central processing units (CPUs), and each processing unit may implement one or more hardware threads. The computer device 702 may also include any storage resource 706, which is used to store any kind of information such as code, settings, data, etc. Non-limiting examples include any combination of any type of RAM, any type of ROM, flash memory devices, hard disks, optical discs, etc. More generally, any storage resource may use any technology to store information. Further, any storage resource may provide volatile or non-volatile retention of information. Further, any storage resource may represent a fixed or removable component of the computer device 702. In one case, when the processing device 704 executes the associated instructions stored in any storage resource or combination of storage resources, the computer device 702 may perform any operation of the associated instructions. The computer device 702 also includes one or more drive mechanisms 708 for interacting with any storage resource, such as a hard disk drive mechanism, an optical disc drive mechanism, etc.

[0173] The computer device 702 may also include an input / output module 710 (I / O), which is used to receive various inputs (via the input device 712) and to provide various outputs (via the output device 714). A specific output mechanism may include a presentation device 716 and an associated graphical user interface (GUI) 718. In other embodiments, the input / output module 710 (I / O), the input device 712, and the output device 714 may not be included, and it may only be a computer device in a network. The computer device 702 may also include one or more network interfaces 720, which are used to exchange data with other devices via one or more communication links 722. One or more communication buses 724 couple the components described above together.

[0174] The communication link 722 may be implemented in any way, for example, through a local area network, a wide area network (such as the Internet), a point-to-point connection, etc., or any combination thereof. The communication link 722 may include any combination of hardwired links, wireless links, routers, gateway functions, name servers, etc. governed by any protocol or combination of protocols.

[0175] The embodiment of this specification also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above method is implemented.

[0176] The embodiments of this specification also provide a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the above-mentioned method is implemented.

[0177] Those skilled in the art should understand that the embodiments of this specification can be provided as a method, a system, or a computer program product. Therefore, this specification can take the form of an all-hardware embodiment, an all-software embodiment, or an embodiment combining software and hardware aspects. Moreover, this specification can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0178] This specification is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to the embodiments of this specification. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate a device for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0179] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including an instruction device, and the instruction device implements the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0180] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0181] In the above specific embodiments, the purpose, technical solutions, and beneficial effects of this specification have been further described in detail. It should be understood that the above are only specific embodiments of this specification and are not used to limit the protection scope of this specification. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of this specification shall be included within the protection scope of this specification.

Claims

1. A resource sharing method, characterized in that, Including: Determine a target category according to the content information of the resource to be shared; Generate source address information corresponding to the resource to be shared according to a resource address generation policy corresponding to the target category; Determine channel identification information according to a received sharing request for the resource to be shared; Generate channel address information according to the source address information and the channel identification information; And Send the channel address information to the user terminal that sent the sharing request, wherein the resource address generation policy includes a target address generation rule and a target address resolution rule, and the target address generation rule and the target address resolution rule are inverse rules; The target address generation rule includes a resource address generation rule and a target generation template, and the generating source address information corresponding to the resource to be shared according to the resource address generation policy corresponding to the target category includes: According to the target category, obtain the resource address generation rule and the target generation template from an address generation rule library and a generation template library respectively; Process the resource to be shared by using the resource address generation rule to obtain pre-address information; and Process the pre-address information, or the pre-address information and the resource to be shared, according to the target generation template to obtain the source address information; The processing the pre-address information, or the pre-address information and the resource to be shared, according to the target generation template to obtain source address information includes: In the case where it is determined that the target category is the first category, fill the pre-address information into the target generation template to obtain the source address information; Or; In the case where it is determined that the target category is the second category, obtain resource representation information for the resource to be shared; and Fill the resource representation information and the pre-address information into the target generation template to obtain the source address information.

2. The method according to claim 1, wherein The resource representation information includes at least one of resource rendering style information and resource browsing clickstream information.

3. The method according to claim 1, wherein The first category includes a text and image category, and the second category includes an audio and video category.

4. The method according to claim 1, wherein It also includes: Obtain the target channel identification information, the target channel configuration information, and the channel address information of the user terminal from an access request received from the user terminal; Perform a second verification on the target channel identification information, the target channel configuration information, and the current access environment information; And In the case where it is determined that the target channel identification information, the current access environment information, and the target channel configuration information pass the second verification, generate the resource to be shared according to the channel address information and send the resource to be shared to the user terminal.

5. The method according to claim 4, wherein The performing a second verification on the target channel identification information includes: Parse the channel address information to obtain the channel identification information; Determine whether the target channel identification information and the channel identification information are consistent; and In the case where it is determined that the target channel identification information and the channel identification information are consistent, determine that the target channel identification information passes the second verification.

6. The method according to claim 5, wherein The performing a second verification on the target channel configuration information includes: Determine, from the preset channel configuration information repository, target access restriction information associated with the target channel identification information; Calculate a similarity value between the target channel configuration information and the target access restriction information; and When it is determined that the similarity value is less than or equal to a preset threshold, determine that the target channel configuration information passes the second verification.

7. The method according to claim 6, characterized in that The establishment process of the preset channel configuration information repository includes: According to the received access restriction configuration request, determine access restriction channel identification information and configuration access restriction information corresponding to the access restriction channel identification information; Perform a first verification on the configuration access restriction information; and When it is determined that the configuration access restriction information passes the first verification, store the access restriction channel identification information and the configuration access restriction information in an associated manner.

8. The method according to claim 5, characterized in that Performing a second verification on the current access environment information includes: When it is determined that the current access environment information indicates accessibility, determine that the current access environment information passes the second verification.

9. The method according to claim 5, characterized in that The generating the resource to be shared according to the channel address information and sending the resource to be shared to the user terminal includes: Determine the target category according to the channel address information; and Generate a resource to be shared corresponding to the channel address information according to the target address resolution rule corresponding to the target category.

10. A resource sharing device, characterized in that, Includes: A first determination unit, configured to determine a target category according to the content information of the resource to be shared; A first generation unit, configured to generate source address information corresponding to the resource to be shared according to a resource address generation policy corresponding to the target category; A second determination unit, configured to determine channel identification information according to a received sharing request for the resource to be shared; A second generation unit, configured to generate channel address information according to the source address information and the channel identification information; And A sending unit, configured to send the channel address information to the user terminal that sent the sharing request, wherein the resource address generation policy includes a target address generation rule and a target address resolution rule, and the target address generation rule and the target address resolution rule are inverse rules; wherein the first generation unit is further configured that the target address generation rule includes a resource address generation rule and a target generation template, and according to the target category, obtain the resource address generation rule and the target generation template from an address generation rule library and a generation template library respectively; Process the resource to be shared by using the resource address generation rule to obtain pre-address information; and Process the pre-address information, or the pre-address information and the resource to be shared, according to the target generation template to obtain the source address information; The processing the pre-address information, or the pre-address information and the resource to be shared, according to the target generation template to obtain source address information includes: When it is determined that the target category is the first category, fill the pre-address information into the target generation template to obtain the source address information; Or; When it is determined that the target category is the second category, resource characterization information is obtained for the resource to be shared; and The resource characterization information and the pre-address information are filled into the target generation template to obtain the source address information.

11. The device according to claim 10, characterized in that, It further includes:[[]]END]] An acquisition unit, configured to obtain the target channel identification information, the target channel configuration information, and the channel address information of the user terminal from the access request received from the user terminal; A verification unit, configured to perform a second verification on the target channel identification information, the target channel configuration information, and the current access environment information; And A third generation unit, configured to, when it is determined that the target channel identification information, the current access environment information, and the target channel configuration information pass the second verification, generate the resource to be shared according to the channel address information and send the resource to be shared to the user terminal.

12. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, the method according to any one of claims 1-9 above is implemented.

13. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, and when the computer program is run by the processor, the method according to any one of claims 1-9 above is executed.

14. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, the steps of the method according to any one of claims 1-9 are implemented.

Citation Information

Patent Citations

  • Information sharing method and device, computer equipment and storage medium

    CN108512829A

  • Cross-end resource access method and device, storage medium and electronic equipment

    CN113242314A