CN106530054A - Method and device for sharing service data, and electronic equipment - Google Patents
Method and device for sharing service data, and electronic equipment Download PDFInfo
- Publication number
- CN106530054A CN106530054A CN201611019557.5A CN201611019557A CN106530054A CN 106530054 A CN106530054 A CN 106530054A CN 201611019557 A CN201611019557 A CN 201611019557A CN 106530054 A CN106530054 A CN 106530054A
- Authority
- CN
- China
- Prior art keywords
- service
- sharing
- user
- instruction
- duration
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 73
- 238000012545 processing Methods 0.000 claims description 16
- 230000008569 process Effects 0.000 description 19
- 238000012797 qualification Methods 0.000 description 6
- 238000012546 transfer Methods 0.000 description 6
- 230000009286 beneficial effect Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 230000007717 exclusion Effects 0.000 description 2
- 238000003672 processing method Methods 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
- G06Q30/0633—Lists, e.g. purchase orders, compilation or processing
- G06Q30/0635—Processing of requisition or of purchase orders
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Development Economics (AREA)
- Economics (AREA)
- Marketing (AREA)
- Strategic Management (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a method and a device for sharing service data, and electronic equipment. The method comprises steps: a sharing instruction sent by a first user and pointing to a second user is acquired, wherein the sharing instruction comprises a second user identity and service data; according to the sharing instruction, a first sharing order is built for the first user, wherein the first sharing order comprises the second user identity and the service data; and the second user is determined according to the second user identity, and a second sharing order associated with the first sharing order is built for the second user according to the sharing instruction, wherein the second sharing order comprises a first user identity and the service data. The fact that service sharing is realized in an order cancelling mode is not needed, and stable operation of a backstage system can be effectively ensured.
Description
Technical Field
The present invention relates to the field of data sharing technologies, and in particular, to a method and an apparatus for sharing service data, and an electronic device.
Background
The member service is a service opened by enterprises for users, and the users can enjoy partial privileged service by purchasing members; the enterprise can achieve the purpose of keeping good contact between the enterprise and the client through member service, and can enable the client to repeatedly consume, improve the loyalty of the client and realize the increase of the performance of the enterprise.
The existing method for canceling the order is adopted for the repayment of the member service, the order of the repatter is canceled by modifying the database, and then an order is newly built for the donor to finish the repayment. For example, user A purchases a member service, at which point a purchase order is generated; and then if the user A submits the member service to the user B, the background system cancels the purchase order of the user A at the moment, and then creates an order for the user B to finish the submission.
In the process of implementing the invention, the inventor finds that at least the following problems exist in the related art:
the online environment code can only be modified frequently by adopting the mode of transferring without order, which causes great risk to the stability of the system. This approach does not account for the relationship between two members, nor does the upper bound on referrals and gifts be controlled in the system. Meanwhile, the member service generally has time attribute (such as 12 months), the order content in the order canceling mode cannot be split, namely, the repayment can only be carried out on the content of the whole order, and the flexibility is poor.
The information disclosed in this background section is only for enhancement of understanding of the general background of the invention and should not be taken as an acknowledgement or any form of suggestion that this information forms the prior art already known to a person skilled in the art.
Disclosure of Invention
The invention aims to provide a method, a device and electronic equipment for sharing service data, so as to overcome the defect of poor system stability caused by modifying an online environment code in the conventional gifting service.
The method for sharing service data provided by the embodiment of the invention comprises the following steps: acquiring a sharing instruction which is sent by a first user and points to a second user, wherein the sharing instruction comprises a second user identifier and service data; creating a first sharing order for the first user according to the sharing instruction, wherein the first sharing order comprises the second user identification and the service data; determining the second user according to the second user identification, and creating a second sharing order associated with the first sharing order for the second user according to the sharing instruction; the second share order includes the first user identification of the first user and the service data.
In a possible implementation manner, before the obtaining of the sharing instruction sent by the first user and directed to the second user, the method further includes: acquiring a service opening instruction sent by a first user, wherein the service opening instruction comprises service data and service request duration; when the service opening instruction is legal, distributing corresponding service data and total service duration to the first user according to the service opening instruction, wherein the total service duration corresponds to the service request duration; and creating an opening service order for the first user according to the opening service instruction, wherein the opening service order comprises service data, total service duration and service starting time, and the service starting time is the time for acquiring the opening service instruction.
In a possible implementation manner, the sharing instruction further includes an effective service duration, where the effective service duration is used to determine a duration that the service data can be used; when the sharing instruction comprises effective service time length, the first sharing order further comprises the effective service time length, and the second sharing order further comprises the effective service time length.
In a possible implementation manner, the effective service duration is not greater than the remaining service duration of the first user, and the remaining service duration is the remaining sharable service duration of the first user at the current time node.
In a possible implementation manner, after the obtaining of the sharing instruction sent by the first user and directed to the second user, the method further includes: adding one to the sharing times of the first user according to the sharing instruction, wherein the sharing times are used for recording the times of the first user sharing the service data; adding one to the shared times of the second user according to the sharing instruction, wherein the shared times are used for recording the times that the second user receives the service data shared by other users; and when the sharing times do not exceed a first preset threshold value and the shared times do not exceed a second preset threshold value, creating the first sharing order and the second sharing order.
To achieve the above object, in yet another aspect, an embodiment of the present invention further provides an apparatus for sharing service data, including: the first obtaining module is used for obtaining a sharing instruction which is sent by a first user and points to a second user, and the sharing instruction comprises a second user identifier and service data; a first creating module, configured to create a first share order for the first user according to the sharing instruction, where the first share order includes the second user identifier and the service data; the second creating module is used for determining the second user according to the second user identifier and creating a second sharing order associated with the first sharing order for the second user according to the sharing instruction; the second share order includes the first user identification of the first user and the service data.
In one possible implementation, the apparatus further includes: the system comprises a second acquisition module, a distribution module and a third creation module; before the first obtaining module obtains a sharing instruction which is sent by a first user and points to a second user, the second obtaining module is used for obtaining a service opening instruction which is sent by the first user and comprises service data and service request duration; the distribution module is used for distributing corresponding service data and total service duration to the first user according to the service opening instruction when the service opening instruction is legal, wherein the total service duration corresponds to the service request duration; the third creating module is configured to create an opening service order for the first user according to the opening service instruction, where the opening service order includes service data, a total service duration, and a service start time, and the service start time is a time when the opening service instruction is obtained.
In a possible implementation manner, the sharing instruction further includes an effective service duration, where the effective service duration is used to determine a duration that the service data can be used; when the sharing instruction comprises effective service time length, the first sharing order further comprises the effective service time length, and the second sharing order further comprises the effective service time length.
In a possible implementation manner, the effective service duration is not greater than the remaining service duration of the first user, and the remaining service duration is the remaining sharable service duration of the first user at the current time node.
In one possible implementation, the apparatus further includes: a first processing module and a second processing module; after the first obtaining module obtains a sharing instruction which is sent by a first user and points to a second user, the first processing module is used for adding one to the sharing times of the first user according to the sharing instruction, and the sharing times are used for recording the times of the first user sharing the service data; the second processing module is used for adding one to the shared times of the second user according to the sharing instruction, wherein the shared times are used for recording the times that the second user receives the service data shared by other users; when the sharing times do not exceed a first preset threshold and the shared times do not exceed a second preset threshold, the first creating module and the second creating module respectively create the first sharing order and the second sharing order.
To achieve the above object, according to another aspect, an embodiment of the present invention provides an electronic device, including: 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 cause the at least one processor to perform the method of the above aspects.
To achieve the above object, in yet another aspect, the present application provides a non-transitory computer-readable storage medium storing computer-executable instructions for performing the method according to the above aspects.
To achieve the above object, in a further aspect, the embodiments of the present invention provide a computer program product including a computer program stored on a non-transitory computer-readable storage medium, the computer program including program instructions which, when executed by a computer, cause the computer to perform the method of the above aspects.
According to the method, the device and the electronic equipment for sharing the service data, provided by the embodiment of the invention, the sharing process and the sharing result of the service data are recorded by respectively creating the first sharing order and the second sharing order for the first user and the second user; the method does not need to cancel the order to realize service sharing, namely, no online environment code of the background system is deleted, so that the stable operation of the background system can be effectively ensured. Whether the first user is qualified to share the service data can be determined by creating the open service order, and meanwhile, the remaining service duration of the first user can be calculated conveniently at a later time. The service duration needing to be shared by the first user is accurately determined by adding the effective service duration in the sharing instruction, so that diversification of service data sharing is realized. The number of sharing orders can be limited by limiting the sharing times, and the system stability can also be improved; meanwhile, partial illegal operation of illegal users can be avoided.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
One or more embodiments are illustrated by way of example in the accompanying drawings, which correspond to the figures in which like reference numerals refer to similar elements and which are not to scale unless otherwise specified.
FIG. 1 is a flowchart illustrating a method for sharing service data according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for opening a service process in an embodiment of the present invention;
FIG. 3 is a flowchart illustrating a method for updating sharing times according to an embodiment of the present invention;
FIG. 4 is a first block diagram of an apparatus for sharing service data according to an embodiment of the present invention;
FIG. 5 is a second block diagram of an apparatus for sharing service data according to an embodiment of the present invention;
FIG. 6 is a third block diagram of an apparatus for sharing service data according to an embodiment of the present invention;
fig. 7 is a block diagram of an electronic device that performs a method for sharing service data according to an embodiment of the invention.
Detailed Description
The following detailed description of the present invention is provided in conjunction with the accompanying drawings, but it should be understood that the scope of the present invention is not limited to the specific embodiments.
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present invention. It will be understood by those skilled in the art that the present invention may be practiced without some of these specific details. In some instances, methods, means, elements well known to those skilled in the art have not been described in detail so as not to obscure the present invention.
Throughout the specification and claims, unless explicitly stated otherwise, the word "comprise", or variations such as "comprises" or "comprising", will be understood to imply the inclusion of a stated element or component but not the exclusion of any other element or component.
According to an embodiment of the present invention, a method for sharing service data is provided, which is executed by an electronic device, and fig. 1 is a flowchart of the method, which specifically includes steps 101-103.
Step 101: and acquiring a sharing instruction which is sent by the first user and points to the second user, wherein the sharing instruction comprises a second user identifier and service data.
In the embodiment of the invention, when the first user needs to share the service data with the second user, the first user sends the sharing instruction to the server. The service data is used for indicating services which need to be shared, such as member services and the like. The first user and the second user are two users capable of using the service data, and the first user is a user who has opened a service corresponding to the service data. For example, the service data is a member service set by enterprise a, both user a and user b are users of enterprise a, and user a opens the member service of enterprise a, then user a may be a first user at this time, and user b may be a second user.
It should be noted that the sharing instruction is used for sharing the service data, and there may be a plurality of sharing situations according to the setting of the sharing rule by the server. For example, the sharing instruction may be an instruction for sharing service data, that is, after the first user sends the sharing instruction directed to the second user, the first user and the second user may use the service data at the same time. Or, the sharing instruction is an instruction for rewarding the service data, that is, after the first user sends the sharing instruction directed to the second user, the first user cannot continue to use the service data, and the second user can use the service data. Or, the sharing instruction includes an effective service duration, where the effective service duration is used to determine a duration that the service data can be used, and at this time, if the first user only shares the service data of a part of the duration, even if the sharing instruction is an instruction for transferring the service data, the first user and the second user can enjoy the service data at the same time after the sharing process is performed, and only the duration for using the service data changes; the sharing instruction includes the effective service duration in detail in other embodiments.
Step 102: and creating a first sharing order for the first user according to the sharing instruction, wherein the first sharing order comprises a second user identification and service data.
In the embodiment of the present invention, after receiving the sharing instruction, the system determines whether the sharing instruction is legal, and continues to step 102 when the sharing instruction is legal, that is, creates the first sharing order. The first sharing order is used for recording a sharing object of the service data for the first user, namely the second user. For example, the sharing instruction is an instruction for transferring member services, that is, the first user transfers the member services activated by the first user to the second user, and at this time, the background system creates an order for transferring the member services for the first user, that is, a first sharing order; and then if the first user inquires the consumption condition of the member service, the system server can determine the gift transferring process of the member service according to the first sharing order, and further show the detailed gift transferring process of the member service to the first user.
Step 103: determining a second user according to the second user identification, and creating a second sharing order associated with the first sharing order for the second user according to the sharing instruction; the second share order includes the first user identification and the service data of the first user.
In the embodiment of the present invention, after the sharing instruction is obtained, a second user to which the sharing instruction points is determined according to a second user identifier in the sharing instruction, and then a background system creates a second sharing order for the second user according to the sharing instruction, where the second sharing order is associated with the first sharing order created in step 102; the second share order is used for recording a shared object of the service data for the second user, namely the first user. For example, the sharing instruction is an instruction for transferring member services, that is, the first user transfers the member services opened by the first user to the second user, at this time, the background system creates an order for transferring the member services for the first user, that is, a first sharing order, and creates an order for obtaining the member services for the second user, that is, a second sharing order; and then if the second user inquires the gift obtaining condition of the member service, the system server can determine the gift obtaining process of the member service according to the second share order, and further show the detailed gift obtaining process of the member service to the second user.
It should be noted that, the steps 102 and 103 do not limit the execution sequence, as long as the first share order and the second share order associated with each other are created. Meanwhile, in the embodiment of the present invention, the first share order and the second share order are directional orders, and the correlation therebetween is also a directional correlation, that is, the first share order and the second share order are both orders from the first user to the second user, and the correlation therebetween is that the first share order points to the second share order. The background system can determine a sharing path of the service data according to the first sharing order and the second sharing order, the correctness of the sharing path of the service data can be further determined by setting the directivity of the relevance between the first sharing order and the second sharing order, and the orderliness of a large number of orders can be ensured along with the increase of the sharing orders.
According to the method for sharing the service data, provided by the embodiment of the invention, the sharing process and result of the service data are recorded by respectively creating the first sharing order and the second sharing order for the first user and the second user; the method does not need to cancel the order to realize service sharing, namely, no online environment code of the background system is deleted, so that the stable operation of the background system can be effectively ensured.
Another embodiment of the present invention provides a method for sharing service data, which includes steps 101 and 103 shown in fig. 1, and the implementation principle and beneficial effects thereof refer to the embodiment shown in fig. 1. In addition, in this embodiment, before obtaining the sharing instruction, which is sent by the first user and is directed to the second user, in step 101, the method further includes a service provisioning process, specifically referring to fig. 2, where the service provisioning process includes: step 201-.
Step 201: the method comprises the steps of obtaining a service opening instruction sent by a first user, wherein the service opening instruction comprises service data and service request duration.
In the embodiment of the present invention, the first user may share the service data to other users (e.g., the second user) only when the first user has the qualification of sharing the service data. Specifically, the first user can open the service data by himself to acquire the qualification of sharing the service data; or obtaining the qualification of sharing the service data by obtaining the service data shared by other users (such as a third user) or obtaining the qualification of sharing the service data by obtaining the service data given by the background system. That is, the first user can open corresponding service data, such as opening member services, through the above steps 201 and 203.
Specifically, the service provisioning instruction is used to provision corresponding service data and request for provisioning a service duration of the service data. For example, the first user requests to open the member service for 12 months by the service opening instruction, at this time, the service data is the member service, and the service request duration is 12 months.
Step 202: and when the service opening instruction is legal, distributing corresponding service data and total service duration to the first user according to the service opening instruction, wherein the total service duration corresponds to the service requesting duration.
Specifically, whether the service opening instruction is legal or not can be determined according to whether the payment is successful or not, the service opening instruction is legal after the payment is successful, the service data is opened for the first user, and the corresponding total service duration is distributed. As described above, the first user requests to open the 12-month membership service through the opening service instruction, and allocates the 12-month membership service to the first user after the payment of the first user is successful, where the total service duration is 12 months.
Step 203: and creating an opening service order for the first user according to the opening service instruction, wherein the opening service order comprises service data, total service duration and service starting time, and the service starting time is the time for obtaining the opening service instruction.
In the embodiment of the present invention, the service order is opened for recording a process of opening the relevant service data by the first user, and on one hand, whether the first user has a qualification for sharing the service data or not can be determined by the service order, and on the other hand, the remaining service duration of the first user can be determined. For example, the first user opens a member service of 12 months on day 11/1 in 2016, i.e., the service start time is day 11/1 in 2016; after one month, that is, when the current time is 2016, 12, 1, since the user has used one month of service data, the remaining service duration of the first user using the service data at this time is 11 months. According to the embodiment of the invention, whether the first user has the qualification of sharing the service data can be determined by opening the service order, and meanwhile, the remaining service duration of the first user can be conveniently calculated later.
Another embodiment of the present invention provides a method for sharing service data, which includes steps 101 and 103 shown in fig. 1, and the implementation principle and beneficial effects thereof refer to the embodiment shown in fig. 1. In addition, in the embodiment of the present invention, the sharing instruction further includes an effective service duration, and the effective service duration is used to determine a duration in which the service data can be used. For example, the first user needs to transfer member services for 3 months to the second user, at this time, the sharing instruction sent by the first user includes the second user identifier, the service data (i.e., the member services) and the effective service duration (i.e., 3 months), and after the transfer is successful, the second user adds the member services for three months. Meanwhile, when the sharing instruction comprises the effective service duration, the first sharing order further comprises the effective service duration, and the second sharing order further comprises the effective service duration.
In the existing service sharing method, because an order canceling mode is adopted, the whole duration can only be given to other users; in the embodiment of the invention, because the mode of respectively creating the orders for the two users is adopted, the service duration needing to be shared by the first user can be accurately determined by adding the effective service duration in the sharing instruction, so that the diversification of service data sharing is realized, and the requirements of the users can be better met.
The effective service duration is not greater than the remaining service duration of the first user, and the remaining service duration is the remaining sharable service duration of the first user at the current time node. For example, the first user opens a member service of 12 months on 1/11/2016, and the background system presents the member service of the first user for two months, that is, the first user may have a member service of 14 months in total; if the first user sends out a member service for transferring to the second user for 3 months in 2016, 12, 1, the background system first determines the remaining service duration owned by the first user at the current time: since 2016 is 1 month apart from 11, 1, month, the remaining service duration owned by the first user at this time is 13 months; at this time, the effective service duration (i.e., 3 months) is not greater than the remaining service duration (13 months), and at this time, the process of sharing the member service may be performed. If the effective service duration is longer than the remaining service duration, the effective service duration does not meet the system requirement, so the process of sharing the data service is not executed, namely the sharing fails.
Another embodiment of the present invention provides a method for sharing service data, which includes steps 101 and 103 shown in fig. 1, and the implementation principle and beneficial effects thereof refer to the embodiment shown in fig. 1. In addition, in this embodiment, after the step 101 acquires the sharing instruction, which is sent by the first user and directed to the second user, the process of updating the sharing times is further included, specifically referring to fig. 3, where the process of updating the sharing times includes: step 301-.
Step 301: and adding one to the sharing times of the first user according to the sharing instruction, wherein the sharing times are used for recording the times of the first user sharing the service data.
Step 302: and adding one for the shared times of the second user according to the sharing instruction, wherein the shared times are used for recording the times that the second user receives the service data shared by other users.
In the embodiment of the invention, the sharing times are used for recording the times of executing the sharing service data, and the shared times are used for recording the times of acquiring the sharing service data. For example, if the first user transfers the member service to the second user, the sharing times of the first user are the transfer times, and the shared times of the second user are the gift-obtaining times.
Step 303: and when the sharing times do not exceed a first preset threshold value and the shared times do not exceed a second preset threshold value, creating a first sharing order and a second sharing order.
In the embodiment of the invention, the sharing times and the shared times are set to be two same or different preset thresholds, so that the sharing times or the shared times can be limited, and the same user is prevented from excessively executing the operation of sharing service data or receiving the sharing service data and the like. The number of sharing orders can be limited by limiting the sharing times, and the system stability can also be improved; meanwhile, partial illegal operation of illegal users can be avoided. For example, an illegal user registers a plurality of users at the same time, and after the plurality of users acquire the member service given by the system, the member service given by the system is given to the same user a, so that the user a can obtain the member service with longer service duration for no charge; and the illegal operation can be limited to a certain extent by setting the number of times of being shared.
According to the method for sharing the service data, provided by the embodiment of the invention, the sharing process and result of the service data are recorded by respectively creating the first sharing order and the second sharing order for the first user and the second user; the method does not need to cancel the order to realize service sharing, namely, no online environment code of the background system is deleted, so that the stable operation of the background system can be effectively ensured. Whether the first user is qualified to share the service data can be determined by creating the open service order, and meanwhile, the remaining service duration of the first user can be calculated conveniently at a later time. The service duration needing to be shared by the first user is accurately determined by adding the effective service duration in the sharing instruction, so that diversification of service data sharing is realized. The number of sharing orders can be limited by limiting the sharing times, and the system stability can also be improved; meanwhile, partial illegal operation of illegal users can be avoided.
The above describes a method flow for sharing service data, and the method can also be implemented by a corresponding apparatus, and the structure and function of the apparatus are described in detail below.
Referring to fig. 4, an apparatus for sharing service data according to an embodiment of the present invention includes: a first obtaining module 41, a first creating module 42 and a second creating module 43.
The first obtaining module 41 is configured to obtain a sharing instruction, which is sent by a first user and is directed to a second user, where the sharing instruction includes a second user identifier and service data.
The first creating module 42 is configured to create a first share order for the first user according to the sharing instruction, where the first share order includes the second user identifier and the service data.
The second creating module 43 is configured to determine a second user according to the second user identifier, and create a second share order associated with the first share order for the second user according to the sharing instruction; the second share order includes the first user identification and the service data of the first user.
In one possible implementation, referring to fig. 5, the apparatus further includes: a second acquisition module 44, an assignment module 45, and a third creation module 46.
Before the first obtaining module 41 obtains the sharing instruction pointing to the second user and sent by the first user, the second obtaining module 44 is configured to obtain a service opening instruction sent by the first user, where the service opening instruction includes service data and a service duration request.
The allocating module 45 is configured to, when the service provisioning instruction is legal, allocate corresponding service data and total service duration to the first user according to the service provisioning instruction, where the total service duration corresponds to the requested service duration.
The third creating module 46 is configured to create an opening service order for the first user according to the opening service instruction, where the opening service order includes service data, a total service duration, and a service start time, and the service start time is a time when the opening service instruction is obtained.
In a possible implementation manner, the sharing instruction further includes an effective service duration, and the effective service duration is used for determining a duration that the service data can be used; when the sharing instruction comprises the effective service duration, the first sharing order further comprises the effective service duration, and the second sharing order further comprises the effective service duration.
In a possible implementation manner, the effective service duration is not greater than the remaining service duration of the first user, and the remaining service duration is the remaining sharable service duration of the first user at the current time node.
In one possible implementation, referring to fig. 6, the apparatus further includes: a first processing module 47 and a second processing module 48.
After the first obtaining module 41 obtains the sharing instruction, which is sent by the first user and points to the second user, the first processing module 47 is configured to add one to the sharing times of the first user according to the sharing instruction, where the sharing times is used to record the times of the first user sharing the service data.
The second processing module 48 is configured to add one to the shared times of the second user according to the sharing instruction, where the shared times are used to record the times that the second user receives the service data shared by other users.
When the sharing frequency does not exceed the first preset threshold and the shared frequency does not exceed the second preset threshold, the first creating module 42 and the second creating module 43 create the first shared order and the second shared order, respectively.
According to the device for sharing service data provided by the embodiment of the invention, the sharing process and result of the service data are recorded by respectively creating the first sharing order and the second sharing order for the first user and the second user; the method does not need to cancel the order to realize service sharing, namely, no online environment code of the background system is deleted, so that the stable operation of the background system can be effectively ensured. Whether the first user is qualified to share the service data can be determined by creating the open service order, and meanwhile, the remaining service duration of the first user can be calculated conveniently at a later time. The service duration needing to be shared by the first user is accurately determined by adding the effective service duration in the sharing instruction, so that diversification of service data sharing is realized. The number of sharing orders can be limited by limiting the sharing times, and the system stability can also be improved; meanwhile, partial illegal operation of illegal users can be avoided.
Embodiments of the present application provide a non-volatile computer storage medium, where computer-executable instructions are stored, and the computer-executable instructions may execute the processing method in any of the above method embodiments.
Fig. 7 is a schematic hardware structure diagram of an electronic device according to a method for sharing service data provided in an embodiment of the present application, and as shown in fig. 7, the electronic device includes one or more processors 610 and a memory 620. Fig. 7 illustrates an example of a processor 610. The apparatus may further include: an input device 630 and an output device 640.
The processor 610, the memory 620, the input device 630, and the output device 640 may be connected by a bus or other means, and fig. 7 illustrates an example of a connection by a bus.
Memory 620, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The processor 610 executes various functional applications and data processing of the electronic device, i.e., a processing method of the above-described method embodiment, by executing the nonvolatile software program, instructions, and modules stored in the memory 620.
The memory 620 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data and the like. Further, the memory 620 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some embodiments, the memory 620 optionally includes memory located remotely from the processor 610, which may be connected to the processing 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 input device 630 may receive input numeric or character information and generate a signal input. The output device 640 may include a display device such as a display screen.
The one or more modules are stored in the memory 620 and, when executed by the one or more processors 610, perform: acquiring a sharing instruction which is sent by a first user and points to a second user, wherein the sharing instruction comprises a second user identifier and service data; creating a first sharing order for the first user according to the sharing instruction, wherein the first sharing order comprises the second user identification and the service data; determining the second user according to the second user identification, and creating a second sharing order associated with the first sharing order for the second user according to the sharing instruction; the second share order includes the first user identification of the first user and the service data.
In a possible implementation manner, before the obtaining of the sharing instruction sent by the first user and directed to the second user, the method further includes: acquiring a service opening instruction sent by a first user, wherein the service opening instruction comprises service data and service request duration; when the service opening instruction is legal, distributing corresponding service data and total service duration to the first user according to the service opening instruction, wherein the total service duration corresponds to the service request duration; and creating an opening service order for the first user according to the opening service instruction, wherein the opening service order comprises service data, total service duration and service starting time, and the service starting time is the time for acquiring the opening service instruction.
In a possible implementation manner, the sharing instruction further includes an effective service duration, where the effective service duration is used to determine a duration that the service data can be used; when the sharing instruction comprises effective service time length, the first sharing order further comprises the effective service time length, and the second sharing order further comprises the effective service time length.
In a possible implementation manner, the effective service duration is not greater than the remaining service duration of the first user, and the remaining service duration is the remaining sharable service duration of the first user at the current time node.
In a possible implementation manner, after the obtaining of the sharing instruction sent by the first user and directed to the second user, the method further includes: adding one to the sharing times of the first user according to the sharing instruction, wherein the sharing times are used for recording the times of the first user sharing the service data; adding one to the shared times of the second user according to the sharing instruction, wherein the shared times are used for recording the times that the second user receives the service data shared by other users; and when the sharing times do not exceed a first preset threshold value and the shared times do not exceed a second preset threshold value, creating the first sharing order and the second sharing order.
The product can execute the method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method. For technical details that are not described in detail in this embodiment, reference may be made to the methods provided in the embodiments of the present application.
The electronic device of the embodiments of the present application exists in various forms, including but not limited to:
(1) mobile communication devices, which are characterized by mobile communication capabilities and are primarily targeted at providing voice and data communications. Such terminals include smart phones (e.g., iphones), multimedia phones, functional phones, and low-end phones, among others.
(2) The ultra-mobile personal computer equipment belongs to the category of personal computers, has calculation and processing functions and generally has the characteristic of mobile internet access. Such terminals include PDA, MID, and UMPC devices, such as ipads.
(3) Portable entertainment devices such devices may display and play multimedia content. Such devices include audio and video players (e.g., ipods), handheld game consoles, electronic books, as well as smart toys and portable car navigation devices.
(4) The server is similar to a general computer architecture, but has higher requirements on processing capability, stability, reliability, safety, expandability, manageability and the like because of the need of providing highly reliable services.
(5) And other electronic devices with data interaction functions.
According to the method, the device and the electronic equipment for sharing the service data, provided by the embodiment of the invention, the sharing process and the sharing result of the service data are recorded by respectively creating the first sharing order and the second sharing order for the first user and the second user; the method does not need to cancel the order to realize service sharing, namely, no online environment code of the background system is deleted, so that the stable operation of the background system can be effectively ensured. Whether the first user is qualified to share the service data can be determined by creating the open service order, and meanwhile, the remaining service duration of the first user can be calculated conveniently at a later time. The service duration needing to be shared by the first user is accurately determined by adding the effective service duration in the sharing instruction, so that diversification of service data sharing is realized. The number of sharing orders can be limited by limiting the sharing times, and the system stability can also be improved; meanwhile, partial illegal operation of illegal users can be avoided.
The above-described embodiments of the apparatus are merely illustrative, and 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a general hardware platform, and certainly can also be implemented by hardware. Based on such understanding, the above technical solutions substantially or contributing to the related art may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Industrial applicability
According to the method, the device and the electronic equipment for sharing the service data, the sharing instruction which is sent by the first user and points to the second user is obtained, and the sharing instruction comprises the second user identification and the service data; creating a first sharing order for the first user according to the sharing instruction, wherein the first sharing order comprises the second user identification and the service data; determining the second user according to the second user identification, and creating a second sharing order associated with the first sharing order for the second user according to the sharing instruction; the second share order comprises the first user identification of the first user and the service data, and beneficial effects are achieved.
Claims (11)
1. A method of sharing service data, comprising:
acquiring a sharing instruction which is sent by a first user and points to a second user, wherein the sharing instruction comprises a second user identifier and service data;
creating a first sharing order for the first user according to the sharing instruction, wherein the first sharing order comprises the second user identification and the service data;
determining the second user according to the second user identification, and creating a second sharing order associated with the first sharing order for the second user according to the sharing instruction; the second share order includes the first user identification of the first user and the service data.
2. The method according to claim 1, further comprising, before the obtaining of the sharing instruction directed to the second user and sent by the first user:
acquiring a service opening instruction sent by a first user, wherein the service opening instruction comprises service data and service request duration;
when the service opening instruction is legal, distributing corresponding service data and total service duration to the first user according to the service opening instruction, wherein the total service duration corresponds to the service request duration;
and creating an opening service order for the first user according to the opening service instruction, wherein the opening service order comprises service data, total service duration and service starting time, and the service starting time is the time for acquiring the opening service instruction.
3. The method of claim 1, wherein the sharing instruction further comprises an effective service duration, and the effective service duration is used for determining a duration that the service data can be used;
when the sharing instruction comprises effective service time length, the first sharing order further comprises the effective service time length, and the second sharing order further comprises the effective service time length.
4. The method of claim 3, wherein the effective service duration is not greater than a remaining service duration of the first user, and wherein the remaining service duration is a remaining sharable service duration of the first user at a current time node.
5. The method according to any one of claims 1 to 4, wherein after the obtaining of the sharing instruction directed to the second user sent by the first user, the method further comprises:
adding one to the sharing times of the first user according to the sharing instruction, wherein the sharing times are used for recording the times of the first user sharing the service data;
adding one to the shared times of the second user according to the sharing instruction, wherein the shared times are used for recording the times that the second user receives the service data shared by other users;
and when the sharing times do not exceed a first preset threshold value and the shared times do not exceed a second preset threshold value, creating the first sharing order and the second sharing order.
6. An apparatus for sharing service data, comprising:
the first obtaining module is used for obtaining a sharing instruction which is sent by a first user and points to a second user, and the sharing instruction comprises a second user identifier and service data;
a first creating module, configured to create a first share order for the first user according to the sharing instruction, where the first share order includes the second user identifier and the service data;
the second creating module is used for determining the second user according to the second user identifier and creating a second sharing order associated with the first sharing order for the second user according to the sharing instruction; the second share order includes the first user identification of the first user and the service data.
7. The apparatus of claim 6, further comprising: the system comprises a second acquisition module, a distribution module and a third creation module;
before the first obtaining module obtains a sharing instruction which is sent by a first user and points to a second user, the second obtaining module is used for obtaining a service opening instruction which is sent by the first user and comprises service data and service request duration;
the distribution module is used for distributing corresponding service data and total service duration to the first user according to the service opening instruction when the service opening instruction is legal, wherein the total service duration corresponds to the service request duration;
the third creating module is configured to create an opening service order for the first user according to the opening service instruction, where the opening service order includes service data, a total service duration, and a service start time, and the service start time is a time when the opening service instruction is obtained.
8. The apparatus of claim 6, wherein the sharing instruction further comprises an effective service duration, and the effective service duration is used for determining a duration that the service data can be used;
when the sharing instruction comprises effective service time length, the first sharing order further comprises the effective service time length, and the second sharing order further comprises the effective service time length.
9. The apparatus of claim 8, wherein the effective service duration is not greater than a remaining service duration of the first user, and wherein the remaining service duration is a remaining sharable service duration of the first user at a current time node.
10. The apparatus of any of claims 6-9, further comprising: a first processing module and a second processing module;
after the first obtaining module obtains a sharing instruction which is sent by a first user and points to a second user, the first processing module is used for adding one to the sharing times of the first user according to the sharing instruction, and the sharing times are used for recording the times of the first user sharing the service data;
the second processing module is used for adding one to the shared times of the second user according to the sharing instruction, wherein the shared times are used for recording the times that the second user receives the service data shared by other users;
when the sharing times do not exceed a first preset threshold and the shared times do not exceed a second preset threshold, the first creating module and the second creating module respectively create the first sharing order and the second sharing order.
11. An electronic device, comprising:
at least one processor; and the number of the first and second groups,
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-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611019557.5A CN106530054A (en) | 2016-11-15 | 2016-11-15 | Method and device for sharing service data, and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611019557.5A CN106530054A (en) | 2016-11-15 | 2016-11-15 | Method and device for sharing service data, and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106530054A true CN106530054A (en) | 2017-03-22 |
Family
ID=58352434
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611019557.5A Pending CN106530054A (en) | 2016-11-15 | 2016-11-15 | Method and device for sharing service data, and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106530054A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107730314A (en) * | 2017-10-11 | 2018-02-23 | 北京小度信息科技有限公司 | Information acquisition method, device, electronic equipment and computer-readable recording medium |
CN110288328A (en) * | 2019-06-25 | 2019-09-27 | 腾讯科技(深圳)有限公司 | Virtual objects sending method, method of reseptance, device, equipment and storage medium |
-
2016
- 2016-11-15 CN CN201611019557.5A patent/CN106530054A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107730314A (en) * | 2017-10-11 | 2018-02-23 | 北京小度信息科技有限公司 | Information acquisition method, device, electronic equipment and computer-readable recording medium |
CN110288328A (en) * | 2019-06-25 | 2019-09-27 | 腾讯科技(深圳)有限公司 | Virtual objects sending method, method of reseptance, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016184298A1 (en) | Application promotion method, server, terminal and storage medium | |
US10235505B2 (en) | Enabling enforcement of licensing terms in distributing content in containers by including a key in the container containing the pertinent licensing terms | |
CN109684805B (en) | Voice skill sharing method and system for voice conversation platform | |
CN110874637B (en) | Multi-target fusion learning method, device and system based on privacy data protection | |
CN107820702B (en) | Management and control method, device and electronic equipment | |
US20170171329A1 (en) | Video recommendaton method and system, and server | |
US20170277526A1 (en) | Software categorization method and electronic device | |
JP2015210825A (en) | Method and system for tracking marketing channel of application | |
CN109033285A (en) | Information-pushing method and device | |
CN108718337A (en) | Website account login, verification, verification information processing method, apparatus and system | |
CN107239714A (en) | Browser control access rights method, device, storage medium and electronic equipment | |
CN106803188A (en) | The display methods of business operation, device and electronic equipment | |
CN110784474B (en) | Embedded product access authorization method and device | |
CN106530054A (en) | Method and device for sharing service data, and electronic equipment | |
TWI579712B (en) | Digital management of content assets in the cloud | |
CN106131614A (en) | A kind of multimedia file playing processing method, device and server | |
CN106971296B (en) | Method for processing information object, electronic equipment and storage medium | |
CN106161501A (en) | The data sharing method of virtual desktop and device | |
CN110196732B (en) | Local skill management method and device | |
CN111026532A (en) | Message queue management method for voice data | |
WO2018000615A1 (en) | Method for moving target object, and electronic device | |
CN109643337A (en) | Service providing method based on cloud | |
CN104301343A (en) | Database updating method and relevant equipment and system | |
CN108038788A (en) | Insure object price inquiry method and device, storage medium, electronic equipment | |
US20160317934A1 (en) | Game server having internal game resource, method of playing a game using the game server, and game development system including the game server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20170322 |
|
WD01 | Invention patent application deemed withdrawn after publication |