Application resource configuration method and device of computer platform, equipment and storage medium
By introducing a pre-deduction token mechanism on the e-commerce platform to dynamically manage application resources, it solves the problem that the resource allocation method in the existing technology cannot meet the needs of sustainable revenue and management and control capabilities, and achieves improvement in resource usage efficiency and user experience. improve.
Patent Information
- Application Number
- CN202410693327.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-10-01
AI Technical Summary
The existing method of allocating application resources on a periodic basis cannot meet the continued revenue and healthy market development needs of third-party applications, and it lacks the ability to control the use of e-commerce platform application resources.
By introducing a pre-deduction token mechanism on the computer platform, pre-deduction tokens and actual deduction tokens are generated based on the user's resource usage capabilities and points, thereby achieving dynamic management of application resources and storage of usage records.
It improves the usage efficiency of application resources and the platform's ability to manage and control resources, improves user experience, and ensures the reasonable allocation and use of resources through centralized management of users' application resource points.
Smart Images

Figure CN118733249A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of e-commerce technology, and in particular to a method, device, equipment and storage medium for configuring application resources on a computer platform. Background Art
[0002] With the rapid development of AI technology, current e-commerce platforms need to introduce AI application resources provided by multiple third-party applications. For AI tools on e-commerce platforms, each use by users will consume application resources. The existing method of configuring application resources on a cycle basis cannot meet the continuous revenue and healthy market development of third-party applications that provide application resources. How to add configuration based on user usage to the original application resource configuration method, and how to strengthen the management and control capabilities of e-commerce platforms' application resources and corresponding providers have become issues that need to be urgently addressed. Summary of the invention
[0003] According to one aspect of the present application, a method for configuring application resources of a computer platform is provided, which is applied to the platform side, and includes: determining whether a current user can use application resources; generating a pre-deduction token for the current user when the current user can use application resources; generating an actual deduction token for the current user based on a pre-deduction request initiated by the application side according to the pre-deduction token; and acquiring and saving application resource usage information of the current user in response to the application side generating application resources corresponding to the actual deduction token.
[0004] According to some embodiments, before determining whether the current user can use application resources, preset information of multiple users is obtained through the application end, where the preset information includes a resource usage capability mark, which corresponds to the type and usage of application resources used by the user; and the application resource points of each of the multiple users are obtained.
[0005] According to some embodiments, determining whether the current user can use application resources includes: obtaining authorization information for the current user to use application resources; and determining whether the current user can use application resources based on the authorization information and the application resource points of the current user.
[0006] According to some embodiments, whether the current user can use application resources is determined based on authorization information and the application resource points of the current user, including: when the current user's authorization to use application resources is valid, determining that the current user can use application resources; when the current user's authorization to use application resources is invalid and the current user has application resource points, determining that the current user can use application resources; when the current user's authorization to use application resources is invalid and the current user does not have application resource points, determining that the current user cannot use application resources.
[0007] According to some embodiments, when the current user is able to use application resources, a pre-deduction token is generated for the current user, including: obtaining resource request information of the current user; querying preset information and application resource points corresponding to the current user through the resource request information; sending the query result to the current user; in response to the current user determining the query result, generating a pre-deduction token based on the preset information and application resource points corresponding to the current user; and sending the pre-deduction token to the application end.
[0008] According to some embodiments, based on the pre-deduction request initiated by the application end according to the pre-deduction token, an actual deduction token for the current user is generated, including: obtaining the pre-deduction request sent by the application end, the pre-deduction request is initiated by the application end after determining that the application resources corresponding to it can be generated according to the pre-deduction token; verifying the pre-deduction token according to the pre-deduction request; generating a deduction record of the application resources after the pre-deduction token is verified; determining the application resource points of the current user to be deducted according to the deduction record; and generating an actual deduction token based on the pre-deduction token, and sending the actual deduction token to the application end.
[0009] According to some embodiments, in response to the application end generating application resources corresponding to the actual deduction token, obtaining and saving the application resource usage information of the current user, including: obtaining a resource usage request sent by the application end, the resource usage request is initiated by the application end after generating the application resources corresponding to the actual deduction token; verifying the actual deduction token according to the resource usage request; after the actual deduction token is verified, sending a notification message to the application end, so that the application end executes the use of the application resources corresponding to the actual deduction token; obtaining and saving the application resource usage information of the current user sent by the application end; and updating the deduction record of the application resources and sending a confirmation message to the application end according to the application resource usage information of the current user.
[0010] According to one aspect of the present application, a method for configuring application resources of a computer platform is provided, which is applied to an application end, and includes: in response to the platform end determining that the current user can use the application resources, obtaining a pre-deduction token of the current user sent by the platform end; sending a pre-deduction request to the platform end according to the pre-deduction token to obtain an actual deduction token of the current user generated by the platform end according to the pre-deduction request; generating application resources corresponding to the actual deduction token; and sending application resource usage information of the current user to the platform end.
[0011] According to some embodiments, in response to the platform side determining that the current user can use the application resources, before obtaining the pre-deduction token of the current user sent by the platform side, preset information of multiple users is registered on the platform side.
[0012] According to some embodiments, sending the current user's application resource usage information to the platform side includes: sending a resource usage request corresponding to the actual deduction token to the platform side; after the platform side verifies that the actual deduction token is passed, receiving the notification information sent by the platform side and executing the use of the application resources corresponding to the actual deduction token; after the use of the application resources corresponding to the actual deduction token is completed, sending the current user's application resource usage information to the platform side; receiving the confirmation information sent by the platform side after updating the deduction record of the application resources.
[0013] According to one aspect of the present application, there is provided a device for configuring application resources of a computer platform, which is applied to a platform side and includes: a first execution module, which is used to determine whether a current user can use application resources; if the current user can use application resources, generating a pre-deduction token for the current user; a second execution module, which is used to generate an actual deduction token for the current user based on a pre-deduction request initiated by an application side according to the pre-deduction token; and a third execution module, which is used to obtain and save application resource usage information of the current user in response to the application side generating application resources corresponding to the actual deduction token.
[0014] According to one aspect of the present application, there is provided a device for configuring application resources of a computer platform, which is applied to an application end and includes: a fourth execution module, for obtaining a pre-deduction token of the current user sent by the platform end in response to the platform end determining that the current user can use the application resources; a fifth execution module, for sending a pre-deduction request to the platform end according to the pre-deduction token to obtain an actual deduction token of the current user generated by the platform end according to the pre-deduction request; a sixth execution module, for generating application resources corresponding to the actual deduction token; and sending application resource usage information of the current user to the platform end.
[0015] According to one aspect of the present application, an electronic device is provided, 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 implement the aforementioned method.
[0016] According to one aspect of the present application, a computer-readable storage medium is provided, on which a computer program or instruction is stored. When the computer program or instruction is executed by a processor, the aforementioned method is implemented.
[0017] According to the embodiments of the present application, the user's application resource usage capability can be pre-set, and the user's application resource points can be centrally managed, thereby strengthening the platform's control over application resources, and improving the efficiency of application resource usage by setting a pre-deduction link, thereby enhancing the user experience.
[0018] It should be understood that the foregoing general description and the following detailed description are exemplary only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application.
[0020] Figure 1 A schematic diagram showing the current user using application resources according to an exemplary embodiment of the present application.
[0021] Figure 2 A flowchart for determining whether a current user can use application resources according to an exemplary embodiment of the present application is shown.
[0022] Figure 3 A flow chart of an application resource configuration method applied to a platform side according to an example embodiment of the present application is shown.
[0023] Figure 4 A flow chart of an application resource configuration method applied to an application end according to an exemplary embodiment of the present application is shown.
[0024] Figure 5 A block diagram of an application resource configuration device applied to a platform side according to an exemplary embodiment of the present application is shown.
[0025] Figure 6 A block diagram of an application resource configuration device applied to an application terminal according to an exemplary embodiment of the present application is shown.
[0026] Figure 7 A block diagram of an electronic device according to an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0027] The user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0028] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in many forms and should not be construed as limited to the embodiments set forth herein; rather, these embodiments are provided so that this application will be comprehensive and complete and will fully convey the concepts of the example embodiments to those skilled in the art. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted.
[0029] The described features, structures or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application may be put into practice without one or more of these specific details, or other modes, components, materials, devices or operations may be adopted. In these cases, known structures, methods, devices, realizations, materials or operations will not be shown or described in detail.
[0030] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0031] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0032] The present application provides a method, apparatus, device and storage medium for configuring application resources of a computer platform, which can enhance the platform's ability to manage and control the use of application resources.
[0033] The following will describe in detail an application resource configuration method, apparatus, device and storage medium for a computer platform according to an embodiment of the present application with reference to the accompanying drawings.
[0034] Figure 1 A schematic diagram showing the current user using application resources according to an exemplary embodiment of the present application.
[0035] like Figure 1 As shown, the current user can access the portal component ( Figure 1 ) uses application resources provided by the application end 200.
[0036] It should be understood that Figure 1 The number of current users and application terminals 200 in the embodiment is only for illustration. According to actual needs, there may be any number of current users and application terminals 200.
[0037] According to some embodiments, the application end 200 may construct an interface through an application resource tool provided by the platform end 100 to perform data transmission between the application end 200 and the platform end 100 .
[0038] According to some embodiments, the front-end page of the platform 100 can set a button component through an application resource tool to serve as an entry for the current user to apply for the use of application resources and obtain the resource request information of the current user.
[0039] Before the current user applies for using application resources through the button component set on the platform end 100 , the application end 200 pre-registers preset information of multiple users including the current user on the platform end 100 .
[0040] Similarly, before the current user applies for the use of application resources through the button component set on the platform end 100, the platform end 100 obtains the application resource points of multiple users including the current user stored in the database of the platform end 100.
[0041] When the current user applies to use application resources through the button component set on the platform end 100, the platform end 100 first obtains the login information of the current user, and uses it to query the authorization information of the current user to use the application resources in the database of the platform end 100.
[0042] The platform end 100 determines whether the current user can use the application resources based on the authorization information of the current user to use the application resources and the application resource points of the current user.
[0043] When the current user is able to use the application resources, the platform 100 queries the preset information and application resource points corresponding to the current user through the resource request information obtained from the current user.
[0044] After the current user confirms the query result, the platform end 100 verifies the application resource type corresponding to the resource request information of the current user and the application end 200. After the verification is passed, the platform end 100 generates a corresponding pre-deduction token according to the preset information and application resource points of the current user, and sends the pre-deduction token to the application end 200.
[0045] The application end 200 determines whether the application resources corresponding to the received pre-deduction token can be generated, and sends a pre-deduction request to the platform end 100 if the application resources can be generated.
[0046] The platform 100 verifies the pre-deduction token according to the pre-deduction request, and generates a deduction record of the application resource corresponding to the pre-deduction token in the database after the verification passes. At this time, the platform 100 has not actually deducted the application resource points corresponding to the deduction record.
[0047] At the same time, the platform 100 determines the points to be deducted from the current user's application resource points based on the deduction record of the application resources.
[0048] Furthermore, the platform end 100 generates an actual deduction token based on the pre-deduction token and sends it to the application end 200 .
[0049] The application end 200 generates the application resources available to the current user corresponding to the actual deduction token. The application end 200 sends the generated information of the application resources available to the current user and the resource use request corresponding to the actual deduction token to the platform end 100.
[0050] The platform end 100 verifies the validity of the actual deduction token and other information according to the received resource usage request, and sends notification information to the application end 200 after the verification is passed.
[0051] After receiving the notification information from the platform end 100, the application end 200 executes the use of the application resources corresponding to the actual deduction token. After the use of the application resources is completed, the application end 200 sends the application resource use information of the current user to the platform end 100 for storage.
[0052] The platform end 100 updates the deduction record of application resources according to the application resource usage information of the current user, so as to actually deduct the application resource points of the current user corresponding to the deduction record.
[0053] The application end 200 obtains the confirmation information sent by the platform end 100 after updating the application resource deduction record, and completes the acquisition and use of the application resources by the current user.
[0054] Figure 2 A flowchart for determining whether a current user can use application resources according to an exemplary embodiment of the present application is shown.
[0055] like Figure 2 As shown, in step S110, the platform side obtains authorization information for the current user to use application resources.
[0056] For example, in step S110, when the current user applies to use application resources through the platform, the platform obtains authorization information for the current user to use the application resources through the login information of the current user.
[0057] When the current user logs in to the platform and applies to use application resources, the platform first obtains the login information of the current user and uses it to query the database for the authorization information of the current user to use the application resources.
[0058] According to some embodiments, the login information of the current user includes the login status token of the current user, which can be obtained through the cache of the login page on the platform side.
[0059] According to some embodiments, the authorization information for the current user to use the application resources includes version information of the platform-side application resource tool corresponding to the current user.
[0060] In step S120, when the authorization information is valid, the platform determines that the version of the application resource tool that the current user can use is the first version.
[0061] For example, in step S120, when it is found that the authorization information for the current user to use the application resource is valid, the platform determines that the version of the application resource tool that the current user can use is the first version.
[0062] The platform verifies the authorization information of the current user to use the application resources to verify whether the authorization of the current user to use the application resources is valid.
[0063] When the authorization of the current user to use the application resource is valid, the platform determines that the version of the application resource tool that the current user can use is the first version.
[0064] According to some embodiments, the first version of the application resource tool includes a trial version of the application resource tool, wherein the first version of the application resource tool can implement more functions than the trial version of the application resource tool, and the first version and the trial version of the application resource tool both include functions that support the current user to use application resources.
[0065] In step S130, when the authorization information is invalid but the current user has application resource points, the platform determines that the version of the application resource tool that the current user can use is the second version.
[0066] For example, in step S130, when it is found that the authorization information for the current user to use application resources is invalid, but it is determined that the current user has application resource points, the platform determines that the version of the application resource tool available to the current user is the second version.
[0067] When the authorization of the current user to use the application resources is invalid, the platform queries and obtains the application resource points information of the current user.
[0068] According to some embodiments, the application resource points of the current user are obtained by the current user through redemption on the platform side and stored in a database on the platform side.
[0069] According to some embodiments, the platform can query and obtain the application resource points of the current user through the shared application resource point pool set in the platform database. The application resource points in the shared application resource point pool can be applied to multiple application terminals, so that the current user can deduct them when using the application resources provided by multiple application terminals respectively.
[0070] When it is determined that the current user has corresponding application resource points, the platform determines that the version of the application resource tool available to the current user is the second version.
[0071] According to some embodiments, the second version of the application resource tool only has the function of supporting the current user to use the application resources, and the platform sets a usage period (eg, 30 days) for the second version of the application resource tool.
[0072] In step S140, after determining the version information of the application resource tool available to the current user, the platform determines that the current user can use the application resource.
[0073] For example, in step S140, based on the determined version information of the application resource tool that can be used by the current user, the platform determines that the current user can use the application resources provided by the application end through the corresponding application resource tool.
[0074] When it is determined that the version of the application resource tool available to the current user is the first version (including the trial version) or the second version, the platform determines that the current user can use the application resources through the corresponding application resource tool, and sends the version information of the application resource tool available to the current user to the application end.
[0075] The application side provides the platform side and the current user with the corresponding application resource usage functions based on the version of the application resource tool.
[0076] In step S150, when the authorization information is invalid and the current user does not have application resource points, the platform determines that the current user cannot use the application resources.
[0077] For example, in step S150, when it is found that the authorization information for the current user to use the application resources is invalid and it is determined that the current user does not have application resource points, the platform determines that the current user cannot use the application resources.
[0078] When the authorization of the current user to use the application resources is invalid, the platform queries and obtains the application resource points information of the current user.
[0079] When it is determined that the current user does not have corresponding application resource points, the platform determines that the current user cannot use the application resources.
[0080] According to some embodiments, the current user can redeem application resource points or authorization to use application resources through the platform.
[0081] According to an embodiment of the present application, the user's login information can be directly obtained through the platform end to ensure that the application resource usage request is initiated by the user on the platform end, thereby preventing the application end from forging or changing the user's request information.
[0082] Figure 3 A flow chart of an application resource configuration method applied to a platform side according to an example embodiment of the present application is shown.
[0083] like Figure 3 As shown, in step S210, the platform determines whether the current user can use the application resources.
[0084] For example, in step S210, based on the authorization information of the current user for using the application resources and the application resource points of the current user, the platform determines whether the current user can use the application resources.
[0085] Before the current user applies to use application resources through the platform, the platform first obtains preset information of multiple users including the current user that are pre-registered on the platform by the application.
[0086] According to some embodiments, the preset information of the current user includes a resource usage capability tag corresponding to the current user, and the resource usage capability tag corresponds to the type and usage amount of application resources used by the current user.
[0087] According to some embodiments, the preset information of the current user also includes access verification information of the current user.
[0088] Before the current user applies for the use of application resources through the platform, the platform also obtains the application resource points of multiple users including the current user stored in the platform database.
[0089] When the current user logs in to the platform and applies to use application resources, the platform obtains the login information of the current user and uses it to query the authorization information of the current user to use the application resources in the platform database.
[0090] Based on the authorization information of the current user for using application resources and the application resource points of the current user, the platform determines whether the current user can use the application resources.
[0091] According to some embodiments, when the authorization for the current user to use application resources is valid, or when the authorization for the current user to use application resources is invalid and the current user has application resource points, the platform determines that the current user can use the application resources.
[0092] According to some embodiments, when the authorization of the current user to use the application resources is invalid and the current user does not have application resource points, the platform determines that the current user cannot use the application resources.
[0093] In step S220, when the current user is able to use the application resources, the platform generates a pre-deduction token for the current user.
[0094] For example, in step S220, when the current user is able to use application resources, the platform generates a pre-deduction token according to the preset information corresponding to the current user and the application resource points.
[0095] The platform obtains the resource request information of the current user to query the preset information and application resource points corresponding to the current user, and returns the query results to the current user.
[0096] According to some embodiments, the resource request information of the current user can be obtained through a button component set on the front-end page of the platform, which includes the resource usage capability mark corresponding to the current user, the access verification information of the current user, and the login information of the current user.
[0097] According to some embodiments, the platform side may set pop-up information through the application resource tool to feed back the query results to the current user and obtain the confirmation information of the current user.
[0098] After the current user confirms the query result, the platform verifies the application resource type corresponding to the current user's resource request information and the legitimacy of the application end that provides the application resources. After the verification is passed, a pre-deduction token corresponding to the current user is generated based on the current user's preset information and application resource points.
[0099] According to some embodiments, the pre-deduction token can be generated in the form of a UUID (Universally Unique Identifier) using a corresponding programming language (such as Java), which includes the current user's information, the resource usage capability mark corresponding to the current user, the current user's access verification information, and the application resource points that need to be deducted for the current user's use of application resources.
[0100] The platform sends the generated pre-deduction token to the application.
[0101] According to some embodiments, if a timeout occurs during the process of generating a pre-deduction token on the platform side, the platform side will retry to generate the pre-deduction token. If an abnormal situation such as data loss or acquisition failure occurs during the process of obtaining the pre-deduction token on the application side, the platform side will retry to send the pre-deduction token.
[0102] In step S230, based on the pre-deduction request initiated by the application side according to the pre-deduction token, the platform side generates an actual deduction token for the current user.
[0103] For example, in step S230, the platform side receives the pre-deduction request initiated by the application side according to the pre-deduction token, and generates an actual deduction token for the current user.
[0104] After determining that the corresponding application resources can be generated according to the pre-deduction token sent by the platform side, the application side sends a pre-deduction request to the platform side.
[0105] The platform verifies the pre-deduction token based on the pre-deduction request received.
[0106] According to some embodiments, the verification of the pre-deduction token includes verifying information such as the validity and expiration time of the pre-deduction token.
[0107] After the pre-deduction token is verified, the platform generates a deduction record of the application resource corresponding to the pre-deduction token in the database. At the same time, the platform determines the points to be deducted from the current user's application resource points based on the deduction record of the application resource, so as to pre-deduct the application resource points corresponding to the pre-deduction token.
[0108] According to some embodiments, the platform locks the application resource points that need to be deducted by the current user during the use of application resources by pre-deducting the application resource points corresponding to the pre-deduction token. At this time, the platform does not actually deduct the application resource points that need to be deducted.
[0109] Furthermore, the platform generates an actual deduction token based on the pre-deduction token and sends it to the application.
[0110] According to some embodiments, the actual deduction token may be obtained by hashing the pre-deduction token.
[0111] According to some embodiments, if an abnormal situation such as data loss or acquisition failure occurs during the process of obtaining the actual deduction token on the application side, the platform side will retry to send the actual deduction token.
[0112] In step S240, in response to the application end generating application resources corresponding to the actual deduction token, the platform end obtains and saves the application resource usage information of the current user.
[0113] For example, in step S240, after the application side generates corresponding application resources according to the actual deduction token, the platform side verifies the actual deduction token, and obtains and saves the current user's application resource usage information after executing the use of the application resources corresponding to the actual deduction token on the application side.
[0114] After the application side generates the application resources available to the current user according to the actual deduction token, the platform side obtains the information of the generated application resources and the resource use request corresponding to the actual deduction token sent by the application side.
[0115] According to some embodiments, the information of the generated application resource includes a resource ID and a resource hash of the generated application resource.
[0116] According to some embodiments, if an abnormal situation occurs in which the application end fails to generate application resources, the platform end will cancel the pre-deduction of the corresponding application resource points.
[0117] The platform verifies the validity and expiration time of the actual deduction token based on the received resource usage request, and sends a notification message to the application after the verification is passed.
[0118] After the application receives the notification information and completes the use of the application resources corresponding to the actual deduction token, the platform obtains the application resource use information corresponding to the current user sent by the application and saves it.
[0119] According to some embodiments, the current user's application resource usage information includes the corresponding resource ID and resource hash, and the application resource usage information is stored on the platform for at least two application resource settlement periods for subsequent query and verification of the application resource usage results. The application resource settlement period can be set according to actual conditions, for example, the settlement period of one application resource can be set to one month.
[0120] According to the current user's application resource usage information, the platform updates the application resource deduction record in the database and actually deducts the current user's application resource points corresponding to the deduction record.
[0121] According to some embodiments, after the platform side pre-deducts the application resource points of the current user, if the platform side and the application side do not perform any processing steps within a preset time period (such as 20-30 minutes), the platform side automatically restores the application resource points of the current user that have been pre-deducted to the number before the pre-deduction.
[0122] After updating the application resource deduction record, the platform sends a confirmation message to the application side, so that the application side completes the acquisition and use of the generated application resources by the current user.
[0123] According to the embodiments of the present application, the platform can centrally manage the user's application resource points, strengthen the platform's control over application resources, and improve the efficiency of application resource utilization by setting up a pre-deduction link.
[0124] Figure 4 A flow chart of an application resource configuration method applied to an application end according to an exemplary embodiment of the present application is shown.
[0125] like Figure 4 As shown, in step S310, in response to the platform side determining that the current user can use the application resources, the application side obtains the pre-deduction token of the current user sent by the platform side.
[0126] For example, in step S310, after the platform determines that the current user can use the application resources, the application obtains the pre-deduction token of the current user through the platform.
[0127] Before the current user applies to use application resources through the platform, the application pre-registers preset information of multiple users including the current user on the platform.
[0128] When the platform determines that the current user can use the application resources, the application obtains a pre-deduction token corresponding to the current user generated according to the preset information of the current user and the application resource points through the platform.
[0129] According to some embodiments, if an abnormal situation such as data loss or acquisition failure occurs during the process of obtaining the pre-deduction token on the application side, the application side will retry to obtain the pre-deduction token sent by the platform side.
[0130] In step S320, the application side sends a pre-deduction request to the platform side according to the pre-deduction token to obtain the actual deduction token of the current user generated by the platform side according to the pre-deduction request.
[0131] For example, in step S320, the application side initiates a pre-deduction request according to the pre-deduction token to obtain the actual deduction token of the current user generated according to the pre-deduction request and sent by the platform side.
[0132] Based on the received pre-deduction token, the application determines whether an application resource corresponding to the pre-deduction token can be generated.
[0133] After determining that the corresponding application resources can be generated, the application side sends a pre-deduction request to the platform side.
[0134] According to some embodiments, the pre-deduction request sent by the application includes a pre-deduction token.
[0135] The platform verifies the pre-deduction token according to the pre-deduction request, generates a deduction record for the application resources corresponding to the pre-deduction token, and determines the points to be deducted from the current user's application resource points. Then, the application obtains the actual deduction token generated based on the pre-deduction token through the platform.
[0136] According to some embodiments, if abnormal situations such as data loss or acquisition failure occur in the process of obtaining the actual deduction token on the application side, the application side will retry to obtain the actual deduction token sent by the platform side or query the corresponding actual deduction token on the platform side through the pre-deduction token.
[0137] In step S330, the application side generates corresponding application resources according to the actual deduction token.
[0138] According to some embodiments, the information corresponding to the application resource generated by the application end includes the resource ID and resource hash of the application resource.
[0139] In step S340, the application side sends the application resource usage information of the current user to the platform side.
[0140] For example, in step S340, the application side sends the information of the generated application resources and the resource usage request corresponding to the actual deduction token to the platform side.
[0141] After generating the application resources corresponding to the actual deduction token, the application side sends the information of the generated application resources and the resource use request corresponding to the actual deduction token to the platform side.
[0142] According to some embodiments, the resource usage request sent by the application includes an actual deduction token.
[0143] After the platform verifies the actual deduction token, the application receives the verification pass notification information sent by the platform and executes the use of the application resources corresponding to the actual deduction token.
[0144] After the use of the application resources is completed, the application side sends the application resource usage information corresponding to the current user including the resource ID and resource hash to the platform side, so that the platform side can save the application resource usage information and use it for traceability and verification.
[0145] After the platform updates the application resource deduction records in the database and the corresponding application resource points of the current user according to the application resource usage information of the current user, the application side receives the updated confirmation information sent by the platform side and completes the current user's acquisition and use of the generated application resources.
[0146] According to the embodiments of the present application, the application side can pre-set the user's application resource usage capabilities through the platform side, which is convenient for the centralized management of the application resource points of the platform side users, improves the efficiency of application resource usage through the pre-deduction link, and enhances the user experience.
[0147] Figure 5 A block diagram of an application resource configuration device applied to a platform side according to an exemplary embodiment of the present application is shown.
[0148] like Figure 5 As shown, the application resource configuration device 300 applied to the platform side includes a first execution module 310, a second execution module 320 and a third execution module 330.
[0149] Before the current user applies to use the application resources, the first execution module 310 first obtains preset information of multiple users including the current user pre-registered on the application side.
[0150] Before the current user applies to use the application resources, the first execution module 310 also obtains the application resource points of multiple users including the current user stored in the database.
[0151] When the current user logs in and applies to use application resources, the first execution module 310 obtains the login information of the current user and uses it to query the database for authorization information of the current user to use the application resources.
[0152] According to the authorization information of the current user for using the application resources and the application resource points of the current user, the first execution module 310 determines whether the current user can use the application resources.
[0153] The first execution module 310 obtains resource request information of the current user to query the preset information and application resource points corresponding to the current user, and returns the query result to the current user.
[0154] After the current user confirms the query result, the first execution module 310 verifies the application resource type corresponding to the current user's resource request information and the legitimacy of the application end that provides the application resources, and after the verification is passed, generates a pre-deduction token corresponding to the current user based on the current user's preset information and application resource points.
[0155] The first execution module 310 sends the generated pre-deduction token to the application end.
[0156] After the application side determines that the application resources corresponding to the pre-deduction token can be generated according to the pre-deduction token, the second execution module 320 receives the pre-deduction request sent by the application side.
[0157] The second execution module 320 verifies the pre-deduction token according to the received pre-deduction request.
[0158] After the pre-deduction token is verified, the second execution module 320 generates a deduction record of the application resource corresponding to the pre-deduction token in the database. At the same time, the second execution module 320 determines the points to be deducted from the current user's application resource points according to the deduction record of the application resource, so as to pre-deduct the application resource points corresponding to the pre-deduction token.
[0159] The second execution module 320 generates an actual deduction token according to the pre-deduction token, and sends it to the application end.
[0160] After the application side generates the application resources available to the current user according to the actual deduction token, the third execution module 330 obtains the information of the generated application resources sent by the application side and the resource use request corresponding to the actual deduction token.
[0161] The third execution module 330 verifies the validity and expiration time of the actual deduction token according to the received resource use request, and sends a notification message to the application end after the verification passes.
[0162] After the application side receives the notification information and completes the use of the application resources corresponding to the actual deduction token, the third execution module 330 obtains and saves the application resource use information corresponding to the current user sent by the application side.
[0163] According to the application resource usage information of the current user, the third execution module 330 updates the deduction record of the application resource in the database, and actually deducts the application resource points of the current user corresponding to the deduction record.
[0164] The third execution module 330 sends a confirmation message to the application end after updating the application resource deduction record, so that the application end completes the acquisition and use of the generated application resources by the current user.
[0165] Figure 6 A block diagram of an application resource configuration device applied to an application terminal according to an exemplary embodiment of the present application is shown.
[0166] like Figure 6 As shown, the application resource configuration device 400 applied to the application end includes a fourth execution module 410, a fifth execution module 420 and a sixth execution module 430.
[0167] Before the current user applies to use the application resources through the platform, the fourth execution module 410 pre-registers preset information of multiple users including the current user on the platform.
[0168] When the platform determines that the current user can use the application resources, the fourth execution module 410 obtains a pre-deduction token corresponding to the current user generated according to the preset information of the current user and the application resource points through the platform.
[0169] According to the received pre-deduction token, the fifth execution module 420 determines whether an application resource corresponding to the pre-deduction token can be generated.
[0170] After determining that the corresponding application resources can be generated, the fifth execution module 420 sends a pre-deduction request to the platform end.
[0171] After the platform verifies the pre-deduction token according to the pre-deduction request, generates a deduction record of the application resources corresponding to the pre-deduction token, and determines the points to be deducted from the current user's application resource points, the fifth execution module 420 obtains the actual deduction token generated according to the pre-deduction token through the platform.
[0172] The sixth execution module 430 generates corresponding application resources according to the actual deduction token.
[0173] After generating the application resources corresponding to the actual deduction token, the sixth execution module 430 sends the information of the generated application resources and the resource use request corresponding to the actual deduction token to the platform end.
[0174] After the platform verifies the actual deduction token, the sixth execution module 430 receives the verification pass notification information sent by the platform, and executes the use of the application resources corresponding to the actual deduction token.
[0175] After the use of the application resources is completed, the sixth execution module 430 sends the application resource use information corresponding to the current user including the resource ID and the resource hash to the platform end, so that the platform end can save the application resource use information and use it for retrospective verification.
[0176] After the platform updates the application resource deduction records in the database and the corresponding application resource points of the current user according to the application resource usage information of the current user, the sixth execution module 430 receives the updated confirmation information sent by the platform and completes the current user's acquisition and use of the generated application resources.
[0177] Figure 7 A block diagram of an electronic device according to an exemplary embodiment of the present application is shown.
[0178] like Figure 7 As shown, the electronic device 600 is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0179] like Figure 7 As shown, the electronic device 600 is in the form of a general-purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), a display unit 640, etc. The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the methods described in this specification according to various exemplary embodiments of the present application. For example, the processing unit 610 may execute the following: Figure 3 The method shown in .
[0180] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .
[0181] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0182] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0183] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0184] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by combining software with necessary hardware. The technical solution according to the embodiment of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal or a network device, etc.) to execute the method according to the embodiment of the present application.
[0185] The software product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.
[0186] Computer readable storage media may include data signals propagated in baseband or as part of a carrier wave, wherein readable program codes are carried. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The readable storage medium may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, device, or device. The program codes contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination thereof.
[0187] Program code for performing the operations of the present application may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may 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 may be connected to an external computing device (e.g., via the Internet using an Internet service provider).
[0188] The computer-readable medium carries one or more programs. When the one or more programs are executed by a device, the computer-readable medium implements the aforementioned functions.
[0189] Those skilled in the art will appreciate that the above modules can be distributed in the device according to the description of the embodiment, or can be changed accordingly and only used in one or more devices different from the embodiment. The modules of the above embodiments can be combined into one module, or further divided into multiple sub-modules.
[0190] The embodiments of the present application are described in detail above, and the description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, changes or deformations made by those skilled in the art based on the idea of the present application, the specific implementation method and the scope of application of the present application, all belong to the scope of protection of the present application. In summary, the content of this specification should not be construed as limiting the present application.
Claims
1. A method for configuring application resources of a computer platform, applied to a platform end, characterized in that: include: Determine whether the current user can use application resources; In the case where the current user is able to use the application resources, generating a pre-deduction token for the current user; Based on the pre-deduction request initiated by the application end according to the pre-deduction token, generating an actual deduction token for the current user; In response to the application end generating an application resource corresponding to the actual deduction token, the application resource usage information of the current user is acquired and saved.
2. The method according to claim 1, characterized in that Before determining whether the current user can use the application resource, the method includes: Acquiring preset information of multiple users through the application end, wherein the preset information includes a resource usage capability tag, and the resource usage capability tag corresponds to the type and usage amount of application resources used by the user; and The application resource points of each of the multiple users are obtained.
3. The method according to claim 2, characterized in that Determine whether the current user can use application resources, including: Obtaining authorization information for the current user to use application resources; It is determined whether the current user can use the application resources according to the authorization information and the application resource points of the current user.
4. The method according to claim 3, characterized in that Determining whether the current user can use the application resource according to the authorization information and the application resource points of the current user includes: If the authorization of the current user to use the application resource is valid, determining that the current user can use the application resource; If the authorization of the current user to use the application resource is invalid and the current user has application resource points, determining that the current user can use the application resource; When the authorization of the current user to use the application resource is invalid and the current user does not have application resource points, it is determined that the current user cannot use the application resource.
5. The method according to claim 2, characterized in that: In the case that the current user can use the application resource, generating a pre-deduction token for the current user includes: Obtain resource request information of the current user; Query the preset information and application resource points corresponding to the current user through the resource request information; Sending query results to the current user; In response to the current user determining the query result, generating the pre-deduction token based on preset information and application resource points corresponding to the current user; The pre-deduction token is sent to the application end.
6. The method according to claim 1, characterized in that Based on the pre-deduction request initiated by the application end according to the pre-deduction token, generating the actual deduction token of the current user, including: Obtaining a pre-deduction request sent by the application end, wherein the pre-deduction request is initiated by the application end after determining that an application resource corresponding to the pre-deduction token can be generated; According to the pre-withholding request, verifying the pre-withholding token; After the pre-deduction token is verified, a deduction record of the application resource is generated; Determining the application resource points of the current user to be deducted according to the deduction record; and The actual deduction token is generated based on the pre-deduction token, and the actual deduction token is sent to the application end.
7. The method according to claim 1, characterized in that In response to the application end generating an application resource corresponding to the actual deduction token, obtaining and saving the application resource usage information of the current user, including: Obtaining a resource usage request sent by the application end, wherein the resource usage request is initiated by the application end after generating an application resource corresponding to the actual deduction token; Verifying the actual deduction token according to the resource usage request; After the actual deduction token is verified, a notification message is sent to the application end, so that the application end executes the use of the application resources corresponding to the actual deduction token; Acquire and save the application resource usage information of the current user sent by the application end; and According to the application resource usage information of the current user, the deduction record of the application resource is updated and a confirmation message is sent to the application end.
8. A method for configuring application resources of a computer platform, applied to an application end, characterized in that: include: In response to the platform determining that the current user can use the application resources, obtaining a pre-deduction token of the current user sent by the platform; Sending a pre-deduction request to the platform end according to the pre-deduction token to obtain the actual deduction token of the current user generated by the platform end according to the pre-deduction request; Generate application resources corresponding to the actual deduction token according to the actual deduction token; Send the application resource usage information of the current user to the platform end.
9. The method according to claim 8, characterized in that In response to the platform determining that the current user can use the application resource, before obtaining the pre-deduction token of the current user sent by the platform, the method includes: Register preset information of multiple users on the platform.
10. The method according to claim 8, characterized in that Sending the application resource usage information of the current user to the platform end includes: Sending a resource usage request corresponding to the actual deduction token to the platform end; After the platform verifies that the actual deduction token is passed, receiving the notification information sent by the platform and executing the use of the application resources corresponding to the actual deduction token; After the use of the application resources corresponding to the actual deduction token is completed, sending the application resource usage information of the current user to the platform end; Receive confirmation information sent by the platform after updating the deduction record of the application resource.
11. A device for configuring application resources of a computer platform, applied to a platform end, characterized in that: include: A first execution module, used to determine whether the current user can use the application resources; In the case where the current user is able to use the application resources, generating a pre-deduction token for the current user; A second execution module, configured to generate an actual deduction token for the current user based on a pre-deduction request initiated by the application end according to the pre-deduction token; The third execution module is used to obtain and save the application resource usage information of the current user in response to the application end generating the application resource corresponding to the actual deduction token.
12. A device for configuring application resources of a computer platform, applied to an application end, characterized in that: include: A fourth execution module, configured to obtain a pre-deduction token of the current user sent by the platform end in response to the platform end determining that the current user can use the application resources; A fifth execution module, configured to send a pre-deduction request to the platform end according to the pre-deduction token, so as to obtain an actual deduction token of the current user generated by the platform end according to the pre-deduction request; A sixth execution module, configured to generate application resources corresponding to the actual deduction token according to the actual deduction token; Send the application resource usage information of the current user to the platform end.
13. An electronic device, characterized in that: include: 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 implement the method according to any one of claims 1 to 10.
14. A computer-readable storage medium having a computer program or instruction stored thereon, characterized in that: When the computer program or instruction is executed by a processor, the method according to any one of claims 1 to 10 is implemented.
