[go: up one dir, main page]

CN109255601B - Terminal bus card processing method and device - Google Patents

Terminal bus card processing method and device Download PDF

Info

Publication number
CN109255601B
CN109255601B CN201811012733.1A CN201811012733A CN109255601B CN 109255601 B CN109255601 B CN 109255601B CN 201811012733 A CN201811012733 A CN 201811012733A CN 109255601 B CN109255601 B CN 109255601B
Authority
CN
China
Prior art keywords
terminal
bus card
target bus
target
transfer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811012733.1A
Other languages
Chinese (zh)
Other versions
CN109255601A (en
Inventor
张旭
程雨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201811012733.1A priority Critical patent/CN109255601B/en
Publication of CN109255601A publication Critical patent/CN109255601A/en
Application granted granted Critical
Publication of CN109255601B publication Critical patent/CN109255601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/08Payment architectures
    • G06Q20/10Payment architectures specially adapted for electronic funds transfer [EFT] systems; specially adapted for home banking systems
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/30Payment architectures, schemes or protocols characterised by the use of specific devices or networks
    • G06Q20/32Payment architectures, schemes or protocols characterised by the use of specific devices or networks using wireless devices
    • G06Q20/327Short range or proximity payments by means of M-devices
    • G06Q20/3278RFID or NFC payments by means of M-devices
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4014Identity check for transactions
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/409Device specific authentication in transaction processing

Landscapes

  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Finance (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)

Abstract

本公开是关于一种终端公交卡的处理方法及装置,包括:在接收第二终端发送的转移指令时,响应于所述转移指令进行身份验证处理;在身份验证成功时,根据所述转移指令及所述第一终端的公交卡信息,生成转移数据信息;根据所述转移指令更新所述第一终端的公交卡信息;将所述转移数据信息通过近场通信NFC发送至第二终端。根据本公开实施例的终端公交卡的处理方法及装置,能够提高数据的安全性。

Figure 201811012733

The present disclosure relates to a terminal bus card processing method and device, including: when receiving a transfer instruction sent by a second terminal, performing identity verification processing in response to the transfer instruction; when the identity verification is successful, according to the transfer instruction and the bus card information of the first terminal to generate transfer data information; update the bus card information of the first terminal according to the transfer instruction; and send the transfer data information to the second terminal through NFC. According to the terminal bus card processing method and device of the embodiments of the present disclosure, data security can be improved.

Figure 201811012733

Description

终端公交卡的处理方法及装置Terminal bus card processing method and device

技术领域technical field

本公开涉及终端技术领域,尤其涉及一种终端公交卡的处理方法及装置。The present disclosure relates to the technical field of terminals, and in particular to a terminal bus card processing method and device.

背景技术Background technique

NFC(near field communication,近场通信)又称近距离无线通信,是一种短距离的高频无线通信技术,允许电子设备之间进行非接触式点对点数据传输,交换数据。在支持NFC的终端中存储公交卡信息,可以使得该终端能够实现公交卡功能。举例来说,在地铁站内,用户可以将终端靠近收费闸口,通过终端接收收费闸口发出的射频信号。终端接收收费闸口发出的射频信号后,可以响应于该射频信号,与收费闸口进行数据交互,完成刷卡操作。NFC (near field communication, near field communication), also known as short-range wireless communication, is a short-range high-frequency wireless communication technology that allows non-contact point-to-point data transmission and data exchange between electronic devices. Storing the bus card information in the terminal supporting NFC can enable the terminal to realize the function of the bus card. For example, in a subway station, the user can place the terminal close to the toll gate, and receive the radio frequency signal from the toll gate through the terminal. After receiving the radio frequency signal sent by the toll gate, the terminal can respond to the radio frequency signal to perform data interaction with the toll gate to complete the card swiping operation.

若用户更换了终端,则需要在新的终端上重复开通终端公交卡。If the user changes the terminal, it is necessary to re-open the terminal bus card on the new terminal.

发明内容Contents of the invention

为克服相关技术中存在的问题,本公开提供一种终端公交卡的处理方法及装置。In order to overcome the problems existing in the related technologies, the present disclosure provides a terminal bus card processing method and device.

根据本公开实施例的第一方面,提供一种终端公交卡的处理方法,所述方法应用于第一终端,所述方法包括:According to the first aspect of an embodiment of the present disclosure, a terminal bus card processing method is provided, the method is applied to a first terminal, and the method includes:

在接收第二终端发送的转移指令时,响应于所述转移指令进行身份验证处理;When receiving the transfer instruction sent by the second terminal, performing identity verification processing in response to the transfer instruction;

在身份验证成功时,根据所述转移指令及所述第一终端的公交卡信息,生成转移数据信息;When the identity verification is successful, generating transfer data information according to the transfer instruction and the bus card information of the first terminal;

根据所述转移指令更新所述第一终端的公交卡信息;updating the bus card information of the first terminal according to the transfer instruction;

将所述转移数据信息通过近场通信NFC发送至第二终端。Send the transfer data information to the second terminal through near field communication (NFC).

在一种可能的实现方式中,所述转移指令为用于指示第一终端转移目标公交卡的余额的第一转移指令,所述第一转移指令包括转移金额和目标公交卡标识,In a possible implementation, the transfer instruction is a first transfer instruction for instructing the first terminal to transfer the balance of the target bus card, the first transfer instruction includes the transfer amount and the target bus card identifier,

所述根据所述转移指令及所述第一终端的公交卡信息,生成转移数据信息,包括:The generating transfer data information according to the transfer instruction and the bus card information of the first terminal includes:

从所述第一终端的公交卡信息中获取目标公交卡的余额,所述目标公交卡为所述目标公交卡标识所表征的终端公交卡;Acquiring the balance of the target bus card from the bus card information of the first terminal, the target bus card being the terminal bus card represented by the target bus card identifier;

在所述第一终端的所述目标公交卡的余额大于或者等于所述转移金额时,根据所述转移金额生成转移数据信息。When the balance of the target bus card of the first terminal is greater than or equal to the transfer amount, transfer data information is generated according to the transfer amount.

在一种可能的实现方式中,所述根据转移指令更新所述第一终端的公交卡信息,包括:In a possible implementation manner, the updating the bus card information of the first terminal according to the transfer instruction includes:

根据所述转移金额更新所述第一终端的所述目标公交卡的余额。The balance of the target bus card of the first terminal is updated according to the transfer amount.

在一种可能的实现方式中,所述转移指令为用于指示第一终端转移目标公交卡的第二转移指令,所述第二转移指令中包括目标公交卡标识,In a possible implementation manner, the transfer instruction is a second transfer instruction for instructing the first terminal to transfer the target bus card, and the second transfer instruction includes the target bus card identifier,

所述根据所述转移指令及所述第一终端的公交卡信息,生成转移数据信息,包括:The generating transfer data information according to the transfer instruction and the bus card information of the first terminal includes:

根据所述第二转移指令,从所述第一终端的公交卡信息中获取目标公交卡的账号及所述目标公交卡的余额,According to the second transfer instruction, the account number of the target bus card and the balance of the target bus card are obtained from the bus card information of the first terminal,

其中,所述目标公交卡为所述目标公交卡标识所表征的终端公交卡;Wherein, the target bus card is a terminal bus card represented by the target bus card identifier;

根据所述目标公交卡的账号及所述目标公交卡的余额生成所述转移数据信息。The transfer data information is generated according to the account number of the target bus card and the balance of the target bus card.

在一种可能的实现方式中,所述根据转移指令更新所述第一终端的公交卡信息,包括:In a possible implementation manner, the updating the bus card information of the first terminal according to the transfer instruction includes:

从所述第一终端的公交卡信息中删除所述目标公交卡的公交卡信息。Deleting the bus card information of the target bus card from the bus card information of the first terminal.

根据本公开实施例的第二方面,提供一种终端公交卡的处理方法,所述方法应用于第二终端,所述方法包括:According to a second aspect of an embodiment of the present disclosure, a terminal bus card processing method is provided, the method is applied to a second terminal, and the method includes:

在所述第二终端成功登录个人账户时,响应于针对目标公交卡的调用操作,生成转移指令;When the second terminal successfully logs into the personal account, generating a transfer instruction in response to the call operation for the target bus card;

通过近场通信NFC向第一终端发送所述转移指令,以使所述第一终端进行身份验证处理,并在身份验证成功时根据所述转移指令及所述第一终端的公交卡信息生成转移数据信息;Send the transfer instruction to the first terminal through near-field communication NFC, so that the first terminal performs identity verification processing, and generates a transfer according to the transfer instruction and the bus card information of the first terminal when the identity verification is successful Data information;

接收所述第一终端发送的所述转移数据信息;receiving the transfer data information sent by the first terminal;

根据所述转移数据信息更新所述目标公交卡的公交卡信息。The bus card information of the target bus card is updated according to the transfer data information.

在一种可能的实现方式中,所述响应于针对目标公交卡的调用操作,生成转移指令,包括:In a possible implementation, the generating a transfer instruction in response to the calling operation for the target bus card includes:

在所述第二终端内已创建所述目标公交卡时,响应于针对所述目标公交卡的调用操作,生成转移金额界面;When the target bus card has been created in the second terminal, a transfer amount interface is generated in response to the calling operation for the target bus card;

从所述转移金额界面中获取转移金额,根据所述转移金额及所述目标公交卡的目标公交卡标识生成第一转移指令,所述第一转移指令用于指示第一终端向第二终端的所述目标公交卡中转移所述转移金额。Obtain the transfer amount from the transfer amount interface, generate a first transfer instruction according to the transfer amount and the target bus card identification of the target bus card, and the first transfer instruction is used to instruct the transfer from the first terminal to the second terminal The transfer amount is transferred to the target bus card.

在一种可能的实现方式中,所述转移数据信息包括所述转移金额和所述目标公交卡标识,In a possible implementation manner, the transfer data information includes the transfer amount and the target bus card identifier,

所述根据所述转移数据信息更新所述目标公交卡的公交卡信息,包括:The updating of the bus card information of the target bus card according to the transfer data information includes:

根据所述转移金额更新所述第二终端的所述目标公交卡的余额。The balance of the target bus card of the second terminal is updated according to the transfer amount.

在一种可能的实现方式中,所述响应于针对目标公交卡的调用操作,生成转移指令,包括:In a possible implementation, the generating a transfer instruction in response to the calling operation for the target bus card includes:

在所述第二终端内未创建所述目标公交卡时,响应于针对所述目标公交卡的调用操作,根据所述目标公交卡的目标公交卡标识生成第二转移指令,When the target bus card is not created in the second terminal, in response to the calling operation for the target bus card, generate a second transfer instruction according to the target bus card identification of the target bus card,

其中,所述第二转移指令用于指示第一终端向所述第二终端转移所述目标公交卡。Wherein, the second transfer instruction is used to instruct the first terminal to transfer the target bus card to the second terminal.

在一种可能的实现方式中,所述转移数据信息包括所述第一终端中所述目标公交卡的账号和所述第一终端中所述目标公交卡的余额,In a possible implementation manner, the transfer data information includes the account number of the target bus card in the first terminal and the balance of the target bus card in the first terminal,

所述根据所述转移数据信息更新所述目标公交卡的公交卡信息,包括:The updating of the bus card information of the target bus card according to the transfer data information includes:

创建所述目标公交卡,所述目标公交卡的账号为所述第一终端中所述目标公交卡的账号,所述目标公交卡的余额为所述第一终端中所述目标公交卡的余额。Create the target bus card, the account number of the target bus card is the account number of the target bus card in the first terminal, and the balance of the target bus card is the balance of the target bus card in the first terminal .

在一种可能的实现方式中,在所述第二终端成功登录个人账户时,所述方法还包括:In a possible implementation manner, when the second terminal successfully logs into the personal account, the method further includes:

从服务器获取所述个人账户具有的公交卡状态信息,所述公交卡状态信息至少包括终端公交卡所属终端和终端公交卡所属城市;Obtaining the bus card status information of the personal account from the server, the bus card status information at least including the terminal to which the terminal bus card belongs and the city to which the terminal bus card belongs;

响应于对所述公交卡状态信息的查看操作,显示所述公交卡状态信息。In response to a viewing operation on the bus card status information, the bus card status information is displayed.

根据本公开实施例的第三方面,提供一种终端公交卡的处理装置,所述装置应用于第一终端,所述装置包括:According to a third aspect of an embodiment of the present disclosure, a terminal bus card processing device is provided, the device is applied to a first terminal, and the device includes:

验证模块,用于在接收第二终端发送的转移指令时,响应于所述转移指令进行身份验证处理;A verification module, configured to perform identity verification processing in response to the transfer instruction when receiving the transfer instruction sent by the second terminal;

生成模块,用于在身份验证成功时,根据所述转移指令及所述第一终端的公交卡信息,生成转移数据信息;A generating module, configured to generate transfer data information according to the transfer instruction and the bus card information of the first terminal when the identity verification is successful;

更新模块,用于根据所述转移指令更新所述第一终端的公交卡信息;An update module, configured to update the bus card information of the first terminal according to the transfer instruction;

发送模块,用于将所述转移数据信息通过近场通信NFC发送至第二终端。A sending module, configured to send the transfer data information to the second terminal through near field communication (NFC).

在一种可能的实现方式中,所述转移指令为用于指示第一终端转移目标公交卡的余额的第一转移指令,所述第一转移指令包括转移金额和目标公交卡标识,所述生成模块,包括:In a possible implementation, the transfer instruction is a first transfer instruction for instructing the first terminal to transfer the balance of the target bus card, the first transfer instruction includes the transfer amount and the target bus card identifier, and the generating modules, including:

第一获取子模块,用于从所述第一终端的公交卡信息中获取目标公交卡的余额,所述目标公交卡为所述目标公交卡标识所表征的终端公交卡;The first acquisition submodule is used to acquire the balance of the target bus card from the bus card information of the first terminal, and the target bus card is the terminal bus card represented by the target bus card identifier;

第一生成子模块,用于在所述第一终端的所述目标公交卡的余额大于或者等于所述转移金额时,根据所述转移金额生成转移数据信息。The first generation submodule is configured to generate transfer data information according to the transfer amount when the balance of the target bus card of the first terminal is greater than or equal to the transfer amount.

在一种可能的实现方式中,所述更新模块,包括:In a possible implementation manner, the update module includes:

第一更新子模块,用于根据所述转移金额更新所述第一终端的所述目标公交卡的余额。The first update submodule is configured to update the balance of the target bus card of the first terminal according to the transfer amount.

在一种可能的实现方式中,所述转移指令为用于指示第一终端转移目标公交卡的第二转移指令,所述第二转移指令中包括目标公交卡标识,所述生成模块,包括:In a possible implementation, the transfer instruction is a second transfer instruction for instructing the first terminal to transfer the target bus card, the second transfer instruction includes the target bus card identifier, and the generation module includes:

第二获取子模块,用于根据所述第二转移指令,从所述第一终端的公交卡信息中获取目标公交卡的账号及所述目标公交卡的余额,The second acquiring submodule is used to acquire the account number of the target bus card and the balance of the target bus card from the bus card information of the first terminal according to the second transfer instruction,

其中,所述目标公交卡为所述目标公交卡标识所表征的终端公交卡;Wherein, the target bus card is a terminal bus card represented by the target bus card identifier;

第二生成子模块,用于根据所述目标公交卡的账号及所述目标公交卡的余额生成所述转移数据信息。The second generation sub-module is configured to generate the transfer data information according to the account number of the target bus card and the balance of the target bus card.

在一种可能的实现方式中,所述更新模块,包括:In a possible implementation manner, the update module includes:

第二更新子模块,用于从所述第一终端的公交卡信息中删除所述目标公交卡的公交卡信息。The second update submodule is configured to delete the bus card information of the target bus card from the bus card information of the first terminal.

根据本公开实施例的第四方面,提供一种终端公交卡的处理装置,所述装置应用于第二终端,所述装置包括:According to a fourth aspect of an embodiment of the present disclosure, a terminal bus card processing device is provided, the device is applied to a second terminal, and the device includes:

生成模块,用于响应于针对目标公交卡的调用操作,生成转移指令;A generating module, configured to generate a transfer instruction in response to a call operation directed at the target bus card;

发送模块,用于通过近场通信NFC向第一终端发送所述转移指令,以使所述第一终端进行身份验证处理,并在身份验证成功时根据所述转移指令及所述第一终端的公交卡信息生成转移数据信息;A sending module, configured to send the transfer instruction to the first terminal through NFC, so that the first terminal performs identity verification processing, and when the identity verification is successful, according to the transfer instruction and the first terminal's Bus card information generates transfer data information;

接收模块,用于接收所述第一终端发送的所述转移数据信息;a receiving module, configured to receive the transfer data information sent by the first terminal;

更新模块,用于根据所述转移数据信息更新所述目标公交卡的公交卡信息。An update module, configured to update the bus card information of the target bus card according to the transfer data information.

在一种可能的实现方式中,所述生成模块,包括:In a possible implementation manner, the generating module includes:

第一生成子模块,用于在所述第二终端内已创建所述目标公交卡时,响应于针对所述目标公交卡的调用操作,显示转移金额界面;The first generation sub-module is used to display a transfer amount interface in response to a calling operation on the target bus card when the target bus card has been created in the second terminal;

第二生成子模块,用于从所述转移金额界面中获取转移金额,根据所述转移金额及所述目标公交卡的目标公交卡标识生成第一转移指令,所述第一转移指令用于指示第一终端向第二终端的所述目标公交卡中转移所述转移金额。The second generation submodule is used to obtain the transfer amount from the transfer amount interface, and generate a first transfer instruction according to the transfer amount and the target bus card identification of the target bus card, and the first transfer instruction is used to indicate The first terminal transfers the transfer amount to the target bus card of the second terminal.

在一种可能的实现方式中,所述转移数据信息包括所述转移金额和所述目标公交卡标识,所述更新模块,包括:In a possible implementation manner, the transfer data information includes the transfer amount and the target bus card identifier, and the updating module includes:

第一更新子模块,用于根据所述转移金额更新所述第二终端的所述目标公交卡的余额。The first update submodule is configured to update the balance of the target bus card of the second terminal according to the transfer amount.

在一种可能的实现方式中,所述生成模块,包括:In a possible implementation manner, the generating module includes:

第三生成子模块,用于在所述第二终端内未创建所述目标公交卡时,响应于针对所述目标公交卡的调用操作,根据所述目标公交卡的目标公交卡标识生成第二转移指令,The third generating submodule is used to generate the second public transport card according to the target public transport card identification of the target public transport card in response to the call operation for the target public transport card when the target public transport card is not created in the second terminal. transfer instruction,

其中,所述第二转移指令用于指示第一终端向所述第二终端转移所述目标公交卡。Wherein, the second transfer instruction is used to instruct the first terminal to transfer the target bus card to the second terminal.

在一种可能的实现方式中,所述转移数据信息包括所述第一终端中所述目标公交卡的账号和所述第一终端中所述目标公交卡的余额,所述更新模块,包括:In a possible implementation manner, the transfer data information includes the account number of the target bus card in the first terminal and the balance of the target bus card in the first terminal, and the update module includes:

第二更新子模块,用于创建所述目标公交卡,所述目标公交卡的账号为所述第一终端中所述目标公交卡的账号,所述目标公交卡的余额为所述第一终端中所述目标公交卡的余额。The second update submodule is used to create the target bus card, the account number of the target bus card is the account number of the target bus card in the first terminal, and the balance of the target bus card is the first terminal The balance of the target bus card mentioned in .

在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:

获取模块,用于从服务器获取所述个人账户具有的公交卡状态信息,所述公交卡状态信息至少包括终端公交卡所属终端和终端公交卡所属城市;An acquisition module, configured to acquire the bus card status information of the personal account from the server, the bus card status information at least including the terminal to which the terminal bus card belongs and the city to which the terminal bus card belongs;

显示模块,用于响应于对所述公交卡状态信息的查看操作,显示所述公交卡状态信息。A display module, configured to display the status information of the bus card in response to an operation of checking the status information of the bus card.

根据本公开的另一方面,提供了一种终端公交卡的处理装置,包括:处理器;用于存储处理器可执行指令的存储器;其中,所述处理器被配置为执行上述方法。According to another aspect of the present disclosure, a terminal bus card processing device is provided, including: a processor; a memory for storing instructions executable by the processor; wherein the processor is configured to execute the above method.

根据本公开的另一方面,提供了一种非易失性计算机可读存储介质,其上存储有计算机程序指令,其中,所述计算机程序指令被处理器执行时实现上述方法。According to another aspect of the present disclosure, there is provided a non-volatile computer-readable storage medium on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.

这样一来,第一终端接收到第二终端发送的转移指令后,可以响应于该转移指令进行身份验证处理,并在身份验证成功后,根据转移指令及第一终端的公交卡信息生成转移数据信息,并更新第一终端的公交卡信息,以及通过NFC向第二终端发送转移数据信息。根据本公开实施例提供的终端公交卡的处理方法及装置,第一终端在身份验证成功后,向第二终端转移第一终端的公交卡信息,能够提高数据的安全性。In this way, after the first terminal receives the transfer instruction sent by the second terminal, it can perform identity verification processing in response to the transfer instruction, and after the identity verification is successful, generate transfer data according to the transfer instruction and the bus card information of the first terminal information, and update the bus card information of the first terminal, and send transfer data information to the second terminal through NFC. According to the terminal bus card processing method and device provided by the embodiments of the present disclosure, the first terminal transfers the bus card information of the first terminal to the second terminal after successful identity verification, which can improve data security.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图;Fig. 1 is a flow chart of a processing method of a terminal bus card shown according to an exemplary embodiment;

图2是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图;Fig. 2 is a flowchart of a method for processing a terminal bus card according to an exemplary embodiment;

图3是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图;Fig. 3 is a flow chart of a method for processing a terminal bus card according to an exemplary embodiment;

图4是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图;Fig. 4 is a flowchart of a method for processing a terminal bus card according to an exemplary embodiment;

图5是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图;Fig. 5 is a flowchart of a method for processing a terminal bus card according to an exemplary embodiment;

图6是根据一示例性实施例示出的一种终端公交卡的处理方法的交互示意图;Fig. 6 is an interactive schematic diagram of a terminal bus card processing method shown according to an exemplary embodiment;

图7是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图;Fig. 7 is a flowchart of a method for processing a terminal bus card according to an exemplary embodiment;

图8是根据一示例性实施例示出的一种终端公交卡的处理装置的结构框图;Fig. 8 is a structural block diagram of a terminal bus card processing device shown according to an exemplary embodiment;

图9是根据一示例性实施例示出的一种终端公交卡的处理装置的结构框图;Fig. 9 is a structural block diagram of a terminal bus card processing device shown according to an exemplary embodiment;

图10是根据一示例性实施例示出的一种终端公交卡的处理装置的结构框图;Fig. 10 is a structural block diagram of a terminal bus card processing device shown according to an exemplary embodiment;

图11是根据一示例性实施例示出的一种终端公交卡的处理装置的结构框图;Fig. 11 is a structural block diagram of a terminal bus card processing device shown according to an exemplary embodiment;

图12是根据一示例性实施例示出的一种用于终端公交卡的处理装置1200的框图。Fig. 12 is a block diagram of a processing device 1200 for a terminal bus card according to an exemplary embodiment.

具体实施方式detailed description

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。相反,它们仅是与如所附权利要求书中所详述的、本公开的一些方面相一致的装置和方法的例子。Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatuses and methods consistent with aspects of the present disclosure as recited in the appended claims.

图1是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图,该方法可以应用于第一终端,第一终端例如可以是手机、平板电脑等终端设备。如图1所示,该方法可以包括:Fig. 1 is a flow chart showing a method for processing a terminal bus card according to an exemplary embodiment. The method can be applied to a first terminal, and the first terminal can be, for example, a mobile phone, a tablet computer and other terminal devices. As shown in Figure 1, the method may include:

在步骤101中,在接收第二终端发送的转移指令时,响应于所述转移指令进行身份验证处理。In step 101, when receiving a transfer instruction sent by a second terminal, identity verification processing is performed in response to the transfer instruction.

举例来说,第二终端可以向第一终端发送转移指令,该转移指令中可以包括目标公交卡的目标公交卡标识,该转移指令可以用于指示第一终端从第一终端的目标公交卡中向第二终端的目标公交卡中转移余额,或者该转移指令可以用于指示第一终端将第一终端内的目标公交卡转移至第二终端。For example, the second terminal may send a transfer instruction to the first terminal, the transfer instruction may include the target bus card identification of the target bus card, and the transfer instruction may be used to instruct the first terminal to transfer from the target bus card of the first terminal The balance is transferred to the target bus card of the second terminal, or the transfer instruction can be used to instruct the first terminal to transfer the target bus card in the first terminal to the second terminal.

第一终端接收到第二终端发送的转移指令后,可以响应于该转移指令,获取用户信息(例如采集用户的指纹信息,或者获取用户的密码),并可以根据用户信息对用户进行身份验证处理。举例来说,第一终端接收到第二终端发送的转移指令后,可以显示验证界面,该验证界面可以包括用于提示用户输入用户信息的提示信息,例如:提示用户录入指纹,或者提示用户输入密码(该密码可以为第一终端的锁屏密码,或者该密码可以为公交卡客户端对应的开启密码)。用户录入指纹或者输入密码后,第一终端可以根据采集的指纹或者获取的密码验证用户身份,当采集的指纹或者获取的密码与第一终端内存储的验证指纹或者验证密码一致时,确定用户身份验证成功。After the first terminal receives the transfer instruction sent by the second terminal, it can respond to the transfer instruction to obtain user information (such as collecting the user's fingerprint information, or obtaining the user's password), and can perform identity verification processing on the user according to the user information . For example, after receiving the transfer instruction sent by the second terminal, the first terminal may display a verification interface, and the verification interface may include prompt information for prompting the user to input user information, for example: prompting the user to enter fingerprints, or prompting the user to enter Password (the password may be the lock screen password of the first terminal, or the password may be the corresponding opening password of the bus card client). After the user enters the fingerprint or enters the password, the first terminal can verify the user's identity according to the collected fingerprint or the obtained password. When the collected fingerprint or obtained password is consistent with the verification fingerprint or verification password stored in the first terminal, the user's identity is determined. Verification succeeded.

在步骤102中,在身份验证成功时,根据所述转移指令及所述第一终端的公交卡信息生成转移数据信息。In step 102, when the identity verification is successful, transfer data information is generated according to the transfer instruction and the bus card information of the first terminal.

公交卡信息可以包括第一终端中,各个终端公交卡的状态(例如启用或未启用)、余额、标识、账号、有效期等信息。The bus card information may include the status (for example, activated or not activated), balance, identification, account number, validity period and other information of each terminal bus card in the first terminal.

上述转移数据信息可以包括第一终端待向第二终端的目标公交卡中转移的信息,例如:上述转移数据信息可以包括待从第一终端的目标公交卡中向第二终端的目标公交卡中转移的余额,或者上述转移数据信息可以包括待从第一终端转移至第二终端的目标公交卡的账号和余额。在用户身份验证成功时,第一终端可以根据上述转移指令及第一终端的公交卡信息,得到上述转移数据信息。The above-mentioned transfer data information may include the information to be transferred from the first terminal to the target bus card of the second terminal, for example: the above-mentioned transfer data information may include information to be transferred from the target bus card of the first terminal to the target bus card of the second terminal The transferred balance, or the above-mentioned transfer data information may include the account number and balance of the target bus card to be transferred from the first terminal to the second terminal. When the user identity verification is successful, the first terminal may obtain the transfer data information according to the transfer instruction and the bus card information of the first terminal.

在步骤103中,根据所述转移指令更新所述第一终端的公交卡信息。In step 103, the bus card information of the first terminal is updated according to the transfer instruction.

第一终端从公交卡信息中获取上述转移数据信息后,可以根据转移指令更新第一终端的公交卡信息。举例来说,更新第一终端的公交卡信息中目标公交卡的余额,或者删除第一终端的公交卡信息中的目标公交卡的公交卡信息。After the first terminal acquires the transfer data information from the bus card information, it may update the bus card information of the first terminal according to the transfer instruction. For example, update the balance of the target bus card in the bus card information of the first terminal, or delete the bus card information of the target bus card in the bus card information of the first terminal.

在步骤104中,将所述转移数据信息通过近场通信NFC发送至第二终端。In step 104, the transfer data information is sent to the second terminal through near field communication (NFC).

第一终端可以通过近场通信NFC发送上述转移数据信息至第二终端,以使得第二终端根据上述转移数据信息更新第二终端的公交卡信息。The first terminal may send the transfer data information to the second terminal through near field communication (NFC), so that the second terminal updates the bus card information of the second terminal according to the transfer data information.

这样一来,第一终端接收到第二终端发送的转移指令后,可以响应于该转移指令进行身份验证处理,并在身份验证成功后,根据转移指令及第一终端的公交卡信息生成转移数据信息,并更新第一终端的公交卡信息,以及通过NFC向第二终端发送转移数据信息。根据本公开实施例提供的终端公交卡的处理方法,第一终端在身份验证成功后,向第二终端转移第一终端的公交卡信息,能够提高数据的安全性。In this way, after the first terminal receives the transfer instruction sent by the second terminal, it can perform identity verification processing in response to the transfer instruction, and after the identity verification is successful, generate transfer data according to the transfer instruction and the bus card information of the first terminal information, and update the bus card information of the first terminal, and send transfer data information to the second terminal through NFC. According to the terminal bus card processing method provided by the embodiment of the present disclosure, after the identity verification is successful, the first terminal transfers the bus card information of the first terminal to the second terminal, which can improve data security.

图2是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图。Fig. 2 is a flowchart showing a method for processing a terminal bus card according to an exemplary embodiment.

在一种可能的实现方式中,上述转移指令可以为用于指示第一终端转移目标公交卡的余额的第一转移指令,上述第一转移指令可以包括转移金额和目标公交卡标识,参照图2,上述步骤102中,根据所述转移指令及所述第一终端的公交卡信息生成转移数据信息,可以包括以下步骤1021及步骤1022:In a possible implementation, the above-mentioned transfer instruction may be a first transfer instruction for instructing the first terminal to transfer the balance of the target bus card, and the above-mentioned first transfer instruction may include the transfer amount and the identity of the target bus card, as shown in FIG. 2 , in the above step 102, generating transfer data information according to the transfer instruction and the bus card information of the first terminal may include the following steps 1021 and 1022:

在步骤1021中,从所述第一终端的公交卡信息中获取目标公交卡的余额,所述目标公交卡为所述目标公交卡标识所表征的终端公交卡;In step 1021, the balance of the target bus card is obtained from the bus card information of the first terminal, and the target bus card is the terminal bus card represented by the target bus card identifier;

在步骤1022中,在所述第一终端的所述目标公交卡的余额大于或者等于所述转移金额时,根据所述转移金额生成转移数据信息。In step 1022, when the balance of the target bus card of the first terminal is greater than or equal to the transfer amount, transfer data information is generated according to the transfer amount.

举例来说,在第二终端开通了目标公交卡的情况下,第二终端可以向第一终端发送第一转移指令,该第一转移指令中可以包括转移金额和目标公交卡标识(举例来说,该标识可以为目标公交卡所属城市,或目标公交卡的编号、账号等),以使得第一终端可以根据转移金额将目标公交卡中的余额向第二终端的目标公交卡中转移。For example, when the second terminal has opened the target bus card, the second terminal can send the first transfer instruction to the first terminal, which can include the transfer amount and the target bus card identification (for example , the identification can be the city to which the target bus card belongs, or the number, account number, etc. of the target bus card), so that the first terminal can transfer the balance in the target bus card to the target bus card of the second terminal according to the transfer amount.

第一终端的SE中存储有公交卡信息,该公交卡信息中包括各个终端公交卡的信息,例如:各个终端公交卡的余额、账号和所属城市等信息。第一终端接收第一转移指令后,进行用户的身份验证处理。在身份验证成功后,第一终端可以通过TEE(Trusted ExecutionEnvironment,可信执行环境)从SE(Secure Element,安全组件)中的公交卡信息中,获取目标公交卡的余额。第一终端可以从第一转移指令中获取转移金额,在目标公交卡的余额大于上述转移金额时,第一终端可以根据转移金额生成转移数据信息,该转移数据信息中可以包括转移金额和目标公交卡标识。第一终端可以发送该转移数据信息至第二终端,以使得第二终端可以根据该转移数据信息中的转移金额,增加第二终端中目标公交卡标识所表征的目标公交卡的余额。在上述目标公交卡的余额小于上述转移金额时,第一终端可以发送用于表示第一终端内的目标公交卡的余额不足的提示信息至第二终端。第二终端可以在显示界面上显示上述信息,以提示用户转移操作失败。在一种示例中,上述提示信息中还可以包括第一终端内的目标公交卡的余额,第二终端可以在显示上述提示信息时,显示第一终端内的目标公交卡的余额,以提示用户第一终端的目标公交卡中可转移的余额,以提高余额转移操作的效率。The SE of the first terminal stores bus card information, and the bus card information includes the information of each terminal bus card, for example: the balance, account number, and city of each terminal bus card. After receiving the first transfer instruction, the first terminal performs user identity verification processing. After the identity verification is successful, the first terminal can obtain the balance of the target bus card from the bus card information in the SE (Secure Element, security component) through TEE (Trusted ExecutionEnvironment, trusted execution environment). The first terminal can obtain the transfer amount from the first transfer instruction, and when the balance of the target bus card is greater than the above-mentioned transfer amount, the first terminal can generate transfer data information according to the transfer amount, which can include the transfer amount and the target bus Card identity. The first terminal can send the transfer data information to the second terminal, so that the second terminal can increase the balance of the target bus card represented by the target bus card identifier in the second terminal according to the transfer amount in the transfer data information. When the balance of the target bus card is less than the transfer amount, the first terminal may send prompt information indicating that the balance of the target bus card in the first terminal is insufficient to the second terminal. The second terminal may display the above information on the display interface to prompt the user that the transfer operation fails. In one example, the above prompt information may also include the balance of the target bus card in the first terminal, and the second terminal may display the balance of the target bus card in the first terminal when displaying the above prompt information, to remind the user The transferable balance in the target bus card of the first terminal, so as to improve the efficiency of the balance transfer operation.

或者,在目标公交卡的余额小于上述转移金额时,第一终端可以根据目标公交卡的余额生成转移数据信息,转移数据信息中可以包括第一终端的目标公交卡的余额,第一终端可以发送该转移数据信息至第二终端,以使得第二终端可以根据该转移数据信息中的第一终端的目标公交卡的余额,增加第二终端中目标公交卡的余额,能够提高余额转移操作的效率。Or, when the balance of the target bus card is less than the above transfer amount, the first terminal can generate transfer data information according to the balance of the target bus card, and the transfer data information can include the balance of the target bus card of the first terminal, and the first terminal can send The transfer data information is sent to the second terminal, so that the second terminal can increase the balance of the target bus card in the second terminal according to the balance of the target bus card of the first terminal in the transfer data information, which can improve the efficiency of the balance transfer operation .

在一种可能的实现方式中,上述步骤103中,根据转移指令更新所述第一终端的公交卡信息,可以包括以下步骤:In a possible implementation, in the above step 103, updating the bus card information of the first terminal according to the transfer instruction may include the following steps:

根据所述转移金额更新所述第一终端的所述目标公交卡的余额。The balance of the target bus card of the first terminal is updated according to the transfer amount.

第一终端可以在生成转移数据信息后,根据转移金额更新第一终端的目标公交卡的余额。举例来说,第一终端可以通过TEE将SE中存储的公交卡信息中的目标公交卡的余额更新为,目标公交卡的余额与转移金额的差值。After generating the transfer data information, the first terminal may update the balance of the target bus card of the first terminal according to the transfer amount. For example, the first terminal may update the balance of the target bus card in the bus card information stored in the SE to the difference between the balance of the target bus card and the transfer amount through the TEE.

示例性的,第一终端的目标公交卡的余额为100。第一终端接收第二终端发送的第一转移指令,该第一转移指令中包括转移金额50和目标公交卡标识,则第一终端在用户的身份验证成功时,生成包括转移金额50的转移数据信息,并将目标公交卡的余额100与转移金额50的差值50更新为第一终端的目标公交卡的余额。第一终端将上述转移数据信息发送至第二终端,以完成从第一终端的目标公交卡中向第二终端的目标公交卡中转移余额的操作。Exemplarily, the balance of the target bus card of the first terminal is 100. The first terminal receives the first transfer instruction sent by the second terminal, the first transfer instruction includes the transfer amount 50 and the target bus card identification, then the first terminal generates transfer data including the transfer amount 50 when the user's identity verification is successful Information, and the difference 50 between the balance 100 of the target bus card and the transfer amount 50 is updated as the balance of the target bus card of the first terminal. The first terminal sends the transfer data information to the second terminal to complete the operation of transferring the balance from the target bus card of the first terminal to the target bus card of the second terminal.

这样一来,第一终端可以响应于第一转移指令中的转移金额,将第一终端的目标公交卡中的余额的部分或者全部转移至第二终端的目标公交卡中,能够实现两个终端的终端公交卡之间的余额转移。In this way, the first terminal can transfer part or all of the balance in the target bus card of the first terminal to the target bus card of the second terminal in response to the transfer amount in the first transfer instruction, which can realize the transfer of the two terminals Balance transfer between terminal bus cards.

图3是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图。Fig. 3 is a flowchart showing a method for processing a terminal bus card according to an exemplary embodiment.

在一种可能的实现方式中,上述转移指令为用于指示第一终端转移目标公交卡的第二转移指令,所述第二转移指令中可以包括目标公交卡标识。参照图3,上述步骤102中,根据所述转移指令及所述第一终端的公交卡信息生成转移数据信息,可以包括以下步骤1023及步骤1024:In a possible implementation manner, the foregoing transfer instruction is a second transfer instruction for instructing the first terminal to transfer the target bus card, and the second transfer instruction may include a target bus card identifier. With reference to Fig. 3, in above-mentioned step 102, generate transfer data information according to the bus card information of described transfer order and described first terminal, can comprise following step 1023 and step 1024:

在步骤1023中,根据所述第二转移指令,从所述第一终端的公交卡信息中获取目标公交卡的账号及所述目标公交卡的余额,所述目标公交卡为所述目标公交卡标识所表征的终端公交卡。In step 1023, according to the second transfer instruction, the account number of the target bus card and the balance of the target bus card are obtained from the bus card information of the first terminal, and the target bus card is the target bus card Identifies the terminal transit card being characterized.

在步骤1024中,根据所述目标公交卡的账号及所述目标公交卡的余额生成所述转移数据信息。In step 1024, the transfer data information is generated according to the account number of the target bus card and the balance of the target bus card.

举例来说,在第二终端未开通目标公交卡的情况下,第二终端可以向第一终端发送第二转移指令,该第二转移指令中可以包括目标公交卡的目标公交卡标识,该第二转移指令可以使得第一终端将第一终端的目标公交卡转移至第二终端中。For example, in the case that the second terminal has not opened the target bus card, the second terminal can send a second transfer instruction to the first terminal, and the second transfer instruction can include the target bus card identification of the target bus card. The second transfer instruction may cause the first terminal to transfer the target bus card of the first terminal to the second terminal.

第一终端接收第二转移指令后,进行用户的身份验证处理。在身份验证成功后,第一终端可以通过TEE(Trusted Execution Environment,可信执行环境)从SE(SecureElement,安全组件)中的公交卡信息中,读取第一终端的目标公交卡的账号及目标公交卡的余额。第一终端可以根据上述第一终端的目标公交卡的账号及目标公交卡的余额生成转移数据信息,该转移数据信息中可以包括第一终端的目标公交卡的账号及目标公交卡的余额。第一终端可以发送该转移数据信息至第二终端,以使得第二终端可以根据转移数据信息创建目标公交卡,该目标公交卡的账号为第一终端的目标公交卡的账号,该目标公交卡的余额为第一终端的目标公交卡的余额。After receiving the second transfer instruction, the first terminal performs user identity verification processing. After the identity verification is successful, the first terminal can read the account number and target number of the target bus card of the first terminal from the bus card information in SE (SecureElement, security component) through TEE (Trusted Execution Environment, Trusted Execution Environment). The balance of the bus card. The first terminal may generate transfer data information according to the account number of the target bus card of the first terminal and the balance of the target bus card, and the transfer data information may include the account number of the target bus card of the first terminal and the balance of the target bus card. The first terminal can send the transfer data information to the second terminal, so that the second terminal can create a target bus card according to the transfer data information, the account number of the target bus card is the account number of the target bus card of the first terminal, and the target bus card The balance of is the balance of the target bus card of the first terminal.

在一种可能的实现方式中,上述步骤103中,所述根据转移指令更新所述第一终端的公交卡信息,可以包括以下步骤:In a possible implementation, in the above step 103, the updating of the bus card information of the first terminal according to the transfer instruction may include the following steps:

从所述第一终端的公交卡信息中删除所述目标公交卡的公交卡信息。Deleting the bus card information of the target bus card from the bus card information of the first terminal.

第一终端可以在生成转移数据后,通过TEE将SE中存储的公交卡信息中的目标公交卡的公交卡信息删除,以完成将第一终端的目标公交卡转移至第二终端,此时第一终端内目标公交卡的开卡状态为尚未开卡。After generating the transfer data, the first terminal can delete the bus card information of the target bus card in the bus card information stored in the SE through the TEE, so as to complete the transfer of the target bus card of the first terminal to the second terminal. The activation status of the target bus card in a terminal is not yet activated.

图4是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图,该方法可以应用于第二终端,第二终端例如可以是手机、平板电脑等终端设备。如图4所示,该方法可以包括:Fig. 4 is a flow chart showing a method for processing a terminal bus card according to an exemplary embodiment. The method can be applied to a second terminal, and the second terminal can be, for example, a mobile phone, a tablet computer or other terminal equipment. As shown in Figure 4, the method may include:

在步骤301中,响应于针对目标公交卡的调用操作,生成转移指令。In step 301, a transfer instruction is generated in response to a calling operation on a target bus card.

举例来说,用户在第二终端登录个账户,在登录成功后,用户通过点击触摸目标公交卡的触发操作,调用目标公交卡。第二终端可以响应于上述针对目标公交卡的调用操作,生成转移指令,该转移指令可以用于指示第一终端向第二终端的目标公交卡中转移余额,或者该转移指令可以用于指示第一终端将第一终端内的目标公交卡转移至第二终端。For example, the user logs in an account on the second terminal, and after successful login, the user invokes the target bus card by clicking and touching the trigger operation of the target bus card. The second terminal may generate a transfer instruction in response to the above call operation for the target bus card, and the transfer instruction may be used to instruct the first terminal to transfer the balance to the target bus card of the second terminal, or the transfer instruction may be used to instruct the second terminal A terminal transfers the target bus card in the first terminal to the second terminal.

在步骤302中,通过近场通信NFC向第一终端发送所述转移指令,以使所述第一终端进行身份验证处理,并在身份验证成功时根据所述转移指令及所述第一终端的公交卡信息生成转移数据信息。In step 302, the transfer instruction is sent to the first terminal through near-field communication (NFC), so that the first terminal performs identity verification processing, and when the identity verification is successful, according to the transfer instruction and the first terminal's The bus card information generates transfer data information.

举例来说,用户可以令第二终端的NFC天线触碰第一终端的NFC天线,以使得第二终端可以通过NFC向第一终端发送上述转移指令。第一终端接收上述转移指令后,可以进行身份验证操作,并在身份验证成功后,根据上述转移指令及第一终端的公交卡信息生成转移数据信息,其中第一终端生成转移数据信息的过程可以参照前述实施例,本公开实施例在此不再赘述。For example, the user can make the NFC antenna of the second terminal touch the NFC antenna of the first terminal, so that the second terminal can send the transfer instruction to the first terminal through NFC. After the first terminal receives the above-mentioned transfer instruction, it can perform an identity verification operation, and after the identity verification is successful, generate transfer data information according to the above-mentioned transfer instruction and the bus card information of the first terminal, wherein the process of generating the transfer data information by the first terminal can be Referring to the foregoing embodiments, the embodiments of the present disclosure are not described in detail here.

在步骤303中,接收所述第一终端发送的所述转移数据信息。In step 303, the transfer data information sent by the first terminal is received.

在步骤304中,根据所述转移数据信息更新所述目标公交卡的公交卡信息。In step 304, the bus card information of the target bus card is updated according to the transfer data information.

第二终端接收第一终端发送的转移数据信息后,可以根据上述转移数据信息更新第二终端中目标公交卡的公交卡信息,例如:更新第二终端的目标公交卡的余额,或者在第二终端上创建目标公交卡。After the second terminal receives the transfer data information sent by the first terminal, it can update the bus card information of the target bus card in the second terminal according to the above transfer data information, for example: update the balance of the target bus card of the second terminal, or Create a target bus card on the terminal.

这样一来,第二终端可以根据针对目标公交卡的调用操作,生成转移指令,并向第一终端发送上述转移指令,以使得第一终端在接收到第二终端发送的转移指令后,可以响应于该转移指令进行身份验证处理,并在身份验证成功后,根据转移指令及第一终端的公交卡信息生成转移数据信息,并通过NFC向第二终端发送转移数据信息。根据本公开实施例提供的终端公交卡的处理方法,第一终端在身份验证成功后,向第二终端转移第一终端的终端公交卡信息,能够提高数据的安全性。In this way, the second terminal can generate a transfer instruction according to the call operation for the target bus card, and send the above transfer instruction to the first terminal, so that after receiving the transfer instruction sent by the second terminal, the first terminal can respond The identity verification process is performed on the transfer instruction, and after the identity verification is successful, the transfer data information is generated according to the transfer instruction and the bus card information of the first terminal, and the transfer data information is sent to the second terminal through NFC. According to the terminal bus card processing method provided by the embodiments of the present disclosure, after the identity verification is successful, the first terminal transfers the terminal bus card information of the first terminal to the second terminal, which can improve data security.

图5是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图。Fig. 5 is a flow chart showing a method for processing a terminal bus card according to an exemplary embodiment.

在一种可能的实现方式中,参照图5,上述步骤301,响应于针对目标公交卡的调用操作,生成转移指令,可以包括步骤3011和步骤3012:In a possible implementation, referring to FIG. 5, the above step 301, generating a transfer instruction in response to the calling operation for the target bus card, may include steps 3011 and 3012:

在步骤3011中,在所述第二终端内已创建所述目标公交卡时,响应于针对所述目标公交卡的调用操作,生成转移金额界面。In step 3011, when the target bus card has been created in the second terminal, a transfer amount interface is generated in response to a calling operation on the target bus card.

在用户账户登录成功时,用户可以通过点击或者触摸等方式触发目标公交卡,以调用该目标公交卡。第二终端可以响应于上述调用操作,确定第二终端是否已经开通目标公交卡。举例来说,第二终端可以通过TEE从SE中存储的公交卡中读取目标公交卡的公交卡信息,在读取到目标公交卡的公交卡信息时,可以确定第二终端已经开通目标公交卡。When the user account is successfully logged in, the user can trigger the target bus card by clicking or touching to invoke the target bus card. The second terminal may determine whether the second terminal has activated the target bus card in response to the above calling operation. For example, the second terminal can read the bus card information of the target bus card from the bus card stored in the SE through TEE, and when the bus card information of the target bus card is read, it can be determined that the second terminal has opened the target bus card. Card.

第二终端在确定已经开通目标公交卡时,可以显示转移金额界面。举例来说,该转移余额界面中可以包括转移金额的输入框,用户可以在转移金额输入框中输入转移金额;或者该转移余额界面中可以包括转移金额选项,例如:10元选项、20元选项、50元选项、100元选项等,用户可以从转移金额选项中通过选中操作选择转移金额。When the second terminal determines that the target bus card has been opened, it can display the transfer amount interface. For example, the transfer balance interface may include a transfer amount input box, and the user may input the transfer amount in the transfer amount input box; or the transfer balance interface may include transfer amount options, for example: 10 yuan option, 20 yuan option , 50 yuan option, 100 yuan option, etc., the user can select the transfer amount from the transfer amount option by selecting the operation.

在步骤3012时,从所述转移金额界面中获取转移金额,根据所述转移金额及所述目标公交卡标识生成第一转移指令,所述第一转移指令用于指示第一终端向第二终端的所述目标公交卡中转移所述转移金额。At step 3012, the transfer amount is obtained from the transfer amount interface, and a first transfer instruction is generated according to the transfer amount and the target bus card identification, and the first transfer instruction is used to instruct the first terminal to transfer the transfer amount to the second terminal Transfer the transfer amount to the target bus card.

举例来说,用户在完成转移金额的输入操作或者选中操作后,可以触发确定控件。第二终端可以响应于用户对上述确定控件的触发操作,从转移金额界面中获取用户输入或者选中的转移金额,并根据该转移金额及上述目标公交卡的目标公交卡标识生成第一转移指令,该第一转移指令中可以包括上述转移金额和目标公交卡标识。For example, after the user finishes inputting or selecting the transfer amount, the confirmation control can be triggered. The second terminal may respond to the user's trigger operation on the determination control, obtain the user input or selected transfer amount from the transfer amount interface, and generate the first transfer instruction according to the transfer amount and the target bus card identification of the target bus card, The first transfer instruction may include the aforementioned transfer amount and target bus card identification.

在一种可能的实现方式中,上述转移数据信息包括所述转移金额和所述目标公交卡标识,上述步骤304中,根据所述转移数据信息更新所述目标公交卡的公交卡信息,可以包括:In a possible implementation manner, the above transfer data information includes the transfer amount and the target bus card identification. In the above step 304, updating the bus card information of the target bus card according to the transfer data information may include :

根据所述转移金额更新所述第二终端的所述目标公交卡的余额。The balance of the target bus card of the second terminal is updated according to the transfer amount.

上述第一终端根据第一转移指令生成转移数据信息的过程可以参照前述实施例,本公开实施例在此不再赘述。For the process of generating the transfer data information by the first terminal according to the first transfer instruction, reference may be made to the foregoing embodiments, and details are not repeated here in the embodiments of the present disclosure.

第二终端接收第一终端发送的转移数据信息后,可以根据转移数据信息中携带的目标公交卡标识确定目标公交卡,并根据转移数据信息中携带的转移金额,更新第二终端的目标公交卡的余额。举例来说,第二终端可以通过TEE将SE中存储的公交卡信息中目标公交卡的余额更新为将转移金额与目标公交卡的余额的和。After the second terminal receives the transfer data information sent by the first terminal, it can determine the target bus card according to the target bus card identification carried in the transfer data information, and update the target bus card of the second terminal according to the transfer amount carried in the transfer data information balance. For example, the second terminal may update the balance of the target bus card in the bus card information stored in the SE to the sum of the transfer amount and the balance of the target bus card through the TEE.

示例性的,第二终端的目标公交卡的余额为50。转移数据信息中包括转移金额50,第二终端可以将上述目标公交卡的余额50与转移金额50的和100更新为第二终端的目标公交卡的余额,以完成将第一终端的目标公交卡的余额转移至第二终端的目标公交卡中的操作。Exemplarily, the balance of the target bus card of the second terminal is 50. The transfer data information includes the transfer amount 50, and the second terminal can update the sum of the balance 50 and the transfer amount 50 of the above-mentioned target bus card to the balance of the target bus card of the second terminal to complete the transfer of the target bus card of the first terminal. The operation of transferring the balance to the target bus card of the second terminal.

这样一来,本公开实施例提供的终端公交卡的处理方法可以将第一终端的目标公交卡中的余额的部分或者全部转移至第二终端的目标公交卡中,能够实现两个终端的终端公交卡之间的余额转移。In this way, the terminal bus card processing method provided by the embodiment of the present disclosure can transfer part or all of the balance in the target bus card of the first terminal to the target bus card of the second terminal, which can realize the terminal Balance transfer between transit cards.

在一种可能的实现方式中,上述步骤301,响应于针对目标公交卡的调用操作,生成转移指令,可以包括:In a possible implementation, the above step 301, generating a transfer instruction in response to the calling operation for the target bus card, may include:

在所述第二终端内未创建所述目标公交卡时,响应于针对所述目标公交卡的调用操作,根据所述目标公交卡的目标公交卡标识生成第二转移指令,其中,所述第二转移指令可以用于指示第一终端向所述第二终端转移目标公交卡。When the target bus card is not created in the second terminal, in response to the calling operation for the target bus card, a second transfer instruction is generated according to the target bus card identification of the target bus card, wherein the first The second transfer instruction may be used to instruct the first terminal to transfer the target bus card to the second terminal.

举例来说,第二终端可以通过TEE从SE中存储的公交卡信息中读取目标公交卡的公交卡信息,在未读取到该目标公交卡信息时,可以确定第二终端尚未开通目标公交卡。For example, the second terminal can read the bus card information of the target bus card from the bus card information stored in the SE through the TEE, and when the target bus card information is not read, it can be determined that the second terminal has not opened the target bus card. Card.

第二终端在确定尚未开通目标公交卡时,可以生成第二转移指令,该第二转移指令中可以包括目标公交卡标识。第二终端可以通过NFC将所述第二转移指令发送至第一终端,第一终端可以根据第二转移指令,获取第一终端中目标公交卡标识所表征的目标公交卡的账号和目标公交卡的余额,并根据上述目标公交卡的账号与目标公交卡的余额生成转移数据信息,并将该转移数据信息发送至第二终端。其中,上述第一终端生成转移数据信息的过程可以参照前述实施例,本公开实施例在此不再赘述。When the second terminal determines that the target bus card has not been issued, it may generate a second transfer instruction, and the second transfer instruction may include the target bus card identifier. The second terminal can send the second transfer instruction to the first terminal through NFC, and the first terminal can obtain the account number and the target bus card of the target bus card represented by the target bus card identifier in the first terminal according to the second transfer instruction and generate transfer data information according to the account number of the target bus card and the balance of the target bus card, and send the transfer data information to the second terminal. For the process of generating the transfer data information by the first terminal, reference may be made to the foregoing embodiments, and the embodiments of the present disclosure will not be repeated here.

在一种可能的实现方式中,所述转移数据信息可以包括所述第一终端中所述目标公交卡的账号和所述第一终端中所述目标公交卡的余额,上述步骤304中,所述根据所述转移数据信息更新所述目标公交卡的目标公交卡信息,可以包括:In a possible implementation, the transfer data information may include the account number of the target bus card in the first terminal and the balance of the target bus card in the first terminal. In the above step 304, the The updating of the target bus card information of the target bus card according to the transfer data information may include:

创建所述目标公交卡,所述目标公交卡的账号为所述第一终端中所述目标公交卡的账号,所述目标公交卡的余额为所述第一终端中目标公交卡的余额。Create the target bus card, the account number of the target bus card is the account number of the target bus card in the first terminal, and the balance of the target bus card is the balance of the target bus card in the first terminal.

第二终端在获取转移数据信息后,可以根据转移数据信息中携带的第一终端中目标公交卡的账号和余额,创建目标公交卡。该目标公交卡的账号为所述第一终端中的目标公交卡的账号,该目标公交卡的余额为所述第一终端中目标公交卡的余额。After obtaining the transfer data information, the second terminal can create the target bus card according to the account number and balance of the target bus card in the first terminal carried in the transfer data information. The account number of the target bus card is the account number of the target bus card in the first terminal, and the balance of the target bus card is the balance of the target bus card in the first terminal.

图6是根据一示例性实施例示出的一种终端公交卡的处理方法的交互示意图。Fig. 6 is an interactive schematic diagram showing a method for processing a terminal bus card according to an exemplary embodiment.

为使本领域技术人员更好的理解本公开实施例,以下通过图6所示的示例,对本公开实施例加以说明。In order for those skilled in the art to better understand the embodiments of the present disclosure, the embodiments of the present disclosure will be described below through the example shown in FIG. 6 .

用户通过第二终端登录个人账户,在登录成功后,用户触发目标公交卡:“北京城市一卡通”,以调用“北京城市一卡通”。第二终端确认在第二终端上是否已开通“北京城市一卡通”。The user logs in the personal account through the second terminal, and after the login is successful, the user triggers the target bus card: "Beijing City Card" to call the "Beijing City Card". The second terminal confirms whether the "Beijing City Card" has been activated on the second terminal.

假设第二终端上已开通“北京城市一卡通”,则第二终端可以跳转至转移金额界面。用户可以在转移金额界面通过输入或者选择的方式确定转移金额:50。第二终端可以根据转移金额(50)和“北京城市一卡通”的标识:北京,生成第一转移指令。用户可以令第二终端的NFC天线触碰第一终端的NFC天线,使得第二终端可以通过NFC将第一转移指令发送至第一终端。Assuming that the "Beijing City Card" has been activated on the second terminal, the second terminal can jump to the transfer amount interface. The user can determine the transfer amount by inputting or selecting on the transfer amount interface: 50. The second terminal can generate a first transfer instruction according to the transfer amount (50) and the identification of "Beijing City Card": Beijing. The user can make the NFC antenna of the second terminal touch the NFC antenna of the first terminal, so that the second terminal can send the first transfer instruction to the first terminal through NFC.

第一终端接收第一转移指令后,通过验证界面获取用户信息,并根据用户信息进行身份验证处理,在身份验证处理结果为身份验证成功时,通过TEE读取SE中存储的“北京城市一卡通”的信息。从上述“北京城市一卡通”的信息中得到“北京城市一卡通”的余额:100。则第一终端可以生成转移数据信息,该转移数据信息中包括转移金额50和“北京城市一卡通”的标识:北京。第一终端通过TEE更新SE中存储的“北京城市一卡通”的余额为:50。并发送转移数据信息至第二终端。After receiving the first transfer instruction, the first terminal obtains the user information through the verification interface, and performs identity verification processing according to the user information, and reads the "Beijing City Card" stored in the SE through the TEE when the identity verification processing result is that the identity verification is successful Information. The balance of the "Beijing City Card" is obtained from the information of the above "Beijing City Card": 100. Then the first terminal can generate the transfer data information, which includes the transfer amount 50 and the identifier of "Beijing City Card": Beijing. The first terminal updates the balance of the "Beijing City Card" stored in the SE to 50 through the TEE. And send the transfer data information to the second terminal.

第二终端接收转移数据信息后,通过TEE对SE中存储的“北京城市一卡通”的余额进行更新,假设第二终端内的“北京城市一卡通”的余额为30,则TEE更新SE中存储的“北京城市一卡通”的余额为:80。此时完成了从第一终端中“北京城市一卡通”中的向第二终端中“北京城市一卡通”中转移50元余额的操作。After the second terminal receives the transfer data information, it updates the balance of the "Beijing City Card" stored in the SE through the TEE. Assuming that the balance of the "Beijing City Card" in the second terminal is 30, the TEE updates the "Beijing City Card" stored in the SE. The balance of "Beijing City Card" is: 80. At this point, the operation of transferring the balance of 50 yuan from the "Beijing City Card" in the first terminal to the "Beijing City Card" in the second terminal is completed.

假设第二终端上未开通“北京城市一卡通”,则第二终端可以根据“北京城市一卡通”的标识:北京,生成第二转移指令。用户可以使第二终端的NFC天线触碰第一终端的NFC天线,使得第二终端可以通过NFC将第二转移指令发送至第一终端。Assuming that the "Beijing City Card" is not activated on the second terminal, the second terminal may generate a second transfer instruction according to the identifier of the "Beijing City Card": Beijing. The user can make the NFC antenna of the second terminal touch the NFC antenna of the first terminal, so that the second terminal can send the second transfer instruction to the first terminal through NFC.

第一终端接收第二转移指令后,通过验证界面获取用户信息,并根据用户信息进行身份验证处理,在身份验证处理结果为身份验证成功时,通过TEE读取SE中存储的“北京城市一卡通”的信息。从上述“北京城市一卡通”的信息中得到“北京城市一卡通”的账号为:10000001,余额:100。则第一终端可以生成转移数据信息,该转移数据信息中包括:“北京城市一卡通”的账号:10000001,余额:100,及“北京城市一卡通”的标识:北京。第一终端通过TEE从SE中存储终端公交卡信息中删除“北京城市一卡通”的信息。After receiving the second transfer instruction, the first terminal obtains the user information through the verification interface, and performs identity verification processing according to the user information. When the identity verification processing result is that the identity verification is successful, the "Beijing City Card" stored in the SE is read through the TEE. Information. From the above information of the "Beijing City Card", the account number of the "Beijing City Card" is: 10000001, and the balance is 100. Then the first terminal can generate transfer data information, the transfer data information includes: "Beijing City Card" account number: 10000001, balance: 100, and "Beijing City Card" logo: Beijing. The first terminal deletes the "Beijing City Card" information from the terminal bus card information stored in the SE through the TEE.

第二终端接收转移数据信息后,根据转移数据信息创建“北京城市一卡通”,通过TEE在SE中存储终端公交卡中添加“北京城市一卡通”的信息,该“北京城市一卡通”的信息包括:账号:10000001,余额:100,及“北京城市一卡通”的标识:北京。此时完成了从第一终端中将“北京城市一卡通”转移第二终端中的操作。After the second terminal receives the transfer data information, it creates a "Beijing City Card" based on the transfer data information, and stores the information of the "Beijing City Card" in the terminal bus card stored in the SE through the TEE. The information of the "Beijing City Card" includes: account number : 10000001, balance: 100, and the logo of "Beijing City Card": Beijing. At this point, the operation of transferring the "Beijing City Card" from the first terminal to the second terminal is completed.

图7是根据一示例性实施例示出的一种终端公交卡的处理方法的流程图。Fig. 7 is a flowchart showing a method for processing a terminal bus card according to an exemplary embodiment.

在一种可能的实现方式中,参照图7,上述方法还可以包括:In a possible implementation, referring to FIG. 7, the above method may further include:

在步骤305中,从服务器获取所述个人账户具有的公交卡状态信息,所述公交卡状态信息至少包括终端公交卡所属终端和终端公交卡所属城市。In step 305, the bus card status information of the personal account is obtained from the server, and the bus card status information at least includes the terminal to which the terminal bus card belongs and the city to which the terminal bus card belongs.

服务器可以存储用户账户信息,该用户账户信息可以包括用户的账户信息(例如用户注册的账户ID、密码等)及账户信息下绑定的终端信息,及各个终端所开通的公交卡状态信息,例如:用户甲在个人账户信息下绑定有终端A和终端B,终端A的公交卡状态信息为:无。终端B的公交卡状态信息为:“北京城市一卡通”:城市:北京,“上海城市一卡通”:城市:上海。服务器在验证用户在第二终端上个人账户登录成功时,可以获取该用户个人账户信息下所有的公交卡状态信息,并发送该公交卡状态信息至第二终端。The server can store user account information, which can include the user's account information (such as the account ID, password, etc. registered by the user) and the terminal information bound under the account information, and the status information of the bus card opened by each terminal, such as : User A is bound to terminal A and terminal B under personal account information, and the bus card status information of terminal A is: None. The status information of the bus card of Terminal B is: "Beijing City Card": City: Beijing, "Shanghai City Card": City: Shanghai. When the server verifies that the user has successfully logged in with the personal account on the second terminal, it can obtain all bus card status information under the user's personal account information, and send the bus card status information to the second terminal.

在步骤306中,响应于对所述公交卡状态信息的查看操作,显示所述公交卡状态信息。In step 306, displaying the bus card status information in response to the operation of viewing the status information of the bus card.

第二终端获取上述公交卡状态信息后,可以响应于用户对公交卡状态信息的查看操作(例如触发公交卡状态查看控件),显示上述公交卡状态信息。例如:第二终端可以响应于用户对公交卡状态信息的查看操作,在显示界面上显示““北京城市一卡通”:城市:北京,“上海城市一卡通”:城市:上海”。After the second terminal acquires the bus card status information, it may display the bus card status information in response to the user's viewing operation on the bus card status information (for example, triggering a bus card status viewing control). For example, the second terminal may display ""Beijing City Card": city: Beijing, "Shanghai City Card": city: Shanghai" on the display interface in response to the user's operation of checking the status information of the bus card.

这样一来,用户在第二终端上登录个人账户时,可以获知在其他终端上终端公交卡的开通情况,在其他终端上已开通过本地的终端公交卡时,可以直接将该终端公交卡转移至第二终端中,可以避免重复开卡。In this way, when the user logs in to the personal account on the second terminal, he can know the activation status of the terminal bus card on other terminals, and when the local terminal bus card has been issued on other terminals, he can directly transfer the terminal bus card To the second terminal, repeated card opening can be avoided.

图8是根据一示例性实施例示出的一种终端公交卡的处理装置的结构框图,该装置可以用于第一终端,如图8所示,该装置可以包括:验证模块801、生成模块802、更新模块803及发送模块804。Fig. 8 is a structural block diagram of a terminal bus card processing device shown according to an exemplary embodiment, the device can be used for the first terminal, as shown in Fig. 8, the device can include: a verification module 801, a generation module 802 , an updating module 803 and a sending module 804.

其中,验证模块801被配置为在接收第二终端发送的转移指令时,响应于所述转移指令进行身份验证处理;Wherein, the verification module 801 is configured to perform identity verification processing in response to the transfer instruction when receiving the transfer instruction sent by the second terminal;

生成模块802被配置为在身份验证成功时,根据所述转移指令及所述第一终端的公交卡信息,生成转移数据信息;The generation module 802 is configured to generate transfer data information according to the transfer instruction and the bus card information of the first terminal when the identity verification is successful;

更新模块803被配置为根据所述转移指令更新所述第一终端的公交卡信息;The update module 803 is configured to update the bus card information of the first terminal according to the transfer instruction;

发送模块804被配置为将所述转移数据信息通过近场通信NFC发送至第二终端。The sending module 804 is configured to send the transfer data information to the second terminal through near field communication (NFC).

这样一来,第一终端接收到第二终端发送的转移指令后,可以响应于该转移指令进行身份验证处理,并在身份验证成功后,根据转移指令及第一终端的公交卡信息生成转移数据信息,并更新第一终端的公交卡信息,以及通过NFC向第二终端发送转移数据信息。根据本公开实施例提供的终端公交卡的处理装置,第一终端在身份验证成功后,向第二终端转移第一终端的公交卡信息,能够提高数据的安全性。应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。In this way, after the first terminal receives the transfer instruction sent by the second terminal, it can perform identity verification processing in response to the transfer instruction, and after the identity verification is successful, generate transfer data according to the transfer instruction and the bus card information of the first terminal information, and update the bus card information of the first terminal, and send transfer data information to the second terminal through NFC. According to the terminal bus card processing device provided by the embodiment of the present disclosure, the first terminal transfers the bus card information of the first terminal to the second terminal after successful identity verification, which can improve data security. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

图9是根据一示例性实施例示出的一种终端公交卡的处理装置的结构框图。Fig. 9 is a structural block diagram of a terminal bus card processing device according to an exemplary embodiment.

在一种可能的实现方式中,所述转移指令可以为用于指示第一终端转移目标公交卡的余额的第一转移指令,所述第一转移指令可以包括转移金额和目标公交卡标识,参照图9,所述生成模块802,可以包括:第一获取子模块8021及第一生成子模块8022。In a possible implementation, the transfer instruction may be a first transfer instruction for instructing the first terminal to transfer the balance of the target bus card, and the first transfer instruction may include the transfer amount and the target bus card identifier, refer to FIG. 9 , the generation module 802 may include: a first acquisition submodule 8021 and a first generation submodule 8022 .

其中,第一获取子模块8021被配置为从所述第一终端的公交卡信息中获取目标公交卡的余额,所述目标公交卡为所述目标公交卡标识所表征的终端公交卡;Wherein, the first acquiring submodule 8021 is configured to acquire the balance of the target bus card from the bus card information of the first terminal, and the target bus card is the terminal bus card represented by the target bus card identifier;

第一生成子模块8022被配置为在所述第一终端的所述目标公交卡的余额大于或者等于所述转移金额时,根据所述转移金额生成转移数据信息。The first generating submodule 8022 is configured to generate transfer data information according to the transfer amount when the balance of the target bus card of the first terminal is greater than or equal to the transfer amount.

在一种可能的实现方式中,参照图9,上述更新模块803可以包括:第一更新子模块8031。In a possible implementation manner, referring to FIG. 9 , the updating module 803 may include: a first updating submodule 8031 .

其中,第一更新子模块8031被配置为根据所述转移金额更新所述第一终端的所述目标公交卡的余额。Wherein, the first update submodule 8031 is configured to update the balance of the target bus card of the first terminal according to the transfer amount.

在一种可能的实现方式中,所述转移指令可以为用于指示第一终端转移目标公交卡的第二转移指令,所述第二转移指令中可以包括目标公交卡标识,参照图9,所述生成模块802可以包括:第二获取子模块8023及第二生成子模块8024。In a possible implementation manner, the transfer instruction may be a second transfer instruction used to instruct the first terminal to transfer the target bus card, and the second transfer instruction may include the target bus card identifier. Referring to FIG. 9 , the The generating module 802 may include: a second acquiring submodule 8023 and a second generating submodule 8024.

其中,第二获取子模块8023被配置为根据所述第二转移指令,从所述第一终端的公交卡信息中获取目标公交卡的账号及所述目标公交卡的余额,Wherein, the second acquiring submodule 8023 is configured to acquire the account number of the target bus card and the balance of the target bus card from the bus card information of the first terminal according to the second transfer instruction,

其中,所述目标公交卡为所述目标公交卡标识所表征的终端公交卡;Wherein, the target bus card is a terminal bus card represented by the target bus card identifier;

第二生成子模块8024被配置为根据所述目标公交卡的账号及所述目标公交卡的余额生成所述转移数据信息。The second generation sub-module 8024 is configured to generate the transfer data information according to the account number of the target bus card and the balance of the target bus card.

在一种可能的实现方式中,参照图9,上述更新模块803可以包括:第二更新子模块8032。In a possible implementation manner, referring to FIG. 9 , the update module 803 may include: a second update submodule 8032 .

其中,第二更新子模块8032被配置为从所述第一终端的公交卡信息中删除所述目标公交卡的公交卡信息。Wherein, the second update submodule 8032 is configured to delete the bus card information of the target bus card from the bus card information of the first terminal.

图10是根据一示例性实施例示出的一种终端公交卡的处理装置的结构框图,该装置可以用于第二终端,如图10所示,该装置可以包括:生成模块1001、发送模块1002、接收模块1003及更新模块1004。Fig. 10 is a structural block diagram of a device for processing a terminal bus card according to an exemplary embodiment. The device can be used for a second terminal. As shown in Fig. 10 , the device can include: a generating module 1001 and a sending module 1002 , a receiving module 1003 and an updating module 1004.

生成模块1001被配置为响应于针对目标公交卡的调用操作,生成转移指令;The generating module 1001 is configured to generate a transfer instruction in response to a call operation directed at the target bus card;

发送模块1002被配置为通过近场通信NFC向第一终端发送所述转移指令,以使所述第一终端进行身份验证处理,并在身份验证成功时根据所述转移指令及所述第一终端的公交卡信息生成转移数据信息;The sending module 1002 is configured to send the transfer instruction to the first terminal through NFC, so that the first terminal performs identity verification processing, and when the identity verification is successful, according to the transfer instruction and the first terminal The bus card information generates transfer data information;

接收模块1003被配置为接收所述第一终端发送的所述转移数据信息;The receiving module 1003 is configured to receive the transfer data information sent by the first terminal;

更新模块1004被配置为用于根据所述转移数据信息更新所述目标公交卡的公交卡信息。The update module 1004 is configured to update the bus card information of the target bus card according to the transfer data information.

这样一来,第二终端可以根据针对目标公交卡的调用操作,生成转移指令,并向第一终端发送上述转移指令,以使得第一终端在接收到第二终端发送的转移指令后,可以响应于该转移指令进行身份验证处理,并在身份验证成功后,根据转移指令及第一终端的公交卡信息生成转移数据信息,并通过NFC向第二终端发送转移数据信息。根据本公开实施例提供的终端公交卡的处理装置,第一终端在身份验证成功后,向第二终端转移第一终端的终端公交卡信息,能够提高数据的安全性。In this way, the second terminal can generate a transfer instruction according to the call operation for the target bus card, and send the above transfer instruction to the first terminal, so that after receiving the transfer instruction sent by the second terminal, the first terminal can respond The identity verification process is performed on the transfer instruction, and after the identity verification is successful, the transfer data information is generated according to the transfer instruction and the bus card information of the first terminal, and the transfer data information is sent to the second terminal through NFC. According to the terminal bus card processing device provided by the embodiments of the present disclosure, the first terminal transfers the terminal bus card information of the first terminal to the second terminal after successful identity verification, which can improve data security.

图11是根据一示例性实施例示出的一种终端公交卡的处理装置的结构框图。Fig. 11 is a structural block diagram of a terminal bus card processing device according to an exemplary embodiment.

在一种可能的实现方式中,参照图11,上述生成模块1001可以包括:第一生成子模块10011和第二生成子模块10012。In a possible implementation manner, referring to FIG. 11 , the generating module 1001 may include: a first generating submodule 10011 and a second generating submodule 10012 .

其中,第一生成子模块10011被配置为在所述第二终端内已创建所述目标公交卡时,响应于针对所述目标公交卡的调用操作,显示转移金额界面;Wherein, the first generation sub-module 10011 is configured to display the transfer amount interface in response to the call operation for the target bus card when the target bus card has been created in the second terminal;

第二生成子模块10012被配置为从所述转移金额界面中获取转移金额,根据所述转移金额及所述目标公交卡的目标公交卡标识生成第一转移指令,所述第一转移指令用于指示第一终端向第二终端的所述目标公交卡中转移所述转移金额。The second generation sub-module 10012 is configured to obtain the transfer amount from the transfer amount interface, and generate a first transfer instruction according to the transfer amount and the target bus card identification of the target bus card, and the first transfer instruction is used for Instructing the first terminal to transfer the transfer amount to the target bus card of the second terminal.

在一种可能的实现方式中,所述转移数据信息可以包括所述转移金额和所述目标公交卡标识,参照图11,所述更新模块1004可以包括:第一更新子模块10041。In a possible implementation manner, the transfer data information may include the transfer amount and the target bus card identifier. Referring to FIG. 11 , the update module 1004 may include: a first update submodule 10041 .

其中,第一更新子模块10041被配置为根据所述转移金额更新所述第二终端的所述目标公交卡的余额。Wherein, the first update submodule 10041 is configured to update the balance of the target bus card of the second terminal according to the transfer amount.

在一种可能的实现方式中,参照图11,上述生成模块1001可以包括:第三生成子模块10013。In a possible implementation manner, referring to FIG. 11 , the generating module 1001 may include: a third generating submodule 10013 .

其中,第三生成子模块10013被配置为在所述第二终端内未创建所述目标公交卡时,响应于针对所述目标公交卡的调用操作,根据所述目标公交卡的目标公交卡标识生成第二转移指令,Wherein, the third generation sub-module 10013 is configured to, when the target bus card is not created in the second terminal, in response to the call operation for the target bus card, according to the target bus card identification of the target bus card generate a second branch instruction,

其中,所述第二转移指令用于指示第一终端向所述第二终端转移所述目标公交卡。Wherein, the second transfer instruction is used to instruct the first terminal to transfer the target bus card to the second terminal.

在一种可能的实现方式中,所述转移数据信息可以包括所述第一终端中所述目标公交卡的账号和所述第一终端中所述目标公交卡的余额,参照图11,所述更新模块1004可以包括:第二更新子模块10042。In a possible implementation, the transfer data information may include the account number of the target bus card in the first terminal and the balance of the target bus card in the first terminal. Referring to FIG. 11 , the The update module 1004 may include: a second update submodule 10042 .

其中,第二更新子模块10042被配置为创建所述目标公交卡,所述目标公交卡的账号为所述第一终端中所述目标公交卡的账号,所述目标公交卡的余额为所述第一终端中所述目标公交卡的余额。Wherein, the second updating submodule 10042 is configured to create the target bus card, the account number of the target bus card is the account number of the target bus card in the first terminal, and the balance of the target bus card is the The balance of the target bus card in the first terminal.

在一种可能的实现方式中,参照图11,上述装置还可以包括:获取模块1005和显示模块1006。In a possible implementation manner, referring to FIG. 11 , the foregoing apparatus may further include: an acquisition module 1005 and a display module 1006 .

其中,获取模块1005被配置为从服务器获取所述个人账户具有的公交卡状态信息,所述公交卡状态信息至少包括终端公交卡所属终端和终端公交卡所属城市;Wherein, the obtaining module 1005 is configured to obtain the bus card status information of the personal account from the server, and the bus card status information includes at least the terminal to which the terminal bus card belongs and the city to which the terminal bus card belongs;

显示模块1006被配置为响应于对所述公交卡状态信息的查看操作,显示所述公交卡状态信息。The display module 1006 is configured to display the bus card status information in response to a viewing operation on the bus card status information.

图12是根据一示例性实施例示出的一种用于终端公交卡的处理装置1200的框图。例如,装置1200可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Fig. 12 is a block diagram of a processing device 1200 for a terminal bus card according to an exemplary embodiment. For example, the apparatus 1200 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.

参照图12,装置1200可以包括以下一个或多个组件:处理组件1202,存储器1204,电源组件1206,多媒体组件1208,音频组件1210,输入/输出(I/O)的接口1212,传感器组件1214,以及通信组件1216。12, device 1200 may include one or more of the following components: processing component 1202, memory 1204, power supply component 1206, multimedia component 1208, audio component 1210, input/output (I/O) interface 1212, sensor component 1214, and communication component 1216.

处理组件1202通常控制装置1200的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件1202可以包括一个或多个处理器1220来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件1202可以包括一个或多个模块,便于处理组件1202和其他组件之间的交互。例如,处理组件1202可以包括多媒体模块,以方便多媒体组件1208和处理组件1202之间的交互。The processing component 1202 generally controls the overall operations of the device 1200, such as those associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 1202 may include one or more processors 1220 to execute instructions to complete all or part of the steps of the above method. Additionally, processing component 1202 may include one or more modules that facilitate interaction between processing component 1202 and other components. For example, processing component 1202 may include a multimedia module to facilitate interaction between multimedia component 1208 and processing component 1202 .

存储器1204被配置为存储各种类型的数据以支持在装置1200的操作。这些数据的示例包括用于在装置1200上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器1204可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。The memory 1204 is configured to store various types of data to support operations at the device 1200 . Examples of such data include instructions for any application or method operating on device 1200, contact data, phonebook data, messages, pictures, videos, and the like. The memory 1204 can be implemented by any type of volatile or non-volatile storage device or their combination, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.

电源组件1206为装置1200的各种组件提供电力。电源组件1206可以包括电源管理系统,一个或多个电源,及其他与为装置1200生成、管理和分配电力相关联的组件。The power supply component 1206 provides power to various components of the device 1200 . Power components 1206 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for device 1200 .

多媒体组件1208包括在所述装置1200和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件1208包括一个前置摄像头和/或后置摄像头。当装置1200处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 1208 includes a screen that provides an output interface between the device 1200 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may not only sense a boundary of a touch or swipe action, but also detect duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1208 includes a front camera and/or a rear camera. When the device 1200 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front camera and rear camera can be a fixed optical lens system or have focal length and optical zoom capability.

音频组件1210被配置为输出和/或输入音频信号。例如,音频组件1210包括一个麦克风(MIC),当装置1200处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器1204或经由通信组件1216发送。在一些实施例中,音频组件1210还包括一个扬声器,用于输出音频信号。The audio component 1210 is configured to output and/or input audio signals. For example, the audio component 1210 includes a microphone (MIC), which is configured to receive external audio signals when the device 1200 is in operation modes, such as call mode, recording mode and voice recognition mode. Received audio signals may be further stored in memory 1204 or sent via communication component 1216 . In some embodiments, the audio component 1210 also includes a speaker for outputting audio signals.

I/O接口1212为处理组件1202和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 1212 provides an interface between the processing component 1202 and a peripheral interface module, which may be a keyboard, a click wheel, a button, and the like. These buttons may include, but are not limited to: a home button, volume buttons, start button, and lock button.

传感器组件1214包括一个或多个传感器,用于为装置1200提供各个方面的状态评估。例如,传感器组件1214可以检测到装置1200的打开/关闭状态,组件的相对定位,例如所述组件为装置1200的显示器和小键盘,传感器组件1214还可以检测装置1200或装置1200一个组件的位置改变,用户与装置1200接触的存在或不存在,装置1200方位或加速/减速和装置1200的温度变化。传感器组件1214可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件1214还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件1214还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。Sensor assembly 1214 includes one or more sensors for providing status assessments of various aspects of device 1200 . For example, the sensor component 1214 can detect the open/closed state of the device 1200, the relative positioning of components, such as the display and keypad of the device 1200, and the sensor component 1214 can also detect a change in the position of the device 1200 or a component of the device 1200 , the presence or absence of user contact with the device 1200 , the device 1200 orientation or acceleration/deceleration and the temperature change of the device 1200 . Sensor assembly 1214 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1214 may also include optical sensors, such as CMOS or CCD image sensors, for use in imaging applications. In some embodiments, the sensor component 1214 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor or a temperature sensor.

通信组件1216被配置为便于装置1200和其他设备之间有线或无线方式的通信。装置1200可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件1216经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件1216还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。The communication component 1216 is configured to facilitate wired or wireless communication between the apparatus 1200 and other devices. The device 1200 can access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1216 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1216 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology and other technologies.

在示例性实施例中,装置1200可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 1200 may be programmed by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation for performing the methods described above.

在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器1204,上述指令可由装置1200的处理器1220执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as the memory 1204 including instructions, which can be executed by the processor 1220 of the device 1200 to implement the above method. For example, the non-transitory computer readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利要求指出。Other embodiments of the present disclosure will be readily apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any modification, use or adaptation of the present disclosure, and these modifications, uses or adaptations follow the general principles of the present disclosure and include common knowledge or conventional technical means in the technical field not disclosed in the present disclosure . The specification and examples are to be considered exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利要求来限制。It should be understood that the present disclosure is not limited to the precise constructions which have been described above and shown in the drawings, and various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (12)

1.一种终端公交卡的处理方法,其特征在于,所述方法应用于第一终端,所述方法包括:1. A processing method for a terminal bus card, characterized in that, the method is applied to the first terminal, and the method comprises: 在接收第二终端发送的转移指令时,响应于所述转移指令进行身份验证处理,所述转移指令为用于指示第一终端转移目标公交卡的第二转移指令,所述第二转移指令中包括目标公交卡标识;When receiving the transfer instruction sent by the second terminal, identity verification processing is performed in response to the transfer instruction, the transfer instruction is a second transfer instruction for instructing the first terminal to transfer the target bus card, and in the second transfer instruction Including target bus card identification; 在身份验证成功时,根据所述第二转移指令,从所述第一终端的公交卡信息中获取目标公交卡的账号及所述目标公交卡的余额,其中,所述目标公交卡为所述目标公交卡标识所表征的终端公交卡;When the identity verification is successful, according to the second transfer instruction, the account number of the target bus card and the balance of the target bus card are obtained from the bus card information of the first terminal, wherein the target bus card is the The terminal bus card represented by the target bus card identifier; 根据所述目标公交卡的账号及所述目标公交卡的余额生成转移数据信息;generating transfer data information according to the account number of the target bus card and the balance of the target bus card; 根据所述转移指令更新所述第一终端的公交卡信息;updating the bus card information of the first terminal according to the transfer instruction; 将所述转移数据信息通过近场通信NFC发送至第二终端。Send the transfer data information to the second terminal through near field communication (NFC). 2.根据权利要求1所述的方法,其特征在于,所述根据转移指令更新所述第一终端的公交卡信息,包括:2. The method according to claim 1, wherein said updating the bus card information of said first terminal according to the transfer instruction comprises: 从所述第一终端的公交卡信息中删除所述目标公交卡的公交卡信息。Deleting the bus card information of the target bus card from the bus card information of the first terminal. 3.一种终端公交卡的处理方法,其特征在于,所述方法应用于第二终端,所述方法包括:3. A processing method for a terminal bus card, characterized in that the method is applied to a second terminal, and the method comprises: 响应于针对目标公交卡的调用操作,生成转移指令;generating a transfer instruction in response to a calling operation directed at the target bus card; 通过近场通信NFC向第一终端发送所述转移指令,以使所述第一终端进行身份验证处理,并在身份验证成功时根据所述转移指令及所述第一终端的公交卡信息生成转移数据信息;Send the transfer instruction to the first terminal through near-field communication NFC, so that the first terminal performs identity verification processing, and generates a transfer according to the transfer instruction and the bus card information of the first terminal when the identity verification is successful Data information; 接收所述第一终端发送的所述转移数据信息,所述转移数据信息包括所述第一终端中所述目标公交卡的账号和所述第一终端中所述目标公交卡的余额;receiving the transfer data information sent by the first terminal, the transfer data information including the account number of the target bus card in the first terminal and the balance of the target bus card in the first terminal; 根据所述转移数据信息更新所述目标公交卡的公交卡信息;updating the bus card information of the target bus card according to the transfer data information; 所述响应于针对目标公交卡的调用操作,生成转移指令,包括:The generating transfer instruction in response to the calling operation for the target bus card includes: 在所述第二终端内未创建所述目标公交卡时,响应于针对所述目标公交卡的调用操作,根据所述目标公交卡的目标公交卡标识生成第二转移指令,其中,所述第二转移指令用于指示第一终端向所述第二终端转移所述目标公交卡。When the target bus card is not created in the second terminal, in response to the calling operation for the target bus card, a second transfer instruction is generated according to the target bus card identification of the target bus card, wherein the first The second transfer instruction is used to instruct the first terminal to transfer the target bus card to the second terminal. 4.根据权利要求3所述的方法,其特征在于,所述根据所述转移数据信息更新所述目标公交卡的公交卡信息,包括:4. The method according to claim 3, wherein said updating the bus card information of said target bus card according to said transfer data information comprises: 创建所述目标公交卡,所述目标公交卡的账号为所述第一终端中所述目标公交卡的账号,所述目标公交卡的余额为所述第一终端中所述目标公交卡的余额。Create the target bus card, the account number of the target bus card is the account number of the target bus card in the first terminal, and the balance of the target bus card is the balance of the target bus card in the first terminal . 5.根据权利要求3或4所述的方法,其特征在于,在所述第二终端成功登录个人账户时,所述方法还包括:5. The method according to claim 3 or 4, wherein when the second terminal successfully logs into the personal account, the method further comprises: 从服务器获取所述个人账户具有的公交卡状态信息,所述公交卡状态信息至少包括终端公交卡所属终端和终端公交卡所属城市;Obtaining the bus card status information of the personal account from the server, the bus card status information at least including the terminal to which the terminal bus card belongs and the city to which the terminal bus card belongs; 响应于对所述公交卡状态信息的查看操作,显示所述公交卡状态信息。In response to a viewing operation on the bus card status information, the bus card status information is displayed. 6.一种终端公交卡的处理装置,其特征在于,所述装置应用于第一终端,所述装置包括:6. A terminal bus card processing device, characterized in that said device is applied to a first terminal, said device comprising: 验证模块,用于在接收第二终端发送的转移指令时,响应于所述转移指令进行身份验证处理;A verification module, configured to perform identity verification processing in response to the transfer instruction when receiving the transfer instruction sent by the second terminal; 生成模块,用于在身份验证成功时,根据所述转移指令及所述第一终端的公交卡信息,生成转移数据信息;A generating module, configured to generate transfer data information according to the transfer instruction and the bus card information of the first terminal when the identity verification is successful; 更新模块,用于根据所述转移指令更新所述第一终端的公交卡信息;An update module, configured to update the bus card information of the first terminal according to the transfer instruction; 发送模块,用于将所述转移数据信息通过近场通信NFC发送至第二终端;A sending module, configured to send the transfer data information to the second terminal through near-field communication NFC; 所述转移指令为用于指示第一终端转移目标公交卡的第二转移指令,所述第二转移指令中包括目标公交卡标识,所述生成模块,包括:The transfer instruction is a second transfer instruction for instructing the first terminal to transfer the target bus card, the second transfer instruction includes the target bus card identification, and the generating module includes: 第二获取子模块,用于根据所述第二转移指令,从所述第一终端的公交卡信息中获取目标公交卡的账号及所述目标公交卡的余额,其中,所述目标公交卡为所述目标公交卡标识所表征的终端公交卡;The second acquisition sub-module is used to obtain the account number of the target bus card and the balance of the target bus card from the bus card information of the first terminal according to the second transfer instruction, wherein the target bus card is The terminal bus card represented by the target bus card identifier; 第二生成子模块,用于根据所述目标公交卡的账号及所述目标公交卡的余额生成所述转移数据信息。The second generation sub-module is configured to generate the transfer data information according to the account number of the target bus card and the balance of the target bus card. 7.根据权利要求6所述的装置,其特征在于,所述更新模块,包括:7. The device according to claim 6, wherein the update module comprises: 第二更新子模块,用于从所述第一终端的公交卡信息中删除所述目标公交卡的公交卡信息。The second update submodule is configured to delete the bus card information of the target bus card from the bus card information of the first terminal. 8.一种终端公交卡的处理装置,其特征在于,所述装置应用于第二终端,所述装置包括:8. A processing device for a terminal bus card, characterized in that said device is applied to a second terminal, said device comprising: 生成模块,用于响应于针对目标公交卡的调用操作,生成转移指令;A generating module, configured to generate a transfer instruction in response to a call operation directed at the target bus card; 发送模块,用于通过近场通信NFC向第一终端发送所述转移指令,以使所述第一终端进行身份验证处理,并在身份验证成功时根据所述转移指令及所述第一终端的公交卡信息生成转移数据信息;A sending module, configured to send the transfer instruction to the first terminal through NFC, so that the first terminal performs identity verification processing, and when the identity verification is successful, according to the transfer instruction and the first terminal's Bus card information generates transfer data information; 接收模块,用于接收所述第一终端发送的所述转移数据信息,所述转移数据信息包括所述第一终端中所述目标公交卡的账号和所述第一终端中所述目标公交卡的余额;A receiving module, configured to receive the transfer data information sent by the first terminal, where the transfer data information includes the account number of the target bus card in the first terminal and the target bus card in the first terminal the balance of 更新模块,用于根据所述转移数据信息更新所述目标公交卡的公交卡信息;An update module, configured to update the bus card information of the target bus card according to the transfer data information; 所述生成模块,包括:The generating module includes: 第三生成子模块,用于在所述第二终端内未创建所述目标公交卡时,响应于针对所述目标公交卡的调用操作,根据所述目标公交卡的目标公交卡标识生成第二转移指令,The third generating submodule is used to generate the second public transport card according to the target public transport card identification of the target public transport card in response to the call operation for the target public transport card when the target public transport card is not created in the second terminal. transfer instruction, 其中,所述第二转移指令用于指示第一终端向所述第二终端转移所述目标公交卡。Wherein, the second transfer instruction is used to instruct the first terminal to transfer the target bus card to the second terminal. 9.根据权利要求8所述的装置,其特征在于,所述更新模块,包括:9. The device according to claim 8, wherein the updating module comprises: 第二更新子模块,用于创建所述目标公交卡,所述目标公交卡的账号为所述第一终端中所述目标公交卡的账号,所述目标公交卡的余额为所述第一终端中所述目标公交卡的余额。The second update submodule is used to create the target bus card, the account number of the target bus card is the account number of the target bus card in the first terminal, and the balance of the target bus card is the first terminal The balance of the target bus card mentioned in . 10.根据权利要求8或9所述的装置,其特征在于,所述装置还包括:10. The device according to claim 8 or 9, wherein the device further comprises: 获取模块,用于从服务器获取个人账户具有的公交卡状态信息,所述公交卡状态信息至少包括终端公交卡所属终端和终端公交卡所属城市;The obtaining module is used to obtain the bus card status information of the personal account from the server, and the bus card status information includes at least the terminal to which the terminal bus card belongs and the city to which the terminal bus card belongs; 显示模块,用于响应于对所述公交卡状态信息的查看操作,显示所述公交卡状态信息。A display module, configured to display the status information of the bus card in response to an operation of checking the status information of the bus card. 11.一种终端公交卡的处理装置,其特征在于,包括:11. A processing device for a terminal bus card, characterized in that it comprises: 处理器;processor; 用于存储处理器可执行指令的存储器;memory for storing processor-executable instructions; 其中,所述处理器被配置为执行权利要求1至5任意一项所述的方法。Wherein, the processor is configured to execute the method according to any one of claims 1-5. 12.一种非临时性计算机可读存储介质,当所述存储介质中的指令由处理器执行时,使得处理器能够执行根据权利要求1至5任意一项所述的方法。12. A non-transitory computer-readable storage medium, when the instructions in the storage medium are executed by a processor, the processor can execute the method according to any one of claims 1 to 5.
CN201811012733.1A 2018-08-31 2018-08-31 Terminal bus card processing method and device Active CN109255601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811012733.1A CN109255601B (en) 2018-08-31 2018-08-31 Terminal bus card processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811012733.1A CN109255601B (en) 2018-08-31 2018-08-31 Terminal bus card processing method and device

Publications (2)

Publication Number Publication Date
CN109255601A CN109255601A (en) 2019-01-22
CN109255601B true CN109255601B (en) 2022-12-27

Family

ID=65049980

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811012733.1A Active CN109255601B (en) 2018-08-31 2018-08-31 Terminal bus card processing method and device

Country Status (1)

Country Link
CN (1) CN109255601B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110443597B (en) * 2019-08-02 2023-07-04 广州羊城通有限公司 Reminding method and device for balance transfer of IC card

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104428751A (en) * 2014-06-27 2015-03-18 华为技术有限公司 Program data updating method and equipment
CN104537526B (en) * 2014-12-23 2018-05-18 小米科技有限责任公司 Method, terminal and the device of numerical value transfer
KR20170131123A (en) * 2016-05-20 2017-11-29 에스프린팅솔루션 주식회사 Printing method of image forminig apparatus and the image forminig apparatus
CN106326965A (en) * 2016-09-21 2017-01-11 成都创慧科达科技有限公司 Intelligent bus card
CN107016486B (en) * 2017-03-03 2021-05-04 北京小米支付技术有限公司 Information changing method and device
CN107230064B (en) * 2017-05-16 2020-11-13 北京小米移动软件有限公司 Method and device for multiplexing virtual card
CN107977843A (en) * 2017-12-04 2018-05-01 北京小米移动软件有限公司 Mass transit card verification method and device

Also Published As

Publication number Publication date
CN109255601A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
EP3151507B1 (en) Methods and apparatuses for controlling device
CN104125067B (en) Account and token secret key binding method and device
EP3179397A1 (en) Methods and devices for managing automatic parallel login and logout in several applications
CN106453052B (en) Message interaction method and device
CN104283876A (en) Operation authorization method and device
CN106097494A (en) The method for unlocking of smart lock and device
CN106327164A (en) Method for sending electronic red packet and device thereof
CN108319832A (en) Unlocking method and device
WO2015165172A1 (en) Information transmission method and device in voice service
CN107562500A (en) Debugging apparatus, method and apparatus
CN107371052A (en) Equipment control method and device
CN106600768A (en) Intelligent door lock authentication method, device and terminal
CN107230064B (en) Method and device for multiplexing virtual card
CN106022114A (en) A display method and device for an application lock unlocking interface
CN106611112A (en) Application program safe processing method, device and equipment
CN107395624A (en) Information processing method and device
CN106961664A (en) Communicate to connect control method, device and bluetooth keyboard
CN106385470A (en) Information push method and device
CN106302116A (en) Message method and device
CN115706966A (en) Method and device for connecting network and readable storage medium
CN109255601B (en) Terminal bus card processing method and device
CN110708427B (en) Information processing method, device and storage medium
CN107977843A (en) Mass transit card verification method and device
CN108063806A (en) Long-range control method and remote control apparatus
CN106651341A (en) Online payment method and device

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