CN104618217B - Share method, terminal, server and the system of resource - Google Patents

Share method, terminal, server and the system of resource Download PDF

Info

Publication number
CN104618217B
CN104618217B CN201410111494.0A CN201410111494A CN104618217B CN 104618217 B CN104618217 B CN 104618217B CN 201410111494 A CN201410111494 A CN 201410111494A CN 104618217 B CN104618217 B CN 104618217B
Authority
CN
China
Prior art keywords
resource
user
information
sharing
according
Prior art date
Application number
CN201410111494.0A
Other languages
Chinese (zh)
Other versions
CN104618217A (en
Inventor
徐帅
林俊安
林文焕
李大江
Original Assignee
腾讯科技(北京)有限公司
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 腾讯科技(北京)有限公司 filed Critical 腾讯科技(北京)有限公司
Priority to CN201410111494.0A priority Critical patent/CN104618217B/en
Publication of CN104618217A publication Critical patent/CN104618217A/en
Application granted granted Critical
Publication of CN104618217B publication Critical patent/CN104618217B/en

Links

Abstract

The invention discloses a kind of method for sharing resource, terminal, server and system, this method to include:The resource for needing to share is determined in the resource opened to the first user, obtains resource sharing instruction and shares the second user of resource;Submit the identification information of the first user, the user information of resource identification information and second user, determine the first user with the permission for sharing resource and after generating resource sharing information by server, the resource sharing information that server returns is received, and is sent to the corresponding terminal of second user.The present invention in the resource opened to the first user by determining the resource shared, and it is received after server is determined with the permission for sharing resource and generates and return resource sharing information and shares resource sharing information to second user, guarantee to share resource to second user, the range of resource sharing can not only be expanded, and can be by sharing the flexibility of the social function of resource raising website and improving the interactivity between user.

Description

Share method, terminal, server and the system of resource

Technical field

The present invention relates to internet arena, more particularly to a kind of method for sharing resource, terminal, server and system.

Background technology

In order to attract more users to access website, to improve the visit capacity of website, many websites both provide social Function.User can carry out exchange and interdynamic by the social function that website provides to the resource that website provides, to increase money The propagation amount in source, and then increase the income of website provider.The resource that sharing website provides is a kind of social activity that website provides Change function, by sharing resource, more users can be driven to consult or watch resource, to improve the flow of website.For example, such as Fruit website is video website, then the resource that website provides is video, by sharing video frequency, more users viewing can be driven to regard Frequently, to increase the propagation amount of video.In order to drive more users for possessing resource to share resource, to increase the propagation of resource Amount, it is necessary to which a kind of method for sharing resource is provided.

When sharing resource, used method is the relevant technologies:The corresponding terminal of first user is by website where resource Chained address be sent to the corresponding terminal of second user;Second user obtains the money shared by the chained address of the website Source.For example, when the first user needs sharing video frequency, directly by the corresponding terminal of the first user by the net of website where video Location is sent to the corresponding terminal of second user, and second user opens network address, and obtain from the network address that the first user shares regards Frequently.

In the implementation of the present invention, inventor has found that the relevant technologies have at least the following problems:

Since some resources in internet are that certain user is distinctive, for example, after some videos need user charges It could watch, and other unpaid users cannot then watch the video.For such resource, the first user cannot use to second Family is shared, and not only resulting in resource sharing has certain limitation, and makes the range of resource sharing smaller.In addition, due to Such resource cannot be shared to second user, cause by share resource realize social function flexibility and interactivity not It is high.

Invention content

In order to solve the problems, such as the relevant technologies, an embodiment of the present invention provides a kind of methods, terminal, service for sharing resource Device and system.The technical solution is as follows:

In a first aspect, a kind of method for sharing resource is provided, the method includes:

It determines and needs the resource shared, and obtain the resource sharing instruction and described that the first user shares the resource One user in the relation chain of first user determine the second user for sharing the resource, wherein the resource be to The resource that first user opens;

Submit the identification information of first user, the user information of resource identification information and the second user;

It receives and determines that first user has according to the identification information and the resource identification information of first user Have after the permission for sharing the resource according to the user information of first user, resource identification information and the second user The user information globally unique resource sharing information that generates and return, and forward the resource sharing information.

Second aspect provides a kind of method for sharing resource, the method includes:

Receive the identification information of the first user, resource identification information and share resource second user user information, Wherein, the resource is the resource opened to first user;

Determine whether first user has according to the identification information of first user and the resource identification information There is the permission for sharing the resource;

If it is determined that first user has the permission for sharing the resource, then believed according to the user of first user The user information of breath, resource identification information and the second user generates globally unique resource sharing information;

Return to the resource sharing information.

The third aspect provides a kind of method for sharing resource, the method includes:

Resource sharing information is received, the resource sharing information is submitted by the corresponding terminal to server of first user After the user information of the user information of first user, resource identification information and the second user, by the server It generates and is back to the corresponding terminal of first user, wherein resource is what the server was opened to first user Resource;

The resource is got according to the resource sharing information.

Fourth aspect, provides a kind of terminal, and the terminal includes:

Determining module, the resource shared for determining needs, wherein the resource is the resource opened to the first user;

Acquisition module shares the resource sharing instruction of the resource and first use for obtaining first user The second user for sharing the resource that family determines in the relation chain of first user;

Submit module, identification information, resource identification information and the second user for submitting first user User information;

Receiving module, identification information and the resource identification information for receiving according to first user determine institute State the first user have share the permission of the resource after according to the user information of first user, resource identification information and The globally unique resource sharing information that the user information of the second user is generated and returned;

Forwarding module, for forwarding the resource sharing information.

5th aspect, provides a kind of server, the server includes:

First receiving module, for receiving the identification information of the first user, resource identification information and sharing the of resource The user information of two users, wherein the resource is the resource opened to first user;

First determining module, for determining institute according to the identification information and the resource identification information of first user State whether the first user has the permission for sharing the resource;

First generation module, for when determine first user have share the resource permission when, according to described The user information of the user information of first user, resource identification information and the second user generates globally unique resource point Enjoy information;

Module is returned to, for returning to the resource sharing information.

6th aspect, provides a kind of terminal, the terminal includes:

Receiving module, for receiving resource sharing information, the resource sharing information is by first user corresponding end It holds to server and submits the user information of first user, the user information of resource identification information and the second user Afterwards, it is generated by the server and is back to the corresponding terminal of first user, wherein resource is the server to described The resource that first user opens;

Module is got, for getting the resource according to the resource sharing information.

7th aspect, provides a kind of system for sharing resource, the system comprises:First terminal, server and second Terminal;

Wherein, the terminal that for example above-mentioned fourth aspect of the first terminal provides;

The server that for example above-mentioned 5th aspect of the server provides;

The terminal that for example above-mentioned 6th aspect of the second terminal provides.

The advantageous effect that technical solution provided in an embodiment of the present invention is brought is:

By determining the resource for needing to share in the resource opened to the first user, and the first user is determined in server After the permission for sharing the resource, resource sharing information is sent to the corresponding terminal of second user, it is ensured that can be used to second The resource that family sharing service device is opened to the first user can not only expand the range of resource sharing, and can be by sharing Resource improves the flexibility of the social function of website and improves the interactivity between user.

Description of the drawings

To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, other are can also be obtained according to these attached drawings Attached drawing.

Fig. 1 is a kind of implementation environment schematic diagram of method for sharing resource provided in an embodiment of the present invention;

Fig. 2 is a kind of method flow diagram for sharing resource that the embodiment of the present invention one provides;

Fig. 3 is the method flow diagram that the another kind that the embodiment of the present invention one provides shares resource;

Fig. 4 be the embodiment of the present invention one provide another share the method flow diagram of resource;

Fig. 5 is a kind of method flow diagram for sharing resource provided by Embodiment 2 of the present invention;

Fig. 6 is the end that a kind of corresponding terminal of first user provided by Embodiment 2 of the present invention determines the resource for needing to share The first user that end interface schematic diagram and the corresponding terminal of the first user are shown shares the interface schematic diagram of resource;

Fig. 7 is the terminal interface that a kind of first user provided by Embodiment 2 of the present invention determines the second user for sharing resource Schematic diagram;

Fig. 8 is that a kind of corresponding terminal of first user provided by Embodiment 2 of the present invention shows resource sharing information and shows Show the terminal interface schematic diagram for sharing resource successful information;

Fig. 9 is that a kind of corresponding terminal of second user provided by Embodiment 2 of the present invention shows resource sharing information and neck Take the terminal interface schematic diagram of resource;

Figure 10 is a kind of structural schematic diagram for terminal that the embodiment of the present invention three provides;

Figure 11 is a kind of structural schematic diagram for terminal that the embodiment of the present invention four provides;

Figure 12 is a kind of structural schematic diagram for server that the embodiment of the present invention seven provides;

Figure 13 is a kind of structural schematic diagram for server that the embodiment of the present invention eight provides;

Figure 14 is a kind of structural schematic diagram for terminal that the embodiment of the present invention nine provides;

Figure 15 is a kind of structural schematic diagram for terminal that the embodiment of the present invention ten provides;

Figure 16 is a kind of structural schematic diagram for system for sharing resource that the embodiment of the present invention 13 provides.

Specific implementation mode

To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.

Referring to FIG. 1, it illustrates the structural schematic diagrams of the implementation environment involved by method provided in an embodiment of the present invention. As shown in Figure 1, the implementation environment includes first terminal 101, server 102 and second terminal 103.Pass through implementation shown in FIG. 1 Environment can be carried out between server 102 and first terminal 101 and second terminal 103 by wireless network or cable network Communication, and first terminal 101 and second terminal 103 can also be communicated by wireless network or cable network.

In conjunction with implementation environment schematic diagram shown in FIG. 1, the resource sharing that can only open server to the first user is extremely Second user, and during sharing resource to second user, need to be divided by whether first user of the determination of server 102 has Enjoy the permission of the resource opened to the first user.Determine that the first user has sharing service device to the first user in server 102 After the permission of open resource, realize resource sharing to the corresponding terminal of second user.Wherein, the first user uses to second It, can be by the resource sharing interface in certain applications in the corresponding terminal of the first user come real when resource is shared at family It is existing.Wherein, about the concrete type of application, the embodiment of the present invention is not especially limited.When it is implemented, the application includes but not It is limited to be instant messaging application.Specifically share the method embodiment one as described below of resource and the content of embodiment two.

Wherein, first terminal 101 and second terminal 103 can be smart mobile phone, tablet computer, E-book reader, MP3 (Moving Picture Experts Group Audio Layer III, dynamic image expert's compression standard audio level 3) Player, MP4(Moving Picture Experts Group Audio Layer IV, dynamic image expert's compression standard sound Frequency level 3)Player, pocket computer on knee and desktop computer etc..Server 103 can be it is any can control to The server of first user's open source.About the type of resource, the embodiment of the present invention is not especially limited.When it is implemented, The type of resource can be video resource, audio resource etc..

Embodiment one

In conjunction with implementation environment schematic diagram shown in FIG. 1 and the above, an embodiment of the present invention provides one kind sharing resource Method.By taking the corresponding terminal of the first user executes the angle of method provided in an embodiment of the present invention as an example, referring to Fig. 2, this hair The method flow that bright embodiment provides includes:

201:It determines the resource for needing to share, and obtains the resource sharing instruction and first that the first user shares the resource The second user for sharing the resource that user determines in the relation chain of the first user, wherein the resource is server to first The resource that user opens.

202:The identification information of the first user, user's letter of resource identification information and second user are submitted to server Breath makes server determine that the first user has according to the identification information and resource identification information of the first user and shares the resource After permission, generated according to the user information of the user information of the first user, resource identification information and second user globally unique Resource sharing information, and return to resource sharing information.

203:The resource sharing information that server returns is received, and it is corresponding that resource sharing information is forwarded to second user Terminal makes the corresponding terminal of second user receive and get the resource according to resource sharing information.

Preferably, the resource for needing to share is determined, including:

Detection scans the resource scan instruction of the corresponding Quick Response Code of the resource, and scans two dimension according to the resource scan instruction Code, the resource that the corresponding resource of the Quick Response Code of scanning is determined as needing to share;

The resource sharing instruction that the first user shares resource is obtained, including:

The corresponding resource sharing page of resource is shown according to the Quick Response Code of scanning, and obtains first in the resource sharing page User shares the resource sharing instruction of resource.

Preferably, resource sharing information is sent to the corresponding terminal of second user, including:

Resource sharing information is sent to the corresponding terminal of second user by calls application interface API.

By taking server executes the angle of method provided in an embodiment of the present invention as an example, referring to Fig. 3, the embodiment of the present invention provides Method flow include:

301:Receive the identification information of the first user that the corresponding terminal of the first user is submitted, resource identification information and point Enjoy the user information of the second user of resource, wherein resource is the resource opened to the first user.

302:It determines whether the first user has according to the identification information of the first user and resource identification information and shares this The permission of resource.

Preferably, it determines whether the first user has according to the identification information of the first user and resource identification information to share The permission of the resource, including:

It determines whether the first user reaches according to the identification information of the first user and shares hierarchical resource;

If the first user, which reaches, shares hierarchical resource, determine whether that the first user opens according to resource identification information The resource;

If it is determined that opening the resource to the first user, it is determined that the first user has the permission for sharing the resource.

303:If it is determined that the first user has the permission for sharing the resource, then according to the user information of the first user, money The user information of source identification information and second user generates globally unique resource sharing information.

Preferably, after determining that the first user has the permission for sharing the resource, further include:

The current state of the resource is obtained according to resource identification information;

Determine whether that the first user shares the resource according to current state;

If it is determined that the first user is allowed to share the resource, then user information according to the first user, resource identification are executed The user information of information and second user generates the step of globally unique resource sharing information.

Preferably, it is generated according to the user information of the user information of the first user, resource identification information and second user Globally unique resource sharing information, including:

The user information of the user information of first user, resource identification information and second user is generated globally unique Digital signature obtains the resource sharing information for carrying globally unique digital signature.

304:Resource sharing information is returned to first terminal, so that first terminal is received resource sharing information, and resource is divided It enjoys information and is sent to the corresponding terminal of second user, received by the corresponding terminal of second user and got according to resource sharing information The resource.

Preferably, after returning to resource sharing information to first terminal, further include:

The resource for receiving the identification information for the carrying second user that the corresponding terminal of second user is sent gets request, and root Determine whether second user has the permission for getting the resource according to the identification information of second user;

If it is determined that second user has the permission for getting the resource, then generating resource according to resource sharing information gets letter Breath, and resource pickup information is sent to the corresponding terminal of second user, so that the corresponding terminal of second user is received and according to money Source pickup information gets the resource.

Preferably, after returning to resource sharing information to first terminal, further include:

The current state of the resource whether is updated by the state that second user is got according to the resource.

By taking the corresponding terminal of second user executes the angle of method provided in an embodiment of the present invention as an example, referring to Fig. 4, this hair The method flow that bright embodiment provides includes:

401:The resource sharing information that the corresponding terminal of the first user is sent is received, resource sharing information is by the first user couple After the terminal to server answered submits the user information of the user information of the first user, resource identification information and second user, It is generated by server and is back to the corresponding terminal of the first user, wherein resource is the resource that server is opened to the first user.

402:Resource is got according to resource sharing information.

Preferably, resource is got according to resource sharing information, including:

The resource that the identification information for carrying second user is sent to server according to resource sharing information gets request, makes clothes Business device determines that second user with after getting the permission of the resource, is returned according to resource sharing according to the identification information of second user The resource pickup information that information generates;

The resource pickup information that server returns is received, and the resource is got according to resource pickup information.

Method provided in an embodiment of the present invention, by determining the money for needing to share in the resource opened to the first user Source, and the identification information of the first user, the user information of resource identification information and second user are submitted to server, make server It is raw after determining that the first user has and shares the permission of the resource according to the identification information and resource identification information of the first user At and return to resource sharing information, the first user to the corresponding terminal of second user by sending resource sharing information come to second User shares resource, it is ensured that the resource that the first user can open to second user sharing service device to the first user, it can not only Enough expand the range of resource sharing, and the flexibility and raising that the social function of website can be improved by sharing resource Interactivity between user.

Embodiment two

In conjunction with implementation environment schematic diagram shown in FIG. 1 and the above, an embodiment of the present invention provides one kind sharing resource Method.Referring to Fig. 5, method flow provided in an embodiment of the present invention includes:

501:The corresponding terminal of first user determines the resource for needing to share, and obtains the money that the first user shares the resource Share the second user for sharing the resource that instruction and the first user determine in the relation chain of the first user in source, wherein should Resource is the resource that server is opened to the first user.

When the first user, which determines, shares resource to second user, can in the resource that server opens selection needs to the The resource that two users share, therefore, the corresponding terminal of the first user is it needs to be determined that the first user needed to share to second user Resource, and obtain the resource sharing instruction that the first user shares the resource.In order to determine the first user to which second user point Enjoy the resource, the corresponding terminal of the first user also needs to obtain that the first user determines in the relation chain of the first user shares this The second user of resource.

Wherein, the resource type for the resource that the embodiment of the present invention does not open server to the first user is defined, example Such as, the resource that server is opened to the first user including but not limited to can be paid video, etc..Specifically, if resource For paid video, after the first user carries out operation for paying the fee to the video, the server where the video will be used to first Family opens the resource, and is directed to other second users that do not pay to the resource, then server does not open the video to it.

Determine that the mode for the resource for needing to share, the embodiment of the present invention do not limit specifically about the corresponding terminal of the first user It is fixed.When it is implemented, including but not limited to realize in the following way:

Server is that the resource that can each share is arranged corresponding Quick Response Code, and in the page that the resource is provided display with The corresponding Quick Response Code of the resource.Such as Fig. 6(a)It is shown, if resource is the video A in paid video, when the first user is seeing When seeing video A, the corresponding Quick Response Codes of video A are shown in the display interface of video A.Therefore, the first user corresponding end The resource scan instruction of the corresponding Quick Response Code of the resource is scanned at end by detection, and according to resource scan instruction scanning and the money The corresponding Quick Response Code in source, to the resource for being determined as needing to share by the corresponding resource of the Quick Response Code of scanning.For example, such as 6(a) In, when the corresponding terminal of the first user detects the resource scan instruction of the corresponding Quick Response Codes of scan video A, and according to the resource Scan instruction scans Quick Response Code corresponding with video A, then video A is determined as the resource for needing to share.

After determining the resource that needs are shared, the corresponding terminal of the first user obtains the resource that the first user shares the resource Share the mode of instruction, the corresponding resource sharing page of the resource can be including but not limited to shown according to the Quick Response Code of scanning, And the resource sharing instruction that the first user shares the resource is obtained in the resource sharing page.Specifically, in the resource sharing page In the option for sharing resource can be provided, the corresponding terminal of the first user is by detecting whether the option for sharing resource is selected Operation come obtain resource sharing instruction.With Fig. 6(b)For illustrate, when corresponding A pairs of the terminal scan video of the first user After the Quick Response Code answered, shows the resource sharing page, the option of sharing video frequency A, the first user are provided in the resource sharing page Corresponding terminal obtains resource sharing instruction by detecting the operation whether option for sharing resource A is selected.Certainly, The corresponding terminal of one user can also obtain the resource sharing instruction that the first user shares the resource, the present invention otherwise Embodiment is not especially limited this.

In addition, being obtained about the corresponding terminal of the first user, the first user is determining in the relation chain of the first user to share The mode of the second user of the resource, the embodiment of the present invention are not especially limited.For example, as shown in fig. 7, the first user can be The a certain application for being stored with relation chain, and selection point in the good friend stored in this application are opened in the corresponding terminal of first user Enjoy the second user of resource.About the concrete type for a certain application for being stored with relation chain, the embodiment of the present invention does not limit specifically It is fixed.For example, the application includes but not limited to that can be instant messaging application etc..Number about the second user for sharing the resource Amount, the embodiment of the present invention are equally not especially limited, and the quantity of second user can be one, or multiple.

502:The corresponding terminal to server of first user submit the identification information of the first user, resource identification information and The user information of second user.

Since the resource that server is opened to the first user is the distinctive resource of the first user, other users do not have the money Source.For example, if resource is the resource of the first user charges, server only opens the resource to the first user, and for unpaid It is then unopened for the second user of expense.For the resource that server is opened to the first user, the first user can be by the money Share to second user in source, that is to say, that the first user has the permission for sharing the resource.Therefore, in order to make server determine Whether the first user, which has, is shared the permission of the resource, the first user needs to share which resource and determines first user's needs Which second user to share the resource to, the corresponding terminal of the first user needs to submit the mark letter of the first user to server The user information of breath, resource identification information and second user.

About the corresponding terminal to server of the first user submit the identification information of the first user, resource identification information and The mode of the user information of second user, can there are many kinds of.For example, when first terminal determine need the resource shared and to After which user shares the resource, resource sharing request can be sent to server, the corresponding terminal of the first user can be by the The user information of the identification information of one user, resource identification information and second user is carried to be submitted in resource sharing request To server, etc..

The particular content of user information about the identification information of the first user, resource identification information and second user, The embodiment of the present invention is not especially limited.Wherein, the identification information of the first user can be times for distinguishing the identity of the first user What information, for example, can be the account, etc. for the first user that the first user registers on the server;Resource identification information can The globally unique identification information of each resource can be distinguished by thinking;The user information of second user can be that can allow the first use Family identifies the identification information of the second user which user to share resource to, for example, the user information of second user can be the The application account, etc. that two users register in a certain application.

503:Server receives identification information, the resource identification information for the first user that the corresponding terminal of the first user is submitted And share the user information of the second user of resource, and determined according to the identification information of the first user and resource identification information Whether the first user has the permission for sharing the resource.

Since the resource that the first user shares to second user is the resource that server is opened to the first user, when When first user needs to share resource, server needs to determine the according to the identification information and resource identification information of the first user Whether one user has the permission for sharing the resource.

Wherein, server determines whether the first user has according to the identification information and resource identification information of the first user Share the permission of the resource, can including but not limited to be implemented by the following steps:

The first step:Since server is when to first user's open source, it will usually it is required that the identity of the first user reaches Certain grade.Such as, it is desirable that the first user is member, etc..Therefore, server needs the identification information according to the first user It determines whether the first user reaches and shares hierarchical resource.

Preferably, what server can be multiple and different to the first user setting shares hierarchical resource, and ensures to share money Source higher grade, and the chance that the first user shares resource is more, to improve the interest that the first user shares resource.Example Such as, if the first user possesses advanced hierarchical resource of sharing, 5 chances for sharing resource be can get within one month;If the One user possess middle rank share hierarchical resource, then one month can get 3 chances for sharing resource;If the first user possesses Rudimentary shares hierarchical resource, then can get 1 time within one month and share chance of resource, etc..

Second step:Certain specific behaviour is carried out due to generally requiring the first user when server is to first user's open source Make, such as delivery operation, etc..For some resource, after the first user executes this kind of specific operation, server is to the first user The open resource.Therefore, after server determines that the first user reaches and shares hierarchical resource, it is also necessary to true according to resource identification information It is fixed whether to the first user to open the resource.

For example, if when server is to first user's open source, the first user is needed to carry out operation for paying the fee, then when first User completes charge after operation, and the resource is opened to the first user.

Third walks:If the server determine that opening the resource to the first user, it is determined that the first user, which has, shares the money The permission in source.

Optionally, share hierarchical resource when server determines that the first user is not up to, or when server determines the first use Although family reaches shares hierarchical resource, but does not also open the resource to the first user, then server determines that the first user does not have There is the permission for sharing the resource.At this point, the first user just cannot share the resource to second user.

504:If the server determine that the first user has the permission for sharing the resource, then believed according to the user of the first user Breath, resource identification information and second user user information generate globally unique resource sharing information, and to the first user Corresponding terminal returns to resource sharing information.

For the resource opened to the first user, peculiar resource of the first user, in order to ensure that the first user shares the money The safety of the process in source, and the first user can be made to share the resource to specified second user, server is determining After one user has the permission for sharing the resource, according to the user information of the first user, resource identification information and second user User information generate globally unique resource sharing information, and return to resource sharing information to the corresponding terminal of the first user. Wherein, the particular content about the user information of the first user, the embodiment of the present invention are not especially limited.For example, the first user User information may include that the identification information of the first user can be identified for that the first user shares the process of the resource only with other The other information of one property, such as open ID of the first user, the first user, which determine, shares timestamp of the resource, etc..

Wherein, server is according to the user information of the user information of the first user, resource identification information and second user Globally unique resource sharing information is generated, including but not limited to can be:The user information of first user, resource identification are believed The user information of breath and second user generates globally unique digital signature, and obtains carrying globally unique digital signature Resource sharing information.

About the specific format of digital signature, the embodiment of the present invention is not especially limited.When it is implemented, digital signature Format including but not limited to can be MD5 signatures etc..About the particular content of resource sharing information, the embodiment of the present invention is equally not Make specific restriction, for example, resource sharing information can be the chained address, etc. for carrying digital signature.Specifically, if resource Sharing information is the chained address for carrying digital signature, then when carrying digital signature, server can be by by digital signature The mode in chained address is encapsulated in realize.

Preferably, it in order to ensure the state consistency of resource that the first user shares, the influences such as avoids repeating to share and shares The case where resource process, occurs, and server can be that multiple states are arranged in the resource opened to the first user.E.g., including but not It is limited to be that resource is arranged " un-activation ", " activated, waited sharing ", " shared, get in ", " get and finish " and " has made It is useless " etc. states.Specifically, share hierarchical resource but when server is not to first user's open source when the first user reaches, if It is " un-activation " to set the corresponding state of the resource;Share hierarchical resource and server is opened to the first user when the first user reaches When the resource, it is " activated, waited sharing " that the corresponding state of the resource, which is arranged,;Share a certain resource when the first user determines, and To after the user information of the identification information of server the first user of submission, resource identification information and second user, which is set The corresponding state in source is " shared, get in ";After server returns to resource sharing information to the corresponding terminal of the first user, It is " shared, get in " that the corresponding state of the resource, which is arranged,;After the corresponding terminal of second user gets resource, by the resource State be set as " get and finish ";If server, which is also the hierarchical resource of sharing of the first user in advance, is arranged the time limit, when When first user reaches the time limit arrival for sharing hierarchical resource, the first user does not just have the permission for sharing resource, at this point, service Device sets " calcellation " state of the resource opened to the first user to.

Therefore, server determine the first user have share the permission of the resource after, can also be according to resource identification The current state of the acquisition of information resource, and determine whether that the first user shares the resource according to current state;If clothes Business device determine allow the first user share the resource, then execute again the user information according to the first user, resource identification information with And the user information of second user generates the step of globally unique resource sharing information.For example, if the current shape of the resource State is " calcellation ", then server determination does not allow the first user to share the resource;If the current state of the resource is " to have swashed Live, wait sharing ", then server, which determines, allows the first user to share the resource;If the current state of the resource be " shared, Get " in, it can determine that the first user had shared the resource by the current state, in order to avoid the first user repeats Share the resource, server determination at this time does not allow the first user to share the resource, etc..

505:The corresponding terminal of first user receives the resource sharing information that server returns, and resource sharing information is turned It is sent to the corresponding terminal of second user.

Share resource to realize to second user, the corresponding terminal of the first user receives the resource sharing that server returns Information, and resource sharing information is forwarded to the corresponding terminal of second user.Service is received about the corresponding terminal of the first user The mode for the resource sharing information that device returns, and resource sharing information is forwarded to the mode of the corresponding terminal of second user, The embodiment of the present invention is not especially limited.When it is implemented, the corresponding terminal of the first user includes but not limited to can be by obtaining It takes the transmission of resource sharing information to instruct, and calls corresponding API(Application Program Interface, using journey Sequence interface)Mode resource sharing information is forwarded to the corresponding terminal of second user.

Preferably, after the corresponding terminal of the first user receives the resource sharing information that server is sent, this can also be shown Resource sharing information, the first user can further determine whether to share according to the resource sharing information of display resource, and when the One user further determines that share resource after, can realize to second user and share resource.About the corresponding terminal of the first user Show the mode of the resource sharing information, it including but not limited to can be such as Fig. 8(a)Shown in mode shown.First user Share the operation whether button is selected in resource sharing information of the corresponding terminal by detecting display to determine the first use Whether the resource is shared in family.Further, after user, which determines, shares resource, the corresponding terminal of the first user, which can be shown, shares money Source success message.Wherein, the corresponding terminal of the first user shows that the terminal interface for sharing resource success message can be such as Fig. 8(b)Institute Show.

506:The resource sharing information that the corresponding terminal of second user the first user of corresponding terminal reception is sent, and according to Resource sharing information gets resource.

Preferably, when the corresponding terminal of second user receives the resource sharing information that the corresponding terminal of the first user is sent Afterwards, the corresponding terminal of second user can show the resource sharing information.Such as Fig. 9(a)Shown, it illustrates a kind of second users Corresponding terminal shows the terminal interface schematic diagram of resource sharing information.

Wherein, the corresponding terminal of second user gets resource according to resource sharing information, can including but not limited to pass through Following steps are realized:

The first step:The corresponding terminal of second user sends the mark for carrying second user according to resource sharing information to server The resource for knowing information gets request.

Send the mark for carrying second user to server according to resource sharing information about the corresponding terminal of second user The resource of information gets the mode of request, and the embodiment of the present invention is not especially limited.When it is implemented, such as Fig. 9(b)It is shown, the Two users can get the page by clicking the resource sharing acquisition of information resource that the first user sends, and get the page in resource In carry the resource of identification information of second user to be sent to server by click " login is got " button and get request.When So, second user can also use other methods to be got to the resource of the identification information of server transmission carrying second user and ask It asks.

Second step:Server receives the resource of the identification information for the carrying second user that the corresponding terminal of second user is sent Request is got, and determines whether second user has the permission for getting resource according to the identification information of second user.

The resource neck of the identification information for the carrying second user that the corresponding terminal of second user is sent is received about server The mode of request is taken, and determines whether second user has the side for the permission for getting resource according to the identification information of second user Formula, the embodiment of the present invention are not especially limited.

Specifically, since server in step 504 is according to the user information of the first user, resource identification information and The user information of two users generates globally unique resource sharing information, and therefore, server is believed according to the mark of second user When breath determines whether second user has the permission for getting resource, the resource sharing information can be parsed and obtain therein second The user information of the second user parsed and resource are got the mark of the second user carried in request by the user information of user Know information to be matched to realize.The user information of the second user parsed is got with resource in request about server and is taken The identification information of the second user of band carries out matched mode, Ke Yiwei:Judge to whether there is in the user information of second user The information that the identification information of second user that carries is consistent in request is got with resource;If deposited in the user information of second user The information that the identification information of second user that carries is consistent in request is being got with resource, it is determined that second user, which has, gets this The permission of resource.

Further, if the server determine that second user, which does not have, gets the permission of the resource, then the second user is not The resource can be got.At this point, in order to prevent clear its of second user that can be corresponded to second user from getting the resource, server Terminal transmission get failed message, failure news is got by the corresponding terminal display of second user, to make second user Know the result for getting failure.

Third walks:In order to make the corresponding terminal of second user successfully get the resource that the first user shares, if server It determines that second user has and gets the permission of the resource, then resource pickup information is generated according to resource sharing information, and by resource Pickup information is sent to the corresponding terminal of second user.

Wherein, the embodiment of the present invention is not defined the particular content of resource pickup information, for example, resource pickup information It including but not limited to can be order information, etc..It is sent to the corresponding terminal of second user about by resource pickup information Mode, the embodiment of the present invention are equally not especially limited.When it is implemented, can be realized by calling corresponding API.

4th step:The corresponding terminal of second user receives the resource pickup information that server returns, and is got according to resource Information gets resource.

The mode for the resource pickup information that server returns, the embodiment of the present invention are received about the corresponding terminal of second user It is not especially limited.When it is implemented, can also be by calling API to realize.If resource pickup information is order information, the The corresponding terminal of two users can be including but not limited to somebody's turn to do when getting the mode of resource according to resource pickup information by clicking Order gets resource.

Preferably, it after the corresponding terminal of second user successfully gets resource according to resource pickup information, may call upon Relevant resource unfolding mode opens resource.For example, if resource is the video resource that the first user shares, second user can The resource is played to call video player.

Preferably, after the corresponding terminal of second user gets the resource that the first user shares, in order to avoid the second use Family repeat get, server can also according to resource whether the current state of the state got by second user more new resources.Tool Body, when the corresponding terminal of second user successfully gets the resource that the first user shares after, server is by the state of the resource It is updated to " get and finish ";When the corresponding terminal of second user gets the resource not successfully, then it is " to keep the state of the resource In sharing, getting ", etc..

Method provided in an embodiment of the present invention, by the corresponding terminal of the first user in the resource opened to the first user It determines and needs the resource shared, and the identification information of the first user, resource identification information and second user are submitted to server User information, server according to the identification information and resource identification information of the first user determine the first user have share this After the permission of resource, resource sharing information is generated and returns, the first user to the corresponding terminal of second user by sending resource Sharing information shares resource to second user, it is ensured that the first user can open to second user sharing service device to the first user The resource put can not only expand the range of resource sharing, and can improve the social function of website by sharing resource Flexibility and improve user between interactivity.

Embodiment three

An embodiment of the present invention provides a kind of terminal, the terminal is for executing first in above-described embodiment one or embodiment two Function performed by the corresponding terminal of user.Referring to Figure 10, which includes:

Determining module 601, the resource shared for determining needs, wherein the resource is that server is opened to the first user Resource;

Acquisition module 602, for obtain the first user share the resource resource sharing instruction and the first user the The second user for sharing the resource determined in the relation chain of one user;

Module 603 is submitted, identification information from the first user to server, resource identification information and the second use for submitting The user information at family;

Receiving module 604 is determined for receiving server according to the identification information and resource identification information of the first user After first user has the permission for sharing the resource, used according to the user information of the first user, resource identification information and second The globally unique resource sharing information that the user information at family is generated and returned;

Forwarding module 605 makes second user correspond to for resource sharing information to be forwarded to the corresponding terminal of second user Terminal receive and the resource is got according to resource sharing information.

Preferably, determining module 601, including:

Detection unit, for detecting the resource scan instruction for scanning the corresponding Quick Response Code of the resource;

Scanning element, for being scanned the two-dimensional code according to the resource scan instruction;

Determination unit, the resource for the corresponding resource of the Quick Response Code of scanning to be determined as needing to share;

Acquisition module, including:

Display unit, for showing the corresponding resource sharing page of the resource according to the Quick Response Code of scanning;

Acquiring unit shares the resource sharing instruction of the resource for obtaining the first user in the resource sharing page.

Preferably, forwarding module 605 forward resource sharing information for calls application interface API.

Terminal provided in an embodiment of the present invention needs to share by determining in the resource that server is opened to the first user Resource, and submit to server the user information of the identification information of the first user, resource identification information and second user, make clothes Business device is determining that the first user has the permission for sharing the resource according to the identification information and resource identification information of the first user Afterwards, it generates and returns to resource sharing information;The corresponding terminal of first user to the corresponding terminal of second user by forwarding resource Sharing information shares resource to second user, it is ensured that the first user can open to second user sharing service device to the first user The resource put can not only expand the range of resource sharing, and can improve the social function of website by sharing resource Flexibility and improve user between interactivity.

Example IV

1 is please referred to Fig.1, it illustrates the structural schematic diagram of the terminal involved by the embodiment of the present invention, which can use In the method for sharing resource for implementing to provide in above-described embodiment.Specifically:

Terminal 700 may include RF(Radio Frequency, radio frequency)Circuit 110 includes one or more meters The memory 120 of calculation machine readable storage medium storing program for executing, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi(Wireless Fidelity, Wireless Fidelity)Module 170, include there are one or more than one processing core processing The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Figure 11 is not constituted pair The restriction of terminal may include either combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:

RF circuits 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuits 110 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module(SIM)Card, transceiver, coupler, LNA(Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuits 110 can also be communicated with network and other equipment by radio communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..

Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, to perform various functions application and data processing.Memory 120 can include mainly storage journey Sequence area and storage data field, wherein storing program area can storage program area, the application program needed at least one function(Than Such as sound-playing function, image player function)Deng;Storage data field can be stored uses created number according to terminal 700 According to(Such as audio data, phone directory etc.)Deng.In addition, memory 120 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory 120 access.

Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family is on it or neighbouring touch operation(For example user uses any suitable objects or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key(Such as volume control button, switch key etc.)、 It is one or more in trace ball, mouse, operating lever etc..

Display unit 140 can be used for showing information input by user or the information and terminal 700 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination. Display unit 140 may include display panel 141, optionally, LCD (Liquid Crystal Display, liquid crystal may be used Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects on it or neighbouring touches After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing type of the device 180 according to touch event Corresponding visual output is provided on display panel 141.Although in fig. 11, touch sensitive surface 131 and display panel 141 are conducts Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display Panel 141 is integrated and realizes and outputs and inputs function.

Terminal 700 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 700 is moved in one's ear Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions(Generally Three axis)The size of acceleration can detect that size and the direction of gravity, can be used to identify the application of terminal posture when static(Than Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function(Such as pedometer, percussion)Deng;Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 700 can also configure, herein It repeats no more.

Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 700.Audio The transformed electric signal of the audio data received can be transferred to loud speaker 161 by circuit 160, and sound is converted to by loud speaker 161 Sound signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, after being received by voicefrequency circuit 160 Audio data is converted to, then by after the processing of audio data output processor 180, through RF circuits 110 to be sent to such as another end End, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earphone jack, To provide the communication of peripheral hardware earphone and terminal 700.

WiFi belongs to short range wireless transmission technology, and terminal 700 can help user's transceiver electronics by WiFi module 170 Mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Figure 11 is shown WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 700, completely it can exist as needed Do not change in the range of the essence of invention and omits.

Processor 180 is the control centre of terminal 700, utilizes each portion of various interfaces and the entire terminal of connection Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 700, to carry out integral monitoring to terminal.Optionally, processor 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modem processor, Wherein, the main processing operation system of application processor, user interface and application program etc., modem processor mainly handles nothing Line communicates.It is understood that above-mentioned modem processor can not also be integrated into processor 180.

Terminal 700 further includes the power supply 190 powered to all parts(Such as battery), it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event Hinder the random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.

Although being not shown, terminal 700 can also include camera, bluetooth module etc., and details are not described herein.Specifically in this reality It applies in example, the display unit of terminal is touch-screen display, and terminal further includes having memory and one or more than one Program, either more than one program is stored in memory and is configured to by one or more than one processing for one of them Device executes.The one or more programs include instructions for performing the following operations:

It determines the resource for needing to share, and obtains resource sharing instruction and the first user that the first user shares the resource The second user for sharing the resource determined in the relation chain of the first user, wherein the resource is server to the first user Open resource;

The identification information of the first user, the user information of resource identification information and second user are submitted to server, is made Server determines that the first user has the permission for sharing the resource according to the identification information and resource identification information of the first user Afterwards, globally unique money is generated according to the user information of the user information of the first user, resource identification information and second user Source sharing information, and return to resource sharing information;

The resource sharing information that server returns is received, and resource sharing information is forwarded to second user corresponding end End makes the corresponding terminal of second user receive and get the resource according to resource sharing information.

Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of terminal, also include instructions for performing the following operations:It determines and needs The resource shared, including:

Detection scans the resource scan instruction of the corresponding Quick Response Code of the resource, and scans resource according to the resource scan instruction Corresponding Quick Response Code, the resource that the corresponding resource of the Quick Response Code of scanning is determined as needing to share;

The resource sharing instruction that the first user shares resource is obtained, including:

The corresponding resource sharing page of the resource is shown according to the Quick Response Code of scanning, and is obtained in the resource sharing page First user shares the resource sharing instruction of the resource.

In the third the possible embodiment provided based on the first or second of possible embodiment, Also include instructions for performing the following operations in the memory of terminal:Resource sharing information is forwarded to second user to correspond to Terminal, including:

Resource sharing information is forwarded to the corresponding terminal of second user by calls application interface API.

Terminal provided in an embodiment of the present invention, by determining the money for needing to share in the resource opened to the first user Source, and the identification information of the first user, the user information of resource identification information and second user are submitted to server, make server It is raw after determining that the first user has and shares the permission of the resource according to the identification information and resource identification information of the first user At and return to resource sharing information;The corresponding terminal of first user to the corresponding terminal of second user by forwarding resource sharing letter It ceases to share resource to second user, it is ensured that the money that the first user can open to second user sharing service device to the first user Source, can not only expand the range of resource sharing, and can by share resource improve website social function it is flexible Property and improve user between interactivity.

Embodiment five

An embodiment of the present invention provides a kind of computer readable storage medium, on which can be State computer readable storage medium included in the memory in embodiment;Can also be individualism, without supplying terminal In computer readable storage medium.There are one the computer-readable recording medium storages or more than one program, this Either more than one program is used for executing the method realized and share resource, this method packet by one or more than one processor It includes:

It determines the resource for needing to share, and obtains resource sharing instruction and the first user that the first user shares the resource The second user for sharing the resource determined in the relation chain of the first user, wherein the resource is to be opened to the first user Resource;

The identification information of the first user, the user information of resource identification information and second user are submitted to server, is made Server determines that the first user has the permission for sharing the resource according to the identification information and resource identification information of the first user Afterwards, globally unique money is generated according to the user information of the user information of the first user, resource identification information and second user Source sharing information, and return to resource sharing information;

The resource sharing information that server returns is received, and resource sharing information is forwarded to second user corresponding end End makes the corresponding terminal of second user receive and get the resource according to resource sharing information.

Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of terminal, also include instructions for performing the following operations:It determines and needs The resource shared, including:

Detection scans the resource scan instruction of the corresponding Quick Response Code of the resource, and scans resource according to the resource scan instruction Corresponding Quick Response Code, the resource that the corresponding resource of the Quick Response Code of scanning is determined as needing to share;

The resource sharing instruction that the first user shares resource is obtained, including:

The corresponding resource sharing page of the resource is shown according to the Quick Response Code of scanning, and is obtained in the resource sharing page First user shares the resource sharing instruction of the resource.

In the third the possible embodiment provided based on the first or second of possible embodiment, Also include instructions for performing the following operations in the memory of terminal:Resource sharing information is forwarded to second user to correspond to Terminal, including:

Resource sharing information is forwarded to the corresponding terminal of second user by calls application interface API.

Computer readable storage medium provided in an embodiment of the present invention, by being determined in the resource opened to the first user The resource shared is needed, and the identification information of the first user, the user of resource identification information and second user are submitted to server Information, make server according to the identification information and resource identification information of the first user determine the first user have share the money After the permission in source, resource sharing information is generated and returns, the first user to the corresponding terminal of second user by sending resource point Information is enjoyed to share resource to second user, it is ensured that the first user can open to second user sharing service device to the first user Resource, the range of resource sharing can not only be expanded, and the social function of website can be improved by sharing resource Interactivity between flexibility and raising user.

Embodiment six

A kind of graphical user interface is provided in the embodiment of the present invention, the graphical user interface is in terminal, the terminal Including touch-screen display, memory and one or more than one place for executing an either more than one program Manage device;The graphical user interface includes:

It determines the resource for needing to share, and obtains resource sharing instruction and the first user that the first user shares the resource The second user for sharing the resource determined in the relation chain of the first user, wherein the resource is server to the first user Open resource;

The identification information of the first user, the user information of resource identification information and second user are submitted to server, is made Server determines that the first user has the permission for sharing the resource according to the identification information and resource identification information of the first user Afterwards, globally unique money is generated according to the user information of the user information of the first user, resource identification information and second user Source sharing information, and return to resource sharing information;

The resource sharing information that server returns is received, and resource sharing information is forwarded to second user corresponding end End makes the corresponding terminal of second user receive and get the resource according to resource sharing information.

Graphical user interface provided in an embodiment of the present invention needs to divide by determining in the resource opened to the first user The resource enjoyed, and the identification information of the first user, the user information of resource identification information and second user are submitted to server, make Server is determining that the first user has the power for sharing the resource according to the identification information and resource identification information of the first user After limit, generates and return to resource sharing information;The corresponding terminal of first user to the corresponding terminal forwarding of second user by providing Source sharing information shares resource to second user, it is ensured that the first user can be to second user sharing service device to first user Open resource can not only expand the range of resource sharing, and can improve the social work(of website by sharing resource Interactivity between the flexibility and raising user of energy.

Embodiment seven

An embodiment of the present invention provides a kind of server, the server is for executing in above-described embodiment one or embodiment two Function performed by server.Referring to Figure 12, which includes:

First receiving module 801, identification information, money for receiving the first user that the corresponding terminal of the first user is submitted Source identification information and share resource second user user information, wherein resource is the resource opened to the first user;

First determining module 802, for determining the first use according to the identification information and resource identification information of the first user Whether family has the permission for sharing the resource;

First generation module 803, for when determine the first user have share the resource permission when, according to the first user User information, the user information of resource identification information and second user generate globally unique resource sharing information;

Module 804 is returned, for returning to resource sharing information to first terminal, first terminal is made to receive resource sharing letter Breath, and resource sharing information is sent to the corresponding terminal of second user, it is received and according to money by the corresponding terminal of second user Source sharing information gets the resource.

Preferably, the first determining module 802, including:

First determination unit shares resource etc. for determining whether the first user reaches according to the identification information of the first user Grade;

Second determination unit, for when the first user reaches and shares hierarchical resource, being according to resource identification information determination It is no to open the resource to the first user;

Second determination unit shares money for when determination opens the resource to the first user, determining that the first user has The permission in source.

Preferably, the first generation module 803 is used for the user information of the first user, resource identification information and second The user information of user generates globally unique digital signature, obtains the resource sharing letter for carrying globally unique digital signature Breath.

Preferably, server further includes:

Second receiving module, the identification information of the carrying second user for receiving the corresponding terminal transmission of second user Resource gets request;

Second determining module gets the resource for determining whether second user has according to the identification information of second user Permission;

Second generation module, for when determining that second user has the permission for getting the resource, being believed according to resource sharing Breath generates resource pickup information;

Sending module keeps second user corresponding for resource pickup information to be sent to the corresponding terminal of second user Terminal receives and gets the resource according to resource pickup information.

Preferably, server further includes:

Acquisition module, the current state for obtaining the resource according to resource identification information;

Third determining module, for determining whether that the first user shares the resource according to current state;

First determining module 802, for when determining that the first user of permission shares the resource, executing according to the first user's The user information of user information, resource identification information and second user generates the step of globally unique resource sharing information.

Preferably, server further includes:

Update module, for according to the resource whether the current state of the state got by second user more new resources.

Server provided in an embodiment of the present invention is opened by the identification information of the first user of reception, to the first user The resource identification information of resource and the user information of second user, and in the identification information and resource identification according to the first user After information determines that the first user has the permission for sharing the resource, resource sharing information is generated and returned, the first user is made to correspond to Terminal by forwarding resource sharing information to share resource to second user to the corresponding terminal of second user, it is ensured that first uses The resource that family can be opened to second user sharing service device to the first user can not only expand the range of resource sharing, and And it can be by sharing the flexibility of the social function of resource raising website and improving the interactivity between user.

Embodiment eight

Figure 13 is the structural schematic diagram of server in the embodiment of the present invention.The server 900 can be different because of configuration or performance And bigger difference is generated, may include one or more central processing units(Central processing units, CPU)922(For example, one or more processors)With memory 932, one or more storage application programs 942 or The storage medium 930 of data 944(Such as one or more mass memory units).Wherein, memory 932 and storage medium 930 can be of short duration storage or persistent storage.The program for being stored in storage medium 930 may include one or more modules (Diagram does not mark), each module may include to the series of instructions operation in server.Further, central processing unit 922 could be provided as communicating with storage medium 930, and the series of instructions behaviour in storage medium 930 is executed on server 900 Make.

Server 900 can also include one or more power supplys 926, one or more wired or wireless networks Interface 950, one or more input/output interfaces 958, one or more keyboards 956, and/or, one or one The above operating system 941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM etc..

Wherein, one be stored in storage medium 930 or include in more than one application program 942 or data 944 Instructions for performing the following operations:

It receives the identification information of the first user that the corresponding terminal of the first user is submitted, resource identification information and shares money The user information of the second user in source, wherein resource is the resource opened to the first user;

It determines whether the first user has according to the identification information of the first user and resource identification information and shares the resource Permission;

If it is determined that the first user has the permission for sharing the resource, then according to the user information of the first user, resource mark The user information for knowing information and second user generates globally unique resource sharing information;

Resource sharing information is returned to first terminal, so that first terminal is received resource sharing information, and resource sharing is believed Breath is sent to the corresponding terminal of second user, is received by the corresponding terminal of second user and gets the money according to resource sharing information Source.

Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, one be stored in storage medium 930 or more than one application program 942 or number According to also including instructions for performing the following operations in 944:It is true according to the identification information of the first user and resource identification information Whether fixed first user has the permission for sharing the resource, including:

It determines whether the first user reaches according to the identification information of the first user and shares hierarchical resource;

If the first user, which reaches, shares hierarchical resource, determine whether that the first user opens according to resource identification information The resource;

If it is determined that opening the resource to the first user, it is determined that the first user has the permission for sharing the resource.

In the third the possible embodiment provided based on the first possible embodiment, it is stored in and deposits It also include finger for performing the following operations in one in storage media 930 or more than one application program 942 or data 944 It enables:Globally unique money is generated according to the user information of the user information of the first user, resource identification information and second user Source sharing information, including:

The user information of the user information of first user, resource identification information and second user is generated globally unique Digital signature obtains the resource sharing information for carrying globally unique digital signature.

In the 4th kind of possible embodiment provided based on the first possible embodiment, it is stored in and deposits It also include finger for performing the following operations in one in storage media 930 or more than one application program 942 or data 944 It enables:After returning to resource sharing information to first terminal, further include:

The resource for receiving the identification information for the carrying second user that the corresponding terminal of second user is sent gets request, and root Determine whether second user has the permission for getting resource according to the identification information of second user;

If it is determined that second user has the permission for getting resource, then generating resource according to resource sharing information gets letter Breath, and resource pickup information is sent to the corresponding terminal of second user, so that the corresponding terminal of second user is received and according to money Source pickup information gets the resource.

In the 5th kind of possible embodiment provided based on second of possible embodiment, it is stored in and deposits It also include finger for performing the following operations in one in storage media 930 or more than one application program 942 or data 944 It enables:

After determining that the first user has the permission for sharing the resource, further include:

The current state of the resource is obtained according to resource identification information;

Determine whether that the first user shares the resource according to current state;

If it is determined that the first user is allowed to share the resource, then user information according to the first user, resource identification are executed The user information of information and second user generates the step of globally unique resource sharing information.

In the 6th kind of possible embodiment provided based on the 5th kind of possible embodiment, it is stored in and deposits It also include finger for performing the following operations in one in storage media 930 or more than one application program 942 or data 944 It enables:After returning to resource sharing information to first terminal, further include:

The current state of the resource whether is updated by the state that second user is got according to resource.

Server provided in an embodiment of the present invention is opened by the identification information of the first user of reception, to the first user The resource identification information of resource and the user information of second user, and in the identification information and resource identification according to the first user After information determines that the first user has the permission for sharing the resource, resource sharing information is generated and returned, the first user is made to correspond to Terminal by forwarding resource sharing information to share resource to second user to the corresponding terminal of second user, it is ensured that first uses The resource that family can be opened to second user sharing service device to the first user can not only expand the range of resource sharing, and And it can be by sharing the flexibility of the social function of resource raising website and improving the interactivity between user.

Embodiment nine

An embodiment of the present invention provides a kind of terminal, the terminal is for executing second in above-described embodiment one or embodiment two Function performed by the corresponding terminal of user.Referring to Figure 14, which includes:

Receiving module 1001, the resource sharing information sent for receiving the corresponding terminal of the first user, resource sharing letter Breath is submitted user information, resource identification information and the second user of the first user by the corresponding terminal to server of the first user User information after, generated by server and be back to the corresponding terminal of the first user, wherein resource be opened to the first user Resource;

Module 1002 is got, for getting the resource according to resource sharing information.

Preferably, module is got, including:

Transmission unit, the resource for sending the identification information for carrying second user to server according to resource sharing information Get request;

Receiving unit, for receive server according to the identification information of second user determine second user have get the money After the permission in source, the resource pickup information for generating and returning according to resource sharing information, and money is got according to resource pickup information Source.

Terminal provided in an embodiment of the present invention, the resource sharing information sent by receiving the corresponding terminal of the first user, And the resource that the server that the first user shares is opened to the first user is got according to resource sharing information, it is ensured that clothes can be shared The resource that business device is opened to the first user can not only expand the range of resource sharing, and can be improved by sharing resource Interactivity between the flexibility and raising user of the social function of website.

Embodiment ten

5 are please referred to Fig.1, it illustrates the structural schematic diagram of the terminal involved by the embodiment of the present invention, which can use In the method for sharing resource for implementing to provide in above-described embodiment.Specifically:

Terminal 1100 may include RF(Radio Frequency, radio frequency)Circuit 110 includes one or more The memory 120 of computer readable storage medium, input unit 130, display unit 140, sensor 150, voicefrequency circuit 160, WiFi(Wireless Fidelity, Wireless Fidelity)Module 170, include there are one or more than one processing core processing The components such as device 180 and power supply 190.It will be understood by those skilled in the art that terminal structure shown in Figure 15 is not constituted pair The restriction of terminal may include either combining certain components or different component cloth than illustrating more or fewer components It sets.Wherein:

RF circuits 110 can be used for receiving and sending messages or communication process in, signal sends and receivees, particularly, by base station After downlink information receives, one or the processing of more than one processor 180 are transferred to;In addition, the data for being related to uplink are sent to Base station.In general, RF circuits 110 include but not limited to antenna, at least one amplifier, tuner, one or more oscillators, use Family identity module(SIM)Card, transceiver, coupler, LNA(Low Noise Amplifier, low-noise amplifier), duplex Device etc..In addition, RF circuits 110 can also be communicated with network and other equipment by radio communication.The wireless communication can make With any communication standard or agreement, and including but not limited to GSM (Global System of Mobile communication, entirely Ball mobile communcations system), GPRS (General Packet Radio Service, general packet radio service), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, wideband code division multiple access), LTE (Long Term Evolution, long term evolution), Email, SMS (Short Messaging Service, short message service) etc..

Memory 120 can be used for storing software program and module, and processor 180 is stored in memory 120 by operation Software program and module, to perform various functions application and data processing.Memory 120 can include mainly storage journey Sequence area and storage data field, wherein storing program area can storage program area, the application program needed at least one function(Than Such as sound-playing function, image player function)Deng;Storage data field can be stored uses created number according to terminal 1100 According to(Such as audio data, phone directory etc.)Deng.In addition, memory 120 may include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts. Correspondingly, memory 120 can also include Memory Controller, to provide processor 180 and input unit 130 to memory 120 access.

Input unit 130 can be used for receiving the number or character information of input, and generate and user setting and function Control related keyboard, mouse, operating lever, optics or the input of trace ball signal.Specifically, input unit 130 may include touching Sensitive surfaces 131 and other input equipments 132.Touch sensitive surface 131, also referred to as touch display screen or Trackpad are collected and are used Family is on it or neighbouring touch operation(For example user uses any suitable objects or attachment such as finger, stylus in touch-sensitive table Operation on face 131 or near touch sensitive surface 131), and corresponding attachment device is driven according to preset formula.It is optional , touch sensitive surface 131 may include both touch detecting apparatus and touch controller.Wherein, touch detecting apparatus detection is used The touch orientation at family, and the signal that touch operation is brought is detected, transmit a signal to touch controller;Touch controller is from touch Touch information is received in detection device, and is converted into contact coordinate, then gives processor 180, and can receive processor 180 The order sent simultaneously is executed.Furthermore, it is possible to using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves Realize touch sensitive surface 131.In addition to touch sensitive surface 131, input unit 130 can also include other input equipments 132.Specifically, Other input equipments 132 can include but is not limited to physical keyboard, function key(Such as volume control button, switch key etc.)、 It is one or more in trace ball, mouse, operating lever etc..

Display unit 140 can be used for showing information input by user or the information and terminal 1100 that are supplied to user Various graphical user interface, these graphical user interface can be made of figure, text, icon, video and its arbitrary combination. Display unit 140 may include display panel 141, optionally, LCD (Liquid Crystal Display, liquid crystal may be used Show device), the forms such as OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) configure display panel 141.Further, touch sensitive surface 131 can cover display panel 141, when touch sensitive surface 131 detects on it or neighbouring touches After touching operation, processor 180 is sent to determine the type of touch event, is followed by subsequent processing type of the device 180 according to touch event Corresponding visual output is provided on display panel 141.Although in fig.15, touch sensitive surface 131 and display panel 141 are conducts Two independent components realize input and input function, but in some embodiments it is possible to by touch sensitive surface 131 and display Panel 141 is integrated and realizes and outputs and inputs function.

Terminal 1100 may also include at least one sensor 150, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 141, and proximity sensor can close display when terminal 1100 is moved in one's ear Panel 141 and/or backlight.As a kind of motion sensor, gravity accelerometer can detect in all directions(Generally Three axis)The size of acceleration can detect that size and the direction of gravity, can be used to identify the application of terminal posture when static(Than Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function(Such as pedometer, percussion)Deng;Extremely In other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared sensors that terminal 1100 can also configure, herein It repeats no more.

Voicefrequency circuit 160, loud speaker 161, microphone 162 can provide the audio interface between user and terminal 1100.Sound The transformed electric signal of the audio data received can be transferred to loud speaker 161, is converted to by loud speaker 161 by frequency circuit 160 Voice signal exports;On the other hand, the voice signal of collection is converted to electric signal by microphone 162, is received by voicefrequency circuit 160 After be converted to audio data, it is such as another to be sent to through RF circuits 110 then by after the processing of audio data output processor 180 Terminal, or audio data is exported to memory 120 to be further processed.Voicefrequency circuit 160 is also possible that earplug is inserted Hole, to provide the communication of peripheral hardware earphone and terminal 1100.

WiFi belongs to short range wireless transmission technology, and terminal 1100 can help user to receive and dispatch electricity by WiFi module 170 Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Figure 15 shows Go out WiFi module 170, but it is understood that, and it is not belonging to must be configured into for terminal 1100, it completely can be according to need It to be omitted in the range for the essence for not changing invention.

Processor 180 is the control centre of terminal 1100, utilizes each portion of various interfaces and the entire terminal of connection Point, by running or execute the software program and/or module that are stored in memory 120, and calls and be stored in memory 120 Interior data execute the various functions and processing data of terminal 1100, to carry out integral monitoring to terminal.Optionally, it handles Device 180 may include one or more processing cores;Preferably, processor 180 can integrate application processor and modulation /demodulation processing Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 180.

Terminal 1100 further includes the power supply 190 powered to all parts(Such as battery), it is preferred that power supply can pass through electricity Management system and processor 180 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.Power supply 190 can also include one or more direct current or AC power, recharging system, power supply event Hinder the random components such as detection circuit, power supply changeover device or inverter, power supply status indicator.

Although being not shown, terminal 1100 can also include camera, bluetooth module etc., and details are not described herein.Specifically at this In embodiment, the display unit of terminal is touch-screen display, terminal further include have memory and one or more than one Program, one of them either more than one program be stored in memory and be configured to by one or more than one Device is managed to execute.The one or more programs include instructions for performing the following operations:

The resource sharing information that the corresponding terminal of the first user is sent is received, resource sharing information is corresponding by the first user After terminal to server submits the user information of the user information of the first user, resource identification information and second user, by taking Business device generates and is back to the corresponding terminal of the first user, wherein resource is the resource opened to the first user;

Resource is got according to resource sharing information.

Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of terminal, also include instructions for performing the following operations:According to resource Sharing information gets resource, including:

The resource that the identification information for carrying second user is sent to server according to resource sharing information gets request, makes clothes Business device determines second user with after getting the permission of resource according to the identification information of second user, and return is believed according to resource sharing Cease the resource pickup information generated;

The resource pickup information that server returns is received, and resource is got according to resource pickup information.

Terminal provided in an embodiment of the present invention, the terminal provided through the embodiment of the present invention, by receiving the first user couple The resource sharing information that the terminal answered is sent, and the server that the first user shares is got according to resource sharing information and is used to first The resource that family opens, it is ensured that can the resource that is opened to the first user of sharing service device, the model of resource sharing can not only be expanded It encloses, and can be by sharing the flexibility of the social function of resource raising website and improving the interactivity between user.

Embodiment 11

An embodiment of the present invention provides a kind of computer readable storage medium, on which can be State computer readable storage medium included in the memory in embodiment;Can also be individualism, without supplying terminal In computer readable storage medium.There are one the computer-readable recording medium storages or more than one program, this Either more than one program is used for executing the method realized and share resource, this method packet by one or more than one processor It includes:

The resource sharing information that the corresponding terminal of the first user is sent is received, resource sharing information is corresponding by the first user After terminal to server submits the user information of the user information of the first user, resource identification information and second user, by taking Business device generates and is back to the corresponding terminal of the first user, wherein resource is the resource opened to the first user;

Resource is got according to resource sharing information.

Assuming that above-mentioned is the first possible embodiment, then provided based on the first possible embodiment Second of possible embodiment in, in the memory of terminal, also include instructions for performing the following operations:According to resource Sharing information gets resource, including:

The resource that the identification information for carrying second user is sent to server according to resource sharing information gets request, makes clothes Business device determines second user with after getting the permission of resource according to the identification information of second user, and return is believed according to resource sharing Cease the resource pickup information generated;

The resource pickup information that server returns is received, and resource is got according to resource pickup information.

Computer readable storage medium provided in an embodiment of the present invention, the terminal provided through the embodiment of the present invention, passes through The resource sharing information that the corresponding terminal of the first user is sent is received, and gets what the first user shared according to resource sharing information The resource that server is opened to the first user, it is ensured that can the resource that is opened to the first user of sharing service device, can not only expand The range that large resource is shared, and can be by sharing the flexibility of the social function of resource raising website and improving user Between interactivity.

Embodiment 12

A kind of graphical user interface is provided in the embodiment of the present invention, the graphical user interface is in terminal, the terminal Including touch-screen display, memory and one or more than one place for executing an either more than one program Manage device;The graphical user interface includes:

The resource sharing information that the corresponding terminal of the first user is sent is received, resource sharing information is corresponding by the first user After terminal to server submits the user information of the user information of the first user, resource identification information and second user, by taking Business device generates and is back to the corresponding terminal of the first user, wherein resource is the resource opened to the first user;

Resource is got according to resource sharing information.

Graphical user interface provided in an embodiment of the present invention, the terminal provided through the embodiment of the present invention, by receiving the The resource sharing information that the corresponding terminal of one user is sent, and the server that the first user shares is got according to resource sharing information The resource opened to the first user, it is ensured that can the resource that is opened to the first user of sharing service device, resource can not only be expanded The range shared, and can by share resource improve website social function flexibility and improve user between Interactivity.

Embodiment 13

Referring to Figure 16, an embodiment of the present invention provides a kind of system for sharing resource, which includes:First terminal 1201, server 1202 and second terminal 1203;

Wherein, the terminal that such as above-described embodiment three provides of first terminal 1201, specifically refers to the content of above-described embodiment three, Details are not described herein again;

The server that such as above-described embodiment seven provides of server 1202, specifically refers to the content of above-described embodiment seven, herein It repeats no more;

The terminal that such as above-described embodiment nine provides of second terminal 1203, specifically refers to the content of above-described embodiment nine, herein It repeats no more.

System provided in an embodiment of the present invention is opened in server to the first user by the corresponding terminal of the first user The resource for needing to share is determined in resource, and identification information, the resource identification information and second of the first user are submitted to server The user information of user makes server determine that the first user has according to the identification information and resource identification information of the first user It after having the permission for sharing the resource, generates and returns to resource sharing information so that the corresponding terminal of the first user can be by resource Sharing information is forwarded to the corresponding terminal of second user, it is ensured that the corresponding terminal of the first user can be to second user sharing service The resource that device is opened to the first user can not only expand the range of resource sharing, and can improve net by sharing resource Interactivity between the flexibility and raising user of the social function of standing.

It should be noted that:The corresponding terminal of the first user, server and the second user that above-described embodiment provides correspond to Terminal when sharing resource, only the example of the division of the above functional modules, can be according to need in practical application It wants and completes above-mentioned function distribution by different function modules, i.e., the internal structure of equipment is divided into different function moulds Block, to complete all or part of the functions described above.In addition, the corresponding terminal of the first user of above-described embodiment offer, The corresponding terminal of server, second user belongs to the embodiment of the method for sharing resource sharing resource and share the system of resource Same design, specific implementation process refer to embodiment of the method, and which is not described herein again.

The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.

One of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment can pass through hardware It completes, relevant hardware can also be instructed to complete by program, the program can be stored in a kind of computer-readable In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..

The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all the present invention spirit and Within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention.

Claims (21)

1. a kind of method for sharing resource, which is characterized in that the method includes:
It determines the resource for needing to share, and obtains the first user and share the resource sharing instruction of the resource and first use The second user for sharing the resource that family determines in the relation chain of first user, wherein the resource is to described The resource that first user opens;
Submit the identification information of first user, the user information of resource identification information and the second user;
The globally unique resource sharing information that server returns is received, and forwards the resource sharing information, wherein the clothes Business device determines whether first user reaches according to the identification information of first user and shares hierarchical resource;If described One user, which reaches, shares hierarchical resource, then determines whether that first user opens the money according to the resource identification information Source;If it is determined that opening the resource to first user, it is determined that first user has the power for sharing the resource Limit;The server determine first user have share the permission of the resource after, according to the use of first user The user information of family information, resource identification information and the second user generates the resource sharing information.
2. according to the method described in claim 1, it is characterized in that, the determining resource for needing to share, including:
Detection scans the resource scan instruction of the corresponding Quick Response Code of the resource, and according to described in resource scan instruction scanning The corresponding Quick Response Code of resource, the resource that the corresponding resource of the Quick Response Code of scanning is determined as needing to share;
The resource sharing instruction for obtaining the first user and sharing the resource, including:
The corresponding resource sharing page of the resource is shown according to the Quick Response Code of scanning, and is obtained in the resource sharing page First user shares the resource sharing instruction of the resource.
3. method according to claim 1 or 2, which is characterized in that the forwarding resource sharing information, including:
Calls application interface API forwards the resource sharing information.
4. a kind of method for sharing resource, which is characterized in that the method includes:
Receive the identification information of the first user, resource identification information and share resource second user user information, wherein The resource is the resource opened to first user, and the second user is by first user first user's It is determined in relation chain;
It determines whether first user has according to the identification information of first user and the resource identification information to divide Enjoy the permission of the resource;
If it is determined that first user, which has, shares the permission of the resource, then according to the user information of first user, The user information of resource identification information and the second user generates globally unique resource sharing information;
Return to the resource sharing information;
Wherein, the identification information and the resource identification information according to first user determines that first user is It is no have share the permission of the resource, including:
It determines whether first user reaches according to the identification information of first user and shares hierarchical resource;
If first user, which reaches, shares hierarchical resource, described first is determined whether according to the resource identification information User opens the resource;
If it is determined that opening the resource to first user, it is determined that first user has the power for sharing the resource Limit.
5. according to the method described in claim 4, it is characterized in that, user information, the resource according to first user The user information of identification information and the second user generates globally unique resource sharing information, including:
The user information of the user information of first user, resource identification information and the second user is generated into the overall situation only One digital signature obtains the resource sharing information for carrying the globally unique digital signature.
6. according to the method described in claim 4, it is characterized in that, after the return resource sharing information, further include:
The resource for receiving the identification information for carrying second user gets request, and is determined according to the identification information of the second user Whether the second user has the permission for getting the resource;
If it is determined that the second user has the permission for getting the resource, then resource is generated according to the resource sharing information Pickup information, and send the resource pickup information.
7. according to the method described in claim 4, it is characterized in that, the determination first user, which has, shares the resource Permission after, further include:
The current state of the resource is obtained according to the resource identification information;
Determine whether that first user shares the resource according to the current state;
If it is determined that first user is allowed to share the resource, then the user information according to first user, money are executed The user information of source identification information and the second user generates the step of globally unique resource sharing information.
8. the method according to the description of claim 7 is characterized in that after the return resource sharing information, further include:
The current state of the resource whether is updated by the state that the second user is got according to the resource.
9. a kind of method for sharing resource, which is characterized in that the method includes:
Receive the resource sharing information that server is back to the corresponding terminal of the first user, wherein the server is according to The identification information of first user determines whether first user reaches and shares hierarchical resource;If first user reaches point Hierarchical resource is enjoyed, then determines whether that first user opens the resource according to the resource identification information;If it is determined that The resource is opened to first user, it is determined that first user has the permission for sharing the resource;In the clothes After business device determines that first user has the permission for sharing the resource, submitted according to by the corresponding terminal of first user The user information of first user, the user information of the resource identification information and second user generate the resource point Information is enjoyed, resource is the resource that the server is opened to first user, and the second user is existed by first user It is determined in the relation chain of first user;
The resource is got according to the resource sharing information.
10. according to the method described in claim 9, it is characterized in that, described get the money according to the resource sharing information Source, including:
The resource that the identification information for carrying second user is sent according to the resource sharing information gets request;
It receives and determines the second user with root after the permission for getting the resource according to the identification information of the second user The resource pickup information for generating and returning according to the resource sharing information, and the money is got according to the resource pickup information Source.
11. a kind of terminal, which is characterized in that the terminal includes:
Determining module, the resource shared for determining needs, wherein the resource is the resource opened to the first user;
Acquisition module, for obtaining, first user shares the resource sharing instruction of the resource and first user exists The second user for sharing the resource determined in the relation chain of first user;
Module is submitted, for submitting the identification information of first user, the use of resource identification information and the second user Family information;
Receiving module, the globally unique resource sharing information for receiving server return, wherein the server is according to institute The identification information for stating the first user determines whether first user reaches and shares hierarchical resource;If first user reaches Share hierarchical resource, then determines whether that first user opens the resource according to the resource identification information;If really It orients first user and opens the resource, it is determined that first user has the permission for sharing the resource;Described After server determines that first user has the permission for sharing the resource, according to the user information of first user, money The user information of source identification information and the second user generates the resource sharing information;
Forwarding module, for forwarding the resource sharing information.
12. terminal according to claim 11, which is characterized in that the determining module, including:
Detection unit, for detecting the resource scan instruction for scanning the corresponding Quick Response Code of the resource;
Scanning element, for scanning the Quick Response Code according to the resource scan instruction;
Determination unit, the resource for the corresponding resource of the Quick Response Code of scanning to be determined as needing to share;
The acquisition module, including:
Display unit, for showing the corresponding resource sharing page of the resource according to the Quick Response Code of scanning;
Acquiring unit refers to for obtaining the resource sharing that first user shares the resource in the resource sharing page It enables.
13. terminal according to claim 11 or 12, which is characterized in that the forwarding module, for calling application program Interface API forwards the resource sharing information.
14. a kind of server, which is characterized in that the server includes:
First receiving module, identification information, resource identification information and the second use for sharing resource for receiving the first user The user information at family, wherein the resource is the resource opened to first user, and the second user is used by described first Family determines in the relation chain of first user;
First determining module, for determining described according to the identification information and the resource identification information of first user Whether one user has the permission for sharing the resource;
First generation module, for when determine first user have share the resource permission when, according to described first The user information of the user information of user, resource identification information and the second user generates globally unique resource sharing letter Breath;
Module is returned to, for returning to the resource sharing information;
Wherein, first determining module, including:
First determination unit shares money for determining whether first user reaches according to the identification information of first user Source grade;
Second determination unit, it is true according to the resource identification information for when first user reaches and shares hierarchical resource It is fixed whether to first user to open the resource;
Second determination unit, for when determination opens the resource to first user, determining that first user has Share the permission of the resource.
15. server according to claim 14, which is characterized in that first generation module is used for described first The user information of the user information of user, resource identification information and the second user generates globally unique digital signature, Obtain carrying the resource sharing information of the globally unique digital signature.
16. server according to claim 14, which is characterized in that the server further includes:
Second receiving module, the resource for receiving the identification information for carrying second user get request;
Second determining module gets institute for determining whether the second user has according to the identification information of the second user State the permission of resource;
Second generation module, for when determine the second user have get the resource permission when, according to the resource Sharing information generates resource pickup information;
Sending module, for sending the resource pickup information.
17. server according to claim 14, which is characterized in that the server further includes:
Acquisition module, the current state for obtaining the resource according to the resource identification information;
Third determining module, for determining whether that first user shares the resource according to the current state;
First determining module, for when determine allow first user to share the resource when, execute according to described the The user information of the user information of one user, resource identification information and the second user generates globally unique resource sharing The step of information.
18. server according to claim 17, which is characterized in that the server further includes:
Update module, the current shape for whether being updated by the state that the second user is got the resource according to the resource State.
19. a kind of terminal, which is characterized in that the terminal includes:
Receiving module is back to the resource sharing information of the corresponding terminal of the first user for receiving server, wherein the clothes Business device determines whether first user reaches according to the identification information of first user and shares hierarchical resource;If described One user, which reaches, shares hierarchical resource, then determines whether that first user opens the money according to the resource identification information Source;If it is determined that opening the resource to first user, it is determined that first user has the power for sharing the resource Limit;The server determine first user have share the permission of the resource after, according to by first user couple The user information life of the user information, the resource identification information and second user of first user that the terminal answered is submitted At the resource sharing information, resource is the resource that the server is opened to first user, and the second user is by institute The first user is stated to determine in the relation chain of first user;
Module is got, for getting the resource according to the resource sharing information.
20. terminal according to claim 19, which is characterized in that it is described to get module, including:
Transmission unit, the resource for sending the identification information for carrying second user according to the resource sharing information, which is got, asks It asks;
Receiving unit, for receive according to the identification information of the second user determine the second user have get the money The resource pickup information for generating and returning according to the resource sharing information after the permission in source, and according to the resource pickup information Get the resource.
21. a kind of system for sharing resource, which is characterized in that the system comprises:First terminal, server and second terminal;
Wherein, terminal of the first terminal as described in any one of claim 11 to 13 claim;
Server of the server as described in any one of claim 14 to 18 claim;
Terminal of the second terminal as described in claim 19 or 20.
CN201410111494.0A 2014-03-24 2014-03-24 Share method, terminal, server and the system of resource CN104618217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410111494.0A CN104618217B (en) 2014-03-24 2014-03-24 Share method, terminal, server and the system of resource

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410111494.0A CN104618217B (en) 2014-03-24 2014-03-24 Share method, terminal, server and the system of resource

Publications (2)

Publication Number Publication Date
CN104618217A CN104618217A (en) 2015-05-13
CN104618217B true CN104618217B (en) 2018-09-04

Family

ID=53152505

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410111494.0A CN104618217B (en) 2014-03-24 2014-03-24 Share method, terminal, server and the system of resource

Country Status (1)

Country Link
CN (1) CN104618217B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105391622B (en) * 2015-12-07 2019-08-23 腾讯科技(深圳)有限公司 Share the method and system of resource in instant messaging or social networking application
CN105610949A (en) * 2015-12-30 2016-05-25 腾讯科技(深圳)有限公司 Method, device and system for sharing resource data permission
CN106096343B (en) * 2016-05-27 2019-09-13 腾讯科技(深圳)有限公司 Message access control method and equipment
CN105847133A (en) * 2016-05-31 2016-08-10 成都西部尚高科技有限公司 Method and device for information sharing
CN106412109A (en) * 2016-11-10 2017-02-15 宇龙计算机通信科技(深圳)有限公司 Information synchronization method and information synchronization system
CN107967652B (en) * 2017-11-15 2019-07-26 维沃移动通信有限公司 A kind of information sharing method sends lateral terminal, receives lateral terminal and server

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179592A (en) * 2007-11-28 2008-05-14 浙江大学 Method for mobile equipment to access to network
CN101771676A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Setting and authentication method for cross-domain authorization and relevant device and system
CN102195957A (en) * 2010-03-19 2011-09-21 华为技术有限公司 Resource sharing method, device and system
CN102843366A (en) * 2012-08-13 2012-12-26 北京百度网讯科技有限公司 Network resource access permission control method and device
CN103023684A (en) * 2011-09-26 2013-04-03 腾讯科技(深圳)有限公司 Method, device and system for network information management
CN103166783A (en) * 2011-12-14 2013-06-19 华为技术有限公司 Resource control method and resource control device
CN103428235A (en) * 2012-05-15 2013-12-04 上海博路信息技术有限公司 Data exchange system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4186456B2 (en) * 2001-11-28 2008-11-26 沖電気工業株式会社 Distributed file sharing system and control method thereof
CN100544305C (en) * 2007-03-16 2009-09-23 钱晓东 User information sharing and controlling method based on immediate communication platform
CN101771532B (en) * 2008-12-31 2012-07-18 华为技术有限公司 Method, device and system for realizing resource sharing
CN102413151B (en) * 2010-09-20 2015-05-27 北京搜狗科技发展有限公司 Network resource sharing method and system
CN103581272A (en) * 2012-08-08 2014-02-12 腾讯科技(深圳)有限公司 File transfer method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179592A (en) * 2007-11-28 2008-05-14 浙江大学 Method for mobile equipment to access to network
CN101771676A (en) * 2008-12-31 2010-07-07 华为技术有限公司 Setting and authentication method for cross-domain authorization and relevant device and system
CN102195957A (en) * 2010-03-19 2011-09-21 华为技术有限公司 Resource sharing method, device and system
CN103023684A (en) * 2011-09-26 2013-04-03 腾讯科技(深圳)有限公司 Method, device and system for network information management
CN103166783A (en) * 2011-12-14 2013-06-19 华为技术有限公司 Resource control method and resource control device
CN103428235A (en) * 2012-05-15 2013-12-04 上海博路信息技术有限公司 Data exchange system
CN102843366A (en) * 2012-08-13 2012-12-26 北京百度网讯科技有限公司 Network resource access permission control method and device

Also Published As

Publication number Publication date
CN104618217A (en) 2015-05-13

Similar Documents

Publication Publication Date Title
CN104113787B (en) Based on the comment method of program, terminal, server and system
CN103327102B (en) A kind of method and apparatus recommending application program
CN103905885A (en) Video live broadcast method and device
CN104869468A (en) Method and apparatus for displaying screen information
CN103414766A (en) Method, device and terminal equipment for installing application
US9703971B2 (en) Sensitive operation verification method, terminal device, server, and verification system
CN104618440A (en) Intelligent equipment control method and device
CN104468464B (en) verification method, device and system
CN104518953A (en) Message deleting method, instant messaging terminal and system
CN103402190B (en) Method and device for selecting network as well as terminal
CN103365419B (en) A kind of method and apparatus triggering alarm clock control command
CN103294515B (en) A kind of methods, devices and systems for obtaining application program
CN104219617B (en) Service acquisition method and device
CN104967679B (en) Information recommendation system, method and device
CN105096157B (en) Virtual objects method of reseptance, sending method, exchange method and equipment
CN103389863B (en) A kind of display control method and device
CN104133832B (en) The recognition methods of pirate application and device
CN104717341A (en) Message prompting method and terminal
CN103473092B (en) A kind of download the processing method of application, device and terminal unit
CN104850434B (en) Multimedia resource method for down loading and device
CN109347722A (en) Interactive system, method, client and background server
CN104978115A (en) Content display method and device
CN103488403A (en) Switching method and device for interface layout and mobile terminal
CN105681872A (en) Method and device for information interaction in live broadcasting process
CN105787776A (en) Information processing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant