Resource link issuing method and device, equipment and storage medium
By obtaining resource links from the file sharing storage component and generating record tables, the problem of the actual situation where the financial institutions cannot obtain resource links on the system side, and the execution efficiency and user experience of resource link services are improved.
Patent Information
- Application Number
- CN202311082607.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-25
- Publication Date
- 2025-02-25
- Estimated Expiration
- 2043-08-25
AI Technical Summary
The system side of the financial institution cannot obtain the actual situation of users receiving resource links on the user side, which makes it difficult to adjust the business of issuing resource links, and reduces the efficiency of executing resource link services.
By sending a request to the file sharing storage component to obtain resource links, receiving and storing resource link files, a record table is generated for characterizing the resource link issuance, and a resource link is distributed when the user meets the filtering conditions and updating the record table.
It realizes the actual situation of financial institutions obtaining resource links on the system side, improves the execution efficiency of resource link services, and improves the user experience.
Smart Images

Figure CN119520548A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology or financial technology, and in particular to a method, device, equipment, storage medium and program product for issuing resource links. Background Art
[0002] With the development of computer technology, more and more digital resources will be issued in the form of links. For example, in the process of issuing digital resources, banks generally apply for resource links from external servers through the financial institution system. The external server returns the application result and deploys the applied resource links on the external server. When users receive resource links, they can directly apply for resource links from the external server through the user end, and the external server end returns the associated resource links to the user end.
[0003] In the process of realizing the inventive concept of the present disclosure, the inventors found that the following problems generally exist in the related technologies: when users receive resource links, they interact directly with the external server side through the user side, and there is no interaction between the user side and the financial institution system side that issues the resource links. This results in an information gap between the financial institution system side and the user side regarding the resource link business. The financial institution system side cannot obtain the actual situation of the user receiving the resource link at the user side, and thus it is difficult to adjust the business of issuing resource links according to the actual situation of receiving the resource link, which reduces the execution efficiency of the financial institution system side in executing the resource link business. Summary of the invention
[0004] In view of the above problems, the present disclosure provides a method, apparatus, device, storage medium and program product for issuing resource links.
[0005] One aspect of the present disclosure provides a method for issuing resource links, comprising: based on issuance information configured for the resource links, sending a request to a file sharing storage component to obtain k of the resource links, wherein the issuance information includes a user filtering condition, the file sharing storage component has m of the resource links, and k and m are both positive integers; when m is greater than or equal to k, receiving a first resource file including the k resource links, and storing the first resource file in a database; generating multiple record tables for characterizing resource link issuance situations according to the first resource file and the issuance information, and storing the multiple record tables in the database; when a user requesting to receive the resource links meets the user filtering condition, issuing the resource links stored in the database to the user, and updating the multiple record tables stored in the database.
[0006] According to an embodiment of the present disclosure, storing the first resource file in a database includes: dividing the database into N database shards, where N is a positive integer; and evenly storing the k resource links in the first resource link file in the N database shards.
[0007] According to an embodiment of the present disclosure, the above method also includes: after storing the above first resource file in the above database, randomly dividing the above N database shards into first-category database shards and second-category database shards, wherein the above-mentioned first-category database shards include N-1 database shards, and the second-category database shards include 1 database shard.
[0008] According to an embodiment of the present disclosure, each database shard is configured with a shard identifier; the above-mentioned issuance of the above-mentioned resource link stored in the above-mentioned database to the above-mentioned user includes: in response to the user's request for the above-mentioned resource link, obtaining the above-mentioned user's initial identifier, wherein the above-mentioned initial identifier includes multiple identifiers; extracting a preset number of identifiers from the above-mentioned initial identifier to obtain a target identifier; inputting the above-mentioned target identifier into a preset function, and outputting a shard identifier having a mapping relationship with the above-mentioned user, wherein the database shard corresponding to the above-mentioned shard identifier belongs to the above-mentioned first type of database shard; according to the above-mentioned shard identifier, issuing the above-mentioned resource link to the above-mentioned user.
[0009] According to an embodiment of the present disclosure, issuing the resource link to the user according to the shard identifier includes: searching for a target database shard in the first-category database shard according to the shard identifier; issuing the resource link stored in the target database shard to the user when the number of resource links in the target database shard is not zero; querying the number of resource links in the second-category database shard when the number of resource links in the target database shard is zero; issuing the resource link stored in the second-category database shard to the user when the number of resource links in the second-category database shard is not zero.
[0010] According to an embodiment of the present disclosure, each record table is configured with a corresponding record table template; the above-mentioned generation of multiple record tables for characterizing the resource link issuance status based on the above-mentioned first resource file and the above-mentioned issuance information includes: calling multiple of the above-mentioned record table templates, wherein each record table template includes multiple template fields; according to the above-mentioned template fields on each of the above-mentioned record table templates, information is collected in the above-mentioned first resource file and the above-mentioned issuance information to obtain target information associated with the above-mentioned target field; the above-mentioned template fields with association are spliced with the above-mentioned target information to generate the above-mentioned multiple record tables.
[0011] According to an embodiment of the present disclosure, the above-mentioned issuance information also includes the issuance status of the above-mentioned resource link; the above-mentioned issuance of the above-mentioned resource link stored in the above-mentioned database to the above-mentioned user includes: in response to the user's request to receive the above-mentioned resource link, reading the above-mentioned issuance status; based on the above-mentioned issuance status, issuing the resource link stored in the above-mentioned database to the above-mentioned user, wherein the above-mentioned issuance status includes at least one of the following: suspended issuance status, normal issuance status.
[0012] According to an embodiment of the present disclosure, the m resource links in the above-mentioned file sharing storage component are obtained in the following manner: a request for obtaining m resource links is sent to the server side through the enterprise management end component, so that the above-mentioned server side generates a second resource file according to the above-mentioned request; receives the above-mentioned second resource file; and stores the above-mentioned second resource file in the above-mentioned file sharing storage component.
[0013] Another aspect of the present disclosure also provides a resource link issuance device, including: an acquisition module, which is used to send a request for obtaining k resource links to a file sharing storage component based on issuance information configured for the resource links, wherein the issuance information includes a user filtering condition, and the file sharing storage component has m resource links, and k and m are both positive integers; a first receiving module, which is used to receive a first resource file including k resource links when m is greater than or equal to k, and store the first resource file in a database; a generation module, which is used to generate multiple record tables for characterizing resource link issuance situations based on the first resource file and the issuance information, and store the multiple record tables in the database; and an issuance module, which is used to issue the resource links stored in the database to the user when the user requesting to receive the resource links meets the user filtering condition, and update the multiple record tables stored in the database.
[0014] Another aspect of the present disclosure also provides an electronic device, including: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the resource link distribution method.
[0015] Another aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned resource link distribution method.
[0016] Another aspect of the present disclosure further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method for issuing the resource link is implemented.
[0017] According to the resource link issuance method, device, equipment, storage medium and program product provided by the embodiment of the present disclosure, based on the issuance information configured for the resource link, a request for obtaining k resource links is sent to the file sharing storage component, and when the number of resource links m in the file sharing storage component is greater than k, a first resource file including k resource links is received and stored; according to the first resource link and the issuance information, multiple record tables are generated and stored; when the user who requests to receive the resource link meets the user filtering conditions, the resource link is issued to the user, and multiple record tables are updated. Since the interactive terminals involved in the above-mentioned resource link issuance process can be set in the system architecture that the financial institution can access, and by obtaining the resource link from the file sharing storage component, and storing the resource link and the record table generated according to the resource link and the issuance information in the database, the record table can be automatically updated after the qualified user receives it, at least partially overcomes the problem of information difference between the financial institution system end and the user end about the resource link business in the related technology, thereby achieving the technical effect of improving the execution efficiency of the financial institution system end in executing the resource link business. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0019] Figure 1 A schematic diagram showing the system architecture of the related technology distribution resource link;
[0020] Figure 2 A diagram schematically illustrates an application scenario of a resource link distribution method, apparatus, device, storage medium, and program product according to an embodiment of the present disclosure;
[0021] Figure 3 A flowchart schematically showing a method for issuing resource links according to an embodiment of the present disclosure
[0022] Figure 4 A system architecture diagram of a resource link distribution system according to an embodiment of the present disclosure is schematically shown;
[0023] Figure 5 A flowchart of issuing resource links according to an embodiment of the present disclosure is schematically shown;
[0024] Figure 6 The schematic diagram schematically shows the logical relationship between the user management component and the database shards;
[0025] Figure 7 A structural block diagram schematically shows a device for issuing resource links according to an embodiment of the present disclosure; and
[0026] Figure 8 A block diagram of an electronic device suitable for implementing a method for issuing resource links according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0027] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0028] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.
[0029] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.
[0030] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).
[0031] In the technical solution of the present invention, the user information (including but not limited to user personal information, user image information, user device information, such as location information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good morals, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0032] Digital resources can be distributed through links, such as distributing cover resource links of third-party applications. Third-party applications can generate cover resource links in their own application systems. External companies (such as financial institutions) can open financial institution identification in third-party application systems, such as financial institution official accounts, financial institution video accounts, financial institution mini-programs, etc. After obtaining the cover resource links of third-party applications, external companies (such as financial institutions) can distribute them to users through financial institution official accounts, financial institution video accounts, financial institution mini-programs, etc.
[0033] Figure 1 The following schematically shows the system architecture diagram of the related technology for issuing resource links.
[0034] like Figure 1 As shown, the process of generating, issuing, and receiving resource links in the related technology is generally completed in the third-party application system. The third-party application system provides the external enterprise management terminal 101 to the external enterprise (such as a financial institution). The external enterprise (such as a financial institution) applies for resource links at the external enterprise management terminal 101, and the server terminal 102 returns the application result and deploys the applied resource link on the server terminal 102. The user terminal 103 applies for the resource link, and the server terminal 102 returns the collection result to the user terminal 102.
[0035] The related technology's method of issuing resource links completely excludes external enterprises (such as financial institutions), which will cause the following shortcomings: in the process of issuing digital resources in the form of links, once the resource links are deployed on the server side, the receipt of the resource links is entirely determined by the users using third-party applications. As long as there are unclaimed links on the server side, users can request to receive the links. It is difficult for the external enterprise system side (such as the financial institution system side) to obtain the actual issuance of resource links and the actual situation of users receiving resource links, which makes it difficult for the financial institution system side and the user side to have information about resource links, and thus it is difficult to adjust the business of issuing resource links according to the actual situation of receiving resource links, which reduces the execution efficiency of the financial institution system side in executing resource link business. The related technology's resource issuance method cannot realize the personalized issuance of resource links to users, resulting in insufficient user experience.
[0036] In view of this, the embodiments of the present disclosure provide a method, device, equipment, storage medium and program product for issuing resource links, which are used to improve the execution efficiency of resource link services executed by the system end of a financial institution, as well as the user experience. Specifically, the method includes: based on the issuance information configured for the resource link, sending a request to obtain k resource links to a file sharing storage component, wherein the issuance information includes a user filtering condition, there are m resource links in the file sharing storage component, and k and m are both positive integers; when m is greater than or equal to k, receiving a first resource file including k resource links, and storing the first resource file in a database; based on the first resource file and the issuance information, generating multiple record tables for characterizing the issuance of resource links, and storing the multiple record tables in the database; when the user requesting to receive the resource link meets the user filtering condition, issuing the resource link stored in the database to the user, and updating the multiple record tables stored in the database.
[0037] It should be noted that the method and device for issuing resource links determined in the embodiments of the present disclosure can be used in the field of computer technology or the field of financial technology, and can also be used in any field other than the field of computer technology or the field of financial technology. The embodiments of the present disclosure do not limit the application field of the method and device for issuing resource links determined in the embodiments of the present disclosure.
[0038] Figure 2 The application scenario diagram of the resource link distribution method, apparatus, device, storage medium and program product according to the embodiment of the present disclosure is schematically shown.
[0039] like Figure 2 As shown, the application scenario 200 according to this embodiment may include a first terminal device 201, a second terminal device 202, a third terminal device 203, a network 204, a database 205, a distribution system management terminal 206, and a file sharing storage component 207. The network 204 is used to provide a medium for communication links between the first terminal device 201, the second terminal device 202, the third terminal device 203 and the database 205, between the database 205 and the distribution system management terminal 206, and between the distribution system management terminal 206 and the file sharing storage component 207. The network 204 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0040] The user may use at least one of the first terminal device 201, the second terminal device 202, and the third terminal device 203 to interact with the database 205 through the network 204 to send a resource link request or receive a resource link, etc. Various communication client applications may be installed on the first terminal device 201, the second terminal device 202, and the third terminal device 203, such as financial applications, applications for processing resource links, shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0041] The first terminal device 201, the second terminal device 202, and the third terminal device 203 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.
[0042] The database 205 can be used to store digital resource links, record tables, etc. sent by the distribution system management terminal 206, and provide resource links to the first terminal device 201, the second terminal device 202, and the third terminal device 203, and update the record table.
[0043] The distribution system management terminal 206 can be a server that provides various services, for example, obtaining a resource link from the file sharing storage component 207 according to the distribution information of the resource link, and sending the resource link and a record table generated according to the resource link and configuration information to the database 205.
[0044] The file sharing storage component 207 can be used to store resource links obtained by the financial institution from an external server.
[0045] It should be noted that the resource link distribution method provided in the embodiment of the present disclosure can generally be executed by the distribution system management terminal 206. Accordingly, the resource link distribution device provided in the embodiment of the present disclosure can generally be set in the distribution system management terminal 206. The resource link distribution method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the distribution system management terminal 206 and can communicate with the database 205, the file sharing storage component 207 and / or the distribution system management terminal 206. Accordingly, the resource link distribution device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the distribution system management terminal 206 and can communicate with the database 205, the file sharing storage component 207 and / or the distribution system management terminal 206.
[0046] It should be understood that Figure 2The number of terminal devices, networks, databases, distribution system management terminals and file sharing storage components in the embodiment is only illustrative. According to the implementation requirements, there can be any number of terminal devices, networks, databases, distribution system management terminals and file sharing storage components.
[0047] The following will be based on Figure 2 The scene described by Figure 3 to Figure 5 The method for issuing resource links of the disclosed embodiment is described in detail.
[0048] Figure 3 The flowchart of the resource link issuing method according to the embodiment of the present disclosure is schematically shown.
[0049] like Figure 3 As shown, the resource link distribution method of this embodiment includes operations S310 to S340.
[0050] In operation S310, based on the distribution information configured for the resource link, a request for obtaining k resource links is sent to the file sharing storage component, wherein the distribution information includes a user filtering condition, there are m resource links in the file sharing storage component, and k and m are both positive integers.
[0051] In operation S320, when m is greater than or equal to k, a first resource file including k resource links is received and the first resource file is stored in a database.
[0052] In operation S330, a plurality of record tables for representing resource link issuance conditions are generated according to the first resource file and the issuance information, and the plurality of record tables are stored in a database.
[0053] In operation S340, when the user who requests to receive the resource link meets the user filtering condition, the resource link stored in the database is issued to the user, and a plurality of record tables stored in the database are updated.
[0054] According to an embodiment of the present disclosure, the resource link may include an equity resource link, a digital resource link, and the like.
[0055] According to an embodiment of the present disclosure, the issuance information may be information configured for each project to issue resource links, and is used to obtain the resource links required for the project. Specifically, the issuance information may include at least one of the following: user filtering conditions, the number of resource links (e.g., k), the project name of the resource link issuance project, the time to start issuing resource links, the time to end issuing resource links, the issuance status of the resource link issuance project, the project start time, the project end time, the database shard number where the resource link is located, the update date of the resource link, the user's ID in the financial institution, the resource link allocated to the user, the time to allocate the resource link, etc. The issuance status of the resource link issuance project may include a suspended issuance status or a normal issuance status, etc.
[0056] According to an embodiment of the present disclosure, user filtering conditions may include at least one of the following: whether the user has followed a preset financial institution identifier (such as a financial institution public account, a financial institution video account, a financial institution mini-program, etc.), and whether the user has registered an associated transaction medium (such as a bank card, etc.) in the preset financial institution identifier. It can be understood that the process of obtaining whether the user follows the preset financial institution identifier and whether the associated transaction medium is registered in the embodiment of the present disclosure is carried out with the permission of the user. For example, before obtaining whether the user follows the preset financial institution identifier and whether the associated transaction medium is registered, an acquisition request can be initiated to the user, and after the user's permission, the user's information can be obtained. The information acquisition process complies with the relevant laws, regulations and standards of the relevant countries and regions, and necessary confidentiality measures are taken, which does not violate public order and good customs.
[0057] According to an embodiment of the present disclosure, the file sharing storage component may be used to store resource links obtained by a financial institution from an external server, for example, m resource links obtained by the financial institution from an external server are stored.
[0058] According to an embodiment of the present disclosure, the number m of resource links stored by the file sharing storage component and the number k of resource links sent to the file sharing storage component for obtaining k resource links include one of the following relationships: m is greater than k, m is equal to k, and m is less than k. In the case where m is greater than or equal to k, the distribution system management end can receive the first resource file including k resource links sent by the file sharing storage component; in the case where m is less than k, the distribution system management end can receive a response message sent by the file sharing storage component refusing to generate k resource links, and prompting that the number of resource links requested to obtain has exceeded the number of stored resource links.
[0059] According to an embodiment of the present disclosure, the first resource link may include k resource links, and the k resource links may all be resource links issued to users. It is understandable that the users may be associated with the projects corresponding to the k resource links. The first resource file is also used to generate a record table.
[0060] According to an embodiment of the present disclosure, a record table can represent the issuance status of a resource link, and is generated according to the first resource file and the issuance information. Specifically, required content can be extracted from the first resource file and the issuance information according to a preset field, and the content and the preset field are spliced to generate a record table. The record table can include a resource link project information table, a resource link issuance status table, and a resource link scheduling table, etc.
[0061] According to an embodiment of the present disclosure, a database is used to store k resource links and multiple record tables, so that in response to a user's request to receive any one of the k resource links, any one of the k resource links is issued to the user, and the issued information is automatically updated in the record table. For example, the receiving status of the resource link is updated to the resource link issuance status table, and the unreceived status is changed to the received status; for another example, the receiving time of the user receiving the resource link, the user's identification and other information are updated to the user receiving resource link record table.
[0062] According to the resource link issuance method, device, equipment, storage medium and program product provided by the embodiment of the present disclosure, based on the issuance information configured for the resource link, a request for obtaining k resource links is sent to the file sharing storage component, and when the number of resource links m in the file sharing storage component is greater than k, a first resource file including k resource links is received and stored; according to the first resource link and the issuance information, multiple record tables are generated and stored; when the user who requests to receive the resource link meets the user filtering conditions, the resource link is issued to the user, and multiple record tables are updated. Since the interactive terminals involved in the above-mentioned resource link issuance process can be set in the system architecture that the financial institution can access, and by obtaining the resource link from the file sharing storage component, and storing the resource link and the record table generated according to the resource link and the issuance information in the database, the record table can be automatically updated after the qualified user receives it, at least partially overcomes the problem of information difference between the financial institution system end and the user end about the resource link business in the related technology, thereby achieving the technical effect of improving the execution efficiency of the financial institution system end in executing the resource link business.
[0063] According to an embodiment of the present disclosure, the issuing system management end will apply for a resource link from the file sharing storage component, and the m resource links in the file sharing storage component can be obtained in the following manner: sending a request for obtaining m resource links to the server end through the enterprise management end component, so that the server end generates a second resource file according to the request; receiving the second resource file; and storing the second resource file in the file sharing storage component.
[0064] According to an embodiment of the present disclosure, the enterprise management end component may be provided to an external user (e.g., a financial institution). The server end may refer to an external server end. Specifically, the financial institution may send a request to obtain m resource links to the external server end through the enterprise management end component, or may perform a transaction to obtain m resource links to the external server end, so as to obtain a second resource file including the m resource links, and store the second resource file in a file sharing storage component accessible to the internal system of the financial institution.
[0065] According to the embodiments of the present disclosure, by storing the resource links obtained from the external server in a file sharing storage component accessible within the financial institution, and then performing subsequent operations of issuing resource links to users, the interaction process between the financial institution and the user can be increased, making it easier for the financial institution system to obtain the actual situation of issuing resource links, thereby improving the accuracy of the resource link issuance business and user experience.
[0066] According to the embodiments of the present disclosure, the generation of the record table can facilitate the financial institution system to further obtain the actual situation of the user's collection of the resource link and improve the user's experience. Each record table can be configured with a corresponding record table template. Operation S230 may include the following operations: calling multiple record table templates, wherein each record table template includes multiple template fields; according to the template fields on each record table template, information is collected in the first resource file and the issuance information to obtain the target information associated with the target field; the template fields with association are spliced with the target information to generate multiple record tables.
[0067] According to an embodiment of the present disclosure, the record table may include a resource link project information table as shown in Table 1, a resource link scheduling table as shown in Table 2, a resource link issuance status table as shown in Table 3, and a user resource link collection record table as shown in Table 4.
[0068] Table 1
[0069]
[0070]
[0071] Table 2
[0072]
[0073] Table 3
[0074]
[0075] Table 4
[0076]
[0077]
[0078] According to the embodiments of the present disclosure, in Tables 1 to 4, data types, bigint can represent character type, varchar can represent text type, and datatime can represent time type. Length can refer to the byte length of the acquired information. In the column of whether to allow null, if it is "no", it can mean that the content of the row cannot be null value, and information is required.
[0079] According to an embodiment of the present disclosure, in Table 1, if the user filtering condition is exemplarily set to 1, it may indicate that a resource link can only be issued to a user if the user has followed the official account of a financial institution.
[0080] According to the embodiments of the present disclosure, Tables 1 to 4 can all be used as different record table templates. Taking Table 1 as an example, Table 1 can be used as a template for a resource link project information table. The preset fields in Table 1 may include project name, project start time, project end time, total number of resource links, project creation time, last modification time of the issuance status, project status, and user filtering conditions. Information is extracted from the first resource file and the issuance information according to the above fields. For example, if the first resource file includes k resource links, the information extracted from the total number of resource links field in Table 1 may be k. According to the project start time T configured in the issuance information, the information extracted from the project start time field in Table 1 may be T. The extracted information is recorded in a position associated with the preset field, such as in a note column, or in a newly added column in the table, to obtain a resource link project information table.
[0081] According to the embodiments of the present disclosure, after the user receives the resource link, the resource link issuance status table shown in Table 3 and the user resource link receiving record table shown in Table 4 can be updated. For example, the receiving status is changed from unreceived to received, the time of receiving the resource link is updated to Table 4, and the user's ID in the third-party application, the user's ID in the financial institution, and the project ID corresponding to the received resource link are recorded. It can be understood that various contents such as the preset fields in Tables 1 to 4 can be adaptively adjusted according to actual needs.
[0082] According to an embodiment of the present disclosure, by querying the resource link project information table shown in Table 1, the resource link scheduling table shown in Table 2, the resource link issuance status table shown in Table 3, and the user resource link receipt record table shown in Table 4, and updating the resource link issuance status table shown in Table 3 and the user resource link receipt record table shown in Table 4, the actual situation of the user receiving the resource link can be obtained more efficiently, so as to improve the accuracy of issuing resource links and the user experience.
[0083] When issuing resource links to users, the related technology generally issues them directly from the database. When there are many users, it will cause resource consumption and reduce the efficiency of issuing resource links. In view of this, the embodiment of the present disclosure also provides a resource link issuance method based on database sharding to reduce resource consumption and improve the efficiency of issuing resource links. Specifically, the database can be divided into multiple database shards, and the first resource file shard can be evenly stored in multiple database shards. When the resource link is actually issued, one spare database shard is reserved to implement spare issuance, and the remaining database partitions are used to implement the main issuance. For example, when issuing a resource link to a user, the database shard corresponding to the user as the main issuance can be determined according to the user's identifier, and when the database shard has a resource link, it is issued to the user; when the database shard does not have a resource link, the resource link in the database shard used as a spare issuance can be issued to the user. If there is no resource link in the database shard used as the spare issuance, the resource link can be refused to be issued to the user.
[0084] According to an embodiment of the present disclosure, the process of storing the first resource file in a database may include the following operations: randomly dividing the database into N database shards, where N is a positive integer and N can be adaptively adjusted according to actual needs; evenly storing the k resource links in the first resource link file in the N database shards, wherein even storage may refer to the number of resource links in each database shard being consistent or tending to be consistent.
[0085] According to the embodiment of the present disclosure, in the process of issuing resource links to users, the database shards can be divided into main issuance shards and backup issuance shards to improve the efficiency of issuing resource links. Therefore, after storing the first resource file in the database, the embodiment of the present disclosure can adopt the following operation: randomly divide N database shards into first-class database shards and second-class database shards, wherein the first-class database shards include N-1 database shards, and the second-class database shards include 1 database shard. It can be understood that the first-class database shards can be used as the main issuance shards, and the second-class database shards can be used as the backup issuance shards.
[0086] According to an embodiment of the present disclosure, after dividing the first category of database shards and the second category of database shards, when issuing resource links stored in the database to users, the following method can be used: in response to the user's request for resource links, the user's initial identification is obtained, wherein the initial identification includes multiple identifiers; a preset number of identifiers are extracted from the initial identification to obtain a target identification; the target identification is input into a preset function, and a shard identification having a mapping relationship with the user is output, wherein the database shard corresponding to the shard identification belongs to the first category of database shards; and the resource link is issued to the user according to the shard identification.
[0087] According to an embodiment of the present disclosure, issuing resource links to users according to shard identifiers includes: searching for a target database shard in a first type of database shard according to the shard identifier; issuing resource links stored in the target database shard to the user when the number of resource links in the target database shard is not zero; querying the number of resource links in a second type of database shard when the number of resource links in the target database shard is zero; and issuing resource links stored in the second type of database shard to the user when the number of resource links in the second type of database shard is not zero.
[0088] According to an embodiment of the present disclosure, the preset function may be a modulo operation process, as shown in formula (1).
[0089] r=a%31(1)
[0090] Wherein, r may represent a shard identifier having a mapping relationship with the user, a may represent a template identifier, and r is the remainder of a divided by 31.
[0091] Exemplarily, the database can be divided into 32 database shards, each of which has a shard identifier, and the shard identifiers corresponding to the 32 database shards are 0 to 31. Among them, database shards 0 to 30 can be used as first-class database shards for main resource link issuance, and database shard 31 can be used as second-class database shard for backup resource link issuance. r is an integer from 0 to 30.
[0092] The initial identification of the user can be 0200xxxxxxx6269, each digit in the initial identification is an identifier, and the initial identification has a total of 15 digits of identifiers. The last two digits are extracted from the initial identification as the target identification, for example, 69 can be used as the target identification of the user, and the target identification is input into formula (1), and r can be obtained as 7, that is, the shard identification with the mapping relationship with the user is 7, and the resource link in the database shard No. 7 can be issued to the user. In one embodiment, the shard identification can be located in the database shard identification column shown in Table 2.
[0093] Specifically, in the process of issuing resource links to users, if the number of resource links in database shard No. 7 is not zero, the resource links in database shard No. 7 can be issued to users; if the number of resource links in database shard No. 7 is zero, the number of resource links in the second type of database shard (for example, database shard No. 31) can be queried, and if the number of resource links in the second type of database shard (for example, database shard No. 31) is not zero, the resource links in the second type of database shard (for example, database shard No. 31) can be issued to users, and if the number of resource links in the second type of database shard (for example, database shard No. 31) is zero, resource links may not be issued to users.
[0094] According to the embodiment of the present disclosure, by dividing multiple database shards into a first type of database shards as the main ones and a second type of database shards as the backup ones, the last two digits of the user number are used for modulo operation to obtain a shard identifier belonging to the first type of database shards with a mapping relationship with the user, and obtain a resource link from the database shard corresponding to the shard identifier; the remaining database shard backup shard is not issued temporarily, and when the resource link of a database shard in the first type of database shards is issued, the backup shard is enabled for issuance. When processing the user's request to receive the resource link, the method has less calculation amount, saves calculation resources for the system, and improves the efficiency of issuing resource links.
[0095] According to the embodiments of the present disclosure, in order for the financial institution system to further obtain the actual status of the user's collection of the resource link, when issuing the resource link, the issuance status can be configured in the issuance information, and the resource link can be issued according to the issuance status. Specifically, the issuance status can be read in response to the user's request to collect the resource link; based on the issuance status, the resource link stored in the database is issued to the user, wherein the issuance status can include at least one of the following: suspended issuance status, normal issuance status, and terminated issuance status.
[0096] According to an embodiment of the present disclosure, in the case of a suspended issuance state, issuance of resource links to users can be suspended; in the case of a normal issuance state, resource links can be issued to users normally; in the case of a terminated issuance state, it can be indicated that the resource links of the project have been issued and issuance of resource links to users will stop.
[0097] According to the embodiments of the present disclosure, by issuing resource links according to the issuance status, the problem of incorrect issuance of resource links due to operational errors and the like can be stopped in time, thereby improving the accuracy of issuing resource links and the user experience.
[0098] Figure 4The system architecture diagram of the resource link distribution system according to the embodiment of the present disclosure is schematically shown.
[0099] like Figure 4 As shown, the resource link issuing system 400 of the embodiment of the present disclosure may include a third-party application system 410 and an external enterprise system end (such as a financial institution system end) 420. The resource link issuing system 400 may be used to implement the resource link issuing method described in operations S310 to S340.
[0100] The third-party application system 410 may include a server end 411 , an external enterprise management end 412 , and a user end 413 .
[0101] The external enterprise system 420 may include a file sharing storage component 421 , a distribution system management terminal 422 , an open platform (configuration center) 423 , a database 424 , and a user management component 425 .
[0102] The third-party application system 410 provides an external enterprise management terminal 412 to the external enterprise. The external enterprise applies for a resource link at the external enterprise management terminal 412 , and the server terminal 411 returns the application result (a second resource file containing multiple resource links) to the external enterprise management terminal 412 .
[0103] The external enterprise management terminal 412 sends the second resource file containing multiple resource links to the file sharing storage component 421 of the external enterprise system 420, and the file sharing storage component 421 stores the second resource file containing multiple resource links.
[0104] In the open platform (configuration center) 423, project configuration is performed for the issuance of resource links, and the number of resource links that can be issued for any project, the project name, the start time of issuance, the end time of issuance, the issuance status, and user filtering conditions (whether the user follows the financial institution’s official account, video account, mini program, etc.; whether the user has registered the financial institution’s bank card on the financial institution’s official account, video account, mini program, etc.), etc., are set, and the above issuance information is sent to the issuance system management terminal 422.
[0105] After obtaining the number information of the resource links of the project, the system management terminal 422 can apply to the file sharing storage component 421 for the corresponding number of resource links. If the number of resource links available to the file sharing storage component 421 is greater than or equal to the number, the first resource file including the number of resource links is generated and sent to the system management terminal 422. If the number of resource links available to the file sharing storage component 421 is less than the number, the application can be rejected.
[0106] When the number of available resource links of the file sharing storage component 421 is greater than or equal to the number required by the project, after the system management terminal 422 receives the first resource file including the number of resource links, it can generate a relevant record table using the first resource file and the issuance information (number of resource links, project name, start time of issuance, end time of issuance, issuance status, user filtering conditions, etc.) and store it in the database 424. The record table can be as shown in Tables 1 to 3.
[0107] The user terminal 413 applies for resource links, and the user management component 425 performs logical judgment. If the user meets the user filtering conditions and there are still remaining resource links, and the issuance status is normal, the relevant resource links are issued to the user terminal. After issuance, the information in Tables 3 and 4 is updated.
[0108] If the issuance of the resource link needs to be suspended, the issuance status can be modified on the open platform (configuration center) 423, the issuance status can be set to suspended issuance, and the issuance status in Table 1 in the database 424 and the time of modifying the issuance status can be updated. When the issuance status is suspended issuance, the user terminal 413 applies for the resource link, and the user management component 425 performs a logical judgment based on Table 1 in the database 424. When it is determined that the project status is suspended issuance, the application of the user terminal 413 can be rejected and the resource link is not issued. If the issuance of the resource link needs to be reopened, the issuance status can be modified on the open platform (configuration center) 423, the issuance status can be set to normal issuance, and the issuance status in Table 1 in the database 424 can be updated, and the time of modifying the issuance status can be updated. When the issuance status is normal issuance, the user terminal 413 applies for the resource link, and the user management component 425 performs a logical judgment based on Table 1 in the database 424. When it is determined that the issuance status is normal issuance, the application of the user terminal 413 is processed and the resource link is issued to the user terminal.
[0109] Figure 5 The flowchart of issuing resource links according to an embodiment of the present disclosure is schematically shown.
[0110] like Figure 5 As shown, the process of issuing resource links may include operations S510 to S560.
[0111] In operation S510 , a user initiates a request to obtain a resource link.
[0112] In operation S520, the resource link scheduling table is queried to determine whether the database slice mapped to the user has a resource link. If there is a resource link, operation S530 is performed, and if there is no resource link, operation S540 is performed.
[0113] In operation S530, the resource link in the database shard mapped to the user is issued to the user.
[0114] In operation S540, the resource link scheduling table is queried to determine whether there are any resource links in the standby database shard. If there are any resource links, operation S550 is performed, and if there are no resource links, operation S560 is performed.
[0115] In operation S550, the resource link in the standby database shard is issued to the user.
[0116] In operation S560, the process of issuing the resource link is ended.
[0117] Figure 6 The figure schematically shows the logical relationship between the user management component and the database shards.
[0118] like Figure 6 As shown, the user management component 425 can first determine the first type of database shards (e.g., database shard 1, database shard 2, ..., database shard N-1) that have a mapping relationship with the user, and issue the resource links in the first type of database shards to the user. If there is no resource link in a database shard in the first type of database shards, call the second type of database shard (e.g., database shard N), and if there is a resource link in the second type of database shard, issue the resource link in the database shard to the user. Exemplarily, if there is no resource link in the database shard 2 mapped to the user, then if there is a resource link in the database shard N, the resource link in the database shard N can be issued to the user. It can be understood that the resource links in the database shards 1 to the database shard N-1 can be issued to the user evenly.
[0119] The resource link distribution method provided by the embodiment of the present disclosure can enable the external enterprise system end (such as the financial institution system end) to further obtain the actual situation of the user's collection of resource links, obtain the progress of the user's collection of resource links, and can implement the distribution of resource links according to projects. Each project can only distribute a part of the resource links, and the distribution status can be adjusted. After the distribution status is set to suspended, the resource links belonging to the project can no longer be distributed. If the project needs to be reopened, the distribution status is modified on the open platform (configuration center) and the distribution status is set to normal. When the distribution status is normal, the user end applies for the resource link, and the user management component performs logical judgment. If it is judged that the project status is normal, the user end application is processed.
[0120] In the disclosed embodiment, when a user requests to receive a resource link, the user can be screened, and the resource link can be issued to the user who meets the user filtering conditions, so as to realize personalized issuance of the resource link and improve the user experience.
[0121] It should be noted that, unless it is explicitly stated that there is a sequence of execution between different operations shown in the flowchart in the embodiments of the present disclosure, or there is a sequence of execution between different operations in technical implementation, otherwise, the execution order of multiple operations may not be prioritized, and multiple operations may also be executed simultaneously.
[0122] Based on the above resource link distribution method, the present disclosure also provides a resource link distribution device. Figure 7 The device is described in detail.
[0123] Figure 7 The structure block diagram of the resource link issuing device according to the embodiment of the present disclosure is schematically shown.
[0124] like Figure 7 As shown, the resource link issuing device 700 of this embodiment includes an acquisition module 710 , a first receiving module 720 , a generation module 730 and an issuing module 740 .
[0125] The acquisition module 710 is used to send a request for acquiring k resource links to the file sharing storage component based on the distribution information configured for the resource link, wherein the distribution information includes a user filtering condition, there are m resource links in the file sharing storage component, and k and m are both positive integers.
[0126] The first receiving module 720 is configured to receive a first resource file including k resource links when m is greater than or equal to k, and store the first resource file in a database.
[0127] The generating module 730 is used to generate a plurality of record tables for representing resource link issuance conditions according to the first resource file and the issuance information, and store the plurality of record tables in a database.
[0128] The issuing module 740 is used to issue the resource link stored in the database to the user when the user who requests to receive the resource link meets the user filtering conditions, and to update the multiple record tables stored in the database.
[0129] According to the resource link issuance method, device, equipment, storage medium and program product provided by the embodiment of the present disclosure, based on the issuance information configured for the resource link, a request for obtaining k resource links is sent to the file sharing storage component, and when the number of resource links m in the file sharing storage component is greater than k, a first resource file including k resource links is received and stored; according to the first resource link and the issuance information, multiple record tables are generated and stored; when the user who requests to receive the resource link meets the user filtering conditions, the resource link is issued to the user, and multiple record tables are updated. Since the interactive terminals involved in the above-mentioned resource link issuance process can be set in the system architecture that the financial institution can access, and by obtaining the resource link from the file sharing storage component, and storing the resource link and the record table generated according to the resource link and the issuance information in the database, the record table can be automatically updated after the qualified user receives it, at least partially overcomes the problem of information difference between the financial institution system end and the user end about the resource link business in the related technology, thereby achieving the technical effect of improving the execution efficiency of the financial institution system end in executing the resource link business.
[0130] According to an embodiment of the present disclosure, the first receiving module may include a dividing unit and a storage unit.
[0131] A partitioning unit is used to partition a database into N database shards, where N is a positive integer.
[0132] The storage unit is used to evenly store the k resource links in the first resource link file in the N database shards.
[0133] According to an embodiment of the present disclosure, the resource link issuing device may further include a division module.
[0134] A partitioning module is used to randomly partition N database shards into first-category database shards and second-category database shards after storing the first resource file in the database, wherein the first-category database shards include N-1 database shards and the second-category database shards include 1 database shard.
[0135] According to an embodiment of the present disclosure, the issuing module may include an acquisition unit, an extraction unit, an input unit, and a first issuing unit.
[0136] The obtaining unit is used to obtain the user's initial identification in response to the user's request for obtaining the resource link, wherein the initial identification includes multiple identifiers.
[0137] The extraction unit is used to extract a preset number of identifiers from the initial identifier to obtain a target identifier.
[0138] The input unit is used to input the target identifier into a preset function and output a shard identifier having a mapping relationship with the user, wherein the database shard corresponding to the shard identifier belongs to the first type of database shard.
[0139] The first issuing unit is used to issue a resource link to a user according to a slice identifier.
[0140] According to an embodiment of the present disclosure, the first issuing unit may include a first query subunit, a first issuing subunit, a second query subunit, and a second issuing subunit.
[0141] The first query subunit is used to search for a target database shard in the first type of database shards according to the shard identifier.
[0142] The first issuing subunit is used to issue the resource link stored in the target database shard to the user when the number of resource links in the target database shard is not zero.
[0143] The second query subunit is used to query the number of resource links in the second type of database shards when the number of resource links in the target database shards is zero.
[0144] The second issuing subunit is used to issue the resource links stored in the second type of database shards to the user when the number of resource links in the second type of database shards is not zero.
[0145] According to an embodiment of the present disclosure, the generation module may include a calling unit, a collecting unit, and a splicing unit.
[0146] The calling unit is used to call a plurality of record table templates, wherein each record table template includes a plurality of template fields.
[0147] The collection unit is used to collect information from the first resource file and the distribution information according to the template field on each record table template, and obtain the target information associated with the target field.
[0148] The splicing unit is used to splice the associated template fields with the target information to generate multiple record tables.
[0149] According to an embodiment of the present disclosure, the dispensing module may further include a reading unit and a second dispensing unit.
[0150] The reading unit is used to read the issuing status in response to the user's request to obtain the resource link.
[0151] The second issuing unit is used to issue the resource link stored in the database to the user based on the issuing status, wherein the issuing status includes at least one of the following: a suspended issuing status and a normal issuing status.
[0152] According to an embodiment of the present disclosure, the resource link issuing device may further include a sending module, a second receiving module, and a storage module.
[0153] The sending module is used to send a request for obtaining m resource links to the server through the enterprise management end component, so that the server generates a second resource file according to the request.
[0154] The second receiving module is used to receive a second resource file.
[0155] The storage module is used to store the second resource file in the file sharing storage component.
[0156] According to an embodiment of the present disclosure, any multiple modules among the acquisition module 710, the first receiving module 720, the generation module 730 and the issuance module 740 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 710, the first receiving module 720, the generation module 730 and the issuance module 740 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in a suitable combination of any of them. Alternatively, at least one of the acquisition module 710 , the first receiving module 720 , the generation module 730 and the issuance module 740 may be at least partially implemented as a computer program module, and when the computer program module is executed, a corresponding function may be performed.
[0157] It should be noted that the resource link distribution device part in the embodiment of the present disclosure corresponds to the resource link distribution method part in the embodiment of the present disclosure. The description of the resource link distribution device part specifically refers to the resource link distribution method part, which will not be repeated here.
[0158] Figure 8 A block diagram of an electronic device suitable for implementing a method for issuing resource links according to an embodiment of the present disclosure is schematically shown.
[0159] like Figure 8As shown, the electronic device 800 according to an embodiment of the present disclosure includes a processor 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 to a random access memory (RAM) 803. The processor 801 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 801 may also include an onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.
[0160] In RAM 803, various programs and data required for the operation of electronic device 800 are stored. Processor 801, ROM 802 and RAM 803 are connected to each other via bus 804. Processor 801 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 802 and / or RAM 803. It should be noted that the program can also be stored in one or more memories other than ROM 802 and RAM 803. Processor 801 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.
[0161] According to an embodiment of the present disclosure, the electronic device 800 may further include an input / output (I / O) interface 805, which is also connected to the bus 804. The electronic device 800 may further include one or more of the following components connected to the input / output (I / O) interface 805: an input portion 806 including a keyboard, a mouse, etc.; an output portion 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 808 including a hard disk, etc.; and a communication portion 809 including a network interface card such as a LAN card, a modem, etc. The communication portion 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the input / output (I / O) interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed, so that a computer program read therefrom is installed into the storage portion 808 as needed.
[0162] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.
[0163] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 802 and / or RAM 803 described above and / or one or more memories other than ROM 802 and RAM 803.
[0164] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the resource link distribution method provided by the embodiment of the present disclosure.
[0165] The above functions defined in the system / device of the embodiment of the present disclosure are executed when the computer program is executed by the processor 801. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0166] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 809, and / or installed from a removable medium 811. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0167] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 809, and / or installed from the removable medium 811. When the computer program is executed by the processor 801, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.
[0168] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).
[0169] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0170] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.
[0171] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.
Claims
1. A method for issuing a resource link, comprising: Based on the distribution information configured for the resource link, a request for obtaining k resource links is sent to the file sharing storage component, wherein the distribution information includes a user filtering condition, the file sharing storage component has m resource links, and both k and m are positive integers; When m is greater than or equal to k, receiving a first resource file including k resource links, and storing the first resource file in a database; Generating a plurality of record tables for representing resource link issuance conditions according to the first resource file and the issuance information, and storing the plurality of record tables in the database; In the case that the user who requests to receive the resource link meets the user filtering condition, the resource link stored in the database is issued to the user, and the multiple record tables stored in the database are updated.
2. The method according to claim 1, wherein: The storing the first resource file in the database comprises: Dividing the database into N database shards, where N is a positive integer; The k resource links in the first resource link file are evenly stored in the N database shards.
3. The method according to claim 2, further comprising: After storing the first resource file in the database, the N database shards are randomly divided into first-category database shards and second-category database shards, wherein the first-category database shards include N-1 database shards, and the second-category database shards include 1 database shard.
4. The method according to claim 3, wherein: Each database shard is configured with a shard identifier; The issuing of the resource link stored in the database to the user comprises: In response to a user's request to obtain the resource link, obtaining an initial identification of the user, wherein the initial identification includes a plurality of identifiers; Extracting a preset number of identifiers from the initial identifier to obtain a target identifier; Input the target identifier into a preset function, and output a shard identifier having a mapping relationship with the user, wherein the database shard corresponding to the shard identifier belongs to the first type of database shards; The resource link is issued to the user according to the slice identifier.
5. The method according to claim 4, wherein: The issuing of the resource link to the user according to the slice identifier includes: According to the shard identifier, searching for a target database shard in the first type of database shards; When the number of resource links in the target database shard is not zero, issuing the resource link stored in the target database shard to the user; When the number of resource links in the target database shard is zero, querying the number of resource links in the second-type database shard; In a case where the number of resource links in the second-type database shard is not zero, the resource links stored in the second-type database shard are issued to the user.
6. The method according to claim 1, wherein: Each record sheet is configured with a corresponding record sheet template; The step of generating a plurality of record tables for representing resource link issuance conditions according to the first resource file and the issuance information comprises: Calling a plurality of the record table templates, wherein each record table template includes a plurality of template fields; According to the template field on each record table template, information is collected in the first resource file and the issuance information to obtain target information associated with the target field; The associated template fields are concatenated with the target information to generate the multiple record tables.
7. The method according to claim 1, wherein: The release information also includes a release status of the resource link; The issuing of the resource link stored in the database to the user comprises: In response to a user's request to claim the resource link, reading the issuance status; Based on the issuance status, the resource link stored in the database is issued to the user, wherein the issuance status includes at least one of the following: a suspended issuance status and a normal issuance status.
8. The method according to claim 1, wherein: The m resource links in the file sharing storage component are obtained in the following manner: Sending a request for acquiring m resource links to the server through the enterprise management component, so that the server generates a second resource file according to the request; receiving the second resource file; The second resource file is stored in the file sharing storage component.
9. A resource link distribution device, comprising: An acquisition module, configured to send a request for acquiring k resource links to a file sharing storage component based on the distribution information configured for the resource links, wherein the distribution information includes a user filtering condition, the file sharing storage component has m resource links, and both k and m are positive integers; A first receiving module, configured to receive a first resource file including k resource links when m is greater than or equal to k, and store the first resource file in a database; A generating module, used for generating a plurality of record tables for representing resource link issuance conditions according to the first resource file and the issuance information, and storing the plurality of record tables in the database; The issuing module is used to issue the resource link stored in the database to the user when the user who requests to receive the resource link meets the user filtering condition, and to update the multiple record tables stored in the database.
10. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to execute the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 8.
Citation Information
Patent Citations
Method and device for managing resource files
CN115062253A
Resource version control method and device, popup window confirmation method and device, equipment and medium
CN116389254A
Data synchronization method and device, electronic equipment and computer readable storage medium
CN116401319A
Techniques for performing file operations involving a link at a database management system
US20070130157A1