CN108874836A - The method and apparatus for shifting electronic ticket - Google Patents

The method and apparatus for shifting electronic ticket Download PDF

Info

Publication number
CN108874836A
CN108874836A CN201710342559.6A CN201710342559A CN108874836A CN 108874836 A CN108874836 A CN 108874836A CN 201710342559 A CN201710342559 A CN 201710342559A CN 108874836 A CN108874836 A CN 108874836A
Authority
CN
China
Prior art keywords
electronic ticket
transfer
user
participator
request
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.)
Granted
Application number
CN201710342559.6A
Other languages
Chinese (zh)
Other versions
CN108874836B (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

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

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The present invention provides a kind of method and apparatus for shifting electronic ticket, is related to field of computer technology.One specific embodiment of the method for transfer electronic ticket of the invention includes:The electronic ticket transfer request that user sends is received, electronic ticket has transferable attribute, and transfer request includes owner's information of request type and electronic ticket;Corresponding transfer operation is executed to electronic ticket according to request type;After the completion of transfer operation, owner's information of electronic ticket is changed.The embodiment can be realized the transfer of the electronic ticket based on internal system user's system, without the social software that dependence is existing, while ensure that the safety of fictitious assets transfer.

Description

The method and apparatus for shifting electronic ticket
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus for shifting electronic ticket.
Background technique
With the development of computer and mobile communication technology, electronic ticket is widely used in daily life.Electricity Sub- certificate is production, the promotional offer voucher propagated and used in the form of various electronic medias by each merchant issued.Electronic ticket is usual Used electronic media form includes internet (Web), cell phone network (WAP), short message and multimedia message etc..It is most common at present Electronic ticket is various discount coupons.
Currently, marketing methods of the electric business platform based on discount coupon are very rich, user can be by getting, drawing a lottery, orient Various ways get and use in final clearing link.But since current discount coupon is only unidirectional marketing, i.e., by businessman User is provided to obtain, once user does not use, it will and there is a large amount of high-quality discount coupon expired in user account, to cause to seek Sell the waste of resource.Now, some electric business platforms can allow user from user intention, based on current social scene Between can promote the utilization rate of discount coupon by way of shifting discount coupon and advantageously promoted with promoting the marketing of discount coupon Consumption.The method that existing common discount coupon is shifted is the transfer based on the Ka Quanbao between wechat good friend.
In the implementation of the present invention, inventor has found that the prior art has the following technical problems:
Firstly, wechat Ka Quanbao is based on the branch mode under wechat account system, field relatively narrower;Second, card certificate Packet, which is shared, to be shifted based on the friend relation between user, and still, Six Degrees decaying can weaken its diffusibility;Third, Wechat card certificate share discount coupon be based on electric business platform except application APP service, the fictitious assets of user transfer scene is come It says, risk is larger and uncontrollable.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus for shifting electronic ticket, can be realized based on system The electronic ticket of internal user system shifts, and without the social software that dependence is existing, while ensure that the safety of fictitious assets transfer Property.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of method for shifting electronic ticket is provided.
A method of transfer electronic ticket, including:The electronic ticket transfer request that user sends is received, the electronic ticket has Transferable attribute, the transfer request include owner's information of request type and the electronic ticket;According to the request type pair The electronic ticket executes corresponding transfer operation;After the completion of the transfer operation, owner's information of the electronic ticket is changed.
Optionally, before receiving the electronic ticket transfer request that user sends, further include:Pre-saving the electronic ticket has The information of transferable attribute.
Optionally, the transferable attribute includes:Attribute can be shared and/or attribute can be sold;Also, the request type Including sharing and selling.
Optionally, when the request type is to share, the transfer operation includes:From the good friend of the user prestored Selection is by participator in relationship, and the electronic ticket is sent to described by participator.
Optionally, if it is described by participator not in the friend relation of the user, by call external system carry out The transfer operation, the transfer operation include:The transfer request is transmitted to the external system so as to the external system The electronic ticket is shared with described by participator, the user and the quilt by the operational order of the system user based on the received Participator is friend relation in the external system.
Optionally, the transfer request further includes being added to good friend by participator for described, also, in the transfer operation After the completion, good friend is added to by participator by described.
Optionally, by it is described good friend is added to by participator after, further include:It obtains and saves the user and the quilt Identification information of the participator in the external system.
Optionally, if the external system is called to fail, the default value prestored is returned.
Optionally, when the request type is to sell, the electronic ticket is carried out according to the event of selling pre-saved Transfer, wherein the event of selling includes selling rule, on-sale date and selling total amount.
Optionally, the approver for selling event is the founder of the electronic ticket.
Optionally, the transfer operation includes:Rule is sold according to described, obtain the electronic ticket sells the amount of money;It is right The assets of the buyer of the electronic ticket verify, and deduct and the money that sell the amount of money equal from the assets of the buyer It produces;It modifies the state of the electronic ticket and described sells total amount;Amount of money phase is sold with described by increasing in the assets of the user Deng assets.
Optionally, before executing corresponding transfer operation to the electronic ticket according to the request type, further include:Modification The state of the electronic ticket, and the information of the electronic ticket and state are saved in caching by message synchronization mechanism;And The simultaneously operating of the information and state of the electronic ticket is carried out by message mechanism.
According to another aspect of an embodiment of the present invention, a kind of device for shifting electronic ticket is provided.
A kind of device shifting electronic ticket, including:Request receiving module is asked for receiving the electronic ticket transfer that user sends It asks, the electronic ticket has transferable attribute, and the transfer request includes owner's information of request type and the electronic ticket;Turn Processing module is moved, for executing corresponding transfer operation to the electronic ticket according to the request type;Owner changes module, uses In after the completion of the transfer operation, owner's information of the electronic ticket is changed.
Optionally, further include information preservation module, be used for:Before receiving the electronic ticket transfer request that user sends, in advance First save the information that the electronic ticket has transferable attribute.
Optionally, the transferable attribute includes:Attribute can be shared and/or attribute can be sold;Also, the request type Including sharing and selling.
Optionally, when the request type is to share, the transfer operation includes:From the good friend of the user prestored Selection is by participator in relationship, and the electronic ticket is sent to described by participator.
Optionally, if it is described by participator not in the friend relation of the user, by call external system carry out The transfer operation, the transfer operation include:The transfer request is transmitted to the external system so as to the external system The electronic ticket is shared with described by participator, the user and the quilt by the operational order of the system user based on the received Participator is friend relation in the external system.
Optionally, the transfer request further includes being added to good friend by participator for described, also, in the transfer operation After the completion, good friend is added to by participator by described.
Optionally, further include data obtaining module, be used for:By it is described good friend is added to by participator after, obtain simultaneously Save the user and it is described by participator the external system identification information.
Optionally, if the external system is called to fail, the default value prestored is returned.
Optionally, when the request type is to sell, the electronic ticket is carried out according to the event of selling pre-saved Transfer, wherein the event of selling includes selling rule, on-sale date and selling total amount.
Optionally, the approver for selling event is the founder of the electronic ticket.
Optionally, the transfer operation includes:Rule is sold according to described, obtain the electronic ticket sells the amount of money;It is right The assets of the buyer of the electronic ticket verify, and deduct and the money that sell the amount of money equal from the assets of the buyer It produces;It modifies the state of the electronic ticket and described sells total amount;Amount of money phase is sold with described by increasing in the assets of the user Deng assets.
Optionally, described device further includes data cache module, is used for:According to the request type to the electronic ticket Before executing corresponding transfer operation, the state of the electronic ticket is modified, and passes through message synchronization mechanism for the electronic ticket Information and state are saved in caching;And the simultaneously operating of the information and state of the electronic ticket is carried out by message mechanism.
Another aspect according to an embodiment of the present invention provides a kind of terminal device for shifting electronic ticket.
A kind of terminal device shifting electronic ticket, including:One or more processors;Storage device, for storing one Or multiple programs, when one or more of programs are executed by one or more of processors, so that one or more of The method that processor realizes transfer electronic ticket provided by the present invention.
It is according to an embodiment of the present invention in another aspect, providing a kind of computer readable storage medium.
A kind of computer-readable medium is stored thereon with computer program, realizes this when described program is executed by processor The method of transfer electronic ticket provided by invention.
One embodiment in foregoing invention has the following advantages that or beneficial effect:
According to the type for the electronic ticket transfer request that user sends, determine that electronic ticket transfer operation is to share or sell, Then corresponding electronic ticket transfer operation is carried out, solves the branch problem of electronic ticket among different users, and of the invention Embodiment is user's system based on internal system, without the social software that dependence is existing, so that the circulation of electronic ticket is realized, And it ensure that the safety of fictitious assets transfer.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 2 is the key step schematic diagram of the method for transfer electronic ticket according to an embodiment of the present invention;
Fig. 3 is the main modular schematic diagram of the device of transfer electronic ticket according to an embodiment of the present invention;
Fig. 4 is adapted for the structural schematic diagram for the computer system 400 for realizing the terminal device of the embodiment of the present invention.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
Fig. 1 is shown can showing using the device of the method or transfer electronic ticket of the transfer electronic ticket of the embodiment of the present invention Example property system architecture 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 101,102,103 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 101,102,103 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 105 can be to provide the server of various services, such as utilize terminal device 101,102,103 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath -- merely illustrative) feed back to terminal device.
It should be noted that the method for transfer electronic ticket provided by the embodiment of the present invention is generally executed by server 105, Correspondingly, the device for shifting electronic ticket is generally positioned in server 105.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
In order to solve the problems, such as that electronic ticket wastes, the embodiment provides a kind of methods for shifting electronic ticket, lead to The attribute information for increasing " transferable " for electronic ticket is crossed, allows user that electronic ticket is transferred to other people.
Fig. 2 is the key step schematic diagram of the method for transfer electronic ticket according to an embodiment of the present invention.As shown in Fig. 2, this The method of the transfer electronic ticket of inventive embodiments mainly includes the following steps, namely S21 to step S23.
Step S21:The electronic ticket transfer request that user sends is received, electronic ticket has transferable attribute, transfer request packet Include owner's information of request type and electronic ticket;
Step S22:Corresponding transfer operation is executed to electronic ticket according to request type;
Step S23:After the completion of transfer operation, owner's information of electronic ticket is changed.
It, can be with according to an embodiment of the invention, before step S21 receives the electronic ticket transfer request sent of user: Pre-save the information that electronic ticket has transferable attribute.By increasing the attribute information of " transferable " for electronic ticket, so that with Electronic ticket can be transferred to other people by family.
It can also include the information of electronic ticket in transfer request, such as:The number of electronic ticket, validity period, owner, whether Transferable and transfer time etc..Also, it, can also be to the letter of electronic ticket after receiving the electronic ticket transfer request that user sends Breath is verified.Pass through the verification of the information to electronic ticket, it can be determined that whether the electronic ticket can be transferred, such as:Whether Good friend can be shared with, if can be sold.
When the electronic ticket can be transferred, the behaviour for identifying transferable attribute can be shown in the corresponding position of electronic ticket Make module, for example, button can be shown as, whether the electronic ticket is transferred to other people for selection by the user.This is pressed when the user clicks After button, the state of the electronic ticket is correspondingly revised as " in transfer " by system.Meanwhile it being grasped executing corresponding transfer to electronic ticket Before work, can also include:The state of electronic ticket is modified, and passes through message synchronization mechanism for the information and state of the electronic ticket It is saved in caching, such as:The state of the information of the electronic ticket and electronic ticket can be put into caching by message synchronization mechanism In and carry out simultaneously operating.The storage system of the key-value form such as can be Redis or Memcached of caching.
According to an embodiment of the invention, transferable attribute includes:Attribute can be shared and/or attribute can be sold.That is, The transferable attribute of electronic ticket may include:It can share, can sell, and can share and 3 kinds of forms can be sold.When electronic ticket only When with that can share attribute, it is to share that user, which requests request type when shifting the electronic ticket,;It can be sold when electronic ticket only has When selling attribute, it is to sell that user, which requests request type when shifting the electronic ticket,;Attribute and can be shared when electronic ticket has When selling attribute, user requests request type when shifting the electronic ticket can be to share or selling, specifically according to the selection of user Depending on.Theoretically, an electronic ticket cannot be shared and be sold simultaneously.Therefore, request type mainly includes sharing and selling Sell two kinds.Wherein, share towards being carried out between good friend, selling can be with the owner in system-oriented.
The treatment process of the electronic ticket transfer request of above two type is introduced separately below.
When request type is to share, the transfer operation for the electronic ticket that system executes is the friend relation from the user prestored Middle selection is sent to by participator, and by electronic ticket by participator.
When the electronic ticket can be shared, " sharing " button can be shown in the corresponding position of electronic ticket, for user's choosing It selects and whether the electronic ticket is shared with good friend.After " sharing " button when the user clicks, system carries out the information school of electronic ticket first It tests, mainly includes:Whether electronic ticket can be shared, whether electronic ticket is in validity period, user information etc..After verification passes through, system It is " in sharing " by the status modifier of the electronic ticket, the friend relation of the user prestored in return system simultaneously prompts user to select By participator;Then the electronic ticket being sent to by participator by participator according to user's selection.Meanwhile it is also same by message The state of the information of the electronic ticket and electronic ticket is put into caching (such as Redis) and carries out simultaneously operating by step mechanism.And And the information of electronic ticket can also be put into Elasticsearch cluster and stored, with will pass through electronic ticket number and share People, in the record of Elasticsearch cluster inquiry electronic ticket owner change.
It mainly may include following 3 kinds of feelings furthermore it is also possible to modify the state of electronic ticket according to the sharing situation of electronic ticket Condition:
It is to have got by the status modifier of electronic ticket if the sharing situation of electronic ticket is to have been got by participator;
It is unused by the status modifier of electronic ticket if the sharing situation of electronic ticket is that user cancels sharing;
It is unused by the status modifier of electronic ticket if the sharing situation of electronic ticket expires for share time.
If, by calling external system to carry out transfer operation, will be shifted by participator not in the friend relation of user Request is transmitted to external system so that electronic ticket is shared with by participator by the operational order of external system user based on the received, Wherein, user and in external system be friend relation by participator.
It when transfer request is transmitted to external system sharing electronic ticket by user, may also select whether that people's addition will be shared For good friend, can directly be selected from the friend relation saved in system when sharing electronic ticket so as to next time.That is, Transfer request can also include that will be added to good friend by participator.Also, it after transfer operation success, will be added to by participator Good friend, and can also obtain and save user and by participator external system identification information, so that user can be from being See that the friend relation is to share to add by electronic ticket in the friend relation saved in system.Such as:If the external system is Wechat, then can be by wechat service acquisition user and by identification informations such as the wechat pet name of participator and wechat head portraits, and deposits Storage is in database and caching.As user and after by participator be added to good friend, it is based on the friend relation, can not only share electricity Sub- certificate can also carry out the sharing of browsing record, commercial product recommending, activity recommendation etc. interaction.
It, if calling external system failure, can also be returned pre- using adjustable degradation mechanism in the embodiment of the present invention The default value deposited.When calling external system service, the service of non-this system, will be by writing from memory there is a situation where when unavailable or response timeout Value replacement desired value is recognized, to guarantee that operation system operates normally.When special circumstances occur, the tune of default value can also be manually carried out It is whole.Such as:By monitoring to the allocating time of external system service, when judge that allocating time exceeds threshold value and (such as be set as 200 Millisecond) when, it will be no longer waiting for returning the result for external system, directly return default value, which can be according to different business Situation is specifically set, and thereby guarantees that system makes phase to the operation of user in acceptable time range (such as 500 milliseconds) The response answered, to guarantee the experience of user.
Since electronic ticket sharing function is more, data volume is big, point library is used in terms of data storage and reading and divides setting for table Meter mode.Such as:It can be to divide table foundation with user account, after Hash operation, by the managing detailed catalogue of user's sharing operation It is dispersed in multiple tables of data.When the state of electronic ticket changes, the first step only modifies to underlying database, then It is asynchronous to complete improving and constructing to relatively secondary information such as caching, flowing water tables by message mechanism, it thereby may be ensured that system Treatment effeciency.Such as:The last state of electronic ticket is synchronized in Elasticsearch cluster by system by message mechanism, With will pass through electronic ticket number and shares people, Elasticsearch cluster inquire electronic ticket belonging relation change record.
When the request type for the electronic ticket transfer request that user sends is to sell, thing can be sold according to what is pre-saved The transfer of part progress electronic ticket, wherein event of selling includes selling rule, on-sale date and selling total amount.Wherein, event is sold Approver be electronic ticket founder.In the embodiment of the present invention, each electronic ticket batch for applying selling, is to pass through submission OA examination and approval document creates the event of selling, and the event of selling only has the founder of electronic ticket that could audit, so greatly Enhance the safety of electronic ticket class fictitious assets.
When electronic ticket can be sold, " selling " button can be shown in the corresponding position of electronic ticket, for selection by the user Whether the electronic ticket is sold.After " selling " button when the user clicks, system carries out the information checking of electronic ticket first, main Including:Whether electronic ticket can sell, electronic ticket whether in validity period, user information, sell event information etc..When verification passes through Afterwards, the status modifier of the electronic ticket is " in selling " by system;Then, the relevant information of electronic ticket and user are added to electronics In the tables of data of certificate transaction platform, and by message mechanism, by these synchronizing informations into caching Redis, while by electronic ticket The total amount of selling for selling event changes.Wherein, electronic ticket transaction platform is the electronic ticket fairground that system provides, when having Electronic ticket addition is when selling or selling successfully, can real-time update this time sell event sell electronic ticket quantity, that is, sell total Amount.
When there is buyer to buy electronic ticket by electronic ticket transaction platform, transfer operation performed by system mainly includes:
According to rule is sold, obtain electronic ticket sells the amount of money, wherein sells selling including different electronic tickets in rule It sells the amount of money or sells the accounting etc. of the amount of money Yu electronic ticket denomination, after " selling " button when the user clicks, which sells gold Volume can be generated by system and be shown automatically, it is different get the time, different type or there are the electronic ticket of other differences it is right The amount of money of selling answered may be different.In addition, those skilled in the art are it is recognised that the amount of money of selling of electronic ticket can also be by user Sets itself;
The assets of the buyer of electronic ticket are verified, and deduct the money equal with the amount of money is sold from the assets of buyer It produces, wherein when the assets deficiency of buyer, verification can be prompted to fail;
It modifies the state of electronic ticket and sells total amount, be " having sold " by the status modifier of electronic ticket, and total amount will be sold Subtract 1, while can also save the electronic ticket sells record;
The assets equal with the amount of money is sold will be increased in the assets of user, by message mechanism, calculates the available money of user It produces, and the assets of user is increase accordingly.
According to transfer operation described above, it can be realized and electronic ticket is carried out by the electronic ticket transaction platform that system provides Sell.
In addition, user can check that the electronic ticket is corresponding and sell event, example when an electronic ticket, which has, to sell attribute Such as:Sell rule, on-sale date, sell total amount etc..The state of electronic ticket, example can also be modified according to the sale situation of electronic ticket Such as:If the sale situation of electronic ticket is that buyer has bought, user's cancellation is sold or on-sale date expires, by electronic ticket Status modifier is unused.Also, if expiring if it is on-sale date, then electronic ticket can not be sold again, right The attribute of selling answered will disappearance.
It is similar with the sharing process of electronic ticket, when electronic ticket is sold, in the electronic ticket transfer request that user sends It also may include the buyer of electronic ticket being added to the request of good friend, also, work as buyer and have purchased on electronic ticket transaction platform After electronic ticket, buyer is added to good friend, to carry out sharing, browsing the record sharing, commercial product recommending, activity recommendation of electronic ticket Etc. interaction.
According to the sharing of above-described electronic ticket and the process sold, solve that electronic ticket shifts between user is asked Topic, and user's system based on internal system, without existing social software is relied on, to greatly ensure that fictitious assets turns The safety of shifting.
Fig. 3 is the main modular schematic diagram of the device of transfer electronic ticket according to an embodiment of the present invention.As shown in figure 3, this The device 30 of the transfer electronic ticket of inventive embodiments mainly includes request receiving module 31, transfer processing module 32 and owner's change Module 33.
Request receiving module 31 has transferable category for receiving the electronic ticket transfer request that user sends, the electronic ticket Property, the transfer request includes owner's information of request type and the electronic ticket.
Transfer processing module 32 is used to execute corresponding transfer operation to the electronic ticket according to the request type.
Owner changes module 33 and is used for after the completion of the transfer operation, changes owner's information of the electronic ticket.
According to an embodiment of the invention, the device 30 of transfer electronic ticket can also include that information preservation module (is not shown in figure Out), it is used for:Before receiving the electronic ticket transfer request that user sends, the electronic ticket is pre-saved with transferable attribute Information.
Wherein, transferable attribute may include:Attribute can be shared and/or attribute can be sold;Also, request type includes point It enjoys and sells.When electronic ticket, which only has, to share attribute, the request type for the electronic ticket transfer request that user sends is point It enjoys;When electronic ticket, which only has, to sell attribute, the request type for the electronic ticket transfer request that user sends is to sell;Work as electricity When sub- certificate is with that can share attribute and can sell attribute, the request type for the electronic ticket transfer request that user sends can be sharing Or sell, according to the user's choice depending on.
Technical solution according to an embodiment of the present invention, when request type is to share, transfer operation includes:From the use prestored Selection is sent to by participator, and by electronic ticket by participator in the friend relation at family.
If by participator not in the friend relation of user, by calling external system to carry out transfer operation, transfer behaviour Work includes:By transfer request be transmitted to external system so as to external system user based on the received operational order by electronic ticket point It enjoys in external system being friend relation by participator, user and by participator.
In addition, can also include that good friend will be added to by participator in transfer request, also, after the completion of transfer operation, Good friend will be added to by participator.
In addition, the device 30 of the transfer electronic ticket of the embodiment of the present invention can also include:Data obtaining module (does not show in figure Out), for after it will be added to good friend by participator, obtaining and saving user and believed by participator in the mark of external system Breath, so as to when user carries out electronic ticket good friend selection, it can be seen which good friend is added by external system.
Wherein, it when calling external system to carry out the transfer operation of electronic ticket, if calling external system failure, returns pre- The default value deposited can be made a response in time with guarantee system, guarantee the experience of user.
When request type is to sell, according to the transfer sold event and carry out electronic ticket pre-saved, wherein sell thing Part includes selling rule, on-sale date and selling total amount.
In the embodiment of the present invention, the approver for selling event is the founder of electronic ticket, to enhance electronic ticket class The safety of fictitious assets.
Also, when there is buyer to buy electronic ticket by the electronic ticket transaction platform that system provides, the transfer behaviour of electronic ticket Work includes:According to rule is sold, obtain electronic ticket sells the amount of money;The assets of the buyer of electronic ticket are verified, and from buying The assets equal with the amount of money is sold are deducted in the assets of side;It modifies the state of electronic ticket and sells total amount;It will be in the assets of user Increase the assets equal with the amount of money is sold.
In addition, the device 30 of the transfer electronic ticket of the embodiment of the present invention can also include that data cache module (is not shown in figure Out), it is used for:Before executing corresponding transfer operation to electronic ticket according to request type, the state of electronic ticket is modified, and pass through The information of electronic ticket and state are saved in caching by message synchronization mechanism.And it can be by disappearing in the embodiment of the present invention Breath mechanism carries out the simultaneously operating of the information and state of electronic ticket.
Technical solution according to an embodiment of the present invention determines electricity according to the type for the electronic ticket transfer request that user sends Sub- certificate transfer operation is to share or sell, and then carries out corresponding electronic ticket transfer operation, solves electronic ticket in different use Branch problem between family, and the embodiment of the present invention is user's system based on internal system, without the social activity that dependence is existing Software to realize the circulation of electronic ticket, and ensure that the safety of fictitious assets transfer.
According to an embodiment of the invention, the present invention also provides a kind of terminal devices and a kind of computer for shifting electronic ticket Readable medium.
The terminal device of transfer electronic ticket of the invention includes:One or more processors;Storage device, for storing one A or multiple programs, when one or more of programs are executed by one or more of processors, so that one or more The method that a processor realizes transfer electronic ticket provided by the present invention.
Computer-readable medium of the invention is stored thereon with computer program, real when described program is executed by processor The method of existing transfer electronic ticket provided by the present invention.
Below with reference to Fig. 4, it illustrates the computer systems 400 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 4 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 4, computer system 400 includes central processing unit (CPU) 401, it can be read-only according to being stored in Program in memory (ROM) 402 or be loaded into the program in random access storage device (RAM) 403 from storage section 408 and Execute various movements appropriate and processing.In RAM 403, also it is stored with system 400 and operates required various programs and data. CPU 401, ROM 402 and RAM 403 are connected with each other by bus 404.Input/output (I/O) interface 405 is also connected to always Line 404.
I/O interface 405 is connected to lower component:Importation 406 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 407 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 408 including hard disk etc.; And the communications portion 409 of the network interface card including LAN card, modem etc..Communications portion 409 via such as because The network of spy's net executes communication process.Driver 410 is also connected to I/O interface 405 as needed.Detachable media 411, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 410, in order to read from thereon Computer program be mounted into storage section 408 as needed.
Particularly, disclosed embodiment, the process of key step figure description above may be implemented as counting according to the present invention Calculation machine software program.For example, the embodiment of the present invention includes a kind of computer program product comprising be carried on computer-readable Computer program on medium, the computer program include the program code for executing method shown in key step figure.? In such embodiment, which can be downloaded and installed from network by communications portion 409, and/or from can Medium 411 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 401, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to:Electrical connection with one or more conducting wires, just Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to:Wirelessly, electric wire, optical cable, RF etc. or above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as:A kind of processor packet It includes request receiving module, transfer processing module and owner and changes module.Wherein, the title of these modules is not under certain conditions The restriction to the module itself is constituted, for example, request receiving module is also described as the " electronics sent for receiving user Certificate transfer request, the electronic ticket have transferable attribute, and the transfer request includes owner's letter of request type and electronic ticket The module of breath ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes:The discount coupon electronic ticket transfer request that user sends is received, the electronic ticket has transferable attribute, described Transfer request includes owner's information of request type and the electronic ticket;According to the request type to electronic ticket execution pair The transfer operation answered;After the completion of the transfer operation, owner's information of the electronic ticket is changed.
Technical solution according to an embodiment of the present invention determines electricity according to the type for the electronic ticket transfer request that user sends Sub- certificate transfer operation is to share or sell, and then carries out corresponding electronic ticket transfer operation, solves electronic ticket in different use Branch problem between family, and the embodiment of the present invention is user's system based on internal system, without the social activity that dependence is existing Software to realize the circulation of electronic ticket, and ensure that the safety of fictitious assets transfer.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (15)

1. a kind of method for shifting electronic ticket, which is characterized in that including:
The electronic ticket transfer request that user sends is received, the electronic ticket has transferable attribute, and the transfer request includes asking Seek owner's information of type and the electronic ticket;
Corresponding transfer operation is executed to the electronic ticket according to the request type;
After the completion of the transfer operation, owner's information of the electronic ticket is changed.
2. the method according to claim 1, wherein being gone back before receiving the electronic ticket transfer request that user sends Including:
Pre-save the information that the electronic ticket has transferable attribute.
3. method according to claim 1 or 2, which is characterized in that the transferable attribute includes:Can share attribute and/ Or attribute can be sold;Also, the request type includes sharing and selling.
4. according to the method described in claim 3, it is characterized in that,
When the request type is to share, the transfer operation includes:It is selected from the friend relation of the user prestored By participator, and the electronic ticket is sent to described by participator.
5. according to the method described in claim 4, it is characterized in that,
If it is described by participator not in the friend relation of the user, grasped by calling external system to carry out the transfer Make, the transfer operation includes:The transfer request is transmitted to the external system so that the external system is according to reception The user operational order the electronic ticket is shared with it is described by participator, the user and it is described by participator in institute Stating external system is friend relation.
6. according to the method described in claim 5, it is characterized in that,
The transfer request further includes being added to good friend by participator for described,
Also, after the completion of the transfer operation, good friend is added to by participator by described.
7. according to the method described in claim 6, it is characterized in that, by it is described good friend is added to by participator after, further include:
Obtain and save the user and it is described by participator the external system identification information.
8. according to the method described in claim 5, it is characterized in that,
If the external system is called to fail, the default value prestored is returned.
9. according to the method described in claim 3, it is characterized in that, when the request type is to sell, according to pre-saving The event of selling carry out the transfer of the electronic ticket, wherein the event of selling includes selling rule, on-sale date and selling total Amount.
10. according to the method described in claim 9, it is characterized in that, the approver for selling event is the electronic ticket Founder.
11. according to the method described in claim 9, it is characterized in that, the transfer operation includes:
Rule is sold according to described, obtain the electronic ticket sells the amount of money;
The assets of the buyer of the electronic ticket are verified, and is deducted from the assets of the buyer and sells amount of money phase with described Deng assets;
It modifies the state of the electronic ticket and described sells total amount;
It will increase in the assets of the user and the assets that sell the amount of money equal.
12. the method according to claim 1, wherein
Before executing corresponding transfer operation to the electronic ticket according to the request type, further include:Modify the electronic ticket State, and the information of the electronic ticket and state are saved in caching by message synchronization mechanism;And
The simultaneously operating of the information and state of the electronic ticket is carried out by message mechanism.
13. a kind of device for shifting electronic ticket, which is characterized in that including:
Request receiving module, the electronic ticket transfer request sent for receiving user, the electronic ticket have transferable attribute, institute State owner's information that transfer request includes request type and the electronic ticket;
Transfer processing module, for executing corresponding transfer operation to the electronic ticket according to the request type;
Owner changes module, for changing owner's information of the electronic ticket after the completion of the transfer operation.
14. a kind of terminal device for shifting electronic ticket, which is characterized in that including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-12.
15. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor The method as described in any in claim 1-12 is realized when row.
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 true CN108874836A (en) 2018-11-23
CN108874836B 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)

Cited By (3)

* 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
CN111401939A (en) * 2020-03-05 2020-07-10 云卡联(重庆)互联网科技有限公司 System and method for dynamic transaction of electronic card
CN117314516A (en) * 2023-09-19 2023-12-29 深圳市通商宝科技有限公司 Digital card management method and system

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080052185A1 (en) * 2003-10-24 2008-02-28 Sachin Goel System for concurrent optimization of business economics and customer value
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
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
CN106022812A (en) * 2015-11-06 2016-10-12 刘翔英 Discount coupon electronized issuing, use and transaction method
CN106096962A (en) * 2016-06-12 2016-11-09 财付通支付科技有限公司 Electronic certificate processing method and electronic certificate processing means
CN106230787A (en) * 2016-07-21 2016-12-14 福建星网信通软件有限公司 A kind of authentication method of membership information system for unified management
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

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080052185A1 (en) * 2003-10-24 2008-02-28 Sachin Goel System for concurrent optimization of business economics and customer value
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
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
CN106022812A (en) * 2015-11-06 2016-10-12 刘翔英 Discount coupon electronized issuing, use and transaction method
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
CN106230787A (en) * 2016-07-21 2016-12-14 福建星网信通软件有限公司 A kind of authentication method of membership information system for unified management
CN106651508A (en) * 2016-11-14 2017-05-10 百度在线网络技术(北京)有限公司 User authority sharing method and apparatus

Cited By (3)

* 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
CN111401939A (en) * 2020-03-05 2020-07-10 云卡联(重庆)互联网科技有限公司 System and method for dynamic transaction of electronic card
CN117314516A (en) * 2023-09-19 2023-12-29 深圳市通商宝科技有限公司 Digital card management method and system

Also Published As

Publication number Publication date
CN108874836B (en) 2021-07-16

Similar Documents

Publication Publication Date Title
CN107833040A (en) Method of payment, device, storage medium and terminal
CN108985809A (en) Motivate method, apparatus, electronic equipment and the storage medium of push
AU2015411154A1 (en) Information processing network and method based on uniform code sending and sensing access device
CN102637283A (en) Wireless shopping rebate system based on mobile terminal and realization method
CN106204115B (en) Information popularization method, server and client
CN105719171A (en) Association management system and method used for electronic commerce
KR20200138876A (en) System for electric commerce platform based on controlling price and method for operating the same
CN109831501A (en) Information dispensing method and system based on block chain
CN104766213A (en) Intelligent distribution system of fast moving consumer goods
CN109242565A (en) Businessman's promotion method and device
CN108874836A (en) The method and apparatus for shifting electronic ticket
CN110070394A (en) Data processing method, system, medium and calculating equipment
KR20160121957A (en) The integrated point service management system and method using card point
CN108053341A (en) Marketing management method, server, client and the system of smart travel
CN116703513A (en) Product marketing method, device, equipment and medium based on digital human video
KR20070076601A (en) System and method for selling merchandise related to entertainer, server for selling merchandise, server for operating entertainer stocks transaction and recording medium
CN110503470A (en) A kind of method for running and system of product sales promotion
KR20130035663A (en) System and user terminal for providing personal appstore
CN114445128A (en) Card ticket management method and device, electronic equipment and computer readable medium
WO2018135785A1 (en) Internet shopping mall management method
Chakrabarty Is india poised for m-commerce in the cashless milieu?
CN114756556B (en) Method, device, electronic equipment and computer readable medium for processing account data
CN110070442A (en) A kind of refund processing method, server and storage medium
CN109741055A (en) Blacklist call method, device, server and storage medium
JP7444935B1 (en) Program, information processing device, and method

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