CN112435063A - Resource processing method and device, electronic equipment and storage medium - Google Patents

Resource processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112435063A
CN112435063A CN202011356648.4A CN202011356648A CN112435063A CN 112435063 A CN112435063 A CN 112435063A CN 202011356648 A CN202011356648 A CN 202011356648A CN 112435063 A CN112435063 A CN 112435063A
Authority
CN
China
Prior art keywords
account
electronic resource
association
resource
electronic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011356648.4A
Other languages
Chinese (zh)
Inventor
邵帅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202011356648.4A priority Critical patent/CN112435063A/en
Publication of CN112435063A publication Critical patent/CN112435063A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0239Online discounts or incentives
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0236Incentive or reward received by requiring registration or ID from user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/20Servers specifically adapted for the distribution of content, e.g. VOD servers; Operations thereof
    • H04N21/21Server components or server architectures
    • H04N21/218Source of audio or video content, e.g. local disk arrays
    • H04N21/2187Live feed
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/475End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
    • H04N21/4751End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data for defining user accounts, e.g. accounts for children
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/47815Electronic shopping

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Physics & Mathematics (AREA)
  • Game Theory and Decision Science (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Child & Adolescent Psychology (AREA)
  • Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The disclosure relates to a resource processing method and device, electronic equipment and a storage medium, and relates to the technical field of live broadcast, so that the process of using electronic resources acquired through a live broadcast platform on a third-party platform is convenient. The embodiment of the present disclosure includes: under the condition that a first message that a first account is associated with a second account is received, whether the first account acquires a first electronic resource or not is determined, if the first account acquires the first electronic resource is inquired, the first electronic resource is associated with the second account, and the association state of the first electronic resource is updated to be a state indicating that the association is performed; and under the condition that a second message that the first account is associated with the second electronic resource is received, determining whether the first account is associated with the second account, if the first account is associated with the second account, associating the second electronic resource with the second account, and updating the association state of the second electronic resource to a state indicating that association is performed.

Description

Resource processing method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of live broadcast technologies, and in particular, to a resource processing method and apparatus, an electronic device, and a storage medium.
Background
With the rapid development of internet technology, live broadcasting has become an increasingly popular entertainment mode. To enhance the interactivity of the live broadcast, the electronic resource can be issued on the live broadcast platform, for example, a coupon can be issued in the process of the live broadcast. Electronic resources released at live platforms are typically used for third party platforms, e.g. for KTV usage, or for hotel usage, etc. At present, electronic resources acquired by a live broadcast platform cannot be directly used for a third-party platform, for example, in the process of using a KTV coupon acquired by the live broadcast platform, the KTV coupon needs to be displayed to a worker, and the worker manually inputs a coupon code of the KTV coupon into the third-party platform to confirm whether the KTV coupon is available.
Therefore, the process of using the electronic resource acquired by the live broadcast platform on the third-party platform is complicated.
Disclosure of Invention
The present disclosure provides a resource processing method, an apparatus, an electronic device, and a storage medium, so as to at least solve a problem in the related art that a process of using an electronic resource acquired by a live broadcast platform in a third party platform is complicated. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a resource processing method, the method including:
under the condition that a first message that a first account is associated with a second account is received, determining whether the first account acquires a first electronic resource, if the first account acquires the first electronic resource, associating the first electronic resource with the second account, and updating the association state of the first electronic resource to a state indicating that association is performed, wherein the first account is an account of a first application program, and the second account is an account of a second application program;
under the condition that a second message that the first account is associated with a second electronic resource is received, determining whether the first account is associated with a second account, if the first account is associated with the second account, associating the second electronic resource with the second account, and updating the association state of the second electronic resource to a state indicating that association is performed;
the first electronic resource is an electronic resource acquired by the first account before being associated with the second account, and the second electronic resource is an electronic resource acquired by the first account after being associated with the second account.
Optionally, the determining whether the first account has acquired the first electronic resource includes:
and inquiring the acquired resources of the first account in an electronic resource acquisition information table, and determining whether the first account acquires the first electronic resource, wherein the electronic resource acquisition information table is used for recording the acquired electronic resources of the first account.
Optionally, the determining whether the first account is associated with a second account includes:
and inquiring an account number associated with the first account number in an account number association information table, and determining whether the first account number is associated with a second account number, wherein the account number association information table is used for recording the account number of the second application program associated with the first account number.
Optionally, the status indicating that association has been performed includes a status indicating that association is successful or a status indicating that association is failed;
the updating the association status of the first electronic resource to a status indicating that association has been performed includes:
if the first electronic resource is successfully associated with the second account, updating the association state of the first electronic resource into a state representing successful association in a state record table;
if the association between the first electronic resource and the second account fails, updating the association state of the first electronic resource into a state representing association failure in the state record table;
the updating the association status of the second electronic resource to a status indicating that association has been performed includes:
if the second electronic resource is successfully associated with the second account, updating the association state of the second electronic resource into a state representing successful association in the state record table;
and if the association between the second electronic resource and the second account fails, updating the association state of the second electronic resource into a state representing the association failure in the state record table.
Optionally, the method further includes:
acquiring the electronic resource which represents the state of association failure in the state record table according to a preset time interval;
sending the electronic resource representing the status of association failure to the second application.
Optionally, the associating the first electronic resource with the second account includes:
calling a service interface of the second application program to associate the first electronic resource with the second account;
the associating the second electronic resource with the second account includes:
and calling a service interface of the second application program to associate the second electronic resource with the second account.
According to a second aspect of the embodiments of the present disclosure, there is provided a resource processing apparatus, including:
the first association module is configured to determine whether a first account acquires a first electronic resource or not under the condition that a first message that the first account is associated with a second account is received, associate the first electronic resource with the second account if the first account acquires the first electronic resource is inquired, and update the association state of the first electronic resource to a state that indicates that the association is performed, wherein the first account is an account of a first application program, and the second account is an account of a second application program;
the second association module is configured to determine whether the first account is associated with a second account or not under the condition that a second message that the first account is associated with a second electronic resource is received, associate the second electronic resource with the second account if the first account is associated with the second account, and update the association state of the second electronic resource to a state that indicates that association is performed;
the first electronic resource is an electronic resource acquired by the first account before being associated with the second account, and the second electronic resource is an electronic resource acquired by the first account after being associated with the second account.
Optionally, the first association module includes:
the first query unit is configured to perform query on resources acquired by the first account in an electronic resource acquisition information table, and determine whether the first account has acquired the first electronic resource, where the electronic resource acquisition information table is used to record the electronic resource acquired by the first account.
Optionally, the second association module includes:
the second query unit is configured to perform query on an account associated with the first account in an account associated information table, and determine whether the first account is associated with a second account, where the account associated information table is used to record an account of the second application program associated with the first account.
Optionally, the status indicating that association has been performed includes a status indicating that association is successful or a status indicating that association is failed;
the first association module comprises:
a first updating unit, configured to update, if the first electronic resource is successfully associated with the second account, the association status of the first electronic resource to a status indicating that the association is successful in a status record table;
a second updating unit, 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 comprises:
a third updating unit, configured to update the association status of the second electronic resource to a status indicating that association is successful in the status record table if the association between the second electronic resource and the second account is successful;
and the fourth updating unit is configured to update the association state of the second electronic resource to a state indicating association failure in the state record table if the association between the second electronic resource and the second account fails.
Optionally, the resource processing apparatus further includes:
the acquisition module is configured to execute the acquisition of the electronic resources which represent the state of association failure in the state record table according to a preset time interval;
a sending module configured to execute sending the electronic resource indicating the status of association failure to the second application.
Optionally, the first association module includes:
the first association unit is configured to execute calling of a service interface of the second application program to associate the first electronic resource with the second account;
the second association module comprises:
and the second association unit is configured to execute a service interface calling the second application program to associate the second electronic resource with the second account.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the resource handling method of the first aspect.
According to a fourth aspect of embodiments of the present disclosure, there is provided a storage medium, wherein instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the resource processing method according to the first aspect.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, wherein instructions of the computer program product, when executed by a processor of an electronic device, enable the electronic device to perform the resource processing method according to the first aspect.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: in the embodiment of the present disclosure, electronic resources acquired by the first account before being associated with the second account are associated with the second account, and electronic resources acquired by the first account after being associated with the second account are associated with the second account, where the second account is an account of a second application program, and the electronic resources associated with the second account may be directly used by the second account on the second application program. Therefore, in the process of using the electronic resource issued by the live broadcast platform, the operation of workers is not needed to confirm whether the electronic resource can be used on the third-party platform, and the electronic resource issued by the live broadcast platform can be automatically associated with the account number on the third-party platform, so that the process of using the electronic resource acquired by the live broadcast platform on the third-party platform is convenient.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a flow diagram illustrating a resource handling method in accordance with an exemplary embodiment.
FIG. 2 is a block diagram illustrating a resource processing apparatus according to an example embodiment.
FIG. 3 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a resource processing method according to an exemplary embodiment, which includes the following steps, as shown in fig. 1.
In step 101, under the condition that a first message that a first account and a second account are associated is received, it is determined whether the first account has acquired a first electronic resource, if it is found that the first account has acquired 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 indicate that the association has been performed, where the first account is an account of a first application program, and the second account is an account of a second application program.
The first electronic resource may include a red packet, a coupon, a reward amount, a discount coupon, or the like, which is not limited in this embodiment. Taking the first application program as a live broadcast platform, taking the second application program as a third-party platform as an example, the first account may be an account registered on the live broadcast platform, the user may register the first account on the live broadcast platform and log in the first account to use the service provided by the live broadcast platform, the third-party platform may be a KTV service platform, a hotel service platform, a catering service platform, or the like, and platforms 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 with the third party platform and log into the second account to use the services provided by the third party platform.
In addition, taking the first application program as a live broadcast platform and the second application program as a third party platform as an example, the first account is associated with the second account, and may be that an association relationship is established between the second account and the first account in a database of the live broadcast platform. The user can log in the first account on the live broadcast platform, and the first account is associated with the second account on the live broadcast platform, so that the association relation between the first account and the second account can be established in a database of the live broadcast platform. The associating the first electronic resource with the second account may be by invoking 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 can consume the electronic resource associated with the second account on a third-party platform.
It should be noted that, whether a second account associated with the first account of the live platform exists may be detected in real time, and after it is detected that the first account of the live platform is associated with the second account, the electronic resource acquired by the first account is associated with the second account. For example, a user may log in a first account on a live platform and associate the first account with a second account on the live platform, so that an association relationship between the first account and the second account may be established in a database of the live platform. And under the condition that the association relationship between the first account and the second account in the database is detected, associating the electronic resource acquired by the first account with the second account.
In step 102, under the condition that a second message that the first account is associated with a second electronic resource is received, determining whether the first account is associated with a second account, if it is found that the first account is 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 association has been performed;
the first electronic resource is an electronic resource acquired by the first account before being associated with the second account, and the second electronic resource is an electronic resource acquired by the first account after being associated with the second account.
In addition, the second electronic resource may include a red packet, a coupon, a reward amount, a discount coupon, or the like, which is not limited in this embodiment. The method comprises the steps that a first application program is used as a live broadcast platform, a second application program is used as a third-party platform for example, the third-party platform can cooperate with the live broadcast platform to distribute electronic resources on the live broadcast platform for promoting the service of the third-party platform by means of the live broadcast platform, and after a user logging in the first account number obtains the second electronic resources, the live broadcast platform associates the second electronic resources with the first account number. Exemplarily, the second electronic resource is a KTV coupon, the KTV coupon can be issued in a live broadcast process in a live broadcast room of the live broadcast platform, and after a user logging in the first account robs the KTV coupon in the live broadcast room, the live broadcast platform can associate the KTV coupon that the user robs with the first account.
It should be noted that, whether the electronic resource associated with the first account of the live broadcast platform has a new electronic resource may be detected in real time, and after detecting that the electronic resource associated with the first account of the live broadcast platform at the current time has a new electronic resource, the new electronic resource is associated with the second account. In an example, after a user logging in the first account acquires an electronic resource from the live broadcast platform, the live broadcast platform associates the acquired electronic resource with the first account, so that a newly added electronic resource exists in the electronic resource associated with the first account of the live broadcast platform in a database of the live broadcast platform. And under the condition that the newly added electronic resource is detected in the database, associating the newly added electronic resource with the second account.
As a specific implementation manner, the first application may be a live platform, and the second application may be a third party platform. When a first message that a first account is associated with a second account is received, acquiring an electronic resource associated with the first account of the live broadcast platform, and associating the associated electronic resource with the second account; the method can be used for acquiring the newly added electronic resource in the electronic resources related to the first account of the live broadcast platform under the condition that the newly added electronic resource is detected to exist in the electronic resources related to the first account of the live broadcast platform at the current moment, and associating the newly added electronic resource with the second account. Therefore, the electronic resources associated with the first account can be successfully associated with the second account without concerning the sequence of the operation of the associated electronic resources and the associated accounts.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects: in the embodiment of the present disclosure, electronic resources acquired by the first account before being associated with the second account are associated with the second account, and electronic resources acquired by the first account after being associated with the second account are associated with the second account, where the second account is an account of a second application program, and the electronic resources associated with the second account may be directly used by the second account on the second application program. Therefore, in the process of using the electronic resource issued by the live broadcast platform, the operation of workers is not needed to confirm whether the electronic resource can be used on the third-party platform, and the electronic resource issued by the live broadcast platform can be automatically associated with the account number on the third-party platform, so that the process of using the electronic resource acquired by the live broadcast platform on the third-party platform is convenient.
Optionally, the determining whether the first account has acquired the first electronic resource includes:
and inquiring the acquired resources of the first account in an electronic resource acquisition information table, and determining whether the first account acquires the first electronic resource, wherein the electronic resource acquisition information table is used for recording the acquired electronic resources of the first account.
Wherein the electronic resource acquisition information table may be stored in a database. The electronic resource acquisition information table may be further configured to trigger the second message when a newly added electronic resource exists in the electronic resource associated with the first account. Taking the first application program as a live broadcast platform and the second application program as a third-party platform as an example, the live broadcast platform may monitor a binary log of the electronic resource acquisition information table to detect whether the electronic resource associated with the first account of the live broadcast platform at the current time has a new electronic resource. The binlog records data of all database operations, can analyze the binlog of the electronic resource acquisition information table, acquires newly added electronic resources when the newly added electronic resources are added to the electronic resource acquisition information table, and associates the newly added electronic resources with the second account.
It should be noted that the HTTP interface provided by the third party platform may be called to associate the newly added electronic resource with the second account. Under the condition that the first association fails, the newly added electronic resource can be associated with the second account through repeated retries, so that the newly added electronic resource can be successfully associated with the second account as far as possible.
In this embodiment, the electronic resource associated with the first account of the first application program is recorded by the electronic resource acquisition information table, and whether a new electronic resource exists in the electronic resource associated with the first account at the current time can be quickly and accurately detected by the electronic resource acquisition information table, so that resource processing can be performed in time; after the first account and the second account are associated, the electronic resource acquired by the first account before the first account is associated with the second account can be quickly acquired through the electronic resource acquisition information table, so that the electronic resource acquired by the first account before the first account is associated with the second account can be bound with the second account.
Optionally, the determining whether the first account is associated with a second account includes:
and inquiring an account number associated with the first account number in an account number association information table, and determining whether the first account number is associated with a second account number, wherein the account number association information table is used for recording the account number of the second application program associated with the first account number.
The account association information table may be stored in a database. The account association information table may be further configured to trigger the first message when the first account is associated with the second account. Taking the first application program as a live broadcast platform and the second application program as a third-party platform as an example, the binlog of the account association information table can be monitored to detect whether a second account associated with the first account of the live broadcast platform exists, the binlog of the account association information table can be analyzed, 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 acquired, and the electronic resources acquired by the first account are associated with the second account.
In this embodiment, an account number associated with the first account number of the first application program is recorded through an account number associated information table, and whether a second account number associated with the first account number of the first application program exists can be quickly and accurately detected through the account number associated information table, so that resource processing can be performed in time; after the first account and the second electronic resource are associated, whether the first account is associated with the second account can be quickly inquired through the account association information table, so that the electronic resource acquired after the first account is associated with the second account can be associated with the second account.
Optionally, the status indicating that association has been performed includes a status indicating that association is successful or a status indicating that association is failed;
the updating the association status of the first electronic resource to a status indicating that association has been performed includes:
if the first electronic resource is successfully associated with the second account, updating the association state of the first electronic resource into a state representing successful association in a state record table;
if the association between the first electronic resource and the second account fails, updating the association state of the first electronic resource into a state representing association failure in the state record table;
the updating the association status of the second electronic resource to a status indicating that association has been performed includes:
if the second electronic resource is successfully associated with the second account, updating the association state of the second electronic resource into a state representing successful association in the state record table;
and if the association between the second electronic resource and the second account fails, updating the association state of the second electronic resource into a state representing the association failure in the state record table.
Taking the first application program as a live broadcast platform and the second application program as a third party platform as an example, the state record table may be stored in a database of the live broadcast platform, and may be used for calling an 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 message of successful association, the electronic resource is successfully associated with the second account; and if the HTTP interface provided by the third-party platform returns a message of association failure or no message is returned within a preset time length, the association between the electronic resource and the second account fails.
In the embodiment, the association state of the electronic resource is recorded through the state record table, and the user can clearly check the information of the success or failure of association of the electronic resource from the state record table, so that the user can conveniently check the association condition of the electronic resource, and can timely perform the next operation on the electronic resource according to the association condition of the current electronic resource, thereby avoiding the situation that the user does not know the association condition of the electronic resource in a way, causing the situation that the electronic resource failed to be used and wasted, and having better user experience.
Optionally, the method further includes:
acquiring the electronic resource which represents the state of association failure in the state record table according to a preset time interval;
sending the electronic resource representing the status of association failure to the second application.
The preset time interval may be 1 hour, 1 day, 1 month, or the like, which is not limited in this embodiment. Taking the first application program as a live broadcast platform and the second application program as a third-party platform as an example, after receiving the electronic resource representing the association failure state, the third-party platform may analyze the reason for the association failure of the electronic resource and may return the reason for the association failure of the electronic resource to the live broadcast platform. If the return message of the third-party platform represents that the electronic resource representing the association-failed state is successfully associated in the third-party platform, the state of the electronic resource can be updated to the state representing the association success in the state record table.
In this embodiment, the electronic resource representing the association failure state is sent to the second application program, so that the second application program can analyze the reason of the association failure of the electronic resource, perform subsequent processing on the electronic resource with the association failure, avoid the waste of the electronic resource caused by the placement of the electronic resource with the association failure, automatically process the electronic resource with the association failure without the participation of a user, have a high degree of intelligence, and facilitate the optimization of interaction with the second application program.
Optionally, the associating the first electronic resource with the second account includes:
calling a service interface of the second application program to associate the first electronic resource with the second account;
the associating the second electronic resource with the second account includes:
and calling a service interface of the second application program to associate the second electronic resource with the second account.
Wherein, the service interface may be an HTTP interface. Taking the first application program as a live broadcast platform and the second application program as a third party platform as an example, the HTTP interface provided by the third party platform may be called to associate the electronic resource associated with the first account with the second account. In the event of a failure to associate for the first time, a number of retries may be passed to associate the electronic resource associated with the first account with the second account.
In this embodiment, the electronic resource associated with the first account is associated with the second account by calling the service interface of the second application, so that labor waste caused by development of a new service interface can be avoided, the development cost can be reduced by calling the service interface of the second application, the development time can be saved, and the resource processing efficiency can be improved; and the electronic resource is applied to the second application program, and the success rate of associating the electronic resource associated with the first account with the second account can be improved by calling the service interface of the second application program to perform association operation on the electronic resource, so that the effect of resource processing can be improved.
FIG. 2 is a block diagram illustrating a resource processing apparatus according to an example embodiment. Referring to fig. 2, the apparatus includes:
a first association module 201, configured to determine whether a first account has acquired a first electronic resource when receiving a first message that the first account is associated with a second account, associate the first electronic resource with the second account if it is found that the first account has acquired the first electronic resource, and update an association status of the first electronic resource to a status indicating that the association has been performed, where the first account is an account of a first application program, and the second account is an account of a second application program;
a second association module 202, configured to determine whether the first account is associated with a second account when a second message that the first account is associated with a second electronic resource is received, associate the second electronic resource with the second account if it is found that the first account is associated with the second account, and update an 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 acquired by the first account before being associated with the second account, and the second electronic resource is an electronic resource acquired by the first account after being associated with the second account.
Optionally, the first association module includes:
the first query unit is configured to perform query on resources acquired by the first account in an electronic resource acquisition information table, and determine whether the first account has acquired the first electronic resource, where the electronic resource acquisition information table is used to record the electronic resource acquired by the first account.
Optionally, the second association module includes:
the second query unit is configured to perform query on an account associated with the first account in an account associated information table, and determine whether the first account is associated with a second account, where the account associated information table is used to record an account of the second application program associated with the first account.
Optionally, the status indicating that association has been performed includes a status indicating that association is successful or a status indicating that association is failed;
the first association module comprises:
a first updating unit, configured to update, if the first electronic resource is successfully associated with the second account, the association status of the first electronic resource to a status indicating that the association is successful in a status record table;
a second updating unit, 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 comprises:
a third updating unit, configured to update the association status of the second electronic resource to a status indicating that association is successful in the status record table if the association between the second electronic resource and the second account is successful;
and the fourth updating unit is configured to update the association state of the second electronic resource to a state indicating association failure in the state record table if the association between the second electronic resource and the second account fails.
Optionally, the resource processing apparatus further includes:
the acquisition module is configured to execute the acquisition of the electronic resources which represent the state of association failure in the state record table according to a preset time interval;
a sending module configured to execute sending the electronic resource indicating the status of association failure to the second application.
Optionally, the first association module includes:
the first association unit is configured to execute calling of a service interface of the second application program to associate the first electronic resource with the second account;
the second association module comprises:
and the second association unit is configured to execute a service interface calling the second application program to associate the second electronic resource with the second account.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 3 is a block diagram illustrating an electronic device in accordance with an example embodiment. Referring to fig. 3, the electronic device includes:
a processor 301;
a memory 302 for storing instructions executable by the processor 301;
wherein the processor 301 is configured to execute the instructions to implement the resource processing method for the electronic device in the above embodiments.
In an exemplary embodiment, a storage medium comprising instructions, such as a memory comprising instructions, executable by a processor of an electronic device to perform the above method is also provided. Alternatively, the storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
In an exemplary embodiment, a computer program product is also provided that includes one or more instructions executable by a processor of an electronic device to perform the method of resource handling described above.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements 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 (10)

1. A method for processing resources, the method comprising:
under the condition that a first message that a first account is associated with a second account is received, determining whether the first account acquires a first electronic resource, if the first account acquires the first electronic resource, associating the first electronic resource with the second account, and updating the association state of the first electronic resource to a state indicating that association is performed, wherein the first account is an account of a first application program, and the second account is an account of a second application program;
under the condition that a second message that the first account is associated with a second electronic resource is received, determining whether the first account is associated with a second account, if the first account is associated with the second account, associating the second electronic resource with the second account, and updating the association state of the second electronic resource to a state indicating that association is performed;
the first electronic resource is an electronic resource acquired by the first account before being associated with the second account, and the second electronic resource is an electronic resource acquired by the first account after being associated with the second account.
2. The resource processing method according to claim 1, wherein the determining whether the first account has acquired the first electronic resource comprises:
and inquiring the acquired resources of the first account in an electronic resource acquisition information table, and determining whether the first account acquires the first electronic resource, wherein the electronic resource acquisition information table is used for recording the acquired electronic resources of the first account.
3. The resource processing method of claim 1, wherein the determining whether the first account is associated with a second account comprises:
and inquiring an account number associated with the first account number in an account number association information table, and determining whether the first account number is associated with a second account number, wherein the account number association information table is used for recording the account number of the second application program associated with the first account number.
4. The resource processing method according to claim 1, wherein the status indicating that association has been performed includes a status indicating that association has succeeded or a status indicating that association has failed;
the updating the association status of the first electronic resource to a status indicating that association has been performed includes:
if the first electronic resource is successfully associated with the second account, updating the association state of the first electronic resource into a state representing successful association in a state record table;
if the association between the first electronic resource and the second account fails, updating the association state of the first electronic resource into a state representing association failure in the state record table;
the updating the association status of the second electronic resource to a status indicating that association has been performed includes:
if the second electronic resource is successfully associated with the second account, updating the association state of the second electronic resource into a state representing successful association in the state record table;
and if the association between the second electronic resource and the second account fails, updating the association state of the second electronic resource into a state representing the association failure in the state record table.
5. The resource handling method of claim 4, wherein the method further comprises:
acquiring the electronic resource which represents the state of association failure in the state record table according to a preset time interval;
sending the electronic resource representing the status of association failure to the second application.
6. The resource processing method according to claim 1, wherein the associating the first electronic resource with the second account includes:
calling a service interface of the second application program to associate the first electronic resource with the second account;
the associating the second electronic resource with the second account includes:
and calling a service interface of the second application program to associate the second electronic resource with the second account.
7. A resource processing apparatus, characterized in that the resource processing apparatus comprises:
the first association module is configured to determine whether a first account acquires a first electronic resource or not under the condition that a first message that the first account is associated with a second account is received, associate the first electronic resource with the second account if the first account acquires the first electronic resource is inquired, and update the association state of the first electronic resource to a state that indicates that the association is performed, wherein the first account is an account of a first application program, and the second account is an account of a second application program;
the second association module is configured to determine whether the first account is associated with a second account or not under the condition that a second message that the first account is associated with a second electronic resource is received, associate the second electronic resource with the second account if the first account is associated with the second account, and update the association state of the second electronic resource to a state that indicates that association is performed;
the first electronic resource is an electronic resource acquired by the first account before being associated with the second account, and the second electronic resource is an electronic resource acquired by the first account after being associated with the second account.
8. The apparatus according to claim 7, wherein the first associating module comprises:
the first query unit is configured to perform query on resources acquired by the first account in an electronic resource acquisition information table, and determine whether the first account has acquired the first electronic resource, where the electronic resource acquisition information table is used to record the electronic resource acquired by the first account.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the resource handling method of any of claims 1 to 6.
10. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the resource processing method of any one of claims 1 to 6.
CN202011356648.4A 2020-11-27 2020-11-27 Resource processing method and device, electronic equipment and storage medium Pending CN112435063A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011356648.4A CN112435063A (en) 2020-11-27 2020-11-27 Resource processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011356648.4A CN112435063A (en) 2020-11-27 2020-11-27 Resource processing method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112435063A true CN112435063A (en) 2021-03-02

Family

ID=74698060

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011356648.4A Pending CN112435063A (en) 2020-11-27 2020-11-27 Resource processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112435063A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022242411A1 (en) * 2021-05-21 2022-11-24 腾讯科技(深圳)有限公司 Virtual item distribution method and apparatus, device, medium and program product

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102655506A (en) * 2012-04-11 2012-09-05 北京百纳威尔科技有限公司 Resource sharing method and equipment
CN107277640A (en) * 2017-06-28 2017-10-20 北京赛鱼网络科技有限公司 Interactive approach, device and storage medium based on live platform
WO2019184135A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Application login method and apparatus, and computer device and storage medium
CN111538596A (en) * 2020-04-23 2020-08-14 北京字节跳动网络技术有限公司 Resource processing method and device, computer equipment and storage medium
CN111782391A (en) * 2020-06-29 2020-10-16 北京达佳互联信息技术有限公司 Resource allocation method, device, electronic equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102655506A (en) * 2012-04-11 2012-09-05 北京百纳威尔科技有限公司 Resource sharing method and equipment
CN107277640A (en) * 2017-06-28 2017-10-20 北京赛鱼网络科技有限公司 Interactive approach, device and storage medium based on live platform
WO2019184135A1 (en) * 2018-03-30 2019-10-03 平安科技(深圳)有限公司 Application login method and apparatus, and computer device and storage medium
CN111538596A (en) * 2020-04-23 2020-08-14 北京字节跳动网络技术有限公司 Resource processing method and device, computer equipment and storage medium
CN111782391A (en) * 2020-06-29 2020-10-16 北京达佳互联信息技术有限公司 Resource allocation method, device, electronic equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022242411A1 (en) * 2021-05-21 2022-11-24 腾讯科技(深圳)有限公司 Virtual item distribution method and apparatus, device, medium and program product

Similar Documents

Publication Publication Date Title
CN104301203B (en) A kind of information push method and equipment
CN111045952B (en) Software testing method, flow playback device, terminal equipment and readable storage medium
US10812314B2 (en) Methods and apparatuses for pushing a message
CN110290049B (en) Message pushing method, server and computer readable storage medium
CN109002457A (en) Downloading channel statistical processing methods, device and the electronic equipment of application program
CN105120299A (en) Video pushing method and video pushing device
CN111159031B (en) Method for automatically testing application mobile terminal, computer device and computer readable storage medium
CN112689155B (en) Virtual resource pushing method and device and server
CN106899682B (en) Method and platform for processing complaint reports based on call center
CN106056436B (en) Data rollback method, device and system
CN104683181A (en) Performance monitoring method, equipment and system
CN111506496A (en) Test data acquisition method and device, electronic equipment and storage medium
CN112435063A (en) Resource processing method and device, electronic equipment and storage medium
CN109409948B (en) Transaction abnormity detection method, device, equipment and computer readable storage medium
CN106682910B (en) Information processing method, system and related equipment
CN111008209B (en) Data reconciliation method, device and system, storage medium and electronic device
CN108833961A (en) Obtain method, server and the system of flight record data
CN108345508B (en) Interface call testing method and device
CN109922123B (en) Display method and display device for call relation between servers
CN115291942A (en) Application program processing method and device and computer readable storage medium
CN103745017A (en) Information capturing device and method
CN113923190A (en) Method and device for identifying equipment identification jump, server and storage medium
CN108449224B (en) Data acquisition method, device, equipment and storage medium
CN112199229A (en) Data processing method, device, equipment and storage medium
CN109348053B (en) Telephone number mark processing method, server, terminal device and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination