Resource processing method, device, electronic device and storage medium

After receiving the account association message on the live broadcast platform, the electronic resources obtained by the first account and the second account are automatically used to solve the tedious problems of the electronic resources obtained by the live broadcast platform on the third -party platform, which achieves convenient use of resource use.

CN112435063BActive Publication Date: 2025-01-24BEIJING DAJIA INTERNET INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202011356648.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-27
Publication Date
2025-01-24
Estimated Expiration
2040-11-27

AI Technical Summary

Technical Problem

The process of using electronic resources obtained using live broadcast platforms is relatively cumbersome on third-party platforms, and staff need to manually enter the coupon code to confirm whether the resources are available.

Method used

By receiving the message that the first account is associated with the second account, it is determined whether the first account has obtained the electronic resource, associated with the second account, and the association status is updated to achieve automatic association and use.

Benefits of technology

Simplified the use of electronic resources on a third -party platform, avoided manual operations, and improved the convenience and efficiency of use.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0002802752350000011
    Figure HDA0002802752350000011
  • Figure HDA0002802752350000012
    Figure HDA0002802752350000012
  • Figure HDA0002802752350000013
    Figure HDA0002802752350000013
Patent Text Reader

Abstract

The present disclosure is about a resource processing method, device, electronic device and storage medium, and relates to the field of live broadcast technology, so that the process of using electronic resources obtained through a live broadcast platform on a third-party platform is more convenient. The embodiment of the present disclosure includes: in the case of receiving a first message that a first account is associated with a second account, determining whether the first account has obtained the first electronic resource, if it is found that the first account has obtained the first electronic resource, the first electronic resource is associated with the second account, and the association status of the first electronic resource is updated to a state indicating that the association has been performed; in the case of receiving a second message that a first account is associated with a second electronic resource, determining whether the first account is associated with the second account, if it is found that the first account is associated with the second account, the second electronic resource is associated with the second account, and the association status of the second electronic resource is updated to a state indicating that the association has been performed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of live broadcast technology, and in particular to a resource processing method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of Internet technology, live streaming has become an increasingly popular form of leisure and entertainment. In order to enhance the interactivity of live streaming, electronic resources can be distributed on the live streaming platform. For example, coupons can be distributed during the live streaming process. Electronic resources distributed on the live streaming platform are usually used on third-party platforms, such as KTV, or hotels, etc. At present, electronic resources obtained on the live streaming platform cannot be directly used on third-party platforms. For example, when using the KTV coupons obtained on the live streaming platform, it is necessary to show the KTV coupons to the staff, and the staff will manually enter the coupon code of the KTV coupons into the third-party platform to confirm whether the KTV coupons are available.

[0003] Therefore, the process of using electronic resources obtained through live broadcast platforms on third-party platforms is rather cumbersome. Summary of the invention

[0004] The present disclosure provides a resource processing method, device, electronic device and storage medium to at least solve the problem in the related art that the process of using electronic resources obtained by the live broadcast platform on a third-party platform is relatively cumbersome. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a resource processing method is provided, the method comprising:

[0006] Upon receiving a first message for associating a first account with a second account, determining whether the first account has acquired a first electronic resource, and if it is found that the first account has acquired the first electronic resource, associating the first electronic resource with the second account, and updating the association status of the first electronic resource to a status indicating that the association has been performed, the first account being an account of a first application, and the second account being an account of a second application;

[0007] Upon receiving a second message that the first account is associated with a second electronic resource, determining whether the first account has been associated with the second account, and if it is found that the first account has been associated with the second account, associating the second electronic resource with the second account, and updating the association status of the second electronic resource to a status indicating that the association has been performed;

[0008] The first electronic resource is an electronic resource obtained by the first account before being associated with the second account, and the second electronic resource is an electronic resource obtained by the first account after being associated with the second account.

[0009] Optionally, determining whether the first account has obtained the first electronic resource includes:

[0010] The electronic resource acquisition information table is queried for resources acquired by the first account to determine whether the first account has acquired the first electronic resource. The electronic resource acquisition information table is used to record the electronic resources acquired by the first account.

[0011] Optionally, determining whether the first account is associated with the second account includes:

[0012] An account association information table is queried for an account associated with the first account to determine whether the first account has been associated with a second account, wherein the account association information table is used to record an account of the second application associated with the first account.

[0013] Optionally, the state indicating that the association has been performed includes a state indicating that the association is successful or a state indicating that the association has failed;

[0014] The updating of the association status of the first electronic resource to a status indicating that the association has been performed includes:

[0015] If the first electronic resource is successfully associated with the second account, updating the association status of the first electronic resource in the status record table to a status indicating successful association;

[0016] If the association between the first electronic resource and the second account fails, updating the association status of the first electronic resource in the status record table to a status indicating association failure;

[0017] The updating of the association status of the second electronic resource to a status indicating that the association has been performed includes:

[0018] If the second electronic resource is successfully associated with the second account, updating the association status of the second electronic resource in the status record table to a status indicating successful association;

[0019] If the association between the second electronic resource and the second account fails, the association status of the second electronic resource is updated in the status record table to a status indicating association failure.

[0020] Optionally, the method further includes:

[0021] Acquire electronic resources in the status record table indicating a failed association state at a preset time interval;

[0022] The electronic resource indicating the association failure status is sent to the second application.

[0023] Optionally, associating the first electronic resource with the second account includes:

[0024] Calling the business interface of the second application to associate the first electronic resource with the second account;

[0025] The associating the second electronic resource with the second account includes:

[0026] The business interface of the second application is called to associate the second electronic resource with the second account.

[0027] According to a second aspect of an embodiment of the present disclosure, a resource processing device is provided, the resource processing device comprising:

[0028] A first associating module is configured to, upon receiving a first message for associating a first account with a second account, determine whether the first account has acquired the first electronic resource, and if it is found that the first account has acquired the first electronic resource, associate the first electronic resource with the second account, and update the association status of the first electronic resource to a status indicating that the association has been performed, wherein the first account is an account of a first application, and the second account is an account of a second application;

[0029] A second associating module is configured to, upon receiving a second message associating the first account with a second electronic resource, determine whether the first account has been associated with the second account, and if it is found that the first account has been associated with the second account, associate the second electronic resource with the second account, and update the association status of the second electronic resource to a status indicating that the association has been performed;

[0030] The first electronic resource is an electronic resource obtained by the first account before being associated with the second account, and the second electronic resource is an electronic resource obtained by the first account after being associated with the second account.

[0031] Optionally, the first association module includes:

[0032] The first query unit is configured to query the resources acquired by the first account in the electronic resource acquisition information table to determine whether the first account has acquired the first electronic resource. The electronic resource acquisition information table is used to record the electronic resources acquired by the first account.

[0033] Optionally, the second association module includes:

[0034] The second query unit is configured to query the account associated with the first account in the account association information table to determine whether the first account is associated with the second account, and the account association information table is used to record the account of the second application associated with the first account.

[0035] Optionally, the state indicating that the association has been performed includes a state indicating that the association is successful or a state indicating that the association has failed;

[0036] The first association module includes:

[0037] A first updating unit is configured to update the association status of the first electronic resource to a status indicating successful association in a status record table if the association between the first electronic resource and the second account is successful;

[0038] A second updating unit is configured to update the association status of the first electronic resource to a status indicating association failure in the status record table if the association between the first electronic resource and the second account fails;

[0039] The second association module includes:

[0040] A third updating unit is configured to update the association status of the second electronic resource to a status indicating successful association in the status record table if the association between the second electronic resource and the second account is successful;

[0041] The fourth updating unit is configured to update the association status of the second electronic resource in the status record table to a status indicating association failure if the association between the second electronic resource and the second account fails.

[0042] Optionally, the resource processing device further includes:

[0043] An acquisition module is configured to acquire electronic resources in the state record table indicating an association failure at a preset time interval;

[0044] The sending module is configured to send the electronic resource indicating the association failure status to the second application.

[0045] Optionally, the first association module includes:

[0046] A first associating unit is configured to execute calling a business interface of the second application program to associate the first electronic resource with the second account;

[0047] The second association module includes:

[0048] The second associating unit is configured to execute calling the business interface of the second application to associate the second electronic resource with the second account.

[0049] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:

[0050] processor;

[0051] a memory for storing instructions executable by the processor;

[0052] The processor is configured to execute the instructions to implement the resource processing method as described in the first aspect.

[0053] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the resource processing method as described in the first aspect.

[0054] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided. When instructions in the computer program product are executed by a processor of an electronic device, the electronic device is enabled to execute the resource processing method as described in the first aspect.

[0055] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: since in the embodiments of the present disclosure, the electronic resources obtained by the first account before being associated with the second account are associated with the second account, and the electronic resources obtained by the first account after being associated with the second account are associated with the second account, and the second account is the account of the second application, the electronic resources associated with the second account can be directly used by the second account on the second application. Therefore, in the process of using the electronic resources issued by the live broadcast platform, there is no need for staff to operate to confirm whether the electronic resources can be used on the third-party platform. By automatically associating the electronic resources issued by the live broadcast platform with the account on the third-party platform, the process of using the electronic resources obtained through the live broadcast platform on the third-party platform is more convenient.

[0056] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0058] Figure 1 The present invention is a flowchart of a resource processing method according to an exemplary embodiment.

[0059] Figure 2 The diagram is a block diagram of a resource processing device according to an exemplary embodiment.

[0060] Figure 3 It is a block diagram of an electronic device according to an exemplary embodiment. DETAILED DESCRIPTION

[0061] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0062] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0063] Figure 1 is a flow chart of a resource processing method according to an exemplary embodiment. Figure 1 As shown, the resource processing method includes the following steps.

[0064] In step 101, upon receiving a first message associating a first account with a second account, determine whether the first account has acquired the first electronic resource. If it is found that the first account has acquired the first electronic resource, associate the first electronic resource with the second account, and update the association status of the first electronic resource to a status indicating that the association has been performed. The first account is the account of the first application, and the second account is the account of the second application.

[0065] Among them, the first electronic resource may include red envelopes, coupons, reward amounts or discount coupons, etc., which are not limited in this embodiment. Taking the first application as a live broadcast platform and the second application as a third-party platform as an example, the first account may be an account registered on the live broadcast platform, and the user may register the first account on the live broadcast platform and log in to the first account to use the services provided by the live broadcast platform. The third-party platform may be a KTV service platform, or a hotel service platform, or a catering service platform, etc. Any platform other than the live broadcast platform may be the third-party platform. The second account may be an account registered on the third-party platform. The user may register the second account on the third-party platform and log in to the second account to use the services provided by the third-party platform.

[0066] In addition, taking the case where the first application is a live broadcast platform and the second application is a third-party platform, the association between the first account and the second account may be to establish an association relationship between the second account and the first account in the database of the live broadcast platform. The user may log in to the first account on the live broadcast platform and associate the first account with the second account on the live broadcast platform, so that an association relationship between the first account and the second account may be established in the database of the live broadcast platform. The association between the first electronic resource and the second account may be to call an HTTP interface provided by the third-party platform to associate the first electronic resource with the second account. After the first electronic resource is successfully associated with the second account, the user may use the electronic resource associated with the second account for consumption on the third-party platform.

[0067] It should be noted that it is possible to detect in real time whether there is a second account associated with the first account of the live broadcast platform. After detecting that the first account of the live broadcast platform is associated with the second account, the electronic resources acquired by the first account are associated with the second account. For example, a user can log in to the first account on the live broadcast platform, and associate the first account with the second account on the live broadcast platform, so that an association relationship between the first account and the second account can be established in the database of the live broadcast platform. When it is detected that the first account and the second account have established an association relationship in the database, the electronic resources acquired by the first account are associated with the second account.

[0068] In step 102, upon receiving a second message that the first account is associated with a second electronic resource, determining whether the first account has been associated with the second account, and if it is found that the first account has been associated with the second account, associating the second electronic resource with the second account, and updating the association status of the second electronic resource to a status indicating that the association has been performed;

[0069] The first electronic resource is an electronic resource obtained by the first account before being associated with the second account, and the second electronic resource is an electronic resource obtained by the first account after being associated with the second account.

[0070] In addition, the second electronic resource may include red envelopes, coupons, reward amounts or discount coupons, etc., which are not limited in this embodiment. Taking the case where the first application is a live broadcast platform and the second application is a third-party platform, in order to promote the services of the third-party platform with the help of the live broadcast platform, the third-party platform can cooperate with the live broadcast platform to distribute electronic resources on the live broadcast platform. After the user who logs in to the first account obtains the second electronic resource on the live broadcast platform, the live broadcast platform associates the second electronic resource with the first account. For example, the second electronic resource is a KTV coupon. The live broadcast room of the live broadcast platform can distribute KTV coupons during the live broadcast. After the user who logs in to the first account grabs the KTV coupon in the live broadcast room, the live broadcast platform can associate the KTV coupon grabbed by the user with the first account.

[0071] It should be noted that it is possible to detect in real time whether there are newly added electronic resources in the electronic resources associated with the first account of the live broadcast platform. After detecting that there are newly added electronic resources in the electronic resources currently associated with the first account of the live broadcast platform, the newly added electronic resources are associated with the second account. For example, after the user who logs in to the first account obtains the electronic resources on the live broadcast platform, the live broadcast platform associates the obtained electronic resources with the first account, so that there are newly added electronic resources in the electronic resources associated with the first account of the live broadcast platform in the database of the live broadcast platform. When the newly added electronic resources are detected in the database, the newly added electronic resources are associated with the second account.

[0072] As a specific implementation, the first application may be a live broadcast platform, and the second application may be a third-party platform. When a first message is received that the first account is associated with the second account, the electronic resources associated with the first account of the live broadcast platform can be obtained, and the associated electronic resources can be associated with the second account; when it is detected that there are newly added electronic resources in the electronic resources associated with the first account of the live broadcast platform at the current moment, the newly added electronic resources in the electronic resources associated with the first account of the live broadcast platform can be obtained, and the newly added electronic resources can be associated with the second account. Therefore, there is no need to care about the order of operations of associating electronic resources and associating accounts, and the electronic resources associated with the first account can be successfully associated with the second account.

[0073] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: since in the embodiments of the present disclosure, the electronic resources obtained by the first account before being associated with the second account are associated with the second account, and the electronic resources obtained by the first account after being associated with the second account are associated with the second account, and the second account is the account of the second application, the electronic resources associated with the second account can be directly used by the second account on the second application. Therefore, in the process of using the electronic resources issued by the live broadcast platform, there is no need for staff to operate to confirm whether the electronic resources can be used on the third-party platform. By automatically associating the electronic resources issued by the live broadcast platform with the account on the third-party platform, the process of using the electronic resources obtained through the live broadcast platform on the third-party platform is more convenient.

[0074] Optionally, determining whether the first account has obtained the first electronic resource includes:

[0075] The electronic resource acquisition information table is queried for resources acquired by the first account to determine whether the first account has acquired the first electronic resource. The electronic resource acquisition information table is used to record the electronic resources acquired by the first account.

[0076] Among them, the electronic resource acquisition information table can be stored in a database. The electronic resource acquisition information table can also be used to trigger the second message when there are new electronic resources in the electronic resources associated with the first account. Taking the first application as a live broadcast platform and the second application as a third-party platform as an example, the live broadcast platform can monitor the binlog (binary log) of the electronic resource acquisition information table to detect whether there are new electronic resources in the electronic resources associated with the first account of the live broadcast platform at the current moment. The binlog records the data of all database operations, and the binlog of the electronic resource acquisition information table can be parsed. When a new electronic resource is added to the electronic resource acquisition information table, the new electronic resource is obtained and associated with the second account.

[0077] It should be noted that the HTTP interface provided by the third-party platform can be called to associate the newly added electronic resource with the second account. In the case of a first association failure, the newly added electronic resource can be associated with the second account after multiple retries, thereby ensuring that the newly added electronic resource is successfully associated with the second account as much as possible.

[0078] In this implementation, the electronic resources associated with the first account of the first application are recorded through the electronic resource acquisition information table, and the electronic resource acquisition information table can be used to quickly and accurately detect whether there are new electronic resources among the electronic resources associated with the first account at the current moment, so that resource processing can be performed in a timely manner; and after the first account and the second account are associated, the electronic resources acquired by the first account before being associated with the second account can be quickly acquired through the electronic resource acquisition information table, so that the electronic resources acquired by the first account before being associated with the second account can be bound to the second account.

[0079] Optionally, determining whether the first account is associated with the second account includes:

[0080] An account association information table is queried for an account associated with the first account to determine whether the first account has been associated with a second account, wherein the account association information table is used to record an account of the second application associated with the first account.

[0081] Among them, the account association information table can be stored in a database. The account association information table can also be used to trigger the first message when the first account is associated with the second account. Taking the first application as a live broadcast platform and the second application as a third-party platform as an example, the binlog of the account association information table can be monitored to detect whether there is a second account associated with the first account of the live broadcast platform, and the binlog of the account association information table can be parsed. When an operation of adding the second account associated with the first account to the account association information table is received, the electronic resources acquired by the first account of the live broadcast platform are obtained, and the electronic resources acquired by the first account are associated with the second account.

[0082] In this implementation, the account associated with the first account of the first application is recorded in the account association information table, and the account association information table can be used to quickly and accurately detect whether there is a second account associated with the first account of the first application, so that resource processing can be performed in a timely manner; and after the first account and the second electronic resource are associated, the account association information table can be used to quickly query whether the first account is associated with the second account, so that the electronic resources obtained by the first account after the first account is associated with the second account can be associated with the second account.

[0083] Optionally, the state indicating that the association has been performed includes a state indicating that the association is successful or a state indicating that the association has failed;

[0084] The updating of the association status of the first electronic resource to a status indicating that the association has been performed includes:

[0085] If the first electronic resource is successfully associated with the second account, updating the association status of the first electronic resource in the status record table to a status indicating successful association;

[0086] If the association between the first electronic resource and the second account fails, updating the association status of the first electronic resource in the status record table to a status indicating association failure;

[0087] The updating of the association status of the second electronic resource to a status indicating that the association has been performed includes:

[0088] If the second electronic resource is successfully associated with the second account, updating the association status of the second electronic resource in the status record table to a status indicating successful association;

[0089] If the association between the second electronic resource and the second account fails, the association status of the second electronic resource is updated in the status record table to a status indicating association failure.

[0090] In which, taking the first application as a live broadcast platform and the second application as a third-party platform as an example, the status record table can be stored in the database of the live broadcast platform, and can be a HTTP interface provided by the third-party platform to associate the electronic resource with the second account. If the HTTP interface provided by the third-party platform returns a successful association message, the electronic resource is successfully associated with the second account; if the HTTP interface provided by the third-party platform returns a failed association message or does not return a message within a preset time, the electronic resource fails to be associated with the second account.

[0091] In this implementation, the association status of the electronic resources is recorded in a status record table, and the user can clearly view the information of successful or failed association of the electronic resources from the status record table, which is convenient for the user to view the association status of the electronic resources, so that the user can perform the next step operation on the electronic resources in a timely manner according to the current association status of the electronic resources, avoiding the situation where the user has no way to know the association status of the electronic resources, resulting in the electronic resources that failed to be associated cannot be used and thus wasted, and the user experience is better.

[0092] Optionally, the method further includes:

[0093] Acquire electronic resources in the status record table indicating a failed association state at a preset time interval;

[0094] The electronic resource indicating the association failure status is sent to the second application.

[0095] The preset time interval may be 1 hour, 1 day, 1 month, etc., which is not limited in this embodiment. Taking the case where the first application is a live broadcast platform and the second application is a third-party platform as an example, after the third-party platform receives the electronic resource indicating the state of association failure, it can analyze the reason for the failure of electronic resource association and return the reason for the failure of electronic resource association to the live broadcast platform. If the return message of the third-party platform indicates that the electronic resource indicating the state of association failure has been successfully associated on the third-party platform, the state of the electronic resource can be updated in the state record table to indicate a successful association state.

[0096] In this implementation, the electronic resource indicating the association failure status is sent to the second application, so that the second application can analyze the reasons for the electronic resource association failure and perform subsequent processing on the electronic resource that failed to associate, thereby avoiding the electronic resource that failed to associate being placed and causing waste of electronic resources. The electronic resource that failed to associate can be automatically processed without user participation, has a high degree of intelligence, and can be conducive to the optimization of interaction with the second application.

[0097] Optionally, associating the first electronic resource with the second account includes:

[0098] Calling the business interface of the second application to associate the first electronic resource with the second account;

[0099] The associating the second electronic resource with the second account includes:

[0100] The business interface of the second application is called to associate the second electronic resource with the second account.

[0101] The business interface may be an HTTP interface. For example, if the first application is a live broadcast platform and the second application is a third-party platform, the HTTP interface provided by the third-party platform may be called to associate the electronic resources associated with the first account with the second account. If the first association fails, the electronic resources associated with the first account may be associated with the second account after multiple retries.

[0102] In this implementation, by calling the business interface of the second application to associate the electronic resources associated with the first account with the second account, it is possible to avoid waste of manpower caused by developing new business interfaces. By calling the business interface of the second application, the development cost can be reduced, the development time can be saved, and the efficiency of resource processing can be improved. In addition, the electronic resources are electronic resources applied to the second application. Calling the business interface of the second application to associate the electronic resources can increase the success rate of associating the electronic resources associated with the first account with the second account, thereby improving the effect of resource processing.

[0103] Figure 2 is a block diagram of a resource processing device according to an exemplary embodiment. Figure 2 , the device comprises:

[0104] The first association module 201 is configured to, upon receiving a first message for associating a first account with a second account, determine whether the first account has acquired the first electronic resource, and if it is found that the first account has acquired the first electronic resource, associate the first electronic resource with the second account, and update the association status of the first electronic resource to a status indicating that the association has been performed, wherein the first account is an account of a first application, and the second account is an account of a second application;

[0105] The second associating module 202 is configured to, upon receiving a second message associating the first account with the second electronic resource, determine whether the first account has been associated with the second account, and if it is found that the first account has been associated with the second account, associate the second electronic resource with the second account, and update the association status of the second electronic resource to a status indicating that the association has been performed;

[0106] The first electronic resource is an electronic resource obtained by the first account before being associated with the second account, and the second electronic resource is an electronic resource obtained by the first account after being associated with the second account.

[0107] Optionally, the first association module includes:

[0108] The first query unit is configured to query the resources acquired by the first account in the electronic resource acquisition information table to determine whether the first account has acquired the first electronic resource. The electronic resource acquisition information table is used to record the electronic resources acquired by the first account.

[0109] Optionally, the second association module includes:

[0110] The second query unit is configured to query the account associated with the first account in the account association information table to determine whether the first account is associated with the second account, and the account association information table is used to record the account of the second application associated with the first account.

[0111] Optionally, the state indicating that the association has been performed includes a state indicating that the association is successful or a state indicating that the association has failed;

[0112] The first association module includes:

[0113] A first updating unit is configured to update the association status of the first electronic resource to a status indicating successful association in a status record table if the association between the first electronic resource and the second account is successful;

[0114] A second updating unit is configured to update the association status of the first electronic resource to a status indicating association failure in the status record table if the association between the first electronic resource and the second account fails;

[0115] The second association module includes:

[0116] A third updating unit is configured to update the association status of the second electronic resource to a status indicating successful association in the status record table if the association between the second electronic resource and the second account is successful;

[0117] The fourth updating unit is configured to update the association status of the second electronic resource in the status record table to a status indicating association failure if the association between the second electronic resource and the second account fails.

[0118] Optionally, the resource processing device further includes:

[0119] An acquisition module is configured to acquire electronic resources in the state record table indicating an association failure at a preset time interval;

[0120] The sending module is configured to send the electronic resource indicating the association failure status to the second application.

[0121] Optionally, the first association module includes:

[0122] A first associating unit is configured to execute calling a business interface of the second application program to associate the first electronic resource with the second account;

[0123] The second association module includes:

[0124] The second associating unit is configured to execute calling the business interface of the second application to associate the second electronic resource with the second account.

[0125] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0126] Figure 3 is a block diagram of an electronic device according to an exemplary embodiment. Figure 3 , electronic equipment includes:

[0127] Processor 301;

[0128] A memory 302 for storing instructions executable by the processor 301;

[0129] The processor 301 is configured to execute the instructions to implement the resource processing method for the electronic device in the above embodiment.

[0130] In an exemplary embodiment, a storage medium including instructions is also provided, such as a memory including instructions, and the instructions can be executed by a processor of an electronic device to complete the above method. Optionally, the storage medium can be a non-transitory computer-readable storage medium, for example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0131] In an exemplary embodiment, a computer program product is also provided, including one or more instructions, and the one or more instructions can be executed by a processor of an electronic device to complete the above resource processing method.

[0132] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0133] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A resource processing method, characterized in that: The method comprises: detecting in real time whether there is a second account associated with the first account, and determining whether the first account has acquired the first electronic resource when receiving a first message that the first account is associated with the second account, and if it is found that the first account has acquired the first electronic resource, associating the first electronic resource with the second account, and updating the association status of the first electronic resource to a status indicating that the association has been performed, the first account is an account of a first application, and the second account is an account of a second application; detecting in real time whether there are any newly added electronic resources in the electronic resources associated with the first account, and determining whether the first account has been associated with the second account upon receiving a second message that the first account is associated with a second electronic resource, and if it is found that the first account has been associated with the second account, associating the second electronic resource with the second account, and updating the association status of the second electronic resource to a status indicating that the association has been performed; The first electronic resource is an electronic resource obtained by the first account before being associated with the second account, and the second electronic resource is an electronic resource obtained by the first account after being associated with the second account; The state indicating that the association has been performed includes a state indicating that the association is successful or a state indicating that the association has failed; The updating of the association status of the first electronic resource to a status indicating that the association has been performed includes: If the first electronic resource is successfully associated with the second account, updating the association status of the first electronic resource in the status record table to a status indicating successful association; If the association between the first electronic resource and the second account fails, updating the association status of the first electronic resource in the status record table to a status indicating association failure; The updating of the association status of the second electronic resource to a status indicating that the association has been performed includes: If the second electronic resource is successfully associated with the second account, updating the association status of the second electronic resource in the status record table to a status indicating successful association; If the association between the second electronic resource and the second account fails, updating the association status of the second electronic resource in the status record table to a status indicating association failure; Acquire electronic resources in the status record table indicating a failed association state at a preset time interval; The electronic resource indicating the association failure status is sent to the second application.

2. The resource processing method according to claim 1, characterized in that: The determining whether the first account has obtained the first electronic resource includes: The electronic resource acquisition information table is queried for resources acquired by the first account to determine whether the first account has acquired the first electronic resource. The electronic resource acquisition information table is used to record the electronic resources acquired by the first account.

3. The resource processing method according to claim 1, characterized in that: The determining whether the first account has been associated with the second account includes: An account association information table is queried for an account associated with the first account to determine whether the first account has been associated with a second account, wherein the account association information table is used to record an account of the second application associated with the first account.

4. The resource processing method according to claim 1, characterized in that: The associating the first electronic resource with the second account includes: Calling the business interface of the second application to associate the first electronic resource with the second account; The associating the second electronic resource with the second account includes: The business interface of the second application is called to associate the second electronic resource with the second account.

5. A resource processing device, characterized in that: The resource processing device comprises: A first association module is configured to perform real-time detection of whether there is a second account associated with the first account, and upon receiving a first message that the first account is associated with the second account, determine whether the first account has acquired the first electronic resource, and if it is found that the first account has acquired the first electronic resource, associate the first electronic resource with the second account, and update the association status of the first electronic resource to a status indicating that the association has been performed, wherein the first account is an account of a first application, and the second account is an account of a second application; A second association module is configured to perform real-time detection of whether there are any newly added electronic resources in the electronic resources associated with the first account, and upon receiving a second message of association between the first account and the second electronic resource, determine whether the first account has been associated with the second account, and if it is found that the first account has been associated with the second account, associate the second electronic resource with the second account, and update the association status of the second electronic resource to a status indicating that the association has been performed; The first electronic resource is an electronic resource obtained by the first account before being associated with the second account, and the second electronic resource is an electronic resource obtained by the first account after being associated with the second account; The state indicating that the association has been performed includes a state indicating that the association is successful or a state indicating that the association has failed; The first association module includes: A first updating unit is configured to update the association status of the first electronic resource to a status indicating successful association in a status record table if the association between the first electronic resource and the second account is successful; A second updating unit is configured to update the association status of the first electronic resource to a status indicating association failure in the status record table if the association between the first electronic resource and the second account fails; The second association module includes: A third updating unit is configured to update the association status of the second electronic resource to a status indicating successful association in the status record table if the association between the second electronic resource and the second account is successful; A fourth updating unit is configured to update the association status of the second electronic resource to a status indicating association failure in the status record table if the association between the second electronic resource and the second account fails; The resource processing device also includes: An acquisition module is configured to acquire electronic resources in the state record table indicating an association failure at a preset time interval; The sending module is configured to send the electronic resource indicating the association failure status to the second application.

6. The resource processing device according to claim 5, characterized in that: The first association module includes: The first query unit is configured to query the resources acquired by the first account in the electronic resource acquisition information table to determine whether the first account has acquired the first electronic resource. The electronic resource acquisition information table is used to record the electronic resources acquired by the first account.

7. The resource processing device according to claim 5, characterized in that: The second association module includes: The second query unit is configured to query the account associated with the first account in the account association information table to determine whether the first account is associated with the second account, and the account association information table is used to record the account of the second application associated with the first account.

8. The resource processing device according to claim 7, characterized in that: The first association module includes: A first associating unit is configured to execute calling a business interface of the second application program to associate the first electronic resource with the second account; The second association module includes: The second associating unit is configured to execute calling the business interface of the second application to associate the second electronic resource with the second account.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the resource processing method according to any one of claims 1 to 4.

10. A storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the resource processing method as claimed in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Resource sharing method and equipment

    CN102655506A

  • Resource processing method and device, computer equipment and storage medium

    CN111538596A