CN104348830B - Resource Exchange methods, devices and systems - Google Patents

Resource Exchange methods, devices and systems Download PDF

Info

Publication number
CN104348830B
CN104348830B CN201410546493.9A CN201410546493A CN104348830B CN 104348830 B CN104348830 B CN 104348830B CN 201410546493 A CN201410546493 A CN 201410546493A CN 104348830 B CN104348830 B CN 104348830B
Authority
CN
China
Prior art keywords
client
resource
exchange
item
exchanged
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410546493.9A
Other languages
Chinese (zh)
Other versions
CN104348830A (en
Inventor
汪崇儒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201410546493.9A priority Critical patent/CN104348830B/en
Publication of CN104348830A publication Critical patent/CN104348830A/en
Application granted granted Critical
Publication of CN104348830B publication Critical patent/CN104348830B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of Resource Exchange methods, devices and systems, belong to field of computer technology.Described Resource Exchange method comprises: obtain the first client needs and exchange to the first virtual resource of the second client; Obtain the second virtual resource that the first client needs to obtain from the second client exchange; Resource Exchange request is sent to server according to the first virtual resource and the second virtual resource, Resource Exchange request comprises the resource identification of the identify label of the first client, the identify label of the second client, the resource identification of the first virtual resource and the second virtual resource, Resource Exchange request is used to indicate server and creates item to be exchanged according to Resource Exchange request, and carries out Resource Exchange according to item to be exchanged to the first client and the second client; Solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete.

Description

Resource Exchange methods, devices and systems
Technical field
The present invention relates to field of computer technology, particularly a kind of Resource Exchange methods, devices and systems.
Background technology
When user finishes the work in the application, server can distribute certain virtual resource as award to user.And in order to increase the interaction between good friend, some application programs additionally provide the function that can exchange virtual resource between good friend.
A kind of relevant Resource Exchange method comprises: user A and user B consults the required virtual resource exchanged by instant messaging program.Consulting successfully, user A is sent by the customer end A used and carries out the Resource Exchange request of Resource Exchange to server with user B; Server forwards the customer end B that this Resource Exchange request uses to user B.After customer end B receives Resource Exchange request, customer end A and customer end B simultaneously showing resource exchange the page, and customer end B receives the virtual resource B that user B inputs at the Resource Exchange page, sends this virtual resource B to server.Customer end A receives the virtual resource A that user A inputs at the Resource Exchange page, sends virtual resource A to server.Server controls customer end A and customer end B show virtual resource A and virtual resource B at the Resource Exchange page simultaneously, and both sides confirm that errorless rear transmission confirmation is to server.Virtual resource A to be transferred to the resource account of user B by server from the resource account of user A after receiving the confirmation information, and virtual resource B is transferred to the resource account of user A from the resource account of user B.
Realizing in process of the present invention, inventor finds that above-mentioned technology at least exists following problem: the virtual resource needing negotiation to exchange due to user A and user B, and errorless rear server could perform exchange to need both sides to confirm in exchange process simultaneously, so such scheme exchange both sides must be simultaneously online, when wherein a side is not online, this exchange can not complete.
Summary of the invention
In order to solve in prior art exchange both sides must be simultaneously online, when wherein a side is online, the problem that Resource Exchange can not complete, embodiments provides a kind of Resource Exchange methods, devices and systems.Described technical scheme is as follows:
First aspect, provides a kind of Resource Exchange method, and in the first client, described method comprises:
Obtain described first client to need to exchange to the first virtual resource of the second client;
Obtain the second virtual resource that described first client needs to obtain from described second client exchange;
Resource Exchange request is sent to server according to described first virtual resource and described second virtual resource, described Resource Exchange request comprises the resource identification of the identify label of described first client, the identify label of described second client, the resource identification of described first virtual resource and described second virtual resource, described Resource Exchange request is used to indicate described server and creates item to be exchanged according to described Resource Exchange request, and carries out Resource Exchange according to described item to be exchanged to described first client and described second client.
Second aspect, provides a kind of Resource Exchange method, and in server, described method comprises:
Obtain and correspond to the item to be exchanged of the second client, described item to be exchanged comprises the identify label of described second client, request and described second client carries out the identify label of the first client of Resource Exchange, described first client needs exchange the second virtual resource obtained from described second client exchange to the resource identification of the first virtual resource of described second client and described first client needs resource identification;
Send described item to be exchanged to described second client;
The confirmation of item to be exchanged is stated in the confirmation clearing house receiving described second client transmission;
According to described item to be exchanged, Resource Exchange is carried out to described first client and described second client.
The third aspect, provides a kind of Resource Exchange method, and in the second client, described method comprises:
The item to be exchanged that reception server sends, described item to be exchanged comprises the identify label of described second client, request and described second client carries out the identify label of the first client of Resource Exchange, described first client needs exchange the second virtual resource obtained from described second client exchange to the resource identification of the first virtual resource of described second client and described first client needs resource identification;
Send the confirmation extremely described server for confirming to exchange described item to be exchanged, described confirmation is used to indicate described server and carries out Resource Exchange according to described item to be exchanged to described first client and described second client.
Fourth aspect, provides a kind of resource exchange device, and in the first client, described device comprises:
First acquisition module, needs to exchange to the first virtual resource of the second client for obtaining described first client;
Second acquisition module, for obtaining the second virtual resource that described first client needs to obtain from described second client exchange;
Exchange request sending module, described second virtual resource got for described first virtual resource that gets according to described first acquisition module and described second acquisition module sends Resource Exchange request to server, described Resource Exchange request comprises the identify label of described first client, the identify label of described second client, the resource identification of described first virtual resource and the resource identification of described second virtual resource, described Resource Exchange request is used to indicate described server and creates item to be exchanged according to described Resource Exchange request, and according to described item to be exchanged, Resource Exchange is carried out to described first client and described second client.
5th aspect, provides a kind of resource exchange device, and in server, described device comprises:
Item acquisition module, for obtaining the item to be exchanged corresponding to the second client, described item to be exchanged comprises the identify label of described second client, request and described second client carries out the identify label of the first client of Resource Exchange, described first client needs exchange the second virtual resource obtained from described second client exchange to the resource identification of the first virtual resource of described second client and described first client needs resource identification;
Item sending module, for sending item described to be exchanged extremely described second client that described item acquisition module gets;
Information receiving module, the confirmation of item to be exchanged is stated in the confirmation clearing house sent for receiving described second client;
Resource Exchange module, for carrying out Resource Exchange according to described item to be exchanged to described first client and described second client.
6th aspect, provides a kind of resource exchange device, and in the second client, described device comprises:
Item receiver module, for the item to be exchanged that reception server sends, described item to be exchanged comprises the identify label of described second client, request and described second client carries out the identify label of the first client of Resource Exchange, described first client needs exchange the second virtual resource obtained from described second client exchange to the resource identification of the first virtual resource of described second client and described first client needs resource identification;
Information sending module, for sending the confirmation extremely described server for confirming to exchange described item to be exchanged, described confirmation is used to indicate described server and carries out Resource Exchange according to described item to be exchanged to described first client and described second client.
7th aspect provides a kind of resource exchange system, and it comprises the first client, server and the second client;
Described first client comprises the various possible resource exchange device described in implementation of fourth aspect and fourth aspect;
Described server comprises the various possible resource exchange device described in implementation of the 5th aspect and the 5th aspect;
Described second client comprises the various possible resource exchange device described in implementation of the 6th aspect and the 6th aspect.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is:
First client obtains to be needed to exchange the second virtual resource obtained from the second client exchange to the first virtual resource of the second client and needs, and then send the resource identification comprising the first virtual resource, the resource identification of the second virtual resource, the Resource Exchange request of the identify label of the first client and the identify label of the second client is to server, server creates item to be exchanged according to Resource Exchange request, store item to be exchanged to database, and then when needs carry out Resource Exchange to the first client and the second client, server directly can select the item to be exchanged corresponding to the second client from database, after obtaining the second client and confirming the confirmation exchanged, Resource Exchange is carried out to the first client and the second client, solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete, reach the first client and the second client can realize asynchronous exchange, also namely both sides without the need to can complete the effect of exchange online simultaneously.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the structural representation of a kind of implementation environment involved in the present invention;
Fig. 2 is the method flow diagram of the Resource Exchange method that one embodiment of the invention provides;
Fig. 3 is the method flow diagram of the Resource Exchange method that another embodiment of the present invention provides;
Fig. 4 is the method flow diagram of the Resource Exchange method that yet another embodiment of the invention provides;
Fig. 5 is the method flow diagram of the Resource Exchange method that yet another embodiment of the invention provides;
Fig. 6 A is the method flow diagram of the Resource Exchange method that yet another embodiment of the invention provides;
Fig. 6 B is the first client that yet another embodiment of the invention provides display schematic diagram when obtaining the first virtual resource;
Fig. 6 C is the first client that yet another embodiment of the invention provides display schematic diagram when obtaining the first virtual resource;
Fig. 7 is the block diagram of the resource exchange device that one embodiment of the invention provides;
Fig. 8 is the block diagram of the resource exchange device that another embodiment of the present invention provides;
Fig. 9 is the block diagram of the resource exchange device that yet another embodiment of the invention provides;
Figure 10 is the block diagram of the resource exchange device that yet another embodiment of the invention provides;
Figure 11 is the block diagram of the resource exchange device that yet another embodiment of the invention provides.
Embodiment
In order to make the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, the present invention is described in further detail, and obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making other embodiments all obtained under creative work prerequisite, belong to the scope of protection of the invention.
For the ease of understanding, first simple introduction is done to each vocabulary of terms involved by each embodiment of the present invention.
Virtual resource can comprise numerical value resource, virtual objects resource or both combinations.Wherein:
Numerical value resource refers to the resource that such as empirical value, virtual fruit, integration or gold coin etc. characterize by numerical values recited.
Virtual objects resource refers to the resource of such as course resources, learning materials, virtual dress ornament or virtual equipment and so on.
Please refer to Fig. 1, it illustrates the structural representation of a kind of implementation environment involved by each embodiment of the present invention.As shown in Figure 1, this implementation environment can comprise the first client 110, server 120 and the second client 130.
First client 110 and the second client 130 be run in the terminal, the client that provided by service provider.First client 110 can be connected with server 120 by wired or wireless network with the second client 130, and then realizes the Resource Exchange between the first client 110 and the second client 130 by server 120.
Server 120 is servers that service provider provides, for being combined the service for user provides service provider to provide with the first client 110 and the second client 130.
Please refer to Fig. 2, it illustrates the method flow diagram of the Resource Exchange method that one embodiment of the invention provides, the present embodiment is used for illustrating in the first client 110 shown in Fig. 1 with this Resource Exchange method.As shown in Figure 2, this Resource Exchange method can comprise:
Step 201, obtaining the first client needs to exchange to the first virtual resource of the second client;
Step 202, obtains the second virtual resource that the first client needs to obtain from the second client exchange;
Step 203, sends Resource Exchange request to server according to the first virtual resource and the second virtual resource.
Resource Exchange request comprises the resource identification of the identify label of the first client, the identify label of the second client, the resource identification of the first virtual resource and the second virtual resource, Resource Exchange request is used to indicate server and creates item to be exchanged according to Resource Exchange request, and carries out Resource Exchange according to item to be exchanged to the first client and the second client.
In sum, the Resource Exchange method that the present embodiment provides, first client obtains to be needed to exchange the second virtual resource obtained from the second client exchange to the first virtual resource of the second client and needs, and then send the resource identification comprising the first virtual resource, the resource identification of the second virtual resource, the Resource Exchange request of the identify label of the first client and the identify label of the second client is to server, server creates item to be exchanged according to Resource Exchange request, store item to be exchanged to database, and then when needs carry out Resource Exchange to the first client and the second client, server directly can select the item to be exchanged corresponding to the second client from database, after obtaining the second client and confirming the confirmation exchanged, Resource Exchange is carried out to the first client and the second client, solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete, reach the first client and the second client can realize asynchronous exchange, also namely both sides without the need to can complete the effect of exchange online simultaneously.
Please refer to Fig. 3, it illustrates the method flow diagram of the Resource Exchange method that another embodiment of the present invention provides, the present embodiment is used for illustrating in the server 120 shown in Fig. 1 with this Resource Exchange method.As shown in Figure 3, this Resource Exchange method comprises:
Step 301, obtains the item to be exchanged corresponding to the second client;
Wherein, item to be exchanged comprises the identify label of the second client, request and the second client carries out the identify label of the first client of Resource Exchange, the first client needs exchange the second virtual resource obtained from the second client exchange to the resource identification of the first virtual resource of the second client and the first client needs resource identification;
Step 302, sends item to the second client to be exchanged;
Step 303, the confirmation receiving the second client transmission exchanges the confirmation of item to be exchanged;
Step 304, carries out Resource Exchange according to item to be exchanged to the first client and the second client.
In sum, the Resource Exchange method that the present embodiment provides, by directly obtaining the item to be exchanged corresponding to the second client, item to be exchanged comprises the identify label of the resource identification of the first virtual resource, the resource identification of the second virtual resource, the identify label of the first client and the second client, send item to the second client to be exchanged, and then according to item to be exchanged, Resource Exchange is carried out to the first client and the second client after obtaining the second client and confirming the confirmation exchanged; Solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete; Reach the first client and the second client can realize asynchronous exchange, also namely both sides without the need to can complete the effect of exchange online simultaneously.
Please refer to Fig. 4, it illustrates the method flow diagram of the Resource Exchange method that another embodiment of the present invention provides, the present embodiment is used for illustrating in the second client 130 shown in Fig. 1 with this Resource Exchange method.As shown in Figure 4, this Resource Exchange method comprises:
Step 401, the item to be exchanged that reception server sends;
Item to be exchanged comprises the identify label of the second client, request and the second client carries out the identify label of the first client of Resource Exchange, the first client needs exchange the second virtual resource obtained from the second client exchange to the resource identification of the first virtual resource of the second client and the first client needs resource identification;
Step 402, send for confirming that the confirmation exchanging item to be exchanged is to server, confirmation is used to indicate server and carries out Resource Exchange according to item to be exchanged to the first client and the second client.
In sum, the Resource Exchange method that the present embodiment provides, the identify label comprising the first client sent by reception server, the first client needs exchange the item to be exchanged of the resource identification of the second virtual resource obtained from the second client exchange to the resource identification of the first virtual resource of the second client and the first client needs, and sending confirmation to server when agreeing to exchange, server directly can carry out Resource Exchange to the first client and the second client after receiving the confirmation information; Solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete; Reach the first client and the second client can realize asynchronous exchange, also namely both sides without the need to can complete the effect of exchange online simultaneously.
Please refer to Fig. 5, it illustrates the method flow diagram of the Resource Exchange method that yet another embodiment of the invention provides, the present embodiment is used for illustrating in the implementation environment shown in Fig. 1 with this Resource Exchange method.As shown in Figure 5, this Resource Exchange method comprises:
Step 501, the first client obtains the first client to be needed to exchange to the first virtual resource of the second client;
Step 502, the first client obtains the second virtual resource that the first client needs to obtain from the second client exchange;
Step 503, the first client sends Resource Exchange request to server according to the first virtual resource and the second virtual resource;
Resource Exchange request comprises the resource identification of the identify label of the first client, the identify label of the second client, the resource identification of the first virtual resource and the second virtual resource, Resource Exchange request is used to indicate server and creates item to be exchanged according to Resource Exchange request, and carries out Resource Exchange according to item to be exchanged to the first client and the second client.
Step 504, server receives the Resource Exchange request that the first client sends;
Step 505, server creates item to be exchanged according to Resource Exchange request;
Step 506, the item to be exchanged that server stores creates is to database;
Step 507, selects the item to be exchanged corresponding to the second client in the item to be exchanged that server stores from database;
Step 508, server sends item to the second client to be exchanged;
Step 509, the item to be exchanged that the second client reception server sends;
Step 510, the second client sends and confirms that the confirmation exchanging item to be exchanged is to server;
Step 511, server receives the confirmation that the second client sends and exchanges the confirmation of item to be exchanged;
Step 512, server carries out Resource Exchange according to item to be exchanged to the first client and the second client.
In sum, the Resource Exchange method that the present embodiment provides, first client obtains to be needed to exchange the second virtual resource obtained from the second client exchange to the first virtual resource of the second client and needs, and then send the resource identification comprising the first virtual resource, the resource identification of the second virtual resource, the Resource Exchange request of the identify label of the first client and the identify label of the second client is to server, server creates item to be exchanged according to Resource Exchange request, store item to be exchanged to database, and then when needs carry out Resource Exchange to the first client and the second client, server directly can select the item to be exchanged corresponding to the second client from database, after obtaining the second client and confirming the confirmation exchanged, Resource Exchange is carried out to the first client and the second client, solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete, reach the first client and the second client can realize asynchronous exchange, also namely both sides without the need to can complete the effect of exchange online simultaneously.
Please refer to Fig. 6 A, it illustrates the method flow diagram of the Resource Exchange method that yet another embodiment of the invention provides, the present embodiment is used for illustrating in the implementation environment shown in Fig. 1 with this Resource Exchange method.As shown in Figure 6A, this Resource Exchange method comprises:
Step 601, the first client obtains the first client to be needed to exchange to the first virtual resource of the second client;
When user A needs to initiate the Resource Exchange with user B, the first client that user A can be used by oneself obtains the first client to be needed to exchange to the first virtual resource of second client of user B.
This step can comprise at least one in following two steps:
The first, receive user input for represent first client needs exchange to the first numerical value of the quantity of the numerical value resource of the second client;
In the Resource Exchange interface that user A can show in the first client, input needs to exchange to the quantity of the numerical value resource of user B, and accordingly, the first client can receive the first numerical value of the quantity for characterizing numerical value resource that user A inputs.
Such as, please refer to Fig. 6 B, when user A need use 289 integrations and article 2 exchange subscriber the article 7 of B time, user A can input the quantity 289 of the integration of needs in the first client.
The second, from the commutative virtual objects resource of the first client, select at least one virtual objects resource.
When user A also needs to use virtual objects resource and user B to exchange, the first client can also select at least one virtual objects resource from the commutative virtual objects resource of the first client.
First client can show the commutative virtual objects resource of the first client, and after the commutative virtual objects resource of displaying, user A can be applied for the selection signal selecting at least one virtual objects resource from the virtual objects resource of showing.The virtual objects resource that user A selects by the first client exchanges to the virtual objects resource of user B as needs.
Such as, user A selects article 2 from the commutative virtual objects resource of showing, then article 2 can be defined as the first client by the first client needs to exchange to the virtual objects resource of the second client.
When actual realization, this step can specifically comprise:
(1), the first client sends first and obtains request to server, and first obtains request is used for being in the virtual objects resource of commutative state in each virtual objects resource of acquisition request first client;
When the first client showing resource exchanges the initial interface at interface, barter hurdle place in Resource Exchange interface can be all empty, user A clicks oneself barter hurdle, after the first client receives click signal, sends first and obtains request to server.
(2), server receive that the first client sends first obtain request, first obtains request is used for being in the virtual objects resource of commutative state in each virtual objects resource of acquisition request first client;
(3), server lookup first obtains the virtual objects resource corresponding to request;
After server receives the first acquisition request of the first client transmission, server can inquire about the virtual objects resource being in commutative state in all virtual objects resources of the first client.
(4), server returns virtual objects resource to the first client inquired.
(5), the virtual objects resource that returns of the first client reception server;
(6), the first client selects at least one virtual objects resource from the virtual objects resource received.
After the first client receives the virtual objects resource that server returns, the first client can show the virtual objects resource received.User A selects at least one virtual objects resource from the virtual objects resource of showing, accordingly, the virtual objects resource that user A selects by the first client exchanges to the virtual objects resource of user B as needs.
Step 602, the first client obtains the second virtual resource that the first client needs to obtain from the second client exchange;
First client can also obtain the first client to be needed from the second client, exchange the second virtual resource obtained.
When actual realization, this step can comprise at least one in following two steps:
The first, receive user input for representing that the first client needs exchange the numerical value of the quantity of the numerical value resource obtained from the second client;
When user A needs to obtain numerical value resource from user B exchange, user A can the input position place input numerical value of numerical value resource in Resource Exchange interface corresponding to the second client, and accordingly, the first client can receive the numerical value of user A input.
The second, from the commutative virtual objects resource of the second client, select at least one virtual objects resource.
When user A needs to obtain virtual objects resource from user B exchange, user A can also apply the selection signal selecting at least one virtual objects resource from the commutative virtual objects resource of the second client, and the virtual objects resource that user A selects is defined as needing from the second client, exchange the virtual objects resource obtained by the first client.
Need to exchange to the obtain manner of the virtual objects resource of the second client similar with acquisition first client, when actual realization, this step can comprise:
(1), the first client sends acquisition request conforms to server, and acquisition request conforms is used for being in the virtual objects resource of commutative state in each virtual objects resource of acquisition request second client;
(2), server receives the acquisition request conforms that the first client sends, and acquisition request conforms is used for being in the virtual objects resource of commutative state in each virtual objects resource of acquisition request second client;
(3), server query resource obtains the virtual objects resource corresponding to request;
(4), server returns virtual objects resource to the first client inquired.
(5), the virtual objects resource that returns of the first client reception server;
(6), the first client selects at least one virtual objects resource from the virtual objects resource received.
Detailed technology detail with reference above-mentioned steps, the present embodiment does not repeat them here.
It should be noted is that, the present embodiment just performs step 602 after first performing step 601, when actual realization, first client can also perform step 601 and step 602 simultaneously, or perform step 601 after first performing step 602, only need both guarantees to perform before step 603, the present embodiment does not limit its actual execution sequence.
Step 603, the first client sends Resource Exchange request to server according to the first virtual resource and the second virtual resource;
After the first client gets the first virtual resource and the second virtual resource, the first client can send Resource Exchange request to server.Such as, when the first client receives the click signal clicking the request exchange shown in Fig. 6 B, the first client sends Resource Exchange request to server.
Resource Exchange request comprises the resource identification of the identify label of the first client, the identify label of the second client, the resource identification of the first virtual resource and the second virtual resource, Resource Exchange request is used to indicate server and creates item to be exchanged according to Resource Exchange request, and carries out Resource Exchange according to item to be exchanged to the first client and the second client.
Step 604, server receives the Resource Exchange request that the first client sends;
Step 605, server creates item to be exchanged according to Resource Exchange request;
Server can extract the resource identification of the identify label of the first client in Resource Exchange request, the identify label of the second client, the resource identification of the first virtual resource and the second virtual resource, is then item to be exchanged by the information creating extracted.
Step 606, server deducts the first virtual resource in the first resource account corresponding to the first client;
After server receives Resource Exchange request, server can deduct first virtual resource indicated by resource identification of the first virtual resource carried in Resource Exchange request in the first resource account corresponding to the first client.
It should be noted that, the present embodiment just performs step 606 after first performing step 605, when actual realization, server can also perform step 605 and step 606 simultaneously, or perform step 605 after first performing step 606, only need to ensure that step 605 and step 606 performed before step 607, the present embodiment does not limit this.
Step 607, deducts successfully at the first virtual resource, and server performs the step of item to be exchanged to database of storage creation;
Step 608, selects the item to be exchanged corresponding to the second client in the item to be exchanged that server stores from database;
Server can select the item to be exchanged corresponding to the second client from the item to be exchanged of database purchase.When actual realization, the identify label of exchanged client in each item to be exchanged that server can store from database, is selected to be the item to be exchanged of the identify label of the second client.
When actual realization, server when the second client meets pre-conditioned, can just perform the step selecting the item to be exchanged corresponding to the second client.
Such as, when user B wants to have checked which good friend's request is with when oneself exchanging, and user B can operate the second client and send for inquiring about the inquiry request of item to be exchanged to server.Accordingly, server receives inquiry request, and after receiving inquiry request, selects the item to be exchanged corresponding to the second client.
Whether server can also detect the second client online, if to be the second client online for testing result, then selects the item to be exchanged corresponding to the second client.Server, when receiving the triggering signal that the second client is reached the standard grade, selects the item to be exchanged corresponding to the second client.
Certainly, whether server can also detect the second client in execution preset task, if target second client is not in execution preset task, then selects the item to be exchanged corresponding to the second client.Such as, detect the second client and whether be in screen mode toggle, if not, then select the item to be exchanged corresponding to the second client.
Step 609, server sends item to the second client to be exchanged;
In order to inform the second client, it has untreated item to be exchanged, and server can send item to the second client to be exchanged of selection.
Step 610, the item to be exchanged that the second client reception server sends;
Step 611, the second client sends and confirms that the confirmation exchanging item to be exchanged is to server;
Second client is after receiving item to be exchanged, and the second client can show the item to be exchanged received.When user B views the item to be exchanged of displaying and agrees to exchange, user B can click and confirm to exchange, and after the second client receives click signal, sends and confirms that the confirmation exchanging item to be exchanged is to server.
When actual realization, the item to be exchanged received when the second client has two or more, then user B can therefrom select at least one item to be exchanged to exchange.Such as, please refer to Fig. 6 C, user B can select wherein second and the 4th to exchange, and the present embodiment does not limit this.
Certain the present embodiment just can confirm for user B the item to be exchanged exchanging two or more simultaneously, when actual realization, can also be set to exchange one of them item to be exchanged according to different application scenarioss is example at every turn, other item need wait for that this item to be exchanged could perform after having exchanged, and the present embodiment does not limit this.
Step 612, server receives the confirmation that the second client sends and exchanges the confirmation of item to be exchanged;
Step 613, server carries out Resource Exchange according to item to be exchanged to the first client and the second client.
Receive the confirmation of the second client transmission at server after, illustrate that the second client is agreed to exchange, now, server can carry out Resource Exchange according to item to be exchanged to the first client and the second client.
When actual realization, this step can comprise:
The first, in the Secondary resource account corresponding to the second client, deduct the second virtual resource;
The second, in the Secondary resource account corresponding to the second client, add the first virtual resource;
3rd, in the first resource account corresponding to the first client, add the second virtual resource.
Such as, when the first virtual resource is 289 integrations and article 2, and the second virtual resource is when being article 7, article 7 can be deducted by server in Secondary resource account, deduct from first resource account 289 integrations and article 2 are added into Secondary resource account, and the article 7 deducted from Secondary resource account are added into first resource account.
When server deduction or when adding unsuccessfully, the virtual resource that server has been deducted before can recovering or added, and send information to the first client and the second client, the present embodiment does not limit this.
Needing at first of supplementary notes is, the present embodiment is just to use numerical value resource and virtual objects Resource Exchange virtual objects resource, when actual realization, can also use numerical value Resource Exchange virtual objects resource, use virtual objects Resource Exchange numerical value resource, use virtual objects Resource Exchange virtual objects resource and use virtual objects Resource Exchange virtual objects resource and numerical value resource, the present embodiment does not limit this.
The second point needing supplementary notes is that step 601 can perform once to step 607 before step 608, and also can circulate and perform repeatedly, the present embodiment does not limit this.
What need supplementary notes is thirdly, server is after the confirmation receiving the second client transmission, server can lock the Secondary resource account of the second client, avoids the second client to use the problem of carrying out Resource Exchange with a virtual resource request and two or more client.
Needing at the 4th of supplementary notes is, server is after the confirmation receiving the second client transmission, whether the state that server can detect the item to be exchanged that this exchanges is be in non-swap status, if, then continue to perform subsequent step, and be completion status by the status modifier of this item to be exchanged after completing exchange; And if testing result to be the second client be in exchange or completed when exchanging two states, flow process can terminate.
In sum, the Resource Exchange method that the present embodiment provides, first client obtains to be needed to exchange the second virtual resource obtained from the second client exchange to the first virtual resource of the second client and needs, and then send the resource identification comprising the first virtual resource, the resource identification of the second virtual resource, the Resource Exchange request of the identify label of the first client and the identify label of the second client is to server, server creates item to be exchanged according to Resource Exchange request, store item to be exchanged to database, and then when needs carry out Resource Exchange to the first client and the second client, server directly can select the item to be exchanged corresponding to the second client from database, after obtaining the second client and confirming the confirmation exchanged, Resource Exchange is carried out to the first client and the second client, solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete, reach the first client and the second client can realize asynchronous exchange, also namely both sides without the need to can complete the effect of exchange online simultaneously.
After in the present embodiment, server receives Resource Exchange request, first the first virtual resource is deducted from the first resource account of the first client, and then avoid the first client to use having exchanged and again initiate Resource Exchange to the resource of other clients, reached the effect of the success rate that can improve Resource Exchange.
When needing first of supplementary notes, when the first virtual resource comprises numerical value resource, before first sends Resource Exchange request to server, can also following steps be performed:
First, first client sends the first numerical value to server;
In order to judge that the quantity of the numerical value resource used needed for the first client is whether more than the total amount of the numerical value resource in the first resource account of the first client, the first client can the first numerical value of arriving of transmission and reception to server.
The second, server receives the first numerical value that the first client sends;
3rd, server detects the first numerical value whether more than the total amount of the numerical value resource of the first client;
Server can read the total amount of the numerical value resource in the first resource account of the first client, then detects the total amount whether the first numerical value received exceedes the numerical value resource read.
4th, if the testing result of server is the total amount that the first numerical value is no more than numerical value resource, then return the first confirmation to the first client.
If the testing result of server is the total amount that the first numerical value is no more than numerical value resource, then illustrate that the first client enough supports that this exchanges, now server can return the first confirmation to the first client.
And if the testing result of server is the total amount that the first numerical value exceedes numerical value resource, then illustrate that the first client is not enough to support that this exchanges, now server can return the first NACK messages to the first client, and the present embodiment does not limit this.
The first confirmation that 5th, first client reception server returns, the first confirmation be server detect the first numerical value be no more than the total amount of the numerical value resource in the first client after the information that returns;
Accordingly, the first client can the first confirmation of returning of reception server.
6th, the first client, after receiving the first confirmation, performs and sends the step of Resource Exchange request to server according to the first virtual resource and the second virtual resource.
And when the first client receives the first NACK messages, flow process will terminate.
The second point needing supplementary notes is that server can also be that the first client arranges Resource Exchange condition, so before the first client sends Resource Exchange request to server, can also perform following steps:
First, first client sends checking request to server, and checking request comprises the identify label of the first client;
In order to judge whether the first client meets Resource Exchange condition, the first client can send checking request to server.Wherein, checking request comprises the identify label of the first client.
The second, server receives the checking request that the first client sends, and checking request comprises the identify label of the first client;
3rd, server detects the first client and whether meets Resource Exchange condition, and the grade that Resource Exchange condition comprises the first client is greater than the first predetermined threshold value higher than the surplus resources in the first resource account corresponding to the first predetermined level and/or the first client;
Server detects the first client and whether meets Resource Exchange condition.Wherein, the grade that Resource Exchange condition comprises the first client be greater than the first predetermined threshold value higher than the surplus resources in the first resource account corresponding to the first predetermined level, the first client or comprise simultaneously above-mentioned both.
Such as, when the grade that Resource Exchange condition comprises the first client is higher than the first predetermined level, server first can read the grade of the first client according to the identify label of the first client received, whether then detect the grade that reads higher than the first predetermined level; When the Resource Exchange condition surplus resources comprised in first resource account is greater than the first predetermined threshold value, server can read the surplus resources in the first resource account of the first client according to the identify label of the first client, detect surplus resources and whether be greater than the first default resource, such as, to detect in surplus resources numerical value resource and whether whether detect virtual objects resource more than 3 more than 999 integrations.
4th, if the testing result of server is the first client meet Resource Exchange condition, then return the second confirmation to the first client.
If the testing result of server is the first client meet Resource Exchange condition, then now server can return the second confirmation to the first client.
And if the testing result of server is the first client does not meet Resource Exchange condition, then now server can return the second NACK messages to the first client.
5th, the second confirmation that first client reception server returns, second confirmation is the information that server returns to the first client when detecting that the first client meets Resource Exchange condition, and the grade that Resource Exchange condition comprises the first client is greater than the first predetermined threshold value higher than the surplus resources in the first resource account corresponding to the first predetermined level and/or the first client;
6th, the first client, after receiving the second confirmation, performs and sends the step of Resource Exchange request to server according to the first virtual resource and the second virtual resource.
And when the first client receives the second NACK messages, flow process will terminate.
Need supplementary notes thirdly, server obtain correspond to the second client item to be exchanged before, can also following steps be performed:
First, second client sends checking request to server, and checking request comprises the identify label of the second client; Checking request is used to indicate server and detects the second client according to the identify label of the second client and whether meet Resource Exchange condition, and the grade that Resource Exchange condition comprises the second client is greater than the second predetermined threshold value higher than the surplus resources in the Secondary resource account corresponding to the second predetermined level and/or the second client.
In order to judge whether the second client meets Resource Exchange condition, the second client can send checking request to server.Wherein, checking request comprises the identify label of the second client.
The second, server receives the checking request that the second client sends, and checking request comprises the identify label of the second client;
3rd, server detects the second client according to the identify label of the second client and whether meets Resource Exchange condition, and the grade that Resource Exchange condition comprises the second client is greater than the second predetermined threshold value higher than the surplus resources in the Secondary resource account corresponding to the second predetermined level and/or the second client;
4th, if the testing result of server is the second client meet Resource Exchange condition, then perform the step obtaining the item to be exchanged corresponding to the second client.
This is with to judge whether the first client meets the judgment mode of Resource Exchange condition similar, and the present embodiment does not repeat them here.
In a practical application scene, first client and the second client are two clients corresponding to a certain translation learning software, and in the first client, have the first terminology bank (the translationese storehouse of such as photoelectric field), the second terminology bank (the translationese storehouse of such as mechanical field) is had in second client, then when user A want the first terminology bank using oneself exchange subscriber second terminology bank of B and 88 virtual fruits time, Resource Exchange flow process can comprise:
(1), the first client receives and opens the triggering signal at Resource Exchange interface, send comprise self identification checking request to server;
(2), server receive checking request after whether detect the grade of the first client higher than 3 grades, if the grade of the first client is higher than 3 grades, then server returns interface content to the first client at Resource Exchange interface;
(3), the first client receives the interface content at Resource Exchange interface, display Resource Exchange interface;
(4), the first client receives the click signal on the barter hurdle of click first client, sends first of the commutative virtual objects resource for obtaining the first client and obtains request to server;
(5), server receive first obtain request, inquire about the virtual objects resource being in commutative state in the first client, and return the first terminology bank to the first client inquired;
(6), the first client shows the first terminology bank in virtual objects hurdle, receives the selection signal for selecting the first terminology bank, and the first terminology bank selected is defined as the first virtual resource;
(7), the first client receives the click signal on the barter hurdle of click second client, sends the acquisition request conforms of the commutative virtual objects resource for obtaining the second client to server;
(8), server receive acquisition request conforms, inquire about the virtual objects resource being in commutative state in the second client, return the second terminology bank to the first client inquired;
(9), the first client receives the second terminology bank, in the article hurdle of the second client, show the second terminology bank;
(10), the first client receives selection signal for selecting the second terminology bank, and receive user's input for representing 88 of virtual fruit quantity;
(11), the second terminology bank and quantity 88 are defined as the second virtual resource by the first client;
(12), the first client receives for confirming the click signal exchanged, and sends Resource Exchange request to server;
(13), server receives Resource Exchange request, deducted by the first terminology bank from the first resource account of the first client;
(14), server creates item to be exchanged, and the item to be exchanged of storage creation is to database;
(15), when user B wants to check item to be exchanged, user B can apply the triggering signal entering Resource Exchange interface, and the second client receives triggering signal, and transmission carries the checking request of self identification to server;
(16), the request of server Receipt Validation, whether the grade detecting the second client higher than 5 grades, if the grade of the second client is higher than 5 grades, then server returns interface content to the second client at Resource Exchange interface;
(17), the second client reception interface content show Resource Exchange interface;
(18), the second client sends for inquiring about the inquiry request of item to be exchanged to server;
(19), server receives after inquiry request, and the item to be exchanged corresponding to the second client in database is returned to the second client;
(20), the second client shows the item to be exchanged received;
(21), when user B agrees to exchange, the second client receives the confirmation signal of the confirmation exchange that user B applies, and sends confirmation to server;
(22) when, server receives the confirmation information, first terminology bank is added in the Secondary resource account of the second client, by the second terminology bank in Secondary resource account and 88 virtual fruit deductions, and be added in the first resource account of the first client.
Please refer to Fig. 7, it illustrates the block diagram of the resource exchange device that one embodiment of the invention provides, this resource exchange device is used in the first client 110 shown in Fig. 1, and this resource exchange device can comprise: the first acquisition module 701, second acquisition module 702 and exchange request sending module 703.
First acquisition module 701, needs to exchange to the first virtual resource of the second client for obtaining described first client;
Second acquisition module 702, for obtaining the second virtual resource that described first client needs to obtain from described second client exchange;
Exchange request sending module 703, described second virtual resource got for described first virtual resource that gets according to described first acquisition module 701 and described second acquisition module 702 sends Resource Exchange request to server, described Resource Exchange request comprises the identify label of described first client, the identify label of described second client, the resource identification of described first virtual resource and the resource identification of described second virtual resource, described Resource Exchange request is used to indicate described server and creates item to be exchanged according to described Resource Exchange request, and according to described item to be exchanged, Resource Exchange is carried out to described first client and described second client.
In sum, the resource exchange device that the present embodiment provides, first client obtains to be needed to exchange the second virtual resource obtained from the second client exchange to the first virtual resource of the second client and needs, and then send the resource identification comprising the first virtual resource, the resource identification of the second virtual resource, the Resource Exchange request of the identify label of the first client and the identify label of the second client is to server, server creates item to be exchanged according to Resource Exchange request, store item to be exchanged to database, and then when needs carry out Resource Exchange to the first client and the second client, server directly can select the item to be exchanged corresponding to the second client from database, after obtaining the second client and confirming the confirmation exchanged, Resource Exchange is carried out to the first client and the second client, solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete, reach the first client and the second client can realize asynchronous exchange, also namely both sides without the need to can complete the effect of exchange online simultaneously.
Please refer to Fig. 8, it illustrates the block diagram of the resource exchange device that another embodiment of the present invention provides, this resource exchange device may be used in the first client 110 shown in Fig. 1, and this resource exchange device can comprise: the first acquisition module 801, second acquisition module 802 and exchange request sending module 803.
First acquisition module 801, needs to exchange to the first virtual resource of the second client for obtaining described first client;
Second acquisition module 802, for obtaining the second virtual resource that described first client needs to obtain from described second client exchange;
Exchange request sending module 803, described second virtual resource got for described first virtual resource that gets according to described first acquisition module 801 and described second acquisition module 802 sends Resource Exchange request to server, described Resource Exchange request comprises the identify label of described first client, the identify label of described second client, the resource identification of described first virtual resource and the resource identification of described second virtual resource, described Resource Exchange request is used to indicate described server and creates item to be exchanged according to described Resource Exchange request, and according to described item to be exchanged, Resource Exchange is carried out to described first client and described second client.
Alternatively, described second acquisition module 802, comprising:
Numerical value receiving element 8021 and/or resource selection unit 8022;
Described numerical value receiving element 8021, for receive user input for representing that described first client needs exchange the numerical value of the quantity of the numerical value resource obtained from described second client; And/or,
Described resource selection unit 8022, for selecting at least one virtual objects resource from the commutative virtual objects resource of described second client.
Alternatively, described resource selection unit 8022, comprising:
Request sends subelement 8022a, and for sending acquisition request conforms to described server, described acquisition request conforms is used for the virtual objects resource being in commutative state in each virtual objects resource of the second client described in acquisition request;
Resource receives subelement 8022b, for receiving the virtual objects resource that described server returns;
Resource selection subelement 8022c, selects at least one virtual objects resource for receiving from described resource in described virtual objects resource that subelement 8022b receives.
In sum, the resource exchange device that the present embodiment provides, first client obtains to be needed to exchange the second virtual resource obtained from the second client exchange to the first virtual resource of the second client and needs, and then send the resource identification comprising the first virtual resource, the resource identification of the second virtual resource, the Resource Exchange request of the identify label of the first client and the identify label of the second client is to server, server creates item to be exchanged according to Resource Exchange request, store item to be exchanged to database, and then when needs carry out Resource Exchange to the first client and the second client, server directly can select the item to be exchanged corresponding to the second client from database, after obtaining the second client and confirming the confirmation exchanged, Resource Exchange is carried out to the first client and the second client, solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete, reach the first client and the second client can realize asynchronous exchange, also namely both sides without the need to can complete the effect of exchange online simultaneously.
Please refer to Fig. 9, it illustrates the block diagram of the resource exchange device that yet another embodiment of the invention provides, this resource exchange device is used in the server 120 shown in Fig. 1, and this resource exchange device can comprise: item acquisition module 901, item sending module 902, information receiving module 903 and Resource Exchange module 904.
Item acquisition module 901, for obtaining the item to be exchanged corresponding to the second client, described item to be exchanged comprises the identify label of described second client, request and described second client carries out the identify label of the first client of Resource Exchange, described first client needs exchange the second virtual resource obtained from described second client exchange to the resource identification of the first virtual resource of described second client and described first client needs resource identification;
Item sending module 902, for sending item described to be exchanged extremely described second client that described item acquisition module 901 gets;
Information receiving module 903, the confirmation of item to be exchanged is stated in the confirmation clearing house sent for receiving described second client;
Resource Exchange module 904, for carrying out Resource Exchange according to described item to be exchanged to described first client and described second client.
In sum, the resource exchange device that the present embodiment provides, by directly obtaining the item to be exchanged corresponding to the second client, item to be exchanged comprises the identify label of the resource identification of the first virtual resource, the resource identification of the second virtual resource, the identify label of the first client and the second client, send item to the second client to be exchanged, and then according to item to be exchanged, Resource Exchange is carried out to the first client and the second client after obtaining the second client and confirming the confirmation exchanged; Solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete; Reach the first client and the second client can realize asynchronous exchange, also namely both sides without the need to can complete the effect of exchange online simultaneously.
Please refer to Figure 10, it illustrates the block diagram of the resource exchange device that yet another embodiment of the invention provides, this resource exchange device is used in the server 120 shown in Fig. 1, and this resource exchange device can comprise: item acquisition module 1001, item sending module 1002, information receiving module 1003 and Resource Exchange module 1004.
Item acquisition module 1001, for obtaining the item to be exchanged corresponding to the second client, described item to be exchanged comprises the identify label of described second client, request and described second client carries out the identify label of the first client of Resource Exchange, described first client needs exchange the second virtual resource obtained from described second client exchange to the resource identification of the first virtual resource of described second client and described first client needs resource identification;
Item sending module 1002, for sending item described to be exchanged extremely described second client that described item acquisition module 1001 gets;
Information receiving module 1003, the confirmation of item to be exchanged is stated in the confirmation clearing house sent for receiving described second client;
Resource Exchange module 1004, for carrying out Resource Exchange according to described item to be exchanged to described first client and described second client.
Alternatively, described item acquisition module 1001, also for selecting the item to be exchanged corresponding to described second client in each item to be exchanged of storing from database.
Alternatively, described device also comprises:
Exchange request receiving module 1005, for receiving the Resource Exchange request that described first client sends according to described first virtual resource and described second virtual resource, described Resource Exchange request comprises the resource identification of the identify label of described first client, the identify label of described second client, the resource identification of described first virtual resource and described second virtual resource;
Item creation module 1006, creates described item to be exchanged for the described Resource Exchange request received according to described exchange request receiving module 1005;
Item memory module 1007, for storing the item described to be exchanged extremely described database that described item creation module 1006 creates.
Alternatively, described device also comprises:
Resource request receiver module 1008, for receiving the acquisition request conforms that described first client sends, described acquisition request conforms is used for the virtual objects resource being in commutative state in each virtual objects resource of the second client described in acquisition request;
Resource query module 1009, for inquiring about the virtual objects resource corresponding to described acquisition request conforms that described resource request receiver module 1008 receives;
Resource returns module 1010, for returning described virtual objects resource extremely described first client that described resource query module 1009 inquires.
Alternatively, described device also comprises:
First trigger module 1011, for receiving the inquiry request for inquiring about described item to be exchanged that described second client sends, after receiving described inquiry request, triggering and performing the step that described acquisition corresponds to the item to be exchanged of the second client;
And/or,
Second trigger module 1012, whether online for detecting described second client, if when described second client is online, triggers and perform the step that described acquisition corresponds to the item to be exchanged of the second client;
And/or,
3rd trigger module 1013, for whether detecting described second client in execution preset task, if described target second client is not when performing described preset task, triggers and performing the step that described acquisition corresponds to the item to be exchanged of the second client.
In sum, the resource exchange device that the present embodiment provides, by directly obtaining the item to be exchanged corresponding to the second client, item to be exchanged comprises the identify label of the resource identification of the first virtual resource, the resource identification of the second virtual resource, the identify label of the first client and the second client, send item to the second client to be exchanged, and then according to item to be exchanged, Resource Exchange is carried out to the first client and the second client after obtaining the second client and confirming the confirmation exchanged; Solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete; Reach the first client and the second client can realize asynchronous exchange, also namely both sides without the need to can complete the effect of exchange online simultaneously.
After in the present embodiment, server receives Resource Exchange request, first the first virtual resource is deducted from the first resource account of the first client, and then avoid the first client to use having exchanged and again initiate Resource Exchange to the resource of other clients, reached the effect of the success rate that can improve Resource Exchange.
Please refer to Figure 11, it illustrates the block diagram of the resource exchange device that yet another embodiment of the invention provides, this resource exchange device is used in the second client 130 shown in Fig. 1, and this resource exchange device can comprise: item receiver module 1101 and information sending module 1102.
Item receiver module 1101, for the item to be exchanged that reception server sends, described item to be exchanged comprises the identify label of described second client, request and described second client carries out the identify label of the first client of Resource Exchange, described first client needs exchange the second virtual resource obtained from described second client exchange to the resource identification of the first virtual resource of described second client and described first client needs resource identification;
Information sending module 1102, for sending the confirmation extremely described server for confirming to exchange described item to be exchanged, described confirmation is used to indicate described server and carries out Resource Exchange according to described item to be exchanged to described first client and described second client.
In sum, the resource exchange device that the present embodiment provides, the identify label comprising the first client sent by reception server, the first client needs exchange the item to be exchanged of the resource identification of the second virtual resource obtained from the second client exchange to the resource identification of the first virtual resource of the second client and the first client needs, and sending confirmation to server when agreeing to exchange, server directly can carry out Resource Exchange to the first client and the second client after receiving the confirmation information; Solve in prior art when wherein a side is not online, the problem that Resource Exchange can not complete; Reach the first client and the second client can realize asynchronous exchange, also namely both sides without the need to can complete the effect of exchange online simultaneously.
It should be noted that: the Resource Exchange method that above-described embodiment provides is when carrying out Resource Exchange, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by equipment is divided into different functional modules, to complete all or part of function described above.In addition, the embodiment of the method for the resource exchange device that above-described embodiment provides and Resource Exchange method belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (17)

1. a Resource Exchange method, is characterized in that, in the first client, described method comprises:
Obtain described first client to need to exchange to the first virtual resource of the second client;
Obtain the second virtual resource that described first client needs to obtain from described second client exchange;
Resource Exchange request is sent to server according to described first virtual resource and described second virtual resource, described Resource Exchange request comprises the identify label of described first client, the identify label of described second client, the resource identification of described first virtual resource and the resource identification of described second virtual resource, described Resource Exchange request is used to indicate described server and creates item to be exchanged according to described Resource Exchange request, described first virtual resource is deducted in the first resource account that described first client is corresponding, deduct successfully at described first virtual resource, the item described to be exchanged of storage creation is to database, and according to the item described to be exchanged stored, Resource Exchange is carried out to described first client and described second client.
2. method according to claim 1, is characterized in that, described first client of described acquisition needs the second virtual resource obtained from described second client exchange, comprising:
Receive user input for representing that described first client needs exchange the numerical value of the quantity of the numerical value resource obtained from described second client; And/or,
At least one virtual objects resource is selected from the commutative virtual objects resource of described second client.
3. method according to claim 2, is characterized in that, describedly from the commutative virtual objects resource of described second client, selects at least one virtual objects resource, comprising:
Send acquisition request conforms to described server, described acquisition request conforms is used for the virtual objects resource being in commutative state in each virtual objects resource of the second client described in acquisition request;
Receive the virtual objects resource that described server returns;
At least one virtual objects resource is selected from the described virtual objects resource received.
4. a Resource Exchange method, is characterized in that, in server, described method comprises:
Receive the Resource Exchange request that the first client sends according to the first virtual resource and the second virtual resource, described Resource Exchange request comprises the resource identification of the identify label of described first client, the identify label of the second client, the resource identification of described first virtual resource and described second virtual resource;
Item to be exchanged is created according to described Resource Exchange request;
Described first virtual resource is deducted in the first resource account that described first client is corresponding;
Deduct successfully at described first virtual resource, the item described to be exchanged of storage creation is to database;
Obtain and correspond to the item to be exchanged of described second client, described item to be exchanged comprises the identify label of described second client, request and described second client carries out the identify label of described first client of Resource Exchange, described first client needs exchange the second virtual resource obtained from described second client exchange to the resource identification of the first virtual resource of described second client and described first client needs resource identification;
Send described item to be exchanged to described second client;
The confirmation of item to be exchanged is stated in the confirmation clearing house receiving described second client transmission;
According to described item to be exchanged, Resource Exchange is carried out to described first client and described second client.
5. method according to claim 4, is characterized in that, described acquisition corresponds to the item to be exchanged of the second client, comprising:
The item to be exchanged corresponding to described second client is selected in each item to be exchanged stored from database.
6. method according to claim 4, is characterized in that, described first client of described reception according to described first virtual resource and described second virtual resource send Resource Exchange request before, described method also comprises:
Receive the acquisition request conforms that described first client sends, described acquisition request conforms is used for the virtual objects resource being in commutative state in each virtual objects resource of the second client described in acquisition request;
Inquire about the virtual objects resource corresponding to described acquisition request conforms;
Return described virtual objects resource extremely described first client inquired.
7., according to the arbitrary described method of claim 4 to 6, it is characterized in that, before described acquisition corresponds to the item to be exchanged of the second client, described method also comprises:
Receiving the inquiry request for inquiring about described item to be exchanged that described second client sends, after receiving described inquiry request, triggering and performing the step that described acquisition corresponds to the item to be exchanged of the second client;
And/or,
Detect described second client whether online, if described second client is online, then triggers and perform the step that described acquisition corresponds to the item to be exchanged of the second client;
And/or,
Whether detect described second client in execution preset task, if described target second client is not in the described preset task of execution, then triggers and perform the step that described acquisition corresponds to the item to be exchanged of the second client.
8. a Resource Exchange method, is characterized in that, in the second client, described method comprises:
The item to be exchanged that reception server sends, described item to be exchanged comprises the identify label of described second client, request and described second client carries out the identify label of the first client of Resource Exchange, described first client needs exchange the second virtual resource obtained from described second client exchange to the resource identification of the first virtual resource of described second client and described first client needs resource identification;
Send the confirmation extremely described server for confirming to exchange described item to be exchanged, described confirmation is used to indicate described server and carries out Resource Exchange according to described item to be exchanged to described first client and described second client;
Wherein, the Resource Exchange request that described server sends according to described first virtual resource and described second virtual resource for receiving described first client, described Resource Exchange request comprises the identify label of described first client, the identify label of described second client, the resource identification of described first virtual resource and the resource identification of described second virtual resource, and create described item to be exchanged according to described Resource Exchange request, described first virtual resource is deducted in the first resource account that described first client is corresponding, deduct successfully at described first virtual resource, store described item to be exchanged to database.
9. a resource exchange device, is characterized in that, in the first client, described device comprises:
First acquisition module, needs to exchange to the first virtual resource of the second client for obtaining described first client;
Second acquisition module, for obtaining the second virtual resource that described first client needs to obtain from described second client exchange;
Exchange request sending module, described second virtual resource got for described first virtual resource that gets according to described first acquisition module and described second acquisition module sends Resource Exchange request to server, described Resource Exchange request comprises the identify label of described first client, the identify label of described second client, the resource identification of described first virtual resource and the resource identification of described second virtual resource, described Resource Exchange request is used to indicate described server and creates item to be exchanged according to described Resource Exchange request, described first virtual resource is deducted in the first resource account that described first client is corresponding, deduct successfully at described first virtual resource, the item described to be exchanged of storage creation is to database, and according to the item described to be exchanged stored, Resource Exchange is carried out to described first client and described second client.
10. device according to claim 9, is characterized in that, described second acquisition module, comprising:
Numerical value receiving element and/or resource selection unit;
Described numerical value receiving element, for receive user input for representing that described first client needs exchange the numerical value of the quantity of the numerical value resource obtained from described second client; And/or,
Described resource selection unit, for selecting at least one virtual objects resource from the commutative virtual objects resource of described second client.
11. devices according to claim 10, is characterized in that, described resource selection unit, comprising:
Request sends subelement, and for sending acquisition request conforms to described server, described acquisition request conforms is used for the virtual objects resource being in commutative state in each virtual objects resource of the second client described in acquisition request;
Resource receives subelement, for receiving the virtual objects resource that described server returns;
Resource selection subelement, selects at least one virtual objects resource for receiving from described resource in described virtual objects resource that subelement receives.
12. 1 kinds of resource exchange devices, is characterized in that, in server, described device comprises:
Exchange request receiving module, for receiving the Resource Exchange request that the first client sends according to the first virtual resource and the second virtual resource, described Resource Exchange request comprises the resource identification of the identify label of described first client, the identify label of described second client, the resource identification of described first virtual resource and described second virtual resource;
Item creation module, creates described item to be exchanged for the described Resource Exchange request received according to described exchange request receiving module;
Item memory module, for storing the item described to be exchanged extremely described database that described item creation module creates;
Described device also for deducting described first virtual resource in the first resource account that described first client is corresponding; Described item memory module, also for deducting successfully at described first virtual resource, stores the item described to be exchanged extremely described database that described item creation module creates;
Item acquisition module, for obtaining the item to be exchanged corresponding to described second client, described item to be exchanged comprises the identify label of described second client, request and described second client carries out the identify label of described first client of Resource Exchange, described first client needs exchange the second virtual resource obtained from described second client exchange to the resource identification of the first virtual resource of described second client and described first client needs resource identification;
Item sending module, for sending item described to be exchanged extremely described second client that described item acquisition module gets;
Information receiving module, the confirmation of item to be exchanged is stated in the confirmation clearing house sent for receiving described second client;
Resource Exchange module, for carrying out Resource Exchange according to described item to be exchanged to described first client and described second client.
13. devices according to claim 12, is characterized in that,
Described item acquisition module, also for selecting the item to be exchanged corresponding to described second client in each item to be exchanged of storing from database.
14. devices according to claim 12, is characterized in that, described device also comprises:
Resource request receiver module, for receiving the acquisition request conforms that described first client sends, described acquisition request conforms is used for the virtual objects resource being in commutative state in each virtual objects resource of the second client described in acquisition request;
Resource query module, for inquiring about the virtual objects resource corresponding to described acquisition request conforms that described resource request receiver module receives;
Resource returns module, for returning described virtual objects resource extremely described first client that described resource query module polls arrives.
15. according to claim 12 to 14 arbitrary described devices, and it is characterized in that, described device also comprises:
First trigger module, for receiving the inquiry request for inquiring about described item to be exchanged that described second client sends, after receiving described inquiry request, triggering and performing the step that described acquisition corresponds to the item to be exchanged of the second client;
And/or,
Second trigger module, whether online for detecting described second client, if when described second client is online, triggers and perform the step that described acquisition corresponds to the item to be exchanged of the second client;
And/or,
3rd trigger module, for whether detecting described second client in execution preset task, if described target second client is not when performing described preset task, triggers and performing the step that described acquisition corresponds to the item to be exchanged of the second client.
16. 1 kinds of resource exchange devices, is characterized in that, in the second client, described device comprises:
Item receiver module, for the item to be exchanged that reception server sends, described item to be exchanged comprises the identify label of described second client, request and described second client carries out the identify label of the first client of Resource Exchange, described first client needs exchange the second virtual resource obtained from described second client exchange to the resource identification of the first virtual resource of described second client and described first client needs resource identification;
Information sending module, for sending the confirmation extremely described server for confirming to exchange described item to be exchanged, described confirmation is used to indicate described server and carries out Resource Exchange according to described item to be exchanged to described first client and described second client;
Wherein, the Resource Exchange request that described server sends according to described first virtual resource and described second virtual resource for receiving described first client, described Resource Exchange request comprises the identify label of described first client, the identify label of described second client, the resource identification of described first virtual resource and the resource identification of described second virtual resource, and create described item to be exchanged according to described Resource Exchange request, described first virtual resource is deducted in the first resource account that described first client is corresponding, deduct successfully at described first virtual resource, store described item to be exchanged to database.
17. 1 kinds of resource exchange systems, is characterized in that, it comprises the first client, server and the second client;
Described first client comprise as arbitrary in claim 9 to 11 as described in resource exchange device;
Described server comprise as arbitrary in claim 12 to 15 as described in resource exchange device;
Described second client comprises resource exchange device as claimed in claim 16.
CN201410546493.9A 2014-10-16 2014-10-16 Resource Exchange methods, devices and systems Active CN104348830B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410546493.9A CN104348830B (en) 2014-10-16 2014-10-16 Resource Exchange methods, devices and systems

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410546493.9A CN104348830B (en) 2014-10-16 2014-10-16 Resource Exchange methods, devices and systems

Publications (2)

Publication Number Publication Date
CN104348830A CN104348830A (en) 2015-02-11
CN104348830B true CN104348830B (en) 2016-01-20

Family

ID=52503628

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410546493.9A Active CN104348830B (en) 2014-10-16 2014-10-16 Resource Exchange methods, devices and systems

Country Status (1)

Country Link
CN (1) CN104348830B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106296333A (en) * 2015-06-24 2017-01-04 阿里巴巴集团控股有限公司 Network resource processing method and device
CN105979294A (en) * 2015-11-26 2016-09-28 乐视致新电子科技(天津)有限公司 Data processing method and device based on users
CN105761140A (en) * 2016-02-05 2016-07-13 腾讯科技(深圳)有限公司 Resource exchange method, device and system
CN105976181A (en) * 2016-05-25 2016-09-28 财付通支付科技有限公司 Processing method for virtual resources, server, and client
CN106215417B (en) * 2016-09-09 2020-01-14 广州爱九游信息技术有限公司 Server and gift package distribution device and method
CN107451796B (en) * 2017-08-07 2021-09-10 阿里巴巴(中国)有限公司 Method, device, equipment and storage medium for auxiliary processing of cooperative service
CN111061573A (en) * 2019-11-15 2020-04-24 北京三快在线科技有限公司 Resource transfer method, device, electronic equipment and storage medium
CN111464823B (en) * 2020-04-02 2021-12-10 腾讯科技(深圳)有限公司 Virtual gift exchange method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459622A (en) * 2007-12-12 2009-06-17 北京亿企通信息技术有限公司 Method and system for sending files in instant communication
CN101882286A (en) * 2009-04-29 2010-11-10 迪斯尼实业公司 System and method for item-based economy in a virtual world
CN101996376A (en) * 2009-08-20 2011-03-30 任少华 Network virtual article or user account transaction system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459622A (en) * 2007-12-12 2009-06-17 北京亿企通信息技术有限公司 Method and system for sending files in instant communication
CN101882286A (en) * 2009-04-29 2010-11-10 迪斯尼实业公司 System and method for item-based economy in a virtual world
CN101996376A (en) * 2009-08-20 2011-03-30 任少华 Network virtual article or user account transaction system

Also Published As

Publication number Publication date
CN104348830A (en) 2015-02-11

Similar Documents

Publication Publication Date Title
CN104348830B (en) Resource Exchange methods, devices and systems
KR101821511B1 (en) Data processing method based on instant messaging or social applications, and device thereof
CN104869143A (en) Data sharing method and device, client and server
CN105530175A (en) Message processing method, device and system
CN105160522A (en) Virtual resource transfer method, related device and system
CN105099688A (en) Operation method for electronic account, display method and apparatus for payment page
CN105303400A (en) Resource deduction method and device
CN105376203B (en) The processing method of interactive information, apparatus and system
CN104618101A (en) Data processing method, intermediate server and data processing system
CN104410680A (en) Method, client terminal, server and system of sharing file/file folder
CN104022945A (en) Method and device for realizing instant communication in client end
CN102801647A (en) Realizing method of actual gift in instant communication, client end and system
CN104601712A (en) Resource push method and system
CN105335883A (en) Order processing method and device
CN105871785B (en) Service processing method, device and system
CN104410679B (en) Share extracting method, client, server and the system of file/folder
CN113741754A (en) Task creation method and device, electronic equipment and computer-readable storage medium
CN110286981A (en) The display methods and display system of the use state of virtual cloud desktop server
CN104899746A (en) Sale terminal and method for interaction with mobile device
CN106302368A (en) Transaction methods and device
CN105407002A (en) Account-opening and network-entering method, device and system of online business hall
CN105187474A (en) Information processing method and server
CN204926177U (en) System for realize punching card through identification code
CN104636923A (en) Information transmission method, device and system
CN103456097A (en) Vending machine bound for use with chatting software

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant