CN110287723B - Resource information determination method and device, electronic equipment and storage medium - Google Patents

Resource information determination method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN110287723B
CN110287723B CN201910426220.3A CN201910426220A CN110287723B CN 110287723 B CN110287723 B CN 110287723B CN 201910426220 A CN201910426220 A CN 201910426220A CN 110287723 B CN110287723 B CN 110287723B
Authority
CN
China
Prior art keywords
resource information
resource
information
identifier
corresponding relation
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.)
Active
Application number
CN201910426220.3A
Other languages
Chinese (zh)
Other versions
CN110287723A (en
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 CN201910426220.3A priority Critical patent/CN110287723B/en
Publication of CN110287723A publication Critical patent/CN110287723A/en
Application granted granted Critical
Publication of CN110287723B publication Critical patent/CN110287723B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • G06F21/6227Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database where protection concerns the structure of data, e.g. records, types, queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2141Access rights, e.g. capability lists, access control lists, access tables, access matrices

Abstract

The application relates to a resource information determination method, a resource information determination device, an electronic device and a storage medium, and relates to the technical field of data processing, wherein the method comprises the following steps: establishing a first corresponding relation between the resource package and the resource information; the resource package includes: at least one resource information; the resource packet has a resource packet identifier; the resource package identification is used for establishing a second corresponding relation with the user identity information; receiving resource information increase and decrease information; the resource information increase and decrease message includes: the resource packet identification and the resource information to be increased and decreased corresponding to the resource packet identification; updating the first corresponding relation according to the resource information increase and decrease information; and determining resource information corresponding to the user identity information based on the second corresponding relation and the updated first corresponding relation. In the application, under the condition that the resource information is increased or decreased, the second corresponding relation is kept unchanged, and only the first corresponding relation needs to be updated, so that the complexity is reduced, and the cost is reduced.

Description

Resource information determination method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a method and an apparatus for determining resource information, an electronic device, and a storage medium.
Background
At present, a resource providing platform can provide numerous resources such as pictures, music, videos and the like, and the resources greatly enrich the life of users.
Generally, a user purchases a resource, that is, a corresponding relationship between a resource identifier and user identity information is established, and various operations, such as watching, of the user on the resource are satisfied based on the corresponding relationship.
However, since the resource increase and decrease speed is fast, the user has a large change in purchasing resources, so that determining the resource information corresponding to the user identity information by the above method becomes more and more complex, and the cost remains high.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a method and an apparatus for determining resource information.
According to a first aspect of the embodiments of the present disclosure, there is provided a resource information determining method, the method including:
establishing a first corresponding relation between the resource package and the resource information; the resource package includes: at least one resource information; the resource packet has a resource packet identifier; the resource package identification is used for establishing a second corresponding relation with the user identity information;
receiving resource information increase and decrease information; the resource information increase and decrease message includes: the resource packet identification and the resource information to be increased and decreased corresponding to the resource packet identification;
updating the first corresponding relation according to the resource information increase and decrease information;
and determining resource information corresponding to the user identity information based on the second corresponding relation and the updated first corresponding relation.
Optionally, the resource packet includes: a permission; the right has a right identifier; the establishing of the first corresponding relationship between the resource package and the resource information includes:
establishing a first corresponding relation between the authority and the resource information;
the updating the first corresponding relationship according to the resource information increase and decrease message includes:
updating the first corresponding relation corresponding to the authority identification according to the resource information increase and decrease information;
the determining resource information corresponding to the user identity information based on the second corresponding relationship and the updated first corresponding relationship includes:
determining an authority identifier corresponding to the user identity information based on the second corresponding relation;
and determining resource information corresponding to the authority identification based on the updated first corresponding relation.
Optionally, the resource packet includes: role and authority; the role has a role identification; the right has a right identifier; the establishing of the first corresponding relationship between the resource package and the resource information includes:
establishing a third corresponding relation between the authority and the resource information;
establishing a fourth corresponding relation between the authority and the role;
combining the third corresponding relation and the fourth corresponding relation with the same authority identification to establish the first corresponding relation;
the resource packet identifier in the resource information increase/decrease message includes: role identification; the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message includes: the authority identification to be increased or decreased is corresponding to the role identification;
the updating the first corresponding relationship according to the resource information increase and decrease message includes:
updating a fourth corresponding relation corresponding to the role identification according to the resource information increase and decrease information;
combining the updated fourth corresponding relationship with the corresponding third corresponding relationship to update the first corresponding relationship;
the determining resource information corresponding to the user identity information based on the second corresponding relationship and the updated first corresponding relationship includes:
determining a role identifier corresponding to the user identity information based on the second corresponding relation;
determining an authority identifier corresponding to the role identifier based on the updated fourth corresponding relation;
and determining resource information corresponding to the authority identification based on the third corresponding relation.
Optionally, the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message further includes: the authority identification and the resource information to be increased and decreased corresponding to the authority identification;
the updating the first corresponding relationship according to the resource information increase and decrease message further includes:
and updating the third corresponding relation corresponding to the authority identifier according to the resource information increase and decrease information.
Optionally, after the establishing the first corresponding relationship between the resource package and the resource information, the method further includes:
acquiring application information of the resource information; the application information of the resource information comprises: the user identity information and the resource package identification;
and establishing a second corresponding relation between the resource package identification and the user identity information according to the application information of the resource information.
According to a second aspect of the embodiments of the present disclosure, there is provided a resource information determination apparatus, the apparatus including:
a first corresponding relation establishing module configured to establish a first corresponding relation between the resource package and the resource information; the resource package includes: at least one resource information; the resource packet has a resource packet identifier; the resource package identification is used for establishing a second corresponding relation with the user identity information;
a resource information increase/decrease message receiving module configured to receive a resource information increase/decrease message; the resource information increase and decrease message includes: the resource packet identification and the resource information to be increased and decreased corresponding to the resource packet identification;
a first corresponding relation updating module configured to update the first corresponding relation according to the resource information increase and decrease message;
a resource information determination module configured to determine resource information corresponding to the user identity information based on the second corresponding relationship and the updated first corresponding relationship.
Optionally, the resource packet includes: a permission; the right has a right identifier; the first correspondence relationship establishing module includes:
a first corresponding relationship first establishing unit configured to establish a first corresponding relationship between the authority and the resource information;
the first correspondence update module includes:
a first corresponding relation first updating unit, configured to update the first corresponding relation corresponding to the authority identifier according to the resource information increase and decrease message;
the resource information determination module includes:
the first permission identifier determining unit is configured to determine a permission identifier corresponding to the user identity information based on the second corresponding relation;
a resource information first determining unit configured to determine resource information corresponding to the authority identifier based on the updated first corresponding relationship.
Optionally, the resource packet includes: role and authority; the role has a role identification; the right has a right identifier; the first correspondence relationship establishing module includes:
a third corresponding relation establishing unit, configured to establish a third corresponding relation between the permission and the resource information;
a fourth corresponding relation establishing unit, configured to establish a fourth corresponding relation between the authority and the role;
a first correspondence relationship second establishing unit configured to combine the third correspondence relationship and the fourth correspondence relationship having the same authority identifier to establish the first correspondence relationship;
the resource packet identifier in the resource information increase/decrease message includes: role identification; the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message includes: the authority identification to be increased or decreased is corresponding to the role identification;
the first correspondence update module includes:
a fourth corresponding relation updating unit configured to update a fourth corresponding relation corresponding to the role identifier according to the resource information increase and decrease message;
a first correspondence relationship second updating unit configured to combine the updated fourth correspondence relationship and the corresponding third correspondence relationship to update the first correspondence relationship;
the resource information determination module includes:
a role identification determining unit configured to determine a role identification corresponding to the user identity information based on the second correspondence;
a second permission identifier determining unit configured to determine a permission identifier corresponding to the role identifier based on the updated fourth correspondence;
and the resource information second determining unit is configured to determine the resource information corresponding to the authority identifier based on the third corresponding relation.
Optionally, the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message further includes: the authority identification and the resource information to be increased and decreased corresponding to the authority identification;
the first corresponding relationship updating module further includes:
and the third corresponding relation updating unit is configured to update the third corresponding relation corresponding to the authority identifier according to the resource information increase and decrease message.
Optionally, the apparatus further includes:
an application information acquisition module configured to acquire application information of the resource information; the application information of the resource information comprises: the user identity information and the resource package identification;
and the second corresponding relation establishing module is configured to establish a second corresponding relation between the resource package identifier and the user identity information according to the application information of the resource information.
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 processor-executable instructions;
wherein the processor is configured to: the above-described resource information determination method is performed.
According to a fourth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the above-mentioned resource information determination method.
According to a fifth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein instructions, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the above-mentioned resource information determination method.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects:
establishing a first corresponding relation between the resource package and the resource information; the resource package includes: at least one resource information; the resource packet has a resource packet identifier; the resource package identification is used for establishing a second corresponding relation with the user identity information; receiving resource information increase and decrease information; the resource information increase and decrease message includes: the resource packet identification and the resource information to be increased and decreased corresponding to the resource packet identification; updating the first corresponding relation according to the resource information increase and decrease information; and determining resource information corresponding to the user identity information based on the second corresponding relation and the updated first corresponding relation. According to the resource information updating method and device, a first corresponding relation between the resource package and the resource information is established, meanwhile, a second corresponding relation between the resource package identification and the user identity information is established, under the condition that the resource information is increased or decreased, the first corresponding relation between the resource package and the resource information is only influenced, the second corresponding relation still remains unchanged, the first corresponding relation is only required to be updated according to the resource information increasing or decreasing information, the complexity of determining the resource information corresponding to the user identity information is further reduced to a great extent, and the cost is greatly reduced.
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 application and together with the description, serve to explain the principles of the application.
Fig. 1 is a flowchart illustrating a resource information determination method according to an example embodiment.
Fig. 2 is a system architecture diagram illustrating resource information determination according to an example embodiment.
Fig. 3 is a flow chart illustrating another resource information determination method according to an example embodiment.
FIG. 4 is a schematic diagram illustrating a first relationship, according to an example embodiment.
FIG. 5 is a schematic diagram illustrating an updated first relationship, according to an example embodiment.
Fig. 6 is a flowchart illustrating yet another resource information determination method according to an example embodiment.
Fig. 7 is a diagram illustrating establishing a third correspondence, according to an example embodiment.
Fig. 8 is a schematic diagram illustrating yet another method for establishing a first correspondence according to an example embodiment.
Fig. 9 is a diagram illustrating an update of a fourth correspondence according to an example embodiment.
Fig. 10 is a diagram illustrating an update of the fourth correspondence and the third correspondence according to an example embodiment.
Fig. 11 is a block diagram illustrating a resource information determination apparatus according to an example embodiment.
Fig. 12 is a block diagram illustrating another resource information determining apparatus according to an example embodiment.
Fig. 13 is a block diagram illustrating yet another resource information determination apparatus according to an example embodiment.
FIG. 14 is a block diagram illustrating an electronic device in accordance with an example embodiment.
FIG. 15 is a block diagram illustrating another electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a resource information determination method according to an exemplary embodiment, which may be applied to a server side, for example, the method may be applied to a resource information authentication server side. In the embodiments of the present application, this is not particularly limited.
As shown in fig. 1, the method for determining resource information may include the following steps:
in step S11, a first correspondence between the resource package and the resource information is established; the resource package includes: at least one resource information; the resource packet has a resource packet identifier; the resource package identification is used for establishing a second corresponding relation with the user identity information.
In this embodiment, the resource information may include: audio and video resource information, and the like. In the embodiments of the present application, this is not particularly limited. For example, the resource information may be a video played for a sporting event, or the like.
In this embodiment of the present application, optionally, the resource information may include: paid resource information, etc. In the embodiments of the present application, this is not particularly limited.
In this embodiment, the resource packet identifier may be identification information capable of distinguishing each resource packet. In the embodiments of the present application, this is not particularly limited.
In the embodiment of the present application, a first corresponding relationship between the resource package and the resource information may be established. The resource package may include: at least one resource information. The number of resource information in the resource packet may be a natural number equal to or greater than 1. In the embodiments of the present application, this is not particularly limited.
For example, if the resource information a, the resource information B, the resource information C, and the resource information D are included, the first correspondence relationship between the resource packet 1 and the resource information B and the resource information D may be established. The resource package 1 may have a resource package identification, and the resource package identification of the resource package 1 may be a 1. The resource packet 1 may include resource information B and resource information D.
In this embodiment of the present application, the resource package identifier is used to establish a second corresponding relationship with user identity information, and the user identity information may be identification information used to distinguish different user identities, and the like. In the embodiments of the present application, this is not particularly limited.
In the embodiment of the application, the user can purchase or bind the resource package identifier, and then the second corresponding relation between the resource package identifier and the user identity information is established.
For example, for the above example, if the user 11 purchases or binds the resource package identifier a1, the user identity information 11 establishes the second corresponding relationship with the resource package identifier a 1.
In step S12, a resource information increase/decrease message is received; the resource information increase and decrease message includes: and the resource packet identification and the information of the resources to be increased and decreased corresponding to the resource packet identification.
In the embodiment of the present application, the resource information is usually changed or increased or decreased in real time along with the time lapse or the occurrence of a corresponding event, and after the user purchases or binds the resource package identifier, the resource information in the resource package corresponding to the resource package identifier is also changed or increased or decreased in real time.
For example, if the user 11 purchases or binds the resource package identifier a1, the resource package identifier a1 corresponds to a sports season package, and the sports season package is domestic sports event audio/video resource information of the first season of 2018, in the first season, the resource information in the sports season package is also updated correspondingly as time goes on or a sports event is carried out. For example, if a domestic badminton sports event is carried out in 2018, 1, 3, the audio and video resource information of the domestic badminton sports event carried out in 2018, 1, 3 and later is required to be added in the season pack of the sports event in 2018, 1, 3 and later, so as to provide more real-time and more resource information for the user 11.
In this embodiment, the resource information increase/decrease message may include: and the resource packet identification and the resource information to be increased or decreased corresponding to the resource packet identification. That is, the resource information increase/decrease message may include a resource packet identifier to be updated, and resource information that needs to be increased or decreased corresponding to the resource packet identifier. The number of resource packet identifiers included in the resource increase/decrease information, the number of resource information to be increased/decreased corresponding to the resource packet identifier, and the like are not particularly limited.
For example, for the above example, if the resource E corresponds to the audio/video resource information of the badminton sports event in the field developed on 1/3/2018, the resource E corresponds to the audio/video resource information of the badminton sports event in the field. Then, the resource information increase/decrease message may include: the resource packet identifier a1, the resource packet identifier a1 corresponds to the resource information E to be added.
In the embodiment of the present application, the resource information increase/decrease message may be provided by a generator of the resource information. Further, the resource information increase/decrease message transmitted from the resource information generator can be received. Optionally, the resource information generating party may also be the same as the execution subject of the method, and the resource information increase and decrease message thereon may be acquired. In the embodiments of the present application, this is not particularly limited.
In step S13, the first correspondence is updated based on the resource information increase/decrease message.
In this embodiment, the first correspondence may be updated according to the resource information increase/decrease message.
For example, in the above example, the resource information increase/decrease message is: the resource packet identifier a1, the resource packet identifier a1 corresponds to the resource information E to be added. Before updating, the resource package 1 corresponding to the resource package identifier a1 contains 2 pieces of resource information, i.e., the resource information B and the resource information D. Then, the resource information E is added to the resource bundle 1 corresponding to the resource bundle id a1 by the resource information increase/decrease message. Then, after updating, the resource package 1 corresponding to the resource package identifier a1 includes: the resource information B, the resource information D, and the resource information E are updated from the original 2 resource information to 3 resource information. Then, the user 11 who purchased or bound the resource package identifier a1 updates the resource information B, the resource information D, and the resource information E from the resource information B and the resource information D that can be operated or viewed originally, and updates the resource information for the user in real time.
In the embodiment of the application, the increase or decrease of the resource information only affects the first corresponding relationship between the resource package and the resource information, but does not affect the second corresponding relationship between the user identity information and the resource package identifier, thereby ensuring that the second corresponding relationship is maintained unchanged. In the prior art, a corresponding relationship between resource information and user identity information is established, and if m users purchase or bind the resource package 1, in the prior art, the corresponding relationship between m users and the resource information needs to be updated, and if only 1 resource information is increased or decreased, the m corresponding relationships need to be updated, and the increased or decreased resource information corresponding to the user identity information can be determined subsequently, so that the resource information corresponding to the user identity information can be determined. Because the number of users is huge, and the resource information is increased and decreased quickly, the resource information corresponding to the users is determined to have large and complex calculation amount and high cost in the prior art. In the embodiment of the application, the resource information is increased or decreased by only updating the first corresponding relationship between the resource packet and the resource information, and if only 1 piece of resource information is increased or decreased, only 1 piece of corresponding relationship needs to be updated, so that the computation amount is reduced from the original linear level to the constant level, the resource information corresponding to the identity information of the user is greatly simplified, and the cost is greatly reduced.
For example, in the above example, the second corresponding relationship between the user identity information 11 and the resource package identifier a1 is not changed due to the addition of the resource information E, and only the first corresponding relationship between the resource package identifier a1 and the resource information needs to be changed, and only the first corresponding relationship between the resource package 1 and the resource information needs to be updated. In the prior art, for each user who has bought or bound the resource package 1, the corresponding relationship between the identity information of each user and each resource information in the resource package is maintained, that is, the corresponding relationship between the identity information of each user and the resource information B needs to be maintained, and the corresponding relationship between the identity information of each user and the resource information D needs to be maintained, and after the resource information E is added, the corresponding relationship between the identity information of each user and the resource information E needs to be added for each user who has bought or bound the resource package 1. Compared with the prior art, the method and the device have the advantages that the calculation amount is reduced from the original linear level to the constant level, the resource information corresponding to the identity information of the user is greatly simplified, and the cost is greatly reduced.
In step S14, resource information corresponding to the user identity information is determined based on the second corresponding relationship and the updated first corresponding relationship.
In this embodiment of the application, the resource information corresponding to the user identity information is determined based on the second corresponding relationship and the updated first corresponding relationship. Namely, the resource information corresponding to the user identity information is determined based on the original second corresponding relationship and the updated first corresponding relationship.
For example, for the above example, the updated first correspondence relationship is: the resource package 1 corresponding to the resource package identifier a1 includes: resource information B, resource information D, and resource information E. The second corresponding relation is as follows: the correspondence between the user identity information 11 and the resource package identity a 1. Then, the determined resource information corresponding to the user identity information 11 is: resource information B, resource information D, and resource information E.
In the embodiment of the present application, after the user purchases or binds the resource package identifier, the change is usually not performed for a long time, and therefore, the second corresponding relationship is stable. In the embodiment of the present invention, this is not particularly limited.
In the embodiment of the present application, optionally, the resource information generating party, the resource information selling or binding party may be synthesized in the resource information authentication server, that is, the resource information authentication server may generate the resource information and then sell or bind and authenticate the resource information. Alternatively, any one of the resource information generator, the resource information seller or the resource information binder may be combined in the resource information authentication server, which is not limited in this embodiment of the present invention.
In the embodiment of the present application, optionally, the resource information generating party, the resource information selling or binding party, and the resource information authentication server may also be independent respectively, and cooperate to complete the generation, selling or binding, authentication, and the like of the resource information. In the embodiment of the present invention, this is not particularly limited.
For example, referring to fig. 2, fig. 2 is a schematic diagram illustrating a system structure for determining resource information according to an exemplary embodiment, in fig. 2, a resource information generating party may be configured to generate resource information, and after the resource information is successfully generated, the resource information generating party may notify a resource information selling or binding party of the information that the resource information is successfully generated, and the resource information selling or binding party notifies a resource information authentication server to create a first corresponding relationship between a resource package and the resource information, and the resource information authentication server may send the information that the first corresponding relationship is successfully created to the resource information selling or binding party, and the resource information selling or binding party receives an application message of the resource information sent by a user, where the application information of the resource information may include: the resource information selling or binding party sends application information of the resource information comprising the user identity information and the resource package identifier purchased or bound by the user identity information to a resource information authentication server, and the resource information authentication server establishes a second corresponding relation between the user identity information and the resource package identifier. The resource information authentication server may determine the resource information corresponding to the user identity information based on the first corresponding relationship and the second corresponding relationship. After the resource information is increased or decreased, the resource information generator may send the resource information increase or decrease message to the authentication server, and the authentication server may update the first corresponding relationship, and then determine the resource information corresponding to the user identity information based on the second corresponding relationship and the updated first corresponding relationship. Or, the resource information generator sends the resource information to be increased or decreased to the resource information selling or binding party, and the resource information selling or binding party determines the resource package identifier corresponding to the resource information to be increased or decreased, and then the resource information selling or binding party may include: and sending the resource information increase and decrease information of the resource information to be increased and decreased corresponding to the resource packet identifier and the resource packet identifier to the authentication server. The authentication server may update the first corresponding relationship, and determine resource information corresponding to the user identity information based on the second corresponding relationship and the updated first corresponding relationship.
In this embodiment, optionally, the resource information authentication server may receive application information of the resource information of the user, where the application information of the resource information may include: the resource information authentication server can determine the resource information corresponding to the user identity information according to the user identity information so as to complete authentication. Or, after the authentication server establishes the second corresponding relationship, the resource information corresponding to the user identity information may be determined according to the user identity information.
In this embodiment of the application, optionally, after the step S11, the method may further include: acquiring application information of the resource information; the application information of the resource information comprises: the user identity information and the resource package identification; and establishing a second corresponding relation between the resource package identification and the user identity information according to the application information of the resource information.
Specifically, the application information of the resource information may include: the resource information application information can be used for representing the purchasing or binding relationship between the user and the resource package identification. After the application information of the resource information is acquired, a second corresponding relationship between the resource package identifier and the user identity information can be established according to the application information of the resource information.
For example, if the application information of the resource information is: the user identity information 11 and the resource package identifier a1 may indicate that the user of the user identity information 11 purchased or bound the resource information corresponding to the resource package identifier a 1. A second correspondence of the resource package identification a1 to the user identity information 11 may be established.
In the embodiment of the present application, optionally, if the resource information generating party, the resource information selling or binding party, and the resource information authentication server are independent, the resource information generating party, the resource information selling or binding party, and the resource information authentication server are completed in a matching manner. Referring to fig. 2, after selling or binding the resource information, the resource information selling or binding party may send the application information of the resource information to the resource information authentication server, and the resource information authentication server establishes a second corresponding relationship between the resource package identifier and the user identity information according to the application information of the resource information.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: establishing a first corresponding relation between the resource package and the resource information; the resource package includes: at least one resource information; the resource packet has a resource packet identifier; the resource package identification is used for establishing a second corresponding relation with the user identity information; receiving resource information increase and decrease information; the resource information increase and decrease message includes: the resource packet identification and the resource information to be increased and decreased corresponding to the resource packet identification; updating the first corresponding relation according to the resource information increase and decrease information; and determining resource information corresponding to the user identity information based on the second corresponding relation and the updated first corresponding relation. According to the resource information updating method and device, a first corresponding relation between the resource package and the resource information is established, meanwhile, a second corresponding relation between the resource package identification and the user identity information is established, under the condition that the resource information is increased or decreased, the first corresponding relation between the resource package and the resource information is only influenced, the second corresponding relation still remains unchanged, the first corresponding relation is only required to be updated according to the resource information increasing or decreasing information, the complexity of determining the resource information corresponding to the user identity information is further reduced to a great extent, and the cost is greatly reduced. Fig. 3 is a flowchart illustrating another resource information determining method according to an exemplary embodiment, where the resource information determining method may also be applied to a server side, and for the description of the server, reference may be made to the above related parts, so that details are not repeated here to avoid repetition.
As shown in fig. 3, the resource information determining method includes the following steps:
in step S31, the resource package includes: a permission; the right has a right identifier; establishing a first corresponding relation between the authority and the resource information; the resource package identification is used for establishing a second corresponding relation with the user identity information.
In the embodiment of the present application, the authority identifier may be identification information for distinguishing each authority. For example, the authority identifier may be a sports event audio/video authority identifier, a domestic movie authority identifier, a foreign movie authority identifier, or the like. A first correspondence may be established that each authority identification may be associated with respective resource information.
For example, referring to FIG. 4, FIG. 4 is a schematic diagram illustrating a first relationship according to an exemplary embodiment. If the resource information F, the resource information H, and the resource information N exist, a first corresponding relationship between the resource information F, the resource information H, and the authority identifier b1 may be established. In this embodiment of the present application, the resource package identifier is used to establish a second corresponding relationship with the user identity information, and the resource package identifier includes an authority identifier, so that the authority identifier may be used to establish the second corresponding relationship with the user identity information.
For example, referring to fig. 4, if the user 21 purchases or binds the authority identifier b1, the user identity information 21 establishes a second correspondence with the authority identifier b 1.
In step S32, a resource information increase/decrease message is received; the resource information increase and decrease message includes: and the resource packet identification and the information of the resources to be increased and decreased corresponding to the resource packet identification.
In an embodiment of the present application, the step S32 may refer to the step S12, and the resource packet identifier in the resource information increase/decrease message may be: the right identifier, the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information, may be: and the resource information to be increased and decreased corresponding to the authority identifier. In the embodiments of the present application, this is not particularly limited.
For example, the resource information increase/decrease message may be: the right identifier is b1, and the resource information to be added corresponding to the right identifier b1 is: and resource information R.
In step S33, the first corresponding relationship corresponding to the authority identifier is updated according to the resource information increase/decrease message.
In the embodiment of the present application, in step S33, reference may be made to the related description of step S13, and it should be noted that the first correspondence relationship corresponding to the authority identifier may be updated according to the resource information increase/decrease message.
For example, for the above example, the resource information increase/decrease message may be: the right identifier is b1, and the resource information to be added corresponding to the right identifier b1 is: and resource information R. Before updating, referring to fig. 4, the resource information corresponding to the authority identifier b1 is: resource information F and resource information H. According to the resource information increase and decrease message, the first corresponding relationship corresponding to the authority identifier b1 may be updated, as shown in fig. 5, fig. 5 is a schematic diagram illustrating an updated first relationship according to an exemplary embodiment. After updating, the resource information corresponding to the authority identifier b1 is: resource information F, resource information H, and resource information R.
In step S34, based on the second correspondence, an authority identifier corresponding to the user identity information is determined.
In an embodiment of the present application, the authority identifier corresponding to the user identity information may be determined based on the second correspondence.
For example, for the above example, referring to fig. 4 or fig. 5, if the user 21 purchases or binds the authority identifier b1, the user identity information 21 establishes the second correspondence with the authority identifier b 1. Then according to the second corresponding relationship, the determined authority identifier corresponding to the user identity information 21 is b 1.
In step S35, resource information corresponding to the authority identifier is determined based on the updated first corresponding relationship.
In this embodiment of the application, the resource information corresponding to the authority identifier may be determined based on the updated first corresponding relationship. Namely, the resource information corresponding to the authority identifier is determined according to the updated first corresponding relation.
For example, referring to fig. 5, in the above example, the authority identifier corresponding to the determined user identity information 21 is b1 according to the second correspondence. According to the updated first corresponding relation, determining that the resource information corresponding to the authority identifier b1 is: resource information F, resource information H, and resource information R. The resource information F, the resource information H, and the resource information R are the resource information corresponding to the user identity information 21.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the resource package includes: a permission; the right has a right identifier; establishing a first corresponding relation between the authority and the resource information; the resource package includes: at least one resource information; the resource packet has a resource packet identifier; the resource package identification is used for establishing a second corresponding relation with the user identity information; receiving resource information increase and decrease information; the resource information increase and decrease message includes: the resource packet identification and the resource information to be increased and decreased corresponding to the resource packet identification; updating the first corresponding relation corresponding to the authority identification according to the resource information increase and decrease information; determining an authority identifier corresponding to the user identity information based on the second corresponding relation; and determining resource information corresponding to the authority identification based on the updated first corresponding relation. According to the method and the device, the first corresponding relation between the resource information and the authority is established, meanwhile, the second corresponding relation between the authority identification and the user identity information is established, under the condition that the resource information is increased or decreased, only the first corresponding relation between the resource information and the authority is influenced, the second corresponding relation is still unchanged, the first corresponding relation is updated only according to the resource information increasing or decreasing information, the complexity of determining the resource information corresponding to the user identity information is reduced to a great extent, and the cost is greatly reduced.
Fig. 6 is a flowchart illustrating another resource information determining method according to an exemplary embodiment, where the resource information determining method may also be applied to a server side, and for the description of the server, reference may be made to the above related parts, so that details are not repeated here to avoid redundancy.
As shown in fig. 6, the resource information determining method includes the steps of:
in step S61, the resource package includes: role and authority; the role has a role identification; the right has a right identifier; establishing a third corresponding relation between the authority and the resource information; the resource package includes: at least one resource information.
In an embodiment of the present application, the role identifier may be identification information for distinguishing each role. The authority identifier may be identification information for distinguishing each authority. The role identifier may be an identifier corresponding to the permission packet. In the embodiments of the present application, this is not particularly limited.
For example, the role can be a VIP role, a normal role, and the like. As for the above example, the VIP role may be the identifier of the rights package corresponding to the rights identifier b1 and the rights identifier c 1.
In the embodiment of the present application, a third corresponding relationship between each right and each resource information may be established.
For example, referring to fig. 7, fig. 7 is a schematic diagram illustrating that a third corresponding relationship is established according to an exemplary embodiment, and if there are resource information a, resource information B, resource information C, resource information D, resource information F, resource information H, and resource information N, the third corresponding relationship between resource information F and resource information H and authority identifier B1 may be established. A third correspondence of resource information a and resource information C with the authority identification C1 may be established.
In step S62, a fourth correspondence between the authority and the role is established.
In this embodiment of the present application, a fourth corresponding relationship between the authority and the role may be established. In the fourth correspondence, 1 corner identifier may correspond to at least 1 authority identifier. That is, the role identifier may be an identifier corresponding to the permission packet.
For example, a fourth correspondence of the authority identifier c1, the authority identifier b1, and the VIP role identifier may be established for the above example. That is, the VIP role identifier may correspond to 2 authority identifiers, namely, authority identifier c1 and authority identifier b 1.
In step S63, the third corresponding relationship and the fourth corresponding relationship with the same authority identifier are combined to establish the first corresponding relationship.
In this embodiment of the application, the third corresponding relationship and the fourth corresponding relationship with the same authority identifier may be combined to establish the first corresponding relationship. That is, the third corresponding relationship and the fourth corresponding relationship may be combined with the authority identifier as a link to establish the first corresponding relationship.
For example, for the above example, a third correspondence relationship of the resource information a and the resource information C and the authority identification C1 may be established. A third correspondence relationship between the resource information F and the resource information H and the authority identification b1 may be established. A fourth correspondence of the authority identifier c1, the authority identifier b1 and the VIP role identifier may be established. Referring to fig. 8, fig. 8 is a schematic diagram illustrating that a first corresponding relationship is established according to an exemplary embodiment, then, combining a third corresponding relationship corresponding to the authority identifier c1 and a fourth corresponding relationship corresponding to the authority identifier c1, the obtained first relationship may include: the VIP role identifier can correspond to the authority identifier C1, and the authority identifier C1 can correspond to the resource information A and the resource information C; combining the third corresponding relationship corresponding to the authority identifier b1 and the fourth corresponding relationship corresponding to the authority identifier b1, the obtained first relationship may include: the VIP role identifier corresponds to the authority identifier b1, and the authority identifier b1 may correspond to the resource information F and the resource information H. Then, by combining the third corresponding relationship and the fourth corresponding relationship, the first corresponding relationship obtained by establishing may be: the VIP role identifier can correspond to the authority identifier C1, and the authority identifier C1 can correspond to the resource information A and the resource information C; the VIP role identifier may also correspond to a permission identifier b1, and a permission identifier b1 may correspond to resource information F and resource information H.
In step S64, a resource information increase/decrease message is received; the resource packet identifier in the resource information increase/decrease message includes: role identification; the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message includes: and the authority identifier to be increased or decreased is corresponding to the role identifier.
In the embodiment of the present application, the step S64 may refer to the step S12, where: the same role identifier can increase or decrease corresponding rights according to the change of time or the occurrence of corresponding events, and the like, thereby providing more real-time or more resource information for the user. The resource packet identifier in the resource information increase/decrease message may include: and identifying roles. The resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message may include an authority identifier to be increased or decreased corresponding to the role identifier.
For example, for the above example, if the VIP role identifier may correspond to the authority identifier c1 and the authority identifier b 1. If the received resource increase and decrease information is: the role identifier is a VIP role identifier, and the right identifier to be added corresponding to the VIP role identifier is a right identifier d 1.
In step S65, the fourth correspondence corresponding to the role identifier is updated according to the resource information increase/decrease message.
In this embodiment, the fourth corresponding relationship corresponding to the to-be-increased/decreased character identifier may be updated according to the resource information increase/decrease message.
For example, for the above example, referring to fig. 8, if the VIP role identifier may correspond to the authority identifier c1 and the authority identifier b 1. If the received resource increase and decrease information is: the role identifier is a VIP role identifier, and the right identifier to be added corresponding to the VIP role identifier is a right identifier d 1. Then, referring to fig. 9, fig. 9 is a schematic diagram illustrating an update of the fourth correspondence relationship according to an exemplary embodiment, after the update, the VIP role identifier may correspond to the right identifier c1, the right identifier b1, and the right identifier d 1.
In step S66, the updated fourth corresponding relationship and the corresponding third corresponding relationship are combined to update the first corresponding relationship.
In this embodiment of the application, the updated fourth corresponding relationship and the corresponding third corresponding relationship may be combined to update the first corresponding relationship.
For example, referring to fig. 9 for the above example, the updated fourth correspondence may be: the VIP role identifier may correspond to the authority identifier c1, the authority identifier b1, and the authority identifier d 1. If the resource information corresponding to the authority identifier d1 is: resource information N and resource information B, the authority identifier C1 may correspond to resource information a and resource information C, and the authority identifier B1 may correspond to resource information F and resource information H. Then, the updated first corresponding relationship may be: the VIP role identifier can correspond to the authority identifier C1, and the authority identifier C1 can correspond to the resource information A and the resource information C; the VIP role identifier can also correspond to a permission identifier b1, and the permission identifier b1 can correspond to resource information F and resource information H; the VIP role identifier may also correspond to a right identifier d1, and a right identifier d1 may correspond to resource information N and resource information B. Before updating, the VIP role identifier may obtain more resource information N and resource information B corresponding to the right identifier d 1.
In this embodiment of the application, optionally, the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message may further include: the authority identification and the resource information to be increased and decreased corresponding to the authority identification; the updating the first corresponding relationship according to the resource information increase and decrease message may further include: and updating the third corresponding relation corresponding to the authority identifier according to the resource information increase and decrease information.
Specifically, the resource information increase and decrease message includes: on the basis of the role identifier and the identifier of the right to be increased or decreased corresponding to the role identifier, the resource information increase or decrease message may further include: and the authority identifier and the resource information to be increased and decreased corresponding to the authority identifier. Furthermore, on the basis of updating the fourth corresponding relationship between the authority identifier and the role identifier, the third corresponding relationship between the resource package and the authority identifier can be further updated.
For example, referring to the above example, if the VIP role identifier may correspond to the authority identifier c1 and the authority identifier b 1. If the received resource increase and decrease information is: the role identifier is a VIP role identifier, the right identifier to be added corresponding to the VIP role identifier is a right identifier d1, the right identifier is c1, and the right identifier to be updated c1 corresponds to the added resource information S. Referring to fig. 10, fig. 10 is a schematic diagram illustrating an update of the fourth correspondence and the third correspondence according to an exemplary embodiment. Then, the updated first corresponding relationship may be: the VIP role identifier may correspond to the authority identifier C1, and the authority identifier C1 may correspond to the resource information a, the resource information C, and the resource information S; the VIP role identifier can also correspond to a permission identifier b1, and the permission identifier b1 can correspond to resource information F and resource information H; the VIP role identifier may also correspond to a right identifier d1, and a right identifier d1 may correspond to resource information N and resource information B.
In step S67, based on the second correspondence, a role identifier corresponding to the user identity information is determined.
In this embodiment of the present application, the resource package identifier is used to establish a second corresponding relationship with the user identity information, and the resource package identifier includes a role identifier, so that the role identifier may be used to establish the second corresponding relationship with the user identity information.
For example, for the above example, if the user 21 purchases or binds the VIP role identifier, the user identity information 21 establishes a second correspondence with the VIP role identifier.
In step S68, based on the updated fourth correspondence, an authority identifier corresponding to the role identifier is determined.
In this embodiment of the application, the authority identifier corresponding to the role identifier may be determined based on the updated fourth corresponding relationship.
For example, referring to fig. 9, for the above example, the updated fourth correspondence may be that the VIP role identifier may correspond to the right identifier c1, the right identifier b1, and the right identifier d 1. If the user 21 purchases or binds the VIP role identifier, referring to fig. 10, the VIP role identifier purchased or bound by the user identity information 21 is determined based on the updated fourth correspondence, and the corresponding right identifier may be: a permission identifier c1, a permission identifier b1 and a permission identifier d 1.
In the embodiment of the application, the rights and interests are increased or decreased, only the fourth corresponding relationship between the rights and interests and the role is affected, but the second corresponding relationship between the user identity information and the role identifier is not affected, so that the second corresponding relationship is maintained unchanged, and under the condition that the rights and interests or the rights and interests corresponding to the role identifier are increased or decreased, for example, in the rights and interests identifier corresponding to the VIP role identifier, 1 rights and interests identifier is added, if x users purchase or bind the VIP role identifier, the second corresponding relationship between the x user identity information and the role identifier does not need to be changed, only the fourth corresponding relationship between the VIP role and the rights and interests needs to be updated, the calculation amount is reduced from the original linear level to the constant level, the resource information corresponding to the user identity information is greatly simplified and determined, and the cost is greatly reduced.
In step S69, based on the third correspondence, resource information corresponding to the authority identifier is determined.
In this embodiment of the application, the resource information corresponding to the authority identifier may be determined based on the third corresponding relationship.
For example, for the above example, the VIP role identifier purchased or bound by the user identity information 21 corresponds to the right identifier: a permission identifier c1, a permission identifier b1 and a permission identifier d 1. Referring to fig. 10, according to the third correspondence, the authority identifier C1 may correspond to resource information a, resource information S, and resource information C; the authority identifier b1 may correspond to resource information F and resource information H; the authority identifier d1 may correspond to the resource information N and the resource information B, and then the determined resource information corresponding to the user identity information 21 may be: resource information a, resource information S, resource information C, resource information F, resource information H, resource information N, and resource information B.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: the resource package includes: role and authority; the role has a role identification; the right has a right identifier; establishing a third corresponding relation between the authority and the resource information; the resource package includes: at least one resource information; the resource packet has a resource packet identifier; the resource package identification is used for establishing a second corresponding relation with the user identity information; establishing a fourth corresponding relation between the authority and the role; combining the third corresponding relation and the fourth corresponding relation with the same authority identification to establish the first corresponding relation; the resource packet identifier in the resource information increase/decrease message includes: role identification; the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message includes: the authority identification to be increased or decreased is corresponding to the role identification; updating a fourth corresponding relation corresponding to the role identification according to the resource information increase and decrease information; combining the updated fourth corresponding relationship with the corresponding third corresponding relationship to update the first corresponding relationship; determining a role identifier corresponding to the user identity information based on the second corresponding relation; determining an authority identifier corresponding to the role identifier based on the updated fourth corresponding relation; and determining resource information corresponding to the authority identification based on the third corresponding relation. In the application, a third corresponding relation between the resource information and the authority is established, and a fourth corresponding relation between the authority and the role is established; combining a third corresponding relation and a fourth corresponding relation with the same authority identification to establish the first corresponding relation; meanwhile, a second corresponding relation is established between the role identification and the user identity information, and only the fourth corresponding relation and the first corresponding relation between the role and the authority are influenced under the condition that the right identification is increased or decreased, the second corresponding relation still remains unchanged, and the first corresponding relation is updated only according to the resource information increase or decrease information, so that the complexity of determining the resource information corresponding to the user identity information is reduced to a great extent, and the cost is greatly reduced.
Fig. 11 illustrates a resource information determining apparatus 400 according to an example embodiment, where the apparatus 400 may include:
a first corresponding relationship establishing module 401 configured to establish a first corresponding relationship between the resource package and the resource information; the resource package includes: at least one resource information; the resource packet has a resource packet identifier; the resource package identification is used for establishing a second corresponding relation with the user identity information;
a resource information increase/decrease message receiving module 402 configured to receive a resource information increase/decrease message; the resource information increase and decrease message includes: the resource packet identification and the resource information to be increased and decreased corresponding to the resource packet identification;
a first corresponding relationship updating module 403, configured to update the first corresponding relationship according to the resource information increase and decrease message;
a resource information determining module 404 configured to determine resource information corresponding to the user identity information based on the second corresponding relationship and the updated first corresponding relationship.
Optionally, on the basis of fig. 11, referring to fig. 12, the resource package includes: a permission; the right has a right identifier; the first correspondence relationship establishing module 401 may include:
a first correspondence relationship first establishing unit 4011 configured to establish a first correspondence relationship between the right and the resource information;
the first correspondence update module 403 may include:
a first corresponding relationship first updating unit 4031 configured to update the first corresponding relationship corresponding to the authority identifier according to the resource information increase/decrease message;
the resource information determining module 404 includes:
an authority identifier first determining unit 4041 configured to determine, based on the second correspondence, an authority identifier corresponding to the user identity information;
a resource information first determining unit 4042, configured to determine, based on the updated first corresponding relationship, resource information corresponding to the authority identifier.
Optionally, on the basis of fig. 11, referring to fig. 13, the resource package includes: role and authority; the role has a role identification; the right has a right identifier; the first correspondence relationship establishing module 401 may include:
a third corresponding relation establishing unit 4012, configured to establish a third corresponding relation between the permission and the resource information;
a fourth corresponding relation establishing unit 4013, configured to establish a fourth corresponding relation between the authority and the role;
a first correspondence relationship second establishing unit 4014 configured to combine the third correspondence relationship and the fourth correspondence relationship having the same authority identifier to establish the first correspondence relationship;
the resource packet identifier in the resource information increase/decrease message includes: role identification; the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message includes: the authority identification to be increased or decreased is corresponding to the role identification;
the first correspondence update module 403 may include:
a fourth mapping relation updating unit 4032 configured to update a fourth mapping relation corresponding to the role identifier according to the resource information increase/decrease message;
a first correspondence relationship second updating unit 4033 configured to combine the updated fourth correspondence relationship with the corresponding third correspondence relationship to update the first correspondence relationship;
the resource information determining module 404 may include:
a role identifier determining unit 4043, configured to determine, based on the second correspondence, a role identifier corresponding to the user identity information;
an authority identifier second determining unit 4044, configured to determine, based on the updated fourth correspondence, an authority identifier corresponding to the role identifier;
a resource information second determining unit 4045, configured to determine, based on the third correspondence, resource information corresponding to the authority identifier.
Optionally, the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message further includes: the authority identification and the resource information to be increased and decreased corresponding to the authority identification;
the first correspondence updating module 403 may further include:
and the third corresponding relation updating unit is configured to update the third corresponding relation corresponding to the authority identifier according to the resource information increase and decrease message.
Optionally, the apparatus may further include:
an application information acquisition module configured to acquire application information of the resource information; the application information of the resource information comprises: the user identity information and the resource package identification;
and the second corresponding relation establishing module is configured to establish a second corresponding relation between the resource package identifier and the user identity information according to the application information of the resource information.
Fig. 14 is a block diagram illustrating an electronic device 600 according to an example embodiment. For example, the electronic device 600 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 14, electronic device 600 may include one or more of the following components: a processing component 602, a memory 604, a power component 606, a multimedia component 608, an audio component 610, an interface to input/output (I/O) 612, a sensor component 614, and a communication component 616.
The processing component 602 generally controls overall operation of the electronic device 600, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 602 may include one or more processors 620 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 602 can include one or more modules that facilitate interaction between the processing component 602 and other components. For example, the processing component 602 can include a multimedia module to facilitate interaction between the multimedia component 608 and the processing component 602.
The memory 604 is configured to store various types of data to support operation at the device 600. Examples of such data include instructions for any application or method operating on the electronic device 600, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 604 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power supply component 606 provides power to the various components of electronic device 600. The power components 606 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 600.
The multimedia component 608 includes a screen that provides an output interface between the electronic device 600 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 608 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 600 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 610 is configured to output and/or input audio signals. For example, the audio component 610 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 600 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 604 or transmitted via the communication component 616. In some embodiments, audio component 610 further includes a speaker for outputting audio signals.
The I/O interface 612 provides an interface between the processing component 602 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor component 614 includes one or more sensors for providing status assessment of various aspects of the electronic device 600. For example, the sensor component 614 may detect an open/closed state of the device 600, the relative positioning of components, such as a display and keypad of the electronic device 600, the sensor component 614 may also detect a change in the position of the electronic device 600 or a component of the electronic device 600, the presence or absence of user contact with the electronic device 600, orientation or acceleration/deceleration of the electronic device 600, and a change in the temperature of the electronic device 600. The sensor assembly 614 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 614 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 614 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 616 is configured to facilitate communications between the electronic device 600 and other devices in a wired or wireless manner. The electronic device 600 may access a wireless network based on a communication standard, such as WiFi, a carrier network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 616 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 616 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on radio frequency identification (RF identification) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 600 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components, and is configured to perform the resource information determining method of fig. 1 to 10, and achieve the same technical effect, and therefore, the details are not repeated herein in order to avoid repetition.
In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 604 including instructions, which can be executed by the processor 620 of the apparatus 600 to complete the resource information determination method of fig. 1 to 10 and achieve the same technical effect, is also provided, and will not be described herein again to avoid repetition. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
FIG. 15 is a block diagram illustrating another electronic device 700, according to an example embodiment. For example, the electronic device 700 may be provided as a server. Referring to fig. 15, electronic device 700 includes a processing component 722 that further includes one or more processors, and memory resources, represented by memory 732, for storing instructions, such as applications, that are executable by processing component 722. The application programs stored in memory 732 may include one or more modules that each correspond to a set of instructions. In addition, the processing element 722 is configured to execute instructions to perform the resource information determining method of fig. 1 to 10, and can achieve the same technical effect, which is not described herein again to avoid repetition.
The electronic device 700 may also include a power component 726 that is configured to perform power management of the electronic device 700, a wired or wireless network interface 770 that is configured to connect the electronic device 700 to a network, and an input output (I/O) interface 758. The electronic device 700 may operate based on an operating system stored in memory 732, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, or the like.
According to an aspect of the embodiments of the present disclosure, a non-transitory computer-readable storage medium is provided, where instructions in the storage medium are executed by a processor of a mobile terminal, so that the mobile terminal can perform the resource information determining method in fig. 1 to 10, and can achieve the same technical effect, and the details are not repeated herein in order to avoid repetition.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application 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 application is limited only by the appended claims.

Claims (10)

1. A method for determining resource information, the method comprising:
establishing a first corresponding relation between the resource package and the resource information; the resource package includes: at least one resource information; the resource packet has a resource packet identifier; the resource package identification is used for establishing a second corresponding relation with the user identity information; wherein the resource package identification is purchased or bound by a user;
receiving resource information increase and decrease information; the resource information increase and decrease message includes: the resource packet identification and the resource information to be increased and decreased corresponding to the resource packet identification; wherein, the increase and decrease of the resource information does not affect the second corresponding relationship;
updating the first corresponding relation according to the resource information increase and decrease information;
and determining resource information corresponding to the user identity information based on the second corresponding relation and the updated first corresponding relation.
2. The method according to claim 1, wherein the resource packet comprises: a permission; the right has a right identifier; the establishing of the first corresponding relationship between the resource package and the resource information includes:
establishing a first corresponding relation between the authority and the resource information;
the updating the first corresponding relationship according to the resource information increase and decrease message includes:
updating the first corresponding relation corresponding to the authority identification according to the resource information increase and decrease information;
the determining resource information corresponding to the user identity information based on the second corresponding relationship and the updated first corresponding relationship includes:
determining an authority identifier corresponding to the user identity information based on the second corresponding relation;
and determining resource information corresponding to the authority identification based on the updated first corresponding relation.
3. The method according to claim 1, wherein the resource packet comprises: role and authority; the role has a role identification; the right has a right identifier; the establishing of the first corresponding relationship between the resource package and the resource information includes:
establishing a third corresponding relation between the authority and the resource information;
establishing a fourth corresponding relation between the authority and the role;
combining the third corresponding relation and the fourth corresponding relation with the same authority identification to establish the first corresponding relation;
the resource packet identifier in the resource information increase/decrease message includes: role identification; the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message includes: the authority identification to be increased or decreased is corresponding to the role identification;
the updating the first corresponding relationship according to the resource information increase and decrease message includes:
updating a fourth corresponding relation corresponding to the role identification according to the resource information increase and decrease information;
combining the updated fourth corresponding relationship with the corresponding third corresponding relationship to update the first corresponding relationship;
the determining resource information corresponding to the user identity information based on the second corresponding relationship and the updated first corresponding relationship includes:
determining a role identifier corresponding to the user identity information based on the second corresponding relation;
determining an authority identifier corresponding to the role identifier based on the updated fourth corresponding relation;
and determining resource information corresponding to the authority identification based on the third corresponding relation.
4. The method according to claim 3, wherein the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message further includes: the authority identification and the resource information to be increased and decreased corresponding to the authority identification;
the updating the first corresponding relationship according to the resource information increase and decrease message further includes:
and updating the third corresponding relation corresponding to the authority identifier according to the resource information increase and decrease information.
5. The method according to claim 1, wherein after establishing the first corresponding relationship between the resource package and the resource information, the method further comprises:
acquiring application information of the resource information; the application information of the resource information comprises: the user identity information and the resource package identification;
and establishing a second corresponding relation between the resource package identification and the user identity information according to the application information of the resource information.
6. An apparatus for determining resource information, the apparatus comprising:
a first corresponding relation establishing module configured to establish a first corresponding relation between the resource package and the resource information; the resource package includes: at least one resource information; the resource packet has a resource packet identifier; the resource package identification is used for establishing a second corresponding relation with the user identity information; wherein the resource package identification is purchased or bound by a user;
a resource information increase/decrease message receiving module configured to receive a resource information increase/decrease message; the resource information increase and decrease message includes: the resource packet identification and the resource information to be increased and decreased corresponding to the resource packet identification; wherein, the increase and decrease of the resource information does not affect the second corresponding relationship;
a first corresponding relation updating module configured to update the first corresponding relation according to the resource information increase and decrease message;
a resource information determination module configured to determine resource information corresponding to the user identity information based on the second corresponding relationship and the updated first corresponding relationship.
7. The apparatus according to claim 6, wherein the resource packet includes: a permission; the right has a right identifier; the first correspondence relationship establishing module includes:
a first corresponding relationship first establishing unit configured to establish a first corresponding relationship between the authority and the resource information;
the first correspondence update module includes:
a first corresponding relation first updating unit, configured to update the first corresponding relation corresponding to the authority identifier according to the resource information increase and decrease message;
the resource information determination module includes:
the first permission identifier determining unit is configured to determine a permission identifier corresponding to the user identity information based on the second corresponding relation;
a resource information first determining unit configured to determine resource information corresponding to the authority identifier based on the updated first corresponding relationship.
8. The apparatus according to claim 6, wherein the resource packet includes: role and authority; the role has a role identification; the right has a right identifier; the first correspondence relationship establishing module includes:
a third corresponding relation establishing unit, configured to establish a third corresponding relation between the permission and the resource information;
a fourth corresponding relation establishing unit, configured to establish a fourth corresponding relation between the authority and the role;
a first correspondence relationship second establishing unit configured to combine the third correspondence relationship and the fourth correspondence relationship having the same authority identifier to establish the first correspondence relationship;
the resource packet identifier in the resource information increase/decrease message includes: role identification; the resource information to be increased or decreased corresponding to the resource packet identifier in the resource information increase or decrease message includes: the authority identification to be increased or decreased is corresponding to the role identification;
the first correspondence update module includes:
a fourth corresponding relation updating unit configured to update a fourth corresponding relation corresponding to the role identifier according to the resource information increase and decrease message;
a first correspondence relationship second updating unit configured to combine the updated fourth correspondence relationship and the corresponding third correspondence relationship to update the first correspondence relationship;
the resource information determination module includes:
a role identification determining unit configured to determine a role identification corresponding to the user identity information based on the second correspondence;
a second permission identifier determining unit configured to determine a permission identifier corresponding to the role identifier based on the updated fourth correspondence;
and the resource information second determining unit is configured to determine the resource information corresponding to the authority identifier based on the third corresponding relation.
9. An electronic device, comprising:
a processor;
a first memory for storing processor-executable instructions;
wherein the processor is configured to perform the resource information determination method of any one of claims 1 to 5.
10. A non-transitory computer readable storage medium, instructions in which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform the resource information determination method of any one of claims 1 to 5.
CN201910426220.3A 2019-05-21 2019-05-21 Resource information determination method and device, electronic equipment and storage medium Active CN110287723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910426220.3A CN110287723B (en) 2019-05-21 2019-05-21 Resource information determination method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910426220.3A CN110287723B (en) 2019-05-21 2019-05-21 Resource information determination method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110287723A CN110287723A (en) 2019-09-27
CN110287723B true CN110287723B (en) 2020-11-24

Family

ID=68002508

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910426220.3A Active CN110287723B (en) 2019-05-21 2019-05-21 Resource information determination method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110287723B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500399A (en) * 2013-10-25 2014-01-08 乐视网信息技术(北京)股份有限公司 Method, device and system about smart television payment
CN106484772A (en) * 2016-09-09 2017-03-08 腾讯科技(深圳)有限公司 Footmark treating method and apparatus
CN108848420A (en) * 2018-08-09 2018-11-20 聚好看科技股份有限公司 A kind of VIP member's activating method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902402A (en) * 2010-07-21 2010-12-01 中兴通讯股份有限公司 Method for managing user right and device thereof
CN104484482B (en) * 2014-12-31 2018-02-16 广州东海网络科技有限公司 The info web update method and system of the network platform
CA2923823A1 (en) * 2015-03-17 2016-09-17 Conch&Media Ltd. Method and system for matching profile records
CN106612250A (en) * 2015-10-21 2017-05-03 腾讯科技(深圳)有限公司 Resource utilization authority judgment system and method
CN106372179B (en) * 2016-08-31 2020-04-03 上海爱数信息技术股份有限公司 Method and system for detecting document change and synchronization
CN107797817B (en) * 2017-03-13 2021-02-19 平安科技(深圳)有限公司 Application updating method and device
CN109286579A (en) * 2017-07-21 2019-01-29 中兴通讯股份有限公司 A kind of distribution method of user resources, device and computer readable storage medium
CN108763960A (en) * 2018-06-04 2018-11-06 北京奇虎科技有限公司 Access authorization for resource management method and device
CN108970117B (en) * 2018-06-29 2021-04-30 平安科技(深圳)有限公司 Game resource package issuing method, terminal device and medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103500399A (en) * 2013-10-25 2014-01-08 乐视网信息技术(北京)股份有限公司 Method, device and system about smart television payment
CN106484772A (en) * 2016-09-09 2017-03-08 腾讯科技(深圳)有限公司 Footmark treating method and apparatus
CN108848420A (en) * 2018-08-09 2018-11-20 聚好看科技股份有限公司 A kind of VIP member's activating method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
从会员拉新到会员福利,视频网站花式排播2019;剧研社;《URL:https://www.sohu.com/a/291930708_603083》;20190128;文档第1-7页 *

Also Published As

Publication number Publication date
CN110287723A (en) 2019-09-27

Similar Documents

Publication Publication Date Title
CN106941624B (en) Processing method and device for network video trial viewing
CN106162230A (en) The processing method of live information, device, Zhu Boduan, server and system
CN106911967B (en) Live broadcast playback method and device
CN109831690B (en) Method and device for displaying and sending barrage message, terminal and server
CN107994879B (en) Loudness control method and device
CN111045568B (en) Virtual article processing method, device, equipment and storage medium based on block chain
CN110597924B (en) Block chain-based user identification processing method, device, equipment and storage medium
CN110691268B (en) Message sending method, device, server, mobile terminal and storage medium
CN109697632A (en) Advertisement access method, device, equipment and storage medium
CN109618238B (en) Live network data processing method and device, electronic equipment and readable medium
CN107949037B (en) Network access method, device and system, and storage medium
CN108053241B (en) Data analysis method, device and computer readable storage medium
CN110769275B (en) Method, device and system for processing live data stream
CN106375803B (en) Processing method, processing unit and the processing system of live information
CN111246255B (en) Video recommendation method and device, storage medium, terminal and server
CN110690979B (en) Group message processing method, device, server, client and storage medium
CN110287723B (en) Resource information determination method and device, electronic equipment and storage medium
CN110769311A (en) Method, device and system for processing live data stream
CN109831538A (en) A kind of message treatment method, device, server, terminal and medium
CN106791925B (en) Video generation method and device
CN111654758B (en) Bullet screen display method, device, terminal and storage medium based on instant messaging
CN110113256B (en) Information interaction method and device, server, user terminal and readable storage medium
CN114666643A (en) Information display method and device, electronic equipment and storage medium
CN112685747B (en) Data processing method and device and data processing device
CN110740360B (en) Multimedia resource playing method and device

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
GR01 Patent grant
GR01 Patent grant