[go: up one dir, main page]

HK1248892B - Account creation, account recharging and data synchronization method and device - Google Patents

Account creation, account recharging and data synchronization method and device Download PDF

Info

Publication number
HK1248892B
HK1248892B HK18108430.1A HK18108430A HK1248892B HK 1248892 B HK1248892 B HK 1248892B HK 18108430 A HK18108430 A HK 18108430A HK 1248892 B HK1248892 B HK 1248892B
Authority
HK
Hong Kong
Prior art keywords
account
data
identifier
terminal device
synchronization
Prior art date
Application number
HK18108430.1A
Other languages
Chinese (zh)
Other versions
HK1248892A1 (en
Inventor
翟芬
顾春雷
沈淩楠
陈戈
齐杰
靳慧峰
宋学夫
Original Assignee
创新先进技术有限公司
Filing date
Publication date
Application filed by 创新先进技术有限公司 filed Critical 创新先进技术有限公司
Publication of HK1248892A1 publication Critical patent/HK1248892A1/en
Publication of HK1248892B publication Critical patent/HK1248892B/en

Links

Description

一种账户创建、账户充值、数据同步方法及设备Account creation, account recharge, and data synchronization method and device

技术领域Technical Field

本说明书涉及互联网信息处理技术以及计算机技术领域,尤其涉及一种账户创建、账户充值、数据同步方法及设备。This specification relates to the fields of Internet information processing technology and computer technology, and in particular to a method and device for account creation, account recharge, and data synchronization.

背景技术Background Art

现金支付作为一种传统支付方式,是每个生活在现代社会的人们所非常熟悉的支付方式。但是,在有些领域(例如:公共交通领域、超市购物领域),现金支付给人们带来一些不便(例如:需要准备足数的零钱等等)。Cash payment, as a traditional payment method, is very familiar to everyone living in modern society. However, in some areas (such as public transportation and supermarket shopping), cash payment brings some inconveniences to people (for example, the need to prepare sufficient change, etc.).

为了解决这些不便,出现了圈存支付。所谓圈存支付可以理解为用户将银行账户中的钱或者现金直接圈存至指定的IC卡(Integrated circuit Card,集成电路卡)中,之后利用指定的IC卡进行消费。这种方式又可以称之为电子钱包。但是,目前实现圈存的方式一般需要在特定设备中执行相关圈存操作。To address these inconveniences, payment by deposit has emerged. Payment by deposit can be understood as a user depositing money or cash from a bank account directly onto a designated IC card (Integrated Circuit Card), which can then be used to make purchases. This method is also known as an e-wallet. However, current methods for implementing payment by deposit generally require executing the relevant payment operation on a specific device.

基于这种支付方法,亟需一种更便捷的处理方法,以提升圈存支付的便捷性。Based on this payment method, a more convenient processing method is urgently needed to improve the convenience of deposit payment.

发明内容Summary of the Invention

有鉴于此,本说明书实施例提供了一种账户创建、账户充值、数据同步方法及设备,以提升圈存支付的便捷性。In view of this, the embodiments of this specification provide a method and device for account creation, account recharge, and data synchronization to improve the convenience of load payment.

本说明书实施例提供下述技术方案:The embodiments of this specification provide the following technical solutions:

本说明书实施例提供一种账户创建方法,包括:This embodiment of the present invention provides an account creation method, including:

第一终端设备通过设定的方式从指定载体中获取第一账户的账户标识;The first terminal device obtains the account identifier of the first account from the designated carrier in a set manner;

所述第一终端设备根据所述第一账户的账户标识,创建第二账户的账户标识;The first terminal device creates an account identifier of a second account based on the account identifier of the first account;

所述第一终端设备建立并存储所述第一账户的账户标识与所述第二账户的账户标识之间的映射关系。The first terminal device establishes and stores a mapping relationship between the account identifier of the first account and the account identifier of the second account.

本说明书实施例提供一种账户充值方法,包括:The present invention provides an account recharging method, including:

第一终端设备通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道;The first terminal device establishes a data channel with a designated carrier containing the account identifier of the first account through a near field communication technology;

所述第一终端设备通过所述数据通道将第二账户的充值数据写入所述指定载体中,以实现为所述第一账户进行充值。The first terminal device writes the recharge data of the second account into the designated carrier through the data channel to realize recharging for the first account.

本说明书实施例提供一种账户充值方法,包括:The present invention provides an account recharging method, including:

指定载体在通过近距离通信技术与第一终端设备建立数据通道的情况下,接收第一终端设备发送的充值数据;The designated carrier receives the recharge data sent by the first terminal device when establishing a data channel with the first terminal device through the near field communication technology;

根据所述充值数据,对第一账户的余额数据进行处理。The balance data of the first account is processed according to the recharge data.

本说明书实施例提供一种数据同步方法,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系,包括:An embodiment of this specification provides a data synchronization method, wherein an association relationship is established between a primary account included in a server, a first account included in a designated carrier, and a second account included in a first terminal device, including:

所述服务器通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据;The server obtains the account identifier of the first account and the first transaction data corresponding to the first account from the designated carrier through short-range communication;

所述服务器接收所述第一终端设备发送的所述第二账户的账户标识和所述第二账户对应的第二流水数据;The server receives the account identifier of the second account and the second transaction data corresponding to the second account sent by the first terminal device;

所述服务器根据所述第一流水数据和所述第二流水数据,确定一个同步周期的同步数据,并将所述同步数据发送给所述第一终端设备,以使所述第二账户对应的数据与所述主账户对应的数据一致。The server determines synchronization data of a synchronization cycle based on the first flow data and the second flow data, and sends the synchronization data to the first terminal device so that the data corresponding to the second account is consistent with the data corresponding to the main account.

本说明书实施例提供一种数据同步方法,包括:This embodiment of the present invention provides a data synchronization method, including:

第一终端设备通过近距离通信方式与指定载体建立数据通道;The first terminal device establishes a data channel with the designated carrier through a short-range communication method;

所述第一终端设备通过所述数据通道将第二账户对应的余额数据同步给所述指定载体,以使所述指定载体中包含的第一账户对应的数据与所述第二账户对应的数据一致。The first terminal device synchronizes the balance data corresponding to the second account to the designated carrier through the data channel, so that the data corresponding to the first account contained in the designated carrier is consistent with the data corresponding to the second account.

本说明书实施例提供一种数据同步方法,包括:This embodiment of the present invention provides a data synchronization method, including:

第一终端设备通过近距离通信方式与指定载体建立数据通道;The first terminal device establishes a data channel with the designated carrier through a short-range communication method;

所述第一终端设备通过所述数据通道获取所述指定载体中包含的第一账户的账户标识和所述第一账户对应的第一流水数据;The first terminal device obtains, through the data channel, the account identifier of the first account and the first transaction data corresponding to the first account contained in the designated carrier;

所述第一终端设备确定与所述第一账户关联的第二账户对应的第二流水数据;Determining, by the first terminal device, second transaction data corresponding to a second account associated with the first account;

所述第一终端设备根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。The first terminal device synchronizes data between the first account and the second account according to the first transaction data and the second transaction data.

本说明书实施例提供一种账户创建设备,包括:The present invention provides an account creation device, including:

获取单元,通过设定的方式从指定载体中获取第一账户的账户标识;an acquiring unit, configured to acquire the account identifier of the first account from a designated carrier in a set manner;

创建单元,根据所述第一账户的账户标识,创建第二账户的账户标识;a creating unit, configured to create an account identifier for a second account based on the account identifier of the first account;

存储单元,建立并存储所述第一账户的账户标识与所述第二账户的账户标识之间的映射关系。A storage unit is configured to establish and store a mapping relationship between the account identifier of the first account and the account identifier of the second account.

本说明书实施例提供一种账户充值设备,包括:The embodiment of this specification provides an account recharging device, including:

建立单元,通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道;an establishing unit, which establishes a data channel with a designated carrier including an account identifier of the first account through a near field communication technology;

充值单元,通过所述数据通道将第二账户的充值数据写入所述指定载体中,以实现为所述第一账户进行充值。The recharging unit writes the recharging data of the second account into the designated carrier through the data channel to realize recharging for the first account.

本说明书实施例提供一种账户充值设备,包括:The embodiment of this specification provides an account recharging device, including:

接收单元,在通过近距离通信技术与第一终端设备建立数据通道的情况下,接收第一终端设备发送的充值数据;a receiving unit, configured to receive the recharge data sent by the first terminal device when a data channel is established with the first terminal device through a near field communication technology;

处理单元,根据所述充值数据,对第一账户的余额数据进行处理。The processing unit processes the balance data of the first account according to the recharge data.

本说明书实施例提供一种数据同步设备,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系,包括:An embodiment of the present disclosure provides a data synchronization device, wherein an association relationship is established between a primary account included in a server, a first account included in a designated carrier, and a second account included in a first terminal device, including:

获取单元,通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据;an acquiring unit, configured to acquire an account identifier of a first account and first transaction data corresponding to the first account from the designated carrier through a short-range communication method;

接收单元,接收所述第一终端设备发送的所述第二账户的账户标识和所述第二账户对应的第二流水数据;a receiving unit, receiving the account identifier of the second account and second transaction data corresponding to the second account sent by the first terminal device;

同步单元,根据所述第一流水数据和所述第二流水数据,确定一个同步周期的同步数据,并将所述同步数据发送给所述第一终端设备,以使所述第二账户对应的数据与所述主账户对应的数据一致。The synchronization unit determines synchronization data of a synchronization cycle according to the first flow data and the second flow data, and sends the synchronization data to the first terminal device so that the data corresponding to the second account is consistent with the data corresponding to the main account.

本说明书实施例提供一种数据同步设备,包括:An embodiment of this specification provides a data synchronization device, including:

建立单元,通过近距离通信方式与指定载体建立数据通道;Establishing unit, establishing a data channel with a designated carrier through short-range communication;

同步单元,通过所述数据通道将第二账户对应的余额数据同步给所述指定载体,以使所述指定载体中包含的第一账户对应的数据与所述第二账户对应的数据一致。The synchronization unit synchronizes the balance data corresponding to the second account to the designated carrier through the data channel, so that the data corresponding to the first account contained in the designated carrier is consistent with the data corresponding to the second account.

本说明书实施例提供一种数据同步设备,包括:An embodiment of this specification provides a data synchronization device, including:

建立单元,通过近距离通信方式与指定载体建立数据通道;Establishing unit, establishing a data channel with a designated carrier through short-range communication;

获取单元,通过所述数据通道获取所述指定载体中包含的第一账户的账户标识和所述第一账户对应的第一流水数据;an acquiring unit, configured to acquire, through the data channel, an account identifier of a first account and first transaction data corresponding to the first account contained in the designated carrier;

确定单元,确定与所述第一账户关联的第二账户对应的第二流水数据;a determining unit, configured to determine second transaction data corresponding to a second account associated with the first account;

同步单元,根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。A synchronization unit is configured to synchronize data between the first account and the second account based on the first transaction data and the second transaction data.

本说明书实施例提供一种账户创建设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:An embodiment of this specification provides an account creation device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to perform the following steps:

通过设定的方式从指定载体中获取第一账户的账户标识;Obtaining the account identifier of the first account from the specified carrier in a set manner;

根据所述第一账户的账户标识,创建第二账户的账户标识;Creating an account identifier for a second account based on the account identifier of the first account;

建立并存储所述第一账户的账户标识与所述第二账户的账户标识之间的映射关系。A mapping relationship between the account identifier of the first account and the account identifier of the second account is established and stored.

本说明书实施例提供一种账户充值设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:An embodiment of this specification provides an account recharging device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to execute the following steps:

通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道;establishing a data channel with a designated carrier including the account identifier of the first account through a near field communication technology;

通过所述数据通道将第二账户的充值数据写入所述指定载体中,以实现为所述第一账户进行充值。The recharge data of the second account is written into the designated carrier through the data channel to realize recharging the first account.

本说明书实施例提供一种账户充值设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:An embodiment of this specification provides an account recharging device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to execute the following steps:

在通过近距离通信技术与第一终端设备建立数据通道的情况下,接收第一终端设备发送的充值数据;When a data channel is established with the first terminal device through the near field communication technology, receiving recharge data sent by the first terminal device;

根据所述充值数据,对第一账户的余额数据进行处理。The balance data of the first account is processed according to the recharge data.

本说明书实施例提供一种数据同步设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:An embodiment of this specification provides a data synchronization device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to execute the following steps:

通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据;Obtaining an account identifier of a first account and first transaction data corresponding to the first account from the designated carrier through a near field communication method;

接收所述第一终端设备发送的所述第二账户的账户标识和所述第二账户对应的第二流水数据;receiving the account identifier of the second account and second transaction data corresponding to the second account sent by the first terminal device;

根据所述第一流水数据和所述第二流水数据,确定一个同步周期的同步数据,并将所述同步数据发送给所述第一终端设备,以使所述第二账户对应的数据与所述主账户对应的数据一致;determining synchronization data for a synchronization period based on the first transaction data and the second transaction data, and sending the synchronization data to the first terminal device so that data corresponding to the second account is consistent with data corresponding to the primary account;

其中,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系。Among them, an association relationship is established between the main account contained in the server, the first account contained in the designated carrier, and the second account contained in the first terminal device.

本说明书实施例提供一种数据同步设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:An embodiment of this specification provides a data synchronization device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to execute the following steps:

通过近距离通信方式与指定载体建立数据通道;Establish a data channel with a designated carrier through short-range communication;

通过所述数据通道将第二账户对应的余额数据同步给所述指定载体,以使所述指定载体中包含的第一账户对应的数据与所述第二账户对应的数据一致。The balance data corresponding to the second account is synchronized to the designated carrier through the data channel, so that the data corresponding to the first account contained in the designated carrier is consistent with the data corresponding to the second account.

本说明书实施例提供一种数据同步设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:An embodiment of this specification provides a data synchronization device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to execute the following steps:

通过近距离通信方式与指定载体建立数据通道;Establish a data channel with a designated carrier through short-range communication;

通过所述数据通道获取所述指定载体中包含的第一账户的账户标识和所述第一账户对应的第一流水数据;Acquire, through the data channel, an account identifier of a first account and first transaction data corresponding to the first account contained in the designated carrier;

确定与所述第一账户关联的第二账户对应的第二流水数据;Determining second transaction data corresponding to a second account associated with the first account;

根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。Data synchronization is performed between the first account and the second account based on the first transaction data and the second transaction data.

本说明书实施例采用的上述至少一个技术方案能够达到以下有益效果:At least one of the above technical solutions adopted in the embodiments of this specification can achieve the following beneficial effects:

通过在终端设备上为指定载体中包含的第一账户创建第二账户,以及利用该终端设备中的第二账户,通过近距离通信方式实现为第一账户充值以及保证第一账户与第二账户之间的数据一致性。也就是说,假设第一账户是承载在指定载体中的账户,第二账户为与所述第一账户关联的虚拟的电子账户,那么用户既可以使用第一账户完成交易,也可以使用第二账户完成交易。同时,通过本说明书实施例提供的技术方案,能够保证这两个账户之间数据的一致性,进而提升用户的支付体验。By creating a second account on a terminal device for a first account contained in a designated carrier, and utilizing the second account in the terminal device, the first account can be recharged and data consistency between the first and second accounts can be ensured through near-field communication. In other words, assuming the first account is an account contained in a designated carrier and the second account is a virtual electronic account associated with the first account, the user can complete transactions using either the first account or the second account. Furthermore, the technical solutions provided in the embodiments of this specification ensure data consistency between the two accounts, thereby enhancing the user's payment experience.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

此处所说明的附图用来提供对本说明书的进一步理解,构成本申请的一部分,本说明书的示意性实施例及其说明用于解释本申请,并不构成对本申请的不当限定。在附图中:The drawings described herein are used to provide a further understanding of this specification and constitute a part of this application. The illustrative embodiments and descriptions of this specification are used to explain this application and do not constitute an improper limitation on this application. In the drawings:

图1为本说明书实施例提供的一种账户创建方法的流程示意图;FIG1 is a flow chart of an account creation method provided in an embodiment of this specification;

图2为本说明书实施例提供的一种账户充值方法的流程示意图;FIG2 is a flow chart of an account recharging method provided in an embodiment of this specification;

图3为本说明书实施例提供的一种账户充值方法的流程示意图;FIG3 is a flow chart of an account recharging method provided in an embodiment of this specification;

图4(a)为本说明书实施例提出的一种数据同步方法的流程示意图;FIG4( a ) is a flow chart of a data synchronization method proposed in an embodiment of this specification;

图4(b)为本说明书实施例提出的一种数据同步方法的流程示意图;FIG4( b ) is a flow chart of a data synchronization method proposed in an embodiment of this specification;

图5为本说明书实施例提出的一种数据同步方法的流程示意图;FIG5 is a flow chart of a data synchronization method proposed in an embodiment of this specification;

图6(a)为本说明书实施例提出的一种数据同步方法的流程示意图;FIG6( a ) is a flow chart of a data synchronization method proposed in an embodiment of this specification;

图6(b)为本说明书实施例提出的一种数据同步方法的流程示意图;FIG6( b ) is a flow chart of a data synchronization method proposed in an embodiment of this specification;

图7为本说明书实施例提出的一种数据同步方法的流程示意图;FIG7 is a flow chart of a data synchronization method proposed in an embodiment of this specification;

图8为本说明书实施例提出的一种数据同步方法的流程示意图;FIG8 is a flow chart of a data synchronization method proposed in an embodiment of this specification;

图9为本说明书实施例提出的一种数据同步方法的流程示意图;FIG9 is a flow chart of a data synchronization method proposed in an embodiment of this specification;

图10为本说明书实施例提出的一种数据同步方法的流程示意图;FIG10 is a flow chart of a data synchronization method proposed in an embodiment of this specification;

图11为本说明书实施例提供的一种账户创建设备的结构示意图;FIG11 is a schematic diagram of the structure of an account creation device provided in an embodiment of this specification;

图12为本说明书实施例提供的一种账户充值设备的结构示意图;FIG12 is a schematic diagram of the structure of an account recharging device provided in an embodiment of this specification;

图13为本说明书实施例提供的一种账户充值设备的结构示意图;FIG13 is a schematic diagram of the structure of an account recharging device provided in an embodiment of this specification;

图14为本说明书实施例提供的一种数据同步设备的结构示意图;FIG14 is a schematic diagram of the structure of a data synchronization device provided in an embodiment of this specification;

图15为本说明书实施例提供的一种数据同步设备的结构示意图;FIG15 is a schematic diagram of the structure of a data synchronization device provided in an embodiment of this specification;

图16为本说明书实施例提供的一种数据同步设备的结构示意图。FIG16 is a schematic diagram of the structure of a data synchronization device provided in an embodiment of this specification.

具体实施方式DETAILED DESCRIPTION

在现有技术中,使用移动支付方案纵然可以带来支付上的便利,但对于用户来说,也存在一些不便之处。例如,若用户未携带移动终端或移动终端处于没电状态,用户将无法使用移动终端进行支付,那么也就意味着如果卡片支付和移动支付能够相辅相成,将给用户的生产生活带来便利。While existing mobile payment solutions offer convenience, they also come with some inconveniences for users. For example, if a user doesn't have their mobile device with them or it's out of battery, they won't be able to make payments. This suggests that if card and mobile payment can complement each other, they could greatly improve users' lives and productivity.

然而,随着互联网技术的发展,出现了一种新的支付方式,即电子支付方式。所谓电子支付方式是指从事电子商务交易的当事人(包括:消费者、厂商和金融机构),通过信息网络,采用数字化方式以及安全的信息传输手段进行的货币支付或资金流转。相对于现金支付、圈存支付,能给用户带来更大便利。However, with the development of internet technology, a new payment method has emerged: electronic payment. Electronic payment refers to the monetary payment or fund transfer between parties involved in e-commerce transactions (including consumers, manufacturers, and financial institutions) via information networks, using digital methods and secure information transmission. Compared to cash payments or deposit payments, electronic payment offers greater convenience to users.

为了实现这一目的,本说明书实施例提供了一种账户创建、账户充值、数据同步方法及设备,通过在终端设备上为指定载体中包含的第一账户创建第二账户,以及利用该终端设备中的第二账户,通过近距离通信方式实现为第一账户充值以及保证第一账户与第二账户之间的数据一致性。也就是说,假设第一账户是承载在指定载体中的账户,第二账户为与所述第一账户关联的虚拟的电子账户,那么用户既可以使用第一账户完成交易,也可以使用第二账户完成交易。同时,通过本说明书实施例提供的技术方案,能够保证这两个账户之间数据的一致性,进而提升用户的支付体验。To achieve this purpose, the embodiments of this specification provide a method and device for account creation, account recharge, and data synchronization. By creating a second account for a first account contained in a designated carrier on a terminal device, and utilizing the second account in the terminal device, the first account is recharged and data consistency between the first and second accounts is ensured through short-range communication. In other words, assuming that the first account is an account carried in a designated carrier and the second account is a virtual electronic account associated with the first account, the user can complete the transaction using either the first account or the second account. At the same time, the technical solution provided in the embodiments of this specification can ensure the consistency of data between the two accounts, thereby improving the user's payment experience.

需要说明的是,本说明书实施例记载的技术方案可以应用在公共交通场景中,也可以应用在涉及类似IC卡应用的其他应用场景中,这里不做具体限定。It should be noted that the technical solutions described in the embodiments of this specification can be applied in public transportation scenarios, as well as in other application scenarios involving similar IC card applications, and are not specifically limited here.

IC卡(Integrated circuit Card,集成电路卡),又可称之为智能卡(SmartCard),这种卡片具备可读写、容量大、有加密功能、数据记录可靠,使用方便等特点。例如:公交卡。用户在乘坐公共交通工具的时候可以通过公交卡实现交通费的支付。当公交卡与公共交通工具的刷卡机之间进行数据交互时,读取公交卡中的数值,并实现交通费的扣除。而目前公交卡的充值一般都是通过圈存的方式完成的,即需要到指定的充值站点通过特殊设备进行充值。IC cards (Integrated Circuit Cards), also known as smart cards, are readable and writable, have large storage capacities, encryption capabilities, reliable data recording, and are easy to use. For example, bus cards allow users to pay for public transportation using these cards. When the bus card interacts with the public transportation card reader, the value on the card is read and the fare is deducted. Currently, bus card top-ups are typically completed through a rollover method, requiring users to visit designated top-up locations and use special equipment to top up their card.

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

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

图1为本说明书实施提供的一种账户创建方法的流程示意图。所述方法可以如下所示。本说明书实施例的执行主体为终端设备。Figure 1 is a flow chart of an account creation method provided by the present specification. The method may be as follows. The execution subject of the embodiment of the present specification is a terminal device.

步骤101:第一终端设备通过设定的方式从指定载体中获取第一账户的账户标识。Step 101: The first terminal device obtains the account identifier of the first account from a designated carrier in a set manner.

在本说明书实施例中,第一终端设备通过设定的方式从指定载体中获取第一账户的账户标识,包括:In the embodiment of this specification, the first terminal device obtains the account identifier of the first account from the designated carrier in a set manner, including:

第一种方式:First way:

第一终端设备通过近距离通信技术与指定载体建立数据通道,并通过所述数据通道从所述指定载体中获取第一账户的账户标识。The first terminal device establishes a data channel with a designated carrier through a near field communication technology, and obtains an account identifier of the first account from the designated carrier through the data channel.

第二种方式:Second way:

第一终端设备通过扫描的方式从指定载体中获取第一账户的账户标识。The first terminal device obtains the account identifier of the first account from the designated carrier by scanning.

这里所记载的所述指定载体包含支持近距离通信技术的卡式装置、包含所述第一账户的账户标识的第二终端设备、包含所述第一账户的账户标识的应用客户端中的至少一种或者多种。The designated carrier recorded here includes at least one or more of a card-type device supporting near-field communication technology, a second terminal device including the account identification of the first account, and an application client including the account identification of the first account.

步骤103:所述第一终端设备根据所述第一账户的账户标识,创建第二账户的账户标识。Step 103: The first terminal device creates an account identifier for a second account based on the account identifier of the first account.

在本说明书实施例中,第一终端设备在得到第一账户的账户标识之后,可以基于第一账户的账户标识创建第二账户的账户标识,也可以单独创建第二账户的账户标识,这里不做具体限定。In the embodiments of this specification, after obtaining the account identifier of the first account, the first terminal device can create the account identifier of the second account based on the account identifier of the first account, or can create the account identifier of the second account separately, which is not specifically limited here.

这里记载的所述第二账户包含虚拟账户、电子账户中的一种。The second account recorded here includes one of a virtual account and an electronic account.

步骤105:所述第一终端设备建立并存储所述第一账户的账户标识与所述第二账户的账户标识之间的映射关系。Step 105: The first terminal device establishes and stores a mapping relationship between the account identifier of the first account and the account identifier of the second account.

在本说明书实施例中,所述方法还包括:In the embodiment of this specification, the method further includes:

在得到所述第二账户的账户标识后,所述第一终端设备建立并存储所述第二账户的账户标识与用于支付的应用账户之间的关联关系。After obtaining the account identifier of the second account, the first terminal device establishes and stores an association relationship between the account identifier of the second account and the application account used for payment.

图2为本说明书实施例提供的一种账户充值方法的流程示意图。所述方法可以如下所示。本说明书实施例的执行主体可以为智能终端设备,例如:移动终端设备。Figure 2 is a flow chart of an account recharge method provided in an embodiment of this specification. The method may be as follows. The execution subject of the embodiment of this specification may be a smart terminal device, such as a mobile terminal device.

步骤201:第一终端设备通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道。Step 201: The first terminal device establishes a data channel with a designated carrier containing an account identifier of a first account through short-range communication technology.

在本说明书实施例中,在建立数据通道之前,所述方法还包括:In this embodiment of the present specification, before establishing the data channel, the method further includes:

第一终端设备利用用于支付的应用账户向第二账户执行转账操作,生成第二账户的充值数据。The first terminal device uses the application account used for payment to perform a transfer operation on the second account, and generates recharge data for the second account.

这里所记载的所述指定载体包含支持近距离通信技术的卡式装置、包含所述第一账户的账户标识的第二终端设备、包含所述第一账户的账户标识的应用客户端中的至少一种或者多种。The designated carrier recorded here includes at least one or more of a card-type device supporting near-field communication technology, a second terminal device including the account identification of the first account, and an application client including the account identification of the first account.

步骤203:所述第一终端设备通过所述数据通道将第二账户的充值数据写入所述指定载体中,以实现为所述第一账户进行充值。Step 203: The first terminal device writes the recharge data of the second account into the designated carrier through the data channel to realize recharging for the first account.

图3为本说明书实施例提供的一种账户充值方法的流程示意图。所述方法可以如下所示。本说明书实施例的执行主体可以为指定载体,例如:IC卡、终端设备等等。Figure 3 is a flow chart of an account recharge method provided in an embodiment of this specification. The method may be as follows. The execution subject of the embodiment of this specification may be a designated carrier, such as an IC card, a terminal device, etc.

步骤301:指定载体在通过近距离通信技术与第一终端设备建立数据通道的情况下,接收第一终端设备发送的充值数据。Step 301: The designated carrier receives recharge data sent by the first terminal device while establishing a data channel with the first terminal device through the near field communication technology.

步骤303:根据所述充值数据,对第一账户的余额数据进行处理。Step 303: Process the balance data of the first account according to the recharge data.

在本说明书实施例中,在第一账户的余额数据为零的情况下,将所述充值数据写入所述第一账户中;In the embodiment of this specification, when the balance data of the first account is zero, the recharge data is written into the first account;

在第一账户的余额数据不为零的情况下,利用所述充值数据,修改所述第一账户的余额数据。When the balance data of the first account is not zero, the balance data of the first account is modified using the recharge data.

通过本说明书实施例中图2和图3中所记载的方案,利用移动终端设备(例如:智能手机等)能够实现对所使用的IC卡类型的卡式装置进行充值,这样有效避免了实际生活中因为充值设备的固定所带给人们的各种不方面(例如:较长的等待时间、需要到达充值设备所在的位置等等),能够有效提升充值效率,同时给用户带来极好的用户体验。Through the schemes described in Figures 2 and 3 of the embodiments of this specification, the IC card type card device used can be recharged using a mobile terminal device (for example, a smart phone, etc.). This effectively avoids the various inconveniences caused by the fixed recharge device in real life (for example, long waiting time, the need to reach the location of the recharge device, etc.), effectively improves the recharge efficiency, and provides users with an excellent user experience.

图4(a)为本说明书实施例提供的一种数据同步方法的流程示意图。所述方法可以如下所示。本说明书实施例的执行主体为服务器,该服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系。Figure 4(a) is a flow chart of a data synchronization method provided in an embodiment of this specification. The method may be as follows. The execution subject of this embodiment of this specification is a server, and an association is established between a primary account contained in the server, a first account contained in a designated carrier, and a second account contained in a first terminal device.

假设这里的服务器为公共交通服务器,公共交通服务器可以根据用户的身份标识为用户建立主账户,那么用户在申请到公交卡的情况下,公共交通服务器可以建立主账户与该公交卡的卡标识(即第一账户的账户标识)之间的映射关系;此外,假设用户在终端设备上创建了与该公交卡的卡号关联的虚拟电子卡,那么还可以进一步建立主账户与该虚拟电子卡的卡标识(即第二账户的账户标识)之间的映射关系。Assuming that the server here is a public transportation server, the public transportation server can establish a master account for the user based on the user's identity identifier. Then, when the user applies for a public transportation card, the public transportation server can establish a mapping relationship between the master account and the card identifier of the public transportation card (that is, the account identifier of the first account); in addition, assuming that the user creates a virtual electronic card associated with the card number of the public transportation card on the terminal device, then a mapping relationship can be further established between the master account and the card identifier of the virtual electronic card (that is, the account identifier of the second account).

步骤401:所述服务器通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据。Step 401: The server obtains the account identifier of the first account and the first transaction data corresponding to the first account from the designated carrier through short-range communication.

在本说明书实施例中,所述服务器通过近距离通信方式与所述指定载体建立数据通道;In the embodiment of this specification, the server establishes a data channel with the designated carrier via short-range communication;

所述服务器在确定交易发生的情况下,通过所述数据通道从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据。When determining that a transaction has occurred, the server obtains the account identifier of the first account and first transaction data corresponding to the first account from the designated carrier through the data channel.

例如:用户在使用公交卡刷卡消费时,通过商家所提供的POS机或者刷卡机可以将该公交卡的消费数据发送给服务器,这样,服务器能够及时获取公交卡中包含的第一账户的账户标识和所述第一账户对应的第一流水数据。For example, when a user uses a bus card to pay, the consumption data of the bus card can be sent to the server through the POS machine or card swiping machine provided by the merchant. In this way, the server can promptly obtain the account identifier of the first account contained in the bus card and the first transaction data corresponding to the first account.

步骤403:所述服务器接收所述第一终端设备发送的所述第二账户的账户标识和所述第二账户对应的第二流水数据。Step 403: The server receives the account identifier of the second account and the second transaction data corresponding to the second account sent by the first terminal device.

步骤405:所述服务器根据所述第一流水数据和所述第二流水数据,确定一个同步周期的同步数据,并将所述同步数据发送给所述第一终端设备,以使所述第二账户对应的数据与所述主账户对应的数据一致。Step 405: The server determines synchronization data of a synchronization cycle based on the first transaction data and the second transaction data, and sends the synchronization data to the first terminal device to make the data corresponding to the second account consistent with the data corresponding to the primary account.

在本说明书实施例中,所述方法还包括:In the embodiment of this specification, the method further includes:

若所述同步数据为负数,那么向所述第一终端设备发送扣款请求,所述扣款请求用于请求从与所述第二账户关联的用于支付的应用账户中扣除所述负数对应的金额。If the synchronization data is a negative number, a deduction request is sent to the first terminal device, where the deduction request is used to request to deduct an amount corresponding to the negative number from an application account for payment associated with the second account.

图4(b)为本说明书实施例提供的一种数据同步方法的流程示意图。所述方法可以如下所示。本说明书实施例的执行主体为终端设备。FIG4( b ) is a flow chart of a data synchronization method provided in an embodiment of this specification. The method may be as follows. The execution subject of the embodiment of this specification is a terminal device.

步骤402:第一终端设备通过近距离通信方式与指定载体建立数据通道。Step 402: The first terminal device establishes a data channel with a designated carrier via short-range communication.

步骤404:所述第一终端设备通过所述数据通道将第二账户对应的余额数据同步给所述指定载体,以使所述指定载体中包含的第一账户对应的数据与所述第二账户对应的数据一致。Step 404: The first terminal device synchronizes the balance data corresponding to the second account to the designated carrier through the data channel, so that the data corresponding to the first account contained in the designated carrier is consistent with the data corresponding to the second account.

在本说明书实施例中,在数据通道建立之前,所述方法还包括:In this embodiment of the present specification, before the data channel is established, the method further includes:

第一终端设备接收服务器发送的同步数据,所述同步数据是所述服务器根据图4(a)所记载的方式得到的;The first terminal device receives synchronization data sent by the server, where the synchronization data is obtained by the server according to the method described in FIG4(a);

所述第一终端设备利用所述同步数据修改所述第二账户对应的数据,以使所述第二账户对应的数据与服务器中包含的主账户对应的数据一致;The first terminal device modifies data corresponding to the second account using the synchronization data so that the data corresponding to the second account is consistent with the data corresponding to the primary account contained in the server;

其中,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系。Among them, an association relationship is established between the main account contained in the server, the first account contained in the designated carrier, and the second account contained in the first terminal device.

图5为本说明书实施例提供的一种数据处理方法的流程示意图。所述方法可以如下所示。本说明书实施例以公共交通场景为例进行说明。这里的第一账户对应实体公交卡中的账户,第二账户对应虚拟电子卡中的账户,第一账户与第二账户之间建立关联关系。Figure 5 is a flow chart of a data processing method provided in an embodiment of this specification. The method may be as follows. This specification uses a public transportation scenario as an example. The first account corresponds to the account in the physical bus card, and the second account corresponds to the account in the virtual electronic card. An association is established between the first account and the second account.

对于实体公交卡,充值数据、付款数据被写入实体公交卡中,即实体公交卡具备数据存储功能,能够实时记录所产生的流水数据;对于虚拟电子卡,充值数据、付款数据被存储在终端设备中,能够实时记录所产生的流水数据。For physical bus cards, recharge data and payment data are written into the physical bus card, that is, the physical bus card has data storage function and can record the generated transaction data in real time; for virtual electronic cards, recharge data and payment data are stored in the terminal device, which can record the generated transaction data in real time.

步骤501:终端设备基于实体公交卡,创建与其关联的虚拟电子卡。Step 501: The terminal device creates a virtual electronic card associated with the physical bus card.

步骤503:指定载体使用实体公交卡,得到该实体公交卡对应的第一流水数据,并将第一流水数据发送给服务器。Step 503: The designated carrier uses the physical bus card, obtains first transaction data corresponding to the physical bus card, and sends the first transaction data to the server.

步骤505:终端设备使用虚拟电子卡,得到该虚拟电子卡对应的第二流水数据。Step 505: The terminal device uses the virtual electronic card to obtain second transaction data corresponding to the virtual electronic card.

这里步骤503和步骤505没有严格的执行顺序,可以同步实施,也可以按照本说明书实施例中记载的方式实施,还可以先执行步骤305,再执行步骤303,这里不做具体限定。There is no strict execution order for step 503 and step 505. They can be executed simultaneously, or in the manner described in the embodiments of this specification. Step 305 can also be executed first, and then step 303. No specific limitation is made here.

步骤507:终端设备从服务器中获取该第一流水数据。Step 507: The terminal device obtains the first transaction data from the server.

步骤509:终端设备基于该第一流水数据和第二流水数据,对该虚拟电子卡中的余额数据进行修改。Step 509: The terminal device modifies the balance data in the virtual electronic card based on the first transaction data and the second transaction data.

步骤511:终端设备通过近距离通信方式,建立该实体公交卡与该虚拟电子卡之间的数据通道。Step 511: The terminal device establishes a data channel between the physical bus card and the virtual electronic card through short-range communication.

步骤513:终端设备利用所述数据通道,将虚拟电子卡中修改后的余额数据同步给实体公交卡。Step 513: The terminal device uses the data channel to synchronize the modified balance data in the virtual electronic card to the physical bus card.

图6(a)为本说明书实施例提供的一种数据同步方法的流程示意图。所述方法可以如下所示。本说明书实施例的执行主体为终端设备。Figure 6(a) is a flow chart of a data synchronization method provided in an embodiment of this specification. The method may be as follows. The execution subject of the embodiment of this specification is a terminal device.

步骤602:第一终端设备通过近距离通信方式与指定载体建立数据通道。Step 602: The first terminal device establishes a data channel with a designated carrier via short-range communication.

在本说明书实施例中,所述第一终端设备在建立数据通道之前,所述方法还包括:In this embodiment of the present specification, before the first terminal device establishes the data channel, the method further includes:

若检测到与第一账户关联的第二账户对应的数据发生变化,则所述第一终端设备发送提示信息,所述提示信息用于提示用户在所述第一账户与所述第二账户之间进行数据同步。If a change is detected in the data corresponding to the second account associated with the first account, the first terminal device sends a prompt message, where the prompt message is used to prompt the user to synchronize data between the first account and the second account.

步骤604:所述第一终端设备通过所述数据通道获取所述指定载体中包含的第一账户的账户标识和所述第一账户对应的第一流水数据。Step 604: The first terminal device obtains the account identifier of the first account contained in the designated carrier and the first transaction data corresponding to the first account through the data channel.

步骤606:所述第一终端设备确定与所述第一账户关联的第二账户对应的第二流水数据。Step 606: The first terminal device determines second transaction data corresponding to a second account associated with the first account.

在本说明书实施例中,根据所述第一账户的账户标识,确定与所述第一账户的账户标识建立关联关系的第二账户的账户标识;In the embodiment of this specification, based on the account identifier of the first account, the account identifier of the second account that is associated with the account identifier of the first account is determined;

根据所述第二账户的账户标识,查找与所述第二账户的账户标识建立对应关系的第二流水数据。According to the account identifier of the second account, second transaction data corresponding to the account identifier of the second account is searched.

步骤608:所述第一终端设备根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。Step 608: The first terminal device synchronizes data between the first account and the second account based on the first transaction data and the second transaction data.

在本说明书实施例中,根据所述第一流水数据和所述第二流水数据,计算得到用于同步的同步数据;In the embodiment of this specification, synchronization data for synchronization is calculated based on the first pipeline data and the second pipeline data;

分别将所述同步数据同步至所述第一账户和所述第二账户。The synchronization data is synchronized to the first account and the second account respectively.

若所述同步数据为负数,那么将空分别写入所述第一账户和所述第二账户;If the synchronization data is a negative number, write null to the first account and the second account respectively;

从与所述第二账户关联的用于支付的应用账户中扣除所述负数对应的金额。An amount corresponding to the negative number is deducted from an application account for payment associated with the second account.

在本说明书实施例中,所述方法还包括:In the embodiment of this specification, the method further includes:

将同步时间、所述第一账户的账户标识、所述第一流水数据发送给服务器,并删除承载所述第一账户的载体中记录的所述第一流水数据;和/或,Sending the synchronization time, the account identifier of the first account, and the first transaction data to the server, and deleting the first transaction data recorded in the carrier carrying the first account; and/or,

将同步时间、所述第二账户的账户标识、所述第二流水数据发送给所述服务器,并删除所述第二流水数据。The synchronization time, the account identifier of the second account, and the second transaction data are sent to the server, and the second transaction data is deleted.

在本说明书实施例中,所述流水数据包含消费数据、充值数据中的至少一种或者多种。In the embodiment of this specification, the transaction data includes at least one or more of consumption data and recharge data.

图6(b)为本说明书实施例提供的一种数据处理方法的流程示意图。所述方法可以如下所示。本说明书实施例以公共交通场景为例进行说明。这里的第一账户对应实体公交卡中的账户,第二账户对应虚拟电子卡中的账户,第一账户与第二账户之间建立关联关系。Figure 6(b) is a flow chart of a data processing method provided in an embodiment of this specification. The method may be as follows. This specification uses a public transportation scenario as an example. The first account corresponds to the account in the physical bus card, and the second account corresponds to the account in the virtual electronic card. An association is established between the first account and the second account.

对于实体公交卡,充值数据、付款数据被写入实体公交卡中,即实体公交卡具备数据存储功能,能够实时记录所产生的流水数据;对于虚拟电子卡,充值数据、付款数据被存储在终端设备中,能够实时记录所产生的流水数据。For physical bus cards, recharge data and payment data are written into the physical bus card, that is, the physical bus card has data storage function and can record the generated transaction data in real time; for virtual electronic cards, recharge data and payment data are stored in the terminal device, which can record the generated transaction data in real time.

步骤601:终端设备基于实体公交卡,创建与其关联的虚拟电子卡。Step 601: The terminal device creates a virtual electronic card associated with the physical bus card.

步骤603:指定载体使用实体公交卡,得到该实体公交卡对应的第一流水数据并存储;终端设备使用虚拟电子卡,得到该虚拟电子卡对应的第二流水数据并存储。Step 603: The designated carrier uses a physical bus card to obtain and store first transaction data corresponding to the physical bus card; the terminal device uses a virtual electronic card to obtain and store second transaction data corresponding to the virtual electronic card.

步骤605:终端设备通过近距离通信方式,建立该实体公交卡与该虚拟电子卡之间的数据通道。Step 605: The terminal device establishes a data channel between the physical bus card and the virtual electronic card through short-range communication.

步骤607:终端设备利用所述数据通道,获取该实体公交卡对应的第一流水数据。Step 607: The terminal device uses the data channel to obtain the first flow data corresponding to the physical bus card.

步骤609:终端设备根据该第一流水数据和第二流水数据,在实体公交卡与虚拟电子卡之间进行数据同步。Step 609: The terminal device synchronizes data between the physical bus card and the virtual electronic card based on the first flow data and the second flow data.

图5与图6(b)所示的实施例不同,区别在于:在实体公交卡的流水数据产生时,不仅存储在实体公交卡中,还发送给实体公交卡对应的服务器,在虚拟电子卡的流水数据产生时,不仅存储在终端设备中,还发送给服务器。虚拟电子卡所在的终端设备能够从服务器中获取到实体公交卡的第一流水数据,终端设备能够基于存储的第二流水数据和获取到的第一流水数据,对虚拟电子卡中的数据进行修改,以保证修改后的数据与用户在服务器中主账户的数据一致。The embodiments shown in Figures 5 and 6(b) differ in that, when the transaction data for a physical bus card is generated, it is not only stored on the physical bus card but also transmitted to the physical bus card's corresponding server. However, when the transaction data for a virtual electronic card is generated, it is not only stored on the terminal device but also transmitted to the server. The terminal device containing the virtual electronic card can retrieve the physical bus card's first transaction data from the server. Based on the stored second transaction data and the retrieved first transaction data, the terminal device can modify the data in the virtual electronic card to ensure that the modified data is consistent with the data in the user's primary account on the server.

基于同一个发明构思,图7为本说明书实施例提供的一种数据同步方法的流程示意图。所述方法可以如下所示。本说明书实施例的执行主体可以为终端设备,也可以为具备本说明书实施例提供的技术方案的应用客户端,这里不做具体限定。Based on the same inventive concept, FIG7 is a flow chart of a data synchronization method provided in an embodiment of this specification. The method may be as follows. The execution subject of the embodiment of this specification may be a terminal device or an application client that has the technical solution provided in the embodiment of this specification, and no specific limitation is made here.

步骤701:判断是否满足设定的同步条件,若满足,则执行步骤703;否则,等待设定时间继续执行步骤701。Step 701: Determine whether the set synchronization condition is met. If so, execute step 703; otherwise, wait for the set time and continue to execute step 701.

在本说明书实施例中,设定的同步条件可以包含但不限于以下条件:In the embodiments of this specification, the synchronization conditions set may include but are not limited to the following conditions:

1、是否检测到承载第一账户的载体。若检测到承载第一账户的载体,则说明满足设定的同步条件;若尚未检测到承载第一账户的载体,则说明不满足设定的同步条件。1. Whether the carrier carrying the first account is detected. If the carrier carrying the first account is detected, it means that the set synchronization conditions are met; if the carrier carrying the first account is not detected, it means that the set synchronization conditions are not met.

2、是否接收到数据同步请求。若接收到数据同步请求,进一步判断是否检测到承载第一账户的载体,若检测到承载第一账户的载体,则说明满足设定的同步条件;若尚未检测到承载第一账户的载体,则发送提示信息,该提示信息用于提醒用户提供承载第一账户的载体,并建立数据通道;若尚未接收到数据同步请求,则说明不满足设定的同步条件。2. Whether a data synchronization request has been received. If a data synchronization request has been received, the system further determines whether a carrier carrying the first account has been detected. If a carrier carrying the first account has been detected, the system indicates that the set synchronization conditions have been met. If a carrier carrying the first account has not been detected, the system sends a prompt message to remind the user to provide the carrier carrying the first account and establish a data channel. If a data synchronization request has not been received, the system indicates that the set synchronization conditions have not been met.

3、设定的同步周期是否到达。若设定的同步周期到达,进一步判断是否检测到承载第一账户的载体,若检测到承载第一账户的载体,则说明满足设定的同步条件;若尚未检测到承载第一账户的载体,则发送提示信息,该提示信息用于提醒用户提供承载第一账户的载体,并建立数据通道;若设定的同步周期尚未到达,则说明不满足设定的同步条件。3. Whether the set synchronization period has arrived. If the set synchronization period has arrived, it is further determined whether the carrier carrying the first account is detected. If the carrier carrying the first account is detected, it means that the set synchronization conditions are met. If the carrier carrying the first account has not been detected, a prompt message is sent to remind the user to provide the carrier carrying the first account and establish a data channel. If the set synchronization period has not arrived, it means that the set synchronization conditions are not met.

对于本说明书实施例中列举的同步条件可以选择其一使用,也可以选择几个混合使用。同时,设定的同步条件也不限于本说明书实施例中所列举的这些,还可以根据实际需要确定,这里不做具体限定。For the synchronization conditions listed in the embodiments of this specification, one can be selected for use, or several can be selected for use in combination. At the same time, the synchronization conditions set are not limited to those listed in the embodiments of this specification, and can also be determined according to actual needs, which is not specifically limited here.

较优地,在本说明书实施例中,当检测到承载第一账户的载体时,还可以进一步判断是否存在与所述第一账户的账户标识关联的第二账户,若不存在,首先,基于第一账户的账户标识创建与其关联的第二账户,其次,触发执行数据同步操作;若存在,则按照本说明书实施例中记载的方案执行以下操作。Preferably, in the embodiment of the present specification, when a carrier carrying a first account is detected, it is possible to further determine whether there is a second account associated with the account identifier of the first account. If not, first, a second account associated with the first account is created based on the account identifier of the first account, and secondly, a data synchronization operation is triggered; if it exists, the following operations are performed according to the scheme described in the embodiment of the present specification.

需要说明的是,本说明书实施例中记载的承载第一账户的载体可以为支持近距离通信方式的卡片(例如:IC卡),这里的近距离通信方式包含但不限于蓝牙、红外、NFC、RFID等等,这里不做具体限定。It should be noted that the carrier of the first account recorded in the embodiment of this specification can be a card that supports short-range communication (for example, an IC card). The short-range communication method here includes but is not limited to Bluetooth, infrared, NFC, RFID, etc., and is not specifically limited here.

步骤703:获取第一账户的账户标识和所述第一账户对应的第一流水数据。Step 703: Obtain the account identifier of the first account and the first transaction data corresponding to the first account.

在本说明书实施例中,获取第一账户的账户标识和所述第一账户对应的第一流水数据的方式包括但不限于:In the embodiment of this specification, the method of obtaining the account identifier of the first account and the first transaction data corresponding to the first account includes but is not limited to:

第一种方式:First way:

通过近距离通信方式与承载第一账户的载体之间建立数据通道;Establishing a data channel with the carrier carrying the first account through a short-range communication method;

利用所述数据通道,从所述载体中获取所述第一账户的账户标识和所述第一账户对应的第一流水数据。The account identifier of the first account and the first transaction data corresponding to the first account are obtained from the carrier by utilizing the data channel.

假设承载第一账户的载体为支持NFC通信方式的卡片,那么终端设备通过NFC方式可以与该卡片建立数据通道,利用该数据通道,可以从该卡片中获取第一账户的账户标识(例如:卡片的卡号)和第一账户对应的第一流水数据。Assuming that the carrier of the first account is a card that supports NFC communication, the terminal device can establish a data channel with the card through NFC. Using this data channel, the account identifier of the first account (for example, the card number) and the first transaction data corresponding to the first account can be obtained from the card.

需要说明的是,该卡片可以在与其他设备进行数据交互时,可以记录所产生的流水数据,例如:消费数据、充值数据等等,并且记录流水数据发生的时间。It should be noted that the card can record the transaction data generated when interacting with other devices, such as consumption data, recharge data, etc., and record the time when the transaction data occurs.

第二种方式:Second way:

通过扫描的方式,从承载第一账户的载体中获取所述第一账户的账户标识;Obtaining, by scanning, an account identifier of the first account from a carrier carrying the first account;

根据所述第一账户的账户标识,从服务器中获取所述第一账户的账户标识对应的第一流水数据。According to the account identifier of the first account, first transaction data corresponding to the account identifier of the first account is obtained from a server.

例如:在承载第一账户的载体中包含二维码图片,该二维码图片中包含了第一账户的账户标识,那么通过扫描的方式可以从该载体中获取第一账户的账户标识,进而通过该第一账户的账户标识查找到与该第一账户的账户标识对应的流水数据。For example, if a QR code image is included in a carrier carrying a first account, and the QR code image includes the account ID of the first account, the account ID of the first account can be obtained from the carrier by scanning, and then the transaction data corresponding to the account ID of the first account can be found through the account ID of the first account.

第三种方式:The third way:

提供用户界面,并通过所述用户界面接收用户输入的第一账户的账户标识;providing a user interface, and receiving, through the user interface, an account identifier of a first account input by a user;

根据所述第一账户的账户标识,从服务器中获取所述第一账户的账户标识对应的第一流水数据。According to the account identifier of the first account, first transaction data corresponding to the account identifier of the first account is obtained from a server.

例如:在终端设备中提供用户界面,并可以通过该用户界面发起数据同步操作。即通过该用户界面可以获取第一账户的账户标识,这里的第一账户的账户标识可以理解为承载第一账户的卡片的卡号。进而通过第一账户的账户标识可以获取与该第一账户的账户标识对应的流水数据。For example, a user interface is provided on the terminal device, and a data synchronization operation can be initiated through the user interface. That is, the account identifier of the first account can be obtained through the user interface. Here, the account identifier of the first account can be understood as the card number of the card carrying the first account. Then, the transaction data corresponding to the account identifier of the first account can be obtained through the account identifier of the first account.

较优地,在获取第一账户的账户标识和所述第一账户对应的第一流水数据之前,所述方法还包括:Preferably, before obtaining the account identifier of the first account and the first transaction data corresponding to the first account, the method further includes:

若检测到与第一账户关联的第二账户发生数据变化,则发送提示信息,所述提示信息用于提示用户在所述第一账户与所述第二账户之间进行数据同步。If a data change is detected in a second account associated with a first account, a prompt message is sent, where the prompt message is used to prompt a user to synchronize data between the first account and the second account.

例如:为了保证第一账户与其关联的第二账户之间的数据一致性,在检测到与第一账户关联的第二账户的数据发生变化时,可以通过发送提示信息的方式,提示用户在所述第一账户与第二账户之间进行数据同步。For example, in order to ensure data consistency between a first account and its associated second account, when a change in data of the second account associated with the first account is detected, a prompt message can be sent to prompt the user to synchronize data between the first account and the second account.

较优地,在本说明书实施例中,获取所述第一账户在一个同步周期内产生的第一流水数据。Preferably, in the embodiment of the present specification, first transaction data generated by the first account within a synchronization cycle is obtained.

这里的同步周期可以理解为相邻两次同步操作发生期间的时间,这里的同步周期可以是固定周期,也可以是不固定周期,这里不做具体限定。例如:在发起本次同步操作时,确定上一次发起同步操作或者上一次数据同步完成的时间T,那么以确定的该时间T为起点、以发起本次同步操作的时间为终点,确定在这一时间段(从起点到终点)中产生的流水数据。The synchronization period here can be understood as the time between two consecutive synchronization operations. The synchronization period here can be fixed or variable, and is not specifically limited here. For example, when initiating this synchronization operation, the time T of the last synchronization operation or the last data synchronization completion is determined. Then, with the determined time T as the starting point and the time of initiating this synchronization operation as the end point, the flow data generated during this time period (from the starting point to the end point) is determined.

步骤705:确定与所述第一账户关联的第二账户对应的第二流水数据。Step 705: Determine second transaction data corresponding to a second account associated with the first account.

在本说明书实施例中,根据所述第一账户的账户标识,确定与所述第一账户的账户标识建立关联关系的第二账户的账户标识;In the embodiment of this specification, based on the account identifier of the first account, the account identifier of the second account that is associated with the account identifier of the first account is determined;

根据所述第二账户的账户标识,查找与所述第二账户的账户标识建立对应关系的第二流水数据。According to the account identifier of the second account, second transaction data corresponding to the account identifier of the second account is searched.

下面详细说明如何建立与所述第一账户关联的第二账户。The following describes in detail how to establish a second account associated with the first account.

首先,获取第一账户的账户标识。First, obtain the account ID of the first account.

这里获取第一账户的账户标识的方式包括但不限于:Here, the methods for obtaining the account ID of the first account include but are not limited to:

通过近距离通信方式,从承载第一账户的载体中获取第一账户的账户标识;Obtaining the account identifier of the first account from the carrier carrying the first account through a near field communication method;

通过扫描的方式,从承载第一账户的载体中获取第一账户的账户标识;Obtaining the account identifier of the first account from the carrier carrying the first account by scanning;

通过用户界面接收用户输入的第一账户的账户标识。An account identifier of a first account input by a user is received through a user interface.

其次,根据所述第一账户的账户标识,创建第二账户的账户标识。Next, an account identifier of a second account is created based on the account identifier of the first account.

这里所创建的第二账户的账户标识可以与第一账户的账户标识相同,也可以不相同,这里不做具体限定。The account identifier of the second account created here may be the same as or different from the account identifier of the first account, and this is not specifically limited here.

最后,建立并存储所述第一账户的账户标识与所述第二账户的账户标识之间的关联关系。Finally, an association relationship between the account identifier of the first account and the account identifier of the second account is established and stored.

需要说明的是,针对第一账户可以创建至少一个第二账户,在执行数据同步的时候,可以是虚拟账户与实体账户之间的数据同步,也就是说,本说明书实施例中记载的第一账户和第二账户分别代表实体账户和虚拟账户,而实体账户与虚拟账户之间具备关联关系,至于多少个虚拟账户这里不做限定。It should be noted that at least one second account can be created for the first account. When performing data synchronization, it can be data synchronization between a virtual account and a physical account. That is to say, the first account and the second account recorded in the embodiments of this specification represent a physical account and a virtual account, respectively, and there is an association relationship between the physical account and the virtual account. As for the number of virtual accounts, there is no limit here.

较优地,为了防止用户恶意使用虚拟账户,所述方法还包括:Preferably, in order to prevent users from maliciously using virtual accounts, the method further includes:

在得到所述第二账户的账户标识后,建立所述第二账户的账户标识与用于支付的应用账户之间的关联关系。After obtaining the account identifier of the second account, an association relationship is established between the account identifier of the second account and the application account used for payment.

即在创建虚拟账户(即第二账户)时,与用户签署代扣协议,即建立所述第二账户的账户标识与用于支付的应用账户之间的关联关系,一旦发现第二账户出现恶意透支或者在第一账户与第二账户之间实现数据同步之后发现恶意透支,那么可以从与第二账户的账户标识建立关联关系的用于支付的应用账户中扣除恶意透支的费用。That is, when creating a virtual account (i.e., the second account), a debit agreement is signed with the user, that is, an association relationship is established between the account identification of the second account and the application account used for payment. Once a malicious overdraft is discovered in the second account or a malicious overdraft is discovered after data synchronization is achieved between the first account and the second account, the malicious overdraft fee can be deducted from the application account used for payment that has established an association relationship with the account identification of the second account.

需要说明的是,本说明书实施例中记载的“第一账户”和“第二账户”中的“第一”和“第二”没有特殊含义,仅仅是用来区分账户。进一步,承载第一账户的载体为实体的,例如:IC卡,但是承载第二账户的载体为虚拟的,例如:电子卡片。It should be noted that the terms "first" and "second" in the "first account" and "second account" described in the embodiments of this specification have no special meanings and are merely used to distinguish between the accounts. Furthermore, the first account's carrier is physical, such as an IC card, while the second account's carrier is virtual, such as an electronic card.

步骤707:根据所述第一流水数据和/或所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。Step 707: Synchronize data between the first account and the second account based on the first transaction data and/or the second transaction data.

在本说明书实施例中,根据所述第一流水数据和/或所述第二流水数据,计算得到用于同步的同步数据;In the embodiment of the present specification, synchronization data for synchronization is calculated based on the first pipeline data and/or the second pipeline data;

分别将所述同步数据同步至所述第一账户和所述第二账户。The synchronization data is synchronized to the first account and the second account respectively.

假设在创建第二账户时,根据第一账户对应的余额数据,将该余额数据同步至第二账户中。Assume that when the second account is created, the balance data corresponding to the first account is synchronized to the second account.

若所述同步数据为负数,那么将空分别写入所述第一账户和所述第二账户;并从与所述第二账户关联的用于支付的应用账户中扣除所述负数对应的金额。If the synchronization data is a negative number, then null is written into the first account and the second account respectively; and the amount corresponding to the negative number is deducted from the application account for payment associated with the second account.

较优地,所述方法还包括:Preferably, the method further comprises:

将同步时间、所述第一账户的账户标识、所述第一流水数据发送给服务器,并删除承载所述第一账户的载体中记录的所述第一流水数据;和/或,Sending the synchronization time, the account identifier of the first account, and the first transaction data to the server, and deleting the first transaction data recorded in the carrier carrying the first account; and/or,

将同步时间、所述第二账户的账户标识、所述第二流水数据发送给所述服务器,并删除所述第二流水数据。The synchronization time, the account identifier of the second account, and the second transaction data are sent to the server, and the second transaction data is deleted.

本说明书实施例中记载的所述流水数据包含付款数据、充值数据中的至少一种或者多种。The transaction data described in the embodiments of this specification includes at least one or more of payment data and recharge data.

通过本说明书实施例提供的技术方案,在满足设定的同步条件的情况下,获取第一账户的账户标识和所述第一账户对应的第一流水数据;确定与所述第一账户关联的第二账户对应的第二流水数据;根据所述第一流水数据和/或所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。这样,能够有效保证第一账户与第二账户之间数据一致性。也就是说,假设第一账户是承载在载体中的账户,第二账户为与所述第一账户关联的虚拟的电子账户,那么用户既可以使用第一账户完成交易,也可以使用第二账户完成交易。同时,通过本说明书实施例提供的技术方案,能够保证这两个账户之间数据的一致性,进而提升用户的支付体验。Through the technical solution provided in the embodiments of this specification, when the set synchronization conditions are met, the account identification of the first account and the first transaction data corresponding to the first account are obtained; the second transaction data corresponding to the second account associated with the first account is determined; and data synchronization is performed between the first account and the second account based on the first transaction data and/or the second transaction data. In this way, the data consistency between the first account and the second account can be effectively guaranteed. That is to say, assuming that the first account is an account carried in a carrier, and the second account is a virtual electronic account associated with the first account, the user can use either the first account or the second account to complete the transaction. At the same time, through the technical solution provided in the embodiments of this specification, the consistency of the data between the two accounts can be guaranteed, thereby improving the user's payment experience.

图8为本说明书实施例提供的一种数据同步方法的流程示意图,该数据处理方法如下所示。执行主体可以为客户端,该客户端可以是运行在智能终端中的应用程序APP,智能终端包含但不限于移动智能终端,如智能手机、平板电脑等,还包含计算机、笔记本等其他智能终端。Figure 8 is a flow chart of a data synchronization method provided in an embodiment of this specification. The data processing method is as follows. The execution subject may be a client, which may be an application APP running on a smart terminal. Smart terminals include but are not limited to mobile smart terminals such as smartphones and tablets, and also include other smart terminals such as computers and laptops.

步骤801:获取记载在载体中的第一账户和第一账户中的余额。Step 801: Obtain a first account and a balance in the first account recorded in a carrier.

在本说明书实施例中,第一账户可以为发行载体的主体所提供,并被写入到载体中,第一账户的形式可以包含数字、字母及其组合,在此不做具体限定。载体的形式可以包含但限于实体卡、纽扣卡等,在此不作具体限定。In the embodiments of this specification, the first account may be provided by the entity issuing the medium and written into the medium. The format of the first account may include numbers, letters, and combinations thereof, without specific limitation herein. The form of the medium may include, but is not limited to, a physical card, a button card, etc., without specific limitation herein.

在本说明书实施例中,可以读取载体中的数字,以形成第一账户中的余额。例如:该载体中包含近距离无线通讯NFC(Near Field Communication,缩写:NFC)模块,支持NFC功能的终端设备可以在交易发生时向NFC模块中写入数字,并能够读取NFC模块中的数字。In the embodiments of this specification, the numbers in the carrier can be read to form the balance in the first account. For example, the carrier includes a Near Field Communication (NFC) module, and a terminal device supporting the NFC function can write numbers to the NFC module and read numbers from the NFC module when a transaction occurs.

本说明书实施例可以提供但不限于如下实现方式:The embodiments of this specification may provide but are not limited to the following implementations:

1、向载体发射射频信号,使载体根据射频信号发送响应信号;1. Transmitting a radio frequency signal to the carrier, causing the carrier to send a response signal according to the radio frequency signal;

接收响应信号;并从响应信号中解析出第一账户和第一账户中的余额。receiving a response signal; and parsing the response signal to obtain the first account and the balance in the first account.

在本说明书实施例中,当用户通过载体中的第一账户或客户端中的第二账户发生收付数据,可将载体与客户端所在设备贴近,客户端通过NFC模块向载体发射射频信号即为向载体发射近距离无线射频信号,载体中的NFC模块响应而生成响应信号,响应信号中携带第一账户和第一账户中的余额。客户端通过NFC模块接收响应信号,并利用解析模块从中解析出第一账户和第一账户中的余额。In the embodiments of this specification, when a user makes a payment or receipt through a first account in a carrier or a second account in a client, the user brings the carrier and the client device close together. The client transmits a radio frequency signal to the carrier via the NFC module, i.e., transmits a short-range wireless radio frequency signal to the carrier. The NFC module in the carrier responds by generating a response signal that carries the first account and the balance in the first account. The client receives the response signal via the NFC module and uses a parsing module to parse the signal to determine the first account and the balance in the first account.

若载体中包含可接收并响应其他频率射频信号的响应模块,则操作客户端所在设备发射可被响应的其他频率射频信号。因此,在满足客户端所在设备发射的射频信号可被载体响应的前提下,客户端发射的射频信号包含但不限于近距离无线射频信号,在此不作限定。If the carrier includes a response module capable of receiving and responding to RF signals of other frequencies, the client device is operated to transmit RF signals of other frequencies that can be responded to. Therefore, provided that the RF signals transmitted by the client device can be responded to by the carrier, the RF signals transmitted by the client include, but are not limited to, short-range wireless RF signals, and are not limited here.

2、接收用户输入的第一账户;并基于第一账户,从服务器中获取第一账户中的余额。2. Receive a first account number input by the user; and based on the first account number, obtain the balance in the first account number from the server.

在本说明书实施例中,若与所述载体之间发生收付数据的收付设备向第一账户写入最新的余额后,还可以将第一账户中的余额存储在服务器中,则客户端可以通过用户输入的第一账户在服务器中检索,查找第一账户的最新余额。In an embodiment of the present specification, if the payment and collection device that receives and pays data with the carrier writes the latest balance to the first account, it can also store the balance in the first account in the server. The client can search the server through the first account entered by the user to find the latest balance of the first account.

3、扫描载体,得到第一账户;并基于第一账户,从服务器中获取第一账户中的余额。3. Scan the carrier to obtain the first account; and based on the first account, obtain the balance in the first account from the server.

在本说明书实施例中,若第一账户显示在载体表面,则可以利用客户端扫描载体表面,获得第一账户。此时,第一账户的存在形式可以包含但不限于:突出显示,以使得客户端通过图形识别的方式获取第一账户;或者,第一账户记载在二维码或条形码等识别码中,以使得客户端扫描并解析识别码,获得第一账户。In the embodiments of this specification, if the first account is displayed on the surface of the carrier, the client can scan the carrier surface to obtain the first account. In this case, the first account may be displayed in a prominent manner, allowing the client to obtain the first account through graphic recognition; or the first account may be recorded in an identification code such as a QR code or barcode, allowing the client to scan and interpret the identification code to obtain the first account.

从服务器中获取第一账户中的余额,可参考上文第二种获取第一账户中余额的方法,在此不再赘述。To obtain the balance in the first account from the server, refer to the second method for obtaining the balance in the first account above, which will not be repeated here.

步骤803:根据第一账户,在客户端创建第一账户关联的第二账户,并将第一账户中的余额写入第二账户中。Step 803: Based on the first account, a second account associated with the first account is created on the client, and the balance in the first account is written into the second account.

在本说明书实施例中,若第一账户视为记载在载体中的实体账户,第二账户可以为实体账户关联的虚拟账户。虚拟账户可以以用户图形界面的形式存储在客户端,在用户图形界面可以显示虚拟账户和虚拟账户中的余额。用户图形界面提供界面对象,通过操作界面对象,可以处理收付业务。例如,界面对象包含二维码生成对象,点击二维码生成对象,可以生成支付二维码,支付二维码用于收付业务。In the embodiments of this specification, if the first account is considered a physical account recorded in a carrier, the second account can be a virtual account associated with the physical account. The virtual account can be stored on the client in the form of a graphical user interface, which can display the virtual account and the balance in the virtual account. The graphical user interface provides interface objects, and by operating the interface objects, payment transactions can be processed. For example, the interface objects include a QR code generation object. Clicking the QR code generation object can generate a payment QR code, which is used for payment transactions.

在本说明书实施例中,在客户端创建第二账户之后,客户端可以将第二账户及第一账户中的余额发送到服务器。同时,当后续第二账户发生收付数据之后,客户端可将收付数据发送给服务器进行存储,这可以避免增加客户端的存储负担,而且在后续第一账户和第二账户进行余额同步过程中,可以方便地从服务器中获取第二账户发生的收付数据和余额。In the embodiments of this specification, after a client creates a second account, the client can send the second account and the balance in the first account to the server. Furthermore, when subsequent payment and receipt data is generated in the second account, the client can send this data to the server for storage. This avoids increasing the client's storage burden and allows convenient access to the second account's payment and receipt data and balance from the server during subsequent balance synchronization between the first and second accounts.

在本说明书实施例中,根据第一账户,在客户端创建第一账户关联的第二账户,可以包括但不限于:In the embodiment of this specification, based on the first account, creating a second account associated with the first account on the client may include but is not limited to:

在客户端创建与第一账户相同的第二账户,将与第一账户相同的第二账户确定为第一账户关联的第二账户。在这种情况下,第一账户和第二账户的标识信息相同,例如具有相同的字母、数字及其组合。A second account identical to the first account is created on the client, and the second account identical to the first account is determined as the second account associated with the first account. In this case, the identification information of the first account and the second account is the same, for example, having the same letters, numbers, or combinations thereof.

第二账户与第一账户也可以不相同,而是根据关联规则形成关联关系。The second account and the first account may also be different, but an association relationship is formed according to an association rule.

利用本说明实施例提供的账户的处理方法,用户可以随时创建与第一账户关联的第二账户,从而既可以利用载体中的第一账户发生收付数据,也可以利用客户端中的第二账户发生收付数据,可选择度高。尤其是,即使在消费时,遇到载体或客户端中的其中之一未随身携带、或者无法使用,也可以使用载体或客户端中的另一个进行消费支付,提升用户支付体验。Using the account processing method provided in this embodiment, users can create a second account associated with a first account at any time. This allows them to use either the first account in the carrier or the second account in the client to process payments, providing a high level of choice. In particular, even if one of the carrier or client is not available or cannot be used during a purchase, the other can still be used to make payments, enhancing the user's payment experience.

图9为本说明书实施例提供的一种数据同步方法的流程示意图,该方法如下所示,旨在实现第一账户和第一账户关联的第二账户之间的余额同步。该账户的处理方法的执行主体可以为客户端,客户端可以是运行在智能终端中的应用程序APP,智能终端包含但不限于移动智能终端,如智能手机、平板电脑等,还包含计算机、笔记本等其他智能终端。Figure 9 is a flow chart of a data synchronization method provided in an embodiment of this specification. The method, as shown below, aims to synchronize the balances of a first account and a second account associated with the first account. The execution entity of this account processing method may be a client, which may be an application running on a smart terminal. Smart terminals include, but are not limited to, mobile smart terminals such as smartphones and tablets, as well as other smart terminals such as computers and laptops.

步骤901:获取记载在载体中的第一账户和第一账户中的余额。Step 901: Obtain a first account and a balance in the first account recorded in a carrier.

获取记载在载体中的第一账户和第一账户中的余额的方式,可以参考上文步骤801的内容,在此不再赘述。The method of obtaining the first account recorded in the carrier and the balance in the first account can refer to the content of step 801 above, which will not be repeated here.

在本说明书实施例中,为了使用户在通过第二账户发生收付数据之后,能够及时将第二账户发生的收付数据同步到第一账户,在获取记载在载体中的第一账户和第一账户中的余额之前,处理方法还包括:In the embodiment of this specification, in order to enable the user to promptly synchronize the payment and receipt data generated in the second account to the first account after the user generates payment and receipt data through the second account, before obtaining the first account and the balance in the first account recorded in the carrier, the processing method further includes:

若第二账户中发生至少一个收付数据,则发射提醒信号,提醒信号用于提醒用户提供与第二账户关联的第一账户。这可以给用户带来方便,减轻用户的记忆负担。If at least one payment or receipt data occurs in the second account, a reminder signal is transmitted, which is used to remind the user to provide the first account associated with the second account. This can bring convenience to the user and reduce the user's memory burden.

在收到提醒信号后,用户可以采用上文步骤801介绍的三种获取方式,将第一账户和第一账户中的余额提供给客户端。After receiving the reminder signal, the user may provide the first account and the balance in the first account to the client by using the three obtaining methods described in step 801 above.

在本说明书实施例中,该提醒信号的形式可以包含但不限于:语音、声音、振动、图形、文字等形式,在此不作具体限定。In the embodiments of this specification, the form of the reminder signal may include but is not limited to: voice, sound, vibration, graphics, text, etc., and is not specifically limited here.

在本说明书实施例中,第二账户中发生至少一个收付数据,则发射提醒信号,可以包含以下至少一种或多种:In the embodiment of this specification, when at least one payment or receipt data occurs in the second account, the reminder signal is transmitted, which may include at least one or more of the following:

每发生一个收付数据,则发射提醒信号;Every time a payment or receipt data occurs, a reminder signal is emitted;

发生设定数量的收付数据之后,则发射提醒信号;After a set number of payment and receipt data occurs, a reminder signal is emitted;

定期发射提醒信号;或transmit reminder signals at regular intervals; or

若第二账户中因发生收付数据而导致余额为0或者余额不足,则发射提醒信号。If the balance in the second account is 0 or insufficient due to the occurrence of payment data, a reminder signal is transmitted.

步骤903:确定所述第一账户关联的第二账户发生的至少一个收付数据和第二账户中的余额,收付数据包含各消费金额和充值金额中的一种或两种。Step 903: Determine at least one payment and receipt data of the second account associated with the first account and the balance in the second account, where the payment and receipt data includes one or both of consumption amounts and recharge amounts.

在本说明书实施例中,确定所述第一账户关联的第二账户发生的至少一个收付数据和第二账户中的余额,包括:In this embodiment of the present specification, determining at least one payment and receipt data of a second account associated with the first account and the balance in the second account includes:

确定第一账户关联的第二账户;Determining a second account associated with the first account;

确定第二账户发生的至少一个收付数据和第二账户中的余额。At least one payment data generated by the second account and the balance in the second account are determined.

在本说明书实施例中,确定第一账户关联的第二账户的方法可以包括:In an embodiment of this specification, a method for determining a second account associated with a first account may include:

在获取记载在载体中的第一账户和第一账户的余额之后,将运行于客户端的各第二账户中,与第一账户相同的第二账户确定为第一账户关联的第二账户。After obtaining the first account and the balance of the first account recorded in the carrier, a second account identical to the first account among the second accounts running on the client is determined as a second account associated with the first account.

确定第一账户关联的第二账户的方法还可以包括:The method for determining the second account associated with the first account may further include:

向服务器发送第一账户,使服务器确定与第一账户相同的第二账户;sending the first account to the server, so that the server determines a second account that is identical to the first account;

将从服务器获取的与第一账户相同的第二账户确定为第一账户关联的第二账户。A second account obtained from the server and identical to the first account is determined as the second account associated with the first account.

确定第一账户关联的第二账户的方法还可以包括:The method for determining the second account associated with the first account may further include:

若基于上文步骤803创建的第二账户与第一账户不同,则根据第一账户与第二账户的关联关系,从本地或服务器中获取与第一账户关联的第二账户。If the second account created based on the above step 803 is different from the first account, the second account associated with the first account is obtained from the local or server according to the association relationship between the first account and the second account.

在本说明书实施例中,存储第二账户的客户端与后台服务器可以随时建立连接关系,因此确定第二账户发生的至少一个收付数据和第二账户中的余额,可以包括:In the embodiment of this specification, the client storing the second account can establish a connection with the backend server at any time, so determining at least one payment data of the second account and the balance in the second account may include:

通过客户端向服务器发送收付数据获取请求,收付数据获取请求用于请求服务器发送第二账户发生的各收付数据和第二账户中的余额;Sending a payment data acquisition request to the server through the client, where the payment data acquisition request is used to request the server to send payment data of the second account and the balance in the second account;

接收服务器发送的第二账户发生的各收付数据和第二账户中的余额。The receiving server sends various payment and receipt data of the second account and the balance in the second account.

在这种情形下,第二账户发生的各收付数据存储在服务器中,可以节省本地客户端的存储负担。In this case, the payment and receipt data of the second account are stored in the server, which can save the storage burden of the local client.

在本说明书实施例中,确定第二账户发生的至少一个收付数据,包括如下两种情形:In the embodiment of this specification, determining at least one payment data of the second account includes the following two situations:

1、确定第二账户在相邻更新周期中发生的至少一个收付数据,更新周期为相邻两次将第一账户和第二账户中的余额更新为同一更新余额的时间区间。此时,向服务器发送的收付数据获取请求用于请求服务器发送相邻更新周期中发生的各收付数据,和第二账户中的最新余额。基于收付数据获取请求,服务器将从最新一次金额更新到当前这一相邻更新周期中发生的各收付数据发送给客户端。1. Determine at least one payment and receipt data item for the second account in adjacent update cycles. An update cycle is defined as the time interval between two consecutive updates of the balances in the first and second accounts to the same updated balance. In this case, a payment and receipt data acquisition request is sent to the server, requesting the server to send each payment and receipt data item from the adjacent update cycles and the latest balance in the second account. Based on the payment and receipt data acquisition request, the server sends each payment and receipt data item from the most recently updated balance to the current adjacent update cycle to the client.

2、确定第二账户实时发生的收付数据。参考上文步骤501所称第二账户中每发生一次收付数据,便获取第一账户中的余额。2. Determine the real-time payment and receipt data of the second account. With reference to step 501 above, each time payment and receipt data occurs in the second account, the balance in the first account is obtained.

步骤905:基于第一账户中发生收付数据的假设条件,将第一账户中的余额和第二账户中的余额更新为同一更新余额。Step 905: Based on the assumption that payment and receipt data occurs in the first account, the balance in the first account and the balance in the second account are updated to the same updated balance.

若根据步骤903,若确定的第二账户发生的收付数据为第二账户在相邻更新周期中发生的至少一个收付数据,则基于所述第一账户中发生所述收付数据的假设条件,将所述第一账户中的余额和第二账户中的余额更新为同一更新余额,包括:If, according to step 903, the payment and receipt data determined to have occurred in the second account is at least one payment and receipt data occurring in the second account in adjacent update cycles, then, based on the assumption that the payment and receipt data occurred in the first account, updating the balance in the first account and the balance in the second account to the same updated balance includes:

基于第一账户在相邻更新周期中发生各收付数据的假设条件,将第一账户中的余额和第二账户中的余额更新为同一更新余额。Based on an assumption that various payment and receipt data occur in the first account in adjacent update cycles, the balance in the first account and the balance in the second account are updated to the same updated balance.

由于第一账户和第二账户之间具有统一性,因此发生在第二账户中的收付数据可等同于发生在第一账户,因此可以设定第一账户在相邻更新周期中发生各收付数据的假设条件,来确定同一更新余额。Since the first account and the second account are unified, the payment and receipt data in the second account can be equivalent to those in the first account. Therefore, the assumption conditions for the payment and receipt data in the first account in adjacent update cycles can be set to determine the same updated balance.

例如,参照表1所示:For example, refer to Table 1:

表1Table 1

在从最近一次更新到当前之间的相邻更新周期内,第二账户所发生的收付数据包含:充值金额10元;消费金额14元,第二账户的当前余额16元,而第一账户的当前余额为17元。In the adjacent update cycle from the most recent update to the current one, the payment and receipt data of the second account include: recharge amount of 10 yuan; consumption amount of 14 yuan, the current balance of the second account is 16 yuan, and the current balance of the first account is 17 yuan.

站在第一账户和第二账户统一的角度,基于第一账户中发生收付数据的假设条件,将第一账户中的余额和第二账户中的余额更新为同一更新余额,包括:From the perspective of unifying the first account and the second account, based on the assumption that payment and receipt data occurs in the first account, updating the balances in the first account and the second account to the same updated balance includes:

基于第一账户中发生收付数据的假设条件,计算第一账户中的余额在发生收付数据之后的更新余额;Based on the assumption that payment data occurs in the first account, calculating an updated balance in the first account after the payment data occurs;

将第一账户中的余额和第二账户中的余额更新为更新余额。The balance in the first account and the balance in the second account are updated to the updated balance.

根据各收付数据的种类不同,计算第一账户中的余额在发生收付数据之后的更新余额,包括:Calculating the updated balance of the first account after the payment data is generated based on the type of each payment data includes:

若收付数据中包含至少一个充值金额,则对第一账户中的余额加上各充值金额;If the payment data includes at least one recharge amount, then add the recharge amount to the balance in the first account;

若收付数据中包含至少一个消费金额,则对第一账户中的余额减去各消费金额;If the payment data contains at least one consumption amount, subtract the consumption amount from the balance in the first account;

将得到的处理结果作为更新余额。The obtained processing result is used as the updated balance.

例如,参考表1,假设第二账户所发生的收付数据发生于第一账户,则计算第一账户中的当前余额为17-14+10=13元,并确定更新余额为13元。之后,将第一账户和第二账户的中余额更新为13元。For example, referring to Table 1, assuming that the payment data of the second account occurs in the first account, the current balance of the first account is calculated to be 17-14+10=13 yuan, and the updated balance is determined to be 13 yuan. Then, the balance of the first account and the second account is updated to 13 yuan.

以上表1示例仅供参考,在具体应用场景发生的收付数据具有其他多种情形,不作具体限定。The examples in Table 1 above are for reference only. The payment and receipt data in specific application scenarios may have other situations and are not specifically limited.

这种确定第二账户发生的至少一个收付数据的方法尤其可适用于记载第一账户的载体无法实时连接服务器、或存储第二账户的客户端使用频率较大的情形,可以解决第一账户所在载体所存在的连接问题。This method of determining at least one payment and receipt data of the second account is particularly applicable to situations where the carrier recording the first account cannot connect to the server in real time, or the client storing the second account is used frequently, and can solve the connection problem existing in the carrier where the first account is located.

这样,在每次对第一账户和第二账户的余额进行同步更新时,可以同时处理多个收付数据,处理效率更加高效。In this way, each time the balances of the first account and the second account are synchronously updated, multiple payment and receipt data can be processed simultaneously, and the processing efficiency is more efficient.

若根据步骤903,确定第二账户发生的收付数据为实时收付数据,则可以参考表一所举示例,来确定第一账户和第二账户的同一更新,在此不再赘述。If, according to step 903, it is determined that the payment and receipt data of the second account is real-time payment and receipt data, the same update of the first account and the second account can be determined by referring to the example in Table 1, which will not be repeated here.

在本说明书实施例中,在确定更新余额之后,客户端可以直接将第二账户中的余额更新为更新余额。In the embodiment of the present specification, after determining the updated balance, the client may directly update the balance in the second account to the updated balance.

参考上文步骤801中获取记载在载体中的第一账户中的余额的三种方式,将第一账户中的余额更新为更新余额的方式包括:Referring to the three methods for obtaining the balance of the first account recorded in the carrier in step 801 above, the methods for updating the balance of the first account to the updated balance include:

1、若载体与客户端之间可以通过射频信号通信,则可以将NFC模块中记载的第一账户的余额更新为更新余额。例如在载体与客户端所在设备贴近时,可以将载体中的NFC模块中第一账户的余额修改为更新余额。1. If the carrier and the client can communicate via radio frequency signals, the balance of the first account recorded in the NFC module can be updated to the updated balance. For example, when the carrier and the client device are close together, the balance of the first account recorded in the NFC module of the carrier can be modified to the updated balance.

2、若载体通过与其发生收付数据的收付设备与服务器连接,则客户端请求服务器将更新余额发送至载体,之后与载体发生收付数据的设备向载体中写入更新余额。例如,在载体与公交POS机、收银POS机等收付设备贴近时,该公交POS机、收银POS机等收付设备可修改记载在载体中的第一账户的余额为更新余额。2. If the carrier is connected to the server via a payment device with which it receives or receives payment data, the client requests the server to send the updated balance to the carrier. The device then writes the updated balance to the carrier. For example, when the carrier is in close proximity to a payment device such as a public transportation POS terminal or a cash register POS terminal, the POS terminal or cash register POS terminal can modify the balance of the first account recorded in the carrier to the updated balance.

将第一账户中的余额更新为更新余额的第一种方式,对用户来说,可以随时随地进行操作,操作便利性好。Updating the balance in the first account is the first way of updating the balance. For the user, the operation can be performed anytime and anywhere, and the operation is convenient.

使用本说明书实施例提出的账户的处理方法,可以将第一账户和第二账户中的余额进行同步,实现第一账户和第二账户的统一。By using the account processing method proposed in the embodiments of this specification, the balances in the first account and the second account can be synchronized, thereby achieving the unification of the first account and the second account.

这尤其可以适用于但不限于记载第一账户的载体无法连接服务器,或者载体不能实时连接至服务器的情形。This is particularly applicable to, but not limited to, situations where the carrier recording the first account is unable to connect to the server, or the carrier cannot connect to the server in real time.

图10为本说明书实施例提出的一种数据同步方法的流程示意图。该处理方法如下所示。该处理方法的执行主体为服务器。该方法尤其适用于但不限于记载第一账户的载体可以方便或实施连接服务器。FIG10 is a flow chart of a data synchronization method proposed in an embodiment of this specification. The processing method is as follows. The execution subject of the processing method is a server. The method is particularly applicable to, but not limited to, the carrier recording the first account can facilitate or implement connection to the server.

步骤1001:接收第一账户和第一账户关联的第二账户中的至少一个账户发生的收付数据。Step 1001: Receive payment and receipt data of at least one of a first account and a second account associated with the first account.

第一账户中发生的收付数据为通过客户端从记载第一账户的载体中获取第一账户时所确定,收付数据包含充值金额、消费金额。The payment and receipt data generated in the first account is determined when the client obtains the first account from the carrier recording the first account, and the payment and receipt data includes the recharge amount and the consumption amount.

参考上文步骤803中获取记载在载体中的第一账户和第一账户中的余额的第二种方式,服务器可以通过与载体之间发生收付数据的收付设备接收第一账户发生的收付数据。服务器可以直接从存储第二账户的客户端接收第二账户发生的收付数据。Referring to the second method for obtaining the first account and the balance in the first account recorded in step 803 above, the server can receive the payment data of the first account through the payment device that exchanges payment data with the carrier. The server can also receive the payment data of the second account directly from the client that stores the second account.

步骤1003:将第一账户中的余额和第二账户中的余额均更新为发生收付数据之后的同一更新余额。Step 1003: Update the balance in the first account and the balance in the second account to the same updated balance after the payment and receipt data occurs.

其中,第一账户中的更新余额是通过收付设备写入到载体中。The updated balance in the first account is written into the carrier through the payment device.

在本说明书实施例中,在接收第一账户和第一账户关联的第二账户中的至少一个账户发生的收付数据之后,处理方法还可以包括:In the embodiment of this specification, after receiving payment data generated by the first account and at least one of the second accounts associated with the first account, the processing method may further include:

确定在相邻更新周期中接收的至少一个收付数据,更新周期为相邻两次将第一账户和第二账户中的余额更新为同一更新余额的时间区间;Determining at least one payment and receipt data received in adjacent update cycles, where an update cycle is a time interval between two adjacent updates of the balances in the first account and the second account to the same updated balance;

将第一账户中的余额和第二账户中的余额均更新为发生收付数据之后的同一更新余额,包括:The balance in the first account and the balance in the second account are updated to the same updated balance after the payment data is generated, including:

将第一账户中的余额和第二账户中的余额均更新为在相邻更新周期中发生的收付数据之后的同一更新余额。The balance in the first account and the balance in the second account are both updated to the same updated balance after the payment and receipt data occurs in adjacent update cycles.

在这种情况下,可以参考上文步骤905中的内容,将第一账户和第二账户中的其中一个账户确定为基准账户,假设该基准账户所发生的收付数据也发生在另一个账户,从而确定一个更新账户。In this case, referring to the content in step 905 above, one of the first account and the second account can be determined as the base account, assuming that the payment and receipt data of the base account also occurs in the other account, thereby determining an updated account.

此时,每次更新可以同时处理多个收付数据,提高处理效率。At this time, each update can process multiple payment and receipt data at the same time, improving processing efficiency.

在本说明书实施例中,将第一账户中的余额和第二账户中的余额均更新为发生收付数据之后的同一更新余额,还可以包括:In the embodiment of this specification, updating the balance in the first account and the balance in the second account to the same updated balance after the payment data is generated may further include:

在每接收一个收付数据时,将第一账户中的余额和第二账户中的余额均更新为发生所述收付数据之后的同一更新余额。Each time a payment data is received, the balance in the first account and the balance in the second account are updated to the same updated balance after the payment data is generated.

在本说明书实施例中,该处理方法还可以包括:In the embodiments of this specification, the processing method may further include:

若接收到第一账户的收付数据小于第二账户的余额,则向运行第二账户的客户端发送提醒信息,提醒信息用于告知用户余额不足。同时,服务器可以通知收付设备账户余额不足,无法完成扣款。If the payment data received from the first account is less than the balance in the second account, a reminder message is sent to the client running the second account to inform the user of the insufficient balance. At the same time, the server can notify the payment device that the account balance is insufficient and the deduction cannot be completed.

本说明书实施例提供另一种实现第一账户和第二账户中的余额同步更新至更新余额的技术手段,保持第一账户和第二账户中的余额一致。The embodiments of this specification provide another technical means for synchronously updating the balances in the first account and the second account to the updated balances, thereby keeping the balances in the first account and the second account consistent.

图11为本说明书实施例提供的一种账户创建设备的结构示意图。该账户创建设备包括:获取单元1101、创建单元1102和存储单元1103,其中:Figure 11 is a schematic diagram of the structure of an account creation device provided in an embodiment of this specification. The account creation device includes: an acquisition unit 1101, a creation unit 1102 and a storage unit 1103, wherein:

获取单元1101,通过设定的方式从指定载体中获取第一账户的账户标识;The acquiring unit 1101 acquires the account identifier of the first account from the designated carrier in a set manner;

创建单元1102,根据所述第一账户的账户标识,创建第二账户的账户标识;A creating unit 1102 creates an account identifier for a second account based on the account identifier of the first account;

存储单元1103,建立并存储所述第一账户的账户标识与所述第二账户的账户标识之间的映射关系。The storage unit 1103 establishes and stores a mapping relationship between the account identifier of the first account and the account identifier of the second account.

在本说明书的另一个实施例中,所述获取单元1101通过设定的方式从指定载体中获取第一账户的账户标识,包括:In another embodiment of the present specification, the acquiring unit 1101 acquires the account identifier of the first account from the designated carrier in a set manner, including:

通过近距离通信技术与指定载体建立数据通道,并通过所述数据通道从所述指定载体中获取第一账户的账户标识。A data channel is established with a designated carrier through a near field communication technology, and an account identifier of the first account is obtained from the designated carrier through the data channel.

在本说明书的另一个实施例中,所述获取单元1101通过设定的方式从指定载体中获取第一账户的账户标识,包括:In another embodiment of the present specification, the acquiring unit 1101 acquires the account identifier of the first account from the designated carrier in a set manner, including:

通过扫描的方式从指定载体中获取第一账户的账户标识。The account identifier of the first account is obtained from the designated carrier by scanning.

在本说明书的另一个实施例中,所述存储单元1103,在得到所述第二账户的账户标识后,建立并存储所述第二账户的账户标识与用于支付的应用账户之间的关联关系。In another embodiment of the present specification, after obtaining the account identifier of the second account, the storage unit 1103 establishes and stores an association relationship between the account identifier of the second account and the application account used for payment.

在本说明书的另一个实施例中,所述指定载体包含支持近距离通信技术的卡式装置、包含所述第一账户的账户标识的第二终端设备、包含所述第一账户的账户标识的应用客户端中的至少一种或者多种。In another embodiment of the present specification, the designated carrier includes at least one or more of a card-type device supporting near-field communication technology, a second terminal device including the account identification of the first account, and an application client including the account identification of the first account.

在本说明书的另一个实施例中,所述第二账户包含虚拟账户、电子账户中的一种。In another embodiment of the present specification, the second account includes one of a virtual account and an electronic account.

需要说明的是,本说明书实施例中所记载的账户创建设备可以通过软件方式实现,也可以通过硬件方式实现,这里不做具体限定。It should be noted that the account creation device described in the embodiments of this specification can be implemented by software or hardware, and is not specifically limited here.

基于同一个发明构思,本说明书实施例还提供一种账户创建设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:Based on the same inventive concept, an embodiment of this specification further provides an account creation device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to execute the following steps:

通过设定的方式从指定载体中获取第一账户的账户标识;Obtaining the account identifier of the first account from the specified carrier in a set manner;

根据所述第一账户的账户标识,创建第二账户的账户标识;Creating an account identifier for a second account based on the account identifier of the first account;

建立并存储所述第一账户的账户标识与所述第二账户的账户标识之间的映射关系。A mapping relationship between the account identifier of the first account and the account identifier of the second account is established and stored.

其中,处理器的其他功能还可以参见上述实施例中记载的内容,这里不再一一赘述。Among them, other functions of the processor can also refer to the contents recorded in the above embodiments, which will not be repeated here.

基于同一个发明构思,本说明书实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括与电子设备结合使用的程序,程序可被处理器执行以完成以下步骤:Based on the same inventive concept, an embodiment of this specification further provides a computer-readable storage medium, which includes a program for use in conjunction with an electronic device. The program can be executed by a processor to complete the following steps:

通过设定的方式从指定载体中获取第一账户的账户标识;Obtaining the account identifier of the first account from the specified carrier in a set manner;

根据所述第一账户的账户标识,创建第二账户的账户标识;Creating an account identifier for a second account based on the account identifier of the first account;

建立并存储所述第一账户的账户标识与所述第二账户的账户标识之间的映射关系。A mapping relationship between the account identifier of the first account and the account identifier of the second account is established and stored.

其中,处理器的其他功能还可以参见上述实施例中记载的内容,这里不再一一赘述。Among them, other functions of the processor can also refer to the contents recorded in the above embodiments, which will not be repeated here.

图12为本说明书实施例提供的一种账户充值设备的结构示意图。所述账户充值设备包括:建立单元1201和充值单元1202,其中:Figure 12 is a schematic diagram of the structure of an account recharge device provided in an embodiment of this specification. The account recharge device includes: an establishment unit 1201 and a recharge unit 1202, wherein:

建立单元1201,通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道;An establishing unit 1201 establishes a data channel with a designated carrier including an account identifier of a first account through a near field communication technology;

充值单元1202,通过所述数据通道将第二账户的充值数据写入所述指定载体中,以实现为所述第一账户进行充值。The recharging unit 1202 writes the recharging data of the second account into the designated carrier through the data channel to realize recharging for the first account.

在本说明书的另一个实施例中,所述账户充值设备还包括:生成单元1203,其中:In another embodiment of the present specification, the account recharging device further includes: a generating unit 1203, wherein:

所述生成单元1203,利用用于支付的应用账户向第二账户执行转账操作,生成第二账户的充值数据。The generating unit 1203 performs a transfer operation on the second account using the application account used for payment to generate recharge data of the second account.

在本说明书的另一个实施例中,所述指定载体包含支持近距离通信技术的卡式装置、包含所述第一账户的账户标识的第二终端设备、包含所述第一账户的账户标识的应用客户端中的至少一种或者多种。In another embodiment of the present specification, the designated carrier includes at least one or more of a card-type device supporting near-field communication technology, a second terminal device including the account identification of the first account, and an application client including the account identification of the first account.

需要说明的是,本说明书实施例中所记载的账户充值设备可以通过软件方式实现,也可以通过硬件方式实现,这里不做具体限定。It should be noted that the account recharging device described in the embodiments of this specification can be implemented by software or hardware, and no specific limitation is made here.

基于同一个发明构思,本说明书实施例提供一种账户充值设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:Based on the same inventive concept, an embodiment of this specification provides an account recharging device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to execute the following steps:

通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道;establishing a data channel with a designated carrier including the account identifier of the first account through a near field communication technology;

通过所述数据通道将第二账户的充值数据写入所述指定载体中,以实现为所述第一账户进行充值。The recharge data of the second account is written into the designated carrier through the data channel to realize recharging the first account.

其中,处理器的其他功能还可以参见上述实施例中记载的内容,这里不再一一赘述。Among them, other functions of the processor can also refer to the contents recorded in the above embodiments, which will not be repeated here.

基于同一个发明构思,本说明书实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括与电子设备结合使用的程序,程序可被处理器执行以完成以下步骤:Based on the same inventive concept, an embodiment of this specification further provides a computer-readable storage medium, which includes a program for use in conjunction with an electronic device. The program can be executed by a processor to complete the following steps:

通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道;establishing a data channel with a designated carrier including the account identifier of the first account through a near field communication technology;

通过所述数据通道将第二账户的充值数据写入所述指定载体中,以实现为所述第一账户进行充值。The recharge data of the second account is written into the designated carrier through the data channel to realize recharging the first account.

图13为本说明书实施例提供的一种账户充值设备的结构示意图。所述账户充值设备包括:接收单元1301和处理单元1302,其中:FIG13 is a schematic diagram of the structure of an account recharge device provided in an embodiment of this specification. The account recharge device includes: a receiving unit 1301 and a processing unit 1302, wherein:

接收单元1301,在通过近距离通信技术与第一终端设备建立数据通道的情况下,接收第一终端设备发送的充值数据;The receiving unit 1301 receives the recharge data sent by the first terminal device when establishing a data channel with the first terminal device through the near field communication technology;

处理单元1302,根据所述充值数据,对第一账户的余额数据进行处理。The processing unit 1302 processes the balance data of the first account according to the recharge data.

在本说明书的另一个实施例中,所述处理单元1302根据所述充值数据,对第一账户的余额数据进行处理,包括:In another embodiment of the present specification, the processing unit 1302 processes the balance data of the first account according to the recharge data, including:

在第一账户的余额数据为零的情况下,将所述充值数据写入所述第一账户中;When the balance data of the first account is zero, writing the recharge data into the first account;

在第一账户的余额数据不为零的情况下,利用所述充值数据,修改所述第一账户的余额数据。When the balance data of the first account is not zero, the balance data of the first account is modified using the recharge data.

需要说明的是,本说明书实施例中所记载的账户充值设备可以通过软件方式实现,也可以通过硬件方式实现,这里不做具体限定。It should be noted that the account recharging device described in the embodiments of this specification can be implemented by software or hardware, and no specific limitation is made here.

基于同一个发明构思,本说明书实施例提供一种账户充值设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:Based on the same inventive concept, an embodiment of this specification provides an account recharging device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to execute the following steps:

在通过近距离通信技术与第一终端设备建立数据通道的情况下,接收第一终端设备发送的充值数据;When a data channel is established with the first terminal device through the near field communication technology, receiving recharge data sent by the first terminal device;

根据所述充值数据,对第一账户的余额数据进行处理。The balance data of the first account is processed according to the recharge data.

其中,处理器的其他功能还可以参见上述实施例中记载的内容,这里不再一一赘述。Among them, other functions of the processor can also refer to the contents recorded in the above embodiments, which will not be repeated here.

基于同一个发明构思,本说明书实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括与电子设备结合使用的程序,程序可被处理器执行以完成以下步骤:Based on the same inventive concept, an embodiment of this specification further provides a computer-readable storage medium, which includes a program for use in conjunction with an electronic device. The program can be executed by a processor to complete the following steps:

在通过近距离通信技术与第一终端设备建立数据通道的情况下,接收第一终端设备发送的充值数据;When a data channel is established with the first terminal device through the near field communication technology, receiving recharge data sent by the first terminal device;

根据所述充值数据,对第一账户的余额数据进行处理。The balance data of the first account is processed according to the recharge data.

图14为本说明书实施例提供的一种数据同步设备的结构示意图。所述数据同步设备包括:获取单元1401、接收单元1402和同步单元1403,其中:FIG14 is a schematic diagram of the structure of a data synchronization device provided by an embodiment of this specification. The data synchronization device includes: an acquisition unit 1401, a receiving unit 1402 and a synchronization unit 1403, wherein:

获取单元1401,通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据;The acquiring unit 1401 acquires the account identifier of the first account and the first transaction data corresponding to the first account from the designated carrier through a near field communication method;

接收单元1402,接收所述第一终端设备发送的所述第二账户的账户标识和所述第二账户对应的第二流水数据;The receiving unit 1402 receives the account identifier of the second account and the second transaction data corresponding to the second account sent by the first terminal device;

同步单元1403,根据所述第一流水数据和所述第二流水数据,确定一个同步周期的同步数据,并将所述同步数据发送给所述第一终端设备,以使所述第二账户对应的数据与所述主账户对应的数据一致。The synchronization unit 1403 determines synchronization data of a synchronization cycle based on the first transaction data and the second transaction data, and sends the synchronization data to the first terminal device to make the data corresponding to the second account consistent with the data corresponding to the main account.

其中,本说明书实施例中记载的数据处理设备可以应用在服务器中,该服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系。Among them, the data processing device described in the embodiments of this specification can be used in a server, and an association relationship is established between the main account contained in the server and the first account contained in the designated carrier and the second account contained in the first terminal device.

在本说明书的另一个实施例中,所述获取单元1401通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据,包括:In another embodiment of the present specification, the acquiring unit 1401 acquires the account identifier of the first account and the first transaction data corresponding to the first account from the designated carrier through short-range communication, including:

通过近距离通信方式与所述指定载体建立数据通道;Establishing a data channel with the designated carrier via short-range communication;

在确定交易发生的情况下,通过所述数据通道从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据。When it is determined that the transaction has occurred, the account identifier of the first account and the first transaction data corresponding to the first account are obtained from the designated carrier through the data channel.

在本说明书的另一个实施例中,所述数据同步设备还包括:发送单元1404,其中:In another embodiment of the present specification, the data synchronization device further includes: a sending unit 1404, wherein:

所述发送单元1404,若所述同步数据为负数,那么向所述第一终端设备发送扣款请求,所述扣款请求用于请求从与所述第二账户关联的用于支付的应用账户中扣除所述负数对应的金额。The sending unit 1404 sends a deduction request to the first terminal device if the synchronization data is a negative number, where the deduction request is used to request to deduct an amount corresponding to the negative number from an application account for payment associated with the second account.

需要说明的是,本说明书实施例中所记载的数据同步设备可以通过软件方式实现,也可以通过硬件方式实现,这里不做具体限定。It should be noted that the data synchronization device described in the embodiments of this specification can be implemented by software or hardware, and no specific limitation is made here.

基于同一个发明构思,本说明书实施例提供一种数据同步设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:Based on the same inventive concept, an embodiment of this specification provides a data synchronization device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to execute the following steps:

通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据;Obtaining an account identifier of a first account and first transaction data corresponding to the first account from the designated carrier through a near field communication method;

接收所述第一终端设备发送的所述第二账户的账户标识和所述第二账户对应的第二流水数据;receiving the account identifier of the second account and second transaction data corresponding to the second account sent by the first terminal device;

根据所述第一流水数据和所述第二流水数据,确定一个同步周期的同步数据,并将所述同步数据发送给所述第一终端设备,以使所述第二账户对应的数据与所述主账户对应的数据一致;determining synchronization data for a synchronization period based on the first transaction data and the second transaction data, and sending the synchronization data to the first terminal device so that data corresponding to the second account is consistent with data corresponding to the primary account;

其中,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系。Among them, an association relationship is established between the main account contained in the server, the first account contained in the designated carrier, and the second account contained in the first terminal device.

其中,处理器的其他功能还可以参见上述实施例中记载的内容,这里不再一一赘述。Among them, other functions of the processor can also refer to the contents recorded in the above embodiments, which will not be repeated here.

基于同一个发明构思,本说明书实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括与电子设备结合使用的程序,程序可被处理器执行以完成以下步骤:Based on the same inventive concept, an embodiment of this specification further provides a computer-readable storage medium, which includes a program for use in conjunction with an electronic device. The program can be executed by a processor to complete the following steps:

通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据;Obtaining an account identifier of a first account and first transaction data corresponding to the first account from the designated carrier through a near field communication method;

接收所述第一终端设备发送的所述第二账户的账户标识和所述第二账户对应的第二流水数据;receiving the account identifier of the second account and second transaction data corresponding to the second account sent by the first terminal device;

根据所述第一流水数据和所述第二流水数据,确定一个同步周期的同步数据,并将所述同步数据发送给所述第一终端设备,以使所述第二账户对应的数据与所述主账户对应的数据一致;determining synchronization data for a synchronization period based on the first transaction data and the second transaction data, and sending the synchronization data to the first terminal device so that data corresponding to the second account is consistent with data corresponding to the primary account;

其中,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系。Among them, an association relationship is established between the main account contained in the server, the first account contained in the designated carrier, and the second account contained in the first terminal device.

图15为本说明书实施例提供的一种数据同步设备的结构示意图。所述数据同步设备包括:建立单元1501和同步单元1502,其中:FIG15 is a schematic diagram of the structure of a data synchronization device provided by an embodiment of this specification. The data synchronization device includes: an establishment unit 1501 and a synchronization unit 1502, wherein:

建立单元1501,通过近距离通信方式与指定载体建立数据通道;Establishing unit 1501, establishing a data channel with a designated carrier via short-range communication;

同步单元1502,通过所述数据通道将第二账户对应的余额数据同步给所述指定载体,以使所述指定载体中包含的第一账户对应的数据与所述第二账户对应的数据一致。The synchronization unit 1502 synchronizes the balance data corresponding to the second account to the designated carrier through the data channel, so that the data corresponding to the first account contained in the designated carrier is consistent with the data corresponding to the second account.

在本说明书的另一个实施例中,所述数据同步设备还包括:接收单元1503和处理单元1504,其中:In another embodiment of the present specification, the data synchronization device further includes: a receiving unit 1503 and a processing unit 1504, wherein:

所述接收单元1503,接收服务器发送的同步数据,所述同步数据是所述服务器根据上述记载的同步方式得到的;The receiving unit 1503 receives synchronization data sent by the server, where the synchronization data is obtained by the server according to the synchronization method described above;

所述处理单元1504,利用所述同步数据修改所述第二账户对应的数据,以使所述第二账户对应的数据与服务器中包含的主账户对应的数据一致;The processing unit 1504 modifies the data corresponding to the second account using the synchronized data so that the data corresponding to the second account is consistent with the data corresponding to the primary account in the server;

其中,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系。Among them, an association relationship is established between the main account contained in the server, the first account contained in the designated carrier, and the second account contained in the first terminal device.

需要说明的是,本说明书实施例中所记载的数据同步设备可以通过软件方式实现,也可以通过硬件方式实现,这里不做具体限定。It should be noted that the data synchronization device described in the embodiments of this specification can be implemented by software or hardware, and no specific limitation is made here.

基于同一个发明构思,本说明书实施例提供一种数据同步设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:Based on the same inventive concept, an embodiment of this specification provides a data synchronization device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to execute the following steps:

通过近距离通信方式与指定载体建立数据通道;Establish a data channel with a designated carrier through short-range communication;

通过所述数据通道将第二账户对应的余额数据同步给所述指定载体,以使所述指定载体中包含的第一账户对应的数据与所述第二账户对应的数据一致。The balance data corresponding to the second account is synchronized to the designated carrier through the data channel, so that the data corresponding to the first account contained in the designated carrier is consistent with the data corresponding to the second account.

其中,处理器的其他功能还可以参见上述实施例中记载的内容,这里不再一一赘述。Among them, other functions of the processor can also refer to the contents recorded in the above embodiments, which will not be repeated here.

基于同一个发明构思,本说明书实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括与电子设备结合使用的程序,程序可被处理器执行以完成以下步骤:Based on the same inventive concept, an embodiment of this specification further provides a computer-readable storage medium, which includes a program for use in conjunction with an electronic device. The program can be executed by a processor to complete the following steps:

通过近距离通信方式与指定载体建立数据通道;Establish a data channel with a designated carrier through short-range communication;

通过所述数据通道将第二账户对应的余额数据同步给所述指定载体,以使所述指定载体中包含的第一账户对应的数据与所述第二账户对应的数据一致。The balance data corresponding to the second account is synchronized to the designated carrier through the data channel, so that the data corresponding to the first account contained in the designated carrier is consistent with the data corresponding to the second account.

图16为本说明书实施例提供的一种数据同步设备的结构示意图。所述数据同步设备包括:建立单元1601、获取单元1602、确定单元1603和同步单元1604,其中:Figure 16 is a schematic diagram of the structure of a data synchronization device provided by an embodiment of this specification. The data synchronization device includes: an establishment unit 1601, an acquisition unit 1602, a determination unit 1603 and a synchronization unit 1604, wherein:

建立单元1601,通过近距离通信方式与指定载体建立数据通道;Establishing unit 1601, establishing a data channel with a designated carrier via a short-range communication method;

获取单元1602,通过所述数据通道获取所述指定载体中包含的第一账户的账户标识和所述第一账户对应的第一流水数据;An acquiring unit 1602 acquires, through the data channel, an account identifier of a first account and first transaction data corresponding to the first account contained in the designated carrier;

确定单元1603,确定与所述第一账户关联的第二账户对应的第二流水数据;The determining unit 1603 determines second transaction data corresponding to a second account associated with the first account;

同步单元1604,根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。The synchronization unit 1604 performs data synchronization between the first account and the second account according to the first transaction data and the second transaction data.

在本说明书的另一个实施例中,所述数据同步设备还包括:发送单元1605,其中:In another embodiment of the present specification, the data synchronization device further includes: a sending unit 1605, wherein:

所述发送单元1605,在建立数据通道之前,若检测到与第一账户关联的第二账户对应的数据发生变化,则发送提示信息,所述提示信息用于提示用户在所述第一账户与所述第二账户之间进行数据同步。Before establishing the data channel, the sending unit 1605 sends a prompt message if it is detected that the data corresponding to the second account associated with the first account has changed. The prompt message is used to prompt the user to synchronize data between the first account and the second account.

在本说明书的另一个实施例中,所述确定单元1603确定与所述第一账户关联的第二账户对应的第二流水数据,包括:In another embodiment of the present specification, the determining unit 1603 determines the second transaction data corresponding to the second account associated with the first account, including:

根据所述第一账户的账户标识,确定与所述第一账户的账户标识建立关联关系的第二账户的账户标识;Determining, based on the account identifier of the first account, the account identifier of a second account associated with the account identifier of the first account;

根据所述第二账户的账户标识,查找与所述第二账户的账户标识建立对应关系的第二流水数据。According to the account identifier of the second account, second transaction data corresponding to the account identifier of the second account is searched.

在本说明书的另一个实施例中,所述同步单元1604根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步,包括:In another embodiment of the present specification, the synchronization unit 1604 synchronizes data between the first account and the second account according to the first transaction data and the second transaction data, including:

根据所述第一流水数据和所述第二流水数据,计算得到用于同步的同步数据;Calculating synchronization data for synchronization based on the first pipeline data and the second pipeline data;

分别将所述同步数据同步至所述第一账户和所述第二账户。The synchronization data is synchronized to the first account and the second account respectively.

在本说明书的另一个实施例中,所述同步单元1604将所述同步数据同步至所述第一账户和所述第二账户,包括:In another embodiment of the present specification, the synchronization unit 1604 synchronizes the synchronization data to the first account and the second account, including:

若所述同步数据为负数,那么将空分别写入所述第一账户和所述第二账户;If the synchronization data is a negative number, write null to the first account and the second account respectively;

从与所述第二账户关联的用于支付的应用账户中扣除所述负数对应的金额。An amount corresponding to the negative number is deducted from an application account for payment associated with the second account.

在本说明书的另一个实施例中,所述数据同步设备还包括:删除单元1606,其中:In another embodiment of the present specification, the data synchronization device further includes: a deleting unit 1606, wherein:

所述删除单元1606,将同步时间、所述第一账户的账户标识、所述第一流水数据发送给服务器,并删除承载所述第一账户的载体中记录的所述第一流水数据;和/或,The deleting unit 1606 sends the synchronization time, the account identifier of the first account, and the first transaction data to the server, and deletes the first transaction data recorded in the carrier carrying the first account; and/or

将同步时间、所述第二账户的账户标识、所述第二流水数据发送给所述服务器,并删除所述第二流水数据。The synchronization time, the account identifier of the second account, and the second transaction data are sent to the server, and the second transaction data is deleted.

在本说明书的另一个实施例中,所述流水数据包含消费数据、充值数据中的至少一种或者多种。In another embodiment of the present specification, the transaction data includes at least one or more of consumption data and recharge data.

需要说明的是,本说明书实施例中所记载的数据同步设备可以通过软件方式实现,也可以通过硬件方式实现,这里不做具体限定。It should be noted that the data synchronization device described in the embodiments of this specification can be implemented by software or hardware, and no specific limitation is made here.

基于同一个发明构思,本说明书实施例提供一种数据同步设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:Based on the same inventive concept, an embodiment of this specification provides a data synchronization device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to cause the processor to execute the following steps:

通过近距离通信方式与指定载体建立数据通道;Establish a data channel with a designated carrier through short-range communication;

通过所述数据通道获取所述指定载体中包含的第一账户的账户标识和所述第一账户对应的第一流水数据;Acquire, through the data channel, an account identifier of a first account and first transaction data corresponding to the first account contained in the designated carrier;

确定与所述第一账户关联的第二账户对应的第二流水数据;Determining second transaction data corresponding to a second account associated with the first account;

根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。Data synchronization is performed between the first account and the second account based on the first transaction data and the second transaction data.

其中,处理器的其他功能还可以参见上述实施例中记载的内容,这里不再一一赘述。Among them, other functions of the processor can also refer to the contents recorded in the above embodiments, which will not be repeated here.

基于同一个发明构思,本说明书实施例还提供一种计算机可读存储介质,该计算机可读存储介质包括与电子设备结合使用的程序,程序可被处理器执行以完成以下步骤:Based on the same inventive concept, an embodiment of this specification further provides a computer-readable storage medium, which includes a program for use in conjunction with an electronic device. The program can be executed by a processor to complete the following steps:

通过近距离通信方式与指定载体建立数据通道;Establish a data channel with a designated carrier through short-range communication;

通过所述数据通道获取所述指定载体中包含的第一账户的账户标识和所述第一账户对应的第一流水数据;Acquire, through the data channel, an account identifier of a first account and first transaction data corresponding to the first account contained in the designated carrier;

确定与所述第一账户关联的第二账户对应的第二流水数据;Determining second transaction data corresponding to a second account associated with the first account;

根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。Data synchronization is performed between the first account and the second account based on the first transaction data and the second transaction data.

通过本说明书实施例提供的技术方案,在终端设备上为指定载体中包含的第一账户创建第二账户,以及利用该终端设备中的第二账户,通过近距离通信方式实现为第一账户充值以及保证第一账户与第二账户之间的数据一致性。也就是说,假设第一账户是承载在指定载体中的账户,第二账户为与所述第一账户关联的虚拟的电子账户,那么用户既可以使用第一账户完成交易,也可以使用第二账户完成交易。同时,通过本说明书实施例提供的技术方案,能够保证这两个账户之间数据的一致性,进而提升用户的支付体验。Through the technical solutions provided in the embodiments of this specification, a second account is created on a terminal device for a first account contained in a designated carrier, and the second account in the terminal device is used to recharge the first account and ensure data consistency between the first and second accounts through short-range communication. In other words, assuming that the first account is an account carried in a designated carrier and the second account is a virtual electronic account associated with the first account, the user can complete the transaction using either the first account or the second account. At the same time, the technical solutions provided in the embodiments of this specification can ensure data consistency between the two accounts, thereby improving the user's payment experience.

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

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

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

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

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

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

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

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

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

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

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

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

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

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。The various embodiments in this specification are described in a progressive manner. Similar parts between the various embodiments can be referred to in conjunction with each other. Each embodiment focuses on the differences between the other embodiments. In particular, the system embodiments are generally similar to the method embodiments, so the description is relatively simple. For relevant parts, refer to the description of the method embodiments.

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

Claims (52)

1.一种账户创建方法,包括:1. An account creation method, comprising: 第一终端设备通过设定的方式从指定载体中获取第一账户的账户标识,所述第一账户为承载在所述指定载体中的账户;The first terminal device obtains the account identifier of the first account from the designated carrier in a set manner, wherein the first account is the account carried in the designated carrier; 所述第一终端设备根据所述第一账户的账户标识,创建第二账户的账户标识,所述第二账户为与所述第一账户关联的虚拟的电子账户;The first terminal device creates an account identifier for a second account based on the account identifier of the first account, wherein the second account is a virtual electronic account associated with the first account; 所述第一终端设备建立并存储所述第一账户的账户标识与所述第二账户的账户标识之间的映射关系,以在所述第一终端设备通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道时,将所述第一账户和第二账户之间同步数据,使得所述第一账户和第二账户数据一致。The first terminal device establishes and stores a mapping relationship between the account identifier of the first account and the account identifier of the second account, so that when the first terminal device establishes a data channel with a designated carrier containing the account identifier of the first account through near-field communication technology, it can synchronize the data between the first account and the second account, so that the data of the first account and the second account are consistent. 2.根据权利要求1所述的账户创建方法,第一终端设备通过设定的方式从指定载体中获取第一账户的账户标识,包括:2. The account creation method according to claim 1, wherein the first terminal device obtains the account identifier of the first account from a designated carrier through a set method, including: 第一终端设备通过近距离通信技术与指定载体建立数据通道,并通过所述数据通道从所述指定载体中获取第一账户的账户标识。The first terminal device establishes a data channel with a designated carrier through near-field communication technology, and obtains the account identifier of the first account from the designated carrier through the data channel. 3.根据权利要求1所述的账户创建方法,第一终端设备通过设定的方式从指定载体中获取第一账户的账户标识,包括:3. The account creation method according to claim 1, wherein the first terminal device obtains the account identifier of the first account from a designated carrier through a set method, including: 第一终端设备通过扫描的方式从指定载体中获取第一账户的账户标识。The first terminal device obtains the account identifier of the first account from the designated carrier by scanning. 4.根据权利要求1所述的账户创建方法,所述方法还包括:4. The account creation method according to claim 1, further comprising: 在得到所述第二账户的账户标识后,所述第一终端设备建立并存储所述第二账户的账户标识与用于支付的应用账户之间的关联关系。After obtaining the account identifier of the second account, the first terminal device establishes and stores the association between the account identifier of the second account and the application account used for payment. 5.根据权利要求1所述的账户创建方法,所述指定载体包含支持近距离通信技术的卡式装置、包含所述第一账户的账户标识的第二终端设备、包含所述第一账户的账户标识的应用客户端中的至少一种或者多种。5. The account creation method according to claim 1, wherein the designated carrier includes at least one or more of the following: a card device supporting near-field communication technology, a second terminal device containing an account identifier of the first account, and an application client containing an account identifier of the first account. 6.根据权利要求1所述的账户创建方法,所述第二账户包含虚拟账户、电子账户中的一种。6. The account creation method according to claim 1, wherein the second account includes one of a virtual account and an electronic account. 7.一种账户充值方法,包括:7. An account top-up method, comprising: 第一终端设备通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道,所述第一账户为承载在所述指定载体中的账户;The first terminal device establishes a data channel with a designated carrier containing an account identifier of the first account through near-field communication technology; the first account is an account carried in the designated carrier. 所述第一终端设备通过所述数据通道将第二账户的充值数据写入所述指定载体中,以实现为所述第一账户进行充值,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户。The first terminal device writes the recharge data of the second account into the designated carrier through the data channel to recharge the first account. The second account is created by the first terminal device based on the account identifier of the first account and is a virtual electronic account associated with the first account. 8.根据权利要求7所述的账户充值方法,所述方法还包括:8. The account recharge method according to claim 7, further comprising: 第一终端设备利用用于支付的应用账户向第二账户执行转账操作,生成第二账户的充值数据。The first terminal device uses the application account used for payment to perform a transfer operation to the second account, generating recharge data for the second account. 9.根据权利要求7所述的账户充值方法,所述指定载体包含支持近距离通信技术的卡式装置、包含所述第一账户的账户标识的第二终端设备、包含所述第一账户的账户标识的应用客户端中的至少一种或者多种。9. The account recharge method according to claim 7, wherein the designated carrier includes at least one or more of the following: a card device supporting near-field communication technology, a second terminal device containing an account identifier of the first account, and an application client containing an account identifier of the first account. 10.一种账户充值方法,包括:10. A method for topping up an account, comprising: 指定载体在通过近距离通信技术与第一终端设备建立数据通道的情况下,接收第一终端设备发送的充值数据,所述充值数据是所述第一终端设备通过所述数据通道将第二账户的充值数据写入到所述指定载体的,所述第二账户是所述第一终端设备根据第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户;When a designated carrier establishes a data channel with a first terminal device through near-field communication technology, it receives recharge data sent by the first terminal device. The recharge data is recharge data of a second account written by the first terminal device to the designated carrier through the data channel. The second account is created by the first terminal device based on the account identifier of the first account, and the second account is a virtual electronic account associated with the first account. 根据所述充值数据,对第一账户的余额数据进行处理。Based on the recharge data, the balance data of the first account is processed. 11.根据权利要求10所述的账户充值方法,根据所述充值数据,对第一账户的余额数据进行处理,包括:11. The account recharge method according to claim 10, wherein the balance data of the first account is processed based on the recharge data, including: 在第一账户的余额数据为零的情况下,将所述充值数据写入所述第一账户中;If the balance of the first account is zero, the recharge data is written into the first account; 在第一账户的余额数据不为零的情况下,利用所述充值数据,修改所述第一账户的余额数据。If the balance data of the first account is not zero, the balance data of the first account is modified using the recharge data. 12.一种数据同步方法,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系,所述关联关系能够使得所述主账户对应的数据、所述第一账户对应的数据以及所述第二账户对应的数据保持一致,包括:12. A data synchronization method, wherein a primary account contained in a server is associated with a first account contained in a specified carrier and a second account contained in a first terminal device, the association enabling data corresponding to the primary account, data corresponding to the first account, and data corresponding to the second account to remain consistent, comprising: 所述服务器通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据;The server obtains the account identifier of the first account and the first transaction data corresponding to the first account from the designated carrier through short-range communication. 所述服务器接收所述第一终端设备发送的所述第二账户的账户标识和所述第二账户对应的第二流水数据,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户;The server receives the account identifier of the second account and the second transaction data corresponding to the second account sent by the first terminal device. The second account is created by the first terminal device based on the account identifier of the first account, and the second account is a virtual electronic account associated with the first account. 所述服务器根据所述第一流水数据和所述第二流水数据,确定一个同步周期的同步数据,并将所述同步数据发送给所述第一终端设备,以使所述第二账户对应的数据与所述主账户对应的数据一致。The server determines synchronization data for a synchronization period based on the first transaction data and the second transaction data, and sends the synchronization data to the first terminal device so that the data corresponding to the second account is consistent with the data corresponding to the main account. 13.根据权利要求12所述的数据同步方法,所述服务器通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据,包括:13. The data synchronization method according to claim 12, wherein the server obtains the account identifier of the first account and the first transaction data corresponding to the first account from the designated carrier via short-range communication, comprising: 所述服务器通过近距离通信方式与所述指定载体建立数据通道;The server establishes a data channel with the designated carrier via short-range communication. 所述服务器在确定交易发生的情况下,通过所述数据通道从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据。When the server determines that a transaction has occurred, it obtains the account identifier of the first account and the first transaction data corresponding to the first account from the designated carrier through the data channel. 14.根据权利要求12所述的数据同步方法,所述方法还包括:14. The data synchronization method according to claim 12, further comprising: 若所述同步数据为负数,那么向所述第一终端设备发送扣款请求,所述扣款请求用于请求从与所述第二账户关联的用于支付的应用账户中扣除所述负数对应的金额。If the synchronized data is negative, a deduction request is sent to the first terminal device. The deduction request is used to request the amount corresponding to the negative number to be deducted from the application account associated with the second account for payment. 15.一种数据同步方法,包括:15. A data synchronization method, comprising: 第一终端设备通过近距离通信方式与指定载体建立数据通道;The first terminal device establishes a data channel with the designated carrier through short-range communication. 所述第一终端设备通过所述数据通道将第二账户对应的余额数据同步给所述指定载体,以使所述指定载体中包含的第一账户对应的数据与所述第二账户对应的数据一致,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户。The first terminal device synchronizes the balance data corresponding to the second account to the designated carrier through the data channel, so that the data corresponding to the first account contained in the designated carrier is consistent with the data corresponding to the second account. The second account is created by the first terminal device based on the account identifier of the first account, and the second account is a virtual electronic account associated with the first account. 16.根据权利要求15所述的数据同步方法,所述方法还包括:16. The data synchronization method according to claim 15, further comprising: 第一终端设备接收服务器发送的同步数据,所述同步数据是所述服务器根据权利要求12中所记载的方式得到的;The first terminal device receives synchronization data sent by the server, wherein the synchronization data is obtained by the server in the manner described in claim 12; 所述第一终端设备利用所述同步数据修改所述第二账户对应的数据,以使所述第二账户对应的数据与服务器中包含的主账户对应的数据一致;The first terminal device uses the synchronization data to modify the data corresponding to the second account, so that the data corresponding to the second account is consistent with the data corresponding to the main account contained in the server. 其中,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系;所述关联关系能够使得所述主账户对应的数据、所述第一账户对应的数据以及所述第二账户对应的数据保持一致。The server contains a master account that is associated with a first account contained in a designated carrier and a second account contained in a first terminal device. The association ensures that the data corresponding to the master account, the first account, and the second account remain consistent. 17.一种数据同步方法,包括:17. A data synchronization method, comprising: 第一终端设备通过近距离通信方式与指定载体建立数据通道;The first terminal device establishes a data channel with the designated carrier through short-range communication. 所述第一终端设备通过所述数据通道获取所述指定载体中包含的第一账户的账户标识和所述第一账户对应的第一流水数据;The first terminal device obtains the account identifier of the first account and the first transaction data corresponding to the first account contained in the designated carrier through the data channel; 所述第一终端设备确定与所述第一账户关联的第二账户对应的第二流水数据,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户;The first terminal device determines the second transaction data corresponding to the second account associated with the first account. The second account is created by the first terminal device based on the account identifier of the first account. The second account is a virtual electronic account associated with the first account. 所述第一终端设备根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。The first terminal device synchronizes data between the first account and the second account based on the first transaction data and the second transaction data. 18.根据权利要求17所述的数据同步方法,所述第一终端设备在建立数据通道之前,所述方法还包括:18. The data synchronization method according to claim 17, wherein before the first terminal device establishes a data channel, the method further comprises: 若检测到与第一账户关联的第二账户对应的数据发生变化,则所述第一终端设备发送提示信息,所述提示信息用于提示用户在所述第一账户与所述第二账户之间进行数据同步。If a change is detected in the data corresponding to the second account associated with the first account, the first terminal device sends a prompt message to remind the user to synchronize data between the first account and the second account. 19.根据权利要求17所述的数据同步方法,确定与所述第一账户关联的第二账户对应的第二流水数据,包括:19. The data synchronization method according to claim 17, determining the second transaction data corresponding to the second account associated with the first account, comprising: 根据所述第一账户的账户标识,确定与所述第一账户的账户标识建立关联关系的第二账户的账户标识;Based on the account identifier of the first account, determine the account identifier of the second account that is associated with the account identifier of the first account; 根据所述第二账户的账户标识,查找与所述第二账户的账户标识建立对应关系的第二流水数据。Based on the account identifier of the second account, locate the second transaction data that corresponds to the account identifier of the second account. 20.根据权利要求17所述的数据同步方法,根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步,包括:20. The data synchronization method according to claim 17, wherein data synchronization is performed between the first account and the second account based on the first transaction data and the second transaction data, comprising: 根据所述第一流水数据和所述第二流水数据,计算得到用于同步的同步数据;Based on the first flow data and the second flow data, synchronization data for synchronization is calculated; 分别将所述同步数据同步至所述第一账户和所述第二账户。The synchronized data is then synchronized to the first account and the second account, respectively. 21.根据权利要求20所述的数据同步方法,将所述同步数据同步至所述第一账户和所述第二账户,包括:21. The data synchronization method according to claim 20, wherein synchronizing the synchronized data to the first account and the second account comprises: 若所述同步数据为负数,那么将空分别写入所述第一账户和所述第二账户;If the synchronized data is negative, then empty numbers will be written to the first account and the second account respectively; 从与所述第二账户关联的用于支付的应用账户中扣除所述负数对应的金额。The amount corresponding to the negative number is deducted from the application account associated with the second account used for payment. 22.根据权利要求17或21所述的数据同步方法,所述方法还包括:22. The data synchronization method according to claim 17 or 21, further comprising: 将同步时间、所述第一账户的账户标识、所述第一流水数据发送给服务器,并删除承载所述第一账户的载体中记录的所述第一流水数据;和/或,Send the synchronization time, the account identifier of the first account, and the first transaction data to the server, and delete the first transaction data recorded in the carrier of the first account; and/or, 将同步时间、所述第二账户的账户标识、所述第二流水数据发送给所述服务器,并删除所述第二流水数据。The synchronization time, the account identifier of the second account, and the second transaction data are sent to the server, and the second transaction data is deleted. 23.根据权利要求17所述的数据同步方法,所述流水数据包含消费数据、充值数据中的至少一种或者多种。23. The data synchronization method according to claim 17, wherein the transaction data includes at least one or more of consumption data and recharge data. 24.一种账户创建设备,包括:24. An account creation device, comprising: 获取单元,通过设定的方式从指定载体中获取第一账户的账户标识,所述第一账户为承载在所述指定载体中的账户;The acquisition unit acquires the account identifier of a first account from a specified carrier in a set manner, wherein the first account is an account carried in the specified carrier; 创建单元,根据所述第一账户的账户标识,创建第二账户的账户标识;Create a unit to create an account identifier for the second account based on the account identifier of the first account; 存储单元,建立并存储所述第一账户的账户标识与所述第二账户的账户标识之间的映射关系,以在所述第一终端设备通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道时,将所述第一账户和第二账户之间同步数据,使得所述第一账户和第二账户数据一致。The storage unit establishes and stores a mapping relationship between the account identifier of the first account and the account identifier of the second account, so that when the first terminal device establishes a data channel with a designated carrier containing the account identifier of the first account through near-field communication technology, it can synchronize the data between the first account and the second account, so that the data of the first account and the second account are consistent. 25.根据权利要求24所述的账户创建设备,所述获取单元通过设定的方式从指定载体中获取第一账户的账户标识,包括:25. The account creation device according to claim 24, wherein the acquisition unit acquires the account identifier of the first account from a designated carrier in a predetermined manner, comprising: 通过近距离通信技术与指定载体建立数据通道,并通过所述数据通道从所述指定载体中获取第一账户的账户标识。A data channel is established with a designated carrier using short-range communication technology, and the account identifier of the first account is obtained from the designated carrier through the data channel. 26.根据权利要求24所述的账户创建设备,所述获取单元通过设定的方式从指定载体中获取第一账户的账户标识,包括:26. The account creation device according to claim 24, wherein the obtaining unit obtains the account identifier of the first account from a designated carrier in a predetermined manner, comprising: 通过扫描的方式从指定载体中获取第一账户的账户标识。The account identifier of the first account is obtained from the specified carrier by scanning. 27.根据权利要求24所述的账户创建设备,27. The account creation device according to claim 24, 所述存储单元,在得到所述第二账户的账户标识后,建立并存储所述第二账户的账户标识与用于支付的应用账户之间的关联关系。After obtaining the account identifier of the second account, the storage unit establishes and stores the association between the account identifier of the second account and the application account used for payment. 28.根据权利要求24所述的账户创建设备,所述指定载体包含支持近距离通信技术的卡式装置、包含所述第一账户的账户标识的第二终端设备、包含所述第一账户的账户标识的应用客户端中的至少一种或者多种。28. The account creation device according to claim 24, wherein the designated carrier comprises at least one or more of the following: a card device supporting near-field communication technology, a second terminal device containing an account identifier of the first account, and an application client containing an account identifier of the first account. 29.根据权利要求24所述的账户创建设备,所述第二账户包含虚拟账户、电子账户中的一种。29. The account creation device according to claim 24, wherein the second account includes one of a virtual account and an electronic account. 30.一种账户充值设备,包括:30. An account recharge device, comprising: 建立单元,通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道,所述第一账户为承载在所述指定载体中的账户;The unit establishes a data channel with a designated carrier containing an account identifier of a first account through near-field communication technology; the first account is an account carried on the designated carrier. 充值单元,通过所述数据通道将第二账户的充值数据写入所述指定载体中,以实现为所述第一账户进行充值,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户。The recharge unit writes the recharge data of the second account into the designated carrier through the data channel to recharge the first account. The second account is created by the first terminal device based on the account identifier of the first account and is a virtual electronic account associated with the first account. 31.根据权利要求30所述的账户充值设备,所述账户充值设备还包括:生成单元,其中:31. The account recharge device according to claim 30, further comprising: a generation unit, wherein: 所述生成单元,利用用于支付的应用账户向第二账户执行转账操作,生成第二账户的充值数据。The generation unit uses the application account used for payment to perform a transfer operation to the second account, generating the recharge data for the second account. 32.根据权利要求30所述的账户充值设备,所述指定载体包含支持近距离通信技术的卡式装置、包含所述第一账户的账户标识的第二终端设备、包含所述第一账户的账户标识的应用客户端中的至少一种或者多种。32. The account recharge device according to claim 30, wherein the designated carrier comprises at least one or more of the following: a card device supporting near-field communication technology, a second terminal device containing an account identifier of the first account, and an application client containing an account identifier of the first account. 33.一种账户充值设备,包括:33. An account top-up device, comprising: 接收单元,在通过近距离通信技术与第一终端设备建立数据通道的情况下,接收第一终端设备发送的充值数据,所述充值数据是所述第一终端设备通过所述数据通道将第二账户的充值数据写入到指定载体的,所述第二账户是所述第一终端设备根据第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户;The receiving unit, when establishing a data channel with the first terminal device through near-field communication technology, receives recharge data sent by the first terminal device. The recharge data is the recharge data of the second account written by the first terminal device to a designated carrier through the data channel. The second account is created by the first terminal device based on the account identifier of the first account, and the second account is a virtual electronic account associated with the first account. 处理单元,根据所述充值数据,对第一账户的余额数据进行处理。The processing unit processes the balance data of the first account based on the recharge data. 34.根据权利要求33所述的账户充值设备,所述处理单元根据所述充值数据,对第一账户的余额数据进行处理,包括:34. The account recharge device according to claim 33, wherein the processing unit processes the balance data of the first account based on the recharge data, including: 在第一账户的余额数据为零的情况下,将所述充值数据写入所述第一账户中;If the balance of the first account is zero, the recharge data is written into the first account; 在第一账户的余额数据不为零的情况下,利用所述充值数据,修改所述第一账户的余额数据。If the balance data of the first account is not zero, the balance data of the first account is modified using the recharge data. 35.一种数据同步设备,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系,所述关联关系能够使得所述主账户对应的数据、所述第一账户对应的数据以及所述第二账户对应的数据保持一致,包括:35. A data synchronization device, wherein a master account contained in a server establishes an association relationship with a first account contained in a designated carrier and a second account contained in a first terminal device, the association relationship enabling data corresponding to the master account, data corresponding to the first account, and data corresponding to the second account to remain consistent, including: 获取单元,通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据;The acquisition unit acquires the account identifier of the first account and the first transaction data corresponding to the first account from the designated carrier through a short-range communication method. 接收单元,接收所述第一终端设备发送的所述第二账户的账户标识和所述第二账户对应的第二流水数据,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户;The receiving unit receives the account identifier of the second account and the second transaction data corresponding to the second account sent by the first terminal device. The second account is created by the first terminal device based on the account identifier of the first account, and the second account is a virtual electronic account associated with the first account. 同步单元,根据所述第一流水数据和所述第二流水数据,确定一个同步周期的同步数据,并将所述同步数据发送给所述第一终端设备,以使所述第二账户对应的数据与所述主账户对应的数据一致。The synchronization unit determines synchronization data for a synchronization cycle based on the first transaction data and the second transaction data, and sends the synchronization data to the first terminal device so that the data corresponding to the second account is consistent with the data corresponding to the main account. 36.根据权利要求35所述的数据同步设备,所述获取单元通过近距离通信方式从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据,包括:36. The data synchronization device according to claim 35, wherein the acquisition unit acquires the account identifier of the first account and the first transaction data corresponding to the first account from the designated carrier via short-range communication, comprising: 通过近距离通信方式与所述指定载体建立数据通道;A data channel is established with the designated carrier via short-range communication. 在确定交易发生的情况下,通过所述数据通道从所述指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据。If a transaction is confirmed to have occurred, the account identifier of the first account and the first transaction data corresponding to the first account are obtained from the designated carrier through the data channel. 37.根据权利要求35所述的数据同步设备,所述数据同步设备还包括:发送单元,其中:37. The data synchronization device according to claim 35, further comprising: a sending unit, wherein: 所述发送单元,若所述同步数据为负数,那么向所述第一终端设备发送扣款请求,所述扣款请求用于请求从与所述第二账户关联的用于支付的应用账户中扣除所述负数对应的金额。If the synchronization data is negative, the sending unit sends a deduction request to the first terminal device. The deduction request is used to request the deduction of the amount corresponding to the negative number from the application account associated with the second account for payment. 38.一种数据同步设备,包括:38. A data synchronization device, comprising: 建立单元,通过近距离通信方式与指定载体建立数据通道;Establish a unit to establish a data channel with a designated carrier via short-range communication; 同步单元,通过所述数据通道将第二账户对应的余额数据同步给所述指定载体,以使所述指定载体中包含的第一账户对应的数据与所述第二账户对应的数据一致,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户。The synchronization unit synchronizes the balance data corresponding to the second account to the designated carrier through the data channel, so that the data corresponding to the first account contained in the designated carrier is consistent with the data corresponding to the second account. The second account is created by the first terminal device based on the account identifier of the first account, and the second account is a virtual electronic account associated with the first account. 39.根据权利要求38所述的数据同步设备,所述数据同步设备还包括:接收单元和处理单元,其中:39. The data synchronization device according to claim 38, further comprising: a receiving unit and a processing unit, wherein: 所述接收单元,接收服务器发送的同步数据,所述同步数据是所述服务器根据权利要求12中所记载的方式得到的;The receiving unit receives synchronization data sent by the server, the synchronization data being obtained by the server in the manner described in claim 12; 所述处理单元,利用所述同步数据修改所述第二账户对应的数据,以使所述第二账户对应的数据与服务器中包含的主账户对应的数据一致;The processing unit uses the synchronization data to modify the data corresponding to the second account so that the data corresponding to the second account is consistent with the data corresponding to the main account contained in the server. 其中,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系;所述关联关系能够使得所述主账户对应的数据、所述第一账户对应的数据以及所述第二账户对应的数据保持一致。The server contains a master account that is associated with a first account contained in a designated carrier and a second account contained in a first terminal device. The association ensures that the data corresponding to the master account, the first account, and the second account remain consistent. 40.一种数据同步设备,包括:40. A data synchronization device, comprising: 建立单元,通过近距离通信方式与指定载体建立数据通道;Establish a unit to establish a data channel with a designated carrier via short-range communication; 获取单元,通过所述数据通道获取所述指定载体中包含的第一账户的账户标识和所述第一账户对应的第一流水数据;The acquisition unit acquires the account identifier of the first account and the first transaction data corresponding to the first account contained in the designated carrier through the data channel; 确定单元,确定与所述第一账户关联的第二账户对应的第二流水数据,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户;The determining unit determines the second transaction data corresponding to the second account associated with the first account. The second account is created by the first terminal device based on the account identifier of the first account, and the second account is a virtual electronic account associated with the first account. 同步单元,根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。The synchronization unit performs data synchronization between the first account and the second account based on the first transaction data and the second transaction data. 41.根据权利要求40所述的数据同步设备,所述数据同步设备还包括:发送单元,其中:41. The data synchronization device according to claim 40, further comprising: a sending unit, wherein: 所述发送单元,在建立数据通道之前,若检测到与第一账户关联的第二账户对应的数据发生变化,则发送提示信息,所述提示信息用于提示用户在所述第一账户与所述第二账户之间进行数据同步。Before establishing a data channel, if the sending unit detects a change in the data corresponding to the second account associated with the first account, it sends a prompt message to remind the user to synchronize data between the first account and the second account. 42.根据权利要求40所述的数据同步设备,所述确定单元确定与所述第一账户关联的第二账户对应的第二流水数据,包括:42. The data synchronization device according to claim 40, wherein the determining unit determines the second transaction data corresponding to the second account associated with the first account, comprising: 根据所述第一账户的账户标识,确定与所述第一账户的账户标识建立关联关系的第二账户的账户标识;Based on the account identifier of the first account, determine the account identifier of the second account that is associated with the account identifier of the first account; 根据所述第二账户的账户标识,查找与所述第二账户的账户标识建立对应关系的第二流水数据。Based on the account identifier of the second account, locate the second transaction data that corresponds to the account identifier of the second account. 43.根据权利要求40所述的数据同步设备,所述同步单元根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步,包括:43. The data synchronization device according to claim 40, wherein the synchronization unit performs data synchronization between the first account and the second account based on the first transaction data and the second transaction data, comprising: 根据所述第一流水数据和所述第二流水数据,计算得到用于同步的同步数据;Based on the first flow data and the second flow data, synchronization data for synchronization is calculated; 分别将所述同步数据同步至所述第一账户和所述第二账户。The synchronized data is then synchronized to the first account and the second account, respectively. 44.根据权利要求43所述的数据同步设备,所述同步单元将所述同步数据同步至所述第一账户和所述第二账户,包括:44. The data synchronization device according to claim 43, wherein the synchronization unit synchronizes the synchronization data to the first account and the second account, comprising: 若所述同步数据为负数,那么将空分别写入所述第一账户和所述第二账户;If the synchronized data is negative, then empty numbers will be written to the first account and the second account respectively; 从与所述第二账户关联的用于支付的应用账户中扣除所述负数对应的金额。The amount corresponding to the negative number is deducted from the application account associated with the second account used for payment. 45.根据权利要求40或44所述的数据同步设备,所述数据同步设备还包括:删除单元,其中:45. The data synchronization device according to claim 40 or 44, further comprising: a deletion unit, wherein: 所述删除单元,将同步时间、所述第一账户的账户标识、所述第一流水数据发送给服务器,并删除承载所述第一账户的载体中记录的所述第一流水数据;和/或,The deletion unit sends the synchronization time, the account identifier of the first account, and the first transaction data to the server, and deletes the first transaction data recorded in the carrier of the first account; and/or, 将同步时间、所述第二账户的账户标识、所述第二流水数据发送给所述服务器,并删除所述第二流水数据。The synchronization time, the account identifier of the second account, and the second transaction data are sent to the server, and the second transaction data is deleted. 46.根据权利要求40所述的数据同步设备,所述流水数据包含消费数据、充值数据中的至少一种或者多种。46. The data synchronization device according to claim 40, wherein the transaction data includes at least one or more of consumption data and recharge data. 47.一种账户创建设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:47. An account creation device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to perform the following steps by the processor: 通过设定的方式从指定载体中获取第一账户的账户标识,所述第一账户为承载在所述指定载体中的账户;The account identifier of the first account is obtained from the specified carrier by a set method, wherein the first account is the account carried in the specified carrier; 根据所述第一账户的账户标识,创建第二账户的账户标识,所述第二账户为与所述第一账户关联的虚拟的电子账户;Based on the account identifier of the first account, an account identifier for the second account is created, wherein the second account is a virtual electronic account associated with the first account; 建立并存储所述第一账户的账户标识与所述第二账户的账户标识之间的映射关系,以在所述第一终端设备通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道时,将所述第一账户和第二账户之间同步数据,使得所述第一账户和第二账户数据一致。A mapping relationship is established and stored between the account identifier of the first account and the account identifier of the second account, so that when the first terminal device establishes a data channel with a designated carrier containing the account identifier of the first account through near-field communication technology, the data between the first account and the second account is synchronized, so that the data of the first account and the second account are consistent. 48.一种账户充值设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:48. An account top-up device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to perform the following steps by the processor: 通过近距离通信技术与包含第一账户的账户标识的指定载体建立数据通道,所述第一账户为承载在所述指定载体中的账户;A data channel is established with a designated carrier containing the account identifier of a first account through near-field communication technology, wherein the first account is an account carried on the designated carrier; 通过所述数据通道将第二账户的充值数据写入所述指定载体中,以实现为所述第一账户进行充值,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户。The recharge data of the second account is written into the designated carrier through the data channel to recharge the first account. The second account is created by the first terminal device based on the account identifier of the first account and is a virtual electronic account associated with the first account. 49.一种账户充值设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:49. An account top-up device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to perform the following steps by the processor: 在通过近距离通信技术与第一终端设备建立数据通道的情况下,接收第一终端设备发送的充值数据,所述充值数据是所述第一终端设备通过所述数据通道将第二账户的充值数据写入到指定载体的,所述第二账户是所述第一终端设备根据第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户;When a data channel is established with a first terminal device through near-field communication technology, the recharge data sent by the first terminal device is received. The recharge data is the recharge data of the second account written by the first terminal device to a designated carrier through the data channel. The second account is created by the first terminal device based on the account identifier of the first account. The second account is a virtual electronic account associated with the first account. 根据所述充值数据,对第一账户的余额数据进行处理。Based on the recharge data, the balance data of the first account is processed. 50.一种数据同步设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:50. A data synchronization device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to perform the following steps by the processor: 通过近距离通信方式从指定载体中获取第一账户的账户标识和所述第一账户对应的第一流水数据;The account identifier of the first account and the first transaction data corresponding to the first account are obtained from a designated carrier through short-range communication. 接收所述第一终端设备发送的第二账户的账户标识和所述第二账户对应的第二流水数据,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户;The system receives the account identifier of the second account and the second transaction data corresponding to the second account sent by the first terminal device. The second account is created by the first terminal device based on the account identifier of the first account, and the second account is a virtual electronic account associated with the first account. 根据所述第一流水数据和所述第二流水数据,确定一个同步周期的同步数据,并将所述同步数据发送给所述第一终端设备,以使所述第二账户对应的数据与主账户对应的数据一致;Based on the first transaction data and the second transaction data, a synchronization data for a synchronization period is determined, and the synchronization data is sent to the first terminal device so that the data corresponding to the second account is consistent with the data corresponding to the main account; 其中,服务器中包含的主账户与指定载体中包含的第一账户、第一终端设备中包含的第二账户之间建立关联关系;所述关联关系能够使得所述主账户对应的数据、所述第一账户对应的数据以及所述第二账户对应的数据保持一致。The server contains a master account that is associated with a first account contained in a designated carrier and a second account contained in a first terminal device. The association ensures that the data corresponding to the master account, the data corresponding to the first account, and the data corresponding to the second account remain consistent. 51.一种数据同步设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:51. A data synchronization device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to be executed by the processor of the following steps: 通过近距离通信方式与指定载体建立数据通道;Establish a data channel with a designated carrier through short-range communication methods; 通过所述数据通道将第二账户对应的余额数据同步给所述指定载体,以使所述指定载体中包含的第一账户对应的数据与所述第二账户对应的数据一致,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户。The balance data corresponding to the second account is synchronized to the designated carrier through the data channel, so that the data corresponding to the first account contained in the designated carrier is consistent with the data corresponding to the second account. The second account is created by the first terminal device based on the account identifier of the first account, and the second account is a virtual electronic account associated with the first account. 52.一种数据同步设备,包括:至少一个存储器和至少一个处理器,其中,所述存储器中存储有程序,并被配置由所述处理器执行以下步骤:52. A data synchronization device, comprising: at least one memory and at least one processor, wherein the memory stores a program and is configured to be executed by the processor of the following steps: 通过近距离通信方式与指定载体建立数据通道;Establish a data channel with a designated carrier through short-range communication methods; 通过所述数据通道获取所述指定载体中包含的第一账户的账户标识和所述第一账户对应的第一流水数据;The account identifier of the first account and the first transaction data corresponding to the first account contained in the designated carrier are obtained through the data channel. 确定与所述第一账户关联的第二账户对应的第二流水数据,所述第二账户是所述第一终端设备根据所述第一账户的账户标识而创建的,所述第二账户为与所述第一账户关联的虚拟的电子账户;Determine the second transaction data corresponding to the second account associated with the first account. The second account is created by the first terminal device based on the account identifier of the first account. The second account is a virtual electronic account associated with the first account. 根据所述第一流水数据和所述第二流水数据,在所述第一账户和所述第二账户之间进行数据同步。Based on the first transaction data and the second transaction data, data synchronization is performed between the first account and the second account.
HK18108430.1A 2018-06-29 Account creation, account recharging and data synchronization method and device HK1248892B (en)

Publications (2)

Publication Number Publication Date
HK1248892A1 HK1248892A1 (en) 2018-10-19
HK1248892B true HK1248892B (en) 2022-05-27

Family

ID=

Similar Documents

Publication Publication Date Title
US11836732B2 (en) Method and apparatus for offline payment, service processing, and payment processing
CN107657448B (en) An account creation, account recharge, data synchronization method and device
CN109598492B (en) A payment method, system, device, terminal and business server
CN108171492B (en) Payment methods, devices and equipment
EP3720044B1 (en) Electronic certificate transmission method, apparatus and device
CN107563881A (en) Bookkeeping methods and device, server
US12039518B2 (en) Method for implementing middleware based on EMV and terminal device
JP2020522038A5 (en)
TW201944315A (en) Barcode image acquiring method, device, and equipment
TW201947485A (en) DOI-based payment method, apparatus and device
WO2024032356A1 (en) Payment processing method and apparatus based on prepayment voucher
US20170372313A1 (en) Electronic device and system for payment
CN109685485A (en) Method of payment, system, device and equipment
HK1248892B (en) Account creation, account recharging and data synchronization method and device
CN111985919B (en) Payment data processing methods, devices and electronic equipment
CN116342113A (en) Business processing method, device, computer-readable storage medium, and electronic device
CN113537974B (en) A remittance method, system and electronic device based on electronic wallet
CN109658239B (en) Application function extension method and device, request processing method and device
HK1248892A1 (en) Account creation, account recharging and data synchronization method and device
CN115641129A (en) Payment processing method and device based on digital wallet
HK40007400B (en) Payment method, system and device, terminal and service server
HK1248877A1 (en) Accounting method, device and server
HK1241532B (en) Information interaction method and device