TW202013272A - A method and apparatus for allocating virtual resources - Google Patents

A method and apparatus for allocating virtual resources Download PDF

Info

Publication number
TW202013272A
TW202013272A TW108108957A TW108108957A TW202013272A TW 202013272 A TW202013272 A TW 202013272A TW 108108957 A TW108108957 A TW 108108957A TW 108108957 A TW108108957 A TW 108108957A TW 202013272 A TW202013272 A TW 202013272A
Authority
TW
Taiwan
Prior art keywords
user
value
preset duration
business
target business
Prior art date
Application number
TW108108957A
Other languages
Chinese (zh)
Inventor
董宵群
明 邱
朱琳
鈕清鋒
全恩如
李懷勇
Original Assignee
香港商阿里巴巴集團服務有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 香港商阿里巴巴集團服務有限公司 filed Critical 香港商阿里巴巴集團服務有限公司
Publication of TW202013272A publication Critical patent/TW202013272A/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5061Partitioning or combining of resources
    • G06F9/5072Grid computing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • Finance (AREA)
  • Mathematical Physics (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Technology Law (AREA)
  • General Business, Economics & Management (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

One or more embodiments of the present specification provide a method and apparatus for allocating virtual resource based on a block chain, which are applied to a service system constructued based on a block chain. The block chain includes a plurality of user nodes. The method includes: obtaining a first eigenvalue of a user, wherein the first eigenvalue is used to characterize a contribution of the user to a target service participating in the service system within a preset time period; obtaining, based on the first eigenvalue, the virtual resources to which the user is entitled to participate in the target service within the preset time period; allocating virtual resources due to participate in the target service within the preset time period to the user.

Description

一種虛擬資源的分配方法和裝置Method and device for distributing virtual resources

本說明書關於網路網路資訊處理技術領域,尤其關於一種虛擬資源的分配方法和裝置。This specification relates to the technical field of network information processing, in particular to a virtual resource allocation method and device.

為鼓勵使用者對業務的貢獻,業務系統常基於業務貢獻對使用者進行虛擬資源分配。現有業務系統通常採用積分表徵使用者所作的業務貢獻,由於積分計算採取累積的方式,老使用者將累積比新使用者更多的積分。由於積分多少決定了最終獎勵的分配,老使用者往往能比新使用者分配到更多虛擬資源。這樣的計算方式過多獎勵了加入時間越久的使用者,其實並不能非常好地衡量一個使用者對業務系統的貢獻量,降低了新使用者加入或使用業務系統的意願。 區塊鏈技術,也被稱之為分布式帳本技術,是一種由若干台計算設備共同參與“記帳”,共同維護一份完整的分布式資料庫的新興網路網路技術。由於區塊鏈技術具有去中心化、公開透明、每台計算設備可以參與資料庫記錄、並且各計算設備之間可以快速的進行資料同步的特性,使得區塊鏈技術已在眾多的領域中廣泛的進行應用。To encourage users to contribute to business, business systems often allocate virtual resources to users based on business contributions. Existing business systems usually use points to represent the business contributions made by users. Since the calculation of points takes a cumulative approach, old users will accumulate more points than new users. Since the number of points determines the distribution of the final reward, old users can often allocate more virtual resources than new users. Such a calculation method excessively rewards users who have been joining for a long time, in fact, it cannot measure the contribution of a user to the business system very well, and reduces the willingness of new users to join or use the business system. Blockchain technology, also known as distributed ledger technology, is an emerging network technology in which several computing devices participate in "accounting" and jointly maintain a complete distributed database. Blockchain technology has the characteristics of decentralization, openness and transparency, each computing device can participate in database records, and data synchronization can be quickly performed between computing devices, making blockchain technology widely used in many fields. Application.

有鑑於此,本說明書一個或多個實施例提供了一種虛擬資源的分配方法,用於對業務系統的使用者進行虛擬資源分配,包括: 獲得使用者的第一特徵值,其中,所述第一特徵值用以表徵所述使用者在預設的時長內對業務系統內所參加目標業務中的貢獻; 基於所述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源; 為所述使用者分配在所述預設時長內參加所述目標業務的應得虛擬資源。 在又一示出的實施例中,所述基於所述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源,包括: 基於所述第一特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率; 獲得所述業務系統在所述預設時長內基於所述目標業務可供分配的虛擬資源總量; 基於所述虛擬資源總量和所述使用者的所述貢獻比率,獲得所述使用者在所述預設時長內參加所述目標業務的應得虛擬資源。 在又一示出的實施例中,所述的方法,還包括: 在為所述使用者分配在所述預設時長內的應得虛擬資源之後,清零所述使用者的第一特徵值。 在又一示出的實施例中,所述基於所述第一特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率,包括: 獲得所述使用者的第二特徵值,其中,所述第二特徵值用以表徵所述使用者的可信度; 基於所述第一特徵值和第二特徵值獲得所述使用者在所述預設的時長內所述使用者在所述預設的時長內對所述目標業務的貢獻比率。 在又一示出的實施例中,所述業務系統為所述預設時長內所有使用者的第一特徵值總和設置有一預期值,並為所述預設時長內的基於所述目標業務可供分配的所述虛擬資源總量設置有一固定閾值;所述方法還包括: 獲得所述預設時長內所有使用者的第一特徵值總和的實際值; 對比所述預期值與所述實際值,如果所述實際值未超過所述預期值,所述虛擬資源總量為所述固定閾值; 如果所述實際值超過所述預期值,基於所述實際值與所述預期值的差值設置虛擬資源額外值,所述虛擬資源總量為所述固定閾值與所述額外值之和。 在又一示出的實施例中,所述基於所述第一特徵值和第二特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率,包括: 基於所述第一特徵值和所述第二特徵值獲得所述使用者對所述目標業務的貢獻參數值; 獲得所有使用者對業務系統內所述目標業務的貢獻參數值總和; 基於所述使用者的貢獻參數值占所述貢獻參數值總和的比率,獲得所述使用者對所述目標業務的貢獻比率。 在又一示出的實施例中,所述業務系統是基於區塊鏈構建的系統,所述區塊鏈包括多個使用者節點。 在又一示出的實施例中,所述方法還包括:在為所述使用者分配在所述預設時長內的應得虛擬資源之後,向所述區塊鏈的分布式資料庫中發佈清零交易,所述清零交易用以將所述使用者的第一特徵值設置為零。 在又一示出的實施例中,所述基於所述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源;為所述使用者分配在所述預設時長內參加所述目標業務的應得虛擬資源,包括: 調用發佈在所述區塊鏈上的虛擬資源分配智慧型合約,執行所述智慧型合約所聲明的基於所述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源,且為所述使用者分配在所述預設時長內參加所述目標業務的應得虛擬資源的執行邏輯。 在又一示出的實施例中,所述智慧型合約內還聲明有將所述使用者的第一特徵值清零的執行邏輯,在為所述使用者分配所述應得虛擬資源後,向所述區塊鏈的分布式資料庫中發佈清零交易,所述清零交易用以將所述使用者的第一特徵值設置為零。 本說明書還提供了一種虛擬資源的分配裝置,用於對業務系統的使用者進行虛擬資源分配,包括: 獲得單元,獲得使用者的第一特徵值,其中,所述第一特徵值用以表徵所述使用者在預設的時長內對業務系統內所參加目標業務中的貢獻; 基於所述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源; 分配單元,為所述使用者分配在所述預設時長內參加所述目標業務的應得虛擬資源。 在又一示出的實施例中,所述獲得單元: 基於所述第一特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率; 獲得所述業務系統在所述預設時長內基於所述目標業務可供分配的虛擬資源總量; 基於所述虛擬資源總量和所述使用者的所述貢獻比率,獲得所述使用者在所述預設時長內參加所述目標業務的應得虛擬資源。 在又一示出的實施例中,上述裝置還包括: 清零單元,在為所述使用者分配在所述預設時長內的應得虛擬資源之後,清零所述使用者的第一特徵值。 在又一示出的實施例中,所述獲得單元: 獲得所述使用者的第二特徵值,其中,所述第二特徵值用以表徵所述使用者的可信度; 基於所述第一特徵值和第二特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率。 在又一示出的實施例中,所述業務系統為所述預設時長內所有使用者的第一特徵值總和設置有一預期值,並為所述預設時長內的基於所述目標業務可供分配的所述虛擬資源總量設置有一固定閾值;所述裝置還包括虛擬資源總量計算單元: 獲得所述預設時長內所有使用者的第一特徵值總和的實際值; 對比所述預期值與所述實際值,如果所述實際值未超過所述預期值,所述虛擬資源總量為所述固定閾值; 如果所述實際值超過所述預期值,基於所述實際值與所述預期值的差值設置虛擬資源額外值,所述虛擬資源總量為所述固定閾值與所述額外值之和。 在又一示出的實施例中,所述獲得單元: 基於所述第一特徵值和所述第二特徵值獲得所述使用者對所述目標業務的貢獻參數值; 獲得所有使用者對業務系統內所述目標業務的貢獻參數值總和; 基於所述使用者的貢獻參數值占所述貢獻參數值總和的比率,獲得所述使用者對所述目標業務的貢獻比率。 在又一示出的實施例中,所述業務系統是基於區塊鏈構建的系統,所述區塊鏈包括多個使用者節點。 在又一示出的實施例中,所述的裝置還包括清零交易發送單元:在為所述使用者分配在所述預設時長內的應得虛擬資源之後,向所述區塊鏈的分布式資料庫中發佈清零交易,所述清零交易用以將所述使用者的第一特徵值設置為零。 在又一示出的實施例中,所述獲得單元和分配單元: 調用發佈在所述區塊鏈上的虛擬資源分配智慧型合約,執行所述智慧型合約所聲明的基於所述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源,且為所述使用者分配在所述預設時長內參加所述目標業務的應得虛擬資源的執行邏輯。 在又一示出的實施例中,所述智慧型合約內還聲明有將所述使用者的第一特徵值清零的執行邏輯,在為所述使用者分配所述應得虛擬資源後,向所述區塊鏈的分布式資料庫中發佈清零交易,所述清零交易用以將所述使用者的第一特徵值設置為零。 本說明書還提供了一種計算機設備,包括:記憶體和處理器;所述記憶體上儲存有可由處理器運行的計算機程式;所述處理器運行所述計算機程式時,執行上述虛擬資源分配方法所述的步驟。 本說明書還提供了一種計算機可讀儲存媒體,其上儲存有計算機程式,所述計算機程式被處理器運行時,執行上述虛擬資源分配方法所述的步驟。 由以上技術方案可見,本說明書提供的虛擬資源的分配方法及裝置,將虛擬資源的分配按時間分階段化,在預設的時長內評價使用者對目標業務的貢獻比率,從而將該預設的時長內可供分配的虛擬資源總量按照各使用者的貢獻比率相應分配,避免了現有的虛擬資源分配依賴使用者對業務系統的積累使用時長而引起的不能鼓勵新使用者加入的缺點。而且,在一些示出的實施例中,鼓勵用以表徵使用者的可信度的第二特徵值納入到使用者對目標業務的貢獻比率中來,使得業務系統中對使用者進行的虛擬資源分配,不僅與使用者對目標業務的貢獻相關,還與使用者的可信度相關,鼓勵使用者在多做業務的同時、維持良好的可信程度,使得業務系統朝著更為良性的狀態發展。 進一步地,將上述虛擬資源分配方法應用於區塊鏈網路網路中,將用以表徵所述在預設的時長內對業務系統內運行的業務的貢獻的第一特徵值、或將第一特徵值和用以表徵使用者可信度的第二特徵值去中心化地記錄在區塊鏈的分布式資料庫中,由區塊鏈的節點共同維護,所有資料記錄可回溯,而且,基於區塊鏈的共識機制,所述第一特徵值、第二特徵值不會在提供後被篡改,從而保證了依託於所述第一特徵值、或第一特徵值和第二特徵值而進行的虛擬資源分配行為的可靠性和公平性。In view of this, one or more embodiments of this specification provide a virtual resource allocation method for virtual resource allocation to users of a business system, including: Obtaining a first characteristic value of the user, wherein the first characteristic value is used to characterize the user's contribution to the target business participating in the business system within a preset duration; Obtaining a deserved virtual resource for the user to participate in the target business within the preset duration based on the first feature value; The user is allocated virtual resources deserving to participate in the target business within the preset duration. In yet another illustrated embodiment, the obtaining, based on the first characteristic value, the deserved virtual resource for the user to participate in the target business within the preset duration includes: Obtaining the contribution rate of the user to the target business within the preset duration based on the first feature value; Obtaining the total amount of virtual resources available for allocation by the business system based on the target business within the preset duration; Based on the total amount of virtual resources and the contribution ratio of the user, a deserved virtual resource for the user to participate in the target business within the preset duration is obtained. In another embodiment shown, the method further includes: After allocating the deserved virtual resource within the preset time period to the user, the first characteristic value of the user is cleared. In yet another illustrated embodiment, the obtaining, based on the first feature value, the user's contribution rate to the target business within the preset duration includes: Obtaining a second characteristic value of the user, wherein the second characteristic value is used to characterize the credibility of the user; Based on the first feature value and the second feature value, the user's contribution rate of the user to the target service within the preset time period is obtained. In yet another illustrated embodiment, the business system sets an expected value for the sum of the first feature values of all users within the preset duration, and based on the target within the preset duration A fixed threshold is set for the total amount of virtual resources available for service allocation; the method further includes: Obtaining the actual value of the sum of the first characteristic values of all users within the preset duration; Comparing the expected value with the actual value, if the actual value does not exceed the expected value, the total amount of virtual resources is the fixed threshold; If the actual value exceeds the expected value, an additional value of virtual resources is set based on the difference between the actual value and the expected value, and the total amount of virtual resources is the sum of the fixed threshold and the additional value. In yet another illustrated embodiment, the obtaining, based on the first feature value and the second feature value, the user's contribution rate to the target service within the preset duration includes: Obtaining the user's contribution parameter value to the target business based on the first feature value and the second feature value; Obtain the sum of the contribution parameter values of all users to the target business in the business system; Based on the ratio of the user's contribution parameter value to the total contribution parameter value, the user's contribution rate to the target business is obtained. In yet another illustrated embodiment, the business system is a system built on a blockchain, and the blockchain includes multiple user nodes. In yet another illustrated embodiment, the method further includes: after allocating the deserved virtual resources within the preset duration for the user, to the distributed database of the blockchain A clearing transaction is issued, which is used to set the first characteristic value of the user to zero. In yet another illustrated embodiment, the obtaining virtual resources due to the user to participate in the target business within the preset duration based on the first characteristic value is allocated to the user The deserved virtual resources participating in the target business within the preset duration include: Invoke a smart contract for virtual resource allocation published on the blockchain, and execute the smart contract to claim that the user participates in the preset time based on the first characteristic value The deserved virtual resource of the target business, and the execution logic of the deserved virtual resource participating in the target business within the preset time period is allocated to the user. In yet another illustrated embodiment, the smart contract also declares execution logic to clear the first characteristic value of the user, after allocating the deserved virtual resource to the user, A clearing transaction is issued to the distributed database of the blockchain, and the clearing transaction is used to set the first characteristic value of the user to zero. This specification also provides a virtual resource allocation device for virtual resource allocation to users of a business system, including: The obtaining unit obtains a first characteristic value of the user, wherein the first characteristic value is used to characterize the user's contribution to the target business participating in the business system within a preset duration; Obtaining a deserved virtual resource for the user to participate in the target business within the preset duration based on the first feature value; The allocation unit allocates deserved virtual resources for the user to participate in the target business within the preset duration. In another embodiment shown, the obtaining unit: Obtaining the contribution rate of the user to the target business within the preset duration based on the first feature value; Obtaining the total amount of virtual resources available for allocation by the business system based on the target business within the preset duration; Based on the total amount of virtual resources and the contribution ratio of the user, a deserved virtual resource for the user to participate in the target business within the preset duration is obtained. In yet another illustrated embodiment, the above device further includes: The clearing unit clears the first characteristic value of the user after allocating the deserved virtual resource within the preset time period to the user. In another embodiment shown, the obtaining unit: Obtaining a second characteristic value of the user, wherein the second characteristic value is used to characterize the credibility of the user; Based on the first feature value and the second feature value, the contribution rate of the user to the target service within the preset time period is obtained. In yet another illustrated embodiment, the business system sets an expected value for the sum of the first feature values of all users within the preset duration, and based on the target within the preset duration A fixed threshold is set for the total amount of virtual resources available for service allocation; the device further includes a total virtual resource calculation unit: Obtaining the actual value of the sum of the first characteristic values of all users within the preset duration; Comparing the expected value with the actual value, if the actual value does not exceed the expected value, the total amount of virtual resources is the fixed threshold; If the actual value exceeds the expected value, an additional value of virtual resources is set based on the difference between the actual value and the expected value, and the total amount of virtual resources is the sum of the fixed threshold and the additional value. In another embodiment shown, the obtaining unit: Obtaining the user's contribution parameter value to the target business based on the first feature value and the second feature value; Obtain the sum of the contribution parameter values of all users to the target business in the business system; Based on the ratio of the user's contribution parameter value to the total contribution parameter value, the user's contribution rate to the target business is obtained. In yet another illustrated embodiment, the business system is a system built on a blockchain, and the blockchain includes multiple user nodes. In yet another illustrated embodiment, the device further includes a clear transaction sending unit: after allocating the deserved virtual resources within the preset duration to the user, the A zeroing transaction is published in the distributed database of, the zeroing transaction is used to set the first characteristic value of the user to zero. In another embodiment shown, the obtaining unit and the allocating unit: Invoke a smart contract for virtual resource allocation published on the blockchain, and execute the smart contract to claim that the user participates in the preset time based on the first characteristic value The deserved virtual resource of the target business, and the execution logic of the deserved virtual resource participating in the target business within the preset time period is allocated to the user. In yet another illustrated embodiment, the smart contract also declares execution logic to clear the first characteristic value of the user, after allocating the deserved virtual resource to the user, A clearing transaction is issued to the distributed database of the blockchain, and the clearing transaction is used to set the first characteristic value of the user to zero. This specification also provides a computer device, including: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the virtual resource allocation method described above is executed The steps described. This specification also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps described in the above virtual resource allocation method are performed. It can be seen from the above technical solutions that the virtual resource allocation method and device provided in this specification divide the allocation of virtual resources in stages according to time, and evaluate the user’s contribution rate to the target business within a preset time period, thereby The total amount of virtual resources that can be allocated within the set duration is allocated according to the contribution ratio of each user, avoiding the existing virtual resource allocation that depends on the user’s cumulative use of the business system and cannot encourage new users to join Shortcomings. Moreover, in some illustrated embodiments, the second feature value used to characterize the credibility of the user is encouraged to be included in the user's contribution rate to the target business, so that the virtual resource for the user in the business system Distribution is not only related to the user's contribution to the target business, but also related to the user's credibility. The user is encouraged to do more business while maintaining a good degree of credibility, making the business system more benign development of. Further, the above virtual resource allocation method is applied to a blockchain network, and the first characteristic value used to characterize the contribution to the business running in the business system within a preset time period, or The first eigenvalue and the second eigenvalue used to characterize the user's credibility are recorded centrally in the distributed database of the blockchain, and are jointly maintained by the nodes of the blockchain. All data records can be traced back, and , Based on the consensus mechanism of the blockchain, the first feature value and the second feature value will not be tampered with after being provided, thereby ensuring the dependence on the first feature value, or the first feature value and the second feature value The reliability and fairness of the virtual resource allocation behavior.

這裡將詳細地對示例性實施例進行說明,其示例表示在附圖中。下面的描述關於附圖時,除非另有表示,不同附圖中的相同數字表示相同或相似的要素。以下示例性實施例中所描述的實施方式並不代表與本說明書一個或多個實施例相一致的所有實施方式。相反,它們僅是與如所附申請專利範圍中所詳述的、本說明書一個或多個實施例的一些方面相一致的裝置和方法的例子。 需要說明的是:在其他實施例中並不一定按照本說明書示出和描述的順序來執行相應方法的步驟。在一些其他實施例中,其方法所包括的步驟可以比本說明書所描述的更多或更少。此外,本說明書中所描述的單個步驟,在其他實施例中可能被分解為多個步驟進行描述;而本說明書中所描述的多個步驟,在其他實施例中也可能被合併為單個步驟進行描述。 圖1是一示例性實施例提供的一種虛擬資源分配方法的流程圖,用於對業務系統的使用者進行虛擬資源分配。本說明書中各實施例所述的業務系統可以是包括任何業務行為的線上或線下系統,包括但不限於社交、支付、遊戲、租賃、社區、車輛調度、保險理賠、信用服務、醫療服務等系統。本說明書中各實施例所述的虛擬資源,包括上述業務系統中可分配的虛擬資源獎勵形式,如計算力、積分或其他特徵分值等。 當業務系統為線上業務平臺時,如果上述業務系統是基於中心化網路網路搭建的“伺服器-客戶端”型系統,本實施例中所述的虛擬資源分配方法的執行主體可以是上述業務系統的中心化伺服器;如果上述業務系統是基於區塊鏈網路網路搭建的“業務系統節點--使用者節點”型的分布式系統,由於每個節點均可獲得區塊鏈的分布式資料庫中的全量資料,本實施例中所述的虛擬資源分配方法的執行主體則可以是上述區塊鏈網路網路中的任一節點設備或客戶端。 如圖1所示,上述虛擬資源的分配方法包括: 步驟102,獲得使用者的第一特徵值,其中,所述第一特徵值用以表徵所述使用者在預設的時長內在業務系統內所參加目標業務中的貢獻。 本實施例所述的第一特徵值是用以表徵使用者在業務系統中所參加的目標業務的貢獻,所述目標業務的具體表現形式可由業務系統設定,如使用者每日登入、實名認證、發佈資訊、遊戲升級、完成約車、支付成功等等;目標業務還可劃分為不同的流程步驟。本實施例所述的使用者在所參加目標業務中的貢獻,是指使用者在目標業務中的參與程度或完成程度。上述第一特徵值可具體的表現為使用者參加上述目標業務所獲得的積分值、成長值、活躍度等。 本領域的技術人員熟知,在預設的時長內,使用者在業務系統內的所參加的目標業務可以有多種或多次,因此本實施例所述的目標業務,既可以是一種或一次的具體業務,也可以是多種的具體業務,還可以是多次的具體任務,甚至可以是預設的時長內所有的具體業務的總和,實際可依業務系統設置的目標任務計算規則而定。為方便統計,上述預設的時長可以設置為一個自然日、或一個星期、或一個月等任何業務系統根據其具體運行的業務而方便統計使用者對業務所作貢獻的時長。 步驟104,基於所述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源。 基於上述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源的方式可依業務系統的具體計算規則而設置。在一種示出的實施方式中,上述過程包括:基於所述第一特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率;獲得所述業務系統在所述預設時長內基於所述目標業務可供分配的虛擬資源總量;基於所述虛擬資源總量和所述使用者的所述貢獻比率,獲得所述使用者在所述預設時長內參加所述目標業務的應得虛擬資源。 獲得所述貢獻比率的具體方式可以有多種,在一示出的實施方式中,透過獲得預設的時長內所有使用者基於所述目標業務所獲的第一特徵值的總和,基於上述使用者的第一特徵值佔用上述第一特徵值總和的比率,即可獲得上述使用者在所述預設的時長內對所述目標業務的貢獻比率。 在又一示出的實施方式中,可先基於所述使用者的第一特徵值計算出所述使用者參加上述目標業務的貢獻參數值;再基於相同的計算方式,計算出所有其他使用者參加上述目標業務的貢獻參數值;透過上述使用者的貢獻參數值佔用所有使用者的貢獻參數值的比例,即可獲得上述使用者在所述預設的時長內對所述目標業務的貢獻比率。 為了防止業務系統的使用者為了獲得更多的第一特徵值而惡意刷單,上述業務系統內的虛擬資源分配還可引入用以表徵使用者的可信度的第二特徵值,基於所述第一特徵值和第二特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率。 具體而言,使用者可以透過多種行為提升自身的第二特徵值,例如建立起自身的可信身份--透過實名認證/刷臉認證、企業郵箱認證(證明自己確實在某家公司工作)、讓已經認證的使用者幫自身做背書,證明自己確實在某家公司工作等方式建立可信身份,保持可信身份--不要做假,如果虛報自己的身份或者給其他使用者做虛假認證,被其他使用者舉報屬實,會降低第二特徵值,執行可信行為--例如完成約車、約飯準時赴約、按時支付租房費用等誠實地執行目標業務。使用者透過提高自身的第二特徵值,可以相應提高使用者在目標業務中的貢獻比率,從而可在以後分配虛擬資源時獲得更高比率的虛擬資源。 在一示出的計算方式中,關於使用者在目標業務中的貢獻比率的具體算法可如下所示: 預設時長內使用者在目標業務中的貢獻參數值=(使用者的第一特徵值 * 使用者的第二特徵值)/100; 相應地, 預設時長內使用者對目標業務的貢獻比率=預設時長內使用者對目標業務的貢獻參數值/預設時長內所有使用者對目標業務的貢獻參數值總和。 與第一特徵值是表徵使用者在預設時長內的參與目標業務的貢獻不同,本實施例所述的第二特徵值是表徵使用者在業務系統中長期保持可信身份、執行可信行為的可信度,是使用者長期內(甚至是加入業務系統以來)可信度的度量。因此上述實施例將使用者的可信度或上述第二特徵值納入到虛擬資源的分配方法中來,基於上述第一特徵值和第二特徵值來計算使用者在目標業務中的貢獻比率,鼓勵使用者在多做業務的同時、維持良好的可信程度,使得業務系統朝著更為良性的狀態發展。 值得注意的是,基於使用者在參與不同的目標業務時所體現出的可信度可能不同,參與一種業務的可信度可能與使用者參與另一種業務的可信度不同,在基於所述第一特徵值和第二特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率時,可以選擇使用者在執行與所述目標業務相關的業務行為時的第二特徵值加入到所述貢獻比率的計算中,與所述目標業務無關的可信度所生產的第二特徵值可不予以考慮。 業務系統可為預設時長內的目標業務設置相應的、可用於分配的虛擬資源總量。在一示出的實施例中,為鼓勵使用者積極參與目標業務,上述虛擬資源總量可以為動態調整狀態。例如,業務系統為所述預設時長內所有使用者的第一特徵值總和設置有一預期值,並為所述預設時長內的基於所述目標業務可供分配的所述虛擬資源總量設置有一固定閾值;所述方法還包括:獲得所述預設時長內所有使用者的第一特徵值總和的實際值;對比所述預期值與所述實際值,如果所述實際值未超過所述預期值,所述虛擬資源總量為所述固定閾值;如果所述實際值超過所述預期值,基於所述實際值與所述預期值的差值設置虛擬資源額外值,所述虛擬資源總量為所述固定閾值與額外值之和。透過以上實施例所述的對虛擬資源總量的設置規則,更加提高了使用者參與目標業務的積極性。 進一步地,基於所述虛擬資源總量和所述使用者的所述貢獻比率,獲得所述使用者在所述預設時長內參加所述目標業務的應得虛擬資源;例如,所述應得虛擬資源可以由所述虛擬資源總量與所述使用者的所述貢獻比率的乘積獲得。 步驟106,為所述使用者分配在所述預設時長內參加所述目標業務的應得虛擬資源。 在一示出的實施方式中,當依據上述實施例所提供的虛擬資源分配方法,上述使用者獲取到其參與上述目標任務的應得虛擬資源後,為方便系統在下一個預設時長內對虛擬資源進行分配結算,可以將上述第一特徵值清零。當然,本領域的技術人員熟知,也可不將上述第一特徵值清零,但在關於第一特徵值的管理系統中,應將已經基於第一特徵值而分配過相應的虛擬資源的第一特徵值予以標記,不將計入使用者在下一預設時長的、或其他的目標業務的應得虛擬資源的計算中。 透過以上各實施例所提供的虛擬資源分配方法,將虛擬資源的分配按時間分階段化,在預設的時長內評價使用者對目標業務的貢獻比率,從而將該預設的時長內可供分配的虛擬資源總量按照各使用者的貢獻比率相應分配,避免了現有的虛擬資源分配依賴使用者對業務系統的積累使用時長而引起的不能鼓勵新使用者加入的缺點。而且,在一些示出的實施例中,鼓勵用以表徵使用者的可信度的第二特徵值納入到使用者對目標業務的貢獻比率中來,使得業務系統中對使用者進行的虛擬資源分配,不僅與使用者對目標業務的貢獻相關,還與使用者的可信度相關,鼓勵使用者在多做業務的同時、維持良好的可信程度,使得業務系統朝著更為良性的狀態發展。 當上述業務系統是基於中心化網路網路搭建的“伺服器-客戶端”型系統,由上述業務系統的中心化伺服器執行上述實施例所述的虛擬資源分配方法時,不能排除中心化伺服器透過私自更改使用者的第一特徵值、或第二特徵值而操縱對使用者的虛擬資源分配的可能性,本說明書的又一實施例提供了基於區塊鏈的虛擬資源分配方法的實施例。區塊鏈作為一種P2P網路網路技術,以其去中心化、及資料不可篡改的優點獲得越來越多的應用。在本實施例中,上述業務系統是基於區塊鏈構建的系統,上述區塊鏈包括多個使用者節點,使用者節點參與業務系統的目標任務而產生的相關資料資訊可被收錄在區塊鏈的分布式資料庫中。 本說明書各實施例所述的區塊鏈,具體可指一個各節點透過共識機制達成的、具有分布式資料儲存結構的P2P網路網路系統,該區塊鏈內的資料分佈在時間上相連的一個個“區塊(block)”之內,後一區塊包含前一區塊的資料摘要,且根據具體的共識機制(如POW、POS、DPOS或PBFT等)的不同,達成全部或部分節點的資料全備份。本領域的技術人員熟知,由於區塊鏈系統在相應共識機制下運行,已收錄至區塊鏈資料庫內的資料很難被任意的節點篡改,例如採用Pow共識的區塊鏈,至少需要全網51%算力的攻擊才有可能篡改已有資料,因此區塊鏈系統有著其他中心化資料庫系統所法比擬的保證資料安全、防攻擊篡改的特性。由此可知,在本說明書所提供的實施例中,被收錄至區塊鏈的分布式資料庫中的資料不會被攻擊或篡改,從而保證了基於分布式資料庫所儲存的資訊所進行的虛擬資源分配過程的公平準確性。 本實施例所述的基於區塊鏈的虛擬資源分配方法,可由該區塊鏈中的任一節點設備,或與任一節點設備相連的客戶端執行,在此不做限定。如圖1所示,所述方法包括: 步驟102,獲得使用者的第一特徵值,其中,所述第一特徵值用以表徵所述使用者在預設的時長內在業務系統內所參加目標業務中的貢獻。 本實施例所述的第一特徵值是用以表徵使用者在業務系統中所參加的目標業務的貢獻,所述目標業務的具體表現形式可由業務系統設定,如使用者每日登入、實名認證、發佈資訊、遊戲升級、完成約車、支付成功等等;目標業務還可劃分為不同的流程步驟。本實施例所述的使用者在所參加目標業務中的貢獻,是指使用者在目標業務中的參與程度或完成程度。相應的,上述第一特徵值可具體的表現為使用者參加上述目標業務所獲得的積分值、成長值、活躍度等。 本領域的技術人員熟知,在預設的時長內,使用者在業務系統內的所參加的目標業務可以有多種或多次,因此本實施例所述的目標業務,既可以是一種或一次的具體業務,也可以是多種的具體業務,還可以是多次的具體任務,甚至可以是預設的時長內所有的具體業務的總和,實際可依業務系統設置的目標任務設置規則而定。為方便統計,上述預設的時長可以設置為一個自然日、或一個星期、或一個月等任何業務系統根據其具體運行的業務而方便統計使用者對業務所作貢獻的時長。 由於業務系統是基於區塊鏈而構建的,該業務系統對分配虛擬資源所基於目標任務的設置規則可被部署在該業務系統的底層程式代碼中,或使用者節點在所參加的目標業務中的貢獻(如登入系統、實名認證、公司認證、參與或完成目標業務等事件),或者基於上述使用者節點在所參加的目標業務中的貢獻而獲得的第一特徵值可被收錄在區塊鏈的分布式資料庫中,由區塊鏈的任一節點執行第一特徵值的計算獲得過程。因此本實施例所述的獲得使用者的第一特徵值,可以是區塊鏈的節點直接從區塊鏈的分布式資料庫中獲得使用者的第一特徵值,也可以是區塊鏈的節點基於區塊鏈的分布式資料庫所收錄的使用者所參加的目標業務中的貢獻相關的資料資訊,計算獲得出相應的第一特徵值。 步驟104,基於所述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源。 基於上述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源的方式可依業務系統的具體計算規則而設置。在一種示出的實施方式中,上述過程包括:基於所述第一特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率;獲得所述業務系統在所述預設時長內基於所述目標業務可供分配的虛擬資源總量;基於所述虛擬資源總量和所述使用者的所述貢獻比率,獲得所述使用者在所述預設時長內參加所述目標業務的應得虛擬資源。 獲得所述貢獻比率的具體方式可以有多種,在一示出的實施方式中,透過獲得預設的時長內各個使用者基於所述目標業務所獲的各個第一特徵值,即可獲得預設的時長內所有使用者基於所述目標業務所獲的第一特徵值的總和,基於上述使用者的第一特徵值佔用上述第一特徵值總和的比率,即可獲得上述使用者在所述預設的時長內對所述目標業務的貢獻比率。 在又一示出的實施方式中,可先基於所述使用者的第一特徵值計算出所述使用者參加上述目標業務的貢獻參數值;再基於相同的計算方式,計算出所有其他使用者參加上述目標業務的貢獻參數值;透過上述使用者的貢獻參數值佔用所有使用者的貢獻參數值的比例,即可獲得上述使用者在所述預設的時長內對所述目標業務的貢獻比率。 為了防止業務系統的使用者為了獲得更多的第一特徵值而惡意刷單,上述業務系統內的虛擬資源分配還可引入用以表徵使用者的可信度的第二特徵值,基於所述第一特徵值和第二特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率。 具體而言,使用者可以透過多種行為提升自身的第二特徵值,例如建立起自身的可信身份--透過實名認證/刷臉認證、企業郵箱認證(證明自己確實在某家公司工作)、讓已經認證的使用者幫自身做背書,證明自己確實在某家公司工作等方式建立可信身份,保持可信身份--不要做假,如果虛報自己的身份或者給其他使用者做虛假認證,被其他使用者舉報屬實,會降低第二特徵值,執行可信行為--例如完成約車、約飯準時赴約、按時支付租房費用等誠實地執行目標業務。使用者透過提高自身的第二特徵值,可以相應提高使用者在目標業務中的貢獻比率,從而可在以後分配虛擬資源時獲得更高比率的虛擬資源。 在一示出的計算方式中,關於使用者在目標業務中的貢獻比率的具體算法可如下所示: 預設時長內使用者在目標業務中的貢獻參數值=(使用者的第一特徵值 * 使用者的第二特徵值)/100; 相應地, 預設時長內使用者對目標業務的貢獻比率=預設時長內使用者對目標業務的貢獻參數值/預設時長內所有使用者對目標業務的貢獻參數值總和。 與第一特徵值是表徵使用者在預設時長內的參與目標業務的貢獻不同,本實施例所述的第二特徵值是表徵使用者在業務系統中長期保持可信身份、執行可信行為的可信度,是使用者長期內(甚至是加入業務系統以來)可信度的度量。因此上述實施例將使用者的可信度或上述第二特徵值納入到虛擬資源的分配方法中來,基於上述第一特徵值和第二特徵值來計算使用者在目標業務中的貢獻比率,鼓勵使用者在多做業務的同時、維持良好的可信程度,使得業務系統朝著更為良性的狀態發展。 值得注意的是,基於使用者在參與不同的目標業務時所體現出的可信度可能不同,參與一種業務的可信度可能與使用者參與另一種業務的可信度不同,在基於所述第一特徵值和第二特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率時,可以選擇使用者在執行與所述目標業務相關的業務行為時的第二特徵值加入到所述貢獻比率的計算中,與所述目標業務無關的可信度所生產的第二特徵值可不予以考慮。 由於業務系統是基於區塊鏈而構建的,該業務系統由使用者的可信行為而計算相應的第二特徵值的計算規則可被部署在該業務系統的底層程式代碼中,或使用者節點在業務系統中執行的各種可信行為事件、或由於各種可信行為事件而建立的可信度或基於各種可信行為事件的可信度而計算獲得的第二特徵值均可被收錄在區塊鏈的分布式資料庫中,由區塊鏈的任一節點執行第二特徵值的計算獲得過程。因此本實施例所述的獲得使用者的第二特徵值,可以是區塊鏈的節點直接從區塊鏈的分布式資料庫中獲得使用者的第二特徵值,也可以是區塊鏈的節點基於區塊鏈的分布式資料庫所收錄的使用者執行的各種可信行為,而計算出相應的第二特徵值。 業務系統可為預設時長內的目標業務設置相應的、可用於分配的虛擬資源總量。在一示出的實施例中,為鼓勵使用者積極參與目標業務,上述虛擬資源總量可以為動態調整狀態。例如,業務系統為所述預設時長內所有使用者的第一特徵值總和設置有一預期值,並為所述預設時長內的基於所述目標業務可供分配的所述虛擬資源總量設置有一固定閾值;所述方法還包括:獲得所述預設時長內所有使用者的第一特徵值總和的實際值;對比所述預期值與所述實際值,如果所述實際值未超過所述預期值,所述虛擬資源總量為所述固定閾值;如果所述實際值超過所述預期值,基於所述實際值與所述預期值的差值設置虛擬資源額外值,所述虛擬資源總量為所述固定閾值與額外值之和。透過以上實施例所述的對虛擬資源總量的設置規則,更加提高了使用者參與目標業務的積極性。 由於業務系統是基於區塊鏈而構建的,該業務系統中所述預設時長內基於所述目標業務可供分配的虛擬資源總量計算規則,可被部署在該業務系統的底層程式代碼中。 進一步地,基於所述虛擬資源總量和所述使用者的所述貢獻比率,獲得所述使用者在所述預設時長內參加所述目標業務的應得虛擬資源。例如,所述應得虛擬資源可以由所述虛擬資源總量與所述使用者的所述貢獻比率的乘積獲得。 步驟106,為所述使用者分配在所述預設時長內參加所述目標業務的應得虛擬資源。 上述為使用者分配所述應得虛擬資源可透過向區塊鏈上該使用者的地址發送一用以虛擬資源轉移的交易(transaction)來實現。 由於業務系統是基於區塊鏈而構建的,該業務系統中基於所述虛擬資源總量和所述使用者的所述貢獻比率,為所述使用者分配在所述預設時長內參加所述目標業務的應得虛擬資源的計算規則,可被部署在該業務系統的底層程式代碼中。 在上述各實施例中,關於第一特徵值、第二特徵值、貢獻比率、虛擬資源總量、應得虛擬資源的計算規則可以被部署在該業務系統的底層程式代碼中。為了進一步保證使用者身份認證的過程真實有效、公平公正,零活設置或更改上述計算規則,可經區塊鏈共識節點的共識驗證、在區塊鏈上部署用於虛擬資源轉移的智慧型合約;上述區塊鏈中的任一節點設備或客戶端,透過接收對所述智慧型合約的調用交易,執行所述智慧型合約聲明的基於所述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源,且為所述使用者分配在所述預設時長內參加所述目標業務的應得虛擬資源的執行邏輯。 例如,調用發佈在所述區塊鏈上的虛擬資源分配智慧型合約,執行所述智慧型合約所聲明的所述使用者的貢獻比率及所述虛擬資源總量的計算邏輯、和基於所述虛擬資源總量和所述使用者的所述貢獻比率,為所述使用者分配在所述預設時長內的應得虛擬資源的分配邏輯,對所述使用者分配所述應得虛擬資源。上述智慧型合約所聲明的為所述使用者分配所述應得虛擬資源的執行邏輯,可透過上述智慧型合約向所述使用者的區塊鏈地址發送一虛擬資源轉移交易(transaction)來實現。 在又一示出的實施方式中,當依據上述實施例所提供的虛擬資源分配方法,上述使用者獲取到其參與上述目標任務的應得虛擬資源後,為方便系統在下一個預設時長內對虛擬資源進行分配結算,可以將上述第一特徵值清零,亦即,在為所述使用者分配在所述預設時長內的應得虛擬資源之後,向所述區塊鏈的分布式資料庫中發佈清零交易,所述清零交易用以將所述使用者的第一特徵值設置為零。 在又一示出的實施例中,上述智慧型合約內還聲明有將所述使用者的第一特徵值清零的執行邏輯,在為所述使用者分配所述應得虛擬資源後,向所述區塊鏈的分布式資料庫中發佈清零交易,所述清零交易用以將所述使用者的第一特徵值設置為零。 當然,本領域的技術人員熟知,除了向區塊鏈的分布式資料庫中發佈清零交易,還可發佈更新使用者的第一特徵值狀態的交易,在該交易中將已經基於第一特徵值而分配過相應的虛擬資源的第一特徵值予以標記,不將計入使用者在下一預設時長的、或其他的目標業務的應得虛擬資源的計算中。 對於開發完成的智慧型合約,可以透過區塊鏈中的任一節點設備將該智慧型合約發佈至區塊鏈,並在該智慧型合約由該區塊鏈中的指定的成員節點設備(比如,聯盟鏈中指定的若干個具有記帳權限的權威節點設備)完成共識後,收錄至該區塊鏈的分布式資料庫。後續,使用者可以透過存取任一節點設備的客戶端,向區塊鏈中收錄的該智慧型合約提交交易,來發起對該智慧型合約的合約調用,觸發在區塊鏈上來觸發執行相關的業務邏輯。 其中,需要說明的是,區塊鏈中的成員節點設備在對發佈至區塊鏈的智慧型合約、或所述智慧型合約的調用交易進行共識處理時,所採用的共識算法,以及具體的共識過程,在本說明書中不再進行詳述,本領域技術人員在將本說明書記載的技術方案付諸實現時,可以參考相關技術中的記載。 相比於中心化的伺服器運行方式,智慧型合約在任何時候應相應使用者的請求而調用,大大提升使用者身份認證的效率;且智慧型合約執行有著較低的人為干預、去中心化權威的優勢,更加增加了計算行為的透明性和公平性。相比於將本說明書所提供的虛擬資源分配方法所包括的計算規則邏輯和執行邏輯編譯部署至基於區塊鏈構建的業務系統的底層資料庫的實施方式,智慧型合約的執行方法具有更大的設計靈活性。 透過以上各實施例所提供的虛擬資源分配方法,將虛擬資源的分配按時間分階段化,在預設的時長內評價使用者對目標業務的貢獻比率,從而將該預設的時長內可供分配的虛擬資源總量按照各使用者的貢獻比率相應分配,避免了現有的虛擬資源分配依賴使用者對業務系統的積累使用時長而引起的不能鼓勵新使用者加入的缺點。而且,在一些示出的實施例中,鼓勵用以表徵使用者的可信度的第二特徵值納入到使用者對目標業務的貢獻比率中來,使得業務系統中對使用者進行的虛擬資源分配,不僅與使用者對目標業務的貢獻相關,還與使用者的可信度相關,鼓勵使用者在多做業務的同時、維持良好的可信程度,使得業務系統朝著更為良性的狀態發展。 進一步的,將上述虛擬資源分配方法應用於區塊鏈網路網路中,將用以表徵所述在預設的時長內對業務系統內運行的業務的貢獻的第一特徵值、第二特徵值可被去中心化地記錄在區塊鏈的分布式資料庫中,或者獲得上述第一特徵值、第二特徵值、及相應的貢獻比率、應得虛擬資源的過程可由區塊鏈上任一節點透過調用部署在區塊鏈上的智慧型合約公平公正的執行。基於區塊鏈的共識機制,所述第一特徵值、第二特徵值不會在提供後被篡改,從而保證了依託於所述第一特徵值、或第一特徵值和第二特徵值而進行的虛擬資源分配行為的可靠性和公平性。 與上述流程實現對應,本說明書的實施例還提供了虛擬資源分配裝置20。上述裝置20均可以透過軟體實現,也可以透過硬體或者軟硬體結合的方式實現。以軟體實現為例,作為邏輯意義上的裝置,是透過所在設備的CPU (Central Process Unit,中央處理器)將對應的計算機程式指令讀取到內部記憶體中運行形成的。從硬體層面而言,除了圖3所示的CPU、內部記憶體以及記憶體之外,網路網路風險業務的實現裝置所在的設備通常還包括用於進行無線信號收發的晶片等其他硬體,和/或用於實現網路網路通訊功能的板卡等其他硬體。 圖2為本說明書一實施例所示的一種虛擬資源分配裝置20,用於對業務系統的使用者進行虛擬資源分配,所述裝置20包括: 獲得單元202,獲得使用者的第一特徵值,其中,所述第一特徵值用以表徵所述使用者在預設的時長內對業務系統內所參加目標業務中的貢獻; 基於所述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源; 分配單元204,為所述使用者分配在所述預設時長內參加所述目標業務的應得虛擬資源。 在又一示出的實施例中,所述獲得單元202: 基於所述第一特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率; 獲得所述業務系統在所述預設時長內基於所述目標業務可供分配的虛擬資源總量; 基於所述虛擬資源總量和所述使用者的所述貢獻比率,獲得所述使用者在所述預設時長內參加所述目標業務的應得虛擬資源。 在又一示出的實施例中,上述裝置20還包括: 清零單元206,在為所述使用者分配在所述預設時長內的應得虛擬資源之後,清零所述使用者的第一特徵值。 在又一示出的實施例中,所述獲得單元202: 獲得所述使用者的第二特徵值,其中,所述第二特徵值用以表徵所述使用者的可信度; 基於所述第一特徵值和第二特徵值獲得所述使用者在所述預設的時長內對所述目標業務的貢獻比率。 在又一示出的實施例中,所述業務系統為所述預設時長內所有使用者的第一特徵值總和設置有一預期值,並為所述預設時長內的基於所述目標業務可供分配的所述虛擬資源總量設置有一固定閾值;所述裝置還包括虛擬資源總量計算單元: 獲得所述預設時長內所有使用者的第一特徵值總和的實際值; 對比所述預期值與所述實際值,如果所述實際值未超過所述預期值,所述虛擬資源總量為所述固定閾值; 如果所述實際值超過所述預期值,基於所述實際值與所述預期值的差值設置虛擬資源額外值,所述虛擬資源總量為所述固定閾值與所述額外值之和。 在又一示出的實施例中,所述獲得單元202: 基於所述第一特徵值和所述第二特徵值獲得所述使用者對所述目標業務的貢獻參數值; 獲得所有使用者對業務系統內所述目標業務的貢獻參數值總和; 基於所述使用者的貢獻參數值占所述貢獻參數值總和的比率,獲得所述使用者對所述目標業務的貢獻比率。 在又一示出的實施例中,所述業務系統是基於區塊鏈構建的系統,所述區塊鏈包括多個使用者節點。 在又一示出的實施例中,所述的裝置20還包括清零交易發送單元208:在為所述使用者分配在所述預設時長內的應得虛擬資源之後,向所述區塊鏈的分布式資料庫中發佈清零交易,所述清零交易用以將所述使用者的第一特徵值設置為零。 在又一示出的實施例中,所述獲得單元202和分配單元204: 調用發佈在所述區塊鏈上的虛擬資源分配智慧型合約,執行所述智慧型合約所聲明的基於所述第一特徵值獲得所述使用者在所述預設的時長內參加所述目標業務的應得虛擬資源,且為所述使用者分配在所述預設時長內參加所述目標業務的應得虛擬資源的執行邏輯。 在又一示出的實施例中,所述智慧型合約內還聲明有將所述使用者的第一特徵值清零的執行邏輯,在為所述使用者分配所述應得虛擬資源後,向所述區塊鏈的分布式資料庫中發佈清零交易,所述清零交易用以將所述使用者的第一特徵值設置為零。 上述裝置中各個單元的功能和作用的實現過程具體詳見上述方法中對應步驟的實現過程,相關之處參見方法實施例的部分說明即可,在此不再贅述。 以上所描述的裝置實施例僅僅是示意性的,其中所述作為分離部件說明的單元可以是或者也可以不是物理上分開的,作為單元顯示的部件可以是或者也可以不是物理模組,即可以位於一個地方,或者也可以分佈到多個網路網路模組上。可以根據實際的需要選擇其中的部分或者全部單元或模組來實現本說明書方案的目的。本領域普通技術人員在不付出創造性勞動的情況下,即可以理解並實施。 上述實施例闡明的裝置、單元、模組,具體可以由計算機晶片或實體實現,或者由具有某種功能的產品來實現。一種典型的實現設備為計算機,計算機的具體形式可以是個人計算機、膝上型計算機、蜂巢式電話、相機電話、智慧型電話、個人數位助理、媒體播放器、導航設備、電子郵件收發設備、遊戲控制台、平板計算機、可穿戴設備或者這些設備中的任意幾種設備的組合。 與上述方法實施例相對應,本說明書的實施例還提供了一種計算機設備,該計算機設備包括記憶體和處理器。其中,記憶體上儲存有能夠由處理器運行的計算機程式;處理器在運行儲存的計算機程式時,執行本說明書實施例中虛擬資源分配方法的各個步驟。對虛擬資源分配方法的各個步驟的詳細描述請參見之前的內容,不再重複。 與上述方法實施例相對應,本說明書的實施例還提供了一種計算機可讀儲存媒體,該儲存媒體上儲存有計算機程式,這些計算機程式在被處理器運行時,執行本說明書實施例中虛擬資源分配方法的各個步驟。對虛擬資源分配方法的各個步驟的詳細描述請參見之前的內容,不再重複。 以上所述僅為本說明書的較佳實施例而已,並不用以限制本說明書,凡在本說明書的精神和原則之內,所做的任何修改、等同替換、改進等,均應包含在本說明書保護的範圍之內。 在一個典型的配置中,計算設備包括一個或多個處理器(CPU)、輸入/輸出介面、網路網路介面和內部記憶體。 內部記憶體可能包括計算機可讀媒體中的非永久性記憶體,隨機存取記憶體(RAM)和/或非揮發性記憶體等形式,如唯讀記憶體(ROM)或閃存(flash RAM)。內部記憶體是計算機可讀媒體的示例。 計算機可讀媒體包括永久性和非永久性、可行動和非可行動媒體可以由任何方法或技術來實現資訊儲存。資訊可以是計算機可讀指令、資料結構、程式的模組或其他資料。 計算機的儲存媒體的例子包括,但不限於相變記憶體(PRAM)、靜態隨機存取記憶體(SRAM)、動態隨機存取記憶體(DRAM)、其他類型的隨機存取記憶體(RAM)、唯讀記憶體(ROM)、電可擦除可程式化唯讀記憶體(EEPROM)、快閃記憶體或其他內部記憶體技術、唯讀光碟唯讀記憶體(CD-ROM)、數位多功能光碟(DVD)或其他光學儲存、磁盒式磁帶,磁帶磁碟儲存或其他磁性儲存設備或任何其他非傳輸媒體,可用於儲存可以被計算設備存取的資訊。按照本文中的界定,計算機可讀媒體不包括暫存電腦可讀媒體(transitory media),如調變的資料信號和載波。 還需要說明的是,術語“包括”、“包含”或者其任何其他變體意在涵蓋非排他性的包含,從而使得包括一系列要素的過程、方法、商品或者設備不僅包括那些要素,而且還包括沒有明確列出的其他要素,或者是還包括為這種過程、方法、商品或者設備所固有的要素。在沒有更多限制的情況下,由語句“包括一個……”限定的要素,並不排除在包括所述要素的過程、方法、商品或者設備中還存在另外的相同要素。 本領域技術人員應明白,本說明書的實施例可提供為方法、系統或計算機程式產品。因此,本說明書的實施例可採用完全硬體實施例、完全軟體實施例或結合軟體和硬體方面的實施例的形式。而且,本說明書的實施例可採用在一個或多個其中包含有計算機可用程式代碼的計算機可用儲存媒體(包括但不限於磁碟記憶體、CD-ROM、光學記憶體等)上實施的計算機程式產品的形式。Exemplary embodiments will be described in detail here, Examples are shown in the drawings. The following description is about the drawings, Unless otherwise stated, The same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with one or more embodiments of this specification. in contrast, They are only as detailed as Examples of devices and methods consistent with some aspects of one or more embodiments of this specification. It should be noted: In other embodiments, the steps of the corresponding method are not necessarily performed in the order shown and described in this specification. In some other embodiments, The method may include more or fewer steps than described in this specification. In addition, The single steps described in this manual, In other embodiments, it may be decomposed into multiple steps for description; And the multiple steps described in this manual, In other embodiments, it may be combined into a single step for description. FIG. 1 is a flowchart of a virtual resource allocation method provided by an exemplary embodiment, It is used to allocate virtual resources to users of business systems. The business system described in the embodiments in this specification may be an online or offline system including any business behavior, Including but not limited to social, Payment, game, lease, community, Vehicle scheduling, Insurance claims, Credit service, Medical services and other systems. The virtual resources described in the embodiments in this specification, Including the allocable virtual resource reward form in the above business system, Such as computing power, Points or other characteristic scores. When the business system is an online business platform, If the above business system is a "server-client" system built on a centralized network, The execution subject of the virtual resource allocation method described in this embodiment may be the centralized server of the above-mentioned business system; If the above business system is a "business system node-user node" type distributed system built on the blockchain network, Since each node can obtain the full amount of data in the distributed database of the blockchain, The execution subject of the virtual resource allocation method described in this embodiment may be any node device or client in the above-mentioned blockchain network. As shown in Figure 1, The above virtual resource allocation method includes: Step 102, Obtain the first characteristic value of the user, among them, The first characteristic value is used to characterize the contribution of the user to the target business participated in the business system within a preset duration. The first characteristic value described in this embodiment is used to characterize the contribution of the target business that the user participates in the business system, The specific manifestation of the target business can be set by the business system, If the user logs in daily, Verified, Post information, Game upgrades, Complete the car appointment, Successful payment, etc.; The target business can also be divided into different process steps. The user's contribution to the target business he participated in in this embodiment, Refers to the degree of user participation or completion in the target business. The above-mentioned first characteristic value may be specifically expressed as the point value obtained by the user participating in the above-mentioned target business, growth value, Activity, etc. Those skilled in the art are familiar with, Within the preset duration, The target business that the user participates in the business system can have multiple or multiple times, Therefore, the target business described in this embodiment, It can be one or one specific business, It can also be a variety of specific businesses, It can also be multiple specific tasks, It can even be the sum of all specific services within a preset duration, The actual can be determined by the calculation rules of the target task set by the business system. For the convenience of statistics, The above preset duration can be set to a natural day, Or a week, Or any business system, such as a month, etc., according to the specific operation of the business, it is convenient to count the duration of the user's contribution to the business. Step 104, Based on the first characteristic value, a deserved virtual resource for the user to participate in the target business within the preset duration is obtained. The manner of obtaining the deserved virtual resource for the user to participate in the target business within the preset time period based on the first feature value may be set according to the specific calculation rules of the business system. In one illustrated embodiment, The above process includes: Obtaining the contribution rate of the user to the target business within the preset duration based on the first feature value; Obtaining the total amount of virtual resources available for allocation by the business system based on the target business within the preset duration; Based on the total virtual resource and the contribution ratio of the user, Obtain the deserved virtual resource that the user participates in the target business within the preset duration. There are many specific ways to obtain the contribution ratio, In an embodiment shown, By obtaining the sum of the first characteristic values obtained by all users based on the target business within a preset duration, Based on the ratio of the first feature value of the user to the sum of the first feature value, In this way, the user's contribution rate to the target business within the preset time period can be obtained. In another embodiment shown, The contribution parameter value of the user's participation in the aforementioned target business may be calculated based on the user's first characteristic value first; Based on the same calculation method, Calculate the contribution parameter values of all other users to participate in the above target business; Through the above user’s contribution parameter values occupy the proportion of all user’s contribution parameter values, In this way, the user's contribution rate to the target business within the preset time period can be obtained. In order to prevent users of the business system from maliciously swiping bills in order to obtain more first characteristic values, The virtual resource allocation in the above business system may also introduce a second characteristic value to characterize the credibility of the user, Based on the first feature value and the second feature value, the contribution rate of the user to the target service within the preset time period is obtained. in particular, Users can improve their second characteristic value through various behaviors, For example, establish your own trusted identity-through real-name authentication / face authentication, Enterprise mailbox authentication (proving that you really work in a company), Let authenticated users endorse themselves, Prove that you have indeed established a trusted identity by working in a company, etc. Maintain a credible identity - don't do it, If you misrepresent your identity or do false authentication to other users, Reported by other users is true, Will reduce the second eigenvalue, Perform credible behaviors-such as completing a car appointment, Appointment to go to the appointment on time, Pay the rental fee on time and perform the target business honestly. Users increase their second characteristic value, Can increase the user's contribution rate in the target business accordingly, Thus, a higher ratio of virtual resources can be obtained when allocating virtual resources later. In a calculation method shown, The specific algorithm of the user's contribution ratio in the target business can be as follows: The user's contribution parameter value in the target business within the preset duration = (user's first characteristic value * user's second characteristic value)/100; Correspondingly, The user's contribution rate to the target business within the preset time period = the user's contribution parameter value to the target business within the preset time period / the sum of the contribution parameter values of all users to the target business within the preset time period. Unlike the first eigenvalue which represents the user’s contribution to the target business within the preset duration, The second characteristic value described in this embodiment is to characterize that the user maintains a trusted identity in the business system for a long time, The credibility of performing credible behavior, It is a measure of user credibility over a long period of time (even since joining the business system). Therefore, the above embodiment incorporates the user's credibility or the second feature value into the virtual resource allocation method, Calculate the user's contribution rate in the target business based on the above first and second feature values, Encourage users to do more business while Maintain good credibility, Make the business system develop towards a more benign state. It is worth noting that Based on the different credibility of users when participating in different target businesses, The credibility of participating in one business may be different from the credibility of users participating in another business, When obtaining the contribution rate of the user to the target business within the preset time period based on the first feature value and the second feature value, It is possible to select the second feature value of the user when performing business activities related to the target business to be added to the calculation of the contribution ratio, The second characteristic value produced by the credibility independent of the target business may not be considered. The business system can set corresponding, The total amount of virtual resources available for allocation. In an illustrated embodiment, To encourage users to actively participate in the target business, The above-mentioned total amount of virtual resources may be in a state of dynamic adjustment. E.g, The business system sets an expected value for the sum of the first characteristic values of all users within the preset duration, And set a fixed threshold for the total amount of virtual resources available for allocation based on the target service within the preset duration; The method also includes: Obtaining the actual value of the sum of the first characteristic values of all users within the preset duration; Compare the expected value with the actual value, If the actual value does not exceed the expected value, The total amount of virtual resources is the fixed threshold; If the actual value exceeds the expected value, Setting an additional value of the virtual resource based on the difference between the actual value and the expected value, The total amount of virtual resources is the sum of the fixed threshold and the additional value. Through the rules for setting the total amount of virtual resources described in the above embodiment, The enthusiasm of users to participate in the target business is further improved. further, Based on the total virtual resource and the contribution ratio of the user, Obtaining deserved virtual resources for the user to participate in the target business within the preset duration; E.g, The deserved virtual resource may be obtained by multiplying the total virtual resource by the contribution ratio of the user. Step 106, The user is allocated virtual resources deserving to participate in the target business within the preset duration. In an embodiment shown, According to the virtual resource allocation method provided in the above embodiment, After the above user obtains the deserved virtual resource for participating in the above target task, In order to facilitate the system to allocate and settle virtual resources within the next preset duration, The above-mentioned first characteristic value may be cleared. of course, Those skilled in the art are familiar with, It is not necessary to clear the above first characteristic value, But in the management system about the first characteristic value, The first feature value that has been allocated the corresponding virtual resource based on the first feature value should be marked, Will not be included in the user’s next preset duration, Or other target business deserves the calculation of virtual resources. Through the virtual resource allocation methods provided by the above embodiments, Stage the allocation of virtual resources in time, Evaluate the user’s contribution rate to the target business within a preset period of time, Therefore, the total amount of virtual resources available for allocation within the preset duration is allocated according to the contribution ratio of each user, It avoids the disadvantage that the existing virtual resource allocation depends on the accumulated use time of the business system by the users and cannot encourage new users to join. and, In some illustrated embodiments, Encourage the second eigenvalues used to characterize the user's credibility to be included in the user's contribution rate to the target business, Make the virtual resource allocation to users in the business system, Not only related to the user’s contribution to the target business, Is also related to the user’s credibility, Encourage users to do more business while Maintain good credibility, Make the business system develop towards a more benign state. When the above business system is a "server-client" type system built on a centralized network, When the centralized server of the above business system executes the virtual resource allocation method described in the above embodiment, It cannot be ruled out that the centralized server changes the user's first characteristic value by privately, Or the second feature value to manipulate the possibility of allocating virtual resources to users, Yet another embodiment of the present specification provides an embodiment of a blockchain-based virtual resource allocation method. Blockchain as a P2P network technology, With its decentralization, And the advantage that the data cannot be tampered with is getting more and more applications. In this embodiment, The above business system is a system based on blockchain, The above blockchain includes multiple user nodes, Relevant data information generated by user nodes participating in the target tasks of the business system can be included in the distributed database of the blockchain. The blockchain described in each embodiment of this specification, Specifically, it can refer to a node reached through a consensus mechanism, P2P network system with distributed data storage structure, The data in the blockchain is distributed among the "blocks" connected in time, The latter block contains the data summary of the previous block, And according to specific consensus mechanisms (such as POW, POS, DPOS or PBFT, etc.), Achieve full backup of all or part of the node data. Those skilled in the art are familiar with, Since the blockchain system operates under the corresponding consensus mechanism, The data that has been included in the blockchain database is difficult to be tampered with by any node, For example, the blockchain using Pow consensus, An attack of at least 51% of the computing power of the entire network is required to tamper with the existing data. Therefore, the blockchain system has a comparison with other centralized database systems to ensure data security, Features of anti-attack and tampering. From this, In the embodiments provided in this specification, The data included in the distributed database of the blockchain will not be attacked or tampered, This ensures the fairness and accuracy of the virtual resource allocation process based on the information stored in the distributed database. The virtual resource allocation method based on blockchain described in this embodiment, It can be used by any node device in the blockchain, Or a client connected to any node device, No limitation here. As shown in Figure 1, The method includes: Step 102, Obtain the first characteristic value of the user, among them, The first characteristic value is used to characterize the contribution of the user to the target business participated in the business system within a preset duration. The first characteristic value described in this embodiment is used to characterize the contribution of the target business that the user participates in the business system, The specific manifestation of the target business can be set by the business system, If the user logs in daily, Verified, Post information, Game upgrades, Complete the car appointment, Successful payment, etc.; The target business can also be divided into different process steps. The user's contribution to the target business he participated in in this embodiment, Refers to the degree of user participation or completion in the target business. corresponding, The above-mentioned first characteristic value may be specifically expressed as the point value obtained by the user participating in the above-mentioned target business, growth value, Activity, etc. Those skilled in the art are familiar with, Within the preset duration, The target business that the user participates in the business system can have multiple or multiple times, Therefore, the target business described in this embodiment, It can be one or one specific business, It can also be a variety of specific businesses, It can also be multiple specific tasks, It can even be the sum of all specific services within a preset duration, The actual can be determined according to the target task setting rules set by the business system. For the convenience of statistics, The above preset duration can be set to a natural day, Or a week, Or any business system, such as a month, etc., according to the specific operation of the business, it is convenient to count the duration of the user's contribution to the business. Since the business system is built on the blockchain, The business system's setting rules for the allocation of virtual resources based on the target task can be deployed in the underlying program code of the business system, Or the user node’s contribution to the target business (such as logging in to the system, Verified, Company Certification, Participate in or complete the target business and other events), Or the first characteristic value obtained based on the contribution of the user node in the target business participated in may be included in the distributed database of the blockchain, Any node of the blockchain executes the process of obtaining the first eigenvalue. Therefore, in this embodiment, the first characteristic value of the user is obtained, It may be that the node of the blockchain directly obtains the first characteristic value of the user from the distributed database of the blockchain, It may also be that the nodes of the blockchain are based on the data related to the contribution of the target business participated by the users included in the distributed database of the blockchain, Calculate the corresponding first characteristic value. Step 104, Based on the first characteristic value, a deserved virtual resource for the user to participate in the target business within the preset duration is obtained. The manner of obtaining the deserved virtual resource for the user to participate in the target business within the preset time period based on the first feature value may be set according to the specific calculation rules of the business system. In one illustrated embodiment, The above process includes: Obtaining the contribution rate of the user to the target business within the preset duration based on the first feature value; Obtaining the total amount of virtual resources available for allocation by the business system based on the target business within the preset duration; Based on the total virtual resource and the contribution ratio of the user, Obtain the deserved virtual resource that the user participates in the target business within the preset duration. There are many specific ways to obtain the contribution ratio, In an embodiment shown, By obtaining each first characteristic value obtained by each user based on the target business within a preset duration, To obtain the sum of the first characteristic values obtained by all users based on the target business within a preset duration, Based on the ratio of the first feature value of the user to the sum of the first feature value, In this way, the user's contribution rate to the target business within the preset time period can be obtained. In another embodiment shown, The contribution parameter value of the user's participation in the aforementioned target business may be calculated based on the user's first characteristic value first; Based on the same calculation method, Calculate the contribution parameter values of all other users to participate in the above target business; Through the above user’s contribution parameter values occupy the proportion of all user’s contribution parameter values, In this way, the user's contribution rate to the target business within the preset time period can be obtained. In order to prevent users of the business system from maliciously swiping bills in order to obtain more first characteristic values, The virtual resource allocation in the above business system may also introduce a second characteristic value to characterize the credibility of the user, Based on the first feature value and the second feature value, the contribution rate of the user to the target service within the preset time period is obtained. in particular, Users can improve their second characteristic value through various behaviors, For example, establish your own trusted identity-through real-name authentication / face authentication, Enterprise mailbox authentication (proving that you really work in a company), Let authenticated users endorse themselves, Prove that you have indeed established a trusted identity by working in a company, etc. Maintain a credible identity - don't do it, If you misrepresent your identity or do false authentication to other users, Reported by other users is true, Will reduce the second eigenvalue, Perform credible behaviors-such as completing a car appointment, Appointment to go to the appointment on time, Pay the rental fee on time and perform the target business honestly. Users increase their second characteristic value, Can increase the user's contribution rate in the target business accordingly, Thus, a higher ratio of virtual resources can be obtained when allocating virtual resources later. In a calculation method shown, The specific algorithm of the user's contribution ratio in the target business can be as follows: The user's contribution parameter value in the target business within the preset duration = (user's first characteristic value * user's second characteristic value)/100; Correspondingly, The user's contribution rate to the target business within the preset time period = the user's contribution parameter value to the target business within the preset time period / the sum of the contribution parameter values of all users to the target business within the preset time period. Unlike the first eigenvalue which represents the user’s contribution to the target business within the preset duration, The second characteristic value described in this embodiment is to characterize that the user maintains a trusted identity in the business system for a long time, The credibility of performing credible behavior, It is a measure of user credibility over a long period of time (even since joining the business system). Therefore, the above embodiment incorporates the user's credibility or the second feature value into the virtual resource allocation method, Calculate the user's contribution rate in the target business based on the above first and second feature values, Encourage users to do more business while Maintain good credibility, Make the business system develop towards a more benign state. It is worth noting that Based on the different credibility of users when participating in different target businesses, The credibility of participating in one business may be different from the credibility of users participating in another business, When obtaining the contribution rate of the user to the target business within the preset time period based on the first feature value and the second feature value, It is possible to select the second feature value of the user when performing business activities related to the target business to be added to the calculation of the contribution ratio, The second characteristic value produced by the credibility independent of the target business may not be considered. Since the business system is built on the blockchain, The business system calculates the corresponding second characteristic value from the trusted behavior of the user, and the calculation rule can be deployed in the underlying program code of the business system, Or various trusted behavior events executed by the user node in the business system, Or the credibility established by various credible behavior events or the second characteristic value calculated based on the credibility of various credible behavior events can be included in the distributed database of the blockchain, Any node of the blockchain performs the process of obtaining the second eigenvalue. Therefore, the second characteristic value of the user is obtained in this embodiment, It may be that the node of the blockchain directly obtains the second characteristic value of the user from the distributed database of the blockchain, It can also be a variety of trusted actions performed by users of the blockchain node based on the distributed database of the blockchain, And the corresponding second characteristic value is calculated. The business system can set corresponding, The total amount of virtual resources available for allocation. In an illustrated embodiment, To encourage users to actively participate in the target business, The above-mentioned total amount of virtual resources may be in a state of dynamic adjustment. E.g, The business system sets an expected value for the sum of the first characteristic values of all users within the preset duration, And set a fixed threshold for the total amount of virtual resources available for allocation based on the target service within the preset duration; The method also includes: Obtaining the actual value of the sum of the first characteristic values of all users within the preset duration; Compare the expected value with the actual value, If the actual value does not exceed the expected value, The total amount of virtual resources is the fixed threshold; If the actual value exceeds the expected value, Setting an additional value of the virtual resource based on the difference between the actual value and the expected value, The total amount of virtual resources is the sum of the fixed threshold and the additional value. Through the rules for setting the total amount of virtual resources described in the above embodiment, The enthusiasm of users to participate in the target business is further improved. Since the business system is built on the blockchain, A calculation rule for the total amount of virtual resources available for allocation of the target business within the preset duration in the business system, It can be deployed in the underlying program code of the business system. further, Based on the total virtual resource and the contribution ratio of the user, Obtain the deserved virtual resource that the user participates in the target business within the preset duration. E.g, The deserved virtual resource may be obtained by multiplying the total virtual resource by the contribution ratio of the user. Step 106, The user is allocated virtual resources deserving to participate in the target business within the preset duration. The above allocation of the deserved virtual resource to the user can be achieved by sending a transaction for the virtual resource transfer to the user's address on the blockchain. Since the business system is built on the blockchain, In this business system, based on the total amount of virtual resources and the contribution ratio of the user, Allocating calculation rules of deserved virtual resources participating in the target business within the preset duration for the user, It can be deployed in the underlying program code of the business system. In the above embodiments, About the first eigenvalue, Second eigenvalue, Contribution ratio, Total virtual resources, The calculation rules of the deserved virtual resources can be deployed in the underlying program code of the business system. In order to further ensure that the user identity authentication process is true and effective, fair and just, Set up or change the above calculation rules, Can be verified by consensus of blockchain consensus nodes, Deploy smart contracts for virtual resource transfer on the blockchain; Any node device or client in the above blockchain, By receiving a call transaction to the smart contract, Executing the smart contract statement to obtain the deserved virtual resource for the user to participate in the target business within the preset duration based on the first characteristic value, Furthermore, the user is allocated execution logic of the deserved virtual resource that participates in the target business within the preset duration. E.g, Invoke smart contract for virtual resource distribution published on the blockchain, Execute the calculation logic of the user's contribution ratio declared by the smart contract and the total amount of virtual resources, And based on the total virtual resource and the contribution ratio of the user, Allocating the allocation logic of the deserved virtual resources within the preset duration for the user, The deserving virtual resources are allocated to the users. The execution logic stated in the above smart contract to allocate the deserved virtual resource to the user, This can be achieved by sending a virtual resource transaction to the user's blockchain address through the above-mentioned smart contract. In another embodiment shown, According to the virtual resource allocation method provided in the above embodiment, After the above user obtains the deserved virtual resource for participating in the above target task, In order to facilitate the system to allocate and settle virtual resources within the next preset duration, You can clear the above first feature value, that is, After allocating the deserved virtual resources within the preset duration to the user, Issue a clearing transaction to the distributed database of the blockchain, The clearing transaction is used to set the first characteristic value of the user to zero. In yet another illustrated embodiment, The above smart contract also declares the execution logic to clear the first characteristic value of the user, After allocating the deserved virtual resources to the user, Issue a clearing transaction to the distributed database of the blockchain, The clearing transaction is used to set the first characteristic value of the user to zero. of course, Those skilled in the art are familiar with, In addition to publishing clearing transactions to the distributed database of the blockchain, You can also publish transactions that update the user's first feature value status, Mark the first feature value that has been allocated the corresponding virtual resource based on the first feature value in the transaction, Will not be included in the user’s next preset duration, Or other target business deserves the calculation of virtual resources. For the smart contract developed, The smart contract can be published to the blockchain through any node device in the blockchain, And in the smart contract, the designated member node device in the blockchain (for example, (Several authoritative node devices specified in the alliance chain with accounting authority) After completing the consensus, Included in the distributed database of the blockchain. Follow-up, Users can access the client of any node device, Submit transactions to the smart contract included in the blockchain, To initiate a contract call to the smart contract, Trigger on the blockchain to trigger the execution of related business logic. among them, It should be noted, The member node equipment in the blockchain is working on the smart contract issued to the blockchain, Or when the calling transaction of the smart contract performs consensus processing, The consensus algorithm used, And the specific consensus process, No more details in this manual, When a person skilled in the art puts the technical solution described in this specification into practice, You can refer to the description in the related art. Compared with the centralized server operation mode, Smart contracts are called at any time in response to user requests, Greatly improve the efficiency of user identity authentication; And smart contract execution has low human intervention, The advantages of decentralized authority, Increased the transparency and fairness of computing behavior. Compared to the implementation of compiling and deploying the calculation rule logic and execution logic included in the virtual resource allocation method provided in this specification to the underlying database of the business system built on the blockchain, The smart contract execution method has greater design flexibility. Through the virtual resource allocation methods provided by the above embodiments, Stage the allocation of virtual resources in time, Evaluate the user’s contribution rate to the target business within a preset period of time, Therefore, the total amount of virtual resources available for allocation within the preset duration is allocated according to the contribution ratio of each user, It avoids the disadvantage that the existing virtual resource allocation depends on the accumulated use time of the business system by the users and cannot encourage new users to join. and, In some illustrated embodiments, Encourage the second eigenvalues used to characterize the user's credibility to be included in the user's contribution rate to the target business, Make the virtual resource allocation to users in the business system, Not only related to the user’s contribution to the target business, Is also related to the user’s credibility, Encourage users to do more business while Maintain good credibility, Make the business system develop towards a more benign state. further, Apply the above virtual resource allocation method to the blockchain network, A first eigenvalue to characterize the contribution to the business running in the business system within a preset duration, The second eigenvalue can be decentralized and recorded in the distributed database of the blockchain, Or obtain the above first eigenvalue, Second eigenvalue, And the corresponding contribution ratio, The process of deserving virtual resources can be executed fairly and fairly by any node on the blockchain by calling the smart contract deployed on the blockchain. Blockchain-based consensus mechanism, The first characteristic value, The second characteristic value will not be tampered with after being provided, Thereby ensuring that relying on the first eigenvalue, Or the reliability and fairness of the virtual resource allocation behavior based on the first feature value and the second feature value. Corresponding to the above process, The embodiment of the present specification also provides a virtual resource allocation device 20. All the above devices 20 can be realized by software, It can also be achieved by a combination of hardware and software. Take software implementation as an example, As a logical device, Is through the CPU (Central Process Unit, The central processor) reads the corresponding computer program instructions into the internal memory and runs them. From the hardware level, In addition to the CPU shown in Figure 3, Internal and external memory, The equipment on which the device for realizing the network risk business is usually also includes other hardware such as chips for wireless signal transmission and reception, And/or other hardware such as boards used to implement network communication functions. FIG. 2 is a virtual resource allocation device 20 shown in an embodiment of this specification, Used to allocate virtual resources to users of business systems, The device 20 includes: Obtaining unit 202, Obtain the first characteristic value of the user, among them, The first characteristic value is used to characterize the user's contribution to the target business participating in the business system within a preset duration; Obtaining a deserved virtual resource for the user to participate in the target business within the preset duration based on the first feature value; Distribution unit 204, The user is allocated virtual resources deserving to participate in the target business within the preset duration. In yet another illustrated embodiment, The obtaining unit 202: Obtaining the contribution rate of the user to the target business within the preset duration based on the first feature value; Obtaining the total amount of virtual resources available for allocation by the business system based on the target business within the preset duration; Based on the total virtual resource and the contribution ratio of the user, Obtain the deserved virtual resource that the user participates in the target business within the preset duration. In yet another illustrated embodiment, The above device 20 also includes: Clearing unit 206, After allocating the deserved virtual resources within the preset duration to the user, Clear the first characteristic value of the user. In yet another illustrated embodiment, The obtaining unit 202: Obtain the second characteristic value of the user, among them, The second characteristic value is used to characterize the credibility of the user; Based on the first feature value and the second feature value, the contribution rate of the user to the target service within the preset time period is obtained. In yet another illustrated embodiment, The business system sets an expected value for the sum of the first characteristic values of all users within the preset duration, And set a fixed threshold for the total amount of virtual resources available for allocation based on the target service within the preset duration; The device also includes a virtual resource total calculation unit: Obtaining the actual value of the sum of the first characteristic values of all users within the preset duration; Compare the expected value with the actual value, If the actual value does not exceed the expected value, The total amount of virtual resources is the fixed threshold; If the actual value exceeds the expected value, Setting an additional value of the virtual resource based on the difference between the actual value and the expected value, The total amount of virtual resources is the sum of the fixed threshold and the additional value. In yet another illustrated embodiment, The obtaining unit 202: Obtaining the user's contribution parameter value to the target business based on the first feature value and the second feature value; Obtain the sum of the contribution parameter values of all users to the target business in the business system; Based on the ratio of the user's contribution parameter value to the sum of the contribution parameter value, The contribution rate of the user to the target business is obtained. In yet another illustrated embodiment, The business system is a system built on the blockchain, The blockchain includes multiple user nodes. In yet another illustrated embodiment, The device 20 further includes a clearing transaction sending unit 208: After allocating the deserved virtual resources within the preset duration to the user, Issue a clearing transaction to the distributed database of the blockchain, The clearing transaction is used to set the first characteristic value of the user to zero. In yet another illustrated embodiment, The obtaining unit 202 and the distribution unit 204: Invoke smart contract for virtual resource distribution published on the blockchain, Executing the smart contract declared to obtain the deserved virtual resources for the user to participate in the target business within the preset duration based on the first characteristic value, Furthermore, the user is allocated execution logic of the deserved virtual resource that participates in the target business within the preset duration. In yet another illustrated embodiment, The smart contract also declares execution logic to clear the first characteristic value of the user, After allocating the deserved virtual resources to the user, Issue a clearing transaction to the distributed database of the blockchain, The clearing transaction is used to set the first characteristic value of the user to zero. For the implementation process of the functions and functions of each unit in the above device, please refer to the implementation process of the corresponding steps in the above method for details. For the relevant parts, please refer to the description of the method embodiment, I will not repeat them here. The device embodiments described above are only schematic, The units described as separate components may or may not be physically separated, The component displayed as a unit may or may not be a physical module, Can be located in one place, Or it can be distributed to multiple network modules. Some or all of the units or modules can be selected according to actual needs to achieve the purpose of the solution in this specification. Those of ordinary skill in the art without paying creative work, It can be understood and implemented. The device explained in the above embodiment, unit, Module, It can be realized by computer chip or entity, Or it can be realized by a product with a certain function. A typical implementation device is a computer, The specific form of the computer can be a personal computer, Laptop computer, Cellular phone, Camera phone, Smart phone, Personal digital assistant, media Player, Navigation equipment, Email sending and receiving equipment, Game console, Tablet computer, Wearable devices or any combination of these devices. Corresponding to the above method embodiment, The embodiments of this specification also provide a computer device, The computer equipment includes a memory and a processor. among them, A computer program that can be run by the processor is stored on the memory; When the processor is running a stored computer program, Each step of the virtual resource allocation method in the embodiment of this specification is executed. For a detailed description of each step of the virtual resource allocation method, please refer to the previous content, Not repeat. Corresponding to the above method embodiment, The embodiments of the present specification also provide a computer-readable storage medium, A computer program is stored on the storage medium, When these computer programs are run by the processor, Each step of the virtual resource allocation method in the embodiment of this specification is executed. For a detailed description of each step of the virtual resource allocation method, please refer to the previous content, Not repeat. The above is only the preferred embodiment of this specification, Is not intended to limit this manual, Within the spirit and principles of this manual, Any modifications made, Equivalent replacement, Improvement etc., All should be included in the scope of protection of this manual. In a typical configuration, The computing device includes one or more processors (CPU), Input/output interface, Network interface and internal memory. Internal memory may include non-permanent memory in computer-readable media, Random access memory (RAM) and/or non-volatile memory, etc., Such as read only memory (ROM) or flash memory (flash RAM). The internal memory is an example of a computer-readable medium. Computer-readable media includes permanent and non-permanent, Removable and non-removable media can store information by any method or technology. Information can be computer readable instructions, Data structure, Program modules or other data. Examples of computer storage media include, But not limited to phase change memory (PRAM), Static random access memory (SRAM), Dynamic Random Access Memory (DRAM), Other types of random access memory (RAM), Read only memory (ROM), Electrically erasable and programmable read-only memory (EEPROM), Flash memory or other internal memory technology, CD-ROM, CD-ROM, Digital Versatile Disc (DVD) or other optical storage, Magnetic cassette tape, Magnetic tape storage or other magnetic storage devices or any other non-transmission media, It can be used to store information that can be accessed by computing devices. According to the definition in this article, Computer-readable media does not include temporary computer-readable media (transitory media), Such as modulated data signals and carrier waves. It should also be noted that The term "including", "Contains" or any other variation thereof is intended to cover non-exclusive inclusions, So that the process including a series of elements, method, Goods or equipment includes not only those elements, And also includes other elements that are not explicitly listed, Or is it also included for this process, method, Elements inherent in goods or equipment. Without more restrictions, Elements defined by the sentence "include a..." Does not exclude the process of including the elements, method, There are other identical elements in goods or equipment. Those skilled in the art should understand that The embodiments of this specification can be provided as methods, System or computer program product. therefore, The embodiment of this specification can adopt a completely hardware embodiment, A complete software embodiment or a form of embodiment combining software and hardware. and, The embodiments of the present specification may employ computer-usable storage media (including but not limited to disk memory, CD-ROM, The form of computer program products implemented on optical memory, etc.).

102:步驟 104:步驟 106:步驟 20:裝置 202:獲得單元 204:分配單元102: Step 104: Step 106: Step 20: Device 202: Acquisition unit 204: Distribution unit

圖1為本說明書所提供的一實施例所示的虛擬資源分配方法的流程圖; 圖2為本說明書所提供的一實施例提供的虛擬資源分配裝置的示意圖; 圖3為運行本說明書所提供的虛擬資源分配裝置實施例的一種硬體結構圖。FIG. 1 is a flowchart of a virtual resource allocation method shown in an embodiment provided by this specification; 2 is a schematic diagram of a virtual resource allocation apparatus provided by an embodiment provided by this specification; FIG. 3 is a hardware structure diagram of an embodiment of a virtual resource allocation apparatus provided in this specification.

Claims (22)

一種虛擬資源的分配方法,用於對業務系統的使用者進行虛擬資源分配,包括: 獲得使用者的第一特徵值,其中,該第一特徵值用以表徵該使用者在預設的時長內對業務系統內所參加目標業務中的貢獻; 基於該第一特徵值獲得該使用者在該預設的時長內參加該目標業務的應得虛擬資源; 為該使用者分配在該預設時長內參加該目標業務的應得虛擬資源。A virtual resource allocation method for virtual resource allocation to users of a business system includes: Obtaining the first characteristic value of the user, wherein the first characteristic value is used to characterize the user's contribution to the target business participating in the business system within a preset duration; Obtaining a deserved virtual resource for the user to participate in the target business within the preset duration based on the first feature value; The user is allocated virtual resources deserving to participate in the target business within the preset duration. 根據申請專利範圍第1項之方法,該基於該第一特徵值獲得該使用者在該預設的時長內參加該目標業務的應得虛擬資源,包括: 基於該第一特徵值獲得該使用者在該預設的時長內對該目標業務的貢獻比率; 獲得該業務系統在該預設時長內基於該目標業務可供分配的虛擬資源總量; 基於該虛擬資源總量和該使用者的該貢獻比率,獲得該使用者在該預設時長內參加該目標業務的應得虛擬資源。According to the method of claim 1 of the patent application scope, the obtaining of virtual resources deserved by the user to participate in the target business within the preset duration based on the first feature value includes: Obtaining the user's contribution rate to the target business within the preset duration based on the first feature value; Obtain the total amount of virtual resources available for allocation by the business system based on the target business within the preset duration; Based on the total amount of the virtual resource and the contribution ratio of the user, the deserved virtual resource for the user to participate in the target business within the preset duration is obtained. 根據申請專利範圍第1或2項之方法,還包括: 在為該使用者分配在該預設時長內的應得虛擬資源之後,清零該使用者的第一特徵值。The method according to item 1 or 2 of the patent application scope also includes: After allocating the deserved virtual resource within the preset time period to the user, the first characteristic value of the user is cleared. 根據申請專利範圍第2項之方法,該基於該第一特徵值獲得該使用者在該預設的時長內對該目標業務的貢獻比率,包括: 獲得該使用者的第二特徵值,其中,該第二特徵值用以表徵該使用者的可信度; 基於該第一特徵值和第二特徵值獲得該使用者在該預設的時長內對該目標業務的貢獻比率。According to the method of claim 2 of the patent application scope, the obtaining of the contribution rate of the user to the target business within the preset duration based on the first characteristic value includes: Obtaining a second characteristic value of the user, wherein the second characteristic value is used to characterize the credibility of the user; Based on the first feature value and the second feature value, the user's contribution rate to the target service within the preset time period is obtained. 根據申請專利範圍第4項之方法,該業務系統為該預設時長內所有使用者的第一特徵值總和設置有一預期值,並為該預設時長內的基於該目標業務可供分配的該虛擬資源總量設置有一固定閾值;該方法還包括: 獲得該預設時長內所有使用者的第一特徵值總和的實際值; 對比該預期值與該實際值,如果該實際值未超過該預期值,該虛擬資源總量為該固定閾值; 如果該實際值超過該預期值,基於該實際值與該預期值的差值設置虛擬資源額外值,該虛擬資源總量為該固定閾值與該額外值之和。According to the method of claim 4 of the patent application scope, the business system sets an expected value for the sum of the first characteristic values of all users within the preset duration, and provides for the allocation based on the target business within the preset duration The total amount of virtual resources is set with a fixed threshold; the method also includes: Obtain the actual value of the sum of the first characteristic values of all users within the preset duration; Comparing the expected value with the actual value, if the actual value does not exceed the expected value, the total virtual resource is the fixed threshold; If the actual value exceeds the expected value, an additional value of the virtual resource is set based on the difference between the actual value and the expected value, and the total amount of the virtual resource is the sum of the fixed threshold and the additional value. 根據申請專利範圍第4項之方法,該基於該第一特徵值和第二特徵值獲得該使用者在該預設的時長內對該目標業務的貢獻比率,包括: 基於該第一特徵值和該第二特徵值獲得該使用者對該目標業務的貢獻參數值; 獲得所有使用者對業務系統內該目標業務的貢獻參數值總和; 基於該使用者的貢獻參數值占該貢獻參數值總和的比率,獲得該使用者對該目標業務的貢獻比率。According to the method of claim 4 of the patent application scope, the obtaining of the user's contribution rate to the target business within the preset time period based on the first characteristic value and the second characteristic value includes: Obtaining the user's contribution parameter value to the target business based on the first feature value and the second feature value; Obtain the sum of the contribution parameter values of all users to the target business in the business system; Based on the ratio of the user's contribution parameter value to the sum of the contribution parameter values, the user's contribution rate to the target business is obtained. 根據申請專利範圍第1項之方法,該業務系統是基於區塊鏈構建的系統,該區塊鏈包括多個使用者節點。According to the method of claim 1 of the patent scope, the business system is a system built on a blockchain that includes multiple user nodes. 根據申請專利範圍第7項之方法,還包括:在為該使用者分配在該預設時長內的應得虛擬資源之後,向該區塊鏈的分布式資料庫中發佈清零交易,該清零交易用以將該使用者的第一特徵值設置為零。The method according to item 7 of the patent application scope also includes: after allocating the deserved virtual resources within the preset duration to the user, publishing a clearing transaction to the distributed database of the blockchain, the The clear transaction is used to set the user's first characteristic value to zero. 根據申請專利範圍第7項之方法,該基於該第一特徵值獲得該使用者在該預設的時長內參加該目標業務的應得虛擬資源;為該使用者分配在該預設時長內參加該目標業務的應得虛擬資源,包括: 調用發佈在該區塊鏈上的虛擬資源分配智慧型合約,執行該智慧型合約所聲明的基於該第一特徵值獲得該使用者在該預設的時長內參加該目標業務的應得虛擬資源,且為該使用者分配在該預設時長內參加該目標業務的應得虛擬資源的執行邏輯。According to the method of claim 7 of the patent application scope, the virtual resource deserved by the user to participate in the target business within the preset duration based on the first feature value is obtained; the user is allocated the preset duration The virtual resources deserved to participate in the target business include: Invoke a smart contract for virtual resource allocation published on the blockchain, and execute the virtual contract based on the first characteristic value declared by the smart contract to obtain the user's deserved virtual participation in the target business within the preset duration Resources, and allocates the execution logic of the deserved virtual resources participating in the target business within the preset duration for the user. 根據申請專利範圍第9項之方法,該智慧型合約內還聲明有將該使用者的第一特徵值清零的執行邏輯,在為該使用者分配該應得虛擬資源後,向該區塊鏈的分布式資料庫中發佈清零交易,該清零交易用以將該使用者的第一特徵值設置為零。According to the method of claim 9 of the patent application scope, the smart contract also declares the execution logic to clear the first feature value of the user, and after assigning the deserved virtual resource to the user, the smart contract A clearing transaction is published in the distributed database of the chain, and the clearing transaction is used to set the first characteristic value of the user to zero. 一種虛擬資源的分配裝置,用於對業務系統的使用者進行虛擬資源分配,包括: 獲得單元,獲得使用者的第一特徵值,其中,該第一特徵值用以表徵該使用者在預設的時長內對業務系統內所參加目標業務中的貢獻; 基於該第一特徵值獲得該使用者在該預設的時長內參加該目標業務的應得虛擬資源; 分配單元,為該使用者分配在該預設時長內參加該目標業務的應得虛擬資源。A virtual resource allocation device for virtual resource allocation to users of a business system includes: The obtaining unit obtains a first characteristic value of the user, wherein the first characteristic value is used to characterize the user's contribution to the target business participating in the business system within a preset duration; Obtaining a deserved virtual resource for the user to participate in the target business within the preset duration based on the first feature value; The allocation unit allocates the deserved virtual resources for the user to participate in the target business within the preset duration. 根據申請專利範圍第11項之裝置,該獲得單元: 基於該第一特徵值獲得該使用者在該預設的時長內對該目標業務的貢獻比率; 獲得該業務系統在該預設時長內基於該目標業務可供分配的虛擬資源總量; 基於該虛擬資源總量和該使用者的該貢獻比率,獲得該使用者在該預設時長內參加該目標業務的應得虛擬資源。According to the device of claim 11 of the patent application scope, the obtaining unit: Obtaining the user's contribution rate to the target business within the preset duration based on the first feature value; Obtain the total amount of virtual resources available for allocation by the business system based on the target business within the preset duration; Based on the total amount of the virtual resource and the contribution ratio of the user, the deserved virtual resource for the user to participate in the target business within the preset duration is obtained. 根據申請專利範圍第11或12項之裝置,還包括: 清零單元,在為該使用者分配在該預設時長內的應得虛擬資源之後,清零該使用者的第一特徵值。The device according to item 11 or 12 of the patent application scope also includes: The clearing unit clears the first characteristic value of the user after allocating the deserved virtual resource within the preset time period to the user. 根據申請專利範圍第12項之裝置,該獲得單元: 獲得該使用者的第二特徵值,其中,該第二特徵值用以表徵該使用者的可信度; 基於該第一特徵值和第二特徵值獲得該使用者在該預設的時長內對該目標業務的貢獻比率。According to the device of claim 12 of the patent application scope, the obtaining unit: Obtaining a second characteristic value of the user, wherein the second characteristic value is used to characterize the credibility of the user; Based on the first feature value and the second feature value, the user's contribution rate to the target service within the preset time period is obtained. 根據申請專利範圍第14項之裝置,該業務系統為該預設時長內所有使用者的第一特徵值總和設置有一預期值,並為該預設時長內的基於該目標業務可供分配的該虛擬資源總量設置有一固定閾值;該裝置還包括虛擬資源總量計算單元: 獲得該預設時長內所有使用者的第一特徵值總和的實際值; 對比該預期值與該實際值,如果該實際值未超過該預期值,該虛擬資源總量為該固定閾值; 如果該實際值超過該預期值,基於該實際值與該預期值的差值設置虛擬資源額外值,該虛擬資源總量為該固定閾值與該額外值之和。According to the device of claim 14 of the patent application scope, the business system sets an expected value for the sum of the first characteristic values of all users within the preset duration, and is available for distribution based on the target business within the preset duration The total amount of virtual resources is set with a fixed threshold; the device also includes a virtual resource total calculation unit: Obtain the actual value of the sum of the first characteristic values of all users within the preset duration; Comparing the expected value with the actual value, if the actual value does not exceed the expected value, the total virtual resource is the fixed threshold; If the actual value exceeds the expected value, an additional value of the virtual resource is set based on the difference between the actual value and the expected value, and the total amount of the virtual resource is the sum of the fixed threshold and the additional value. 根據申請專利範圍第14項之裝置,該獲得單元: 基於該第一特徵值和該第二特徵值獲得該使用者對該目標業務的貢獻參數值; 獲得所有使用者對業務系統內該目標業務的貢獻參數值總和; 基於該使用者的貢獻參數值占該貢獻參數值總和的比率,獲得該使用者對該目標業務的貢獻比率。According to the device of claim 14 of the patent application scope, the obtaining unit: Obtaining the user's contribution parameter value to the target business based on the first feature value and the second feature value; Obtain the sum of the contribution parameter values of all users to the target business in the business system; Based on the ratio of the user's contribution parameter value to the sum of the contribution parameter values, the user's contribution rate to the target business is obtained. 根據申請專利範圍第11項之裝置,該業務系統是基於區塊鏈構建的系統,該區塊鏈包括多個使用者節點。According to the device of claim 11 of the patent application scope, the business system is a system built on a blockchain, which includes multiple user nodes. 根據申請專利範圍第17項之裝置,還包括清零交易發送單元:在為該使用者分配在該預設時長內的應得虛擬資源之後,向該區塊鏈的分布式資料庫中發佈清零交易,該清零交易用以將該使用者的第一特徵值設置為零。The device according to item 17 of the patent application scope also includes a clearing transaction sending unit: after allocating the deserved virtual resources within the preset duration for the user, it is released to the distributed database of the blockchain A clearing transaction, which is used to set the first characteristic value of the user to zero. 根據申請專利範圍第17項之裝置,該獲得單元和分配單元: 調用發佈在該區塊鏈上的虛擬資源分配智慧型合約,執行該智慧型合約所聲明的基於該第一特徵值獲得該使用者在該預設的時長內參加該目標業務的應得虛擬資源,且為該使用者分配在該預設時長內參加該目標業務的應得虛擬資源的執行邏輯。According to the device of claim 17 of the patent application scope, the acquisition unit and distribution unit: Invoke a smart contract for virtual resource allocation published on the blockchain, and execute the virtual contract based on the first characteristic value declared by the smart contract to obtain the user's deserved virtual participation in the target business within the preset duration Resources, and allocates the execution logic of the deserved virtual resources participating in the target business within the preset duration for the user. 根據申請專利範圍第19項之裝置,該智慧型合約內還聲明有將該使用者的第一特徵值清零的執行邏輯,在為該使用者分配該應得虛擬資源後,向該區塊鏈的分布式資料庫中發佈清零交易,該清零交易用以將該使用者的第一特徵值設置為零。According to the device of claim 19, the smart contract also declares the execution logic to clear the first characteristic value of the user. After allocating the deserved virtual resource to the user, the smart contract A clearing transaction is published in the distributed database of the chain, and the clearing transaction is used to set the first characteristic value of the user to zero. 一種計算機設備,包括:記憶體和處理器;該記憶體上儲存有可由處理器運行的計算機程式;該處理器運行該計算機程式時,執行如申請專利範圍第1到10項任意一項之方法。A computer device, including: a memory and a processor; a computer program executable by the processor is stored on the memory; when the processor runs the computer program, the method according to any one of items 1 to 10 of the patent application scope is executed . 一種計算機可讀儲存媒體,其上儲存有計算機程式,該計算機程式被處理器運行時,執行如申請專利範圍第1到10項任意一項之步驟。A computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, it executes any step as described in items 1 to 10 of the patent application.
TW108108957A 2018-09-25 2019-03-15 A method and apparatus for allocating virtual resources TW202013272A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811116433.8A CN109376008A (en) 2018-09-25 2018-09-25 A kind of distribution method and device of virtual resource
CN201811116433.8 2018-09-25

Publications (1)

Publication Number Publication Date
TW202013272A true TW202013272A (en) 2020-04-01

Family

ID=65402362

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108108957A TW202013272A (en) 2018-09-25 2019-03-15 A method and apparatus for allocating virtual resources

Country Status (3)

Country Link
CN (1) CN109376008A (en)
TW (1) TW202013272A (en)
WO (1) WO2020063175A1 (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109376008A (en) * 2018-09-25 2019-02-22 阿里巴巴集团控股有限公司 A kind of distribution method and device of virtual resource
CN111784090B (en) * 2019-04-04 2024-04-30 百度在线网络技术(北京)有限公司 Resource allocation method, device and storage medium based on block chain
CN110262845B (en) * 2019-04-30 2021-05-07 北京邮电大学 Block chain enabled distributed computing task unloading method and system
CN110233873B (en) * 2019-05-06 2022-06-17 深圳壹账通智能科技有限公司 Block chain-based virtual certificate value distribution method, contract running device and storage medium
CN110232599A (en) * 2019-06-18 2019-09-13 深圳市元征科技股份有限公司 A kind of task mining rights method, apparatus, equipment and storage medium
CN110490631A (en) * 2019-07-01 2019-11-22 咪咕文化科技有限公司 Business motivational techniques, device, electronic equipment and computer readable storage medium
CN110458702A (en) * 2019-07-15 2019-11-15 阿里巴巴集团控股有限公司 Based on the virtual resource allocation method and device of block chain, electronic equipment
US10785168B2 (en) 2019-07-15 2020-09-22 Alibaba Group Holding Limited Allocating virtual resource based on block chain
CN110599263B (en) * 2019-09-26 2021-06-01 腾讯科技(深圳)有限公司 User interaction data processing method and device, storage medium and computer equipment
CN111047454A (en) * 2019-12-10 2020-04-21 山东浪潮人工智能研究院有限公司 Block chain-based open-source community code contribution incentive method and equipment
CN111552981B (en) * 2020-04-26 2023-08-22 深圳前海壹互联科技投资有限公司 Insurance business attribution method and system based on block chain technology
CN111629062A (en) * 2020-05-29 2020-09-04 汉海信息技术(上海)有限公司 Message pushing method and device
CN112015822B (en) * 2020-10-20 2021-05-25 支付宝(杭州)信息技术有限公司 Block chain data deleting method and device
CN112330146B (en) * 2020-11-04 2024-01-23 杭州拼便宜网络科技有限公司 Virtual resource allocation method, device, equipment and readable storage medium
CN113535335B (en) * 2021-09-15 2022-01-11 支付宝(杭州)信息技术有限公司 Virtual resource allocation method and device based on block chain and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101330440B (en) * 2007-06-18 2011-04-13 中国电信股份有限公司 Method for regulating telecommunication stage P2P network resources distribution based on consumer behaviors
CN105391654A (en) * 2015-11-26 2016-03-09 中国建设银行股份有限公司 Account activeness-based system resource allocation method and device
CN106850509B (en) * 2015-12-07 2020-04-14 中国电信股份有限公司 Network access control method and device
CN106920092A (en) * 2016-12-23 2017-07-04 阿里巴巴集团控股有限公司 A kind of virtual resource allocation method, client and server
CN107122993A (en) * 2017-04-24 2017-09-01 杭州趣链科技有限公司 A kind of General integral system based on block chain
CN108364173B (en) * 2018-02-14 2021-01-19 北京三六五八网络科技有限公司 Digital asset processing method and device for e-commerce platform
CN108470277A (en) * 2018-02-28 2018-08-31 深圳市网心科技有限公司 Reward settlement method, system, readable storage medium storing program for executing and the computing device of block chain
CN108538358A (en) * 2018-03-05 2018-09-14 上海康斐信息技术有限公司 A kind of block chain reward on total mark method, system for wearable device
CN109376008A (en) * 2018-09-25 2019-02-22 阿里巴巴集团控股有限公司 A kind of distribution method and device of virtual resource

Also Published As

Publication number Publication date
WO2020063175A1 (en) 2020-04-02
CN109376008A (en) 2019-02-22

Similar Documents

Publication Publication Date Title
TW202013272A (en) A method and apparatus for allocating virtual resources
TWI695331B (en) Random object selection method and device based on blockchain
TWI719604B (en) Block chain-based resource allocation method and device
Shahaab et al. Applicability and appropriateness of distributed ledgers consensus protocols in public and private sectors: A systematic review
Chatzopoulos et al. Privacy preserving and cost optimal mobile crowdsensing using smart contracts on blockchain
CN110163590B (en) Payment withholding method and device based on block chain, electronic equipment and storage medium
WO2020199744A1 (en) Method and apparatus for allocating copyrights of works based on blockchain
WO2020125218A1 (en) Claim settlement method and apparatus employing blockchain technology
US11948155B2 (en) Method and device for performing credit evaluation on work publisher on basis of blockchain
TWI771604B (en) Blockchain-based commodity purchasing method and device
KR101827373B1 (en) Block window module having agreement algorithm for limiting mining, managing server and virtual money exchange system and method
WO2020019798A1 (en) Rights and interests distribution method and device and electronic device
TWI736959B (en) Block chain-based user characteristic value acquisition and application method and device
CN110175913A (en) Data processing system, method, calculating equipment and storage medium based on block chain
US20210112087A1 (en) Systems and methods for distributed extended common vulnerabilities and exposures data management
CN110166442A (en) A kind of data processing method and device based on block chain
CN111899012B (en) Block chain-based money transfer method and device
WO2020015406A1 (en) Method and device for credit evaluation of copyright user based on block chain
CN111177800B (en) Block chain-based data processing method and device and electronic equipment
CN110363527A (en) Card, monitoring and managing method and device are deposited based on block chain
US20190114707A1 (en) Distribution of Blockchain Tokens
WO2020108147A1 (en) Blockchain-based shared resource rental method and apparatus, and computer device
WO2023116790A1 (en) Method and apparatus for executing computing task, and storage medium and electronic apparatus
CN109711840B (en) Transaction data processing method and device and storage medium
US20200014632A1 (en) Resource path monitoring