CN108874836B - Method and device for transferring electronic ticket - Google Patents

Method and device for transferring electronic ticket Download PDF

Info

Publication number
CN108874836B
CN108874836B CN201710342559.6A CN201710342559A CN108874836B CN 108874836 B CN108874836 B CN 108874836B CN 201710342559 A CN201710342559 A CN 201710342559A CN 108874836 B CN108874836 B CN 108874836B
Authority
CN
China
Prior art keywords
electronic ticket
selling
electronic
user
transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710342559.6A
Other languages
Chinese (zh)
Other versions
CN108874836A (en
Inventor
王晶
李品
刘尚洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710342559.6A priority Critical patent/CN108874836B/en
Publication of CN108874836A publication Critical patent/CN108874836A/en
Application granted granted Critical
Publication of CN108874836B publication Critical patent/CN108874836B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0207Discounts or incentives, e.g. coupons or rebates
    • G06Q30/0222During e-commerce, i.e. online transactions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0623Item investigation
    • G06Q30/0625Directed, with specific intent or strategy
    • G06Q30/0627Directed, with specific intent or strategy using item specifications

Abstract

The invention provides a method and a device for transferring electronic coupons, and relates to the technical field of computers. One embodiment of the method for transferring electronic tickets of the present invention comprises: receiving an electronic ticket transfer request sent by a user, wherein the electronic ticket has transferable attributes, and the transfer request comprises a request type and owner information of the electronic ticket; executing corresponding transfer operation on the electronic ticket according to the request type; and after the transfer operation is completed, changing the owner information of the electronic ticket. The implementation mode can realize the electronic coupon transfer based on the user system in the system, does not need to rely on the existing social software, and simultaneously ensures the safety of virtual asset transfer.

Description

Method and device for transferring electronic ticket
Technical Field
The invention relates to the technical field of computers, in particular to a method and a device for transferring electronic coupons.
Background
With the development of computer and mobile communication technologies, electronic coupons have been widely used in people's daily life. Electronic coupons are promotional coupons issued by various merchants and made, disseminated, and used in various electronic media. The electronic coupons usually use electronic media forms including internet (Web), mobile phone network (WAP), short messages and multimedia messages, etc. The most common electronic coupons at present are various coupons.
At present, the E-commerce platform is very rich in marketing means based on coupons, and a user can obtain and use the marketing means in a final settlement link through various modes such as picking, drawing and orientation. However, since the current coupons are only one-way marketing, that is, the coupons are acquired by the users issued by the merchants, once the users are not used, a large number of premium coupons will expire in the user accounts, thereby causing a waste of marketing resources. At present, some e-commerce platforms can promote the usage rate of coupons by transferring the coupons among users based on the current socialization scenario from the user's will, so as to promote marketing of the coupons and better promote consumption. The existing common coupon transfer method is based on the transfer of a coupon package between WeChat friends.
In the process of implementing the invention, the inventor finds that the prior art has the following technical problems:
firstly, the WeChat card and ticket package is a transfer mode based on a WeChat account system, and the field is narrow; secondly, card and coupon package sharing is transferred based on friend relationships among users, but six-degree space attenuation weakens the propagation possibility of the users; thirdly, the coupon shared by the wechat tickets is based on application APP services outside the e-commerce platform, and the risk is high and uncontrollable for a virtual asset transfer scene of a user.
Disclosure of Invention
In view of this, embodiments of the present invention provide a method and an apparatus for transferring an electronic ticket, which can implement electronic ticket transfer based on a user system inside a system, do not need to rely on current social software, and ensure security of virtual asset transfer.
To achieve the above object, according to an aspect of an embodiment of the present invention, there is provided a method of transferring an electronic ticket.
A method of transferring electronic coupons comprising: receiving an electronic ticket transfer request sent by a user, wherein the electronic ticket has transferable attributes, and the transfer request comprises a request type and owner information of the electronic ticket; executing corresponding transfer operation on the electronic ticket according to the request type; and after the transfer operation is completed, changing owner information of the electronic ticket.
Optionally, before receiving the electronic ticket transfer request sent by the user, the method further includes: and pre-saving information that the electronic ticket has transferable attributes.
Optionally, the transferable attributes include: shareable attributes and/or vendable attributes; and, the request type includes sharing and selling.
Optionally, when the request type is sharing, the transferring operation includes: and selecting a sharee from the prestored friend relationship of the user, and sending the electronic coupon to the sharee.
Optionally, if the sharee is not in the friend relationship of the user, the transfer operation is performed by invoking an external system, and the transfer operation includes: and forwarding the transfer request to the external system so that the external system shares the electronic coupon to the sharee according to the received operation instruction of the user, wherein the user and the sharee are in a friend relationship in the external system.
Optionally, the transfer request further includes adding the sharee as a friend, and after the transfer operation is completed, adding the sharee as a friend.
Optionally, after the sharee is added as a friend, the method further includes: and acquiring and storing identification information of the user and the sharee in the external system.
Optionally, if the external system is not called, returning a pre-stored default value.
Optionally, when the request type is selling, the electronic ticket is transferred according to a pre-saved selling event, wherein the selling event comprises a selling rule, a selling time and a selling total amount.
Optionally, the approver of the sale event is a creator of the electronic ticket.
Optionally, the transferring operation comprises: obtaining the selling amount of the electronic ticket according to the selling rule; verifying the assets of the buyer of the electronic coupon, and deducting the assets equal to the selling amount from the assets of the buyer; modifying the status of the electronic coupon and the total sale amount; and adding the assets of the user with the same selling amount.
Optionally, before performing the corresponding transfer operation on the electronic ticket according to the request type, the method further includes: modifying the state of the electronic ticket, and storing the information and the state of the electronic ticket into a cache through a message synchronization mechanism; and carrying out the synchronization operation of the information and the state of the electronic ticket through a message mechanism.
According to another aspect of the embodiments of the present invention, there is provided an apparatus for transferring an electronic ticket.
An apparatus for transferring electronic coupons, comprising: the electronic ticket transfer system comprises a request receiving module, a transfer module and a transfer module, wherein the request receiving module is used for receiving an electronic ticket transfer request sent by a user, the electronic ticket has transferable attributes, and the transfer request comprises a request type and owner information of the electronic ticket; the transfer processing module is used for executing corresponding transfer operation on the electronic ticket according to the request type; and the owner changing module is used for changing the owner information of the electronic ticket after the transfer operation is finished.
Optionally, the system further comprises an information saving module, configured to: before receiving an electronic ticket transfer request sent by a user, information that the electronic ticket has transferable attributes is preserved in advance.
Optionally, the transferable attributes include: shareable attributes and/or vendable attributes; and, the request type includes sharing and selling.
Optionally, when the request type is sharing, the transferring operation includes: and selecting a sharee from the prestored friend relationship of the user, and sending the electronic coupon to the sharee.
Optionally, if the sharee is not in the friend relationship of the user, the transfer operation is performed by invoking an external system, and the transfer operation includes: and forwarding the transfer request to the external system so that the external system shares the electronic coupon to the sharee according to the received operation instruction of the user, wherein the user and the sharee are in a friend relationship in the external system.
Optionally, the transfer request further includes adding the sharee as a friend, and after the transfer operation is completed, adding the sharee as a friend.
Optionally, the system further includes an information obtaining module, configured to: and after the sharee is added as a friend, acquiring and saving the identification information of the user and the sharee in the external system.
Optionally, if the external system is not called, returning a pre-stored default value.
Optionally, when the request type is selling, the electronic ticket is transferred according to a pre-saved selling event, wherein the selling event comprises a selling rule, a selling time and a selling total amount.
Optionally, the approver of the sale event is a creator of the electronic ticket.
Optionally, the transferring operation comprises: obtaining the selling amount of the electronic ticket according to the selling rule; verifying the assets of the buyer of the electronic coupon, and deducting the assets equal to the selling amount from the assets of the buyer; modifying the status of the electronic coupon and the total sale amount; and adding the assets of the user with the same selling amount.
Optionally, the apparatus further includes a data caching module, configured to: before executing corresponding transfer operation on the electronic ticket according to the request type, modifying the state of the electronic ticket, and storing the information and the state of the electronic ticket into a cache through a message synchronization mechanism; and carrying out the synchronization operation of the information and the state of the electronic ticket through a message mechanism.
According to still another aspect of the embodiments of the present invention, there is provided a terminal device for transferring an electronic ticket.
A terminal device for transferring an electronic ticket, comprising: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method for transferring electronic tickets provided by the present invention.
According to still another aspect of an embodiment of the present invention, there is provided a computer-readable storage medium.
A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of transferring electronic tickets according to the invention.
One embodiment of the above invention has the following advantages or benefits:
the electronic coupon transfer method and the electronic coupon transfer system have the advantages that whether the electronic coupon transfer operation is shared or sold is determined according to the type of an electronic coupon transfer request sent by a user, then the corresponding electronic coupon transfer operation is carried out, the transfer problem of the electronic coupon among different users is solved, in addition, the embodiment of the invention is based on a user system in the system, the dependence on the existing social software is not needed, the circulation of the electronic coupon is realized, and the safety of virtual asset transfer is ensured.
Further effects of the above-mentioned non-conventional alternatives will be described below in connection with the embodiments.
Drawings
The drawings are included to provide a better understanding of the invention and are not to be construed as unduly limiting the invention. Wherein:
FIG. 1 is an exemplary system architecture diagram in which embodiments of the present invention may be employed;
fig. 2 is a schematic view of the main steps of a method of transferring an electronic ticket according to an embodiment of the present invention;
fig. 3 is a schematic view of the main blocks of an apparatus for transferring electronic tickets according to an embodiment of the present invention;
FIG. 4 is a block diagram of a computer system 400 suitable for use with a terminal device implementing an embodiment of the invention.
Detailed Description
Exemplary embodiments of the present invention are described below with reference to the accompanying drawings, in which various details of embodiments of the invention are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 shows an exemplary system architecture 100 of a method of transferring electronic tickets or an apparatus for transferring electronic tickets to which an embodiment of the present invention can be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. Network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, to name a few.
The user may use the terminal devices 101, 102, 103 to interact with the server 105 via the network 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have installed thereon various communication client applications, such as shopping-like applications, web browser applications, search-like applications, instant messaging tools, mailbox clients, social platform software, etc. (by way of example only).
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 may be a server providing various services, such as a background management server (for example only) providing support for shopping-like websites browsed by users using the terminal devices 101, 102, 103. The backend management server may analyze and perform other processing on the received data such as the product information query request, and feed back a processing result (for example, target push information, product information — just an example) to the terminal device.
It should be noted that the method for transferring electronic tickets provided by the embodiment of the present invention is generally performed by the server 105, and accordingly, the apparatus for transferring electronic tickets is generally disposed in the server 105.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
In order to solve the problem of electronic ticket waste, the embodiment of the invention provides a method for transferring an electronic ticket, which enables a user to transfer the electronic ticket to others by adding attribute information of 'transferable' to the electronic ticket.
Fig. 2 is a schematic view of the main steps of a method of transferring an electronic ticket according to an embodiment of the present invention. As shown in fig. 2, the method for transferring electronic tickets according to the embodiment of the present invention mainly includes the following steps S21 to S23.
Step S21: receiving an electronic ticket transfer request sent by a user, wherein the electronic ticket has transferable attributes, and the transfer request comprises a request type and owner information of the electronic ticket;
step S22: executing corresponding transfer operation on the electronic ticket according to the request type;
step S23: and after the transfer operation is completed, changing the owner information of the electronic ticket.
According to the embodiment of the present invention, before receiving the electronic ticket transfer request sent by the user in step S21, the electronic ticket transfer method may further include: information that the electronic ticket has transferable attributes is saved in advance. By adding attribute information of 'transferable' to the electronic ticket, the user can transfer the electronic ticket to other people.
The transfer request may also include information of the electronic ticket, such as: the serial number of the electronic ticket, the validity period, the owner, the transferability and the transfer time, etc. And after receiving the electronic ticket transfer request sent by the user, the information of the electronic ticket can be verified. Through the verification of the information of the electronic ticket, whether the electronic ticket can be transferred can be judged, for example: whether it can be shared with friends, whether it can be sold, etc.
When the electronic ticket can be transferred, an operation module for identifying transferable attributes is displayed at a corresponding position of the electronic ticket, for example, the operation module can be displayed as a button so that a user can select whether to transfer the electronic ticket to another person. When the user clicks the button, the system modifies the status of the e-ticket to "transfer in progress" accordingly. Meanwhile, before performing the corresponding transfer operation on the electronic ticket, the method may further include: modifying the state of the electronic ticket, and saving the information and the state of the electronic ticket in a cache through a message synchronization mechanism, for example: the information of the electronic ticket and the state of the electronic ticket can be put into a cache through a message synchronization mechanism and synchronized. The cache may be a storage system in the form of key-value, such as Redis or Memcached.
According to an embodiment of the invention, the transferable attributes include: the attributes may be shared and/or vendable. That is, the transferable attributes of the electronic ticket may include: shareable, vendable, and shareable and vendable 3 formats. When the electronic ticket only has shareable attributes, the request type when the user requests to transfer the electronic ticket is sharing; when the electronic ticket only has the vendible attribute, the request type when the user requests to transfer the electronic ticket is the vendible; when the electronic ticket has a shareable attribute and a vendable attribute, the type of request for the user to request the transfer of the electronic ticket may be sharing or selling, depending on the user's selection. Theoretically, an electronic coupon cannot be shared and sold at the same time. Thus, the request types mainly include sharing and selling. The sharing is carried out among friends, and the selling can be carried out to all people in the system.
The processing of the above-described two types of electronic ticket transfer requests will be described separately below.
When the request type is sharing, the system executes the electronic ticket transfer operation of selecting the sharee from the prestored friend relations of the users and sending the electronic ticket to the sharee.
When the electronic coupon can be shared, a sharing button is displayed at a corresponding position of the electronic coupon, so that a user can select whether to share the electronic coupon to friends. After the user clicks the sharing button, the system firstly checks the information of the electronic ticket, and the method mainly comprises the following steps: whether the electronic ticket is shareable, whether the electronic ticket is valid, user information, and the like. After the verification is passed, the system modifies the state of the electronic coupon into 'sharing', returns the friend relationship of the user prestored in the system and prompts the user to select the sharee; and then the electronic ticket is sent to the sharee according to the sharee selected by the user. Meanwhile, the information of the electronic ticket and the state of the electronic ticket are put into a cache (for example, Redis) through a message synchronization mechanism, and synchronization operation is carried out. In addition, the information of the electronic ticket can be put into an Elasticsearch cluster for storage, so that the record of the change of the owner of the electronic ticket can be inquired in the Elasticsearch cluster through the serial number of the electronic ticket and the sharer.
In addition, the state of the electronic ticket can be modified according to the sharing condition of the electronic ticket, which mainly includes the following 3 conditions:
if the sharing condition of the electronic ticket is that the sharee has received the electronic ticket, the state of the electronic ticket is modified into the received electronic ticket;
if the sharing condition of the electronic ticket is that the user cancels the sharing, the state of the electronic ticket is modified to be unused;
and if the sharing condition of the electronic ticket is that the sharing time expires, the state of the electronic ticket is modified to be unused.
If the sharee is not in the friend relationship of the user, transferring operation is carried out by calling the external system, and the transferring request is forwarded to the external system so that the external system can share the electronic coupon to the sharee according to the received operation instruction of the user, wherein the user and the sharee are in the friend relationship in the external system.
When the user forwards the transfer request to the external system to share the electronic coupon, the user can also select whether to add the shared person as a friend or not, so that the user can directly select from friend relations stored in the system when the user shares the electronic coupon next time. That is, the transfer request may also include adding the sharee as a friend. And after the transfer operation is successful, the sharee is added as a friend, and the identification information of the user and the sharee in the external system can be acquired and stored, so that the user can see that the friend relationship is added through electronic ticket sharing from the friend relationship stored in the system. For example: if the external system is the WeChat, the identification information such as the WeChat nickname, the WeChat head portrait and the like of the user and the shared person can be obtained through the WeChat service and stored in the database and the cache. After the user and the sharee are added as friends, based on the friend relationship, the electronic coupon can be shared, and interaction such as browsing record sharing, commodity recommendation, activity recommendation and the like can be performed.
In the embodiment of the invention, an adjustable degradation mechanism can be adopted, and if the external system is not called, the preset default value is returned. When the external system service is called, the condition that the external system service is unavailable or response is overtime occurs, the expected value is replaced by the default value so as to ensure the normal operation of the service system. When special conditions occur, the default value can also be adjusted manually. For example: by monitoring the call time of the external system service, when the call time is judged to exceed the threshold (for example, set to 200 milliseconds), the return result of the external system is not waited any more, and the default value is returned directly, and the default value can be specifically set according to different service conditions, so that the system is ensured to make a corresponding response to the operation of the user within an acceptable time range (for example, 500 milliseconds), and the experience of the user is ensured.
Because the electronic coupons have multiple sharing functions and large data volume, a design mode of database division and table division is adopted in the aspects of data storage and reading. For example: the user account can be used as a sub-table basis, and after hash operation, detailed information of user sharing operation is dispersed in a plurality of data tables. When the state of the electronic ticket is changed, only the bottom database is modified in the first step, and then the completion and construction of the relative secondary information such as cache, a flow table and the like are completed asynchronously through a message mechanism, so that the processing efficiency of the system can be ensured. For example: the system synchronizes the latest state of the electronic ticket to the Elasticissearch cluster through a message mechanism, so that the change record of the affiliated relationship of the electronic ticket is inquired in the Elasticissearch cluster through the serial number of the electronic ticket and a sharer.
When the request type of the electronic ticket transfer request sent by the user is selling, the electronic ticket transfer can be performed according to a pre-saved selling event, wherein the selling event comprises a selling rule, a selling time and a selling total amount. Wherein the approver of the selling event is the creator of the electronic ticket. In the embodiment of the invention, each batch of electronic coupons applying for selling is subjected to the creation of the selling event by submitting the OA examination and approval sheet, and the selling event can be only audited by a creator of the electronic coupons, so that the safety of the electronic coupon virtual assets is greatly enhanced.
When the electronic ticket can be sold, a selling button is displayed at the corresponding position of the electronic ticket so that a user can select whether to sell the electronic ticket. After the user clicks the 'selling' button, the system firstly checks the information of the electronic ticket, and the system mainly comprises: whether the electronic ticket is vendable, whether the electronic ticket is valid, user information, vending event information, and the like. When the verification is passed, the system changes the state of the electronic ticket into 'selling'; then, the related information of the electronic ticket and the user is added into a data table of the electronic ticket trading platform, and the information is synchronized into a cache Redis through a message mechanism, and meanwhile, the selling total amount of the electronic ticket selling events is changed. The electronic ticket trading platform is an electronic ticket market provided by the system, and when the electronic ticket is added and sold or sold successfully, the quantity of the sold electronic tickets of the selling event, namely the total selling quantity, can be updated in real time.
When a buyer purchases the electronic ticket through the electronic ticket transaction platform, the transfer operation executed by the system mainly comprises the following steps:
and obtaining the selling amount of the electronic ticket according to a selling rule, wherein the selling rule comprises the selling amount of different electronic tickets or the proportion of the selling amount to the electronic ticket denomination and the like, when a user clicks a selling button, the selling amount of the electronic ticket can be generated and automatically displayed by a system, and the selling amounts corresponding to electronic tickets with different drawing time, different types or other differences can be different. In addition, as can be appreciated by those skilled in the art, the selling amount of the electronic ticket can also be set by the user;
verifying the assets of the buyer of the electronic ticket, and deducting the assets with the same selling amount from the assets of the buyer, wherein when the assets of the buyer are insufficient, the verification is prompted to fail;
modifying the state and the selling total amount of the electronic ticket, modifying the state of the electronic ticket into 'sold', reducing the selling total amount by 1, and simultaneously saving the selling record of the electronic ticket;
and adding assets equal to the selling amount in the assets of the user, calculating the assets available to the user through a message mechanism, and correspondingly adding the assets of the user.
According to the transfer operation, the selling of the electronic ticket can be realized through the electronic ticket transaction platform provided by the system.
In addition, when an electronic ticket has a vendable attribute, the user can view a selling event corresponding to the electronic ticket, such as: sales rules, time of sale, total amount of sale, etc. The state of the electronic ticket can also be modified according to the selling condition of the electronic ticket, such as: and if the selling condition of the electronic ticket is that the buyer purchases the electronic ticket, the user cancels the selling, or the selling time expires, the state of the electronic ticket is modified to be unused. And, if the selling time expires, the electronic ticket will not be resolvable and its corresponding vendable attribute will disappear.
Similar to the sharing process of the electronic coupon, when the electronic coupon is sold, the electronic coupon transfer request sent by the user may also include a request for adding a buyer of the electronic coupon as a friend, and after the buyer purchases the electronic coupon on the electronic coupon trading platform, the buyer is added as a friend, so as to perform interaction such as sharing of the electronic coupon, browsing record sharing, commodity recommendation, activity recommendation and the like.
According to the sharing and selling process of the electronic ticket, the problem of transfer of the electronic ticket among users is solved, and based on a user system in the system, the existing social software is not required to be relied on, so that the safety of transfer of the virtual asset is greatly guaranteed.
Fig. 3 is a schematic view of the main blocks of an apparatus for transferring electronic tickets according to an embodiment of the present invention. As shown in fig. 3, the apparatus 30 for transferring electronic tickets according to the embodiment of the present invention mainly includes a request receiving module 31, a transfer processing module 32, and an owner changing module 33.
The request receiving module 31 is configured to receive an electronic ticket transfer request sent by a user, where the electronic ticket has a transferable attribute, and the transfer request includes a request type and owner information of the electronic ticket.
The transfer processing module 32 is configured to perform a corresponding transfer operation on the electronic ticket according to the request type.
The owner changing module 33 is configured to change owner information of the electronic ticket after the transfer operation is completed.
According to an embodiment of the present invention, the apparatus 30 for transferring electronic tickets may further include an information saving module (not shown in the figure) for: before receiving an electronic ticket transfer request sent by a user, information that the electronic ticket has transferable attributes is preserved in advance.
Wherein the transferable attributes may include: shareable attributes and/or vendable attributes; and, the request type includes sharing and selling. When the electronic ticket only has shareable attributes, the request type of the electronic ticket transfer request sent by the user is sharing; when the electronic ticket only has the vendible attribute, the request type of the electronic ticket transfer request sent by the user is the vendible; when the electronic ticket has a sharable attribute and a vendable attribute, the request type of the electronic ticket transfer request sent by the user may be sharing or selling, depending on the selection of the user.
According to the technical scheme of the embodiment of the invention, when the request type is sharing, the transfer operation comprises the following steps: and selecting the sharees from the prestored friend relations of the users, and sending the electronic coupons to the sharees.
If the sharee is not in the friend relationship of the user, transferring operation is carried out by calling an external system, wherein the transferring operation comprises the following steps: and forwarding the transfer request to the external system so that the external system shares the electronic ticket to the sharee according to the received operation instruction of the user, wherein the user and the sharee are in a friend relationship in the external system.
In addition, the transfer request may further include adding the sharee as a friend, and after the transfer operation is completed, adding the sharee as a friend.
In addition, the apparatus 30 for transferring electronic tickets according to the embodiment of the present invention may further include: and an information obtaining module (not shown in the figure) for obtaining and saving the identification information of the user and the sharee on the external system after the sharee is added as the friend, so that when the user selects the electronic ticket friend, the user can see which friends are added through the external system.
When the external system is called to transfer the electronic ticket, if the external system is not called, the prestored default value is returned to ensure that the system can respond in time and ensure the experience of the user.
When the request type is selling, the electronic ticket is transferred according to a pre-saved selling event, wherein the selling event comprises a selling rule, a selling time and a selling total amount.
In the embodiment of the invention, the approver of the selling event is the creator of the electronic ticket, so that the safety of the electronic ticket virtual asset is enhanced.
And, when a purchaser purchases the electronic ticket through the electronic ticket transaction platform provided by the system, the electronic ticket transferring operation includes: obtaining the selling amount of the electronic ticket according to the selling rule; verifying the assets of the buyer of the electronic ticket, and deducting the assets with the same selling amount from the assets of the buyer; modifying the state and the selling amount of the electronic ticket; and adding the assets of the user with the same selling amount.
In addition, the apparatus 30 for transferring electronic tickets according to the embodiment of the present invention may further include a data caching module (not shown in the figure) for: before the corresponding transfer operation is carried out on the electronic ticket according to the request type, the state of the electronic ticket is modified, and the information and the state of the electronic ticket are saved in a cache through a message synchronization mechanism. And, the embodiment of the invention can perform the synchronization operation of the information and the state of the electronic ticket through a message mechanism.
According to the technical scheme of the embodiment of the invention, whether the electronic ticket transfer operation is shared or sold is determined according to the type of the electronic ticket transfer request sent by the user, and then the corresponding electronic ticket transfer operation is carried out, so that the transfer problem of the electronic ticket among different users is solved.
The invention also provides a terminal device for transferring the electronic ticket and a computer readable medium according to the embodiment of the invention.
The terminal device for transferring electronic tickets of the present invention comprises: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method for transferring electronic tickets provided by the present invention.
The computer-readable medium of the present invention has stored thereon a computer program which, when executed by a processor, implements the method of transferring electronic tickets provided by the present invention.
Referring now to FIG. 4, a block diagram of a computer system 400 suitable for use with a terminal device implementing an embodiment of the invention is shown. The terminal device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 4, the computer system 400 includes a Central Processing Unit (CPU)401 that can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components are connected to the I/O interface 405: an input section 406 including a keyboard, a mouse, and the like; an output section 407 including a display device such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 408 including a hard disk and the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. A driver 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 410 as necessary, so that a computer program read out therefrom is mounted into the storage section 408 as necessary.
In particular, the processes described above with respect to the main step diagrams may be implemented as computer software programs, according to embodiments of the present disclosure. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the main step diagram. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 409, and/or installed from the removable medium 411. The computer program performs the above-described functions defined in the system of the present invention when executed by a Central Processing Unit (CPU) 401.
It should be noted that the computer readable medium shown in the present invention can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present invention, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules described in the embodiments of the present invention may be implemented by software or hardware. The described modules may also be provided in a processor, which may be described as: a processor includes a request receiving module, a transfer processing module, and an owner change module. The names of these modules do not constitute a limitation to the module itself in some cases, for example, the request receiving module may also be described as "a module for receiving an electronic ticket transfer request from a user, the electronic ticket having transferable attributes, the transfer request including a request type and owner information of the electronic ticket".
As another aspect, the present invention also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be separate and not incorporated into the device. The computer readable medium carries one or more programs which, when executed by a device, cause the device to comprise: receiving a coupon electronic ticket transfer request sent by a user, wherein the electronic ticket has transferable attributes, and the transfer request comprises a request type and owner information of the electronic ticket; executing corresponding transfer operation on the electronic ticket according to the request type; and after the transfer operation is completed, changing owner information of the electronic ticket.
According to the technical scheme of the embodiment of the invention, whether the electronic ticket transfer operation is shared or sold is determined according to the type of the electronic ticket transfer request sent by the user, and then the corresponding electronic ticket transfer operation is carried out, so that the transfer problem of the electronic ticket among different users is solved.
The above-described embodiments should not be construed as limiting the scope of the invention. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions can occur, depending on design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (8)

1. A method of transferring electronic coupons, comprising:
receiving an electronic ticket transfer request sent by a user, wherein the electronic ticket has transferable attributes, the transfer request comprises a request type and owner information of the electronic ticket, and the transferable attributes comprise: shareable attributes and/or vendable attributes; and, the request type includes sharing and selling;
executing corresponding transfer operation on the electronic ticket according to the request type;
after the transfer operation is completed, changing owner information of the electronic ticket;
when the request type is selling, transferring the electronic ticket according to a pre-saved selling event, wherein the selling event comprises selling rules, selling time and selling total amount, an approver of the selling event is a creator of the electronic ticket, and the selling event is created by submitting an OA approval sheet; the transfer operation includes:
obtaining the selling amount of the electronic ticket according to the selling rule;
verifying the assets of the buyer of the electronic coupon, and deducting the assets equal to the selling amount from the assets of the buyer;
modifying the status of the electronic coupon and the total sale amount;
adding assets equal to the selling amount to the assets of the user;
before executing the corresponding transfer operation on the electronic ticket according to the request type, the method further comprises the following steps:
modifying the state of the electronic ticket, and storing the information and the state of the electronic ticket into a cache through a message synchronization mechanism; and the number of the first and second groups,
the information and the state of the electronic ticket are synchronized through a message mechanism;
when the request type is sharing, the transfer operation includes: selecting a sharee from the prestored friend relationship of the user, and sending the electronic coupon to the sharee;
if the sharee is not in the friend relationship of the user, the transfer operation is performed by calling an external system, and the transfer operation comprises: and forwarding the transfer request to the external system so that the external system shares the electronic coupon to the sharee according to the received operation instruction of the user, wherein the user and the sharee are friends in the external system.
2. The method of claim 1, wherein prior to receiving the request for transferring the electronic ticket from the user, further comprising:
and pre-saving information that the electronic ticket has transferable attributes.
3. The method of claim 1,
the transfer request further includes adding the sharee as a buddy,
and after the transfer operation is completed, adding the sharees as friends.
4. The method of claim 3, wherein after adding the sharee as a friend, further comprising:
and acquiring and storing identification information of the user and the sharee in the external system.
5. The method of claim 1,
and if the external system is not called, returning a pre-stored default value.
6. An apparatus for transferring electronic coupons, comprising:
a request receiving module, configured to receive an electronic ticket transfer request sent by a user, where the electronic ticket has a transferable attribute, the transfer request includes a request type and owner information of the electronic ticket, and the transferable attribute includes: shareable attributes and/or vendable attributes; and, the request type includes sharing and selling;
the transfer processing module is used for executing corresponding transfer operation on the electronic ticket according to the request type; when the request type is selling, transferring the electronic ticket according to a pre-saved selling event, wherein the selling event comprises selling rules, selling time and selling total amount, an approver of the selling event is a creator of the electronic ticket, and the selling event is created by submitting an OA approval sheet; the transfer operation includes: obtaining the selling amount of the electronic ticket according to the selling rule; verifying the assets of the buyer of the electronic coupon, and deducting the assets equal to the selling amount from the assets of the buyer; modifying the status of the electronic coupon and the total sale amount; adding assets equal to the selling amount to the assets of the user; when the request type is sharing, the transfer operation includes: selecting a sharee from the prestored friend relationship of the user, and sending the electronic coupon to the sharee; if the sharee is not in the friend relationship of the user, the transfer operation is performed by calling an external system, and the transfer operation comprises: forwarding the transfer request to the external system so that the external system shares the electronic coupon to the sharee according to the received operation instruction of the user, wherein the user and the sharee are friends on the external system;
the owner changing module is used for changing the owner information of the electronic ticket after the transfer operation is finished;
the data cache module is used for modifying the state of the electronic ticket before corresponding transfer operation is executed on the electronic ticket according to the request type, and storing the information and the state of the electronic ticket into a cache through a message synchronization mechanism; and carrying out the synchronization operation of the information and the state of the electronic ticket through a message mechanism.
7. A terminal device for transferring an electronic ticket, comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-5.
8. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1-5.
CN201710342559.6A 2017-05-16 2017-05-16 Method and device for transferring electronic ticket Active CN108874836B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710342559.6A CN108874836B (en) 2017-05-16 2017-05-16 Method and device for transferring electronic ticket

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710342559.6A CN108874836B (en) 2017-05-16 2017-05-16 Method and device for transferring electronic ticket

Publications (2)

Publication Number Publication Date
CN108874836A CN108874836A (en) 2018-11-23
CN108874836B true CN108874836B (en) 2021-07-16

Family

ID=64320700

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710342559.6A Active CN108874836B (en) 2017-05-16 2017-05-16 Method and device for transferring electronic ticket

Country Status (1)

Country Link
CN (1) CN108874836B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109658133A (en) * 2018-11-30 2019-04-19 深圳市万华汽车服务投资控股有限公司 Electronic ticket distribution method, device and vehicle washing system
CN111401939B (en) * 2020-03-05 2023-04-18 云卡联(重庆)互联网科技有限公司 System and method for dynamic transaction of electronic card

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102376062A (en) * 2011-07-25 2012-03-14 陈卓菲 Television advertisement mobile phone sign-in system and sign-in method thereof
KR20150108458A (en) * 2014-03-17 2015-09-30 에스케이플래닛 주식회사 System and method for coupon sharing service
CN105787755A (en) * 2016-02-05 2016-07-20 腾讯科技(深圳)有限公司 Information processing method, server and first terminal
CN105898582A (en) * 2015-11-30 2016-08-24 乐视网信息技术(北京)股份有限公司 Viewing coupon sharing method, terminal device and server
CN106096962A (en) * 2016-06-12 2016-11-09 财付通支付科技有限公司 Electronic certificate processing method and electronic certificate processing means
CN106487832A (en) * 2015-08-26 2017-03-08 阿里巴巴集团控股有限公司 Web information processing method and device
CN106651508A (en) * 2016-11-14 2017-05-10 百度在线网络技术(北京)有限公司 User authority sharing method and apparatus

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8145535B2 (en) * 2003-10-24 2012-03-27 Sachin Goel Computer implemented methods for providing options on products
CN101685520A (en) * 2008-09-24 2010-03-31 华为技术有限公司 Method, system and device for realizing coupon
CN101980272A (en) * 2010-10-18 2011-02-23 广东益民旅游休闲服务有限公司 Method and device for pushing and using consumption coupon
CN106022812A (en) * 2015-11-06 2016-10-12 刘翔英 Discount coupon electronized issuing, use and transaction method
CN106230787B (en) * 2016-07-21 2019-08-16 福建星网信通软件有限公司 A kind of authentication method of membership information system for unified management

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102376062A (en) * 2011-07-25 2012-03-14 陈卓菲 Television advertisement mobile phone sign-in system and sign-in method thereof
KR20150108458A (en) * 2014-03-17 2015-09-30 에스케이플래닛 주식회사 System and method for coupon sharing service
CN106487832A (en) * 2015-08-26 2017-03-08 阿里巴巴集团控股有限公司 Web information processing method and device
CN105898582A (en) * 2015-11-30 2016-08-24 乐视网信息技术(北京)股份有限公司 Viewing coupon sharing method, terminal device and server
CN105787755A (en) * 2016-02-05 2016-07-20 腾讯科技(深圳)有限公司 Information processing method, server and first terminal
CN106096962A (en) * 2016-06-12 2016-11-09 财付通支付科技有限公司 Electronic certificate processing method and electronic certificate processing means
CN106651508A (en) * 2016-11-14 2017-05-10 百度在线网络技术(北京)有限公司 User authority sharing method and apparatus

Also Published As

Publication number Publication date
CN108874836A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
US10176450B2 (en) Mapping transactions between the real world and a virtual world
KR20100059932A (en) Mobile remittances/payments
JP2015514272A (en) Sending recommendation information about business objects
US11226853B2 (en) Self-executing bot based on cached user data
CN109150929B (en) Data request processing method and device under high concurrency scene
US20150287032A1 (en) Methods and systems for connecting multiple merchants to an interactive element in a web page
CN110599277A (en) Inventory deduction method and device
CN111930786B (en) Resource acquisition request processing system, method and device
CN108874836B (en) Method and device for transferring electronic ticket
US20170228791A1 (en) Proxy identity management system
US20220222654A1 (en) System and method for processing bulk transfer of digital assets
CN113971245A (en) Information pushing method, device and system
CN114445128A (en) Card ticket management method and device, electronic equipment and computer readable medium
CN112000746A (en) Data management method and device and server
CN111815381A (en) Information generation method and device
CN114756556B (en) Method, device, electronic equipment and computer readable medium for processing account data
US11763257B1 (en) Group inventory management for a network traffic surge resistant platform
US11599934B2 (en) System and method for optimized transfer of digital assets
CN108831012B (en) Vending method and device of vending machine
CN113763078A (en) Information processing method, device and system
CN115330488A (en) Display method and device for service store
CN111049810A (en) Network security suite matching method, device, equipment and medium
KR20150005766A (en) Brand contents providing method and Brand contents providing system
CN113450170A (en) Information display method and device
KR100760353B1 (en) System for Connecting Client to Branch

Legal Events

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