CN118843083A - Method, device, equipment and medium for transferring certificates - Google Patents

Method, device, equipment and medium for transferring certificates Download PDF

Info

Publication number
CN118843083A
CN118843083A CN202411295628.9A CN202411295628A CN118843083A CN 118843083 A CN118843083 A CN 118843083A CN 202411295628 A CN202411295628 A CN 202411295628A CN 118843083 A CN118843083 A CN 118843083A
Authority
CN
China
Prior art keywords
terminal
transfer
credential
page
user
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
CN202411295628.9A
Other languages
Chinese (zh)
Other versions
CN118843083B (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.)
Alipay Hangzhou Digital Service Technology Co ltd
Original Assignee
Alipay Hangzhou 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202510225879.8A priority Critical patent/CN120151787B/en
Priority to CN202411295628.9A priority patent/CN118843083B/en
Publication of CN118843083A publication Critical patent/CN118843083A/en
Application granted granted Critical
Publication of CN118843083B publication Critical patent/CN118843083B/en
Priority to PCT/CN2025/120416 priority patent/WO2026056921A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06KGRAPHICAL DATA READING; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K17/00Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations
    • G06K17/0022Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device
    • G06K17/0025Methods or arrangements for effecting co-operative working between equipments covered by two or more of main groups G06K1/00 - G06K15/00, e.g. automatic card files incorporating conveying and reading operations arrangements or provisions for transferring data to distant stations, e.g. from a sensing device the arrangement consisting of a wireless interrogation device in combination with a device for optically marking the record carrier
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/35Services specially adapted for particular environments, situations or purposes for the management of goods or merchandise
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本说明书实施例公开了一种凭证转移的方法、装置、设备及介质。方案包括:获取用户在凭证转移页面上针对待转出的目标电子凭证的转出操作;基于所述转出操作,将所述目标电子凭证转移至与所述第一终端建立短距离通信连接的第二终端;在所述凭证转移页面上显示将所述目标电子凭证由所述第一终端转出的转出视觉效果。

The embodiments of this specification disclose a method, apparatus, device and medium for transferring a certificate. The scheme includes: obtaining a transfer operation of a user on a certificate transfer page for a target electronic certificate to be transferred out; based on the transfer operation, transferring the target electronic certificate to a second terminal that has established a short-distance communication connection with the first terminal; and displaying a transfer visual effect of transferring the target electronic certificate from the first terminal on the certificate transfer page.

Description

一种凭证转移的方法、装置、设备及介质Method, device, equipment and medium for transferring certificate

技术领域Technical Field

本申请涉及计算机技术领域,尤其涉及一种凭证转移的方法、装置、设备及介质。The present application relates to the field of computer technology, and in particular to a method, device, equipment and medium for transferring credentials.

背景技术Background Art

随着计算机技术的发展,越来越多的业务可以通过智能终端处理,例如购买商品、缴费、查询新闻资讯等。实际应用中,用户在购买演出票、活动票或者门票等电子凭证后,可能会因为一些个人原因或者其他原因而无法到场,需要将拥有的票务等电子凭证转给其他人。With the development of computer technology, more and more businesses can be processed through smart terminals, such as purchasing goods, paying bills, and checking news information. In actual applications, after purchasing electronic vouchers such as performance tickets, event tickets, or tickets, users may be unable to attend the event due to personal reasons or other reasons, and need to transfer the electronic vouchers such as tickets to others.

因此,如何更便捷的将电子凭证转至他人是亟待解决的技术问题。Therefore, how to transfer electronic certificates to others more conveniently is a technical problem that needs to be solved urgently.

发明内容Summary of the invention

本说明书实施例提供一种凭证转移的方法、装置、设备及介质,以解决现有的凭证转移方法存在的操作复杂的问题。The embodiments of the present specification provide a method, apparatus, device and medium for transferring credentials to solve the problem of complex operation in existing credential transfer methods.

为解决上述技术问题,本说明书实施例是这样实现的:To solve the above technical problems, the embodiments of this specification are implemented as follows:

本说明书实施例提供的一种凭证转移的方法,应用于第一终端,包括:A method for transferring credentials provided in an embodiment of the present specification is applied to a first terminal, including:

获取用户在凭证转移页面上针对待转出的目标电子凭证的转出操作;Obtain the user's transfer operation on the certificate transfer page for the target electronic certificate to be transferred out;

基于所述转出操作,将所述目标电子凭证转移至与所述第一终端建立短距离通信连接的第二终端;Based on the transfer-out operation, transferring the target electronic certificate to a second terminal that establishes a short-range communication connection with the first terminal;

在所述凭证转移页面上显示将所述目标电子凭证由所述第一终端转出的转出视觉效果。A transfer visual effect of transferring the target electronic certificate from the first terminal is displayed on the certificate transfer page.

本说明书实施例提供的一种凭证获取的方法,应用于第二终端,包括:A method for obtaining a credential provided in an embodiment of the present specification is applied to a second terminal, including:

建立与第一终端的短距离通信连接;所述第一终端为基于用户的转出操作转出目标电子凭证的终端;Establishing a short-distance communication connection with a first terminal; the first terminal is a terminal for transferring out a target electronic certificate based on a transfer-out operation of a user;

显示凭证转入页面,在所述凭证转入页面中显示将目标电子凭证转入所述第二终端的视觉效果。A credential transfer page is displayed, in which a visual effect of transferring the target electronic credential to the second terminal is displayed.

本说明书实施例提供的一种凭证转移的方法,应用于服务器,包括:A method for transferring credentials provided in an embodiment of the present specification is applied to a server, including:

获取第一终端发送的针对待转出的目标电子凭证的转出请求;所述转出请求是基于所述第一终端的用户在凭证转移页面上针对所述目标电子凭证的转出操作生成的;Acquire a transfer request for a target electronic certificate to be transferred out, sent by the first terminal; the transfer request is generated based on a transfer operation of the user of the first terminal on a certificate transfer page for the target electronic certificate;

基于所述转出请求,将所述目标电子凭证转移至与所述第一终端建立短距离通信连接的第二终端。Based on the transfer-out request, the target electronic certificate is transferred to a second terminal that establishes a short-range communication connection with the first terminal.

本说明书实施例提供的一种凭证转移的装置,包括:An embodiment of the present specification provides a device for transferring a credential, including:

操作获取模块,用于获取用户在凭证转移页面上针对待转出的目标电子凭证的转出操作。The operation acquisition module is used to obtain the transfer operation of the user on the certificate transfer page for the target electronic certificate to be transferred out.

转移模块,用于基于所述转出操作,将所述目标电子凭证转移至与第一终端建立短距离通信连接的第二终端。The transfer module is used to transfer the target electronic certificate to a second terminal that establishes a short-range communication connection with the first terminal based on the transfer-out operation.

效果显示模块,用于在所述凭证转移页面上显示将所述目标电子凭证由所述第一终端转出的转出视觉效果。The effect display module is used to display the transfer visual effect of transferring the target electronic certificate from the first terminal on the certificate transfer page.

本说明书实施例提供的一种凭证获取的装置,包括:An embodiment of the present specification provides a device for obtaining a credential, including:

通信模块,用于建立与第一终端的短距离通信连接;所述第一终端为基于用户的转出操作转出目标电子凭证的终端。The communication module is used to establish a short-distance communication connection with a first terminal; the first terminal is a terminal for transferring out a target electronic certificate based on a transfer-out operation of a user.

页面显示模块,用于显示凭证转入页面,在所述凭证转入页面中显示将目标电子凭证转入第二终端的视觉效果。The page display module is used to display a certificate transfer page, in which the visual effect of transferring the target electronic certificate to the second terminal is displayed.

本说明书实施例提供的一种凭证转移的装置,包括:An embodiment of the present specification provides a device for transferring a credential, including:

请求获取模块,用于获取第一终端发送的针对待转出的目标电子凭证的转出请求;所述转出请求是基于所述第一终端的用户在凭证转移页面上针对所述目标电子凭证的转出操作生成的。The request acquisition module is used to acquire a transfer request for a target electronic certificate to be transferred out sent by the first terminal; the transfer request is generated based on a transfer operation of the user of the first terminal on a certificate transfer page for the target electronic certificate.

转移模块,用于基于所述转出请求,将所述目标电子凭证转移至与所述第一终端建立短距离通信连接的第二终端。A transfer module is used to transfer the target electronic certificate to a second terminal that establishes a short-range communication connection with the first terminal based on the transfer-out request.

本说明书实施例提供的一种凭证转移以及获取的设备,包括:An embodiment of the present specification provides a device for transferring and obtaining credentials, including:

至少一个处理器;以及,at least one processor; and,

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述一种凭证转移或者凭证获取的方法。The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the above-mentioned method of credential transfer or credential acquisition.

本说明书实施例提供的一种计算机可读介质,其上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现上述一种凭证转移或者凭证获取的方法。An embodiment of the present specification provides a computer-readable medium on which computer-readable instructions are stored. The computer-readable instructions can be executed by a processor to implement the above-mentioned method of transferring or acquiring a credential.

本说明书至少一个实施例能够达到以下有益效果:At least one embodiment of this specification can achieve the following beneficial effects:

本说明书实施例中用户在凭证转移页面针对目标电子凭证执行转出操作,就可以将目标电子凭证转移至与第一终端建立短距离通信的第二终端,并且在凭证转移页面还可以显示将目标电子凭证由第一终端转出的转出视觉效果。可简化用户操作,并且可强化用户的视觉效果,也有利于降低用户误操作的可能性,能够提高用户体验。In the embodiment of the present specification, when a user performs a transfer operation on a target electronic certificate on a certificate transfer page, the target electronic certificate can be transferred to a second terminal that establishes short-distance communication with the first terminal, and a transfer visual effect of transferring the target electronic certificate from the first terminal can also be displayed on the certificate transfer page. This can simplify user operations, enhance user visual effects, reduce the possibility of user misoperation, and improve user experience.

另一方面,本说明书实施例中第一终端可以将目标电子凭证转移至与第一终端建立短距离通信的第二终端,提供了一种能够面对面转移电子凭证的方法,例如可以面对面转赠电子票务,从用户角度而言,用户会感觉到是通过终端间的相互感应隔空进行物理转赠,具有趣味性,可有效增加用户间的互动。On the other hand, in the embodiment of the present specification, the first terminal can transfer the target electronic certificate to the second terminal that establishes short-range communication with the first terminal, providing a method for face-to-face transfer of electronic certificates. For example, electronic tickets can be transferred face-to-face. From the user's perspective, the user will feel that the physical transfer is carried out through mutual induction between terminals, which is interesting and can effectively increase interaction between users.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本说明书实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

图1为本说明书实施例中一种凭证转移的方法的应用场景示意图;FIG1 is a schematic diagram of an application scenario of a method for transferring credentials according to an embodiment of the present specification;

图2为本说明书实施例提供的一种凭证转移的方法的流程示意图;FIG2 is a flow chart of a method for transferring a certificate provided in an embodiment of the present specification;

图3为本说明书实施例中提供的一种凭证转移页面的示意图;FIG3 is a schematic diagram of a credential transfer page provided in an embodiment of this specification;

图4为本说明书实施例中提供的一种转出视觉效果的示意图;FIG4 is a schematic diagram of a roll-out visual effect provided in an embodiment of this specification;

图5为本说明书实施例中提供的一种凭证列表页面示意图;FIG5 is a schematic diagram of a credential list page provided in an embodiment of this specification;

图6为本说明书实施例中提供的一种凭证获取的方法的流程示意图;FIG6 is a flow chart of a method for obtaining a credential provided in an embodiment of this specification;

图7为本说明书实施例中提供的一种凭证转入页面的示意图;FIG7 is a schematic diagram of a credential transfer page provided in an embodiment of this specification;

图8为本说明书实施例中提供的一种凭证接收确认页面的示意图;FIG8 is a schematic diagram of a credential receiving confirmation page provided in an embodiment of this specification;

图9为本说明书实施例中提供的一种凭证转移的方法的流程示意图;FIG9 is a flow chart of a method for transferring a certificate provided in an embodiment of this specification;

图10为本说明书实施例提供的对应于图2的一种凭证转移的装置的结构示意图;FIG10 is a schematic diagram of the structure of a device for transferring credentials corresponding to FIG2 provided in an embodiment of this specification;

图11为本说明书实施例提供的对应于图6的一种凭证获取的装置的结构示意图;FIG11 is a schematic diagram of the structure of a credential acquisition device corresponding to FIG6 provided in an embodiment of this specification;

图12为本说明书实施例提供的对应于图9的一种凭证转移的装置的结构示意图;FIG12 is a schematic diagram of the structure of a device for transferring credentials corresponding to FIG9 provided in an embodiment of this specification;

图13为本说明书实施例提供一种凭证转移以及获取的设备的结构示意图。FIG. 13 is a schematic diagram of the structure of a device for transferring and acquiring credentials provided in an embodiment of the present specification.

具体实施方式DETAILED DESCRIPTION

为使本说明书一个或多个实施例的目的、技术方案和优点更加清楚,下面将结合本说明书具体实施例及相应的附图对本说明书一个或多个实施例的技术方案进行清楚、完整地描述。显然,所描述的实施例仅是本说明书的一部分实施例,而不是全部的实施例。基于本说明书中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本说明书一个或多个实施例保护的范围。In order to make the purpose, technical solutions and advantages of one or more embodiments of this specification clearer, the technical solutions of one or more embodiments of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of one or more embodiments of this specification.

以下结合附图,详细说明本说明书各实施例提供的技术方案。The technical solutions provided by the embodiments of this specification are described in detail below in conjunction with the accompanying drawings.

为了解决现有技术中的缺陷,本方案给出了以下实施例:In order to solve the defects in the prior art, this solution provides the following embodiments:

图1为本说明书实施例中一种凭证转移的方法的应用场景示意图。如图1所示,第一终端1的凭证转移页面中可以显示待转出的电子凭证A,如某演唱会的门票,用户可以针对该电子凭证执行转移操作,例如划动或拖动该电子凭证的操作,第一终端中可以显示将该电子凭证移动出第一终端的视觉效果,与第一终端1建立短距离通信的第二终端2中可以显示接收该电子凭证的效果页面,获取到该电子凭证。Figure 1 is a schematic diagram of an application scenario of a method for transferring a certificate in an embodiment of the present specification. As shown in Figure 1, the certificate transfer page of the first terminal 1 can display the electronic certificate A to be transferred, such as a ticket for a concert, and the user can perform a transfer operation on the electronic certificate, such as swiping or dragging the electronic certificate. The first terminal can display the visual effect of moving the electronic certificate out of the first terminal, and the second terminal 2 that establishes short-range communication with the first terminal 1 can display the effect page of receiving the electronic certificate, and obtain the electronic certificate.

接下来,将针对说明书实施例提供的一种凭证转移的方法结合附图进行具体说明。Next, a method for transferring credentials provided in an embodiment of the specification will be described in detail with reference to the accompanying drawings.

图2为本说明书实施例提供的一种凭证转移的方法的流程示意图。从程序角度而言,流程的执行主体可以为搭载于第一终端的程序。从功能角度而言,程序可以包括系统程序、应用程序等等。从硬件角度而言,该流程的执行主体可以包括第一终端。第一终端可以为智能手机、平板电脑、智能手表、便携游戏机等移动终端;也可以为电子票务终端、商品售卖终端等等。FIG2 is a flow chart of a method for transferring a voucher provided in an embodiment of the present specification. From a program perspective, the execution subject of the process may be a program installed on the first terminal. From a functional perspective, the program may include a system program, an application program, and the like. From a hardware perspective, the execution subject of the process may include the first terminal. The first terminal may be a mobile terminal such as a smart phone, a tablet computer, a smart watch, a portable game console, etc.; it may also be an electronic ticketing terminal, a commodity selling terminal, and the like.

如图2所示,该流程可以包括以下步骤。As shown in FIG. 2 , the process may include the following steps.

步骤202:获取用户在凭证转移页面上针对待转出的目标电子凭证的转出操作。Step 202: Obtain the user's transfer operation on the certificate transfer page for the target electronic certificate to be transferred out.

凭证转移页面可以为显示有可转移的电子凭证的页面,该页面中可以包含一个或多个可转移的电子凭证。目标电子凭证为用户想要转出的可转移的电子凭证。电子凭证可以为电子形式的凭证,例如用户线上购买的门票,又如,用户线上领取的优惠券、红包等,用户通过电子凭证可以参与某些活动或者处理业务。The voucher transfer page may be a page showing transferable electronic vouchers, which may include one or more transferable electronic vouchers. The target electronic voucher is the transferable electronic voucher that the user wants to transfer. The electronic voucher may be an electronic voucher, such as a ticket purchased online by the user, or a coupon or red envelope received online by the user. The user may participate in certain activities or handle business through the electronic voucher.

第一终端可以包含显示屏幕和/或关联显示屏幕,屏幕中可以显示凭证转移页面,转出操作可以为用户在该显示页面中的操作。具体的,转出操作可以为预设的能够被终端或者服务器识别为用于转出电子凭证的操作,例如可以为点击操作、选择操作、长摁操作、划动操作、拖动操作、按照预设方向倾斜或转动第一设备的操作等等。凭证转移页面中还可以包含提示用户执行操作的提示信息,例如“右划即可转给好友”等字样的提示信息。The first terminal may include a display screen and/or an associated display screen, and a credential transfer page may be displayed on the screen, and the transfer-out operation may be an operation performed by the user in the display page. Specifically, the transfer-out operation may be a preset operation that can be recognized by the terminal or the server as an operation for transferring out the electronic credential, such as a click operation, a selection operation, a long press operation, a swipe operation, a drag operation, an operation of tilting or rotating the first device in a preset direction, etc. The credential transfer page may also include prompt information prompting the user to perform an operation, such as a prompt information such as "swipe right to transfer to a friend".

步骤204:基于所述转出操作,将所述目标电子凭证转移至与所述第一终端建立短距离通信连接的第二终端。Step 204: Based on the transfer-out operation, the target electronic certificate is transferred to a second terminal that has established a short-range communication connection with the first terminal.

第二终端为能够接收目标电子凭证的终端,第二终端可以是通过短距离通信的方式确定出的位于第一终端附近的终端。第二终端可以与第一终端的类型相同也可以不同,如第二终端可以为智能手机、平板电脑、智能手表、便携游戏机等。实际应用中,第一终端与第二终端的位置较近时,双方可以建立短距离通信连接,例如,NFC通信、蓝牙通信等等。The second terminal is a terminal capable of receiving the target electronic certificate, and the second terminal may be a terminal located near the first terminal determined by short-range communication. The second terminal may be of the same type as the first terminal or may be of a different type, such as a smart phone, a tablet computer, a smart watch, a portable game console, etc. In actual applications, when the first terminal and the second terminal are close to each other, the two parties may establish a short-range communication connection, such as NFC communication, Bluetooth communication, etc.

实际应用中,在凭证转移的整个过程中,第一终端与第二终端的短距离通信连接可以一直存在,也可以在某个阶段存在,无需一直存在。例如第一终端可以通过短距离通信的方式确定接收凭证的第二终端,在确定接收凭证的第二终端后,第一终端与第二终端之间的短距离通信连接可以断开;或者在第二终端确定发送凭证的为第一终端后,第一终端与第二终端之间的短距离通信连接可以断开;又如,第一终端与第二终端之间的短距离通信连接也可以在凭证转移的整个过程中存在。In actual applications, during the entire process of credential transfer, the short-distance communication connection between the first terminal and the second terminal may exist all the time, or may exist at a certain stage, and need not exist all the time. For example, the first terminal may determine the second terminal that receives the credential through short-distance communication, and after determining the second terminal that receives the credential, the short-distance communication connection between the first terminal and the second terminal may be disconnected; or after the second terminal determines that the first terminal is the one that sends the credential, the short-distance communication connection between the first terminal and the second terminal may be disconnected; for another example, the short-distance communication connection between the first terminal and the second terminal may also exist throughout the entire process of credential transfer.

上述与第一终端建立短距离通信连接的第二终端,可以为用户在第一终端中执行转出操作的过程中与第一终端建立短距离通信连接的第二终端,或者,第二终端也可以为在用户执行转出操作之前与第一终端建立过短距离通信连接的第二终端。实际应用中,可以根据实际需求设定建立短距离通信连接的时机。The second terminal that establishes a short-distance communication connection with the first terminal may be a second terminal that establishes a short-distance communication connection with the first terminal during the process of the user performing a transfer-out operation in the first terminal, or the second terminal may be a second terminal that has established a short-distance communication connection with the first terminal before the user performs the transfer-out operation. In practical applications, the timing of establishing a short-distance communication connection may be set according to actual needs.

步骤206:在所述凭证转移页面上显示将所述目标电子凭证由所述第一终端转出的转出视觉效果。Step 206: Displaying a transfer-out visual effect of transferring the target electronic certificate from the first terminal on the certificate transfer page.

本说明书实施例中基于用户执行的转出操作,第一终端的凭证转移页面中可以显示将目标电子凭证转出的转出视觉效果,从用户角度来看,用户可以更直观的感觉到电子凭证由第一终端转出了,例如第一终端可以显示将目标电子凭证转出的动画效果,可以用于给予用户目标电子凭证从第一终端移动出来的视觉效果。又如,第一终端的页面中也可以显示表示第一终端以及第二终端的标识信息,第一终端中可以显示将目标电子凭证由第一终端的标识信息处转出,移动至第二终端的标识信息处的动画效果。标识信息可以为符合终端形状的图像或者也可以是终端登录用户的标识信息,如头像和/或昵称等形式的信息。In the embodiments of this specification, based on the transfer operation performed by the user, the transfer visual effect of transferring the target electronic certificate can be displayed in the certificate transfer page of the first terminal. From the user's perspective, the user can more intuitively feel that the electronic certificate has been transferred out of the first terminal. For example, the first terminal can display an animation effect of transferring the target electronic certificate, which can be used to give the user a visual effect of the target electronic certificate moving out of the first terminal. For another example, the page of the first terminal can also display identification information representing the first terminal and the second terminal. The first terminal can display an animation effect of transferring the target electronic certificate from the identification information of the first terminal to the identification information of the second terminal. The identification information can be an image that conforms to the shape of the terminal or it can be identification information of the terminal login user, such as information in the form of an avatar and/or nickname.

凭证转移页面中显示的转出视觉效果可以是在用户执行转出操作后显示的,或者凭证转移页面中显示的转出视觉效果也可以是在用户执行转出操作的过程中显示的。转出视觉效果的显示时机可以根据实际需求设定。实际应用中,第一终端可以基于转出操作的操作方向显示与该方向一致的转出视觉效果。The roll-out visual effect displayed in the credential transfer page may be displayed after the user performs the roll-out operation, or the roll-out visual effect displayed in the credential transfer page may be displayed during the user's roll-out operation. The display timing of the roll-out visual effect may be set according to actual needs. In actual applications, the first terminal may display a roll-out visual effect consistent with the direction of the roll-out operation based on the operation direction of the roll-out operation.

实际应用中,第一终端在获取到用户的转出操作后,第一终端可以发送请求至服务器,由服务器生成用于显示转出视觉效果的信息并反馈至第一终端,使得第一终端在凭证转移页面中显示将目标电子凭证转出的视觉效果。In actual applications, after obtaining the user's transfer operation, the first terminal can send a request to the server, and the server generates information for displaying the transfer visual effect and feeds it back to the first terminal, so that the first terminal displays the visual effect of transferring the target electronic certificate in the certificate transfer page.

应当理解,本说明书一个或多个实施例所述的方法其中部分步骤的顺序可以根据实际需要相互交换,或者其中的部分步骤也可以省略或删除。It should be understood that the order of some steps in the methods described in one or more embodiments of this specification can be interchanged according to actual needs, or some steps can be omitted or deleted.

图2中的方法,用户在凭证转移页面针对目标电子凭证执行转出操作,就可以将目标电子凭证转移至与第一终端建立短距离通信连接的第二终端,并且凭证转移页面中还可以显示将目标电子凭证由第一终端转出的转出视觉效果。可简化用户操作,并且可强化用户的视觉效果,也有利于降低用户误操作的可能性,能够提高用户体验。In the method in FIG2, the user performs a transfer operation on the target electronic certificate on the certificate transfer page, and the target electronic certificate can be transferred to the second terminal that has established a short-distance communication connection with the first terminal, and the certificate transfer page can also display a transfer visual effect of transferring the target electronic certificate from the first terminal. This can simplify user operations, enhance user visual effects, reduce the possibility of user misoperation, and improve user experience.

另外,本说明书实施例中第一终端可以将目标电子凭证转移至与第一终端建立短距离通信连接的第二终端,本说明书实施例中提供了一种能够面对面转移电子凭证的方法,例如可以面对面转赠电子票务,从用户角度而言,用户会感觉到是通过终端间的相互感应隔空进行物理转赠,具有趣味性,可有效增加用户间的互动。In addition, in the embodiment of the present specification, the first terminal can transfer the target electronic certificate to the second terminal that establishes a short-range communication connection with the first terminal. The embodiment of the present specification provides a method for face-to-face transfer of electronic certificates. For example, electronic tickets can be transferred face-to-face. From the user's perspective, the user will feel that the physical transfer is carried out through the mutual induction between the terminals, which is interesting and can effectively increase the interaction between users.

基于图2的方法,本说明书实施例还提供了该方法的一些具体实施方案,下面进行说明。Based on the method of FIG. 2 , the examples of this specification also provide some specific implementation plans of the method, which are described below.

为了提高用户体验,使得用户感觉是通过自身的操作将电子凭证转至第二终端的,上述转出操作可以包括移动所述目标电子凭证的操作,用户可以在凭证转移页面通过手指等关节划出一条移动轨迹,页面中可以显示目标电子凭证沿着用户操作产生的移动轨迹移动的视觉效果。上述在所述凭证转移页面上显示将所述目标电子凭证由所述第一终端转出的转出视觉效果,具体可以包括:In order to improve the user experience and make the user feel that the electronic certificate is transferred to the second terminal through his own operation, the above transfer operation may include the operation of moving the target electronic certificate. The user can draw a moving track with the fingers or other joints on the certificate transfer page, and the page can display the visual effect of the target electronic certificate moving along the moving track generated by the user operation. The above transfer visual effect of displaying the transfer of the target electronic certificate from the first terminal on the certificate transfer page may specifically include:

基于用户在所述凭证转移页面上的移动轨迹,显示所述目标电子凭证按照所述移动轨迹移动的视觉效果。Based on the movement track of the user on the credential transfer page, a visual effect of the target electronic credential moving along the movement track is displayed.

用户在确定待转出的目标电子凭证后,用户可以对该电子凭证执行拖拽、划动等操作,第一终端可以获取到用户在凭证转移页面中操作的位置信息,第一终端或者服务器可以基于该位置信息,确定用户操作产生的移动轨迹,进而第一终端可以显示将目标电子凭证沿该移动轨迹移动的视觉效果。After the user determines the target electronic certificate to be transferred, the user can perform operations such as dragging and swiping on the electronic certificate. The first terminal can obtain the location information of the user's operation in the certificate transfer page. The first terminal or the server can determine the movement trajectory generated by the user's operation based on the location information, and then the first terminal can display the visual effect of moving the target electronic certificate along the movement trajectory.

实际应用中,用户也可以通过将第一终端按照预设方向倾斜的方式,将目标电子凭证转出,凭证转移页面中可以显示将目标电子凭证沿着第一终端倾斜的方向移动出第一终端的视觉效果。用户可以视觉感觉到将目标电子凭证从第一终端倾倒了出去。用户也可以通过点击、长摁、双击、画圈等方式确定待转出的目标电子凭证,如,用户点击某个电子凭证的显示区域,终端或者服务器可以确定该电子凭证为用户确认转出的电子凭证,凭证转移页面中可以显示将该电子凭证转出的视觉效果。In actual applications, the user can also transfer the target electronic certificate by tilting the first terminal in a preset direction, and the certificate transfer page can display the visual effect of moving the target electronic certificate out of the first terminal along the tilted direction of the first terminal. The user can visually feel that the target electronic certificate is dumped out of the first terminal. The user can also determine the target electronic certificate to be transferred out by clicking, long pressing, double-clicking, drawing a circle, etc. For example, when the user clicks on the display area of a certain electronic certificate, the terminal or server can determine that the electronic certificate is the electronic certificate confirmed to be transferred by the user, and the certificate transfer page can display the visual effect of transferring the electronic certificate.

为了便于用户操作,在凭证转移页面中可以包含表示电子凭证的标识信息。可选的,凭证转移页面中可以包括用于表示所述目标电子凭证的凭证标识信息;所述凭证标识信息为图片形式、虚拟形象形式、文本形式中至少一种形式的信息;上述获取用户在凭证转移页面上针对待转出的目标电子凭证的转出操作,具体可以包括:获取用户在凭证转移页面上针对待转出的目标电子凭证的凭证标识信息的转出操作。In order to facilitate user operations, the credential transfer page may include identification information representing the electronic credential. Optionally, the credential transfer page may include credential identification information for representing the target electronic credential; the credential identification information is information in at least one of a picture form, a virtual image form, and a text form; the above-mentioned obtaining the user's transfer-out operation on the credential transfer page for the target electronic credential to be transferred out may specifically include: obtaining the user's transfer-out operation on the credential transfer page for the credential identification information of the target electronic credential to be transferred out.

凭证转移页面中可以包含表示电子凭证的图片,图片中可以包含电子凭证的主要信息,例如针对的目标对象的信息,使用期限信息,使用地点信息等等,如演唱会的演唱者的图片信息、演唱会举办的时间地点信息等。The voucher transfer page may include a picture representing the electronic voucher, which may include the main information of the electronic voucher, such as information about the target object, validity period information, usage location information, etc., such as picture information of the singers at the concert, time and location information of the concert, etc.

凭证转移页面中也可以以文本的形式表示电子凭证,如文本条、卡片、名片等形式。和/或,凭证转移页面中也可以以星形、雨滴形、球形等规则或不规则的形状的虚拟形象的形式表示电子凭证。和/或,凭证转移页面中也可以以与电子凭证的特征对应的虚拟形象的形式表示电子凭证,例如若电子凭证为演唱会门票,凭证转移页面中可以显示演唱会场地的虚拟形象,和/或,凭证转移页面中也可以显示演唱者的卡通虚拟形象等等来表示电子凭证。若电子凭证为优惠券等可使用的资源,凭证转移页面中可以以红包、卡片等虚拟形象来表示电子凭证。实际应用中,可以根据实际需求设定在凭证转移页面显示的具体形式,这里不作具体限定。The electronic voucher can also be represented in the form of text in the voucher transfer page, such as text bars, cards, business cards, etc. And/or, the electronic voucher can also be represented in the form of a virtual image in a regular or irregular shape such as a star, raindrop, or sphere in the voucher transfer page. And/or, the electronic voucher can also be represented in the form of a virtual image corresponding to the characteristics of the electronic voucher in the voucher transfer page. For example, if the electronic voucher is a concert ticket, the voucher transfer page can display a virtual image of the concert venue, and/or, the voucher transfer page can also display a cartoon virtual image of the singer, etc. to represent the electronic voucher. If the electronic voucher is a usable resource such as a coupon, the electronic voucher can be represented in the voucher transfer page with virtual images such as red envelopes and cards. In actual applications, the specific form displayed on the voucher transfer page can be set according to actual needs, and no specific limitation is made here.

为便于用户操作,凭证显示页面中还可以包括转出确认区域,若用户将电子凭证移动至该区域,可以表示用户确认将该电子凭证转出。上述获取用户在凭证转移页面上针对待转出的目标电子凭证的转出操作,具体可以包括:获取用户将所述目标电子凭证向所述转出确定区域的方向移动的操作。To facilitate user operations, the voucher display page may also include a transfer confirmation area. If the user moves the electronic voucher to the area, it may indicate that the user confirms to transfer the electronic voucher. The above-mentioned obtaining the user's transfer operation on the voucher transfer page for the target electronic voucher to be transferred out may specifically include: obtaining the user's operation of moving the target electronic voucher in the direction of the transfer confirmation area.

对应的,上述在所述凭证转移页面上显示将所述目标电子凭证由所述第一终端转出的视觉效果,具体可以包括:基于用户在所述凭证转移页面上执行的朝向所述转出确定区域的移动轨迹,显示所述目标电子凭证向所述转出确定区域移动的视觉效果。Correspondingly, the above-mentioned visual effect of transferring the target electronic certificate from the first terminal on the certificate transfer page may specifically include: based on the movement trajectory of the user toward the transfer-out determination area on the certificate transfer page, displaying the visual effect of the target electronic certificate moving toward the transfer-out determination area.

作为一种实施方式,转出确定区域可以为凭证转移页面靠近页面边缘的区域。若目标电子凭证所在区域与转出确认区域相交或者相交的区域大于预设阈值,可以表示用户确认将该目标电子凭证转出。转出操作或者第二终端基于从第一终端通过短距离通信连接的方式获取到的通信信息还可以触发第二终端显示接收该目标电子凭证的页面。转出确定区域也可以位于凭证转移页面的其他位置,可根据实际需求设定,这里不做具体限定。As an implementation method, the transfer determination area can be an area of the certificate transfer page close to the edge of the page. If the area where the target electronic certificate is located intersects with the transfer confirmation area or the intersecting area is greater than a preset threshold, it can indicate that the user confirms to transfer the target electronic certificate. The transfer operation or the second terminal can also trigger the second terminal to display a page for receiving the target electronic certificate based on the communication information obtained from the first terminal through a short-distance communication connection. The transfer determination area can also be located at other locations on the certificate transfer page, which can be set according to actual needs and is not specifically limited here.

实际应用中,用户可以将目标电子凭证拖动至转出确定区域,或者用户也可以将目标电子凭证拖动至与转出确定区域相交的位置,也就是用户可以将目标电子凭证整体移动至转出确定区域内或者将目标电子凭证移动至完全覆盖转出确定区域的位置处,或者也可以无需将目标电子凭证整体完全移动至转出确定区域的内部或者将目标电子凭证移动至完全覆盖转出确定区域的位置处,仅需将目标电子凭证拖动至与转出确定区域相交的位置处即可。作为一种实施方式,若用户将目标电子凭证拖动至与转出确定区域相交的位置后不再操作,或者按照指定方向移动目标电子凭证的距离大于或等于预设阈值后不再操作,终端即可以继续显示将目标电子凭证移出第一终端的视觉效果。In actual applications, the user can drag the target electronic certificate to the transfer-out determination area, or the user can also drag the target electronic certificate to a position intersecting with the transfer-out determination area, that is, the user can move the target electronic certificate as a whole to the transfer-out determination area or move the target electronic certificate to a position that completely covers the transfer-out determination area, or there is no need to move the target electronic certificate as a whole to the inside of the transfer-out determination area or move the target electronic certificate to a position that completely covers the transfer-out determination area, and only needs to drag the target electronic certificate to a position intersecting with the transfer-out determination area. As an implementation method, if the user does not operate after dragging the target electronic certificate to a position intersecting with the transfer-out determination area, or does not operate after moving the target electronic certificate in a specified direction for a distance greater than or equal to a preset threshold, the terminal can continue to display the visual effect of moving the target electronic certificate out of the first terminal.

实际应用中,若用户在向转出确定区域移动目标电子凭证的过程中,在目标电子凭证未移动到转出确定区域之前或者目标电子凭证的显示区域与转出确定区域的相交区域小于预设阈值时,用户又将目标电子凭证向回移动,凭证转移页面中也可以显示将目标电子凭证还原的视觉效果。若随着第一终端中目标电子凭证的移动在第二终端中已经显示了将目标电子凭证的部分转入第二终端的动画效果,在第一终端的用户又将目标电子凭证向回移动时,第二终端中也可以显示电子凭证撤回的动画效果。In actual applications, if the user moves the target electronic certificate to the transfer-out determination area, before the target electronic certificate moves to the transfer-out determination area or when the intersection area between the display area of the target electronic certificate and the transfer-out determination area is less than a preset threshold, the user moves the target electronic certificate back, and the certificate transfer page can also display a visual effect of restoring the target electronic certificate. If the animation effect of transferring part of the target electronic certificate to the second terminal has been displayed in the second terminal as the target electronic certificate moves in the first terminal, when the user of the first terminal moves the target electronic certificate back, the animation effect of withdrawing the electronic certificate can also be displayed in the second terminal.

为进一步保证凭证转移的准确性,凭证转移页面中还可以包含接收待转出的电子凭证的第二终端的用户的标识信息,例如标识信息可以为用户昵称、用户头像、用户名称等信息中的至少一种。作为一种实施方式,上述转出确定区域还可以显示所述第二终端的终端用户的用户标识信息。To further ensure the accuracy of the credential transfer, the credential transfer page may also include identification information of the user of the second terminal that receives the electronic credential to be transferred, for example, the identification information may be at least one of a user nickname, a user avatar, a user name, etc. As an implementation, the transfer confirmation area may also display the user identification information of the terminal user of the second terminal.

图3为本说明书实施例中提供的一种凭证转移页面的示意图。如图3所示,凭证转移页面中包括若干个可转移的电子凭证302,可转移的电子凭证302可以是一个也可以是多个,如图3中的凭证A、凭证B以及凭证C。目标电子凭证为若干个可转移的电子凭证中的一个或多个。Fig. 3 is a schematic diagram of a credential transfer page provided in an embodiment of this specification. As shown in Fig. 3, the credential transfer page includes several transferable electronic credentials 302, and the transferable electronic credentials 302 can be one or more, such as credential A, credential B, and credential C in Fig. 3. The target electronic credential is one or more of the several transferable electronic credentials.

凭证转移页面中还可以包括转出确定区域304。转出确定区域304可以表示电子凭证转移至的区域。用户可以将待转出的目标电子凭证拖动至转出确定区域304,或者用户也可以针对待转出的目标电子凭证执行向转出确定区域304的方向划动的操作,如针对凭证A执行右划操作,凭证转移页面中可以显示凭证A向右侧的转出确定区域304移动的动画效果,或者也可以显示凭证A被转出确定区域304吸入的动画效果。The voucher transfer page may also include a transfer-out determination area 304. The transfer-out determination area 304 may indicate the area to which the electronic voucher is transferred. The user may drag the target electronic voucher to be transferred to the transfer-out determination area 304, or the user may swipe the target electronic voucher to be transferred in the direction of the transfer-out determination area 304, such as swiping right on voucher A. The voucher transfer page may display an animation effect of voucher A moving to the right transfer-out determination area 304, or may display an animation effect of voucher A being sucked into the transfer-out determination area 304.

转出确定区域304中还可以包括第二终端的用户的标识信息,例如标识信息可以为昵称,如“小明”字样的信息。和/或,转出确定区域304还可以显示第二终端的用户的头像等信息,以便第一终端的用户对接收凭证的用户进行确认。The transfer-out determination area 304 may also include identification information of the user of the second terminal, for example, the identification information may be a nickname, such as information of "Xiao Ming". And/or, the transfer-out determination area 304 may also display information such as an avatar of the user of the second terminal, so that the user of the first terminal can confirm the user who receives the voucher.

实际应用中,若第二终端位于第一终端的短距离通信的范围内,第二终端可以被确定为接收凭证的终端,第一终端的凭证转移页面中可以显示第二终端的用户标识。第一终端与第二终端可以搭载有相同的终端应用,例如APP、小程序等,待转出的目标电子凭证为第一终端的终端应用中登录的用户账户持有的可转移的电子凭证,第二终端的用户标识可以为第二终端中该终端应用中登录的用户账户的用户标识。In actual applications, if the second terminal is within the short-distance communication range of the first terminal, the second terminal can be determined as the terminal receiving the credential, and the user identification of the second terminal can be displayed in the credential transfer page of the first terminal. The first terminal and the second terminal can be equipped with the same terminal application, such as APP, applet, etc. The target electronic credential to be transferred is a transferable electronic credential held by a user account logged in to the terminal application of the first terminal, and the user identification of the second terminal can be the user identification of the user account logged in to the terminal application in the second terminal.

用户可以将一个或多个凭证转移至第二终端。如图3所示,用户可以将凭证A划至转出确定区域中,也可以继续将凭证C划至转出确定区域中,从而第一终端将凭证A和凭证C都转至第二终端。若第一终端同时或者不同时与多个第二终端建立了短距离通信连接,第一终端的凭证转移页面中可以显示多个第二终端的用户标识信息。凭证转移页面中可以逐步显示各个第二终端的用户标识信息,例如可以根据第二终端与第一终端建立短距离通信连接的时间先后顺序、和/或第二终端与第一终端之间的距离远近顺序等规则显示各个第二终端的用户标识信息。用户也可以将一个或多个凭证分别转至不同的第二终端,如用户可以将凭证A划至一个第二终端M的用户标识“小红”处,将凭证B和凭证C划至另一个第二终端N的用户标识“小明”处,进而第一终端可以将凭证A给到第二终端M的用户,将凭证B和凭证C给到第二终端N的用户。The user can transfer one or more vouchers to the second terminal. As shown in Figure 3, the user can draw voucher A into the transfer determination area, or continue to draw voucher C into the transfer determination area, so that the first terminal transfers both voucher A and voucher C to the second terminal. If the first terminal establishes a short-distance communication connection with multiple second terminals at the same time or at different times, the user identification information of multiple second terminals can be displayed in the voucher transfer page of the first terminal. The user identification information of each second terminal can be gradually displayed in the voucher transfer page, for example, the user identification information of each second terminal can be displayed according to the time sequence of the establishment of the short-distance communication connection between the second terminal and the first terminal, and/or the distance sequence between the second terminal and the first terminal. The user can also transfer one or more vouchers to different second terminals respectively, such as the user can draw voucher A to the user identification "Xiaohong" of a second terminal M, and draw voucher B and voucher C to the user identification "Xiaoming" of another second terminal N, and then the first terminal can give voucher A to the user of the second terminal M, and voucher B and voucher C to the user of the second terminal N.

转出确定区域的位置也可以根据第二终端与第一终端的相对位置来确定,作为一种实施方式,转出确定区域可以位于凭证转移页面中靠近第二终端的页面边缘处。如第二终端位于第一终端的右侧,则转出确定区域可以位于凭证转移页面的右侧边缘处;若第二终端位于第一终端的左侧,则转出确定区域可以位于凭证转移页面的左侧边缘处。The position of the transfer-out determination area can also be determined according to the relative position of the second terminal and the first terminal. As an implementation method, the transfer-out determination area can be located at the edge of the page close to the second terminal in the credential transfer page. If the second terminal is located on the right side of the first terminal, the transfer-out determination area can be located at the right edge of the credential transfer page; if the second terminal is located on the left side of the first terminal, the transfer-out determination area can be located at the left edge of the credential transfer page.

凭证转移页面中还可以包括提示信息306,用于提示用户如何操作进行凭证转出,如“右划即可转出”字样。提示信息306的具体内容也可以根据第二终端与第一终端的相对位置来确定。作为一种实施方式,提示信息的内容可以是提示用户向第二终端所在方向划动的提示信息。如第二终端位于第一终端的右侧,可以显示提示用户右划的提示信息,对应的转出确定区域可以位于凭证转移页面的右侧边缘处;若第二终端位于第一终端的左侧,可以显示提示用户左划的提示信息,对应的转出确定区域可以位于凭证转移页面的左侧边缘处。实际应用中,第二终端也可以位于第一终端的上方、下方、左上角、或右下角等位置处,也可以生成对应的提示信息或者转出确定区域,这里不再一一列举。The credential transfer page may also include a prompt message 306 to prompt the user how to transfer out the credential, such as the words "swipe right to transfer out". The specific content of the prompt message 306 can also be determined according to the relative position of the second terminal and the first terminal. As an implementation method, the content of the prompt message may be a prompt message prompting the user to swipe in the direction of the second terminal. If the second terminal is located on the right side of the first terminal, a prompt message prompting the user to swipe right may be displayed, and the corresponding transfer determination area may be located at the right edge of the credential transfer page; if the second terminal is located on the left side of the first terminal, a prompt message prompting the user to swipe left may be displayed, and the corresponding transfer determination area may be located at the left edge of the credential transfer page. In actual applications, the second terminal may also be located above, below, in the upper left corner, or in the lower right corner of the first terminal, and may also generate corresponding prompt messages or transfer determination areas, which are not listed here one by one.

若第一终端附近有多个第二终端,凭证转移页面也可以根据各个第二终端相对于第一终端的位置,显示各个第二终端的用户标识信息。如若第一终端的左侧为第二终端M,同时或者不同时第二终端N出现在了第一终端的右侧,则凭证转移页面的左侧可以显示第二终端M的用户标识,凭证转移页面的右侧可以显示第二终端N的用户标识。凭证转移页面中也可以显示提示用户分别向各个第二终端所在的方向操作的提示信息,如“分别向各好友划动凭证即可转移”字样的提示信息。If there are multiple second terminals near the first terminal, the credential transfer page can also display the user identification information of each second terminal according to the position of each second terminal relative to the first terminal. If the left side of the first terminal is the second terminal M, and the second terminal N appears on the right side of the first terminal at the same time or at different times, the user identification of the second terminal M can be displayed on the left side of the credential transfer page, and the user identification of the second terminal N can be displayed on the right side of the credential transfer page. The credential transfer page can also display prompt information prompting the user to operate in the direction of each second terminal, such as a prompt information that says "Swipe the credential to each friend to transfer it."

图4为本说明书实施例中提供的一种转出视觉效果的示意图。如图4所示,用户执行转出操作后,如右划凭证C,或者拖动凭证C向右移动,凭证转移页面中可以显示将凭证C移出第一终端的动画视觉效果。Figure 4 is a schematic diagram of a transfer-out visual effect provided in an embodiment of the present specification. As shown in Figure 4, after the user performs a transfer-out operation, such as swiping right on voucher C, or dragging voucher C to the right, an animated visual effect of moving voucher C out of the first terminal may be displayed on the voucher transfer page.

实际应用中,凭证转移页面中可以使用一个凭证标识信息表示一个或多个电子凭证,具体的,可以使用一个凭证标识信息表示同一对象的一个或多个电子凭证,在凭证标识信息中还可以显示该凭证标识信息表示的电子凭证的数量信息。如上述图3所示,假设凭证C表示某演唱会的门票,若用户持有该演唱会的多张门票,如2张,凭证转移页面中可以显示针对该演唱会的一个凭证标识信息,如图3中的凭证C可以表示2张演唱会门票,凭证转移页面中可以利用一张图片表示2张演唱会门票。用户可以一次性转出针对同一对象的多个电子凭证。如上述图3以及图4所示,假设用户需要转出凭证C,凭证C表示2张某演唱会的门票,用户针对显示的凭证C执行右划操作,可以向第二终端转移2张该演唱会的门票。In actual applications, a voucher identification information can be used in the voucher transfer page to represent one or more electronic vouchers. Specifically, a voucher identification information can be used to represent one or more electronic vouchers of the same object, and the quantity information of the electronic vouchers represented by the voucher identification information can also be displayed in the voucher identification information. As shown in Figure 3 above, assuming that voucher C represents a ticket for a concert, if the user holds multiple tickets for the concert, such as 2 tickets, a voucher identification information for the concert can be displayed in the voucher transfer page. For example, voucher C in Figure 3 can represent 2 concert tickets, and a picture can be used in the voucher transfer page to represent 2 concert tickets. The user can transfer multiple electronic vouchers for the same object at one time. As shown in Figures 3 and 4 above, assuming that the user needs to transfer voucher C, voucher C represents 2 tickets for a concert, the user performs a right swipe operation on the displayed voucher C, and can transfer 2 tickets for the concert to the second terminal.

用户也可以一次操作转出一个电子凭证,如用户针对显示的凭证C执行右划操作,可以向第二终端转移1张演唱会的门票。本说明书实施例中若凭证转移页面中显示的凭证标识信息表示多个电子凭证,凭证转移页面中可以基于用户针对目标电子凭证的转出操作,显示数量变化后的凭证标识信息,例如凭证转移页面中还可以显示凭证C,但凭证C中显示的凭证数量由2张变为1张。The user can also transfer out one electronic voucher at a time, for example, the user can transfer one concert ticket to the second terminal by swiping right on the displayed voucher C. In the embodiments of this specification, if the voucher identification information displayed on the voucher transfer page represents multiple electronic vouchers, the voucher transfer page can display the voucher identification information after the quantity changes based on the user's transfer operation on the target electronic voucher. For example, the voucher C can still be displayed on the voucher transfer page, but the number of vouchers displayed in voucher C changes from 2 to 1.

本说明书实施例中,用户也可以选择转出凭证的数量,作为一种实施方式,用户在凭证转移页面中选中待转出的目标电子凭证后,用户针对目标电子凭证的显示区域执行如点击、双击、长摁等操作后,可以表示用户选中了待转出的目标电子凭证。凭证转移页面中可以显示数量设置区域,如在目标电子凭证的显示区域内或者显示区域周边或者其他位置,可以以弹窗、文本条、对话框等形式显示能够设置数量的区域,用户可以填写或者选择数量,在用户确定转出凭证的数量后,用户可以执行转出操作,转出确定数量的凭证。In the embodiments of this specification, the user can also select the number of vouchers to be transferred out. As an implementation method, after the user selects the target electronic voucher to be transferred out in the voucher transfer page, the user performs operations such as clicking, double-clicking, and long pressing on the display area of the target electronic voucher, which can indicate that the user has selected the target electronic voucher to be transferred out. The voucher transfer page can display a quantity setting area, such as in the display area of the target electronic voucher or around the display area or other locations, and the area where the quantity can be set can be displayed in the form of a pop-up window, a text bar, a dialog box, etc. The user can fill in or select the quantity. After the user determines the number of vouchers to be transferred out, the user can perform the transfer operation to transfer out the determined number of vouchers.

本说明书实施例中凭证转移页面也可以显示各个凭证的凭证标识信息,若用户持有针对同一对象的多个电子凭证,也可以将该多个电子凭证的凭证标识信息均显示在凭证转移页面中,一个凭证标识信息可以表示一个电子凭证,如可以堆叠的方式显示多个电子凭证的凭证标识信息。用户执行一次转出操作,可以转出一个电子凭证。接续上例,假设用户持有某演唱会的2张门票,凭证转移页面中可以显示两个表示该演唱会门票的电子凭证的凭证标识信息,两个凭证标识信息的显示的内容可以相同也可以不同,用户可以选中一个凭证标识信息执行转出操作,如右划,向第二终端转移一张门票。若用户想要继续向第二终端转移凭证,还可以继续执行转出操作,如再向第二终端转出该演唱会的另一张门票,或者其他电子凭证。In the embodiments of this specification, the voucher transfer page can also display the voucher identification information of each voucher. If the user holds multiple electronic vouchers for the same object, the voucher identification information of the multiple electronic vouchers can also be displayed in the voucher transfer page. One voucher identification information can represent one electronic voucher, such as the voucher identification information of multiple electronic vouchers can be displayed in a stacked manner. A user can transfer out one electronic voucher by performing a transfer operation. Continuing with the above example, assuming that the user holds two tickets for a concert, the voucher transfer page can display the voucher identification information of two electronic vouchers representing the concert tickets. The displayed content of the two voucher identification information can be the same or different. The user can select one voucher identification information to perform a transfer operation, such as swiping right to transfer a ticket to the second terminal. If the user wants to continue to transfer the voucher to the second terminal, he can continue to perform the transfer operation, such as transferring another ticket for the concert or other electronic vouchers to the second terminal.

为便于用户操作,凭证转移页面中还可以包含用于以不同形式显示可转移电子凭证的显示样式控件,若获取到用户对该控件的操作,可以以不同的形式显示电子凭证。作为一种实施方式,若获取到用户对显示样式控件的第一操作,凭证转移页面中可以以单个凭证的形式显示各个电子凭证,这种情况下,凭证转移页面中显示的一个凭证标识信息表示一个电子凭证。如针对同一演唱会的两张门票,在凭证转移页面中针对每张门票均可以显示一个电子凭证。若获取到用户对显示样式控件的第二操作,凭证转移页面中可以以组合凭证的形式显示各个电子凭证,这种情况下,若第一终端的用户具有针对同一对象的多个电子凭证,凭证转移页面中显示的一个凭证标识信息可以表示针对同一个对象的多个电子凭证,如针对同一演唱会的两张门票,可以显示一个电子凭证。To facilitate user operation, the voucher transfer page may also include a display style control for displaying transferable electronic vouchers in different forms. If the user's operation on the control is obtained, the electronic voucher can be displayed in different forms. As an implementation, if the user's first operation on the display style control is obtained, each electronic voucher can be displayed in the form of a single voucher in the voucher transfer page. In this case, one voucher identification information displayed in the voucher transfer page represents one electronic voucher. For example, for two tickets for the same concert, one electronic voucher can be displayed for each ticket in the voucher transfer page. If the user's second operation on the display style control is obtained, each electronic voucher can be displayed in the form of a combined voucher in the voucher transfer page. In this case, if the user of the first terminal has multiple electronic vouchers for the same object, one voucher identification information displayed in the voucher transfer page can represent multiple electronic vouchers for the same object, such as one electronic voucher can be displayed for two tickets for the same concert.

实际应用中,为便于用户操作,终端应用的首页或者其他页面中可以包含用于显示凭证转移页面的控件。可选的,本说明书实施例中的方法还可以包括:In actual applications, to facilitate user operation, the homepage or other pages of the terminal application may include a control for displaying the credential transfer page. Optionally, the method in the embodiment of this specification may also include:

获取用户执行的转出触发操作;Get the roll-out trigger operation performed by the user;

显示包含若干个可转出电子凭证的所述凭证转移页面。The certificate transfer page containing several transferable electronic certificates is displayed.

其中,转出触发操作可以是用户针对第一终端的显示页面中用于显示凭证转移页面的控件的操作,或者转出触发操作也可以是对第一终端中预先定义的操作按键的操作。The transfer-out triggering operation may be an operation by a user on a control for displaying a credential transfer page in a display page of the first terminal, or the transfer-out triggering operation may be an operation on a predefined operation button in the first terminal.

可转出电子凭证为允许转给其他用户使用的凭证,在电子凭证的介绍信息中或者使用信息中,通常会包含电子凭证的使用期限、使用地点、注意事项等信息,其中可以包含表示凭证是否可以转让或转赠的信息。A transferable electronic certificate is a certificate that is allowed to be transferred to other users for use. The introduction information or usage information of the electronic certificate usually includes information such as the validity period, usage location, precautions, etc. of the electronic certificate, which may include information indicating whether the certificate can be transferred or donated.

作为一种实施方式,第一终端可以基于转出触发操作发送请求至服务器,服务器基于该请求可以确定第一终端的用户持有的可转出的电子凭证的信息,服务器还可以生成凭证转移页面信息,并发送至第一终端,第一终端可以显示凭证转移页面。As an implementation mode, the first terminal can send a request to the server based on the transfer trigger operation. The server can determine the information of the transferable electronic certificate held by the user of the first terminal based on the request. The server can also generate the certificate transfer page information and send it to the first terminal. The first terminal can display the certificate transfer page.

为便于用户管理持有的电子凭证,终端应用中通常会设置有能够显示用户持有的各个电子凭证的凭证列表页,如票夹页面、卡包页面、红包页面等等。上述转出触发操作可以是在凭证列表页执行的操作。To facilitate users to manage their electronic certificates, terminal applications usually have a certificate list page that can display the electronic certificates held by the user, such as a wallet page, a card package page, a red envelope page, etc. The above transfer trigger operation can be an operation performed on the certificate list page.

图5为本说明书实施例中提供的一种凭证列表页面示意图。如图5所示,凭证列表页面可以包含第一终端的用户持有的各个凭证的凭证信息502,凭证列表页面还可以包含转移触发控件504。转移触发控件504处还可以包含控件名称等信息,以便用户了解控件的作用,如“转赠我的票”等字样。若用户点击了该转移触发控件504,可以表示用户执行了转移触发操作,第一终端可以显示凭证转移页面。FIG5 is a schematic diagram of a voucher list page provided in an embodiment of the present specification. As shown in FIG5 , the voucher list page may include voucher information 502 of each voucher held by a user of the first terminal, and the voucher list page may also include a transfer trigger control 504. The transfer trigger control 504 may also include information such as a control name so that the user can understand the function of the control, such as words such as "transfer my ticket". If the user clicks the transfer trigger control 504, it may indicate that the user has performed a transfer trigger operation, and the first terminal may display a voucher transfer page.

实际应用中,凭证列表页面可以显示用户持有的凭证,凭证可以包括待使用的凭证,或者,还可以包括历史凭证、已失效的凭证、已使用的凭证中至少一种凭证等信息。凭证列表页面可以优先显示待使用的凭证。In actual applications, the credential list page can display the credentials held by the user, and the credentials can include credentials to be used, or can also include information such as historical credentials, expired credentials, and at least one of used credentials. The credential list page can give priority to displaying credentials to be used.

本说明书实施例中可转移的电子凭证可以为能够被使用的凭证,如在有效期内的凭证,又如未被使用的凭证等等。电子凭证可以为能够通过终端等电子设备使用的凭证,可以是各种场景中的凭证,如演唱会门票、体育赛事的门票、景点门票等等,也可以是电子优惠券、电子红包等表示资源的凭证,也可以是用于出行的车票等,如用于乘坐景点列车、公交车、地铁、火车、飞机等运输工具的票务等,也可以是参加一些活动的门票等。In the embodiments of this specification, the transferable electronic voucher may be a voucher that can be used, such as a voucher within the validity period, or an unused voucher, etc. The electronic voucher may be a voucher that can be used through electronic devices such as terminals, and may be a voucher in various scenarios, such as concert tickets, sports event tickets, scenic spot tickets, etc. It may also be a voucher representing resources such as an electronic coupon or an electronic red envelope, or a ticket for travel, such as a ticket for taking a scenic train, bus, subway, train, airplane, or other transportation means, or a ticket for participating in some activities.

可选的,本说明书实施例中上述目标电子凭证可以包括未被使用且在有效期内的电子凭证。具体可以包括用于参与休闲娱乐活动的电子凭证、用于参与竞赛活动的电子凭证、用于出行的电子凭证、用于表示享有的优惠信息的电子凭证中至少一种。Optionally, in the embodiments of this specification, the target electronic certificate may include an unused and valid electronic certificate, which may include at least one of an electronic certificate for participating in leisure and entertainment activities, an electronic certificate for participating in competition activities, an electronic certificate for travel, and an electronic certificate for indicating preferential information enjoyed.

如图5所示,凭证列表页面还可以包含各凭证的数量信息、获取凭证的时间信息、凭证对象信息、凭证使用时间、使用地点中至少一种凭证相关信息。As shown in FIG. 5 , the voucher list page may further include at least one voucher-related information of the quantity information of each voucher, the time information of obtaining the voucher, the voucher object information, the voucher usage time, and the usage location.

为提高用户体验,凭证转移页面中可以动态显示可转移的电子凭证。作为一种实施方式,上述显示包含若干个可转出电子凭证的所述凭证转移页面,具体可以包括:在所述凭证转移页面中显示将若干个可转出电子凭证按照预设顺序载入凭证转移页面的动画效果。To improve the user experience, the credential transfer page can dynamically display the transferable electronic credentials. As an implementation, the credential transfer page containing a plurality of transferable electronic credentials can specifically include: displaying an animation effect of loading a plurality of transferable electronic credentials into the credential transfer page in a preset order on the credential transfer page.

其中,所述预设顺序至少包括以下一种顺序:基于凭证的有效期得到的排序;基于所述第一终端的用户获取到凭证的时间得到的排序;基于所述第一终端的用户的偏好得到的排序;基于凭证的可使用时间与当前时间的匹配度得到的排序;以及基于凭证对应的对象的热门程度得到的排序。Among them, the preset order includes at least one of the following orders: an order obtained based on the validity period of the certificate; an order obtained based on the time when the user of the first terminal obtains the certificate; an order obtained based on the preference of the user of the first terminal; an order obtained based on the matching degree between the usable time of the certificate and the current time; and an order obtained based on the popularity of the object corresponding to the certificate.

各个可转出电子凭证可以从页面的底部载入,也可以从顶部、左侧、右侧、中间处或边角处载入,可根据实际需求设定。Each transferable electronic certificate can be loaded from the bottom of the page, or from the top, left, right, middle or corner, and can be set according to actual needs.

实际应用中,服务器可以根据各个凭证的相关信息,可以确定凭证的有效期、获取时间等信息,也可以在用户授权的基础上,结合用户的偏好信息生成将各个凭证按照顺序载入的动画效果,并发送至第一终端进行显示。例如服务器可以按照凭证获取的信息,将各个可转出的凭证按照获取时间的顺序进行排序,使得凭证转移页面可以先载入先获取到的凭证,后载入最新获取到的凭证,或者,凭证转移页面也可以按照相反的顺序载入。又如,凭证转移页面可以先载入当前时间距离有效期较远的凭证,后载入有效期较近的凭证,或者,凭证转移页面也可以优先载入有效期较近的凭证后载入有效期较远的凭证。又如,凭证转移页面可以先载入或者后载入与用户偏好的匹配度高的凭证;又如,凭证转移页面可以先载入或者后载入与当前热门事件相关的凭证,如用户在执行转移触发操作时,是举行运动会的期间,若用户持有运动会的门票或者与运动会相关活动的票务,凭证转移页面可以优先载入与运动会相关的凭证,或者,凭证转移页面可以后载入与运动会相关的凭证,使得该凭证可以显示于其他凭证的上层。具体载入顺序可以根据实际需求设定,这里不作具体限定。In actual applications, the server can determine the validity period, acquisition time and other information of the certificate based on the relevant information of each certificate, and can also generate an animation effect of loading each certificate in order based on the user's authorization and the user's preference information, and send it to the first terminal for display. For example, the server can sort the various transferable certificates in the order of acquisition time according to the information obtained by the certificate, so that the certificate transfer page can first load the first obtained certificate and then load the latest obtained certificate, or the certificate transfer page can also be loaded in the opposite order. For example, the certificate transfer page can first load the certificate with a longer validity period at the current time, and then load the certificate with a closer validity period, or the certificate transfer page can also load the certificate with a closer validity period first and then the certificate with a longer validity period. For another example, the voucher transfer page can first load or later load vouchers that have a high degree of match with the user's preference; for another example, the voucher transfer page can first load or later load vouchers related to the current hot event, such as when the user performs the transfer trigger operation, it is during the period of a sports meeting, if the user holds a ticket for the sports meeting or a ticket for an event related to the sports meeting, the voucher transfer page can first load the voucher related to the sports meeting, or the voucher transfer page can load the voucher related to the sports meeting later, so that the voucher can be displayed on the upper layer of other vouchers. The specific loading order can be set according to actual needs and is not specifically limited here.

为提高用户体验,第一终端的用户将凭证转出后,第一终端还可以显示表示转出结果的信息,如第一终端可以以应用通知、弹窗、短信等方式中的至少一种方式显示提示信息。可选的,本说明书实施例中的方法还可以包括:显示包含转出结果的提示信息。To improve user experience, after the user of the first terminal transfers the voucher, the first terminal may also display information indicating the transfer result, such as the first terminal may display prompt information in at least one of application notification, pop-up window, SMS, etc. Optionally, the method in the embodiment of this specification may further include: displaying prompt information including the transfer result.

具体的提示信息可以包括表示转出成功的结果信息,或者,也可以是表示转出失败的结果信息。实际应用中,若第二终端使用了第一终端转出的电子凭证,第一终端也可以获取表示凭证被使用的提示信息,和/或,第一终端也可以获取表示第二终端的用户对第一终端的用户转移凭证的感谢信息。其中,感谢信息可以是第二终端的用户设置的,也可以是服务器在第二终端用户的授权的基础上生成的。The specific prompt information may include result information indicating that the transfer is successful, or may also be result information indicating that the transfer is unsuccessful. In actual applications, if the second terminal uses the electronic certificate transferred by the first terminal, the first terminal may also obtain prompt information indicating that the certificate is used, and/or the first terminal may also obtain thank you information from the user of the second terminal to the user of the first terminal for transferring the certificate. The thank you information may be set by the user of the second terminal, or may be generated by the server based on the authorization of the user of the second terminal.

基于同样的思路,本说明书实施例中还提供了以第二终端为执行主体的方法。图6为本说明书实施例中提供的一种凭证获取的方法的流程示意图。从程序角度而言,流程的执行主体可以为搭载于第二终端的程序。按功能角度而言,该程序可以包括终端应用程序、系统软件程序等。从硬件角度而言,该流程的执行主体包括第二终端。第二终端可以为智能手机、平板电脑、智能手表或便携游戏机等移动终端;或者第二终端也可以为电子票务终端或商品售卖终端等等。Based on the same idea, a method with a second terminal as the execution subject is also provided in the embodiments of this specification. Figure 6 is a flow chart of a method for obtaining a credential provided in the embodiments of this specification. From a program perspective, the execution subject of the process can be a program installed on the second terminal. From a functional perspective, the program can include terminal applications, system software programs, etc. From a hardware perspective, the execution subject of the process includes a second terminal. The second terminal can be a mobile terminal such as a smart phone, a tablet computer, a smart watch, or a portable game console; or the second terminal can also be an electronic ticketing terminal or a commodity sales terminal, etc.

如图6所示,该流程可以包括以下步骤。As shown in FIG. 6 , the process may include the following steps.

步骤602:建立与第一终端的短距离通信连接。Step 602: Establish a short-range communication connection with a first terminal.

第一终端以及第二终端具有短距离通信模块,例如蓝牙通信模块、NFC通信模块等。第二终端与第一终端的距离在短距离通信距离内时,可以建立短距离通信连接。The first terminal and the second terminal have short-distance communication modules, such as a Bluetooth communication module, an NFC communication module, etc. When the distance between the second terminal and the first terminal is within the short-distance communication distance, a short-distance communication connection can be established.

其中,第一终端为基于用户的转出操作转出目标电子凭证的终端,具体可以是按照上述实施例中的方式转出电子凭证的,具体的可以参见上述实施例中的描述,这里不再赘述。Among them, the first terminal is a terminal that transfers out the target electronic certificate based on the user's transfer-out operation. Specifically, the electronic certificate can be transferred out in the manner described in the above embodiment. For details, please refer to the description in the above embodiment, which will not be repeated here.

步骤604:显示凭证转入页面,在所述凭证转入页面中显示将目标电子凭证转入所述第二终端的视觉效果。Step 604: Displaying a credential transfer page, in which a visual effect of transferring the target electronic credential to the second terminal is displayed.

凭证转入页面可以是第二终端基于与第一终端建立的短距离通信连接触发显示的,该页面中可以动态的显示将目标电子凭证转入第二终端的视觉效果,可以生动的显示电子凭证转入的过程。The credential transfer page can be triggered and displayed by the second terminal based on the short-distance communication connection established with the first terminal. The page can dynamically display the visual effect of transferring the target electronic credential to the second terminal and can vividly display the process of electronic credential transfer.

本说明书实施例中第二终端通过与第一终端建立短距离通信连接后,可以显示凭证转入页面,并且在凭证转入页面中可以显示目标电子凭证转入的视觉效果,可强化用户的视觉效果,提高用户体验。In the embodiment of the present specification, after the second terminal establishes a short-distance communication connection with the first terminal, a credential transfer page can be displayed, and the visual effect of the target electronic credential transfer can be displayed on the credential transfer page, which can enhance the user's visual effect and improve the user experience.

另外,本说明书实施例中第二终端与第一终端建立短距离通信连接,第二终端可以获取第一终端转出的目标电子凭证,本说明书实施例中提供了一种能够面对面转移电子凭证的方法,例如可以面对面转赠电子票务,从用户角度而言,用户会感觉到是通过终端间的相互感应隔空进行物理转赠,具有趣味性,可有效增加用户间的互动。In addition, in the embodiment of the present specification, the second terminal establishes a short-distance communication connection with the first terminal, and the second terminal can obtain the target electronic certificate transferred by the first terminal. The embodiment of the present specification provides a method for face-to-face transfer of electronic certificates, for example, face-to-face transfer of electronic tickets. From the user's perspective, the user will feel that the physical transfer is carried out through mutual induction between the terminals, which is interesting and can effectively increase interaction between users.

需要说明的是,对于第一终端而言也可以自己实施本说明书提供的方案,若第二终端本身不支持前面的视觉效果呈现,比如,第二终端未进行相应的升级改造,或者第二终端甚至可能没有面向用户的显示屏,那么,可以仅在第一终端上呈现相应的视觉效果,如此,仍然有助于一定程度提高用户体验,同时也提高了方案的灵活性和适用范围。It should be noted that the first terminal can also implement the solution provided in this specification by itself. If the second terminal itself does not support the previous visual effect presentation, for example, the second terminal has not been upgraded accordingly, or the second terminal may not even have a display screen facing the user, then the corresponding visual effects can be presented only on the first terminal. In this way, it still helps to improve the user experience to a certain extent, while also improving the flexibility and scope of application of the solution.

图7为本说明书实施例中提供的一种凭证转入页面的示意图,如图7所示,该页面中可以动态显示目标电子凭证转入第二终端的视觉效果。具体的该页面中可以显示将目标电子凭证从第二终端的显示页面的指定边缘移动至显示页面的过程,从用户角度可以感觉好像是电子凭证由某个方向进入到第二终端。例如飞入、跳入、闪现入第二终端等。FIG7 is a schematic diagram of a credential transfer page provided in an embodiment of the present specification. As shown in FIG7 , the page can dynamically display the visual effect of the target electronic credential being transferred to the second terminal. Specifically, the page can display the process of moving the target electronic credential from the designated edge of the display page of the second terminal to the display page. From the user's perspective, it can feel as if the electronic credential enters the second terminal from a certain direction. For example, it flies in, jumps in, flashes into the second terminal, etc.

作为一种实施方式,第二终端可以基于第一终端转出凭证的视觉效果显示被转入的视觉效果。上述将目标电子凭证转入第二终端的视觉效果,具体可以包括:将所述目标电子凭证由所述第二终端的预设边缘处转入的视觉效果;所述预设边缘为靠近所述第一终端中转出所述目标电子凭证的边缘。As an implementation mode, the second terminal can display the visual effect of the transferred-in credential based on the visual effect of the transferred-out credential of the first terminal. The visual effect of transferring the target electronic credential into the second terminal may specifically include: the visual effect of transferring the target electronic credential from a preset edge of the second terminal; the preset edge is close to the edge of the first terminal from which the target electronic credential is transferred out.

例如,假设第一终端与第二终端的放置方向一致,第二终端位于第一终端的右侧,用户在第一终端中通过右划操作将凭证转出,第二终端中可以显示凭证从第二终端左侧划入并向右侧移动的视觉效果。又如,若第二终端位于第一终端的底部,用户在第一终端中通过向下划的操作将凭证转出,第一终端中显示将凭证从第一终端的底部转出的视觉效果,第二终端中可以显示从第二终端的顶部转入的视觉效果。For example, assuming that the first terminal and the second terminal are placed in the same direction, the second terminal is located on the right side of the first terminal, and the user transfers the voucher out by swiping right in the first terminal, the second terminal can display a visual effect of the voucher being swiped in from the left side of the second terminal and moving to the right. For another example, if the second terminal is located at the bottom of the first terminal, and the user transfers the voucher out by swiping downward in the first terminal, the first terminal displays a visual effect of the voucher being transferred out from the bottom of the first terminal, and the second terminal can display a visual effect of the voucher being transferred in from the top of the second terminal.

若第一终端与第二终端的放置方向不一致,如第一终端的顶部与第二终端的顶部相靠近,用户在第一终端中通过向顶部划动的操作将凭证转出,第一终端中可以显示凭证从第一终端的顶部边缘转出的视觉效果,第二终端中可以显示凭证从第二终端的顶部边缘进入的视觉效果。If the placement directions of the first terminal and the second terminal are inconsistent, such as the top of the first terminal is close to the top of the second terminal, the user transfers the credential out by swiping toward the top in the first terminal, and the first terminal can display a visual effect of the credential transferring out from the top edge of the first terminal, and the second terminal can display a visual effect of the credential entering from the top edge of the second terminal.

可以理解的是,上述仅是列举的几种示例,实际应用中可以根据第一终端以及第二终端的相对位置,确定显示的视觉效果,这里不作具体限定,只要能够显示出凭证是由第一终端传入到第二终端的视觉效果即可。It can be understood that the above are only a few examples. In actual applications, the visual effect of the display can be determined according to the relative positions of the first terminal and the second terminal. There is no specific limitation here, as long as the visual effect of showing that the credential is transmitted from the first terminal to the second terminal can be displayed.

本说明书实施例中第二终端中也可以基于第一终端中显示的转出视觉效果同步显示转入的视觉效果,可进一步提高用户体验。可选的,本说明书实施例中上述将目标电子凭证转入所述第二终端的视觉效果可以与将目标电子凭证转出所述第一终端的视觉效果为联动转移所述目标电子凭证的视觉效果。In the embodiment of this specification, the second terminal can also synchronously display the transfer-in visual effect based on the transfer-out visual effect displayed in the first terminal, which can further improve the user experience. Optionally, in the embodiment of this specification, the visual effect of transferring the target electronic certificate to the second terminal can be linked with the visual effect of transferring the target electronic certificate out of the first terminal to transfer the visual effect of the target electronic certificate.

例如,第一终端的凭证转移页面中动态显示目标电子凭证转出第一终端的视觉效果,在某个时刻,第一终端中显示目标电子凭证的一部分信息,如一张图像的一部分,或者虚拟形象的一部分,另外的一部分信息已经转出第一终端,这时第二终端中可以显示目标电子凭证已经转出第一终端的另外的一部分信息。这样第一终端以及第二终端中可以显示联动转移目标电子凭证的视觉效果,使得用户可以感觉到是将第一终端中的凭证转入了第二终端。For example, the first terminal's credential transfer page dynamically displays the visual effect of the target electronic credential being transferred out of the first terminal. At a certain moment, the first terminal displays part of the target electronic credential information, such as part of an image or part of a virtual image, and the other part of the information has been transferred out of the first terminal. At this time, the second terminal can display the other part of the target electronic credential that has been transferred out of the first terminal. In this way, the first terminal and the second terminal can display the visual effect of the linked transfer of the target electronic credential, so that the user can feel that the credential in the first terminal is transferred to the second terminal.

作为一种实施方式,第二终端的页面中也可以显示第一终端以及第二终端的标识信息,第二终端中也可以显示将目标电子凭证由第一终端的标识信息处转出,移动至第二终端的标识信息处的动画效果。标识信息可以为符合终端形状的图像、或者也可以是终端登录用户的标识信息,登录用户的标识信息可以为如头像、昵称等形式的信息中的至少一种。As an implementation mode, the page of the second terminal may also display the identification information of the first terminal and the second terminal, and the second terminal may also display an animation effect of transferring the target electronic certificate from the identification information of the first terminal to the identification information of the second terminal. The identification information may be an image that conforms to the shape of the terminal, or may be the identification information of the user logged in to the terminal, and the identification information of the logged in user may be at least one of the information in the form of an avatar, a nickname, etc.

实际应用中,第一终端以及第二终端中可以具有相同或者不同的终端应用,上述显示的各种页面效果可以是终端应用的服务器生成并反馈至终端的。In actual applications, the first terminal and the second terminal may have the same or different terminal applications, and the various page effects displayed above may be generated by the server of the terminal application and fed back to the terminal.

为使得用户可以更便捷的使用接收到的凭证,第二终端还可以显示凭证信息页面;所述凭证信息页面包括用于表示所述目标电子凭证的码图像。In order to allow the user to use the received certificate more conveniently, the second terminal may further display a certificate information page; the certificate information page includes a code image for representing the target electronic certificate.

其中,凭证转入页面中若完整显示目标电子凭证后,第二终端可以显示凭证信息页面,凭证信息页面与凭证转入页面可以为相同的页面,也可以为不同的页面,可以根据实际需求设定。码图像可以包括二维码、条形码、三维码等形式的码图像,识别设备通过扫描码图像可以识别目标电子凭证的信息,如第二终端用户可以通过出示码图像参加演唱会等活动。Among them, if the target electronic certificate is fully displayed in the certificate transfer page, the second terminal can display the certificate information page. The certificate information page and the certificate transfer page can be the same page or different pages, which can be set according to actual needs. The code image can include a code image in the form of a QR code, a barcode, a 3D code, etc. The recognition device can identify the information of the target electronic certificate by scanning the code image. For example, the second terminal user can participate in activities such as concerts by presenting the code image.

凭证信息页面中可以包括所述目标凭证的对象名称信息、码图像信息、凭证使用地点信息、凭证使用时间信息、凭证价格信息、凭证数量信息中至少一种。The voucher information page may include at least one of the object name information, code image information, voucher usage location information, voucher usage time information, voucher price information, and voucher quantity information of the target voucher.

图7为本说明书实施例中提供的一种凭证信息页面的示意图。如图7所示,该页面中可以包含表示目标电子凭证的码图像702,还可以包含编码信息等等。该页面中还可以包含凭证的关键信息704,如凭证针对的对象、使用时间、使用地点等信息。该页面中还可以包含第二终端的用户的相关信息706。其中,相关信息706可以是第二终端中终端应用的登录用户的用户信息,如姓名、昵称、身份证件号码、电话号码等信息。FIG7 is a schematic diagram of a credential information page provided in an embodiment of the present specification. As shown in FIG7 , the page may include a code image 702 representing the target electronic credential, and may also include coding information, etc. The page may also include key credential information 704, such as the object, usage time, and usage location of the credential. The page may also include relevant information 706 of the user of the second terminal. The relevant information 706 may be user information of the user who logs in to the terminal application in the second terminal, such as name, nickname, ID number, telephone number, and other information.

若目标电子凭证为第一终端的用户或者将凭证转给第一终端的用户的其他用户购买的凭证,凭证信息页面中还可以凭证的价格信息708。价格信息708的具体数值可以是购买者实际支付的资源的数量,也可以是凭证的售卖价格。凭证信息页面还可以包含表示凭证数量的信息710,如1张,2张等字样的信息,又如1/1、1/2等字样的信息。If the target electronic voucher is a voucher purchased by the user of the first terminal or another user who transfers the voucher to the user of the first terminal, the voucher information page may also include voucher price information 708. The specific value of the price information 708 may be the amount of resources actually paid by the purchaser or the selling price of the voucher. The voucher information page may also include information 710 indicating the voucher quantity, such as information such as 1 piece, 2 pieces, and information such as 1/1, 1/2, etc.

可以理解为是上述仅是一种示例,实际应用中凭证信息页面的具体显示内容以及显示格式可以根据实际需求设定,这里不作具体限定。It can be understood that the above is only an example. In actual applications, the specific display content and display format of the credential information page can be set according to actual needs and are not specifically limited here.

本说明书实施例中若第二终端获取到的为多个电子凭证,第二终端也可以显示各个凭证的相关信息。可选的,本说明书实施例中若目标电子凭证包括第一电子凭证和第二电子凭证,上述显示凭证信息页面,具体可以包括:In the embodiment of this specification, if the second terminal obtains multiple electronic certificates, the second terminal can also display the relevant information of each certificate. Optionally, in the embodiment of this specification, if the target electronic certificate includes the first electronic certificate and the second electronic certificate, the above-mentioned display certificate information page can specifically include:

显示包含所述第一电子凭证的凭证信息的凭证信息页面;displaying a credential information page including credential information of the first electronic credential;

若获取到用户执行的凭证切换操作,则显示包含所述第二电子凭证的凭证信息的凭证信息页面。If a credential switching operation performed by the user is acquired, a credential information page including credential information of the second electronic credential is displayed.

凭证信息页面中可以包含用于切换显示各个凭证的操作控件,如图7所示的控件712,若用户执行了凭证切换操作,如点击该了控件712,凭证信息页面中可以由显示第一电子凭证的凭证信息变更为显示第二电子凭证的凭证信息。The credential information page may include an operation control for switching the display of each credential, such as control 712 shown in Figure 7. If the user performs a credential switching operation, such as clicking on control 712, the credential information page may change from displaying the credential information of the first electronic credential to displaying the credential information of the second electronic credential.

接续上例,假设第二终端的用户获取到关于某个演唱会的两张电子票,在凭证信息页面中可以先显示一张的码图像,若用户点击了控件712,可以显示另一张电子票的码图像。当然,凭证信息页面中也可以包含表示返回上一凭证的控件,如“<”显示的控件,凭证信息页面中在显示第二电子凭证的凭证信息时,还可以显示用于返回上一凭证的返回控件,若用户点击了表示返回上一凭证的控件,凭证信息页面还可以显示第一电子凭证的凭证信息。Continuing with the above example, assuming that the user of the second terminal obtains two electronic tickets for a concert, the code image of one electronic ticket can be displayed first in the voucher information page, and if the user clicks on the control 712, the code image of the other electronic ticket can be displayed. Of course, the voucher information page can also include a control indicating a return to the previous voucher, such as a control displayed by "<". When the voucher information of the second electronic voucher is displayed in the voucher information page, a return control for returning to the previous voucher can also be displayed. If the user clicks on the control indicating a return to the previous voucher, the voucher information page can also display the voucher information of the first electronic voucher.

实际应用中,若第一电子凭证与第二电子凭证为针对同一对象的电子凭证,凭证信息页面中显示的第一电子凭证的凭证信息与第二电子凭证的凭证信息可以部分相同,例如背景图案、凭证对象的相关信息可以相同,可以显示不同的码图像。如若获取到用户执行的凭证切换操作,凭证信息页面中可以显示第二电子凭证的码图像。In actual applications, if the first electronic certificate and the second electronic certificate are electronic certificates for the same object, the certificate information of the first electronic certificate and the certificate information of the second electronic certificate displayed in the certificate information page may be partially the same, for example, the background pattern and the relevant information of the certificate object may be the same, and different code images may be displayed. If the certificate switching operation performed by the user is obtained, the code image of the second electronic certificate may be displayed in the certificate information page.

若第一电子凭证与第二电子凭证为针对不同对象的电子凭证,凭证信息页面可以以不同的图像背景或者页面结构显示第一电子凭证的凭证信息以及第二电子凭证的凭证信息。If the first electronic certificate and the second electronic certificate are electronic certificates for different objects, the certificate information page may display the certificate information of the first electronic certificate and the certificate information of the second electronic certificate with different image backgrounds or page structures.

凭证信息页面也可以同时显示多个凭证的信息,如多个凭证的码图像。凭证信息页面的显示方式以及具体内容可以根据实际业务需求设定,这里不作具体限定。The credential information page can also display information of multiple credentials at the same time, such as code images of multiple credentials. The display mode and specific content of the credential information page can be set according to actual business needs and are not specifically limited here.

实际应用中,第二终端在接收目标电子凭证后,如在凭证转入页面中显示完整接收到目标电子凭证后,也可以不马上显示凭证信息页面,而是结束转移流程,如第二终端在接收目标电子凭证后,可以显示与第一终端建立短距离通信之前第二终端中显示的页面。第二终端的用户也可以通过查看凭证的路径进入凭证信息页面,例如通过票夹-我的票-选择目标电子凭证的路径查看持有的电子凭证。In actual applications, after receiving the target electronic certificate, the second terminal may not immediately display the certificate information page, but end the transfer process, such as after the second terminal receives the target electronic certificate, it may display the page displayed in the second terminal before establishing short-distance communication with the first terminal. The user of the second terminal can also enter the certificate information page by viewing the certificate path, for example, through the ticket folder-my ticket-select the path of the target electronic certificate to view the electronic certificate held.

为提高用户体验,第二终端在显示转入凭证的页面后,还可以显示凭证接收确认页面,用户可以选择接收凭证,还可以选择拒绝接收凭证。可选的,本说明书实施例中的方法还可以包括:显示凭证接收确认页面;所述凭证接收确认页面中包含用于接收凭证的第一控件、用于拒绝接收凭证的第二控件中至少一种。To improve the user experience, after displaying the page for transferring the voucher, the second terminal may also display a voucher reception confirmation page, where the user may choose to receive the voucher or refuse to receive the voucher. Optionally, the method in the embodiment of this specification may further include: displaying a voucher reception confirmation page; the voucher reception confirmation page includes at least one of a first control for receiving the voucher and a second control for refusing to receive the voucher.

上述显示凭证信息页面,具体可以包括:若获取到用户基于所述凭证接收确认页面执行的确认接收操作,则显示凭证信息页面。The displaying of the credential information page may specifically include: if a confirmation reception operation performed by the user based on the credential reception confirmation page is obtained, then displaying the credential information page.

作为一种实施方式,凭证转入页面中可以显示凭证的封面信息,凭证接收确认页面中可以显示凭证的具体信息,例如,电子凭证传输结束后,第二终端显示的页面可以由凭证封面展开变为包含二维码的电子凭证展示页面,页面的底部可以包含操作区,用户可根据提示选择接收或拒绝。As an implementation method, the cover information of the certificate can be displayed in the certificate transfer page, and the specific information of the certificate can be displayed in the certificate reception confirmation page. For example, after the electronic certificate transmission is completed, the page displayed on the second terminal can be expanded from the certificate cover to an electronic certificate display page containing a QR code. The bottom of the page can include an operation area, and the user can choose to accept or reject according to the prompt.

图8为本说明书实施例中提供的一种凭证接收确认页面的示意图。如图8所示,该页面中可以包含表示用于接收凭证的第一控件802,还可以包含用于拒绝接收凭证的第二控件804。Fig. 8 is a schematic diagram of a credential receiving confirmation page provided in an embodiment of the present specification. As shown in Fig. 8, the page may include a first control 802 for receiving a credential, and may also include a second control 804 for refusing to receive a credential.

实际应用中,凭证接收确认页面也可以包含第一控件或者第二控件中的一种控件,在预设时间内若用户点击了第一控件,或者预设时间内用户未点击第二控件,第二终端或者服务器可以确定用户确认接收目标电子凭证。又如,若用户在预设时间内点击了第二控件,或者预设时间内未点击第一控件,第二终端或者服务器可以确定用户拒绝接收目标电子凭证。In actual applications, the credential reception confirmation page may also include one of the first control or the second control. If the user clicks the first control within a preset time, or the user does not click the second control within a preset time, the second terminal or the server may determine that the user confirms to receive the target electronic credential. For another example, if the user clicks the second control within a preset time, or does not click the first control within a preset time, the second terminal or the server may determine that the user refuses to receive the target electronic credential.

若用户确认接收目标电子凭证,服务器可以将目标电子凭证转移至第二终端,具体的,服务器可以将目标电子凭证记录为第二终端的登录用户的凭证,第二终端可以显示凭证信息页面。If the user confirms receiving the target electronic certificate, the server may transfer the target electronic certificate to the second terminal. Specifically, the server may record the target electronic certificate as the certificate of the logged-in user of the second terminal, and the second terminal may display the certificate information page.

若第二终端获取到用户基于所述凭证接收确认页面执行的拒绝接收操作,则第二终端可以退出凭证转移流程。例如第二终端可以显示凭证转入页面之前终端在显示的页面,也可以显示接收凭证的终端应用的首页,也可以显示未启动任何应用的页面等等。If the second terminal obtains the user's rejection operation based on the credential reception confirmation page, the second terminal can exit the credential transfer process. For example, the second terminal can display the page that the terminal was displaying before the credential was transferred, or the homepage of the terminal application that received the credential, or a page without any application started, etc.

实际应用中,若第二终端获取到用户基于凭证接收确认页面执行的确认接收操作,第二终端也可以退出凭证转移流程。第二终端也可以显示凭证转入页面之前终端在显示的页面、接收凭证的终端应用的首页、未启动任何应用的页面等页面。In actual applications, if the second terminal obtains the confirmation reception operation performed by the user based on the credential reception confirmation page, the second terminal can also exit the credential transfer process. The second terminal can also display the page displayed by the terminal before the credential transfer page, the homepage of the terminal application receiving the credential, and the page without starting any application.

若第二终端获取到用户基于凭证接收确认页面执行的拒绝接收操作或者确认接收操作,第二终端也可以显示表示拒绝接受或者确认接收的提示信息。If the second terminal obtains a rejection or confirmation operation performed by the user based on the credential reception confirmation page, the second terminal may also display prompt information indicating rejection or confirmation.

如图8所示,凭证接收确认页面也可以包含目标凭证的相关信息,如目标凭证的对象名称信息、码图像信息、凭证使用地点信息、凭证使用时间信息、凭证价格信息、凭证数量信息等信息中的至少一种。具体内容可以根据实际需求设定,这里不作具体限定。As shown in FIG8 , the voucher receiving confirmation page may also include relevant information of the target voucher, such as at least one of the target voucher's object name information, code image information, voucher usage location information, voucher usage time information, voucher price information, voucher quantity information, etc. The specific content may be set according to actual needs and is not specifically limited here.

实际应用中,凭证接收确认页面也可以显示凭证转入页面中显示的目标电子凭证的信息,如图片、文本、虚拟形象等类型的信息。例如,凭证接收确认页面中也可以不显示码图像,而显示在凭证转入页面中显示的表示目标电子凭证的图片或虚拟形象等信息。凭证接收确认页面显示的内容与凭证转入页面显示的页面是否一致也可以根据实际需求设定,这里不作具体限定。In actual applications, the voucher reception confirmation page may also display information of the target electronic voucher displayed on the voucher transfer page, such as pictures, text, virtual images, and other types of information. For example, the voucher reception confirmation page may not display the code image, but may display information such as a picture or virtual image representing the target electronic voucher displayed on the voucher transfer page. Whether the content displayed on the voucher reception confirmation page is consistent with the page displayed on the voucher transfer page can also be set according to actual needs, and is not specifically limited here.

基于同样的思路,本说明书实施例中以服务器为执行主体的凭证转移的方法。图9为本说明书实施例中提供的一种凭证转移的方法的流程示意图。该流程的执行主体可以为搭载于服务器的程序。Based on the same idea, a method for transferring credentials with a server as the execution subject in an embodiment of this specification is provided. Figure 9 is a flow chart of a method for transferring credentials provided in an embodiment of this specification. The execution subject of the flow can be a program installed on the server.

如图9所示,该流程可以包括以下步骤。As shown in FIG. 9 , the process may include the following steps.

步骤902:获取第一终端发送的针对待转出的目标电子凭证的转出请求。Step 902: Obtain a transfer request for a target electronic certificate to be transferred sent by the first terminal.

其中,转出请求是基于所述第一终端的用户在凭证转移页面上针对所述目标电子凭证的转出操作生成的。The transfer-out request is generated based on a transfer-out operation performed by a user of the first terminal on a certificate transfer page for the target electronic certificate.

步骤904:基于所述转出请求,将所述目标电子凭证转移至与所述第一终端建立短距离通信连接的第二终端。Step 904: Based on the transfer-out request, the target electronic certificate is transferred to a second terminal that has established a short-range communication connection with the first terminal.

实际应用中,第二终端中可以搭载有终端应用,服务器能够处理终端应用的相关业务,服务器在获取到第一终端针对目标电子凭证的转出请求后,服务器可以建立第二终端与目标电子凭证的对应关系,也可以建立目标电子凭证与第二终端的登录用户或者终端应用的登录用户的对应关系,表示将目标电子凭证转移至了第二终端,第二终端的用户具有使用该目标电子凭证的权限。In actual applications, the second terminal can be equipped with a terminal application, and the server can handle related services of the terminal application. After the server obtains the transfer request of the first terminal for the target electronic certificate, the server can establish a correspondence between the second terminal and the target electronic certificate, and can also establish a correspondence between the target electronic certificate and the login user of the second terminal or the login user of the terminal application, indicating that the target electronic certificate has been transferred to the second terminal, and the user of the second terminal has the authority to use the target electronic certificate.

实际应用中,第一终端以及第二终端中显示的效果页面,也可以是由服务器生成,可选的,本说明书实施例中的方法还可以包括:In actual applications, the effect pages displayed in the first terminal and the second terminal may also be generated by the server. Optionally, the method in the embodiment of this specification may further include:

生成将所述目标电子凭证由所述第一终端转出的视觉效果,发送至所述第一终端。A visual effect of transferring the target electronic certificate from the first terminal is generated and sent to the first terminal.

其中,服务器可以基于第一终端发送的转出请求,生成将所述目标电子凭证由所述第一终端转出的视觉效果,并发送至第一终端。例如,用户选中目标电子凭证后执行右划操作,服务器可以基于用户的操作方向或者操作路径,生成凭证向右侧转出的视觉效果,并发送至第一终端,进而第一终端可以显示凭证转出的视觉效果。The server may generate a visual effect of transferring the target electronic certificate from the first terminal based on the transfer request sent by the first terminal, and send the visual effect to the first terminal. For example, after the user selects the target electronic certificate and swipes right, the server may generate a visual effect of transferring the certificate to the right based on the user's operation direction or operation path, and send the visual effect to the first terminal, so that the first terminal can display the visual effect of transferring the certificate.

可选的,本说明书实施例中的方法还可以包括:Optionally, the method in the embodiments of this specification may further include:

生成将所述目标电子凭证转入所述第二终端的视觉效果,发送至所述第二终端。A visual effect of transferring the target electronic certificate to the second terminal is generated and sent to the second terminal.

第二终端触发接收凭证的流程后,可以发送请求至服务器,服务器可以生成将目标电子凭证转入第二终端的视觉效果的信息并发送至第二终端,这样第二终端可以显示凭证转入的页面效果。After the second terminal triggers the process of receiving the certificate, it can send a request to the server. The server can generate information about the visual effect of transferring the target electronic certificate to the second terminal and send it to the second terminal, so that the second terminal can display the page effect of the certificate transfer.

实际应用中,服务器可以基于第一终端中显示的凭证转出的视觉效果,生成第二终端中显示的凭证转入的视觉效果。例如服务器可以基于目标电子凭证在第一终端中的显示位置信息,确定目标电子凭证在第二终端中的显示位置信息,使得第二终端与第一终端可以显示联动转移凭证的视觉效果。也可以采用其他的相关技术实现,这里不再赘述。In actual applications, the server can generate a visual effect of a voucher transfer-in displayed in the second terminal based on the visual effect of the voucher transfer-out displayed in the first terminal. For example, the server can determine the display position information of the target electronic voucher in the second terminal based on the display position information of the target electronic voucher in the first terminal, so that the second terminal and the first terminal can display the visual effect of the linked transfer voucher. Other related technologies can also be used for implementation, which will not be repeated here.

上述第一终端以及第二终端中显示的凭证列表页面、凭证信息页面、凭证接收确认页面等等页面,也可以是服务器执行凭证转移流程生成的页面。The credential list page, credential information page, credential receipt confirmation page, and other pages displayed in the first terminal and the second terminal may also be pages generated by the server executing the credential transfer process.

可以理解的是,本说明书实施例中提供的各实施例是基于同样的技术构思的,相同或者相似的地方可以相互参考。It can be understood that the various embodiments provided in the embodiments of this specification are based on the same technical concept, and the same or similar parts can be referenced to each other.

为了更清楚的说明本说明书实施例中提供的凭证转移以及接收的方法,下面以基于NFC通信转赠演出门票为例进行说明。假设第一终端的用户线上购买了某演唱会的门票,但是由于一些原因不能参加,想要将该门票转赠至好友。In order to more clearly illustrate the method of transferring and receiving credentials provided in the embodiments of this specification, the following is an example of transferring performance tickets based on NFC communication. Assume that the user of the first terminal purchases a ticket for a concert online, but cannot attend for some reason and wants to transfer the ticket to a friend.

第一终端的用户通过对应的应用程序查看自己持有的票务,第一终端中可以显示凭证列表页面,如上述图5。若用户点击了“转赠我的票”,第一终端获取到用户执行的凭证转移触发操作。基于该操作,第一终端发送凭证转移触发请求至服务器,服务器可以生成用于触发附近终端启动凭证转移流程的NFC标签信息,并反馈至第一终端。第一终端可以模拟为NFC卡模式,识别附近其他的NFC通信终端。第二终端可以处于读卡器模式,当第二终端与第一终端的位置较近,处于NFC通信范围内时,第一终端可以识别到第二终端,或者第二终端可以识别到第一终端,两者建立NFC通信连接。例如,一旦检测到对方,设备之间可进行协议握手,确定通信参数,如使用的数据传输速率和协议类型等。第二终端可以读取到第一终端的NFC标签信息。The user of the first terminal checks the tickets he holds through the corresponding application, and the first terminal can display the voucher list page, as shown in Figure 5 above. If the user clicks "Transfer my ticket", the first terminal obtains the voucher transfer trigger operation performed by the user. Based on this operation, the first terminal sends a voucher transfer trigger request to the server, and the server can generate NFC tag information for triggering nearby terminals to start the voucher transfer process, and feedback to the first terminal. The first terminal can simulate the NFC card mode to identify other nearby NFC communication terminals. The second terminal can be in the card reader mode. When the second terminal is close to the first terminal and is within the NFC communication range, the first terminal can identify the second terminal, or the second terminal can identify the first terminal, and the two establish an NFC communication connection. For example, once the other party is detected, a protocol handshake can be performed between the devices to determine the communication parameters, such as the data transmission rate and protocol type used. The second terminal can read the NFC tag information of the first terminal.

实际应用中,NFC标签信息中可以包含启动终端程序或者小程序或者用于触发业务流程的信息,如可以是URL形式或者其他形式的链接信息。第二终端获取到该标签信息后,可以启动终端应用或者小程序,或者通过浏览器访问服务器,触发凭证接收流程。In actual applications, the NFC tag information may include information for starting a terminal program or applet or for triggering a business process, such as link information in the form of a URL or other forms. After the second terminal obtains the tag information, it can start the terminal application or applet, or access the server through a browser to trigger the credential receiving process.

在第一终端获取到用户执行的凭证转移触发操作后,服务器还可以确定第一终端可转移的票务信息并发送至第一终端,第一终端可以显示凭证转移页面,如上述图3,用户可以在凭证转移页面中选择想要转移的目标电子凭证。如,用户点击“转赠我的票”后,第一终端可以显示凭证转移页面,可以在页面底部弹出动画,演出票会进行罗列,用户可上下划动查看当前支持转赠的票,还可以选取要转出的演唱会门票。After the first terminal obtains the credential transfer trigger operation performed by the user, the server can also determine the ticket information that can be transferred by the first terminal and send it to the first terminal. The first terminal can display the credential transfer page, as shown in Figure 3 above. The user can select the target electronic credential to be transferred in the credential transfer page. For example, after the user clicks "Transfer my ticket", the first terminal can display the credential transfer page, and an animation can pop up at the bottom of the page. The performance tickets will be listed. The user can swipe up and down to view the tickets currently supported for transfer, and can also select the concert tickets to be transferred.

NFC标签信息中也可以包含第一终端或者第一终端的登录用户的标识信息,服务器还可以根据该标识信息,将第二终端的登录用户的标识信息反馈至第一终端,这样第一终端显示的凭证转移页面也可以包含第二终端的标识信息,如头像、昵称等。The NFC tag information may also include identification information of the first terminal or the logged-in user of the first terminal. The server may also feed back the identification information of the logged-in user of the second terminal to the first terminal based on the identification information, so that the credential transfer page displayed by the first terminal may also include the identification information of the second terminal, such as avatar, nickname, etc.

第一终端的用户选择当前要转赠的票拖拽到显示有第二终端的用户标识的区域识别后,当前要转赠的票的显示区域可以自动高亮,此时用户右划可将此张电子票进行隔空转赠。其中,服务器可以生成将该电子票转出第一终端的视觉效果页面信息并反馈至第一终端进行显示,同时或者之后,服务器也可以生成将该电子票转入第二终端的视觉效果页面信息并反馈至第二终端进行显示,如第二终端界面中可以显示从左侧划入被转赠过来的电子票,还可以显示票务正在接收过程中的信息,对当前票务传输状态进行提示,如上图7。这样第一终端以及第二终端中可以显示票务转移的过程,从用户视觉角度好像是物理凭证从第一终端进入到了第二终端。After the user of the first terminal selects the ticket to be transferred and drags it to the area where the user logo of the second terminal is displayed for identification, the display area of the ticket to be transferred can be automatically highlighted. At this time, the user can transfer the electronic ticket by swiping right. Among them, the server can generate visual effect page information of transferring the electronic ticket out of the first terminal and feedback it to the first terminal for display. At the same time or afterwards, the server can also generate visual effect page information of transferring the electronic ticket into the second terminal and feedback it to the second terminal for display. For example, the second terminal interface can display the electronic ticket transferred from the left side, and can also display information that the ticket is being received, and prompt the current ticket transmission status, as shown in Figure 7 above. In this way, the process of ticket transfer can be displayed in the first terminal and the second terminal, and from the user's visual perspective, it seems that the physical voucher has entered the second terminal from the first terminal.

电子票传输结束后,如第二终端中完整显示第一终端转出的电子票后,第二终端中可以显示由票务演出封面展开变为包含二维码的电子票展示页的凭证转移确认页面,该页面的底部可以有操作区,用户可根据提示选择接收或拒绝。若第二终端的用户确定接收后,服务器可以将第一终端转出的演出门票标记为第二终端用户所有,第二终端的用户可以进入自己的票夹中可对刚接收的票详情进行查看与确认,第二终端可以显示凭证信息页面,如上述图7。After the electronic ticket transmission is completed, if the electronic ticket transferred from the first terminal is fully displayed in the second terminal, the second terminal can display a voucher transfer confirmation page that is expanded from the ticket performance cover to the electronic ticket display page containing a QR code. There can be an operation area at the bottom of the page, and the user can choose to accept or reject according to the prompt. If the user of the second terminal confirms to accept, the server can mark the performance ticket transferred from the first terminal as owned by the user of the second terminal. The user of the second terminal can enter his ticket folder to view and confirm the details of the ticket just received, and the second terminal can display the voucher information page, as shown in Figure 7 above.

上述实施例中是以第一终端为NFC卡片或者标签端,第二终端为读卡器端为例进行的说明。实际应用中,也可以将第一终端作为读卡器端,将第二终端模拟为卡片端。第一终端与第二终端也可以建立其他方式的短距离通信。The above embodiments are described by taking the first terminal as an NFC card or tag terminal and the second terminal as a card reader terminal as an example. In practical applications, the first terminal can also be used as a card reader terminal and the second terminal can be simulated as a card terminal. The first terminal and the second terminal can also establish short-distance communication in other ways.

实际应用中,为了便于用户操作,凭证信息页面中还可以包含用于进行支付的控件,若用户操作了该控件,可以触发支付流程。例如,若第二终端获取到用户基于凭证信息页面执行的支付操作,第二终端可以发送针对目标电子凭证的支付请求至服务器,服务器可以生成订单信息并反馈至第二终端,用户确认后,服务器可以执行第二终端向第一终端支付凭证所需资源的流程。这样便于第二终端的用户向转出凭证的第一终端用户支付凭证所需资源,也可以简化第二终端用户的操作。In actual applications, in order to facilitate user operations, the credential information page may also include a control for payment. If the user operates the control, the payment process can be triggered. For example, if the second terminal obtains the payment operation performed by the user based on the credential information page, the second terminal can send a payment request for the target electronic credential to the server, and the server can generate order information and feedback to the second terminal. After the user confirms, the server can execute the process of the second terminal paying the first terminal for the resources required for the credential. This makes it easier for the user of the second terminal to pay the first terminal user who transferred the credential for the resources required for the credential, and can also simplify the operation of the second terminal user.

可以理解的是,本说明书实施例中可以通过短距离通信的方式触发凭证转移流程,作为一种实施方式,在第一终端确定附近的第二终端后,或者服务器确定第一终端为凭证转出方,第二终端为凭证接收方后,第一终端与第二终端之间的短距离通信连接是可以结束的,第一终端在凭证转移页面中显示凭证转出的视觉效果以及第二终端在凭证转入页面中显示凭证转入的视觉效果时,第一终端与第二终端之间的短距离通信连接可以是中断或结束的,第一终端与第二终端可以位于近场通讯范围之外。这样用户无需长时间停留在终端靠近的状态,也可提高用户体验。It is understandable that in the embodiments of this specification, the credential transfer process can be triggered by short-distance communication. As an implementation method, after the first terminal determines the nearby second terminal, or the server determines that the first terminal is the credential transferor and the second terminal is the credential receiver, the short-distance communication connection between the first terminal and the second terminal can be ended. When the first terminal displays the visual effect of the credential transfer-out in the credential transfer page and the second terminal displays the visual effect of the credential transfer-in in the credential transfer-in page, the short-distance communication connection between the first terminal and the second terminal can be interrupted or ended, and the first terminal and the second terminal can be located outside the near-field communication range. In this way, the user does not need to stay in a state close to the terminal for a long time, which can also improve the user experience.

当然,实际应用中,第一终端在凭证转移页面中显示凭证转出的视觉效果以及第二终端在凭证转入页面中显示凭证转入的视觉效果时,第一终端与第二终端之间的短距离通信也可以是连接的,第一终端与第二终端可以位于近场通讯范围内。Of course, in actual applications, when the first terminal displays the visual effect of credential transfer-out in the credential transfer page and the second terminal displays the visual effect of credential transfer-in in the credential transfer-in page, the short-distance communication between the first terminal and the second terminal can also be connected, and the first terminal and the second terminal can be located within the near-field communication range.

实际应用中,第一终端中可以搭载有终端应用,通过终端应用进行凭证转移。第二终端也可以搭载有该终端应用,第二终端中登录终端应用的用户可以为第一终端中登录终端应用的用户的好友,第一终端可以将凭证转移至好友。好友可以表示在终端应用中,第一终端用户与第二终端用户为好友关系。In actual applications, the first terminal may be equipped with a terminal application, and the credentials may be transferred through the terminal application. The second terminal may also be equipped with the terminal application, and the user who logs into the terminal application in the second terminal may be a friend of the user who logs into the terminal application in the first terminal, and the first terminal may transfer the credentials to the friend. The friend may indicate that the first terminal user and the second terminal user are friends in the terminal application.

作为一种实施方式,第一终端与第二终端建立短距离通信后,若服务器确定第二终端的登录用户不是第一终端的用户好友,服务器还可以生成添加好友的提示信息至第一终端,第一终端中可以显示该提示信息,第一终端的用户可以基于该提示信息添加第二终端的用户为好友,然后再进行凭证的转移。As an implementation method, after the first terminal establishes short-range communication with the second terminal, if the server determines that the logged-in user of the second terminal is not a user friend of the first terminal, the server can also generate a prompt message for adding a friend to the first terminal. The prompt message can be displayed in the first terminal, and the user of the first terminal can add the user of the second terminal as a friend based on the prompt message, and then transfer the credentials.

实际应用中,第一终端用户与第二终端用户不存在好友关系,也可以进行凭证的转移,这里不做具体限定。In actual applications, even if the first terminal user and the second terminal user do not have a friend relationship, the credentials can still be transferred, which is not specifically limited here.

基于同样的思路,本说明书实施例还提供了上述方法对应的装置。图10为本说明书实施例提供的对应于图2的一种凭证转移的装置的结构示意图。如图10所示,该装置可以包括:Based on the same idea, the embodiment of this specification also provides a device corresponding to the above method. Figure 10 is a schematic diagram of the structure of a device for credential transfer corresponding to Figure 2 provided in the embodiment of this specification. As shown in Figure 10, the device may include:

操作获取模块1002,用于获取用户在凭证转移页面上针对待转出的目标电子凭证的转出操作。The operation acquisition module 1002 is used to acquire the transfer operation of the user on the certificate transfer page for the target electronic certificate to be transferred out.

转移模块1004,用于基于所述转出操作,将所述目标电子凭证转移至与第一终端建立短距离通信连接的第二终端。The transfer module 1004 is configured to transfer the target electronic certificate to a second terminal that has established a short-range communication connection with the first terminal based on the transfer-out operation.

效果显示模块1006,用于在所述凭证转移页面上显示将所述目标电子凭证由所述第一终端转出的转出视觉效果。The effect display module 1006 is used to display the transfer visual effect of transferring the target electronic certificate from the first terminal on the certificate transfer page.

基于图10的装置,本说明书实施例还提供了一些具体实施方案,下面进行说明。Based on the device of FIG. 10 , the embodiments of this specification also provide some specific implementation plans, which are described below.

可选的所述转出操作包括移动所述目标电子凭证的操作;所述效果显示模块具体可以用于:基于用户在所述凭证转移页面上的移动轨迹,显示所述目标电子凭证按照所述移动轨迹移动的视觉效果。The optional transfer-out operation includes an operation of moving the target electronic certificate; the effect display module can be specifically used to: based on the movement trajectory of the user on the certificate transfer page, display the visual effect of the target electronic certificate moving along the movement trajectory.

可选的,所述凭证转移页面中包括转出确定区域;操作获取模块具体可以用于:获取用户将所述目标电子凭证向所述转出确定区域的方向移动的操作。Optionally, the credential transfer page includes a transfer-out determination area; the operation acquisition module can be specifically used to: acquire the user's operation of moving the target electronic credential toward the transfer-out determination area.

所述效果显示模块具体可以用于:基于用户在所述凭证转移页面上执行的朝向所述转出确定区域的移动轨迹,显示所述目标电子凭证向所述转出确定区域移动的视觉效果。The effect display module can be specifically used to: display the visual effect of the target electronic voucher moving toward the transfer-out determination area based on the movement trajectory of the user toward the transfer-out determination area on the voucher transfer page.

可选的,所述转出确定区域还用于显示所述第二终端的终端用户的用户标识信息;所述用户标识信息包括用户昵称、用户头像、用户名称中至少一种信息。Optionally, the transfer-out determination area is also used to display user identification information of the terminal user of the second terminal; the user identification information includes at least one of a user nickname, a user avatar, and a user name.

可选的,所述凭证转移页面中包括用于表示所述目标电子凭证的凭证标识信息;所述凭证标识信息为图片形式、虚拟形象形式、文本形式中至少一种形式的信息;操作获取模块具体可以用于:获取用户在凭证转移页面上针对待转出的目标电子凭证的凭证标识信息的转出操作。Optionally, the credential transfer page includes credential identification information for representing the target electronic credential; the credential identification information is information in at least one form of picture, virtual image, and text; the operation acquisition module can specifically be used to: obtain the user's transfer operation on the credential transfer page for the credential identification information of the target electronic credential to be transferred.

可选的,所述凭证转移页面中包括若干个可转移的电子凭证;所述目标电子凭证为所述若干个可转移的电子凭证中的一个或多个;所述第二终端为与所述第一终端建立通信连接的一个或多个终端。Optionally, the credential transfer page includes several transferable electronic credentials; the target electronic credential is one or more of the several transferable electronic credentials; and the second terminal is one or more terminals that establish a communication connection with the first terminal.

可选的,所述转出操作包括点击操作、长摁操作、划动操作、拖动操作、按照预设方向倾斜或转动所述第一设备的操作中至少一种。Optionally, the roll-out operation includes at least one of a click operation, a long press operation, a swipe operation, a drag operation, and an operation of tilting or rotating the first device in a preset direction.

所述装置还可以包括转移触发模块,用于:获取用户执行的转出触发操作;显示包含若干个可转出电子凭证的所述凭证转移页面。The device may also include a transfer trigger module, which is used to: obtain a transfer trigger operation performed by a user; and display the certificate transfer page containing a plurality of transferable electronic certificates.

可选的,所述显示包含若干个可转出电子凭证的所述凭证转移页面,具体可以包括:在所述凭证转移页面中显示将若干个可转出电子凭证按照预设顺序载入所述凭证转移页面的动画效果。Optionally, the display of the credential transfer page including a plurality of transferable electronic credentials may specifically include: displaying an animation effect of loading a plurality of transferable electronic credentials into the credential transfer page in a preset order in the credential transfer page.

可选的,所述预设顺序至少包括以下一种顺序:基于凭证的有效期得到的排序;基于所述第一终端的用户获取到凭证的时间得到的排序;基于所述第一终端的用户的偏好得到的排序;基于凭证的可使用时间与当前时间的匹配度得到的排序;基于凭证对应的对象的热门程度得到的排序。Optionally, the preset order includes at least one of the following orders: an order based on the validity period of the credential; an order based on the time when the user of the first terminal obtains the credential; an order based on the preference of the user of the first terminal; an order based on the matching degree between the usable time of the credential and the current time; an order based on the popularity of the object corresponding to the credential.

可选的,所述目标电子凭证包括未被使用且在有效期内的电子凭证。Optionally, the target electronic certificate includes an electronic certificate that has not been used and is within the validity period.

可选的,所述目标电子凭证包括用于参与休闲娱乐活动的电子凭证、用于参与竞赛活动的电子凭证、用于出行的电子凭证、用于表示享有的优惠信息的电子凭证中至少一种。Optionally, the target electronic certificate includes at least one of an electronic certificate for participating in leisure and entertainment activities, an electronic certificate for participating in competition activities, an electronic certificate for travel, and an electronic certificate for indicating preferential information enjoyed.

可选的,所述装置还可以包括信息显示模块,用于显示包含转出结果的提示信息。Optionally, the device may further include an information display module, configured to display prompt information including the transfer result.

基于同样的思路,本说明书实施例还提供了上述方法对应的装置。图11为本说明书实施例提供的对应于图6的一种凭证获取的装置的结构示意图。如图11所示,该装置可以包括:Based on the same idea, the embodiment of this specification also provides a device corresponding to the above method. Figure 11 is a schematic diagram of the structure of a device for obtaining a credential corresponding to Figure 6 provided in the embodiment of this specification. As shown in Figure 11, the device may include:

通信模块1102,用于建立与第一终端的短距离通信连接;所述第一终端为基于用户的转出操作转出目标电子凭证的终端。The communication module 1102 is used to establish a short-distance communication connection with a first terminal; the first terminal is a terminal that transfers out a target electronic certificate based on a transfer-out operation of a user.

页面显示模块1104,用于显示凭证转入页面,在所述凭证转入页面中显示将目标电子凭证转入第二终端的视觉效果。The page display module 1104 is used to display a credential transfer page, in which a visual effect of transferring a target electronic credential to the second terminal is displayed.

基于图11的装置,本说明书实施例还提供了一些具体实施方案,下面进行说明。Based on the device of FIG. 11 , the embodiments of this specification also provide some specific implementation plans, which are described below.

可选的,所述页面显示模块还用于:所述凭证转入页面中显示接收到的所述目标电子凭证后,显示凭证信息页面;所述凭证信息页面包括用于表示所述目标电子凭证的码图像。Optionally, the page display module is further used to: after displaying the received target electronic certificate in the certificate transfer page, display a certificate information page; the certificate information page includes a code image for representing the target electronic certificate.

可选的,所述页面显示模块还用于:所述凭证转入页面显示接收到的所述目标电子凭证后,显示凭证接收确认页面;所述凭证接收确认页面中包含用于接收凭证的第一控件、用于拒绝接收凭证的第二控件中至少一种。Optionally, the page display module is also used to: after the credential transfer page displays the received target electronic credential, display a credential reception confirmation page; the credential reception confirmation page includes at least one of a first control for receiving the credential and a second control for refusing to receive the credential.

可选的,所述显示凭证信息页面,具体可以包括:若获取到用户基于所述凭证接收确认页面执行的确认接收操作,则显示凭证信息页面。Optionally, the displaying of the credential information page may specifically include: if a confirmation reception operation performed by the user based on the credential reception confirmation page is obtained, then displaying the credential information page.

可选的,所述凭证信息页面或所述凭证接收确认页面中包括所述目标凭证的对象名称信息、码图像信息、凭证使用地点信息、凭证使用时间信息、凭证价格信息、凭证数量信息中至少一种。Optionally, the voucher information page or the voucher reception confirmation page includes at least one of the object name information, code image information, voucher usage location information, voucher usage time information, voucher price information, and voucher quantity information of the target voucher.

可选的,所述装置还用于:若获取到用户基于所述凭证接收确认页面执行的拒绝接收操作,则退出凭证转移流程。Optionally, the device is also used to: exit the credential transfer process if a rejection reception operation performed by the user based on the credential reception confirmation page is obtained.

可选的,若所述目标电子凭证包括第一电子凭证和第二电子凭证;所述页面显示模块具体可以用于:显示包含所述第一电子凭证的凭证信息的凭证信息页面;若获取到用户执行的凭证切换操作,则显示包含所述第二电子凭证的凭证信息的凭证信息页面。Optionally, if the target electronic credential includes a first electronic credential and a second electronic credential; the page display module can be specifically used to: display a credential information page containing the credential information of the first electronic credential; if a credential switching operation performed by the user is obtained, display a credential information page containing the credential information of the second electronic credential.

可选的,所述将目标电子凭证转入所述第二终端的视觉效果,具体包括:将所述目标电子凭证由所述第二终端的预设边缘处转入的视觉效果;所述预设边缘为靠近所述第一终端中转出所述目标电子凭证的边缘。Optionally, the visual effect of transferring the target electronic certificate to the second terminal specifically includes: the visual effect of transferring the target electronic certificate from a preset edge of the second terminal; the preset edge is close to the edge of the first terminal from which the target electronic certificate is transferred out.

可选的,将目标电子凭证转入所述第二终端的视觉效果与将目标电子凭证转出所述第一终端的视觉效果为联动转移所述目标电子凭证的视觉效果。Optionally, the visual effect of transferring the target electronic certificate into the second terminal and the visual effect of transferring the target electronic certificate out of the first terminal are visual effects of linked transfer of the target electronic certificate.

基于同样的思路,本说明书实施例还提供了上述方法对应的装置。图12为本说明书实施例提供的对应于图9的一种凭证转移的装置的结构示意图。如图12所示,该装置可以包括:Based on the same idea, the embodiment of this specification also provides a device corresponding to the above method. Figure 12 is a schematic diagram of the structure of a device for credential transfer corresponding to Figure 9 provided in the embodiment of this specification. As shown in Figure 12, the device may include:

请求获取模块1202,用于获取第一终端发送的针对待转出的目标电子凭证的转出请求;所述转出请求是基于所述第一终端的用户在凭证转移页面上针对所述目标电子凭证的转出操作生成的。The request acquisition module 1202 is used to acquire a transfer request for a target electronic certificate to be transferred out sent by the first terminal; the transfer request is generated based on a transfer operation of the user of the first terminal on the certificate transfer page for the target electronic certificate.

转移模块1204,用于基于所述转出请求,将所述目标电子凭证转移至与所述第一终端建立短距离通信连接的第二终端。The transfer module 1204 is configured to transfer the target electronic certificate to a second terminal that has established a short-range communication connection with the first terminal based on the transfer-out request.

基于图12的装置,本说明书实施例还提供了一些具体实施方案,下面进行说明。Based on the device of FIG. 12 , the embodiments of this specification also provide some specific implementation plans, which are described below.

可选的,所述装置还可以包括第一效果生成模块,用于生成将所述目标电子凭证由所述第一终端转出的视觉效果,发送至所述第一终端。Optionally, the device may further include a first effect generating module, configured to generate a visual effect of transferring the target electronic certificate from the first terminal, and send the visual effect to the first terminal.

可选的,所述装置还可以包括第二效果生成模块,用于生成将所述目标电子凭证转入所述第二终端的视觉效果,发送至所述第二终端。Optionally, the device may further include a second effect generating module, configured to generate a visual effect of transferring the target electronic certificate to the second terminal, and send the visual effect to the second terminal.

基于同样的思路,本说明书实施例还提供了上述方法对应的设备。Based on the same idea, the embodiments of this specification also provide a device corresponding to the above method.

图13为本说明书实施例提供一种凭证转移以及获取的设备的结构示意图。如图13所示,设备1300可以包括:FIG13 is a schematic diagram of a device for transferring and acquiring a credential provided by an embodiment of the present specification. As shown in FIG13 , the device 1300 may include:

至少一个处理器1310;以及,at least one processor 1310; and,

与所述至少一个处理器通信连接的存储器1330;其中,所述存储器1330存储有可被所述至少一个处理器1310执行的指令1320,所述指令被所述至少一个处理器1310执行,以使所述至少一个处理器1310能够执行上述凭证转移的方法和/或凭证获取的方法。A memory 1330 communicatively connected to the at least one processor; wherein the memory 1330 stores instructions 1320 executable by the at least one processor 1310, and the instructions are executed by the at least one processor 1310 to enable the at least one processor 1310 to execute the above-mentioned method of credential transfer and/or method of credential acquisition.

基于同样的思路,本说明书实施例还提供了上述方法对应的计算机可读介质。计算机可读介质上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现上述凭证转移的方法和/或凭证获取的方法。Based on the same idea, the embodiment of this specification also provides a computer-readable medium corresponding to the above method. The computer-readable medium stores computer-readable instructions, which can be executed by a processor to implement the above credential transfer method and/or credential acquisition method.

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于图13所示的设备而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device shown in FIG13, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

在20世纪90年代,对于一个技术的改进可以很明显地区分是硬件上的改进(例如,对二极管、晶体管、开关等电路结构的改进)还是软件上的改进(对于方法流程的改进)。然而,随着技术的发展,当今的很多方法流程的改进已经可以视为硬件电路结构的直接改进。设计人员几乎都通过将改进的方法流程编程到硬件电路中来得到相应的硬件电路结构。因此,不能说一个方法流程的改进就不能用硬件实体模块来实现。例如,可编程逻辑器件(Programmable Logic Device, PLD)(例如现场可编程门阵列(Field Programmable GateArray,FPGA))就是这样一种集成电路,其逻辑功能由用户对器件编程来确定。由设计人员自行编程来把一个数字系统“集成”在一片PLD上,而不需要请芯片制造厂商来设计和制作专用的集成电路芯片。而且,如今,取代手工地制作集成电路芯片,这种编程也多半改用“逻辑编译器(logic compiler)”软件来实现,它与程序开发撰写时所用的软件编译器相类似,而要编译之前的原始代码也得用特定的编程语言来撰写,此称之为硬件描述语言(Hardware Description Language,HDL),而HDL也并非仅有一种,而是有许多种,如ABEL(Advanced Boolean Expression Language)、AHDL(Altera Hardware DescriptionLanguage)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL(Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(RubyHardware Description Language)等,目前最普遍使用的是VHDL(Very-High-SpeedIntegrated Circuit Hardware Description Language)与Verilog。本领域技术人员也应该清楚,只需要将方法流程用上述几种硬件描述语言稍作逻辑编程并编程到集成电路中,就可以很容易得到实现该逻辑方法流程的硬件电路。In the 1990s, it was very clear whether the improvement of a technology was hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with hardware entity modules. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

控制器可以按任何适当的方式实现,例如,控制器可以采取例如微处理器或处理器以及存储可由该(微)处理器执行的计算机可读程序代码(例如软件或固件)的计算机可读介质、逻辑门、开关、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程逻辑控制器和嵌入微控制器的形式,控制器的例子包括但不限于以下微控制器:ARC 625D、Atmel AT91SAM、Microchip PIC18F26K20 以及Silicone Labs C8051F320,存储器控制器还可以被实现为存储器的控制逻辑的一部分。本领域技术人员也知道,除了以纯计算机可读程序代码方式实现控制器以外,完全可以通过将方法步骤进行逻辑编程来使得控制器以逻辑门、开关、专用集成电路、可编程逻辑控制器和嵌入微控制器等的形式来实现相同功能。因此这种控制器可以被认为是一种硬件部件,而对其内包括的用于实现各种功能的装置也可以视为硬件部件内的结构。或者甚至,可以将用于实现各种功能的装置视为既可以是实现方法的软件模块又可以是硬件部件内的结构。The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.

上述实施例阐明的系统、装置、模块或单元,具体可以由计算机芯片或实体实现,或者由具有某种功能的产品来实现。一种典型的实现设备为计算机。具体的,计算机例如可以为个人计算机、膝上型计算机、蜂窝电话、相机电话、智能电话、个人数字助理、媒体播放器、导航设备、电子邮件设备、游戏控制台、平板计算机、可穿戴设备或者这些设备中的任何设备的组合。The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

为了描述的方便,描述以上装置时以功能分为各种单元分别描述。当然,在实施本申请时可以把各单元的功能在同一个或多个软件和/或硬件中实现。For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and/or hardware.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to the flowcharts and/or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the processes and/or boxes in the flowchart and/or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate a device for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPU), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and/or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带式磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined in this article, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. The present application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

本申请可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本申请,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (29)

1.一种凭证转移的方法,应用于第一终端,包括:1. A method for transferring a credential, applied to a first terminal, comprising: 获取用户在凭证转移页面上针对待转出的目标电子凭证的转出操作;Obtain the user's transfer operation on the certificate transfer page for the target electronic certificate to be transferred out; 基于所述转出操作,将所述目标电子凭证转移至与所述第一终端建立短距离通信连接的第二终端;Based on the transfer-out operation, transferring the target electronic certificate to a second terminal that establishes a short-range communication connection with the first terminal; 在所述凭证转移页面上显示将所述目标电子凭证由所述第一终端转出的转出视觉效果。A transfer visual effect of transferring the target electronic certificate from the first terminal is displayed on the certificate transfer page. 2.根据权利要求1所述的方法,所述转出操作包括移动所述目标电子凭证的操作;所述在所述凭证转移页面上显示将所述目标电子凭证由所述第一终端转出的转出视觉效果,具体包括:2. The method according to claim 1, wherein the transfer operation includes an operation of moving the target electronic certificate; and the displaying of a transfer visual effect of transferring the target electronic certificate from the first terminal on the certificate transfer page specifically includes: 基于用户在所述凭证转移页面上的移动轨迹,显示所述目标电子凭证按照所述移动轨迹移动的视觉效果。Based on the movement track of the user on the credential transfer page, a visual effect of the target electronic credential moving along the movement track is displayed. 3.根据权利要求2所述的方法,所述凭证转移页面中包括转出确定区域;所述获取用户在凭证转移页面上针对待转出的目标电子凭证的转出操作,具体包括:3. The method according to claim 2, wherein the credential transfer page includes a transfer determination area; and obtaining the transfer operation of the user on the credential transfer page for the target electronic credential to be transferred specifically includes: 获取用户将所述目标电子凭证向所述转出确定区域的方向移动的操作;Acquiring an operation of a user moving the target electronic voucher toward the direction of the transfer-out determination area; 所述在所述凭证转移页面上显示将所述目标电子凭证由所述第一终端转出的视觉效果,具体包括:The displaying of the visual effect of transferring the target electronic certificate from the first terminal on the certificate transfer page specifically includes: 基于用户在所述凭证转移页面上执行的朝向所述转出确定区域的移动轨迹,显示所述目标电子凭证向所述转出确定区域移动的视觉效果。Based on a movement track of the user on the credential transfer page toward the transfer-out determination area, a visual effect of the target electronic credential moving toward the transfer-out determination area is displayed. 4.根据权利要求3所述的方法,所述转出确定区域还用于显示所述第二终端的终端用户的用户标识信息;所述用户标识信息包括用户昵称、用户头像、用户名称中至少一种信息。4. According to the method of claim 3, the transfer-out determination area is also used to display user identification information of the terminal user of the second terminal; the user identification information includes at least one of a user nickname, a user avatar, and a user name. 5.根据权利要求1所述的方法,所述凭证转移页面中包括用于表示所述目标电子凭证的凭证标识信息;所述凭证标识信息为图片形式、虚拟形象形式、文本形式中至少一种形式的信息;5. The method according to claim 1, wherein the credential transfer page includes credential identification information for representing the target electronic credential; the credential identification information is information in at least one of a picture form, a virtual image form, and a text form; 所述获取用户在凭证转移页面上针对待转出的目标电子凭证的转出操作,具体包括:获取用户在凭证转移页面上针对待转出的目标电子凭证的凭证标识信息的转出操作。The obtaining of the transfer-out operation of the user on the credential transfer page for the target electronic credential to be transferred out specifically includes: obtaining the transfer-out operation of the user on the credential transfer page for the credential identification information of the target electronic credential to be transferred out. 6.根据权利要求1所述的方法,所述凭证转移页面中包括若干个可转移的电子凭证;所述目标电子凭证为所述若干个可转移的电子凭证中的一个或多个;所述第二终端为与所述第一终端建立通信连接的一个或多个终端。6. According to the method according to claim 1, the credential transfer page includes several transferable electronic credentials; the target electronic credential is one or more of the several transferable electronic credentials; the second terminal is one or more terminals that establish a communication connection with the first terminal. 7.根据权利要求1所述的方法,所述转出操作包括点击操作、长摁操作、划动操作、拖动操作、按照预设方向倾斜或转动所述第一设备的操作中至少一种。7. According to the method of claim 1, the roll-out operation comprises at least one of a click operation, a long press operation, a swipe operation, a drag operation, and an operation of tilting or rotating the first device in a preset direction. 8.根据权利要求1所述的方法,所述方法还包括:8. The method according to claim 1, further comprising: 获取用户执行的转出触发操作;Get the roll-out trigger operation performed by the user; 显示包含若干个可转出电子凭证的所述凭证转移页面。The certificate transfer page containing several transferable electronic certificates is displayed. 9.根据权利要求8所述的方法,所述显示包含若干个可转出电子凭证的所述凭证转移页面,具体包括:9. The method according to claim 8, wherein the displaying of the certificate transfer page including a plurality of transferable electronic certificates specifically comprises: 在所述凭证转移页面中显示将若干个可转出电子凭证按照预设顺序载入所述凭证转移页面的动画效果。The credential transfer page displays an animation effect of loading a plurality of transferable electronic credentials into the credential transfer page in a preset order. 10.根据权利要求9所述的方法,所述预设顺序至少包括以下一种顺序:10. The method according to claim 9, wherein the preset sequence comprises at least one of the following sequences: 基于凭证的有效期得到的排序;Sort based on the validity period of the credential; 基于所述第一终端的用户获取到凭证的时间得到的排序;A ranking based on the time when the user of the first terminal obtains the credential; 基于所述第一终端的用户的偏好得到的排序;A ranking based on preferences of a user of the first terminal; 基于凭证的可使用时间与当前时间的匹配度得到的排序;The ranking is based on the matching degree between the usable time of the voucher and the current time; 基于凭证对应的对象的热门程度得到的排序。The ranking is based on the popularity of the object corresponding to the credential. 11.根据权利要求1所述的方法,所述目标电子凭证包括未被使用且在有效期内的电子凭证。The method according to claim 1 , wherein the target electronic credential comprises an electronic credential that has not been used and is within a validity period. 12.根据权利要求1所述的方法,所述目标电子凭证包括用于参与休闲娱乐活动的电子凭证、用于参与竞赛活动的电子凭证、用于出行的电子凭证、用于表示享有的优惠信息的电子凭证中至少一种。12. According to the method of claim 1, the target electronic certificate includes at least one of an electronic certificate for participating in leisure and entertainment activities, an electronic certificate for participating in competition activities, an electronic certificate for travel, and an electronic certificate for indicating preferential information enjoyed. 13.根据权利要求1所述的方法,所述方法还包括:13. The method according to claim 1, further comprising: 显示包含转出结果的提示信息。Displays a prompt message containing the export results. 14.一种凭证获取的方法,应用于第二终端,包括:14. A method for obtaining a credential, applied to a second terminal, comprising: 建立与第一终端的短距离通信;所述第一终端为基于用户的转出操作转出目标电子凭证的终端;Establishing short-range communication with a first terminal; the first terminal is a terminal for transferring out a target electronic certificate based on a transfer-out operation of a user; 显示凭证转入页面,在所述凭证转入页面中显示将目标电子凭证转入所述第二终端的视觉效果。A credential transfer page is displayed, in which a visual effect of transferring the target electronic credential to the second terminal is displayed. 15.根据权利要求14所述的方法,所述方法还包括:15. The method according to claim 14, further comprising: 显示凭证信息页面;所述凭证信息页面包括用于表示所述目标电子凭证的码图像。A credential information page is displayed; the credential information page includes a code image for representing the target electronic credential. 16.根据权利要求15所述的方法,所述方法还包括:16. The method according to claim 15, further comprising: 显示凭证接收确认页面;所述凭证接收确认页面中包含用于接收凭证的第一控件、用于拒绝接收凭证的第二控件中至少一种;Displaying a credential receiving confirmation page; the credential receiving confirmation page includes at least one of a first control for receiving a credential and a second control for refusing to receive a credential; 所述显示凭证信息页面,具体包括:The page displaying credential information specifically includes: 若获取到用户基于所述凭证接收确认页面执行的确认接收操作,则显示凭证信息页面。If a confirmation reception operation performed by the user based on the credential reception confirmation page is obtained, the credential information page is displayed. 17.根据权利要求16所述的方法,所述凭证信息页面或所述凭证接收确认页面中包括所述目标凭证的对象名称信息、码图像信息、凭证使用地点信息、凭证使用时间信息、凭证价格信息、凭证数量信息中至少一种。17. According to the method of claim 16, the voucher information page or the voucher reception confirmation page includes at least one of the object name information, code image information, voucher usage location information, voucher usage time information, voucher price information, and voucher quantity information of the target voucher. 18.根据权利要求15所述的方法,所述方法还包括:18. The method according to claim 15, further comprising: 若获取到用户基于所述凭证接收确认页面执行的拒绝接收操作,则退出凭证转移流程。If a rejection operation performed by the user based on the credential reception confirmation page is obtained, the credential transfer process is exited. 19.根据权利要求15所述的方法,若所述目标电子凭证包括第一电子凭证和第二电子凭证;所述显示凭证信息页面,具体包括:19. The method according to claim 15, if the target electronic credential includes a first electronic credential and a second electronic credential; the displaying the credential information page specifically includes: 显示包含所述第一电子凭证的凭证信息的凭证信息页面;displaying a credential information page including credential information of the first electronic credential; 若获取到用户执行的凭证切换操作,则显示包含所述第二电子凭证的凭证信息的凭证信息页面。If a credential switching operation performed by the user is acquired, a credential information page including credential information of the second electronic credential is displayed. 20.根据权利要求14所述的方法,所述将目标电子凭证转入所述第二终端的视觉效果,具体包括:20. The method according to claim 14, wherein the visual effect of transferring the target electronic certificate to the second terminal specifically comprises: 将所述目标电子凭证由所述第二终端的预设边缘处转入的视觉效果;所述预设边缘为靠近所述第一终端中转出所述目标电子凭证的边缘。The target electronic certificate is transferred in from a preset edge of the second terminal to create a visual effect; the preset edge is close to the edge of the first terminal where the target electronic certificate is transferred out. 21.根据权利要求14所述的方法,将目标电子凭证转入所述第二终端的视觉效果与将目标电子凭证转出所述第一终端的视觉效果为联动转移所述目标电子凭证的视觉效果。21. The method according to claim 14, wherein the visual effect of transferring the target electronic certificate into the second terminal and the visual effect of transferring the target electronic certificate out of the first terminal are visual effects of linked transfer of the target electronic certificate. 22.一种凭证转移的方法,应用于服务器,包括:22. A method for transferring credentials, applied to a server, comprising: 获取第一终端发送的针对待转出的目标电子凭证的转出请求;所述转出请求是基于所述第一终端的用户在凭证转移页面上针对所述目标电子凭证的转出操作生成的;Acquire a transfer request for a target electronic certificate to be transferred out, sent by the first terminal; the transfer request is generated based on a transfer operation of the user of the first terminal on a certificate transfer page for the target electronic certificate; 基于所述转出请求,将所述目标电子凭证转移至与所述第一终端建立短距离通信连接的第二终端。Based on the transfer-out request, the target electronic certificate is transferred to a second terminal that establishes a short-range communication connection with the first terminal. 23.根据权利要求22所述的方法,所述方法还包括:23. The method according to claim 22, further comprising: 生成将所述目标电子凭证由所述第一终端转出的视觉效果,发送至所述第一终端。A visual effect of transferring the target electronic certificate from the first terminal is generated and sent to the first terminal. 24.根据权利要求22所述的方法,所述方法还包括:24. The method according to claim 22, further comprising: 生成将所述目标电子凭证转入所述第二终端的视觉效果,发送至所述第二终端。A visual effect of transferring the target electronic certificate to the second terminal is generated and sent to the second terminal. 25.一种凭证转移的装置,包括:25. A device for transferring a certificate, comprising: 操作获取模块,用于获取用户在凭证转移页面上针对待转出的目标电子凭证的转出操作;An operation acquisition module, used to acquire a user's transfer operation on a certificate transfer page for a target electronic certificate to be transferred out; 转移模块,用于基于所述转出操作,将所述目标电子凭证转移至与第一终端建立短距离通信连接的第二终端;A transfer module, configured to transfer the target electronic certificate to a second terminal that has established a short-range communication connection with the first terminal based on the transfer-out operation; 效果显示模块,用于在所述凭证转移页面上显示将所述目标电子凭证由所述第一终端转出的转出视觉效果。The effect display module is used to display the transfer visual effect of transferring the target electronic certificate from the first terminal on the certificate transfer page. 26.一种凭证获取的装置,包括:26. A device for obtaining a credential, comprising: 通信模块,用于建立与第一终端的短距离通信连接;所述第一终端为基于用户的转出操作转出目标电子凭证的终端;A communication module, used to establish a short-distance communication connection with a first terminal; the first terminal is a terminal for transferring out a target electronic certificate based on a transfer-out operation of a user; 页面显示模块,用于显示凭证转入页面,在所述凭证转入页面中显示将目标电子凭证转入第二终端的视觉效果。The page display module is used to display a certificate transfer page, in which the visual effect of transferring the target electronic certificate to the second terminal is displayed. 27.一种凭证转移的装置,包括:27. A device for transferring a certificate, comprising: 请求获取模块,用于获取第一终端发送的针对待转出的目标电子凭证的转出请求;所述转出请求是基于所述第一终端的用户在凭证转移页面上针对所述目标电子凭证的转出操作生成的;A request acquisition module, used to acquire a transfer request for a target electronic certificate to be transferred out, sent by the first terminal; the transfer request is generated based on a transfer operation of the user of the first terminal on a certificate transfer page for the target electronic certificate; 转移模块,用于基于所述转出请求,将所述目标电子凭证转移至与所述第一终端建立短距离通信连接的第二终端。A transfer module is used to transfer the target electronic certificate to a second terminal that establishes a short-range communication connection with the first terminal based on the transfer-out request. 28.一种凭证转移以及获取的设备,包括:28. A device for transferring and obtaining credentials, comprising: 至少一个处理器;以及,at least one processor; and, 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively connected to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1至13中任一项所述的凭证转移的方法或者权利要求14至21中任一项所述的凭证获取的方法或者权利要求22至24中任一项所述的凭证转移的方法。The memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method for credential transfer described in any one of claims 1 to 13, the method for credential acquisition described in any one of claims 14 to 21, or the method for credential transfer described in any one of claims 22 to 24. 29.一种计算机可读介质,其上存储有计算机可读指令,所述计算机可读指令可被处理器执行以实现权利要求1至13中任一项所述的凭证转移的方法或者权利要求14至21中任一项所述的凭证获取的方法或者权利要求22至24中任一项所述的凭证转移的方法。29. A computer-readable medium having computer-readable instructions stored thereon, wherein the computer-readable instructions can be executed by a processor to implement the method for transferring credentials described in any one of claims 1 to 13, or the method for obtaining credentials described in any one of claims 14 to 21, or the method for transferring credentials described in any one of claims 22 to 24.
CN202411295628.9A 2024-09-14 2024-09-14 Method, device, equipment and medium for transferring certificate Active CN118843083B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN202510225879.8A CN120151787B (en) 2024-09-14 2024-09-14 A method, apparatus, equipment and medium for transferring credentials.
CN202411295628.9A CN118843083B (en) 2024-09-14 2024-09-14 Method, device, equipment and medium for transferring certificate
PCT/CN2025/120416 WO2026056921A1 (en) 2024-09-14 2025-09-10 Credential transfer methods and apparatus, device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411295628.9A CN118843083B (en) 2024-09-14 2024-09-14 Method, device, equipment and medium for transferring certificate

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202510225879.8A Division CN120151787B (en) 2024-09-14 2024-09-14 A method, apparatus, equipment and medium for transferring credentials.

Publications (2)

Publication Number Publication Date
CN118843083A true CN118843083A (en) 2024-10-25
CN118843083B CN118843083B (en) 2025-03-18

Family

ID=93146725

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202411295628.9A Active CN118843083B (en) 2024-09-14 2024-09-14 Method, device, equipment and medium for transferring certificate
CN202510225879.8A Active CN120151787B (en) 2024-09-14 2024-09-14 A method, apparatus, equipment and medium for transferring credentials.

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202510225879.8A Active CN120151787B (en) 2024-09-14 2024-09-14 A method, apparatus, equipment and medium for transferring credentials.

Country Status (2)

Country Link
CN (2) CN118843083B (en)
WO (1) WO2026056921A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119048087A (en) * 2024-10-31 2024-11-29 支付宝(杭州)信息技术有限公司 Electronic ticket interaction processing method, device and equipment
WO2026056921A1 (en) * 2024-09-14 2026-03-19 支付宝(杭州)信息技术有限公司 Credential transfer methods and apparatus, device and medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042765A (en) * 2006-03-24 2007-09-26 中国移动通信集团公司 Processing method for electric complimentary ticket information
CN101902696A (en) * 2009-05-27 2010-12-01 北京携友聚信信息技术有限公司 Method and system for achieving exchange of paperless visiting cards with mobile device
CN102811438A (en) * 2012-08-24 2012-12-05 腾讯科技(深圳)有限公司 Information interaction method, relevant device and system
CN105871944A (en) * 2015-01-19 2016-08-17 阿里巴巴集团控股有限公司 Service object information sharing method and device
CN107995097A (en) * 2017-11-22 2018-05-04 吴东辉 A kind of method and system of interaction AR red packets
CN108282471A (en) * 2018-01-12 2018-07-13 阿里巴巴集团控股有限公司 A transmission method, device and equipment for an electronic certificate
WO2022156584A1 (en) * 2021-01-20 2022-07-28 支付宝(杭州)信息技术有限公司 Electronic certificate-based interaction method and apparatus, and electronic device
CN116664127A (en) * 2021-01-20 2023-08-29 支付宝(杭州)信息技术有限公司 An interactive method, device and electronic equipment based on electronic certificate
CN118628174A (en) * 2024-06-27 2024-09-10 北京三快在线科技有限公司 Electronic voucher processing method, computer program product and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130311262A1 (en) * 2012-05-15 2013-11-21 Boku, Inc. Offer redemption rate based selection and display of offers
US9582827B2 (en) * 2014-03-31 2017-02-28 Gift Card Impressions, LLC System and method for digital delivery of vouchers for online gifting
WO2018205766A1 (en) * 2017-05-12 2018-11-15 腾讯科技(深圳)有限公司 Service processing method, storage medium and terminal
CN115879921A (en) * 2022-12-29 2023-03-31 重庆旅游云信息科技有限公司 A method and device for online transfer of electronic tickets
CN118843083B (en) * 2024-09-14 2025-03-18 支付宝(杭州)信息技术有限公司 Method, device, equipment and medium for transferring certificate

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101042765A (en) * 2006-03-24 2007-09-26 中国移动通信集团公司 Processing method for electric complimentary ticket information
CN101902696A (en) * 2009-05-27 2010-12-01 北京携友聚信信息技术有限公司 Method and system for achieving exchange of paperless visiting cards with mobile device
CN102811438A (en) * 2012-08-24 2012-12-05 腾讯科技(深圳)有限公司 Information interaction method, relevant device and system
CN105871944A (en) * 2015-01-19 2016-08-17 阿里巴巴集团控股有限公司 Service object information sharing method and device
CN107995097A (en) * 2017-11-22 2018-05-04 吴东辉 A kind of method and system of interaction AR red packets
CN108282471A (en) * 2018-01-12 2018-07-13 阿里巴巴集团控股有限公司 A transmission method, device and equipment for an electronic certificate
US20200287891A1 (en) * 2018-01-12 2020-09-10 Alibaba Group Holding Limited Electronic certificate transmission method, apparatus and device
WO2022156584A1 (en) * 2021-01-20 2022-07-28 支付宝(杭州)信息技术有限公司 Electronic certificate-based interaction method and apparatus, and electronic device
CN116664127A (en) * 2021-01-20 2023-08-29 支付宝(杭州)信息技术有限公司 An interactive method, device and electronic equipment based on electronic certificate
CN118628174A (en) * 2024-06-27 2024-09-10 北京三快在线科技有限公司 Electronic voucher processing method, computer program product and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2026056921A1 (en) * 2024-09-14 2026-03-19 支付宝(杭州)信息技术有限公司 Credential transfer methods and apparatus, device and medium
CN119048087A (en) * 2024-10-31 2024-11-29 支付宝(杭州)信息技术有限公司 Electronic ticket interaction processing method, device and equipment
CN119048087B (en) * 2024-10-31 2025-09-30 支付宝(杭州)信息技术有限公司 Electronic ticket interactive processing method, device and equipment

Also Published As

Publication number Publication date
WO2026056921A1 (en) 2026-03-19
CN120151787A (en) 2025-06-13
CN118843083B (en) 2025-03-18
CN120151787B (en) 2025-12-26

Similar Documents

Publication Publication Date Title
CN118798876B (en) A payment method, device, equipment and medium based on near field communication
US10740807B2 (en) Systems and methods for transmission of representational image-based offers based on a tactile input
KR101364429B1 (en) Near field communication and network data/product transfer
CN118843083A (en) Method, device, equipment and medium for transferring certificates
CN107038569B (en) Information interaction method and device
KR20160085906A (en) Method and system for sharing order information
WO2014015365A1 (en) Virtual gifting
EP3005068B1 (en) Tap and hold
CN109598492A (en) A kind of method of payment, system, device, terminal and service server
JP7445055B1 (en) Application program, payment control method, payment server, program, and payment system
WO2025077652A1 (en) Payment method, apparatus and device
JP7425244B1 (en) Application programs, payment control methods, and payment systems
CN118489117A (en) User equipment and rewarding right data processing method
US20250131410A1 (en) Payment methods, apparatuses, and devices based on near field communication, and media
JP2021174158A (en) Store terminal
WO2026092234A1 (en) Red envelope interaction processing methods and apparatuses, device and medium
CN113409040B (en) A method, device, equipment and medium for sending information
EP4528623A1 (en) Interaction method and apparatus, electronic device, and computer readable medium
CN112446693B (en) Information processing method and device thereof
HK40116753B (en) Payment method and device based on near field communication, equipment and medium
HK40116753A (en) Payment method and device based on near field communication, equipment and medium
HK40116752B (en) Payment method and device based on near field communication, equipment and medium
HK40116752A (en) Payment method and device based on near field communication, equipment and medium
CN119379276A (en) A red envelope interactive processing method, device, equipment and medium
CN121411866A (en) Information display methods, devices, electronic equipment, storage media and program products

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
CP03 Change of name, title or address

Address after: 310000 Zhejiang Province, Hangzhou City, Xihu District, Xixi Road 543-569 (continuous odd numbers) Building 1, Building 2, 5th Floor, Room 518

Patentee after: Alipay (Hangzhou) Digital Service Technology Co.,Ltd.

Country or region after: China

Address before: 801-11, Section B, 8th Floor, No. 556, Xixi Road, Xihu District, Hangzhou, Zhejiang 310063

Patentee before: Alipay (Hangzhou) Information Technology Co., Ltd.

Country or region before: China

CP03 Change of name, title or address