Disclosure of Invention
The embodiment of the invention provides a user consumption data processing method and a server, so that the data processing efficiency, the flexibility and the accuracy of data processing are improved.
In a first aspect, an embodiment of the present invention provides a user consumption data processing method, including: the server acquires a first numerical value corresponding to consumption data of a user;
the server determines the exchanged first transaction commodity information according to the first numerical value, wherein the first transaction commodity information comprises: an identification of the first transaction good and a first share of the first transaction good redeemed according to the first value;
the server updates the account information of the user according to the first transaction commodity information;
the server receives a transaction request message sent by the user, where the transaction request message includes an identifier of the first transaction commodity, an operation type corresponding to the first transaction commodity, and a second share of the first transaction commodity corresponding to the operation type, where the operation type corresponding to the first transaction commodity is: buy or sell;
and the server processes the updated account information of the user according to the transaction request message.
Optionally, the server determines the exchanged first transaction commodity information according to the first numerical value, and includes:
the server determines the attribute parameters of the first numerical value and a numerical value corresponding to each share of the first transaction commodity;
the server determines an identifier of the first transaction commodity according to the attribute parameter of the first numerical value, and determines a first share of the first transaction commodity according to a numerical value corresponding to each share of the first transaction commodity;
wherein the attribute parameters of the first numerical value include: generating an identification of the business of the first value.
Optionally, the updating, by the server, the account information of the user according to the first transaction commodity information includes:
if the account information of the user comprises: the server updates the share of the first transaction commodity held by the user in the account information of the user according to the first share of the first transaction commodity;
if the account information of the user does not include: and if the identifier of the first transaction commodity is obtained, the server adds the identifier of the first transaction commodity in the account information of the user, and determines that the first share of the first transaction commodity is the share of the first transaction commodity held by the user.
Optionally, the processing, by the server, the updated account information of the user according to the transaction request message includes:
if the operation type corresponding to the first transaction commodity is buying, the server allocates the second share of the first transaction commodity to the account of the user so as to update the share of the first transaction commodity held by the user;
and if the operation type corresponding to the first transaction commodity is selling, the server converts the second share of the first transaction commodity into fund information and distributes the fund information to the account of the user so as to update the share of the first transaction commodity held by the user.
Optionally, after the server processes the updated account information of the user according to the transaction request message, the method further includes:
if the server determines that the share of the first transaction commodity held by the user before updating is larger than a first preset value, and the share of the first transaction commodity held by the user after updating is smaller than a second preset value;
the server determines a second numerical value corresponding to the updated share of the first transaction commodity held by the user, and determines second transaction commodity information to be exchanged according to the second numerical value, wherein the second transaction commodity information includes: an identification of the second transaction good and a third share of the second transaction good redeemed according to the second value;
and the server updates the updated account information of the user again according to the second transaction commodity information.
In a second aspect, an embodiment of the present invention provides a server, including: the acquisition module is used for acquiring a first numerical value corresponding to consumption data of a user;
a determining module, configured to determine exchanged first transaction commodity information according to the first numerical value, where the first transaction commodity information includes: an identification of the first transaction good and a first share of the first transaction good redeemed according to the first value;
the updating module is used for updating the account information of the user according to the first transaction commodity information;
a receiving module, configured to receive a transaction request message sent by the user, where the transaction request message includes an identifier of the first transaction commodity, an operation type corresponding to the first transaction commodity, and a second share of the first transaction commodity corresponding to the operation type, and the operation type corresponding to the first transaction commodity is: buy or sell;
and the processing module is used for processing the transaction request message according to the updated account information of the user.
Optionally, the determining module is specifically configured to:
determining a value corresponding to each share of the first transaction commodity and the attribute parameter of the first value;
determining the identification of the first transaction commodity according to the attribute parameters of the first numerical value, and determining a first share of the first transaction commodity according to the numerical value corresponding to each share of the first transaction commodity;
wherein the attribute parameters of the first numerical value include: generating an identification of the business of the first value.
Optionally, the update module is specifically configured to:
if the account information of the user comprises: if the identity of the first transaction commodity is identified, the updating module updates the share of the first transaction commodity held by the user in the account information of the user according to the first share of the first transaction commodity;
if the account information of the user does not include: and if the identity of the first transaction commodity is identified, the updating module adds the identity of the first transaction commodity in the account information of the user and determines that the first share of the first transaction commodity is the share of the first transaction commodity held by the user.
Optionally, the processing module is specifically configured to:
if the operation type corresponding to the first transaction commodity is buying, the processing module allocates the second share of the first transaction commodity to the account of the user, so that the updating module updates the share of the first transaction commodity held by the user;
if the operation type corresponding to the first transaction commodity is selling, the processing module converts the second share of the first transaction commodity into fund information and distributes the fund information to the account of the user, so that the updating module updates the share of the first transaction commodity held by the user.
Optionally, if the determining module determines that the share of the first transaction product held by the user before updating is greater than a first preset value, and the updated share of the first transaction product held by the user is smaller than a second preset value;
the determining module is further configured to determine a second numerical value corresponding to the updated share of the first transaction commodity held by the user, and determine second transaction commodity information to be exchanged according to the second numerical value, where the second transaction commodity information includes: an identification of the second transaction good and a third share of the second transaction good redeemed according to the second value;
and the updating module is further used for updating the updated account information of the user again according to the second transaction commodity information.
In a third aspect, an embodiment of the present invention provides a server, including: a processor, a memory, and a receiver;
the memory for storing executable instructions of the processor;
wherein the processor is configured to:
acquiring a first numerical value corresponding to consumption data of a user;
determining first transaction commodity information for redemption according to the first numerical value, the first transaction commodity information comprising: an identification of the first transaction good and a first share of the first transaction good redeemed according to the first value;
updating the account information of the user according to the first transaction commodity information;
the receiver is configured to receive a transaction request message sent by the user, where the transaction request message includes an identifier of the first transaction commodity, an operation type corresponding to the first transaction commodity, and a second share of the first transaction commodity corresponding to the operation type, where the operation type corresponding to the first transaction commodity is: buy or sell;
the processor is further configured to process the transaction request message according to the updated account information of the user.
Optionally, the processor is specifically configured to:
determining a value corresponding to each share of the first transaction commodity and the attribute parameter of the first value;
determining the identification of the first transaction commodity according to the attribute parameters of the first numerical value, and determining a first share of the first transaction commodity according to the numerical value corresponding to each share of the first transaction commodity;
wherein the attribute parameters of the first numerical value include: generating an identification of the business of the first value.
Optionally, the processor is specifically configured to:
if the account information of the user comprises: the processor updates the share of the first transaction commodity held by the user in the account information of the user according to the first share of the first transaction commodity;
if the account information of the user does not include: and the processor adds the identifier of the first transaction commodity in the account information of the user and determines that the first share of the first transaction commodity is the share of the first transaction commodity held by the user.
Optionally, the processor is specifically configured to:
if the operation type corresponding to the first transaction commodity is buying, the processor allocates the second share of the first transaction commodity to the account of the user so as to update the share of the first transaction commodity held by the user;
and if the operation type corresponding to the first transaction commodity is selling, the processor converts the second share of the first transaction commodity into fund information and distributes the fund information to the account of the user so as to update the share of the first transaction commodity held by the user.
Optionally, if the processor determines that the share of the first transaction product held by the user before updating is greater than a first preset value, and the updated share of the first transaction product held by the user is smaller than a second preset value;
the processor is further configured to:
determining a second numerical value corresponding to the updated share of the first transaction commodity held by the user, and determining converted second transaction commodity information according to the second numerical value, wherein the second transaction commodity information comprises: an identification of the second transaction good and a third share of the second transaction good redeemed according to the second value;
and updating the updated account information of the user again according to the second transaction commodity information.
The embodiment of the invention provides a user consumption data processing method and a server, comprising the following steps: the server acquires a first numerical value corresponding to consumption data of a user; the server determines exchanged first transaction commodity information according to the first numerical value and updates the account information of the user according to the first transaction commodity information; and the server receives the transaction request message sent by the user and processes the updated account information of the user according to the transaction request message. Compared with the manual numerical value rebate mode in the prior art, the user consumption data processing method is higher in data processing efficiency, meanwhile, the server processes the transaction request message sent by the user to achieve buying or selling of the transaction commodity by the user, so that the user consumption data processing method is higher in flexibility, and further, the user consumption data processing method is better in accuracy.
The terms "first," "second," and the like in the description, in the claims, and in the drawings described above, 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 is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, article, or apparatus that comprises a list of steps 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. The term "at least one" as used herein means one or more.
In order to solve the problems that a numerical value rebate method in the prior art is an artificial numerical value rebate method, the method is low in efficiency and lacks flexibility and accuracy, an embodiment of the invention provides a user consumption data processing method and a server, wherein an execution main body of the method is the server, and application scenes of the method are as follows: a user consumes in an enterprise, and generates corresponding user consumption data, fig. 1 is a flowchart of a user consumption data processing method provided in an embodiment of the present invention, and as shown in fig. 1, the method includes the following processes:
step S101: the server acquires a first numerical value corresponding to consumption data of a user;
in the embodiment of the present invention, the numerical value may be a score or a coupon. The first value corresponding to the user's consumption data is determined according to the current redemption standards of the enterprise, such as: and the user consumes in the enterprise A, the corresponding consumption data is 1000 yuan, and then the enterprise determines that the corresponding first numerical value is 10 points according to the 1000 yuan of the consumption data of the user.
The server acquiring a first numerical value corresponding to the consumption data of the user comprises the following steps: a server sends a request message to a terminal in an enterprise, wherein the request message is used for requesting to acquire a first numerical value corresponding to consumption data of a user, and the request message carries a user identifier for identifying the user; and the server receives a response message sent by a terminal in the enterprise, wherein the response message comprises a first numerical value corresponding to the consumption data of the user.
Or,
the server acquiring a first numerical value corresponding to the consumption data of the user comprises the following steps: and directly sending a message to a server by a terminal in the enterprise, wherein the message comprises a first numerical value corresponding to the consumption data of the user.
The communication between the server and the terminals in the enterprise may be a direct communication method or an indirect communication method using intermediate device forwarding. Both the direct communication method and the indirect communication method are performed based on transmission control Protocol/Internet Protocol (TCP/IP).
Step S102: the server determines the exchanged first transaction commodity information according to the first numerical value, wherein the first transaction commodity information comprises: an identification of the first transaction good and a first share of the first transaction good redeemed according to the first value;
the following description is made for an example of step S101, for example: the first transaction item is identified as charge1, and assuming that each share of the first transaction item corresponds to 5 points, the server redeems the first share of the first transaction item for 10 points per 5 points according to the first value 2.
For a business, the server ultimately determines at least one transaction item for which it may determine.
Step S103: the server updates the account information of the user according to the first transaction commodity information;
the account information of the user before updating includes: the account number of the user, the identity and share of each transaction item held by the user.
Step S104: the server receives a transaction request message sent by a user, wherein the transaction request message comprises an identifier of a first transaction commodity, an operation type corresponding to the first transaction commodity and a second share of the first transaction commodity corresponding to the operation type, and the operation type corresponding to the first transaction commodity is as follows: buy or sell;
for example: when the operation type corresponding to the first transaction commodity is buying, buying the second share of the corresponding first transaction commodity as 3, namely, the user buys 3 shares of the first transaction commodity; when the operation type corresponding to the first transaction commodity is sold, the second share of selling the corresponding first transaction commodity is 1, that is, the user sells 1 share of the first transaction commodity.
Step S105: and the server processes the updated account information of the user according to the transaction request message.
And the server updates the share of the first transaction commodity held by the user in the updated account information of the user according to the transaction request message.
The embodiment of the invention provides a user consumption data processing method, which comprises the following steps: the server acquires a first numerical value corresponding to consumption data of a user; the server determines exchanged first transaction commodity information according to the first numerical value and updates the account information of the user according to the first transaction commodity information; and the server receives the transaction request message sent by the user and processes the updated account information of the user according to the transaction request message. Compared with the manual numerical value rebate mode in the prior art, the user consumption data processing method is higher in data processing efficiency, meanwhile, the server processes the transaction request message sent by the user to achieve buying or selling of the transaction commodity by the user, so that the user consumption data processing method has higher flexibility.
Further, fig. 2 is a flowchart of determining information of a first transaction commodity according to an embodiment of the present invention, and as shown in fig. 2, the step S102 specifically includes:
step S1021: the server determines attribute parameters of a first numerical value and a numerical value corresponding to each share of the first transaction commodity;
step S1022: the server determines an identifier of the first transaction commodity according to the attribute parameter of the first numerical value, and determines a first share of the first transaction commodity according to a numerical value corresponding to each share of the first transaction commodity; wherein, the attribute parameter of the first value comprises: an identification of a business of a first value is generated.
For example: the user consumes in enterprise A, the identifier of enterprise A is company1, the corresponding consumption data is 1000 yuan, the enterprise determines the corresponding first numerical value as 10 points according to the 1000 yuan of the consumption data of the user, the first numerical value corresponding to the consumption data of the user is determined according to the current exchange standard of the enterprise, and the attribute parameters of the first numerical value 10 points include: and generating an identification company1 of the enterprise with the first value, determining the identification of the first transaction commodity as charge1 by the server according to the identification company1, and assuming that each share of the first transaction commodity corresponds to 5 points, converting the first share of the first transaction commodity into 10 points/5 points by the server according to the first value, wherein the 10 points/5 points are 2.
In the embodiment, the server determines the attribute parameter of the first value and the value corresponding to each share of the first transaction commodity; the identity of the first transaction item and the first share of the first transaction item may be accurately determined.
Further, fig. 3 is a flowchart illustrating that the server updates the account information of the user according to the first transaction commodity information according to an embodiment of the present invention, as shown in fig. 3, the step S103 specifically includes:
step S1031: if the account information of the user comprises: and the server updates the share of the first transaction commodity held by the user in the account information of the user according to the first share of the first transaction commodity.
For example: the account information of the user before updating includes: the identity of the first transaction good held by the user, charge1, and share 30. For example, in Table one: the account number of the user is user1, and the identification and share of the transaction commodity currently held by the user are respectively: charge1 with a share of 30; charge2 with a share of 10; charge3 with a share of 20.
Watch 1
The server updates the account information of the user according to the first transaction commodity information, and the updated account information of the user is as shown in the table two:
watch two
And the updated share of the first transaction commodity held by the user is the sum of the updated share of the first transaction commodity held by the user and the first share.
Step S1032: if the account information of the user does not include: and the server adds the identifier of the first transaction commodity in the account information of the user and determines that the first share of the first transaction commodity is the share of the first transaction commodity held by the user.
For example: the account information of the user before updating does not include: the identity of the first transaction good held by the user, charge1, and the share. For example, in table three: the account number of the user is user1, and the identification and share of the transaction commodity currently held by the user are respectively: charge2 with a share of 10; charge3, fraction 20;
watch III
The server updates the account information of the user according to the first transaction commodity information, and the updated account information of the user is as shown in the following table four:
watch four
It should be noted that, in practice, the server may execute step S1031 or step S1032 instead of executing these two steps at the same time, and there is no order limitation between these two steps.
Optionally, fig. 4 is a flowchart of processing, by the server according to the transaction request message, the updated account information of the user according to an embodiment of the present invention, as shown in fig. 4, where step S105 specifically includes:
step S1051: if the operation type corresponding to the first transaction commodity is buying, the server allocates the first transaction commodity with the second share to the account of the user so as to update the share of the first transaction commodity held by the user;
step S1052: and if the operation type corresponding to the first transaction commodity is selling, the server converts the second share of the first transaction commodity into fund information and distributes the fund information to the account of the user so as to update the share of the first transaction commodity held by the user.
Specifically, for the case in table four, assuming that the operation type corresponding to the first transaction product is buy and the second share is 3, the server allocates 3 shares of the first transaction product to the account of the user to update the share of the first transaction product held by the user, specifically see table five:
watch five
Wherein, the share of the first trade commodity charge1 held by the updated user is 5 according to the sum of the share 2 and the second share 3 of the first trade commodity charge1 held by the user before updating.
For the case in table four, assuming that the operation type corresponding to the first transaction commodity is sold, and the second share is 1, the server exchanges the first transaction commodity of the second share 1 as the fund information, and allocates the fund information to the account of the user to update the shares of the first transaction commodity held by the user, and assuming that the current fund exchange standard of the enterprise is to exchange 10 m cash per share, the second share 1 can exchange 10 m cash, accordingly, wherein, according to the difference between share 2 of the first transaction commodity charge1 held by the user before updating and the second share 1, the share of the first transaction commodity charge1 held by the user after updating is 1, see table six specifically:
watch six
In the embodiment, the server can timely and accurately update the account information of the user according to the transaction request message of the user, so that the accuracy of the whole user consumption data processing method is improved.
It should be noted that, in practice, the server may execute step S1051 or step S1052 instead of the two steps at the same time, and there is no order limitation between the two steps.
Further, after step S105, the user consumption data processing method further includes:
if the server determines that the share of the first transaction commodity held by the user before updating is larger than a first preset value, and the share of the first transaction commodity held by the user after updating is smaller than a second preset value; the server determines a second numerical value corresponding to the updated share of the first transaction commodity held by the user, and determines second transaction commodity information exchanged according to the second numerical value, wherein the second transaction commodity information comprises: an identification of a second transaction good and a third share of the second transaction good redeemed according to the second value; and the server updates the updated account information of the user again according to the second transaction commodity information.
The first preset value is greater than the second preset value, and both the first preset value and the second preset value are set by the server according to actual conditions, such as: the server sets a first preset value as follows: when the server generates the first transaction commodity for the first time, 90% of the total share of the first transaction commodity; the server sets a second preset value as follows: the total share of the first transaction commodity is 40%, once the server determines that the share of the first transaction commodity held by the user before updating is greater than a first preset value and the share of the first transaction commodity held by the user after updating is smaller than a second preset value, the user first determines the share of the first transaction commodity held by the user after updating and then determines a second numerical value corresponding to the share, wherein the second numerical value is usually different from the first numerical value for two reasons, and first, the share of the first transaction commodity held by the user is changed in the transaction process of the first transaction commodity by the user; second, as the exchange standards of enterprises change and the market fluctuates, the value parameters of the numerical values, which are determined by how much cash the numerical values can be exchanged, also change.
After the server determines the second value, the server determines the exchanged second transaction commodity information according to the second value, wherein the second transaction commodity information is new transaction commodity information, and the method comprises the following steps: an identification of the second transaction good and a third share of the second transaction good redeemed according to the second value; and the server updates the updated account information of the user again according to the second transaction commodity information. Then, the server may continue to acquire the value corresponding to the consumption data of the user, and then perform a process similar to steps S102 to S105; alternatively, the server may perform a process similar to steps S104 to S105.
It should be noted that the above process is actually a process in which the server makes the first transaction commodity exit the transaction platform and the second transaction commodity go to the transaction platform.
In this embodiment, the server may determine whether the share of the first transaction commodity held by the user before the update is greater than a first preset value, and determine whether the share of the first transaction commodity held by the user after the update is smaller than a second preset value, and if the two conditions are met, the server determines the second numerical value, and determines the exchanged second transaction commodity information according to the second numerical value, instead of continuously processing the transaction of the user on the first transaction commodity, so that flexibility of data processing is improved, and accuracy of data processing is improved.
Fig. 5 is a schematic structural diagram of a server according to an embodiment of the present invention, and as shown in fig. 5, the server includes: an obtaining module 51, configured to obtain a first numerical value corresponding to consumption data of a user; a determining module 52, configured to determine, according to the first numerical value, first transaction commodity information to be redeemed, where the first transaction commodity information includes: an identification of the first transaction good and a first share of the first transaction good redeemed according to the first value; the updating module 53 is configured to update the account information of the user according to the first transaction commodity information; a receiving module 54, configured to receive a transaction request message sent by the user, where the transaction request message includes an identifier of the first transaction product, an operation type corresponding to the first transaction product, and a second share of the first transaction product corresponding to the operation type, where the operation type corresponding to the first transaction product is: buy or sell; and the processing module 55 is configured to process the transaction request message according to the updated account information of the user.
The server of this embodiment may be configured to execute the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Optionally, the determining module 52 is specifically configured to: determining a value corresponding to each share of the first transaction commodity and the attribute parameter of the first value; determining the identification of the first transaction commodity according to the attribute parameters of the first numerical value, and determining a first share of the first transaction commodity according to the numerical value corresponding to each share of the first transaction commodity; wherein the attribute parameters of the first numerical value include: generating an identification of the business of the first value.
The determining module may be configured to execute the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Optionally, the updating module 53 is specifically configured to: if the account information of the user comprises: if the identity of the first transaction commodity is identified, the updating module updates the share of the first transaction commodity held by the user in the account information of the user according to the first share of the first transaction commodity;
if the account information of the user does not include: and if the identity of the first transaction commodity is identified, the updating module adds the identity of the first transaction commodity in the account information of the user and determines that the first share of the first transaction commodity is the share of the first transaction commodity held by the user.
The updating module may be configured to execute the technical solution of the method embodiment shown in fig. 3, and the implementation principle and the technical effect are similar, which are not described herein again.
Optionally, the processing module 55 is specifically configured to: if the operation type corresponding to the first transaction commodity is buying, the processing module allocates the second share of the first transaction commodity to the account of the user, so that the updating module updates the share of the first transaction commodity held by the user; if the operation type corresponding to the first transaction commodity is selling, the processing module converts the second share of the first transaction commodity into fund information and distributes the fund information to the account of the user, so that the updating module updates the share of the first transaction commodity held by the user.
The processing module may be configured to execute the technical solution of the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, if the determining module 52 determines that the share of the first transaction product held by the user before the update is greater than a first preset value, and the updated share of the first transaction product held by the user is smaller than a second preset value;
the determining module 52 is further configured to determine a second numerical value corresponding to the updated share of the first transaction commodity held by the user, and determine second transaction commodity information to be exchanged according to the second numerical value, where the second transaction commodity information includes: an identification of the second transaction good and a third share of the second transaction good redeemed according to the second value;
the updating module 53 is further configured to update the updated account information of the user again according to the second transaction commodity information.
The determining module and the updating module may be used in the corresponding method steps after step S105, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 6 is a schematic structural diagram of a server according to another embodiment of the present invention, and as shown in fig. 6, the server includes: a processor 61, a memory 62 and a receiver 63; the memory 62 is used for storing executable instructions of the processor;
wherein the processor 61 is configured to:
acquiring a first numerical value corresponding to consumption data of a user;
determining first transaction commodity information for redemption according to the first numerical value, the first transaction commodity information comprising: an identification of the first transaction good and a first share of the first transaction good redeemed according to the first value;
updating the account information of the user according to the first transaction commodity information;
the receiver 63 is configured to receive a transaction request message sent by the user, where the transaction request message includes an identifier of the first transaction product, an operation type corresponding to the first transaction product, and a second share of the first transaction product corresponding to the operation type, where the operation type corresponding to the first transaction product is: buy or sell;
the processor 62 is further configured to process the transaction request message according to the updated account information of the user.
The server of this embodiment may be configured to execute the technical solution of the method embodiment shown in fig. 1, and the implementation principle and the technical effect are similar, which are not described herein again.
Optionally, the processor 62 is specifically configured to: determining a value corresponding to each share of the first transaction commodity and the attribute parameter of the first value; determining the identification of the first transaction commodity according to the attribute parameters of the first numerical value, and determining a first share of the first transaction commodity according to the numerical value corresponding to each share of the first transaction commodity; wherein the attribute parameters of the first numerical value include: generating an identification of the business of the first value.
The processor may be configured to execute the technical solution of the method embodiment shown in fig. 2, and the implementation principle and the technical effect are similar, which are not described herein again.
Optionally, the processor 62 is specifically configured to: if the account information of the user comprises: the processor updates the share of the first transaction commodity held by the user in the account information of the user according to the first share of the first transaction commodity;
if the account information of the user does not include: and the processor adds the identifier of the first transaction commodity in the account information of the user and determines that the first share of the first transaction commodity is the share of the first transaction commodity held by the user.
The processor may be configured to execute the technical solution of the method embodiment shown in fig. 3, and the implementation principle and the technical effect are similar, which are not described herein again.
Optionally, the processor 62 is specifically configured to: if the operation type corresponding to the first transaction commodity is buying, the processor allocates the second share of the first transaction commodity to the account of the user so as to update the share of the first transaction commodity held by the user;
and if the operation type corresponding to the first transaction commodity is selling, the processor converts the second share of the first transaction commodity into fund information and distributes the fund information to the account of the user so as to update the share of the first transaction commodity held by the user.
The processor may be configured to execute the technical solution of the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
Further, if the processor 62 determines that the share of the first transaction product held by the user before updating is greater than a first preset value, and the updated share of the first transaction product held by the user is smaller than a second preset value;
the processor 62 is further configured to:
determining a second numerical value corresponding to the updated share of the first transaction commodity held by the user, and determining converted second transaction commodity information according to the second numerical value, wherein the second transaction commodity information comprises: an identification of the second transaction good and a third share of the second transaction good redeemed according to the second value;
and updating the updated account information of the user again according to the second transaction commodity information.
The processor may be used in the corresponding method steps after step S105, and the implementation principle and technical effect are similar, which are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described device embodiments are merely illustrative, and for example, the division of the units is only one logical functional division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
It is obvious to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be performed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to perform all or part of the above described functions. For the specific working process of the device described above, reference may be made to the corresponding process in the foregoing method embodiment, which is not described herein again.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.