CN111695886B - Virtual currency accounting method and device, electronic equipment and readable storage medium - Google Patents

Virtual currency accounting method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111695886B
CN111695886B CN202010534966.9A CN202010534966A CN111695886B CN 111695886 B CN111695886 B CN 111695886B CN 202010534966 A CN202010534966 A CN 202010534966A CN 111695886 B CN111695886 B CN 111695886B
Authority
CN
China
Prior art keywords
account
virtual currency
user
merchant
circulation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010534966.9A
Other languages
Chinese (zh)
Other versions
CN111695886A (en
Inventor
胡义兵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010534966.9A priority Critical patent/CN111695886B/en
Publication of CN111695886A publication Critical patent/CN111695886A/en
Application granted granted Critical
Publication of CN111695886B publication Critical patent/CN111695886B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • 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
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/06Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme
    • G06Q20/065Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash
    • G06Q20/0658Private payment circuits, e.g. involving electronic currency used among participants of a common payment scheme using e-cash e-cash managed locally
    • 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/12Accounting
    • G06Q40/125Finance or payroll

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Technology Law (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

The application discloses a virtual currency accounting method, a virtual currency accounting device, electronic equipment and a readable storage medium, and relates to the technical field of big data. The specific implementation scheme is as follows: obtaining circulation data of virtual currency in a target service; the circulation data comprises circulation event information and circulation amount information; according to the circulation event information, determining a user account and a merchant account corresponding to the virtual currency in circulation, and determining circulation conditions of the virtual currency between the user account and the merchant account; and according to the circulation condition and the circulation amount information, simultaneously accounting the user account and the merchant account in a duplex accounting mode. According to the scheme of the application, the account of the user account and the merchant account related to the current business scene can be simultaneously checked according to the circulation condition of the virtual currency, so that the tracing and circulation of each piece of virtual currency can be traced, and the high-reliability accounting of the virtual currency is realized.

Description

Virtual currency accounting method and device, electronic equipment and readable storage medium
Technical Field
The application relates to the technical field of computers, in particular to the technical field of big data.
Background
With the rapid growth of the internet and the diversity of product types, more and more products have virtual currency incentive schemes for stimulating the growth of users. Currently, in order to verify whether the virtual currency circulation in the incentive scheme is normal, the change condition of the virtual currency is recorded by a merchant account. However, this method is simple only by means of account billing of the merchant, and the virtual currency cannot be reliably billed.
Disclosure of Invention
The disclosure provides a virtual currency accounting method, a virtual currency accounting device, electronic equipment and a readable storage medium.
According to an aspect of the present disclosure, there is provided a billing method of virtual currency, including:
obtaining circulation data of virtual currency in a target service; the circulation data comprises circulation event information and circulation amount information;
according to the circulation event information, determining a user account and a merchant account corresponding to the virtual currency in circulation, and determining circulation conditions of the virtual currency between the user account and the merchant account;
and according to the circulation condition and the circulation amount information, simultaneously accounting the user account and the merchant account in a duplex accounting mode.
Therefore, based on the circulation condition and circulation amount information of the virtual currency, the user account and the merchant account corresponding to the virtual currency during circulation can be billed in a duplex billing mode, so that the tracing and circulation of each piece of virtual currency can be traced, and the high-reliability billing of the virtual currency can be realized.
According to another aspect of the present disclosure, there is provided an accounting apparatus of virtual currency, including:
the acquisition module is used for acquiring the circulation data of the virtual currency in the target business; the circulation data comprises circulation event information and circulation amount information;
the determining module is used for determining a user account and a merchant account corresponding to the virtual currency in the process of transferring according to the transfer event information and determining the transfer condition of the virtual currency between the user account and the merchant account;
and the billing module is used for billing the user account and the merchant account simultaneously in a duplex billing mode according to the circulation condition and the circulation amount information.
The technology solves the problem that the current billing mode can not reliably bill the virtual currency, can bill the user account and the merchant account corresponding to the virtual currency in the process of flow based on the flow condition and the flow amount information of the virtual currency, and can trace the tracing and the flow of each piece of virtual currency, thereby realizing the highly reliable billing of the virtual currency.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are included to provide a better understanding of the present application and are not to be construed as limiting the application. Wherein:
FIG. 1 is a schematic diagram of a virtual currency management system in accordance with an embodiment of the present application;
FIG. 2 is a schematic diagram of a method of billing virtual currency according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a virtual currency accounting process in an embodiment of the present application;
FIG. 4 is a schematic diagram of a reconciliation process for virtual currency in an embodiment of the application;
FIG. 5 is a schematic diagram of a billing process in a high concurrency scenario in an embodiment of the present application;
FIG. 6 is a block diagram of an accounting device for implementing an accounting method for virtual currency in an embodiment of the present application;
fig. 7 is a block diagram of an electronic device for implementing a billing method of virtual currency in an embodiment of the present application.
Detailed Description
Exemplary embodiments of the present application will now be described with reference to the accompanying drawings, in which various details of the embodiments of the present application are included to facilitate understanding, and are to be considered merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. "and/or" in the specification and claims means at least one of the connected objects.
Referring to fig. 1, fig. 1 is a schematic diagram of a virtual currency management system according to an embodiment of the application. The virtual currency management system has high consistency, reliability and universality, and can be suitable for billing scenes of various virtual currency circulation. As shown in FIG. 1, the virtual currency management system may include at least a virtual currency generating system 11, a virtual currency double accounting system 12, a virtual currency double accounting 13, and a storage system 14. The virtual currency generating system 11 is mainly responsible for generating virtual currency for use in a subsequent business scenario. A specific virtual currency generation scenario may use bank account debiting as a vouching. For example, for merchant a, merchant B, merchant X, etc., the product business may first apply for budget to finance, then approve the budget and pay money to the business bank account, the successful payment is notified to the business system in real time, and finally, after receiving notification of successful payment from the bank, the virtual currency management system is charged, and the total value of the virtual currency in the merchant account is updated. The merchant account may include a merchant equity account and a merchant asset account. The merchant equity account represents the equity of the merchant in the business system and is responsible for issuing virtual currency for the user. The merchant asset account represents the amount that the merchant can present in the business system and is responsible for the user to present and use.
The virtual currency compound accounting system 12 is mainly responsible for accounting for the streaming situation of the virtual currency, and the related business scenarios mainly include, but are not limited to: scene one, the business issues the rewarding scene; scene two, the business recovers the rewarding scene; scene three, a user consumes a reward scene; scene four, the user presents the rewarding scene.
The virtual currency compound accounting 13 is mainly responsible for accounting tasks, and performs compound accounting on economic businesses occurring in the business system in a set accounting period. The storage system 14 primarily records transaction status of virtual currency in each merchant equity account, each merchant asset account, each user equity account, and each user asset account, and the like.
Referring to fig. 2, fig. 2 is a flowchart of a virtual currency accounting method according to an embodiment of the present application, as shown in fig. 2, the method includes the following steps:
step 201: and obtaining the circulation data of the virtual currency in the target business.
In this embodiment, the transfer data may include transfer event information, transfer amount information, and the like. The circulation event information is mainly related to business scenes, and the related events include, but are not limited to, issuing rewards by merchants, recycling rewards by merchants, consuming rewards by users, presenting rewards by users and the like. The transfer amount information indicates an amount value of the virtual currency transfer.
It should be noted that the target service may be selected from any service currently having a virtual currency incentive scheme, such as a video service, a game service, etc., which is not limited.
Step 202: and according to the circulation event information, determining a user account and a merchant account corresponding to the virtual currency in circulation, and determining circulation conditions of the virtual currency between the user account and the merchant account.
In this embodiment, the user account may include at least one of a user equity account and a user asset account. The merchant account may include at least one of a merchant equity account and a merchant asset account. It should be noted that the merchant equity account generally represents the equity of the merchant in the business system and is responsible for issuing virtual currency for use by the user. The merchant asset account typically represents the amount that the merchant can present in the business system, and is responsible for the user's presentation. User equity class accounts are typically used to deposit virtual currency held by a user. The user asset account typically represents the user's currency of presentation.
The circulation situation of the virtual currency between the user account and the merchant account is mainly related to the business scenario, namely the circulation event of the main virtual currency. For example, in a scene that a merchant issues rewards, the corresponding circulation condition is that virtual currency flows from a merchant equity account to a user equity account; or under the condition that the merchant recovers rewards, the corresponding circulation condition is that the virtual currency flows from the user equity account to the merchant equity account.
Step 203: and according to the circulation condition and the circulation amount information, simultaneously accounting the user account and the merchant account in a duplex accounting mode.
For the duplex billing mode, the billing is performed simultaneously on two or more interconnected accounts with equal monetary value for each economic service that occurs.
The accounting method in the embodiment of the application can account the user account and the merchant account corresponding to the virtual currency in the process of transferring by adopting a duplex accounting mode based on the transfer condition and the transfer amount information of the virtual currency, thereby being capable of tracing the tracing and the transfer of each piece of virtual currency and realizing the highly reliable accounting of the virtual currency.
In the embodiment of the present application, the process of simultaneously accounting the user account and the merchant account by adopting a duplex accounting manner according to the circulation condition and the circulation amount information may include:
according to the circulation condition, a first account and a second account are analyzed from the user account and the merchant account; the first account is an account needing to be deducted of the amount, and the second account is an account needing to be added of the amount;
determining the value of the amount of circulation according to the circulation amount information;
deducting the monetary value from the first account while adding an equal amount of the monetary value to the second account.
In this way, by deducting the monetary value from the first account, and adding an equal amount of said monetary value to the second account, the tracing and circulation of each virtual currency can be traced back, thereby achieving a highly reliable accounting of the virtual currency.
Alternatively, the virtual currency stream event may have a variety of types including, but not limited to, the following four types: the merchant issues rewards, the merchant retrieves rewards, the user consumes rewards, and the user presents rewards. The four circulation events respectively correspond to a merchant issuing rewards scene, a merchant recycling rewards scene, a user consuming rewards scene and a user presenting rewards scene. As shown in FIG. 3, prior to billing, the balance in the merchant's asset and equity accounts may be first applied for budget based on the merchant's business and increased based on the applied budget. The accounting method in the above four business scenarios is described as follows.
For the merchant issuance rewards scenario, the user may be issued virtual currency by the merchant in accordance with the task the user has achieved, etc. to encourage, at which point the merchant equity virtual account deducts (decrements) the virtual currency amount, while the user equity virtual account increments the equivalent virtual currency amount, as shown in fig. 3. That is, when the virtual currency stream event issues a reward for a merchant, the user equity account and the merchant equity account are related to the issuing of the reward by the merchant, and the corresponding accounting process specifically includes: deducting the value of the amount of the circulation from the merchant equity account, and simultaneously increasing the value of the amount of the circulation with equal amount in the user equity account.
For the merchant recycling rewards scene, the merchant can deduct the virtual currency held by the user for punishment because the user does not reach the task for a long time, and the like, at this time, as shown in fig. 3, the merchant equity virtual account increases the virtual currency amount to be deducted, and meanwhile, the user equity virtual account deducts (reduces) the virtual currency amount of the sum. That is, when the virtual currency recycling event is a merchant recycling incentive, the user equity account and the merchant equity account are related to the merchant recycling incentive, and the corresponding billing process specifically includes: and according to the circulation condition of the virtual currency, increasing the circulation monetary value in the merchant equity account, and deducting the circulation monetary value of equal amount from the user equity account.
For the user consumption rewarding scene, the user uses the obtained virtual currency to use in the consumption activities, such as lottery, shopping, game playing, etc., at this time, as shown in fig. 3, the merchant interest virtual account increases the virtual currency amount to be deducted, and the user interest virtual account deducts (reduces) the virtual currency amount of the amount. That is, when the virtual currency stream event is a user consumption reward, the user consumption reward is related to a user equity account and a merchant equity account, and the corresponding billing process specifically includes: and adding the value of the amount of the circulation in the merchant equity account, and deducting the value of the amount of the circulation from the user equity account.
For the user presenting rewarding scene, the user uses the obtained virtual currency to present, at this time, as shown in fig. 3, the merchant equity account and the user equity account deduct (reduce) the amount of the virtual currency, and at the same time, the merchant asset account deducts the equal amount of the present amount, and the user asset account increases the equal amount of the present amount. That is, when the virtual currency circulation event presents a reward for the user, the user equity account, the user asset account, the merchant asset account and the merchant equity account are related to the user presentation reward, and the corresponding billing process specifically includes: and deducting the value of the circulated sum from the merchant equity account, the merchant asset account and the user equity account, and simultaneously deducting the equal-amount cash-out sum from the merchant asset account and adding the equal-amount cash-out sum into the user asset account.
In the embodiment of the application, in order to further ensure the accuracy of the accounting content, the accounting of multiple dimensions can be performed on the flow condition of the virtual currency according to the lending record condition of each economic service in a preset accounting period. Optionally, the reconciliation method in the embodiment of the present application may include:
checking the flow condition of the virtual currency by using at least one of the following checking modes:
dimension one: the reduction of the virtual currency in the merchant equity account is equal to the increase of the virtual currency in the user equity account;
dimension two: the reduction of the cash in the merchant asset account is equal to the increase of the cash in the user asset account;
dimension three: for the merchant equity account, the virtual currency balance at the end of the preset checking period is equal to the value obtained by subtracting the virtual currency deduction amount in the preset checking period from the virtual currency balance at the beginning of the preset checking period and adding the virtual currency increment in the preset checking period;
dimension four: for the user equity account, the virtual currency balance at the end of the preset checking period is equal to the value obtained by subtracting the virtual currency deduction amount in the preset checking period from the virtual currency balance at the beginning of the preset checking period and adding the virtual currency increment in the preset checking period.
It can be appreciated that the preset reconciliation period may be preset based on actual requirements, which is not limited. In one embodiment, as shown in fig. 4, when checking is performed, whether a checking period is reached can be monitored, if so, the flow of increase and decrease of the merchant equity account and the merchant asset account can be pulled, and the flow of increase and decrease of the user equity account and the user asset account can be pulled, so that checking is performed in the above checking mode; further, whether the increase and decrease between the accounts are balanced or not can be judged, if balanced, the account checking is finished, and if unbalanced, the account checking can be carried out according to each running line.
In the embodiment of the application, the merchant virtual account and the user virtual account are in one-to-many relationship, for example, one merchant virtual account has only one record, and the condition that the one merchant virtual account is locked possibly occurs in a high-traffic concurrent scene, thereby influencing the throughput of the system. In order to solve the performance problem of the high concurrency scene, the merchant virtual account can be split into n+1 sub-virtual accounts according to the requirement, n is a positive integer greater than 1, wherein 1 virtual account is a public equity account, the other n, namely a plurality of virtual accounts are merchant sub-equity accounts, each merchant sub-equity account corresponds to the user equity accounts of different users respectively, for example, the user equity accounts can be hashed to different merchant sub-equity accounts according to the user identification ID.
In this case, when the user account corresponding to the virtual currency is the user equity account of the first user during the transfer, and the first merchant sub-equity account of the plurality of merchant sub-equity accounts corresponds to the user equity account of the first user, the user equity account of the first user and the first merchant sub-equity account may be simultaneously billed according to the transfer condition of the virtual currency. However, when the virtual amount in the first merchant sub-equity account is zero, the user equity account and the public equity account of the first user can be simultaneously billed according to the circulation condition of the virtual currency. Therefore, by splitting the merchant virtual account into a plurality of sub virtual accounts, and each sub virtual account corresponds to the virtual account of different users, the problem that the merchant virtual account is locked due to high concurrency of business can be avoided, and the performance problem of a high concurrency scene is solved.
In one embodiment, as shown in fig. 5, in the scenario where the merchant issues the rewards, the merchant virtual account may be split into 1 public equity account and n merchant sub equity accounts, where 1 public equity account stores 10% of the virtual amount, and the remaining n merchant sub equity accounts store the remaining 90% of the virtual amount. When the stimulated economic service occurs, the virtual currency is increased or decreased from the sub-equity accounts of different merchants according to the user id hash, if the virtual currency is not enough to be obtained from the public equity account, namely the hashed sub-equity account balance of the merchants is firstly subtracted, the insufficient part is subtracted from the public equity account, and meanwhile, the balance of the user equity account is increased. To ensure that the amounts in the n merchant sub-equity class accounts are relatively averaged, a timed task may be set to periodically average the amounts of the sub-virtual accounts.
Referring to fig. 6, fig. 6 is a schematic structural diagram of an accounting device for virtual currency according to an embodiment of the present application, and as shown in fig. 6, the accounting device 60 includes:
an obtaining module 61, configured to obtain circulation data of virtual currency in a target service; the circulation data comprises circulation event information and circulation amount information;
a determining module 62, configured to determine, according to the circulation event information, a user account and a merchant account corresponding to the virtual currency during circulation, and determine a circulation condition of the virtual currency between the user account and the merchant account;
and the accounting module 63 is configured to account the user account and the merchant account simultaneously in a duplex accounting manner according to the circulation condition and the circulation amount information.
Optionally, the accounting module 63 includes:
the analysis unit is used for analyzing a first account and a second account from the user account and the merchant account according to the circulation condition; the first account is an account needing to be deducted of the amount, and the second account is an account needing to be added of the amount;
the determining unit is used for determining the value of the amount of circulation according to the circulation amount information;
and the billing unit is used for deducting the monetary value from the first account and simultaneously adding the monetary value with equal amount in the second account.
Optionally, the accounting device 60 further includes:
the account checking module is used for checking the circulation condition of the virtual currency between the user account and the merchant account by using at least one of the following account checking modes:
the reduction of the virtual currency in the merchant equity account is equal to the increase of the virtual currency in the user equity account;
the reduction of the cash in the merchant asset account is equal to the increase of the cash in the user asset account;
for the merchant equity account, the virtual currency balance at the end of the preset checking period is equal to the value obtained by subtracting the virtual currency deduction amount in the preset checking period from the virtual currency balance at the beginning of the preset checking period and adding the virtual currency increment in the preset checking period;
for the user equity account, the virtual currency balance at the end of the preset checking period is equal to the value obtained by subtracting the virtual currency deduction amount in the preset checking period from the virtual currency balance at the beginning of the preset checking period and adding the virtual currency increment in the preset checking period.
Optionally, the merchant corresponding to the virtual currency has a public equity account and a plurality of merchant sub equity accounts, and each merchant sub equity account corresponds to the user equity account of different users respectively; when the user account corresponding to the virtual currency in the transferring process is a user equity account of the first user, and the user equity account corresponding to the first user is a first merchant sub-equity account of the plurality of merchant sub-equity accounts, the accounting module 63 is specifically configured to:
according to the circulation condition of the virtual currency, simultaneously accounting the user equity account of the first user and the first merchant sub equity account;
or when the virtual amount in the first merchant sub-equity account is zero, simultaneously accounting the user equity account and the public equity account of the first user according to the circulation condition of the virtual currency.
It will be appreciated that the accounting device 60 according to the embodiment of the present application can implement the processes implemented in the embodiment of the method shown in fig. 2 and achieve the same beneficial effects, and will not be described herein again for avoiding repetition.
According to an embodiment of the present application, the present application also provides an electronic device and a readable storage medium.
As shown in fig. 7, there is a block diagram of an electronic device of a billing method of virtual money according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the applications described and/or claimed herein.
As shown in fig. 7, the electronic device includes: one or more processors 701, memory 702, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the electronic device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In other embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple electronic devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 701 is illustrated in fig. 7.
Memory 702 is a non-transitory computer readable storage medium provided by the present application. The memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method for accounting virtual currency provided by the application. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to execute the accounting method of virtual currency provided by the present application.
The memory 702 is used as a non-transitory computer readable storage medium for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the acquisition module 61, the determination module 62, and the accounting module 63 shown in fig. 6) corresponding to the accounting method of virtual currency in the embodiment of the present application. The processor 701 executes various functional applications of the server and data processing, that is, implements the accounting method of the virtual currency in the above-described method embodiment by running non-transitory software programs, instructions, and modules stored in the memory 702.
Memory 702 may include a storage program area that may store an operating system, at least one application program required for functionality, and a storage data area; the storage data area may store data created from the use of the electronic device under billing, and the like. In addition, the memory 702 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 702 may optionally include memory located remotely from processor 701, which may be connected to the billing electronic device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the accounting method of the virtual currency may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected by a bus or otherwise, in fig. 7 by way of example.
The input device 703 may receive entered numerical or character information and generate key signal inputs related to user settings and function control of the electronic device for billing, such as a touch screen, keypad, mouse, trackpad, touchpad, pointer stick, one or more mouse buttons, trackball, joystick, and like input devices. The output device 704 may include a display apparatus, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibration motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device may be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASIC (application specific integrated circuit), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
These computing programs (also referred to as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented in a high-level procedural and/or object-oriented programming language, and/or in assembly/machine language. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and pointing device (e.g., a mouse or trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), and the internet.
The computer system may include a client and a server. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the user account and the merchant account related to the current business scene can be simultaneously checked according to the circulation condition of the virtual currency, so that the tracing and circulation of each piece of virtual currency can be traced, and the high-reliability accounting of the virtual currency is realized.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present application may be performed in parallel, sequentially, or in a different order, provided that the desired results of the disclosed embodiments are achieved, and are not limited herein.
The above embodiments do not limit the scope of the present application. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the scope of the present application.

Claims (10)

1. A method of billing virtual currency, comprising:
obtaining circulation data of virtual currency in a target service; the circulation data comprises circulation event information and circulation amount information;
according to the circulation event information, determining a user account and a merchant account corresponding to the virtual currency in circulation, and determining circulation conditions of the virtual currency between the user account and the merchant account; wherein the circulation event information is related to a service scene;
and according to the circulation condition and the circulation amount information, simultaneously accounting the user account and the merchant account in a duplex accounting mode.
2. The method of claim 1, wherein the billing the user account and the merchant account simultaneously in a duplex billing manner according to the circulation situation and the circulation amount information comprises:
according to the circulation condition, a first account and a second account are analyzed from the user account and the merchant account; the first account is an account needing to be deducted of the amount, and the second account is an account needing to be added of the amount;
determining the value of the amount of circulation according to the circulation amount information;
deducting the monetary value from the first account while adding an equal amount of the monetary value to the second account.
3. The method of claim 1, further comprising:
checking the circulation condition of the virtual currency between the user account and the merchant account by using at least one of the following checking modes:
the reduction of the virtual currency in the merchant equity account is equal to the increase of the virtual currency in the user equity account;
the reduction of the cash in the merchant asset account is equal to the increase of the cash in the user asset account;
for the merchant equity account, the virtual currency balance at the end of the preset checking period is equal to the value obtained by subtracting the virtual currency deduction amount in the preset checking period from the virtual currency balance at the beginning of the preset checking period and adding the virtual currency increment in the preset checking period;
for the user equity account, the virtual currency balance at the end of the preset checking period is equal to the value obtained by subtracting the virtual currency deduction amount in the preset checking period from the virtual currency balance at the beginning of the preset checking period and adding the virtual currency increment in the preset checking period.
4. The method of claim 1, wherein the merchant corresponding to the virtual currency has one public equity account and a plurality of merchant sub equity accounts, each merchant sub equity account corresponding to a user equity account of a different user;
when the user account corresponding to the virtual currency is a user equity account of a first user during the transfer, and the user equity account corresponding to the user equity account of the first user is a first merchant sub-equity account of the plurality of merchant sub-equity accounts, the billing of the user account and the merchant account is performed simultaneously by adopting a duplex billing mode, including:
simultaneously accounting the user equity account of the first user and the first merchant sub equity account in a duplex accounting mode;
or,
and when the virtual currency amount in the first merchant sub-equity account is zero, simultaneously accounting the user equity account and the public equity account of the first user in a duplex accounting mode.
5. A billing device for virtual currency, comprising:
the acquisition module is used for acquiring the circulation data of the virtual currency in the target business; the circulation data comprises circulation event information and circulation amount information;
the determining module is used for determining a user account and a merchant account corresponding to the virtual currency in the process of transferring according to the transfer event information and determining the transfer condition of the virtual currency between the user account and the merchant account; wherein the circulation event information is related to a service scene;
and the billing module is used for billing the user account and the merchant account simultaneously in a duplex billing mode according to the circulation condition and the circulation amount information.
6. The apparatus of claim 5, wherein the billing module comprises:
the analysis unit is used for analyzing a first account and a second account from the user account and the merchant account according to the circulation condition; the first account is an account needing to be deducted of the amount, and the second account is an account needing to be added of the amount;
the determining unit is used for determining the value of the amount of circulation according to the circulation amount information;
and the billing unit is used for deducting the monetary value from the first account and simultaneously adding the monetary value with equal amount in the second account.
7. The apparatus of claim 5, further comprising:
the account checking module is used for checking the circulation condition of the virtual currency between the user account and the merchant account by using at least one of the following account checking modes:
the reduction of the virtual currency in the merchant equity account is equal to the increase of the virtual currency in the user equity account;
the reduction of the cash in the merchant asset account is equal to the increase of the cash in the user asset account;
for the merchant equity account, the virtual currency balance at the end of the preset checking period is equal to the value obtained by subtracting the virtual currency deduction amount in the preset checking period from the virtual currency balance at the beginning of the preset checking period and adding the virtual currency increment in the preset checking period;
for the user equity account, the virtual currency balance at the end of the preset checking period is equal to the value obtained by subtracting the virtual currency deduction amount in the preset checking period from the virtual currency balance at the beginning of the preset checking period and adding the virtual currency increment in the preset checking period.
8. The apparatus of claim 5, wherein the merchant corresponding to the virtual currency has one public equity account and a plurality of merchant sub equity accounts, each merchant sub equity account corresponding to a user equity account of a different user;
when the user account corresponding to the virtual currency in the process of streaming is a user equity account of a first user, and the user equity account corresponding to the first user is a first merchant sub-equity account of the merchant sub-equity accounts, the accounting module is specifically configured to:
simultaneously accounting the user equity account of the first user and the first merchant sub equity account in a duplex accounting mode;
or,
and when the virtual currency amount in the first merchant sub-equity account is zero, simultaneously accounting the user equity account and the public equity account of the first user in a duplex accounting mode.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-4.
10. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-4.
CN202010534966.9A 2020-06-12 2020-06-12 Virtual currency accounting method and device, electronic equipment and readable storage medium Active CN111695886B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010534966.9A CN111695886B (en) 2020-06-12 2020-06-12 Virtual currency accounting method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010534966.9A CN111695886B (en) 2020-06-12 2020-06-12 Virtual currency accounting method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111695886A CN111695886A (en) 2020-09-22
CN111695886B true CN111695886B (en) 2023-08-11

Family

ID=72480715

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010534966.9A Active CN111695886B (en) 2020-06-12 2020-06-12 Virtual currency accounting method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111695886B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112270592A (en) * 2020-11-04 2021-01-26 北京信诺恒升科技有限公司 Prepayment and account period-based accounting method and device and server
CN112561506B (en) * 2020-12-15 2024-03-29 深圳市彬讯科技有限公司 Live broadcast data processing method, system, equipment and medium based on virtual currency
CN112700315B (en) * 2020-12-25 2024-05-14 中国神华国际工程有限公司 Bid guarantee management method and system
CN113409147B (en) * 2021-07-20 2024-06-11 百果园技术(新加坡)有限公司 Account data processing method, device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577570A (en) * 2013-10-31 2014-02-12 北京奇虎科技有限公司 Data recording method for data processing and data processing system
CN103745402A (en) * 2014-01-10 2014-04-23 五八同城信息技术有限公司 Method for managing electronic money with valid period
CN107563881A (en) * 2017-08-04 2018-01-09 阿里巴巴集团控股有限公司 Bookkeeping methods and device, server
CN109242663A (en) * 2018-09-05 2019-01-18 金蝶软件(中国)有限公司 A kind of bookkeeping methods and system based on block chain technology
CN109933593A (en) * 2019-01-28 2019-06-25 阿里巴巴集团控股有限公司 Asset data record method, device and equipment
CN110689417A (en) * 2019-09-23 2020-01-14 天翼电子商务有限公司 Accounting system-based settlement method and system, storage medium and terminal
CN110689331A (en) * 2019-09-25 2020-01-14 重庆邮电大学 Block chain-based digital currency transaction method and system
CN111260471A (en) * 2020-01-15 2020-06-09 深圳乐信软件技术有限公司 Accounting and transaction information processing system, method, apparatus, device and medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160267445A1 (en) * 2015-03-11 2016-09-15 Nelfor S.A. Managing accounts and transactions for real and virtual currencies

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577570A (en) * 2013-10-31 2014-02-12 北京奇虎科技有限公司 Data recording method for data processing and data processing system
CN103745402A (en) * 2014-01-10 2014-04-23 五八同城信息技术有限公司 Method for managing electronic money with valid period
CN107563881A (en) * 2017-08-04 2018-01-09 阿里巴巴集团控股有限公司 Bookkeeping methods and device, server
CN109242663A (en) * 2018-09-05 2019-01-18 金蝶软件(中国)有限公司 A kind of bookkeeping methods and system based on block chain technology
CN109933593A (en) * 2019-01-28 2019-06-25 阿里巴巴集团控股有限公司 Asset data record method, device and equipment
CN110689417A (en) * 2019-09-23 2020-01-14 天翼电子商务有限公司 Accounting system-based settlement method and system, storage medium and terminal
CN110689331A (en) * 2019-09-25 2020-01-14 重庆邮电大学 Block chain-based digital currency transaction method and system
CN111260471A (en) * 2020-01-15 2020-06-09 深圳乐信软件技术有限公司 Accounting and transaction information processing system, method, apparatus, device and medium

Also Published As

Publication number Publication date
CN111695886A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
CN111695886B (en) Virtual currency accounting method and device, electronic equipment and readable storage medium
JP7254120B2 (en) Blockchain payment processing method, device, device and medium
US20220232343A1 (en) Systems and methods for providing mobile proving ground
CN110807649A (en) Invitation reward method and system for financial products
US11144989B1 (en) Customized graphical user interface for managing multiple user accounts
AU2018201228A1 (en) Employee Payroll Information Management
CN110766446A (en) Method and device for sharing invitation activity of financial product
CN111858506B (en) Test data processing method and device, electronic equipment and storage medium
CN111913998B (en) Data processing method, device, equipment and storage medium
CN113641677A (en) Data processing method and device, electronic equipment and storage medium
US20200279308A1 (en) System for High-Speed Billing Transaction Processing on a Processing Cluster
CN112258306B (en) Account information checking method, device, electronic equipment and storage medium
CN111985760A (en) Data content evaluation method and device, electronic equipment and storage medium
WO2020069014A1 (en) Computer system transaction processing
CN110570310B (en) Block chain transfer method and consensus realization method, device, equipment and medium
CN113989001A (en) Virtual asset settlement method, device, electronic equipment and storage medium
CN114219208A (en) Credit granting processing method and device for small and micro enterprises and electronic equipment
CN114154891A (en) Retraining method and retraining device for risk control model
CN113592470A (en) Service processing method and device, electronic equipment and storage medium
CN113657943A (en) Virtual asset allocation system, method, electronic device and storage medium
CN113971007B (en) Information processing method, device, electronic equipment and medium
CN113837593B (en) Virtual data distribution method, device, equipment and storage medium
CN111339408B (en) Information recommendation method and device
CN115658749B (en) Fund product ordering method and device based on directed acyclic graph and electronic equipment
CN111639032B (en) Method and apparatus for testing applications

Legal Events

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