CN109816455A - Method and apparatus for handling information - Google Patents

Method and apparatus for handling information Download PDF

Info

Publication number
CN109816455A
CN109816455A CN201910100589.5A CN201910100589A CN109816455A CN 109816455 A CN109816455 A CN 109816455A CN 201910100589 A CN201910100589 A CN 201910100589A CN 109816455 A CN109816455 A CN 109816455A
Authority
CN
China
Prior art keywords
article
score value
information
obtains
block chain
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910100589.5A
Other languages
Chinese (zh)
Inventor
牟彦滔
柴桥子
雷波
闫石
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910100589.5A priority Critical patent/CN109816455A/en
Publication of CN109816455A publication Critical patent/CN109816455A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

Embodiment of the disclosure discloses the method and apparatus for handling information.One specific implementation of this method includes: to receive the article acquisition request of target user's input;According to User Identity, the block chain address for being associated with User Identity, score value and score value record information are found;Relevant information is obtained according to quasi- acquisition number of articles, score value and pre-stored article, it is determined whether is executed article and is obtained operation;It is executed in response to determining, executes article and obtain operation.The embodiment helps to ensure the value reliability of score value.

Description

Method and apparatus for handling information
Technical field
Embodiment of the disclosure is related to field of computer technology, and in particular to the method and apparatus for handling information.
Background technique
Along with the development of miscellaneous user oriented internet product, it has been born miscellaneous for recording certain The system of the score value (for example, integral score value) of attribute.Currently, the system for often each being used to record the score value of certain attribute, All there is respective value definition standard to unit score value, and is generally only used for internal system circulation.In the related technology, there is guarantor Hinder the demand of the value reliability of score value.
Summary of the invention
Embodiment of the disclosure proposes the method and apparatus for handling information.
In a first aspect, embodiment of the disclosure provides a kind of method for handling information, this method comprises: receiving mesh The article acquisition request of user's input is marked, article acquisition request includes User Identity, intends obtaining number of articles;According to user Identity finds the block chain address for being associated with User Identity, score value and score value record information;According to quasi- acquisition object Product number, score value and pre-stored article obtain relevant information, it is determined whether execute article and obtain operation;It is held in response to determination Row executes article and obtains operation.
In some embodiments, it includes: to generate article to obtain record information, and article is obtained and is remembered that article, which obtains operation, Record information is stored to block corresponding with block chain address;Node where receiving block is based on article and obtains record information transmission Task identification;According to task identification, it is determined whether update score value and score value records information.
In some embodiments, pre-stored article obtains relevant information, comprising: article obtains coefficient, and article obtains Upper limit value.
In some embodiments, relevant information is obtained according to quasi- acquisition number of articles, score value and pre-stored article, really It is fixed whether to execute article acquisition operation, comprising: in response to determining that score value is greater than quasi- acquisition number of articles and article obtains coefficient Product, and the quasi- number of articles that obtains is less than article acquisition upper limit value, determines that executing article obtains operation.
In some embodiments, according to task identification, it is determined whether update score value and score value records information, comprising: according to Task identification, query node obtain the cochain status information of record information output for article;In response to determining cochain state letter Breath instruction cochain success determines that updating score value and score value records information.
In some embodiments, before the article acquisition request for receiving target user's input, method further include: receive target The registration information of user's input;According to registration information, User Identity is generated;From pre-stored block chain Selected block chain address in the set of location, as the block chain address for being associated with User Identity.
Second aspect, embodiment of the disclosure provide a kind of for handling the device of information, which includes: that request connects Unit is received, is configured to receive the article acquisition request of target user's input, article acquisition request includes User Identity, is intended Obtain number of articles;Information searching unit is configured to find according to User Identity and be associated with User Identity Block chain address, score value and score value record information;Operation determination unit, be configured to according to it is quasi- obtain number of articles, score value and Pre-stored article obtains relevant information, it is determined whether executes article and obtains operation;Operation execution unit is configured to respond to It is executed in determining, executes article and obtain operation.
In some embodiments, in operation execution unit, it includes: to generate article to obtain record information that article, which obtains operation, And article is obtained into record information and is stored to block corresponding with block chain address;Node where receiving block is based on article Obtain the task identification that record information is sent;According to task identification, it is determined whether update score value and score value records information.
In some embodiments, in operation determination unit, pre-stored article obtains relevant information, comprising: article obtains Coefficient is taken, article obtains upper limit value.
In some embodiments, operation determination unit is further configured to: in response to determining that score value is greater than quasi- acquisition object Product number and article obtain the product of coefficient, and the quasi- number of articles that obtains is less than article acquisition upper limit value, determines that executing article obtains Extract operation.
In some embodiments, in operation execution unit, according to task identification, it is determined whether update score value and score value record Information, comprising: according to task identification, query node obtains the cochain status information of record information output for article;In response to It determines the instruction cochain success of cochain status information, determines that updating score value and score value records information.
In some embodiments, device further include: information receiving unit is configured to receive the registration of target user's input Solicited message;Identification generation unit is configured to generate User Identity according to registration information;Address determination unit, It is configured to the selected block chain address from pre-stored block chain address set, as the area for being associated with User Identity Block chain address.
The third aspect, embodiment of the disclosure provide a kind of electronic equipment, which includes: one or more places Manage device;Storage device is stored thereon with one or more programs;When the one or more program is by the one or more processors It executes, so that the one or more processors realize the method as described in implementation any in first aspect.
Fourth aspect, embodiment of the disclosure provide a kind of computer-readable medium, are stored thereon with computer program, The method as described in implementation any in first aspect is realized when the program is executed by processor.
The method and apparatus for handling information that embodiment of the disclosure provides can receive the object of target user's input Product acquisition request.Article acquisition request includes User Identity, intends obtaining number of articles.Later, according to User Identity, Find the block chain address for being associated with User Identity, score value and score value record information.Then, according to quasi- acquisition article number Mesh, score value and pre-stored article obtain relevant information, it is determined whether execute article and obtain operation.Finally, in response to determination It executes, executes article and obtain operation.The method and apparatus of the present embodiment, user can be obtained by inputting article to terminal device Request is realized the score value with certain attribute being converted into quasi- acquisition article, may be implemented value possessed by score value, conversion At the value of the article (for example, bit coin, skirt etc.) with more stable value, facilitate the value reliability for ensureing score value.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the disclosure is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the disclosure can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for handling information of the disclosure;
Fig. 3 is according to an embodiment of the present disclosure for handling the schematic diagram of an application scenarios of the method for information;
Fig. 4 is the flow chart according to another embodiment of the method for handling information of the disclosure;
Fig. 5 is the structural schematic diagram according to one embodiment of the device for handling information of the disclosure;
Fig. 6 is adapted for the structural schematic diagram for realizing the electronic equipment of disclosed embodiment.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the disclosure can phase Mutually combination.The disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can the method for handling information using embodiment of the disclosure or the dress for handling information The exemplary system architecture 100 set.
As shown in Figure 1, system architecture 100 may include terminal device 101, and network 102,104, database server 103, Block chain node 105.Network 102,104 is between terminal device 101 and database server 103, block chain node 105 The medium of communication link is provided.Network 102,104 may include various connection types, for example, wired, wireless communication link or Fiber optic cables etc..
Terminal device 101 can be interacted by network 102 with database server 103, to receive or send message etc..Eventually Various applications can be installed, for example, article obtains class application, navigation type application, music class application in end equipment 101 Deng.Terminal device 101 can be with display screen and support the various electronic equipments of article acquisition request input, including but not It is limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..Terminal device 101 can receive After the article acquisition request inputted to target user, article according to the pre-stored data is obtained in relevant information and article acquisition request Quasi- acquisition number of articles, it is determined whether execute article obtain operation.It is executed in response to determining, executes article and obtain operation.
Database server 103 can be interacted by network 102 with terminal device 101, to receive or send message etc..Number It may be implemented into according to library server 103 and the distributed server cluster of various data storage services be provided, list also may be implemented into A server.For example, being stored with the service with the associated block chain address of User Identity, score value and score value record information Device.Database server 103 can be recorded what is stored with the associated block chain address of User Identity, score value and score value Information is sent to terminal device 101.
Block chain node 105 can be interacted by network 104 with terminal device 101, to receive or send information etc..Block Chain node 105, which may be implemented into, provides the distributed server cluster of various data processing services, and single clothes also may be implemented into Business device.For example, obtaining the server that record information sends task identification for received article.Block chain node 105 can To obtain record information by block reception to article, after receiving article and obtaining record information, for received object Product obtain record information and send task identification to terminal device 101.
It should be noted that for handling the method for information generally by terminal device provided by embodiment of the disclosure 101 execute, and correspondingly, the device for handling information is generally positioned in terminal device 101.It should be pointed out that terminal is set Standby 101 local, which can also directly be stored, records information with the associated block chain address of User Identity, score value and score value.Eventually End equipment 101, which can be extracted directly, local records information with the associated block chain address of User Identity, score value and score value. At this point, exemplary system architecture 100 can not include network 102 and database server 103.
It should be understood that the number of terminal device, network, database server and block chain node in Fig. 1 is only to show Meaning property.According to needs are realized, any number of terminal device, network, database server and block chain node can have.
With continued reference to Fig. 2, the process of one embodiment of the method for handling information according to the disclosure is shown 200.The method for being used to handle information, comprising the following steps:
Step 201, the article acquisition request of target user's input is received.
It in the present embodiment, can for handling the executing subject (such as terminal device 101 shown in FIG. 1) of the method for information To receive the article acquisition request of target user's input.Wherein, target user is usually and has to executing subject to input article The user of the permission of acquisition request.Wherein, above-mentioned article acquisition request includes User Identity, intends obtaining number of articles.
Wherein, above-mentioned User Identity is usually the information for being used to characterize user identity.As an example, above-mentioned user's body Part mark can be character group " Mr. Wang ", be also possible to character group " wangmoumou02 ", can also be digital group " 1001 ".
The above-mentioned quasi- number of articles that obtains is usually the quasi- number for obtaining article.Above-mentioned quasi- acquisition number of articles is usually positive whole Number.It should be pointed out that above-mentioned quasi- acquisition article can refer to tangible article, such as writing case, skirt etc..It may also mean that Invisible article, for example, household services, digital cash etc..
Step 202, according to User Identity, find the block chain address for being associated with User Identity, score value and Score value records information
In the present embodiment, executing subject can use User Identity, find and close with above-mentioned User Identity The block chain address of connection, score value, score value record information.It should be pointed out that each User Identity can be associated with one Block chain address, a score value and a score value record information.Wherein, above-mentioned block chain address typically refers to certain in block chain The address of one block.Above-mentioned score value, usually for recording the score value of a certain attribute.As an example, above-mentioned score value can be with For the integral score value for recording integral, or for recording the credit score of user credit.Above-mentioned score value records information, Typically refer to the information of the situation of change for recording above-mentioned score value.As an example, above-mentioned score value record information can be " the time T1 obtains 2 integrals by registering daily, and current score value is N1 ".As another example, above-mentioned score value record information can be " time T2, using 3 accumulated point exchangings, 1 bit coin, current score value is N2 ".
Optionally, above-mentioned score value record information can include but is not limited to, and article acquisition time information, article obtains integral Quantity information is intended obtaining number of articles, current score value.Wherein, above-mentioned article acquisition time information can be for describing object The information for the time that product obtain.Above-mentioned article obtains number of points information and can be for describing the spent integral of article acquisition Number information.
Step 203, relevant information is obtained according to quasi- acquisition number of articles and pre-stored article, it is determined whether execute object Product obtain operation.
In the present embodiment, it may include prestige parameter that pre-stored article, which obtains relevant information,.At this point, executing subject It can be determined as follows and whether execute article and obtain operation: firstly, by current score value multiplied by prestige parameter, as can With sum.Here, above-mentioned prestige parameter can be the parameter value of the confidence level for describing user.As an example, above-mentioned prestige Parameter can be digital " 2 ", and the confidence level for describing user is 2.Then, it is greater than quasi- acquisition object in response to above-mentioned available sum Product number determines that executing article obtains operation.
In some optionally implementations of the present embodiment, article obtains relevant information, also may include: that article obtains Coefficient, article obtain upper limit value.At this point, whether executing subject can also be determined as follows executes article acquisition operation: In response to determining that score value is greater than the quasi- product for obtaining number of articles and article acquisition coefficient, and the quasi- number of articles that obtains is less than article Upper limit value is obtained, determines that executing article obtains operation.
Here, executing subject can obtain product first using the quasi- number of articles that obtains multiplied by article acquisition coefficient.Its In, article, which obtains coefficient, can intend obtaining as unit of the ratio of the value of article and the value of unit score value.As an example, if one The ratio of a quasi- value for obtaining article and the value of an integral is 10.At this point, it can be 10 that article, which obtains coefficient,.Further For example, if the quasi- number of articles that obtains is 2, it is 10 that article, which obtains coefficient, at this point, quasi- obtain number of articles and article acquisition system Several products is 2 × 10=20.Later, obtained product can be compared by executing subject with current score value, and Quasi- acquisition number of articles is obtained upper limit value with article to be compared.If current score value is greater than obtained product, and intends obtaining It takes number of articles to be less than article and obtains upper limit value.At this point it is possible to think that present case meets article and obtains condition, object can be executed Product obtain.Wherein, above-mentioned article, which obtains upper limit value, can be the preset numerical value of technical staff.As an example, above-mentioned article Obtaining upper limit value can be 10.
Step 204, it is executed in response to determining, executes article and obtain operation.
In the present embodiment, executing subject can be obtained after determination can execute article acquisition operation by executing article Extract operation realizes that article obtains.Wherein, it is usually for executing the Jia Ge Ku by score value into article that above-mentioned article, which obtains operation, Value operation.
Optionally, executing subject can obtain operation by executing following article, realize that article obtains:
The first step, generate article obtain record information, and by article obtain record information store to block chain address Corresponding block.
Wherein, above-mentioned article obtains record information, can be and obtains the specific of article at quasi- for recording to obtain article The information of situation.As an example, above-mentioned article, which obtains record information, can be the character group " time: when XXXX XX month XX day XX XX divides XX seconds;User Identity: 1001;Integrate number: M;It is quasi- to obtain number of articles: N ", for describing in the XXXX XX month XX divides XX seconds when XX days XX, the user that User Identity is 1001, obtains N number of quasi- acquisition article with M article.
Here, User Identity and quasi- acquisition number of articles, combination can be obtained article and obtain record by executing subject Information.Article acquisition time information, User Identity and quasi- acquisition number of articles, combination can also be obtained object by executing subject Product obtain record information.
It should be pointed out that block chain usually has many block chain addresses, the corresponding area of each block chain address Block.Block chain has multiple nodes, can have multiple blocks in each node, recording for being safeguarded in each node is identical.Separately Outside, it should be pointed out that block chain is the computers skills such as Distributed Storage, point-to-point transmission, common recognition mechanism, Encryption Algorithm The new application mode of art.Block chain is a kind of database of decentralization, including multiple nodes, anyone can set up clothes Business device, is added block chain, becomes a node.When new data is written in a node in block chain, machine of knowing together can be passed through The new data that the node is written is synchronized in other nodes of block chain by system, so that the number in the block chain that all nodes save According to uniformity.Wherein, the common recognition algorithm that common recognition mechanism uses can include but is not limited to practical Byzantine failure tolerance (Practical Byzantine Fault Tolerance, PBFT) algorithm, proof of work (Proof of Work, PoW) Algorithm etc..
Second step, the node where receiving block obtain the task identification that record information is sent based on article.
Here, article is obtained record information and stored to block corresponding with block chain address by executing subject, block The node at place can generate a task identification for above-mentioned storage operation.
Wherein, above-mentioned task identification is usually the information for being used to identify the identity coding of above-mentioned storage operation.As an example, Above-mentioned task identification can be " 123 ", and the identity coding for identifying above-mentioned storage operation is 123.
Here, executing subject can receive node and be based on article by wired connection mode or radio connection Obtain the task identification that record information is sent.
Third step, according to task identification, it is determined whether update score value and score value records information.
Firstly, executing subject can use received task identification, query node obtains record information for article The cochain status information of output.Wherein, above-mentioned cochain status information can be the information for describing cochain state.Above-mentioned cochain State may include cochain success, cochain failure.It should be pointed out that above-mentioned node be written into article obtain record information it Afterwards, in all nodes in block chain, if there is setting number node feeding back confirmation message, it may be considered that cochain success. If the number for having fed back the node of confirmation message is less than setting number, it may be considered that cochain fails in the duration of setting.Its In, above-mentioned confirmation message can be the sending of certain node for confirming that the information of synchronizing information is completed in the node.As an example, Above-mentioned confirmation message can be " 1 ", be also possible to " yes ", can also be " done ".Further, for example, if block chain With node A, B, C, D, information M is written in node A, at this point, node B, C and D need to be synchronously written information M.If node B is Information M is written for completion, then to node A feedback acknowledgment information.
Then, in response to determining the instruction cochain success of cochain status information, determine that updating score value and score value records information.This In, in the instruction cochain success of above-mentioned cochain status information, executing subject can be updated score value and score value record information. In addition, determining in response to determining the instruction cochain failure of cochain status information and not updating score value and score value record information.It may be noted that , facilitated really by the success and failure of cochain state to determine whether to be updated score value and score value record information Protect the consistency of the record in block chain with the record in the system for recording certain score value.In addition, to score value and dividing simultaneously Value record information is updated, and helps to realize the consistency for ensureing score value variation with the variation of score value record information.
In the present embodiment, executing subject can update in the following way score value and score value record information: by score value with The quasi- difference for obtaining number of articles is as score value.And article is obtained into record information and is added to score value record information.
In some optional implementations of the present embodiment, executing subject can also update in the following way score value and Score value records information: firstly, score value is subtracted the quasi- product for obtaining number of articles and article acquisition coefficient, remaining score value is obtained, Using remaining score value as score value.Then, article is obtained into record information and is added to score value record information.
It is above-mentioned for handling the executing subject (example of the method for information in some optional implementations of the present embodiment Terminal device 101 as shown in Figure 1) following steps can also be performed, to increase score value:
The first step generates score value and obtains information in response to detecting that the score value of target user obtains operation.Here, above-mentioned Score value obtains the operation that operates and can be for increasing score value.Above-mentioned score value obtains operation and can be shown by click terminal device Specify information operation.Above-mentioned specify information can be the preset information of technical staff.As an example, above-mentioned specified letter Breath can be the information such as " register " shown by terminal device.Above-mentioned score value acquisition information can be to be obtained for describing above-mentioned score value The information of extract operation.As an example, above-mentioned score value, which obtains information, to be " time-click- register-twice ".For describing At the time of time is corresponded to, second of click " registering " information of user.
Second step obtains information in response to score value and meets preset score value acquisition rule, current score value is added The number unit score value that rule is obtained corresponding to score value, using the score value after execution addition as current score value.Here in advance The score value create-rule of setting can be the preset condition of technical staff.As an example, above-mentioned preset score value is raw It can be that, if clicking " registering " for the first time in one day, score value increases by 2 at rule.If clicking " registering " second in one day, score value Increase by 1.If clicking " registering " number in one day is greater than 2, score value does not increase.
Third step generates score value and obtains record information, and score value generated is obtained record information and is added to score value Record information.Wherein, above-mentioned score value obtains record information, can be the information for recording the concrete condition for increasing score value.Make For example, above-mentioned score value acquisition record information can be character group, and " time: XX divides XX seconds when XXXX XX month XX day XX;User Identity: 1001;Operation: it registers;Integral number: M " is obtained, is divided XX seconds for describing the XX in XXXX XX month XX day XX, The user that User Identity is 1001, gets M integral by way of registering.
Here, executing subject can User Identity and institute is increased, regular number, group are obtained corresponding to score value Conjunction obtains score value and obtains record information.Executing subject by score value acquisition time information, User Identity and can also correspond to Score value obtains the number of rule, and combination obtains score value and obtains record information.
With continued reference to the signal that Fig. 3, Fig. 3 are according to the application scenarios of the method for handling information of the present embodiment Figure.In the application scenarios of Fig. 3, firstly, user 301 click keys either write direct by way of, to terminal device 302 have input " 2B ", at this point it is possible to which obtaining article acquisition request can be with are as follows: user101-2B.Wherein, user101 is user Identity, 2 obtain number of articles to be quasi-, and B indicates bit coin.
Then, terminal device 302 can receive article acquisition request " user101-2B ".Later, terminal device 302 Block chain address " aaa//bbb//cc " can be found using " user101 ", store the variable " num " of score value and for storing The variable " list1 " of score value record information.Then, terminal device 302 is using in article acquisition request " user101-2B " The score value stored in " 2 ", variable " num " and pre-stored article obtain relevant information, it is determined whether execute article and obtain Operation.
Finally, being executed in response to determining, execute following article and obtain operation: the first step, generates article and obtain record information "time-jifen10-2B".Here, article obtains record information " time-jifen10-2B " and adopts for describing in time time With 10 integrals, 2 bit coin are exchanged for.Second step, by article obtain record information " time-jifen10-2B " store to block The corresponding block of chain address " aaa//bbb//cc ".Third step, the node 303 where receiving block are based on article and obtain record letter Cease the task identification " 231 " that " time-jifen10-2B " is sent.4th step, according to task identification " 231 ", it is determined whether update The score value record information stored in the score value and variable " list1 " stored in variable " num ".
The method provided by the above embodiment for handling information of the disclosure can receive the article of target user's input Acquisition request.Article acquisition request includes User Identity, intends obtaining number of articles.Later, it according to User Identity, looks into Find the block chain address for being associated with User Identity, score value and score value record information.Then, according to quasi- acquisition article number Mesh, score value and pre-stored article obtain relevant information, it is determined whether execute article and obtain operation.Finally, in response to determination Execute, execute following article and obtain operation: generating article and obtain record information, and by article obtain record information store to The corresponding block of block chain address.Node where receiving block obtains the task identification that record information is sent based on article.Root According to task identification, it is determined whether update score value and score value records information.The method of the present embodiment, user can be by setting to terminal Standby input article acquisition request, is realized Integral Transformation into quasi- acquisition article.In addition, article is obtained during conversion It records in information write-in block chain, facilitates the value reliability for further ensureing score value.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of the method for handling information.The use In the process 400 of the method for processing information, comprising the following steps:
Step 401, the registration information of target user's input is received.
In the present embodiment, executing subject can receive the registration information of target user's input.Wherein, above-mentioned note Volume solicited message can be the information for requesting registration.As an example, above-mentioned registration information can be character group "sign-up".Optionally, above-mentioned registration information can include but is not limited at least one of following: age information, gender letter Breath, name, birthday by information, nickname information etc..
Step 402, according to registration information, User Identity is generated.
In the present embodiment, executing subject can use above-mentioned registration information, raw vehicle User Identity.Wherein, Above-mentioned User Identity is usually the information for being used to characterize user identity.As an example, above-mentioned User Identity can be " 1010 ", for characterizing the user that user is the 1010th registration.Optionally, the information of above-mentioned user identity may include but not It is limited at least one of following: age information, gender information, name, birthday by information, nickname information etc..
Step 403, the selected block chain address from pre-stored block chain address set, as being associated with user identity The block chain address of mark.
In the present embodiment, executing subject can randomly select a block chain from pre-stored block chain set Address, as the block chain address for being associated with User Identity.Executing subject can also be from pre-stored block chain set In, first block chain address is chosen, as the block chain address for being associated with User Identity.Here without limitation.
Step 404, the article acquisition request of target user's input is received.
Wherein, article acquisition request includes User Identity, intends obtaining number of articles.
Step 405, according to User Identity, find the block chain address for being associated with User Identity, score value and Score value records information.
Step 406, relevant information is obtained according to quasi- acquisition number of articles, score value and pre-stored article, it is determined whether It executes article and obtains operation.
Step 407, it is executed in response to determining, executes article and obtain operation.
In the present embodiment, the behaviour of the concrete operations of step 404-407 and step 201-204 in embodiment shown in Fig. 2 Make essentially identical, details are not described herein.
Figure 4, it is seen that the method for handling information compared with the corresponding embodiment of Fig. 2, in the present embodiment Process 400 highlight execute article obtain before registration step, to registration user generate User Identity step Suddenly, the step of and obtaining the block chain address for being associated with User Identity.The scheme of the present embodiment description as a result, executes Score value with certain attribute is converted into quasi- acquisition article by main body, and user may be implemented by value possessed by score value, conversion Facilitate the value reliability of guarantee score value at the article (for example, bit coin, skirt etc.) with more stable value.Meanwhile also User can be improved to the degree of belief of system.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, present disclose provides one kind for handling letter One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the present embodiment includes: request reception unit 501 for handling the device 500 of information, it is configured At the article acquisition request for receiving target user's input, article acquisition request includes User Identity, intends obtaining number of articles; Information searching unit 502, with being configured to find the block chain for being associated with User Identity according to User Identity Location, score value and score value record information;Operation determination unit 503 is configured to according to quasi- acquisition number of articles, score value and deposits in advance The article of storage obtains relevant information, it is determined whether executes article and obtains operation;Operation execution unit 504, is configured in response to It determines and executes, execute article and obtain operation.
In some optional implementations of the present embodiment, in operation execution unit 504, article obtains operation and includes: Firstly, generating article obtains record information, and article is obtained into record information and is stored to block corresponding with block chain address. Then, the node where receiving block obtains the task identification that record information is sent based on article.Finally, according to task identification, Determine whether to update score value and score value record information.
In some optional implementations of the present embodiment, in operation determination unit 503, pre-stored article is obtained Relevant information, comprising: article obtains coefficient, and article obtains upper limit value.
In some optional implementations of the present embodiment, operation determination unit 503 can be further configured to: be rung The quasi- product for obtaining number of articles and article acquisition coefficient should be greater than in determining score value, and the quasi- number of articles that obtains is obtained less than article Capping value determines that executing article obtains operation.
In some optional implementations of the present embodiment, in operation execution unit, according to task identification, it is determined whether It updates score value and score value records information, comprising: firstly, query node is defeated for article acquisition record information according to task identification Cochain status information out.Then, it in response to determining the instruction cochain success of cochain status information, determines and updates score value and score value note Record information.
In some optional implementations of the present embodiment, which can also include information receiving unit, mark life At unit and address determination unit (not shown).Wherein, it is defeated to may be configured to reception target user for information receiving unit The registration information entered.Identification generation unit may be configured to generate User Identity according to registration information.Ground Location determination unit may be configured to the selected block chain address from pre-stored block chain address set, as being associated with use The block chain address of family identity.
The device provided by the above embodiment of the disclosure, the article that request reception unit 501 receives target user's input obtain Request is taken, article acquisition request includes User Identity, intends obtaining number of articles.Then, information searching unit 502 according to Family identity finds the block chain address for being associated with User Identity, score value and score value record information.Then, it operates Determination unit 503 obtains relevant information according to quasi- acquisition number of articles, score value and pre-stored article, it is determined whether executes object Product obtain operation.Finally, operation execution unit 504 is executed in response to determining, executes article and obtain operation.The dress of the present embodiment It sets, user can realize the score value with certain attribute being converted into quasi- obtain by inputting article acquisition request to terminal device Take article.Facilitate the value reliability of guarantee score value.
Below with reference to Fig. 6, it illustrates the electronic equipment that is suitable for being used to realize embodiment of the disclosure, (example is as shown in figure 1 Terminal device) 600 structural schematic diagram.Terminal device in embodiment of the disclosure can include but is not limited to such as move electricity Words, laptop, digit broadcasting receiver, PDA (personal digital assistant), PAD (tablet computer), PMP (portable multimedia Player), the mobile terminal and such as number TV, desktop computer etc. of car-mounted terminal (such as vehicle mounted guidance terminal) etc. Fixed terminal.Terminal device shown in Fig. 6 is only an example, function to embodiment of the disclosure and should not use model Shroud carrys out any restrictions.
As shown in fig. 6, electronic equipment 600 may include processing unit (such as central processing unit (CPU), graphics process Device etc.) 601, can according to the program being stored in read-only memory (ROM) 602 or from storage device 608 be loaded into Machine accesses the program in memory (RAM) 603 and executes various movements appropriate and processing.In RAM 603, it is also stored with electricity Sub- equipment 600 operates required various programs and data.Processing unit 601, ROM 602 and RAM 603 by bus 604 that This is connected.Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 606 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 607 of dynamic device etc.;Storage device 608 including such as tape, hard disk etc.;And communication device 609.Communication device 609, which can permit electronic equipment 600, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 6 shows tool There is the electronic equipment 600 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.Each box shown in Fig. 6 can represent a device, can also root According to needing to represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608 It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the implementation of the disclosure is executed The above-mentioned function of being limited in the method for example.It should be noted that the computer-readable medium of embodiment of the disclosure can be meter Calculation machine readable signal medium or computer readable storage medium either the two any combination.Computer-readable storage Medium for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, Or any above combination.The more specific example of computer readable storage medium can include but is not limited to: have one Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light Memory device, magnetic memory device or above-mentioned any appropriate combination.In embodiment of the disclosure, computer-readable to deposit Storage media can be any tangible medium for including or store program, which can be commanded execution system, device or device Part use or in connection.And in embodiment of the disclosure, computer-readable signal media may include in base band In or as carrier wave a part propagate data-signal, wherein carrying computer-readable program code.This propagation Data-signal can take various forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Meter Calculation machine readable signal medium can also be any computer-readable medium other than computer readable storage medium, which can Read signal medium can be sent, propagated or be transmitted for being used by instruction execution system, device or device or being tied with it Close the program used.The program code for including on computer-readable medium can transmit with any suitable medium, including but not It is limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.Above-mentioned computer-readable medium carries one or more program, when said one or more When a program is executed by the electronic equipment, so that the electronic equipment: receiving the article acquisition request of target user's input, article obtains Taking request includes User Identity, intends obtaining number of articles;According to User Identity, finds and be associated with user identity mark Block chain address, score value and the score value of knowledge record information;It is obtained according to quasi- acquisition number of articles, score value and pre-stored article Relevant information, it is determined whether execute article and obtain operation;It is executed in response to determining, executes article and obtain operation.
The behaviour for executing embodiment of the disclosure can be write with one or more programming languages or combinations thereof The computer program code of work, programming language include object oriented program language-such as Java, Smalltalk, C++ further include conventional procedural programming language-such as " C " language or similar program design language Speech.Program code can be executed fully on the user computer, partly be executed on the user computer, as an independence Software package execute, part on the user computer part execute on the remote computer or completely in remote computer or It is executed on server.In situations involving remote computers, remote computer can pass through the network of any kind --- packet It includes local area network (LAN) or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as benefit It is connected with ISP by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in embodiment of the disclosure can be realized by way of software, can also be passed through The mode of hardware is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor Including request reception unit, information searching unit, operation determination unit and operation execution unit.Wherein, the title of these units The restriction to the unit itself is not constituted under certain conditions, for example, request reception unit is also described as " receiving mesh Mark the unit of the article acquisition request of user's input ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (14)

1. a kind of method for handling information, comprising:
The article acquisition request of target user's input is received, the article acquisition request includes User Identity, intends obtaining object Product number;
According to the User Identity, block chain address, score value and the score value for being associated with the User Identity are found Record information;
Relevant information is obtained according to the quasi- acquisition number of articles, the score value and pre-stored article, it is determined whether is executed Article obtains operation;
It is executed in response to determining, executes article and obtain operation.
2. according to the method described in claim 1, wherein, the article obtains operation and includes:
It generates article and obtains record information, and the article is obtained into record information and is stored to corresponding with the block chain address Block;
Node where receiving the block obtains the task identification that record information is sent based on the article;
According to the task identification, it is determined whether update the score value and score value record information.
3. according to the method described in claim 2, wherein, the pre-stored article obtains relevant information, comprising: article obtains Coefficient is taken, article obtains upper limit value.
It is described according to the quasi- acquisition number of articles, the score value and in advance 4. according to the method described in claim 3, wherein The article of storage obtains relevant information, it is determined whether executes article and obtains operation, comprising:
It is greater than the quasi- product for obtaining number of articles and article acquisition coefficient in response to the determination score value, and described quasi- It obtains number of articles and is less than article acquisition upper limit value, determine that executing the article obtains operation.
5. described according to the task identification, it is determined whether to update the score value according to the method described in claim 2, wherein Information is recorded with the score value, comprising:
According to the task identification, the cochain status information that the node obtains record information output for the article is inquired;
In response to the determination cochain status information instruction cochain success, determines and update the score value and score value record letter Breath.
6. method described in one of -5 according to claim 1, wherein it is described receive target user input article acquisition request it Before, the method also includes:
Receive the registration information of target user's input;
According to the registration information, the User Identity is generated;
The selected block chain address from pre-stored block chain address set, as the area for being associated with the User Identity Block chain address.
7. a kind of for handling the device of information, comprising:
Request reception unit, is configured to receive the article acquisition request of target user's input, and the article acquisition request includes User Identity is intended obtaining number of articles;
Information searching unit is configured to find according to the User Identity and be associated with the User Identity Block chain address, score value and score value record information;
Operation determination unit is configured to be obtained according to the quasi- acquisition number of articles, the score value and pre-stored article Relevant information, it is determined whether execute article and obtain operation;
Operation execution unit is configured in response to determine execution, executes article and obtains operation.
8. device according to claim 7, wherein in the operation execution unit, the article obtains operation and includes:
It generates article and obtains record information, and the article is obtained into record information and is stored to corresponding with the block chain address Block;
Node where receiving the block obtains the task identification that record information is sent based on the article;
According to the task identification, it is determined whether update the score value and score value record information.
9. device according to claim 8, wherein in the operation determination unit, the pre-stored article is obtained Relevant information, comprising: article obtains coefficient, and article obtains upper limit value.
10. device according to claim 9, wherein the operation determination unit is further configured to:
It is greater than the quasi- product for obtaining number of articles and article acquisition coefficient in response to the determination score value, and described quasi- It obtains number of articles and is less than article acquisition upper limit value, determine that executing the article obtains operation.
11. device according to claim 8, wherein it is described according to the task identification in the operation execution unit, Determine whether to update the score value and score value record information, comprising:
According to the task identification, the cochain status information that the node obtains record information output for the article is inquired;
In response to the determination cochain status information instruction cochain success, determines and update the score value and score value record letter Breath.
12. the device according to one of claim 7-11, wherein described device further include:
Information receiving unit is configured to receive the registration information of target user's input;
Identification generation unit is configured to generate the User Identity according to the registration information;
Address determination unit is configured to the selected block chain address from pre-stored block chain address set, as association In the block chain address of the User Identity.
13. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
14. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Such as method as claimed in any one of claims 1 to 5.
CN201910100589.5A 2019-01-31 2019-01-31 Method and apparatus for handling information Pending CN109816455A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910100589.5A CN109816455A (en) 2019-01-31 2019-01-31 Method and apparatus for handling information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910100589.5A CN109816455A (en) 2019-01-31 2019-01-31 Method and apparatus for handling information

Publications (1)

Publication Number Publication Date
CN109816455A true CN109816455A (en) 2019-05-28

Family

ID=66606250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910100589.5A Pending CN109816455A (en) 2019-01-31 2019-01-31 Method and apparatus for handling information

Country Status (1)

Country Link
CN (1) CN109816455A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111955883A (en) * 2020-08-28 2020-11-20 合肥星空物联信息科技有限公司 Information processing method and device
CN113393262A (en) * 2021-05-21 2021-09-14 北京京东振世信息技术有限公司 Virtual article processing method and device, electronic equipment and computer readable medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain
CN108230011A (en) * 2017-12-12 2018-06-29 北京瑞卓喜投科技发展有限公司 Integration processing method and device based on block chain technology
TWM566867U (en) * 2018-05-30 2018-09-11 黃鼎鈞 Bonus point cryptocurrency trading device
CN108776908A (en) * 2018-06-01 2018-11-09 杭州复杂美科技有限公司 A kind of block chain accumulated point exchanging method
CN108830632A (en) * 2018-04-24 2018-11-16 深圳市轱辘车联数据技术有限公司 A kind of integration managing method, block chain node device and client
CN109087116A (en) * 2017-06-14 2018-12-25 中兴通讯股份有限公司 Accumulated point exchanging method, integral transaction system and computer readable storage medium
CN109636434A (en) * 2018-10-19 2019-04-16 深圳壹账通智能科技有限公司 Integration managing method, system, electronic equipment and storage medium based on block chain

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain
CN109087116A (en) * 2017-06-14 2018-12-25 中兴通讯股份有限公司 Accumulated point exchanging method, integral transaction system and computer readable storage medium
CN108230011A (en) * 2017-12-12 2018-06-29 北京瑞卓喜投科技发展有限公司 Integration processing method and device based on block chain technology
CN108830632A (en) * 2018-04-24 2018-11-16 深圳市轱辘车联数据技术有限公司 A kind of integration managing method, block chain node device and client
TWM566867U (en) * 2018-05-30 2018-09-11 黃鼎鈞 Bonus point cryptocurrency trading device
CN108776908A (en) * 2018-06-01 2018-11-09 杭州复杂美科技有限公司 A kind of block chain accumulated point exchanging method
CN109636434A (en) * 2018-10-19 2019-04-16 深圳壹账通智能科技有限公司 Integration managing method, system, electronic equipment and storage medium based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111955883A (en) * 2020-08-28 2020-11-20 合肥星空物联信息科技有限公司 Information processing method and device
CN113393262A (en) * 2021-05-21 2021-09-14 北京京东振世信息技术有限公司 Virtual article processing method and device, electronic equipment and computer readable medium

Similar Documents

Publication Publication Date Title
CN109375918A (en) Interface rendering method, device, electronic equipment and the storage medium of small routine
CN109299348A (en) A kind of data query method, apparatus, electronic equipment and storage medium
CN109656923A (en) A kind of data processing method, device, electronic equipment and storage medium
CN109447635A (en) Information storage means and device for block chain
CN110222775A (en) Image processing method, device, electronic equipment and computer readable storage medium
CN108846753A (en) Method and apparatus for handling data
CN110334109A (en) Relational database data query method, system, medium and electronic equipment
CN115757400B (en) Data table processing method, device, electronic equipment and computer readable medium
CN108897874A (en) Method and apparatus for handling data
CN110413742A (en) Duplicate checking method, apparatus, equipment and the storage medium of biographic information
CN110391938A (en) Method and apparatus for deployment services
CN109359281A (en) Dynamic list generation method and device
CN108959642A (en) Method and apparatus for information to be written
CN110286928A (en) Interface element update method, device, electronic equipment and the storage medium of application program
CN109492200A (en) Cooperated documents restoring method, device, storage medium and electronic equipment
CN109885593A (en) Method and apparatus for handling information
CN109816455A (en) Method and apparatus for handling information
CN109766392A (en) Data processing method and device
CN110135903A (en) Advertisement position ranks method, system, medium and electronic equipment
CN109697034A (en) A kind of method for writing data, device, electronic equipment and storage medium
CN109377284A (en) Method and electronic equipment for pushed information
CN109271224A (en) Method and apparatus for determining position
CN110515909A (en) File storage method and device, electronic equipment and computer storage medium
CN111626802A (en) Method and apparatus for processing information
CN109840072A (en) Information processing method and device

Legal Events

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