[go: up one dir, main page]

CN103578207B - A kind of data processing method, device, system and relevant device - Google Patents

A kind of data processing method, device, system and relevant device Download PDF

Info

Publication number
CN103578207B
CN103578207B CN201210254773.3A CN201210254773A CN103578207B CN 103578207 B CN103578207 B CN 103578207B CN 201210254773 A CN201210254773 A CN 201210254773A CN 103578207 B CN103578207 B CN 103578207B
Authority
CN
China
Prior art keywords
data
empty
pos terminal
request
network side
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210254773.3A
Other languages
Chinese (zh)
Other versions
CN103578207A (en
Inventor
郭漫雪
张雨廷
李亚强
苗丹
罗烽
乐祖晖
刘婧雯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201210254773.3A priority Critical patent/CN103578207B/en
Publication of CN103578207A publication Critical patent/CN103578207A/en
Application granted granted Critical
Publication of CN103578207B publication Critical patent/CN103578207B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Cash Registers Or Receiving Machines (AREA)

Abstract

本发明公开了一种数据处理方法、装置、系统及相关设备,用以在电子现金账户销户过程中,处理电子现金账户余额,保证电子现金账户的安全。本发明实施例提供的数据处理方法,包括:接收POS终端发送的第一数据清空请求,所述第一数据清空请求中携带有统一用户标识,所述统一用户标识为所述POS终端从智能卡获取的;将所述统一用户标识对应的数据状态修改为待清空状态;向所述POS终端发送数据清空指令;若接收到所述POS终端返回的数据清空结果时,根据所述数据清空结果判断数据清空是否成功;如果是,清空本地存储的、所述统一用户标识对应的数据数量;如果否,将所述统一用户标识对应的数据状态修改为正常状态。

The invention discloses a data processing method, device, system and related equipment, which are used for processing the balance of the electronic cash account during the process of canceling the electronic cash account, so as to ensure the safety of the electronic cash account. The data processing method provided by the embodiment of the present invention includes: receiving a first data clearing request sent by a POS terminal, wherein the first data clearing request carries a unified user identification, and the unified user identification is obtained by the POS terminal from a smart card Modify the data state corresponding to the unified user identification to the state to be cleared; send a data clearing instruction to the POS terminal; if the data clearing result returned by the POS terminal is received, judge the data according to the data clearing result Whether the emptying is successful; if yes, empty the locally stored data quantity corresponding to the unified user identifier; if not, modify the data state corresponding to the unified user identifier to a normal state.

Description

一种数据处理方法、装置、系统及相关设备A data processing method, device, system and related equipment

技术领域 technical field

本发明涉及移动支付技术领域,尤其涉及一种数据处理方法、装置、系统及相关设备。The present invention relates to the technical field of mobile payment, in particular to a data processing method, device, system and related equipment.

背景技术 Background technique

电子现金账户是一种为方便持卡人现场小额消费而涉及的金融IC卡应用,它支持充值、消费、余额查询及交易明细查询等功能。Electronic cash account is a financial IC card application for the convenience of cardholders' on-site small-amount consumption. It supports functions such as recharge, consumption, balance inquiry and transaction details inquiry.

随着近距离无线通信(NFC,)技术和移动支付技术的发展及技术融合,金融IC卡可以是具备非接触功能的智能卡,例如,移动终端中的USIM(通用用户标识模块)卡和SIM(用户身份识别模块)卡,内置有非接触功能智能卡的移动终端称为NFC终端。With the development and integration of near-field communication (NFC,) technology and mobile payment technology, financial IC cards can be smart cards with contactless functions, for example, USIM (Universal Subscriber Identity Module) cards and SIM ( User Identity Module) card, and a mobile terminal with a built-in non-contact function smart card is called an NFC terminal.

用户开通电子现金账户后,使用电子现金账户脱机消费前,需要通过其他账户为电子现金账户进行充值,在商户受理环境允许的情况下,用户可以选择使用电子现金账户进行快速消费,无需验证密码,消费金额从移动终端卡芯片所记录的电子现金账户余额中直接扣除。若用户注销电子现金账户时,其电子现金账户余额需要返回到为电子现金账户充值时所使用的账户中。After the user opens the electronic cash account, before using the electronic cash account for offline consumption, he needs to recharge the electronic cash account through other accounts. If the merchant's acceptance environment allows, the user can choose to use the electronic cash account for fast consumption without verifying the password , the consumption amount is directly deducted from the balance of the electronic cash account recorded in the mobile terminal card chip. If the user cancels the electronic cash account, the balance of the electronic cash account needs to be returned to the account used for recharging the electronic cash account.

目前,现有技术对如何将电子现金账户余额返回到电子现金账户充值时所使用的账户尚未给出解决方案,导致电子现金账户中存储的数据存在一定的安全性风险,因此,在电子现金账户销户过程中,如何处理电子现金账户余额,保证电子现金账户的安全,成为现有技术中亟待解决的技术问题之一。At present, the existing technology has not provided a solution for how to return the balance of the electronic cash account to the account used for recharging the electronic cash account, which leads to certain security risks in the data stored in the electronic cash account. Therefore, in the electronic cash account In the process of canceling an account, how to deal with the balance of the electronic cash account and ensure the safety of the electronic cash account has become one of the technical problems to be solved urgently in the prior art.

发明内容 Contents of the invention

本发明实施例提供一种数据处理方法、装置、系统及相关设备,用以在电子现金账户销户过程中,处理电子现金账户余额,保证电子现金账户的安全。The embodiments of the present invention provide a data processing method, device, system and related equipment, which are used to process the balance of the electronic cash account during the process of canceling the electronic cash account, so as to ensure the security of the electronic cash account.

本发明实施例提供一种数据处理方法,包括:An embodiment of the present invention provides a data processing method, including:

接收POS终端发送的第一数据清空请求,所述第一数据清空请求中携带有统一用户标识,所述统一用户标识为所述POS终端从智能卡获取的;Receiving the first data clearing request sent by the POS terminal, the first data clearing request carries a unified user identification, and the unified user identification is obtained by the POS terminal from the smart card;

将所述统一用户标识对应的数据状态修改为待清空状态;Modify the data status corresponding to the unified user identification to the status to be cleared;

向所述POS终端发送数据清空指令;Send a data clearing instruction to the POS terminal;

若接收到所述POS终端返回的数据清空结果时,根据所述数据清空结果判断数据清空是否成功;If the data clearing result returned by the POS terminal is received, it is judged whether the data clearing is successful according to the data clearing result;

如果是,清空本地存储的、所述统一用户标识对应的数据数量;If so, emptying the amount of data stored locally and corresponding to the unified user identifier;

如果否,将所述统一用户标识对应的数据状态修改为正常状态。If not, modify the data state corresponding to the unified user identifier to a normal state.

本发明实施例提供一种数据处理装置,包括:An embodiment of the present invention provides a data processing device, including:

接收单元,用于接收POS终端发送的第一数据清空请求,所述第一数据清空请求中携带有统一用户标识,所述统一用户标识为所述POS终端从智能卡获取的;The receiving unit is configured to receive a first data clearing request sent by the POS terminal, wherein the first data clearing request carries a unified user identification, and the unified user identification is obtained by the POS terminal from a smart card;

修改单元,用于将所述统一用户标识对应的数据状态修改为待清空状态;以及在第一判断单元的判断结果为否时,将所述统一用户标识对应的数据状态修改为正常状态。A modifying unit, configured to modify the data status corresponding to the unified user ID to a status to be cleared; and modify the data status corresponding to the unified user ID to a normal status when the judgment result of the first judging unit is negative.

发送单元,用于向所述POS终端发送数据清空指令;a sending unit, configured to send a data clearing instruction to the POS terminal;

第一判断单元,用于若接收到所述POS终端返回的数据清空结果时,根据所述数据清空结果判断数据清空是否成功;The first judging unit is used to judge whether the data clearing is successful according to the data clearing result if the data clearing result returned by the POS terminal is received;

清空单元,在第一判断单元的判断结果为是时,清空本地存储的、所述统一用户标识对应的数据数量。The clearing unit is configured to clear the amount of data stored locally and corresponding to the unified user identifier when the judgment result of the first judging unit is yes.

本发明实施例提供一种网络侧服务器,包括上述数据处理装置。An embodiment of the present invention provides a network side server, including the foregoing data processing apparatus.

本发明实施例提供另外一种数据处理方法,包括:The embodiment of the present invention provides another data processing method, including:

获取智能卡的统一用户标识和待清空数据数量;Obtain the unified user ID of the smart card and the amount of data to be cleared;

向网络侧服务器发送数据清空请求,所述数据清空请求中携带有获取的统一用户标识和待清空数据数量;Sending a data clearing request to the network side server, the data clearing request carrying the acquired unified user identification and the amount of data to be cleared;

接收所述网络侧服务器发送的数据清空指令;receiving a data clearing instruction sent by the network side server;

向所述智能卡转发所述数据清空指令;以及forwarding the data clearing instruction to the smart card; and

若接收到所述智能卡返回的数据清空结果时,向所述网络侧服务器转发所述数据清空结果。If the data clearing result returned by the smart card is received, the data clearing result is forwarded to the network side server.

本发明实施例提供另外一种数据处理装置,包括:An embodiment of the present invention provides another data processing device, including:

获取单元,用于获取智能卡的统一用户标识和待清空数据数量;An acquisition unit, configured to acquire the unified user identification of the smart card and the amount of data to be cleared;

发送单元,用于向网络侧服务器发送数据清空请求,所述数据清空请求中携带有获取的统一用户标识和待清空数据数量;A sending unit, configured to send a data clearing request to the network side server, the data clearing request carrying the obtained unified user identifier and the amount of data to be cleared;

接收单元,用于接收所述网络侧服务器发送的数据清空指令;a receiving unit, configured to receive a data clearing instruction sent by the network side server;

转发单元,用于向所述智能卡转发所述数据清空指令;以及若接收到所述智能卡返回的数据清空结果时,向所述网络侧服务器转发所述数据清空结果。A forwarding unit, configured to forward the data clearing instruction to the smart card; and forward the data clearing result to the network side server if the data clearing result returned by the smart card is received.

本发明实施例提供一种POS终端,包括上述数据处理装置。An embodiment of the present invention provides a POS terminal, including the above-mentioned data processing device.

本发明实施例提供一种数据处理系统,包括智能卡、POS终端和网络侧服务器,其中:An embodiment of the present invention provides a data processing system, including a smart card, a POS terminal, and a network side server, wherein:

所述POS终端,用于在进行数据清空时,获取所述智能卡的统一用户标识和第一待清空数据量;并向网络侧服务器发送第一数据清空请求,所述第一数据清空请求中携带有获取的统一用户标识和第一待转移数据量;以及接收所述网络侧服务器在接收到所述第一数据清空请求之后下发的数据清空指令,所述清空指令中携带有清空脚本;并向智能卡转发所述数据清空指令;以及若接收到所述智能卡返回的数据清空结果时,向所述网络侧服务器转发所述数据清空结果;The POS terminal is configured to acquire the unified user identification of the smart card and the first amount of data to be cleared when performing data clearing; and send a first data clearing request to the network side server, and the first data clearing request carries Have the acquired unified user identification and the first amount of data to be transferred; and receive a data clearing instruction issued by the network side server after receiving the first data clearing request, and the clearing script is carried in the clearing command; and Forwarding the data clearing instruction to the smart card; and forwarding the data clearing result to the network side server if the data clearing result returned by the smart card is received;

所述智能卡,用于向所述POS终端提供自身的统一用户标识和第一待清空数据量;以及在接收到所述POS终端转发的数据清空指令后,清空自身的数据,并向所述POS终端返回数据清空结果;The smart card is used to provide the POS terminal with its own unified user identification and the first amount of data to be cleared; and after receiving the data clearing instruction forwarded by the POS terminal, clear its own data and send the data to the POS terminal. The terminal returns the data clearing result;

所述网络侧服务器,用于在接收到所述POS终端发送的第一数据清空请求之后,将所述统一用户标识对应的数据状态修改为待清空状态;并向所述POS终端发送数据清空指令;以及若接收到所述POS终端返回的数据清空结果时,根据所述数据清空结果判断数据清空是否成功;如果是,清空本地存储的、所述统一用户标识对应的数据数量;如果否,将所述统一用户标识对应的数据状态修改为正常状态。The network side server is configured to, after receiving the first data clearing request sent by the POS terminal, modify the data state corresponding to the unified user identifier to a state to be cleared; and send a data clearing instruction to the POS terminal and if the data clearing result returned by the POS terminal is received, judge whether the data clearing is successful according to the data clearing result; if yes, clear the data quantity corresponding to the unified user identification stored locally; if not, set The data state corresponding to the unified user identifier is changed to a normal state.

本发明实施例提供的数据处理方法,网络侧服务器接收POS终端发送的数据清空请求,在该数据清空请求中携带有统一用户标识,该统一用户标识为POS终端从智能卡获取的,网络侧服务器根据该统一用户标识将其对应的数据状态修改为待清空状态,并向POS终端发送数据清空指令,并根据POS终端返回的的数据清空结果判断数据清空是否成功,如果成功,则清空本地存储的、该统一用户标识对应的数据数量,如果失败,将该统一用户标识对应的数据状态修改为正常状态。通过上述过程,实现了对待清空数据的处理,同时,由于网络侧服务器记录数据清空过程中数据状态的变化,当数据清空失败时,将待清空数据状态恢复为正常,从而保证了数据处理过程中的安全性。In the data processing method provided by the embodiment of the present invention, the network-side server receives the data clearing request sent by the POS terminal, and the data clearing request carries a unified user identifier, which is obtained by the POS terminal from the smart card, and the network-side server according to The unified user ID modifies its corresponding data state to the state to be cleared, and sends a data clearing command to the POS terminal, and judges whether the data clearing is successful according to the data clearing result returned by the POS terminal, and if successful, clears the locally stored, The amount of data corresponding to the unified user ID. If it fails, modify the data status corresponding to the unified user ID to a normal status. Through the above process, the processing of the data to be cleared is realized. At the same time, because the network side server records the change of the data state during the data clearing process, when the data clearing fails, the state of the data to be cleared will be restored to normal, thus ensuring the data processing process. security.

本发明的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明而了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.

附图说明 Description of drawings

图1为本发明实施例中,网络服务器侧实施数据处理方法的实施流程示意图;FIG. 1 is a schematic diagram of an implementation flow of a data processing method implemented on a network server side in an embodiment of the present invention;

图2为本发明实施例中,POS终端侧实施数据处理方法的实施流程示意图;FIG. 2 is a schematic diagram of the implementation flow of the data processing method implemented on the POS terminal side in an embodiment of the present invention;

图3为本发明实施例中,电子现金账户销户流程示意图;Fig. 3 is a schematic diagram of an electronic cash account cancellation process in an embodiment of the present invention;

图4为本发明实施例中,数据处理异常时的数据处理流程示意图;4 is a schematic diagram of a data processing flow when data processing is abnormal in an embodiment of the present invention;

图5为本发明实施例中,智能卡电子现金账户余额不为0,且网络侧服务器记录的电子现金账户状态为待清空状态时,数据处理流程示意图;Fig. 5 is a schematic diagram of the data processing flow when the balance of the electronic cash account of the smart card is not 0 and the state of the electronic cash account recorded by the server on the network side is in the state to be cleared in the embodiment of the present invention;

图6为本发明实施例中,智能卡电子现金账户余额为0,且网络侧服务器记录的电子现金账户状态为待清空状态时,数据处理流程示意图;Fig. 6 is a schematic diagram of the data processing flow when the balance of the electronic cash account of the smart card is 0 and the state of the electronic cash account recorded by the server on the network side is the state to be cleared in the embodiment of the present invention;

图7为本发明实施例中,智能卡电子现金账户余额为0,且网络侧服务器记录的电子现金账户状态为转移状态时,数据处理流程示意图;Fig. 7 is a schematic diagram of the data processing flow in the embodiment of the present invention, when the smart card electronic cash account balance is 0, and the electronic cash account state recorded by the network side server is in the transfer state;

图8为本发明实施例中,智能卡电子现金账户余额为0,且网络侧服务器记录的电子现金账户状态为注销状态时,数据处理流程示意图;Fig. 8 is a schematic diagram of the data processing flow when the smart card electronic cash account balance is 0 and the status of the electronic cash account recorded by the server on the network side is in the canceled state in the embodiment of the present invention;

图9为本发明实施例中,网络侧数据处理装置的结构示意图;FIG. 9 is a schematic structural diagram of a network-side data processing device in an embodiment of the present invention;

图10为本发明实施例中,终端侧数据处理装置的结构示意图;FIG. 10 is a schematic structural diagram of a terminal-side data processing device in an embodiment of the present invention;

图11为本发明实施例中,数据处理系统的结构示意图。FIG. 11 is a schematic structural diagram of a data processing system in an embodiment of the present invention.

具体实施方式 Detailed ways

本发明实施例提供一种数据处理方法,用以在电子现金账户销户过程中,处理电子现金账户余额,保证电子现金账户安全。An embodiment of the present invention provides a data processing method, which is used to process the balance of the electronic cash account during the process of canceling the electronic cash account, so as to ensure the security of the electronic cash account.

以下结合说明书附图对本发明的优选实施例进行说明,应当理解,此处所描述的优选实施例仅用于说明和解释本发明,并不用于限定本发明,并且在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。The preferred embodiments of the present invention will be described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described here are only used to illustrate and explain the present invention, and are not intended to limit the present invention, and in the absence of conflict, the present invention The embodiments and the features in the embodiments can be combined with each other.

本发明实施例中涉及的智能卡可以是贴片卡,也可以是嵌入在NFC终端的卡,还可以是标准银行卡等多种形式,当然不限于以上几种形式,凡是能够承载数据信息的卡片均可以。The smart card involved in the embodiment of the present invention can be a patch card, a card embedded in an NFC terminal, or a standard bank card and other forms, of course not limited to the above forms, any card that can carry data information Both are available.

实施例一Embodiment one

如图1所示,为网络服务器侧实施数据处理方法的实施流程示意图,包括以下步骤:As shown in Figure 1, it is a schematic diagram of the implementation process of implementing the data processing method on the network server side, including the following steps:

S101、网络侧服务器接收POS终端(销售点)终端发送的第一数据清空请求;S101. The network side server receives the first data clearing request sent by the POS terminal (point of sale) terminal;

具体实施时,第一数据清空请求中携带有统一用户标识,该统一用户标识为POS终端从智能卡处获取的。During specific implementation, the first data clearing request carries a unified user identifier, which is acquired by the POS terminal from the smart card.

S102、网络侧服务器将该统一用户标识对应的数据状态修改为待清空状态;S102. The server on the network side modifies the data state corresponding to the unified user identifier to a state to be cleared;

S103、网络侧服务器向POS终端发送数据清空指令;S103. The server on the network side sends a data clearing instruction to the POS terminal;

具体实施时,网络侧服务器在接收到数据清空请求之后,组装清空脚本,并在向POS终端返回的数据清空指令中携带该清空脚本。During specific implementation, after receiving the data clearing request, the network side server assembles the clearing script, and carries the clearing script in the data clearing instruction returned to the POS terminal.

S104、若接收到POS终端返回的数据清空结果时,根据该数据清空结果判断数据清空是否成功,如果是,执行步骤S105,否则,执行步骤S106;S104, if the data clearing result returned by the POS terminal is received, judge whether the data clearing is successful according to the data clearing result, if yes, perform step S105, otherwise, perform step S106;

S105、网络侧服务器清空本地存储的、该统一用户标识对应的数据数量;S105. The server on the network side clears the locally stored data quantity corresponding to the unified user identifier;

S106、网络侧服务器将该统一用户标识对应的数据状态修改为正常状态。S106. The network side server modifies the data state corresponding to the unified user identifier to a normal state.

具体实施时,网络侧服务器接收到的第一数据清空请求中还可以携带有待清空数据数量,该待清空数据数量为POS终端从智能卡获取的。During specific implementation, the first data clearing request received by the server on the network side may also carry the amount of data to be cleared, which is obtained by the POS terminal from the smart card.

具体实施时,为了解决由于网络延迟等原因,导致在一定时间段内网络侧服务器无法接收到POS终端返回的所述数据清空结果导致处理瓶颈的问题,网络侧服务器可以根据POS终端的反馈,按照以下两种方式进行处理:During specific implementation, in order to solve the problem that the network side server cannot receive the data clearing result returned by the POS terminal within a certain period of time due to network delays and other reasons, resulting in a processing bottleneck, the network side server can according to the feedback from the POS terminal, according to The following two ways are handled:

方式一、网络侧服务器接收POS终端发送的第二数据清空请求Method 1: The server on the network side receives the second data clearing request sent by the POS terminal

其中,在该数据清空请求中携带有统一用户标识和第二待清空数据数量,该第二待清空数据数量为POS终端从智能卡重新获取的。在这种情况,网络侧服务器可以按照以下方式进行处理:网络侧服务器获取本地记录的该统一用户标识对应的数据状态;若第二待清空数据数量不为零且本地记录的统一用户标识对应的数据状态为待清空状态,重新向POS终端发送数据清空指令;若第二待清空数据数量为零且统一用户标识对应的数据状态为待清空状态,清空本地存储的、统一用户标识对应的数据数量。Wherein, the data clearing request carries a unified user identifier and a second data quantity to be cleared, and the second data quantity to be cleared is reacquired by the POS terminal from the smart card. In this case, the server on the network side can handle it in the following manner: the server on the network side acquires the data status corresponding to the unified user ID recorded locally; If the data status is waiting to be cleared, send the data clearing command to the POS terminal again; if the second number of data to be cleared is zero and the data status corresponding to the unified user ID is waiting to be cleared, clear the locally stored data corresponding to the unified user ID .

方式二、网络侧服务器接收到POS终端发送的数据清空撤销请求Method 2: The server on the network side receives the data clearing and revocation request sent by the POS terminal

在这种情况下,网络侧服务器可以将该统一用户标识对应的数据状态修改为正常状态。In this case, the network side server may modify the data state corresponding to the unified user identifier to a normal state.

具体实施时,网络侧服务器在执行完成数据清空操作之后,具体的,可以在网络侧服务器清空本地存储的,该统一用户标识对应的数据量之后,需要与第三方服务器交互,进行数据转移操作。其中,数据转移操作可以包括以下步骤:During specific implementation, after the network-side server completes the data clearing operation, specifically, after the network-side server clears the locally stored data corresponding to the unified user ID, it needs to interact with a third-party server to perform a data transfer operation. Among them, the data transfer operation may include the following steps:

步骤1、网络侧服务器向第三方服务器发送数据转移请求;Step 1. The server on the network side sends a data transfer request to the third-party server;

该数据转移请求中携带有统一用户标识和待转移数据数量,其中,待转移数据数量与所述第一待清空数据数量相同。The data transfer request carries a unified user identifier and the amount of data to be transferred, wherein the amount of data to be transferred is the same as the first amount of data to be cleared.

步骤2、网络侧服务器将该统一用户标识对应的数据状态修改为转移状态;Step 2. The server on the network side modifies the data state corresponding to the unified user ID to a transfer state;

步骤3、网络侧服务器接收第三方服务器返回的数据转移成功消息或者数据转移失败消息;Step 3, the network side server receives the data transfer success message or the data transfer failure message returned by the third-party server;

步骤4、若接收到数据转移成功消息,网络侧服务器将该统一用户标识对应的数据状态修改为注销状态,并向POS终端返回数据转移成功的确认消息;Step 4. If the data transfer success message is received, the server on the network side modifies the data status corresponding to the unified user ID to a logout status, and returns a confirmation message that the data transfer is successful to the POS terminal;

步骤5、若接收到数据转移失败,向POS终端返回数据转移失败的确认消息。Step 5. If the data transfer failure is received, return a confirmation message of the data transfer failure to the POS terminal.

具体实施时,若数据转移失败,网络侧还可以再次向第三方服务器发送数据转移请求,以及在再次数据转移失败之后,再向POS终端返回数据转移失败的确认消息。During specific implementation, if the data transfer fails, the network side can also send a data transfer request to the third-party server again, and return a confirmation message of data transfer failure to the POS terminal after the data transfer fails again.

具体实施时,若POS终端在指定时长内未接收到网络侧服务器返回的数据转移成功或者数据转移失败的确认消息时,为了保证数据处理的安全性,本发明实施例中,网络侧服务器根据POS终端的反馈可以有以下两种处理方式:During specific implementation, if the POS terminal does not receive the confirmation message of data transfer success or data transfer failure returned by the network side server within a specified period of time, in order to ensure the security of data processing, in the embodiment of the present invention, the network side server according to the POS The feedback from the terminal can be processed in the following two ways:

方式一网络侧服务器接收到POS终端发送的第三数据清空请求Mode 1: The server on the network side receives the third data clearing request sent by the POS terminal

其中,在该第三数据清空请求中携带有统一用户标识和第三待清空数据数量,待第三待清空数据数量为POS终端在指定时长内,未接收到数据转移成功或者失败的确认消息时,重新向智能卡获取的。在这种情况下,网络侧服务器可以按照以下方式处理:网络侧服务器获取本地记录的、该统一用户标识对应的数据状态,若第三待清空数据数量为零且本地记录的当前数据状态为注销状态,向POS终端返回数据转移成功的确认消息;若第三待清空数据数量为零且本地记录的当前数据状态为转移状态,判断数据转移是否成功;在判断结果为是时,将本地记录的所述统一用户标识对应的数据状态修改为注销状态;在判断结果为否时,向第三方服务器发送数据恢复请求,该数据恢复请求中携带有第一待清空数据数量;在接收到数据恢复成功消息之后,向第三方服务器再次发送数据转移请求,其中,数据恢复成功消息为所述第三方服务器根据第一待清空数据数量恢复数据后发送。Wherein, the third data clearing request carries a unified user identification and a third data quantity to be cleared, and the third data quantity to be cleared is when the POS terminal does not receive a confirmation message of successful or failed data transfer within a specified time period , re-obtained from the smart card. In this case, the server on the network side can handle it in the following manner: the server on the network side obtains the locally recorded data status corresponding to the unified user ID, if the third data to be cleared is zero and the current data status of the local Status, return a confirmation message of successful data transfer to the POS terminal; if the third data to be cleared is zero and the current data status of the local record is transfer status, judge whether the data transfer is successful; when the judgment result is yes, the locally recorded The data state corresponding to the unified user identifier is modified to a logout state; when the judgment result is no, a data recovery request is sent to a third-party server, and the data recovery request carries the first data quantity to be cleared; after receiving the data recovery success After the message, send the data transfer request to the third-party server again, wherein the data recovery success message is sent after the third-party server recovers data according to the first data quantity to be cleared.

方式二网络侧服务器接收POS终端发送的数据清空撤销请求Method 2: The server on the network side receives the data clearing and revocation request sent by the POS terminal

在这种情况下,网络侧服务器可以按照以下步骤进行处理:In this case, the server on the network side can handle it according to the following steps:

步骤1、网络侧服务器判断数据转移是否成功,在判断结果为是时,执行步骤2,否则执行步骤4;Step 1. The network side server judges whether the data transfer is successful, and if the judgment result is yes, execute step 2, otherwise execute step 4;

步骤2、网络侧服务器向第三方服务器发送数据恢复请求;Step 2, the server on the network side sends a data recovery request to the third-party server;

具体实施时,在数据恢复请求中携带有第一待清空数据数量。During specific implementation, the data recovery request carries the first amount of data to be cleared.

步骤3、网络侧服务器在接收到所述第三方服务器返回的数据恢复成功消息之后,将所述统一用户标识对应的数据状态修改为正常状态,流程结束;Step 3. After receiving the data recovery success message returned by the third-party server, the network side server modifies the data state corresponding to the unified user ID to a normal state, and the process ends;

其中,数据恢复成功消息为所述第三方服务器根据第一待清空数据量恢复数据之后发送的。Wherein, the data restoration success message is sent by the third-party server after restoring data according to the first data volume to be cleared.

步骤4、将所述统一用户标识对应的数据状态修改为正常状态。Step 4. Modify the data state corresponding to the unified user identifier to a normal state.

实施例二Embodiment two

实施例二描述了数据处理过程中,POS终端侧数据处理方法的实施流程示意图,如图2所示,可以包括以下步骤:Embodiment 2 describes the implementation flow diagram of the POS terminal side data processing method in the data processing process, as shown in Figure 2, may include the following steps:

S201、POS终端获取智能卡的统一用户标识和待清空数据数量;S201. The POS terminal acquires the unified user identification of the smart card and the amount of data to be cleared;

S202、POS终端向网络侧服务器发送数据清空请求;S202. The POS terminal sends a data clearing request to the network side server;

其中,在发送的数据清空请求中携带有获取的统一用户标识和待清空数据数量;Wherein, the data clearing request sent carries the acquired unified user ID and the amount of data to be cleared;

S203、POS终端接收网络侧服务器发送的数据清空指令;S203. The POS terminal receives the data clearing instruction sent by the server on the network side;

具体实施时,在该数据清空指令中携带有清空脚本。During specific implementation, the clearing script is carried in the data clearing instruction.

S204、POS终端向智能卡转发该数据清空指令;S204. The POS terminal forwards the data clearing instruction to the smart card;

具体实施时,智能卡在接收到数据清空指令之后,清空自身存储的数据,并向POS终端返回数据清空结果。During specific implementation, after receiving the data clearing instruction, the smart card clears the data stored in itself, and returns the data clearing result to the POS terminal.

S205、若POS终端接收到该数据清空结果时,向网络侧服务器转发该数据清空结果。S205. If the POS terminal receives the data clearing result, forward the data clearing result to the network side server.

具体实施时,网络侧服务器在接收到POS终端发送的数据清空结果之后,如果根据该数据清空结果确定数据清空成功的话,将向第三方服务器发送数据转移请求,以及在数据转移流程完成之后,向POS终端返回数据转移成功或者失败的确认消息。During specific implementation, after receiving the data clearing result sent by the POS terminal, if the network side server determines that the data clearing is successful according to the data clearing result, it will send a data transfer request to the third-party server, and after the data transfer process is completed, send a data transfer request to the third party server. The POS terminal returns a confirmation message of success or failure of data transfer.

具体实施时,在上述过程中,POS终端有可能在指定时长内未接收到智能卡返回的数据清空结果或者未接收到网络侧服务器发送的数据转移成功或者失败的确认消息,此时,POS终端可以提示用户是否需要再次进行数据清空操作,如果用户选择否,POS终端再次获取智能卡的数据数量,若获取的数据数量为零,则可以直接结束流程;若获取的数据数量不为零,向网络侧服务器发送数据清空撤销请求;如果用户选择是时,POS终端需要再次向网络侧服务器重新发送数据清空请求。During the specific implementation, in the above process, the POS terminal may not receive the data clearing result returned by the smart card or the confirmation message of the success or failure of the data transfer sent by the server on the network side within the specified time period. At this time, the POS terminal can Prompt the user whether to clear the data again. If the user chooses No, the POS terminal will obtain the data amount of the smart card again. If the amount of data obtained is zero, the process can be ended directly; The server sends a data clearing cancellation request; if the user selects Yes, the POS terminal needs to resend the data clearing request to the network side server again.

实施例三Embodiment Three

为了更好地理解本发明实施例,以下以电子现金钱包销户过程中,对电子现金账户中的余额进行处理的方法为例,对本发明实施例进行说明。实际应用中,出于对数据处理流程的需要,在POS终端与网络侧服务器之间还存在一个POS终端的前置系统(POSP,POS终端Proxy)。本发明实施例中,POSP对接收到的数据不进行处理,只是进行转发。In order to better understand the embodiment of the present invention, the method for processing the balance in the electronic cash account during the process of canceling the account of the electronic cash wallet is taken as an example to describe the embodiment of the present invention. In practical applications, due to the need for data processing procedures, there is also a POS terminal front-end system (POSP, POS terminal Proxy) between the POS terminal and the server on the network side. In the embodiment of the present invention, the POSP does not process the received data, but only forwards it.

如图3所示,为电子现金账户销户过程中,电子现金账户中的余额进行处理的实施流程示意图,包括以下步骤:As shown in Figure 3, it is a schematic diagram of the implementation process of processing the balance in the electronic cash account during the process of canceling the electronic cash account, including the following steps:

S301、POS终端受理用户的销户申请;S301. The POS terminal accepts the user's account cancellation application;

具体实施时,当用户需要注销电子现金账户时,可以提出销户申请,营业员可以在POS终端上受理用户的销户申请。During specific implementation, when the user needs to cancel the electronic cash account, he can submit an account cancellation application, and the salesperson can accept the user's account cancellation application on the POS terminal.

S302、POS终端读取智能卡信息;S302. The POS terminal reads the smart card information;

用户将智能卡靠近POS终端,POS终端读取智能卡信息包括联名卡卡号和电子现金账户余额,其中联名卡卡号为用户贷记账户、借记账户和电子现金账户的统一卡号。The user puts the smart card close to the POS terminal, and the POS terminal reads the smart card information, including the co-branded card number and the balance of the electronic cash account, where the co-branded card number is the unified card number of the user's credit account, debit account and electronic cash account.

S303、智能卡返回卡号和电子现金账户余额;S303. The smart card returns the card number and electronic cash account balance;

S304、POS终端将向POSP发送数据清空请求;S304. The POS terminal will send a data clearing request to the POSP;

其中,在数据清空请求中携带有获取的卡号和电子现金账户余额。Wherein, the obtained card number and electronic cash account balance are carried in the data clearing request.

S305、POSP向网络侧服务器转发数据清空请求;S305. The POSP forwards the data clearing request to the network side server;

S306、网络侧服务器对电子现金账户进行鉴权,且在鉴权通过时,将电子现金账户修改为待清空状态,并组装余额清0脚本;S306. The server on the network side authenticates the electronic cash account, and when the authentication passes, modifies the electronic cash account to the state to be cleared, and assembles a balance clearing script;

具体实施时,若鉴权不通过,将通过POSP向POS终端返回鉴权失败的响应消息。During specific implementation, if the authentication fails, a response message of authentication failure will be returned to the POS terminal through the POSP.

S307、网络侧服务器向POSP发送数据清空指令;S307. The network side server sends a data clearing instruction to the POSP;

在该数据清空指令中携带有清0脚本。The zero-clearing script is carried in the data clearing command.

S308、POSP向POS终端转发该数据清空指令;S308. The POSP forwards the data clearing instruction to the POS terminal;

S309、POS终端向智能卡转发该数据清空指令;S309. The POS terminal forwards the data clearing instruction to the smart card;

S310、智能卡返回数据清空响应消息;S310. The smart card returns a data clearing response message;

其中,数据清空响应消息既可以是数据清空成功的消息,也可以是数据清空失败的消息,具体实施时,智能卡在接收到数据清空指令之后,清空电子现金账户内的余额,若清空成功,则向POS终端返回数据清空成功的消息,否则返回数据清空失败的消息。Wherein, the data clearing response message can be either a message of successful data clearing or a message of data clearing failure. Return to the POS terminal a message that data clearing is successful, otherwise return a message that data clearing fails.

S311、POS终端向POSP发送数据清空结果;S311. The POS terminal sends a data clearing result to the POSP;

S312、POSP向网络侧服务器转发数据清空结果;S312. The POSP forwards the data clearing result to the network side server;

S313、网络侧服务器根据数据清空结果确定数据清空成功时,继续执行步骤S314,否则,网络侧服务器将电子现金账户状态修改为正常状态;S313. When the network side server determines that the data clearing is successful according to the data clearing result, continue to execute step S314, otherwise, the network side server changes the status of the electronic cash account to a normal status;

S314、网络侧服务器扣除自身存储的电子现金账户中的余额;S314. The network side server deducts the balance in the electronic cash account stored by itself;

通过该步骤,网络侧服务器将自身存储的电子现金账户中的余额清空。Through this step, the network side server clears the balance in the electronic cash account stored by itself.

S315、网络侧服务器向第三方服务器发送数据转移请求;S315. The server on the network side sends a data transfer request to the third-party server;

具体的,网络侧服务器在该数据转移请求中携带有卡号和余额;Specifically, the network side server carries the card number and balance in the data transfer request;

S316、第三方服务将余额转移到该卡号对应的贷记账户下;S316. The third-party service transfers the balance to the credit account corresponding to the card number;

S317、第三方服务器向网络侧服务器返回数据转移结果;S317. The third-party server returns the data transfer result to the network side server;

S318、如果数据转移成功,网络侧服务器将电子现金账户状态修改为注销状态;S318. If the data transfer is successful, the server on the network side modifies the status of the electronic cash account to a canceled status;

S319、网络侧服务器向POSP返回数据转移结果;S319. The network side server returns the data transfer result to the POSP;

S320、POSP向POS终端转发数据转移结果;S320. The POSP forwards the data transfer result to the POS terminal;

S321、POS终端显示数据转移结果。S321. The POS terminal displays a data transfer result.

实施例四Embodiment Four

具体实施中,由于网络质量等原因,在数据清空和数据转移的过程中,有可能出现数据处理异常的情况,例如,步骤S308、步骤S309、步骤S310以及步骤S320等出现异常时,将导致POS终端在指定时长内无法响应,进而导致无法正常处理电子现金账户销户申请。为了解决该问题,本发明实施例中可以采用以下方式进行处理:POS终端长时间未响应时,可以提示用户是否再次进行数据清空和数据转移操作,根据用户的选择可以有以下两种情况,如图4所示,为数据处理异常时的数据处理流程示意图,图4所示的正常处理步骤包括步骤S320及之前的数据处理步骤,即步骤S401~步骤S420与步骤S301~步骤S302相同,这里不再赘述。In the specific implementation, due to network quality and other reasons, data processing exceptions may occur during the process of data clearing and data transfer. The terminal fails to respond within the specified time period, resulting in the inability to process the electronic cash account cancellation application normally. In order to solve this problem, in the embodiment of the present invention, the following methods can be used for processing: when the POS terminal does not respond for a long time, the user can be prompted whether to perform data clearing and data transfer operations again. According to the user's choice, there can be the following two situations, such as As shown in FIG. 4, it is a schematic diagram of the data processing flow when the data processing is abnormal. The normal processing steps shown in FIG. Let me repeat.

S421、提示用户是否再次发起数据清空和数据转移操作;S421. Prompting the user whether to initiate data clearing and data transfer operations again;

根据用户的选择,可以有以下两种情况:Depending on the user's choice, there are two possible situations:

一、用户选择是,即重新进行数据清空和数据转移操作1. If the user selects Yes, the data clearing and data transfer operations will be performed again

这种情况下,如图4所示,还可以包括下两个步骤:In this case, as shown in Figure 4, the following two steps may also be included:

步骤1、打印操作失败故障单;Step 1. Print the operation failure ticket;

步骤2、重新发起数据清空操作。Step 2. Re-initiate the data clearing operation.

二、用户选择否,即不再进行数据清空和数据转移操作2. If the user chooses No, the data clearing and data transfer operations will no longer be performed

这种情况下,如图4所示,还可以包括以下步骤:In this case, as shown in Figure 4, the following steps may also be included:

步骤1、打印操作失败故障单;Step 1. Print the operation failure ticket;

步骤2、POS终端读取智能卡电子现金账户余额;Step 2. The POS terminal reads the balance of the smart card electronic cash account;

步骤3、智能卡返回电子现金账户余额;Step 3, the smart card returns the electronic cash account balance;

步骤4、POS终端判断余额是否为0,如果为0,则可以直接结束流程;如果不为0,执行步骤5;Step 4. The POS terminal judges whether the balance is 0. If it is 0, the process can be ended directly; if it is not 0, go to step 5;

步骤5、POS终端向POSP发送数据清空撤销请求;Step 5, the POS terminal sends a data clearing and revocation request to the POSP;

步骤6、POSP向网络侧服务器转发该数据清空撤销请求;Step 6, POSP forwards the data clearing and revocation request to the network side server;

步骤7、网络侧服务器将电子现金账户状态修改为正常状态;Step 7. The server on the network side modifies the status of the electronic cash account to a normal status;

步骤8、网络侧服务器向第三方服务器发送电子现金账户余额确认消息;Step 8. The server on the network side sends an electronic cash account balance confirmation message to the third-party server;

步骤9、若第三方服务器确认已进行数据转移操作,则分别恢复电子现金账户和贷记账户的余额;Step 9. If the third-party server confirms that the data transfer operation has been performed, restore the balances of the electronic cash account and the credit account respectively;

步骤10、第三方服务器向网络侧服务器返回确认结果;Step 10, the third-party server returns a confirmation result to the network side server;

步骤11、网络侧服务器向POSP返回确认结果;Step 11, the network side server returns a confirmation result to the POSP;

步骤12、POSP转发确认结果给POS终端。Step 12. The POSP forwards the confirmation result to the POS terminal.

具体实施时,若用户选择是,即重新发起数据清空和数据转移操作时,由于之前首次进行数据和数据转移操作,可能导致智能卡电子现金账户余额与网络侧服务器电子现金账户余额不一致,同时,网络侧服务器记录的电子现金账户状态也可能存在多种可能,例如,1)若步骤S308和步骤S309出现异常导致POS终端超时无响应时,由于智能卡没有接收到数据清空指令,从而,智能卡电子现金账户余额不为0,网络侧服务器记录的电子现金账户状态为待清空状态;2)若步骤S310出现异常导致POS终端超时无响应时,由于NFC已经接收到数据清空指令并清空自身存储的电子现金账户余额,此时,智能卡电子现金账户余额为0,网络侧服务器记录的电子现金账户状态为待清空状态;3)若步骤S315~步骤S317任一步出现异常,导致网络侧服务器无法向POS终端返回数据转移结果,进而导致POS终端超时无响应,此时,智能卡电子现金账户余额为0,网络侧服务器记录的电子现金账户状态为待清空状态;4)若步骤S320出现异常导致POS终端超时无响应时,由于NFC已经接收到数据清空指令并清空自身存储的电子现金账户余额,且网络侧服务器已向第三方服务器发送数据转移请求,此时,智能卡电子现金账户余额为0,网络侧服务器记录的电子现金账户状态为注销状态;During specific implementation, if the user selects Yes, that is, when the data clearing and data transfer operations are reinitiated, the balance of the electronic cash account of the smart card may be inconsistent with the balance of the electronic cash account of the server on the network side due to the data and data transfer operations performed for the first time before. There may also be multiple possibilities for the status of the electronic cash account recorded by the side server. For example, 1) if an abnormality occurs in steps S308 and S309 and the POS terminal does not respond due to timeout, because the smart card has not received the data clearing command, the smart card electronic cash account The balance is not 0, and the status of the electronic cash account recorded by the server on the network side is pending clearing; 2) If an exception occurs in step S310 and the POS terminal does not respond due to timeout, since the NFC has received the data clearing command and cleared the electronic cash account stored by itself Balance, at this time, the balance of the smart card electronic cash account is 0, and the status of the electronic cash account recorded by the network side server is pending clearing; 3) If any abnormality occurs in steps S315 to S317, the network side server cannot return data to the POS terminal The result of the transfer results in no response from the POS terminal overtime. At this time, the balance of the smart card electronic cash account is 0, and the status of the electronic cash account recorded by the server on the network side is pending clearing; 4) If an abnormality occurs in step S320 and the POS terminal does not respond after timeout , since the NFC has received the data clearing instruction and cleared the balance of the electronic cash account stored by itself, and the network side server has sent a data transfer request to the third-party server, at this time, the balance of the smart card electronic cash account is 0, and the electronic cash account recorded by the network side server The status of the cash account is canceled;

基于此,本发明实施例中,重新发起数据清空和数据转移操作,可以根据智能卡电子现金账户余额与网络侧服务器记录的电子现金账户状态进行处理,以下分别介绍之。Based on this, in the embodiment of the present invention, re-initiating data clearing and data transfer operations can be processed according to the balance of the smart card electronic cash account and the status of the electronic cash account recorded by the network side server, which will be introduced separately below.

实施例五Embodiment five

一、智能卡电子现金账户余额不为0,且网络侧服务器记录的电子现金账户状态为待清空状态(步骤S308或者步骤S309发生异常)1. The balance of the electronic cash account of the smart card is not 0, and the status of the electronic cash account recorded by the server on the network side is pending clearing (an exception occurs in step S308 or step S309)

在这种情况下,可以重新发起数据清空操作和数据转移操作,如图5所示,为其实施流程示意图,可以包括以下步骤:In this case, the data clearing operation and data transfer operation can be re-initiated, as shown in Figure 5, which is a schematic diagram of the implementation process, which can include the following steps:

S501、POS终端受理用户的销户申请;S501. The POS terminal accepts the user's account cancellation application;

S502、POS终端读取智能卡信息;S502. The POS terminal reads the smart card information;

S503、智能卡返回卡号和电子现金账户余额;S503. The smart card returns the card number and electronic cash account balance;

S504、POS终端将向POSP发送数据清空请求;S504, the POS terminal will send a data clearing request to the POSP;

S505、POSP向网络侧服务器转发数据清空请求;S505. The POSP forwards the data clearing request to the network side server;

S506、网络侧服务器确定智能卡电子现金账户余额不为0以及自身存储的电子现金账户状态为待清空状态;S506. The server on the network side determines that the balance of the electronic cash account of the smart card is not 0 and the status of the electronic cash account stored by itself is a state to be cleared;

S507、网络侧服务器组装余额清0脚本;S507. The server on the network side assembles a script for clearing the balance;

由于步骤S508~步骤S522的实施与步骤S307~步骤S321相同,这里不再赘述。Since the implementation of step S508-step S522 is the same as that of step S307-step S321, details will not be repeated here.

实施例六Embodiment six

二、NFC电子现金账户余额为0,且网络侧服务器记录的电子现金账户状态为待清空状态(步骤S310发生异常)2. The balance of the NFC electronic cash account is 0, and the status of the electronic cash account recorded by the server on the network side is pending clearing (an exception occurs in step S310)

在这种情况下,说明智能卡电子现金账户余额已经清空,只是POS终端接收数据清空结果超时,此时,网络侧服务器只需扣除本地存储的电子现金账户余额,并继续后续的数据转移操作步骤(步骤S315~步骤S321)即可,如图6所示,为其实施流程示意图,可以包括以下步骤:In this case, it means that the balance of the electronic cash account of the smart card has been cleared, but the result of clearing the data received by the POS terminal has timed out. At this time, the server on the network side only needs to deduct the balance of the electronic cash account stored locally, and continue the subsequent data transfer operation steps ( Step S315~step S321), as shown in Figure 6, it is a schematic diagram of the implementation process, which may include the following steps:

S601、POS终端受理用户的销户申请;S601. The POS terminal accepts the user's account cancellation application;

S602、POS终端读取智能卡信息;S602. The POS terminal reads the smart card information;

S603、智能卡返回卡号和电子现金账户余额;S603. The smart card returns the card number and electronic cash account balance;

S604、POS终端将向POSP发送数据清空请求;S604, the POS terminal will send a data clearing request to the POSP;

S605、POSP向网络侧服务器转发数据清空请求;S605. The POSP forwards the data clearing request to the network side server;

S606、网络侧服务器确定智能卡电子现金账户余额为0以及自身存储的电子现金账户状态为待清空状态;S606. The network side server determines that the balance of the electronic cash account of the smart card is 0 and the status of the electronic cash account stored by itself is a state to be cleared;

S607、网络侧服务器扣除自身存储的电子现金账户中的余额;S607. The network side server deducts the balance in the electronic cash account stored by itself;

具体实施时,由于步骤S608~步骤S614的实施与步骤S315~步骤S321相同,这里不再赘述。During specific implementation, since the implementation of steps S608 to S614 is the same as that of steps S315 to S321, details will not be repeated here.

实施例七Embodiment seven

三、NFC电子现金账户余额为0,且网络侧服务器记录的电子现金账户状态为转移状态(步骤S315~步骤S317发生异常)3. The balance of the NFC electronic cash account is 0, and the status of the electronic cash account recorded by the server on the network side is in the transfer state (abnormalities occur in steps S315 to S317)

在这种情况下,说明智能卡电子现金账户已经清空,数据转移流程出现异常,此时,网络侧服务器首先要判断数据转移是否成功,如果数据转移成功,网络侧服务器可以直接将本地记录的电子现金账户状态修改为注销状态,并继续执行步骤S319~步骤S321即可;如果数据转移失败,网络侧服务器在需要首先向第三方服务器发送数据恢复请求,该数据恢复请求中携带有第一待清空数据数量;在接收到数据恢复成功消息之后,向第三方服务器再次发送数据转移请求,其中,数据恢复成功消息为第三方服务器根据第一待清空数据数量恢复数据后发送,如图7所示,为其实施流程示意图,可以包括以下步骤:In this case, it means that the smart card electronic cash account has been cleared, and the data transfer process is abnormal. At this time, the server on the network side must first determine whether the data transfer is successful. If the data transfer is successful, the server on the network side can directly transfer the locally recorded electronic cash Change the account status to logout status, and continue to execute steps S319 to S321; if the data transfer fails, the network side server needs to first send a data recovery request to the third-party server, and the data recovery request carries the first data to be cleared Quantity; after receiving the data recovery success message, send the data transfer request to the third-party server again, wherein, the data recovery success message is sent after the third-party server restores the data according to the first data quantity to be cleared, as shown in Figure 7, is Its implementation flow diagram may include the following steps:

S701、POS终端受理用户的销户申请;S701. The POS terminal accepts the user's account cancellation application;

S702、POS终端读取智能卡信息;S702. The POS terminal reads the smart card information;

S703、智能卡返回卡号和电子现金账户余额;S703. The smart card returns the card number and electronic cash account balance;

S704、POS终端将向POSP发送数据清空请求;S704. The POS terminal will send a data clearing request to the POSP;

S705、POSP向网络侧服务器转发数据清空请求;S705. The POSP forwards the data clearing request to the network side server;

S706、网络侧服务器确定智能卡电子现金账户余额为0以及自身存储的电子现金账户状态为转移状态;S706. The network side server determines that the balance of the electronic cash account of the smart card is 0 and the state of the electronic cash account stored by itself is a transfer state;

S707、网络侧服务器判断数据转移是否成功;S707. The network side server judges whether the data transfer is successful;

其中,在余额转移未成功时,执行步骤S708~步骤S716:Among them, when the balance transfer is not successful, execute steps S708 to S716:

S708、网络侧服务器向第三方服务器发送数据恢复请求;S708. The network side server sends a data recovery request to a third-party server;

该数据恢复请求中携带有第一待清空数据数量。The data recovery request carries the first amount of data to be cleared.

S709、第三方服务器向网络侧服务器返回数据恢复成功结果;S709. The third-party server returns a data recovery success result to the network side server;

其中,第三方服务器根据第一待清空数据数量恢复数据。Wherein, the third-party server restores the data according to the first amount of data to be cleared.

具体实施时,由于步骤S710~步骤S716的实施与步骤S315~步骤S321相同,这里不再赘述。During specific implementation, since the implementation of steps S710 to S716 is the same as that of steps S315 to S321, details will not be repeated here.

在余额转移成功时,执行步骤S717~步骤S720:When the balance transfer is successful, execute step S717~step S720:

S717、网络侧服务器将电子现金账户状态修改为注销状态;S717. The server on the network side modifies the status of the electronic cash account to a canceled status;

S718、网络侧服务器向POSP返回数据转移结果;S718. The network side server returns the data transfer result to the POSP;

S719、POSP向POS终端转发数据转移结果;S719. The POSP forwards the data transfer result to the POS terminal;

S720、POS终端显示数据转移结果。S720. The POS terminal displays the data transfer result.

实施例八Embodiment eight

四、NFC电子现金账户余额为0,且网络侧服务器记录的电子现金账户状态为注销状态(步骤S320发生异常)4. The balance of the NFC electronic cash account is 0, and the status of the electronic cash account recorded by the server on the network side is a canceled state (an exception occurs in step S320)

这种情况下,说明数据转移已经成功,网络侧服务器直接向POS终端返回数据转移成功的确认消息即可,如图8所示,为其具体的实施流程示意图,可以包括以下步骤:In this case, it means that the data transfer has been successful, and the server on the network side directly returns a confirmation message that the data transfer is successful to the POS terminal, as shown in Figure 8, which is a schematic diagram of a specific implementation process, which may include the following steps:

S801、POS终端受理用户的销户申请;S801. The POS terminal accepts the user's account cancellation application;

S802、POS终端读取智能卡信息;S802. The POS terminal reads the smart card information;

S803、智能卡返回卡号和电子现金账户余额;S803. The smart card returns the card number and electronic cash account balance;

S804、POS终端将向POSP发送数据清空请求;S804, the POS terminal will send a data clearing request to the POSP;

S805、POSP向网络侧服务器转发数据清空请求;S805. The POSP forwards the data clearing request to the network side server;

S806、网络侧服务器确定智能卡电子现金账户余额为0以及自身存储的电子现金账户状态为注销状态;S806. The server on the network side determines that the balance of the electronic cash account of the smart card is 0 and that the status of the electronic cash account stored by itself is a canceled state;

S807、网络侧服务器向POSP返回数据转移结果;S807. The network side server returns the data transfer result to the POSP;

S808、POSP向POS终端转发数据转移结果;S808. The POSP forwards the data transfer result to the POS terminal;

S809、POS终端显示数据转移结果。S809. The POS terminal displays the data transfer result.

需要说明的是,上述四种情况的处理由于均是再次发起数据清空和数据转移操作,因此,图3所示的步骤S301~步骤S305在上述各种情况的处理流程中均需执行,只是在后续的处理步骤根据智能卡电子现金余额和网络侧服务器记录的电子现金账户状态而各自执行不同的操作。It should be noted that, since the processing of the above four cases is to initiate data clearing and data transfer operations again, steps S301 to S305 shown in Fig. Subsequent processing steps perform different operations according to the smart card electronic cash balance and the electronic cash account status recorded by the network side server.

基于同一发明构思,本发明实施例中还提供了一种网络侧数据处理装置、终端侧数据处理装置、数据处理系统及相关设备,由于上述装置、设备及系统解决问题的原理与数据处理方法相似,因此上述装置、设备及系统的实施可以参见方法的实施,重复之处不再赘述。Based on the same inventive concept, the embodiment of the present invention also provides a network-side data processing device, a terminal-side data processing device, a data processing system and related equipment. Since the problem-solving principles of the above-mentioned devices, devices and systems are similar to the data processing method , so the implementation of the above-mentioned device, equipment and system can refer to the implementation of the method, and the repetition will not be repeated.

实施例九Embodiment nine

如图9所示,为本发明实施例提供的网络侧数据处理装置的结构示意图,包括:As shown in FIG. 9, it is a schematic structural diagram of a network-side data processing device provided by an embodiment of the present invention, including:

接收单元901,用于接收销售点POS终端发送的第一数据清空请求,所述第一数据清空请求中携带有统一用户标识,所述统一用户标识为所述POS终端从智能卡获取的;The receiving unit 901 is configured to receive a first data clearing request sent by a point-of-sale POS terminal, wherein the first data clearing request carries a unified user identification, and the unified user identification is obtained by the POS terminal from a smart card;

修改单元902,用于将所述统一用户标识对应的数据状态修改为待清空状态;以及在第一判断单元的判断结果为否时,将所述统一用户标识对应的数据状态修改为正常状态。The modifying unit 902 is configured to modify the data status corresponding to the unified user ID to a status to be cleared; and modify the data status corresponding to the unified user ID to a normal status when the judgment result of the first judging unit is no.

发送单元903,用于向所述POS终端发送数据清空指令;A sending unit 903, configured to send a data clearing instruction to the POS terminal;

第一判断单元904,用于若接收到所述POS终端返回的数据清空结果时,根据所述数据清空结果判断数据清空是否成功;The first judging unit 904 is configured to judge whether the data clearing is successful according to the data clearing result if the data clearing result returned by the POS terminal is received;

清空单元905,在第一判断单元的判断结果为是时,清空本地存储的、所述统一用户标识对应的数据数量。The clearing unit 905 clears the amount of data corresponding to the unified user identifier stored locally when the judgment result of the first judgment unit is yes.

其中,第一数据清空请求中还携带有第一待清空数据数量,所述第一待清空数据数量为所述POS终端从智能卡获取的;以及Wherein, the first data clearing request also carries a first data quantity to be cleared, and the first data quantity to be cleared is obtained by the POS terminal from a smart card; and

上述数据处理装置,还可以包括获取单元,其中:The above data processing device may also include an acquisition unit, wherein:

接收单元901,还用于若未接收到所述POS终端返回的所述数据清空结果时,接收所述POS终端发送的第二数据清空请求,所述第二数据清空请求中携带有所述统一用户标识和第二待清空数据数量,所述第二待清空数据数量为所述POS终端从智能卡重新获取的;The receiving unit 901 is further configured to receive a second data clearing request sent by the POS terminal if the data clearing result returned by the POS terminal is not received, and the second data clearing request carries the unified User identification and the second amount of data to be cleared, the second amount of data to be cleared is re-acquired by the POS terminal from the smart card;

获取单元,用于获取本地记录的所述统一用户标识对应的数据状态;An acquisition unit, configured to acquire the data status corresponding to the unified user identifier recorded locally;

发送单元903,还用于若所述第二待清空数据数量不为零且所述统一用户标识对应的数据状态为待清空状态,重新向所述POS终端发送数据清空指令;The sending unit 903 is further configured to resend a data clearing instruction to the POS terminal if the second amount of data to be cleared is not zero and the data state corresponding to the unified user identifier is a state to be cleared;

清空单元905,还用于若所述第二待清空数据数量为零且所述统一用户标识对应的数据状态为待清空状态,清空本地存储的、所述统一用户标识对应的数据数量。The clearing unit 905 is further configured to clear the locally stored data quantity corresponding to the unified user identifier if the second amount of data to be cleared is zero and the data state corresponding to the unified user identifier is in the state to be cleared.

具体实施时,接收单元901,还用于若未接收到所述POS终端返回的所述数据清空结果,接收所述POS终端发送的数据清空撤销请求;During specific implementation, the receiving unit 901 is further configured to receive a data clearing cancellation request sent by the POS terminal if the data clearing result returned by the POS terminal is not received;

修改单元902,还用于将所述统一用户标识对应的数据状态修改为正常状态。The modifying unit 902 is further configured to modify the data state corresponding to the unified user identifier to a normal state.

具体实施时,发送单元903,还用于在清空单元905清空本地存储的、所述统一用户标识对应的数据数量之后,向第三方服务器发送数据转移请求,该数据转移请求中携带有所述统一用户标识和待转移数据数量,该待转移数据数量与所述第一待清空数据数量相同;以及若数据转移成功,向所述POS终端返回数据转移成功的确认消息;若数据转移失败,向POS终端返回数据转移失败的确认消息;During specific implementation, the sending unit 903 is further configured to send a data transfer request to a third-party server after the clearing unit 905 clears the locally stored data corresponding to the unified user identifier, and the data transfer request carries the unified user identifier. User ID and data quantity to be transferred, the data quantity to be transferred is the same as the first data quantity to be emptied; and if the data transfer is successful, return a confirmation message that the data transfer is successful to the POS terminal; if the data transfer fails, send a confirmation message to the POS terminal The terminal returns a confirmation message of data transfer failure;

修改单元902,还用于在清空本地存储的、该统一用户标识对应的数据数量时,将该统一用户标识对应的数据状态修改为转移状态;以及若数据转移成功,将该统一用户标识对应的数据状态修改为注销状态;The modifying unit 902 is further configured to modify the data status corresponding to the unified user ID to a transfer status when clearing the locally stored data corresponding to the unified user ID; The data status is changed to logout status;

接收单元901,还用于接收第三方服务器返回的数据转移成功消息和数据转移失败消息。The receiving unit 901 is further configured to receive a data transfer success message and a data transfer failure message returned by the third-party server.

具体实施时,网络侧数据处理装置,还可以包括第二判断单元,其中:During specific implementation, the network-side data processing device may further include a second judging unit, wherein:

接收单元901,用于接收POS终端发送的第三数据清空请求,该第三数据清空请求中携带有所述统一用户标识和第三待清空数据数量,第三数据清空请求为POS终端在未接收到数据转移成功或者失败的确认消息时发送;The receiving unit 901 is configured to receive a third data clearing request sent by the POS terminal, the third data clearing request carries the unified user identification and the third data quantity to be cleared, and the third data clearing request is that the POS terminal has not received Sent when the confirmation message of data transfer success or failure is reached;

获取单元,还用于获取本地记录的该统一用户标识对应的数据状态;The obtaining unit is also used to obtain the data state corresponding to the unified user identifier recorded locally;

发送单元903,还用于若第三待清空数据数量为零且本地记录的当前数据状态为注销状态,向POS终端返回数据转移成功的确认消息;以及在第二判断单元的判断结果为否时,向第三方服务器发送数据恢复请求,该数据恢复请求中携带有第一待清空数据数量;并在接收到数据恢复成功消息之后,向第三方服务器再次发送数据转移请求,其中,数据恢复请求成功消息为所述第三方服务器根据所述第一待清空数据数量恢复数据后发送;The sending unit 903 is also used to return a confirmation message that the data transfer is successful to the POS terminal if the third amount of data to be cleared is zero and the current data state of the local record is a logout state; and when the judgment result of the second judging unit is No , send a data recovery request to the third-party server, the data recovery request carries the first amount of data to be cleared; and after receiving the data recovery success message, send the data transfer request to the third-party server again, wherein the data recovery request is successful The message is sent by the third-party server after recovering data according to the first amount of data to be cleared;

第二判断单元,还用于若第三待清空数据数量为零且本地记录的当前数据状态为转移状态,判断数据转移是否成功;The second judging unit is also used to judge whether the data transfer is successful if the third amount of data to be cleared is zero and the current data state of the local record is a transfer state;

修改单元902,还用于在第二判断单元的判断结果为是时,将本地记录的该统一用户标识对应的数据状态修改为注销状态。The modifying unit 902 is further configured to modify the locally recorded data state corresponding to the unified user identifier to a logout state when the judgment result of the second judging unit is yes.

具体实施时,本发明实施例提供的网络侧数据处理装置还可以包括第三判断单元,其中:During specific implementation, the network-side data processing device provided in the embodiment of the present invention may further include a third judging unit, wherein:

接收单元901,还用于接收POS终端发送的数据清空撤销请求,该数据清空撤销请求为POS终端在未接收到数据转移成功或者失败的确认消息时发送;The receiving unit 901 is also configured to receive a data clearing and revocation request sent by the POS terminal, the data clearing and revocation request is sent by the POS terminal when the confirmation message of successful or failed data transfer is not received;

第三判断单元,还用于判断数据转移是否成功;The third judging unit is also used to judge whether the data transfer is successful;

发送单元903,还用于在第三判断单元的判断结果为是时,向第三方服务器发送数据恢复请求,该数据恢复请求中携带有第一待清空数据量;The sending unit 903 is further configured to send a data restoration request to a third-party server when the judgment result of the third judging unit is yes, and the data restoration request carries the first amount of data to be cleared;

修改单元902,还用于在接收到第三方服务器返回的数据恢复成功消息之后或者在第三判断单元的判断结果为否时,将统一用户标识对应的数据状态修改为正常状态,数据恢复成功消息为第三方服务器根据所述第一待清空数据量恢复数据之后发送。The modification unit 902 is further configured to modify the data state corresponding to the unified user identification to a normal state after receiving the data restoration success message returned by the third-party server or when the judgment result of the third judging unit is No, and the data restoration success message It is sent after the third-party server restores data according to the first data volume to be cleared.

具体实施时,本发明实施例提供的网络侧数据处理装置可以设置在网络侧服务器中。需要说明的是,本发明实施例中涉及的网络侧服务器除了包括上述单元模块以外,还可以包含以下功能模块:支付处理模块,用于实现远程支付管理功能和现场支付管理功能;支付管理模块,用于实现用户管理和商户管理功能;账户管理模块,用于实现主账户、电子现金账户和电子现金账户账户管理功能;对账清算模块,用于实现与第三方服务器对账清算功能;还应包括前置模块,例如接入网关、支付网关和Portal等。During specific implementation, the network-side data processing apparatus provided in the embodiment of the present invention may be set in a network-side server. It should be noted that, in addition to the above-mentioned unit modules, the network-side server involved in the embodiment of the present invention may also include the following functional modules: a payment processing module, which is used to realize remote payment management functions and on-site payment management functions; a payment management module, It is used to realize the user management and business management functions; the account management module is used to realize the main account, electronic cash account and electronic cash account account management functions; Including front-end modules, such as access gateway, payment gateway and Portal, etc.

实施例十Embodiment ten

如图10所示,为本发明实施例提供的终端侧数据处理装置的结构示意图,包括:As shown in FIG. 10, it is a schematic structural diagram of a terminal-side data processing device provided by an embodiment of the present invention, including:

获取单元1001,用于获取智能卡的统一用户标识和待清空数据数量;An acquisition unit 1001, configured to acquire the unified user identification of the smart card and the amount of data to be cleared;

发送单元1002,用于向网络侧服务器发送数据清空请求,该数据清空请求中携带有获取的统一用户标识和待清空数据数量;The sending unit 1002 is configured to send a data clearing request to the network side server, where the data clearing request carries the acquired unified user identifier and the amount of data to be cleared;

接收单元1003,用于接收所述网络侧服务器发送的数据清空指令;A receiving unit 1003, configured to receive a data clearing instruction sent by the network side server;

转发单元1004,用于向智能卡转发所述数据清空指令;以及若接收到智能卡返回的数据清空结果时,向网络侧服务器转发所述数据清空结果。The forwarding unit 1004 is configured to forward the data clearing instruction to the smart card; and forward the data clearing result to the network side server if the data clearing result returned by the smart card is received.

具体实施时,终端侧数据处理装置还可以包括:During specific implementation, the terminal-side data processing device may also include:

接收单元,用于接收所述网络侧服务器发送的数据转移成功或者失败的确认消息。The receiving unit is configured to receive a confirmation message of success or failure of data transfer sent by the server on the network side.

具体实施时,终端侧数据处理装置还可以包括提示单元和控制单元,其中:During specific implementation, the terminal-side data processing device may also include a prompt unit and a control unit, wherein:

提示单元,用于若在指定时长内,未接收到所述智能卡返回的数据清空结果或者未接收到网络侧服务器发送的数据转移成功或者失败的确认消息时,提示是否再次进行数据清空操作;The prompt unit is used to prompt whether to perform the data clearing operation again if the data clearing result returned by the smart card is not received or the data transfer success or failure confirmation message sent by the network side server is not received within a specified time period;

获取单元1001,还用于若接收到不再进行数据清空指示时,再次获取智能卡的数据数量;The acquiring unit 1001 is further configured to acquire the data quantity of the smart card again if an indication of no longer performing data clearing is received;

发送单元1002,还用于若获取单元再次获取的数据数量不为零,向网络侧服务器发送数据清空撤销请求;以及若接收到再次进行数据清空指示时,向所述网络侧服务器重新发送数据清空请求;The sending unit 1002 is further configured to send a data clearing cancellation request to the network side server if the amount of data acquired again by the acquiring unit is not zero; and resend the data clearing request to the network side server if an instruction to perform data clearing again is received. ask;

控制单元,用于若获取单元1001再次获取的数据数量为零,结束流程。The control unit is configured to end the process if the amount of data acquired again by the acquiring unit 1001 is zero.

本发明实施例提供的终端侧数据处理装置可以设置于POS终端中,需要说明的时,本发明实施例中涉及的POS终端为专用POS终端,其除了具备上述单元模块以下,至少包括以下功能模块:终端交易模块,用于实现充值、信息查询、消费、清空余额和撤销等功能;终端管理模块,用于实现应用管理、系统管理和操作人员管理功能;判断模块,用于对POS终端是否超时响应进行判断,具体实施时,POS终端还应具备常规的接入模块,例如,GPRS模块,非接触通信模块和打印机等。The terminal-side data processing device provided by the embodiment of the present invention can be set in a POS terminal. When it needs to be explained, the POS terminal involved in the embodiment of the present invention is a dedicated POS terminal, which includes at least the following functional modules in addition to the above-mentioned unit modules : The terminal transaction module is used to realize functions such as recharging, information query, consumption, clearing balance and cancellation; the terminal management module is used to realize application management, system management and operator management functions; the judging module is used to check whether the POS terminal is timed out Response is judged. During specific implementation, the POS terminal should also have conventional access modules, such as GPRS modules, contactless communication modules and printers.

实施例十一Embodiment Eleven

如图11所示,为本发明实施例提供的数据处理系统的结构示意图,包括智能卡1101、POS终端1102和网络侧服务器1103,其中:As shown in Figure 11, it is a schematic structural diagram of a data processing system provided by an embodiment of the present invention, including a smart card 1101, a POS terminal 1102, and a network side server 1103, wherein:

POS终端1102,用于在进行数据清空时,获取智能卡1101的统一用户标识和第一待清空数据量;并向网络侧服务器1103发送第一数据清空请求,该第一数据清空请求中携带有获取的统一用户标识和第一待转移数据量;以及接收网络侧服务器1103在接收到第一数据清空请求之后下发的数据清空指令,所述清空指令中携带有清空脚本;并向智能卡1101转发所述数据清空指令;以及若接收到智能卡1101返回的数据清空结果时,向网络侧服务器转发该数据清空结果;The POS terminal 1102 is used to obtain the unified user ID of the smart card 1101 and the first amount of data to be cleared when data clearing is performed; and send a first data clearing request to the network side server 1103, which carries the acquisition The unified user identification and the first amount of data to be transferred; and receiving the data clearing instruction issued by the network side server 1103 after receiving the first data clearing request, the clearing script is carried in the clearing command; and forwarding the clearing script to the smart card 1101 The above data clearing instruction; and if the data clearing result returned by the smart card 1101 is received, the data clearing result is forwarded to the network side server;

智能卡1101,用于向POS终端1102提供自身的统一用户标识和第一待清空数据量;以及在接收到POS终端1102转发的数据清空指令后,清空自身的数据,并向所POS终端1102终端返回数据清空结果;The smart card 1101 is used to provide the POS terminal 1102 with its own unified user identification and the first amount of data to be cleared; and after receiving the data clearing instruction forwarded by the POS terminal 1102, clear its own data and return to the POS terminal 1102 terminal Data clearing result;

网络侧服务器1103,用于在接收到POS终端1102发送的第一数据清空请求之后,将该统一用户标识对应的数据状态修改为待清空状态;并向POS终端1102发送数据清空指令;以及若接收到POS终端1102返回的数据清空结果时,根据数据清空结果判断数据清空是否成功;如果是,清空本地存储的、统一用户标识对应的数据数量;如果否,将该统一用户标识对应的数据状态修改为正常状态。The network side server 1103 is configured to, after receiving the first data clearing request sent by the POS terminal 1102, modify the data state corresponding to the unified user identification to the state to be cleared; and send a data clearing instruction to the POS terminal 1102; and if received When the data clearing result returned by POS terminal 1102, judge whether the data clearing is successful according to the data clearing result; if yes, clear the data quantity corresponding to the unified user identification in local storage; if not, revise the data state corresponding to the unified user identification to normal state.

具体实施时,POS终端1102,还可以用于在指定时长内未接收到智能卡1101返回的数据清空结果时,提示是否再次进行数据清空操作;若接收到不再进行数据清空指示时,再次获取智能卡1101的数据数量,若再次获取的数据数量为零,结束流程;若再次获取的数据数量不为零,向网络侧服务器1103发送数据清空撤销请求;During specific implementation, the POS terminal 1102 can also be used to prompt whether to perform the data clearing operation again when the data clearing result returned by the smart card 1101 is not received within a specified period of time; 1101, if the amount of data acquired again is zero, end the process; if the amount of data acquired again is not zero, send a data clearing and revocation request to the network side server 1103;

网络侧服务器1103,还用于在接收到POS终端1102发送的数据清空撤销请求之后,将该统一用户标识对应的数据状态修改为正常状态。The network side server 1103 is further configured to modify the data state corresponding to the unified user identifier to a normal state after receiving the data clearing and revocation request sent by the POS terminal 1102 .

具体实施时,POS终端1102,还可以用于在若接收到再次进行数据清空指示时,向网络侧服务器1103发送第二数据清空请求;During specific implementation, the POS terminal 1102 may also be configured to send a second data clearing request to the network side server 1103 when receiving an instruction to perform data clearing again;

网络侧服务器1103,还用于接收到POS终端1102发送的第二数据清空请求之后,获取本地记录的统一用户标识对应的数据状态;若第二待清空数据数量不为零且统一用户标识对应的数据状态为待清空状态,重新向POS终端1102发送数据清空指令;若第二待清空数据数量为零且统一用户标识对应的数据状态为待清空状态,清空本地存储的、所述统一用户标识对应的数据数量。The network side server 1103 is further configured to obtain the data state corresponding to the unified user identification of the local record after receiving the second data clearing request sent by the POS terminal 1102; if the second data quantity to be cleared is not zero and the unified user identification corresponds to The data state is the state to be emptied, and the data clearing instruction is sent to the POS terminal 1102 again; if the second data quantity to be emptied is zero and the data state corresponding to the unified user identification is the state to be emptied, clear the locally stored, corresponding to the unified user identification. amount of data.

具体实施时,本发明实施例提供的数据处理系统,还可以包括第三方服务器1104,其中:During specific implementation, the data processing system provided by the embodiment of the present invention may also include a third-party server 1104, wherein:

网络侧服务器1103,还可以用于在清空本地存储的、所述统一用户标识对应的数据数量之后,向第三方服务器1104发送数据转移请求,该数据转移请求中携带有所述统一用户标识和待转移数据数量,该待转移数据数量与第一待清空数据数量相同;并将统一用户标识对应的数据状态修改为转移状态;若数据转移成功,向POS终端1102返回数据转移成功的确认消息,并将所述统一用户标识对应的数据状态修改为注销状态;若数据转移失败,向POS终端1102返回数据转移失败的确认消息;The network side server 1103 may also be configured to send a data transfer request to the third-party server 1104 after clearing the amount of data stored locally and corresponding to the unified user identifier, the data transfer request carrying the unified user identifier and the pending Transfer data quantity, the data quantity to be transferred is the same as the first data quantity to be emptied; and the data state corresponding to the unified user identification is modified to the transfer state; if the data transfer is successful, return a confirmation message that the data transfer is successful to the POS terminal 1102, and Modify the data state corresponding to the unified user identification to logout state; if the data transfer fails, return a confirmation message that the data transfer fails to the POS terminal 1102;

POS终端1102,还用于在指定时长内,接收到网络侧服务器1103发送的数据转移成功或者失败的确认消息时,结束流程。The POS terminal 1102 is further configured to end the process when receiving a confirmation message of data transfer success or failure sent by the network side server 1103 within a specified time period.

具体实施时,POS终端1102,还用于若在指定时长内,未接收到所述网络侧服务器发送的数据转移成功或者失败的确认消息时,提示是否再次进行数据清空操作;接收到不再进行数据清空指示时,重新获取智能卡1101的数据数量;若重新获取的数据数量为零,结束流程;若重新获取的数据数量不为零,向网络侧服务器1103发送数据清空撤销请求;During specific implementation, the POS terminal 1102 is also used to prompt whether to perform the data clearing operation again if the confirmation message of the success or failure of the data transfer sent by the network side server is not received within the specified time length; When the data is cleared, reacquire the data quantity of the smart card 1101; if the reacquired data quantity is zero, end the process; if the reacquired data quantity is not zero, send a data clearing cancellation request to the network side server 1103;

网络侧服务器1103,还用于接收到数据清空撤销请求之后,判断数据转移是否成功;如果是,向第三方服务器1104发送数据恢复请求,该数据恢复请求中携带有第一待清空数据数量,在接收到所述第三方服务器1104返回的数据恢复成功消息之后,将该统一用户标识对应的数据状态修改为正常状态,其中,数据恢复成功消息为第三方服务器1104根据所述第一待清空数据量恢复数据之后发送;如果否,将该统一用户标识对应的数据状态修改为正常状态;The network side server 1103 is also used to judge whether the data transfer is successful after receiving the data clearing and revocation request; if so, send a data recovery request to the third-party server 1104, which carries the first data quantity to be cleared in the data recovery request. After receiving the data recovery success message returned by the third-party server 1104, modify the data status corresponding to the unified user identifier to a normal status, wherein the data recovery success message is the third-party server 1104 according to the first data volume to be cleared Send after restoring the data; if not, modify the data status corresponding to the unified user ID to normal status;

第三方服务器1104,还用于在接收到网络侧服务器1103发送的数据恢复请求之后,根据第一待清空数据数量恢复数据;并在数据恢复成功之后,向网络侧服务器1103返回数据恢复成功消息。The third-party server 1104 is further configured to recover data according to the first data quantity to be cleared after receiving the data recovery request sent by the network-side server 1103; and return a data recovery success message to the network-side server 1103 after the data recovery is successful.

具体实施时,POS终端1102,还可以用于若接收到再次进行数据清空指示时,向网络侧服务器1103发送第三数据清空请求,该第三数据清空请求中携带有统一用户标识和第三待清空数据数量;During specific implementation, the POS terminal 1102 can also be used to send a third data clearing request to the network side server 1103 when receiving an instruction to perform data clearing again. Clear data quantity;

网络侧服务器1103,还可以用于在接收到第三数据清空请求之后,获取本地记录的所述统一用户标识对应的数据状态;若第三待清空数据数量为零且本地记录的当前数据状态为注销状态,向POS终端1102返回数据转移成功的确认消息;第三待清空数据数量为零且本地记录的当前数据状态为转移状态,判断数据转移是否成功;若是,将本地记录的所述统一用户标识对应的数据状态修改为注销状态;若否,向第三方服务器发送数据恢复请求,该数据恢复请求中携带有第一待清空数据数量恢复数据;并在接收到数据恢复成功消息之后,向第三方服务器再次发送数据转移请求;The network side server 1103 may also be configured to obtain the data state corresponding to the unified user identifier of the local record after receiving the third data clearing request; if the third data to be cleared quantity is zero and the current data state of the local record is Logout state, return a confirmation message that the data transfer is successful to the POS terminal 1102; the third number of data to be cleared is zero and the current data state of the local record is the transfer state, and it is judged whether the data transfer is successful; if so, the unified user of the local record The data status corresponding to the identification is changed to the logout status; if not, a data recovery request is sent to the third-party server, and the data recovery request carries the recovery data of the first data quantity to be cleared; and after receiving the data recovery success message, the The third-party server sends the data transfer request again;

第三方服务器1104,还用于在接收到网络侧服务器1103发送的数据恢复请求之后,根据第一待清空数据数量恢复数据;并在数据恢复成功之后,向所述网络侧服务器返回数据恢复成功消息。The third-party server 1104 is further configured to recover data according to the first data quantity to be cleared after receiving the data recovery request sent by the network-side server 1103; and return a data recovery success message to the network-side server after the data recovery is successful .

本发明实施例提供的数据处理方法,网络侧服务器接收POS终端发送的数据清空请求,在该数据清空请求中携带有统一用户标识,该统一用户标识为POS终端从智能卡获取的,网络侧服务器根据该统一用户标识将其对应的数据状态修改为待清空状态,并向POS终端发送数据清空指令,并根据POS终端返回的的数据清空结果判断数据清空是否成功,如果成功,则清空本地存储的、该统一用户标识对应的数据数量,如果失败,将该统一用户标识对应的数据状态修改为正常状态。通过上述过程,实现了对待清空数据的处理,同时,由于网络侧服务器记录数据清空过程中数据状态的变化,当数据清空失败时,将待清空数据状态恢复为正常,从而保证了数据处理过程中的安全性。In the data processing method provided by the embodiment of the present invention, the network-side server receives the data clearing request sent by the POS terminal, and the data clearing request carries a unified user identifier, which is obtained by the POS terminal from the smart card, and the network-side server according to The unified user ID modifies its corresponding data state to the state to be cleared, and sends a data clearing command to the POS terminal, and judges whether the data clearing is successful according to the data clearing result returned by the POS terminal, and if successful, clears the locally stored, The amount of data corresponding to the unified user ID. If it fails, modify the data status corresponding to the unified user ID to a normal status. Through the above process, the processing of the data to be cleared is realized. At the same time, because the network side server records the change of the data state during the data clearing process, when the data clearing fails, the state of the data to be cleared will be restored to normal, thus ensuring the data processing process. security.

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

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

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

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

尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While preferred embodiments of the present invention have been described, additional changes and modifications can be made to these embodiments by those skilled in the art once the basic inventive concept is appreciated. Therefore, it is intended that the appended claims be construed to cover the preferred embodiment as well as all changes and modifications which fall within the scope of the invention.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.

Claims (26)

1. a data processing method, is characterized in that, comprising:
Receive the first data that point of sale POS terminal sends and empty request, described first data empty in request and carry unification user mark, and described unification user is designated that described POS terminal obtains from smart card;
Revise data mode corresponding to described unification user mark for treating empty;
Data flush instructions is sent to described POS terminal;
When the data that described POS terminal returns if receive empty result, empty result according to described data and judge that data empty whether success;
If so, data bulk corresponding to local that store, described unification user mark is emptied;
If not, the data mode revising described unification user mark corresponding is normal condition.
2. the method for claim 1, is characterized in that, described first data empty in request and also carry the first data bulk to be emptied, and described first data bulk to be emptied is that described POS terminal obtains from smart card; And
When the described data that described POS terminal returns if do not receive empty result, described method, also comprises:
The second data receiving the transmission of described POS terminal empty request, and described second data empty in request and carry described unification user mark and the second data bulk to be emptied, and described second data bulk to be emptied is that described POS terminal obtains again from smart card;
Obtain the data mode that the described unification user mark of local record is corresponding;
If described second data bulk to be emptied is non-vanishing and described unification user identifies corresponding data mode for treating empty, again send data flush instructions to described POS terminal;
If described second data bulk to be emptied is zero and described unification user identifies corresponding data mode for treating empty, empty the data bulk of local that store, described unification user mark correspondence.
3. the method for claim 1, is characterized in that, when the described data that described POS terminal returns if do not receive empty result, also comprises:
The data receiving the transmission of described POS terminal empty the request of cancelling;
Data mode corresponding for described unification user mark is revised as normal condition.
4. method as claimed in claim 2, is characterized in that, also comprise:
After emptying data bulk corresponding to local that store, described unification user mark, data transfer request is sent to third-party server, carry described unification user mark and data bulk to be transferred in described data transfer request, described data bulk to be transferred is identical with described first data bulk to be emptied;
Data mode corresponding for described unification user mark is revised as transfering state;
Receive data batchmove success message or data batchmove failed message that described third-party server returns;
If data batchmove success, data mode corresponding for described unification user mark is revised as exit state, to the confirmation message that described POS terminal return data transfer is successful;
If data batchmove failure, to the acknowledge message that described POS terminal return data transfer is failed.
5. method as claimed in claim 4, is characterized in that, also comprise:
The 3rd data receiving the transmission of described POS terminal empty request, described 3rd data empty in request and carry described unification user mark and the 3rd data bulk to be emptied, and it is that described POS terminal sends when not receiving data batchmove success or failed acknowledge message that the 3rd data empty request;
Obtain the data mode that the described unification user mark of local record is corresponding;
If the 3rd data bulk to be emptied is zero and the current data state of local record is exit state, to the confirmation message that described POS terminal return data transfer is successful;
If the 3rd data bulk to be emptied is zero and the current data state of local record is transfering state, judge that whether data batchmove is successful; When judged result is for being, data mode corresponding for the described unification user mark of local record is revised as exit state; When judged result is no, sends data recovery request to third-party server, in described data recovery request, carry the first data bulk to be emptied; After receiving date restoring success message, again send data transfer request to third-party server, wherein, date restoring success message is that described third-party server sends after emptying data bulk and recovering data according to described first.
6. method as claimed in claim 4, is characterized in that, also comprise:
The data receiving the transmission of described POS terminal empty the request of cancelling, and it is that described POS terminal sends when not receiving data batchmove success or failed acknowledge message that described data empty the request cancelled;
Judge that whether data batchmove is successful;
If, data recovery request is sent to third-party server, the first data bulk to be emptied is carried in described data recovery request, after receiving the date restoring success message that described third-party server returns, data mode corresponding for described unification user mark is revised as normal condition, and described date restoring success message is send after described third-party server recovers data according to described first data volume to be emptied;
If not, data mode corresponding for described unification user mark is revised as normal condition.
7. a data processing equipment, is characterized in that, comprising:
Receiving element, the first data sent for receiving point of sale POS terminal empty request, and described first data empty in request and carry unification user mark, and described unification user is designated that described POS terminal obtains from smart card;
Amendment unit, treats empty for data mode corresponding for described unification user mark being revised as; And when the judged result of the first judging unit is no, data mode corresponding for described unification user mark is revised as normal condition;
Transmitting element, for sending data flush instructions to described POS terminal;
First judging unit, if when the data returned for receiving described POS terminal emptying result, emptying result according to described data and judging whether data empty successful;
Emptying unit, when the judged result of the first judging unit is for being, emptying the data bulk that local that store, described unification user mark is corresponding.
8. device as claimed in claim 7, it is characterized in that, described first data empty in request and also carry the first data bulk to be emptied, and described first data bulk to be emptied is that described POS terminal obtains from smart card; And
Described device, also comprises acquiring unit, wherein:
Described receiving element, if when the described data also returned for not receiving described POS terminal empty result, the second data receiving the transmission of described POS terminal empty request, described second data empty in request and carry described unification user mark and the second data bulk to be emptied, and described second data bulk to be emptied is that described POS terminal obtains again from smart card;
Acquiring unit, the data mode that the described unification user mark for obtaining local record is corresponding;
Described transmitting element, if also non-vanishing for described second data bulk to be emptied and the data mode that described unification user mark is corresponding, for treating empty, sends data flush instructions to described POS terminal again;
Describedly empty unit, if be also zero for described second data bulk to be emptied and data mode corresponding to described unification user mark for treating empty, empty the data bulk that local that store, described unification user mark is corresponding.
9. device as claimed in claim 7, is characterized in that,
Described receiving element, if the described data also returned for not receiving described POS terminal empty result, the data receiving the transmission of described POS terminal empty the request of cancelling;
Described amendment unit, also for data mode corresponding for described unification user mark is revised as normal condition.
10. device as claimed in claim 8, is characterized in that,
Described transmitting element, also for emptying after unit empties data bulk corresponding to local that store, described unification user mark described, data transfer request is sent to third-party server, carry described unification user mark and data bulk to be transferred in described data transfer request, described data bulk to be transferred is identical with described first data bulk to be emptied; And if data batchmove is successful, to the confirmation message that described POS terminal return data transfer is successful; If data batchmove failure, to the acknowledge message that described POS terminal return data transfer is failed;
Described amendment unit, also for when emptying the data bulk of local that store, described unification user mark correspondence, is revised as transfering state by data mode corresponding for described unification user mark; And if data batchmove is successful, data mode corresponding for described unification user mark is revised as exit state;
Described receiving element, also for receiving the data batchmove success message and data batchmove failed message that described third-party server returns.
11. devices as claimed in claim 10, is characterized in that, also comprise the second judging unit, wherein:
Described receiving element, the 3rd data sent for receiving described POS terminal empty request, described 3rd data empty in request and carry described unification user mark and the 3rd data bulk to be emptied, and it is that described POS terminal sends when not receiving data batchmove success or failed acknowledge message that the 3rd data empty request;
Described acquiring unit, also for obtaining the data mode of the described unification user mark correspondence of local record;
Described transmitting element, if be also zero for the 3rd data bulk to be emptied and the current data state of local record is exit state, to the confirmation message that described POS terminal return data transfer is successful; And when the judged result of described second judging unit is no, sends data recovery request to third-party server, in described data recovery request, carry the first data bulk to be emptied; And after receiving date restoring success message, again send data transfer request to third-party server, wherein, data recovery request success message is that described third-party server sends after emptying data bulk and recovering data according to described first;
Described second judging unit, if be also zero for the 3rd data bulk to be emptied and the current data state of local record is transfering state, judges data batchmove whether success;
Described amendment unit, also for when the judged result of described second judging unit is for being, is revised as exit state by data mode corresponding for the described unification user mark of local record.
12. devices as claimed in claim 11, is characterized in that, also comprise the 3rd judging unit, wherein:
Described receiving element, the data also sent for receiving described POS terminal empty the request of cancelling, and it is that described POS terminal sends when not receiving data batchmove success or failed acknowledge message that described data empty the request cancelled;
Described 3rd judging unit, also for judging that whether data batchmove is successful;
Described transmitting element, also for when the judged result of described 3rd judging unit is for being, sending data recovery request to third-party server, carrying the first data volume to be emptied in described data recovery request;
Described amendment unit, also for after receiving the date restoring success message that described third-party server returns or when the judged result of described 3rd judging unit is no, data mode corresponding for described unification user mark is revised as normal condition, and described date restoring success message is send after described third-party server recovers data according to described first data volume to be emptied.
13. 1 kinds of servers, is characterized in that, comprise the device described in the arbitrary claim of claim 7 ~ 12.
14. 1 kinds of data processing methods, is characterized in that, comprising:
Obtain the unification user mark of smart card and data bulk to be emptied;
Send data to network side server and empty request, described data empty in request the unification user mark and data bulk to be emptied that carry acquisition, described network side server receive described data empty request after data mode corresponding to amendment described unification user mark for treating empty;
Receive the data flush instructions that described network side server sends;
Described data flush instructions is forwarded to described smart card; And
When the data that described smart card returns if receive empty result, forward described data to described network side server and empty result, described network side server according to the data received empty result determination data empty successfully time, network side server empties local that store, that this unification user mark is corresponding data bulk; And described network side server according to the data received empty result determination data empty unsuccessfully time, data mode corresponding for this unification user mark is revised as normal condition by network side server.
15. methods as claimed in claim 14, is characterized in that, also comprise:
Receive the data batchmove success of described network side server transmission or failed acknowledge message.
16. methods as claimed in claim 14, is characterized in that, also comprise:
If in appointment duration, do not receive data that described smart card returns when emptying result or do not receive data batchmove success or failed acknowledge message that network side server sends, whether prompting carries out data null clear operation again;
No longer carry out data if receive when emptying instruction, again obtain the data bulk of described smart card; If the data bulk again obtained is zero, process ends; If the data bulk again obtained is non-vanishing, sends data to described network side server and empty the request of cancelling;
Again carry out data if receive when emptying instruction, resend data to described network side server and empty request.
17. 1 kinds of data processing equipments, is characterized in that, comprising:
Acquiring unit, for obtaining the unification user mark of smart card and data bulk to be emptied;
Transmitting element, request is emptied for sending data to network side server, described data empty in request the unification user mark and data bulk to be emptied that carry acquisition, described network side server receive described data empty request after data mode corresponding to amendment described unification user mark for treating empty;
Receiving element, for receiving the data flush instructions that described network side server sends;
Retransmission unit, for forwarding described data flush instructions to described smart card; And if receive data that described smart card returns when emptying result, forward described data to described network side server and empty result, described network side server according to the data received empty result determination data empty successfully time, network side server empties local that store, that this unification user mark is corresponding data bulk; And described network side server according to the data received empty result determination data empty unsuccessfully time, data mode corresponding for this unification user mark is revised as normal condition by network side server.
18. devices as claimed in claim 17, is characterized in that, also comprise:
Receiving element, for receiving the data batchmove success of described network side server transmission or failed acknowledge message.
19. devices as claimed in claim 17, is characterized in that, also comprise Tip element and control module, wherein:
Described Tip element, if in appointment duration, do not receive data that described smart card returns when emptying result or do not receive data batchmove success or failed acknowledge message that network side server sends, whether prompting carries out data null clear operation again;
Described acquiring unit, if also for receive no longer carry out data empty instruction time, again obtain the data bulk of described smart card;
Described transmitting element, if the data bulk also again obtained for acquiring unit is non-vanishing, sends data to described network side server and empties the request of cancelling; And if receive and again carry out data when emptying instruction, resend data to described network side server and empty request;
Described control module, if the data bulk again obtained for described acquiring unit is zero, process ends.
20. 1 kinds of point of sale POS terminal, is characterized in that, comprise the device described in claim 17,18 or 19.
21. 1 kinds of data handling systems, is characterized in that, comprise smart card, point of sale POS terminal and network side server, wherein:
Described POS terminal, for when carrying out data and emptying, obtains unification user mark and first data volume to be emptied of described smart card; And send the first data to network side server and empty request, described first data empty in request the unification user mark and the first data volume to be transferred that carry acquisition; And receive the data flush instructions that described network side server issues after receiving described first data and emptying request, carry in described data flush instructions and empty script; And forward described data flush instructions to smart card; And if receive data that described smart card returns when emptying result, forward described data to described network side server and empty result;
Described smart card, for providing self unification user mark and the first data volume to be emptied to described POS terminal; And after the data flush instructions receiving the forwarding of described POS terminal, empty the data of self, and empty result to described POS terminal return data;
Described network side server, after emptying request in the first data receiving the transmission of described POS terminal, is revised as data mode corresponding for described unification user mark and treats empty; And send data flush instructions to described POS terminal; And if receive data that described POS terminal returns when emptying result, empty result according to described data and judge that data empty whether success; If so, data bulk corresponding to local that store, described unification user mark is emptied; If not, data mode corresponding for described unification user mark is revised as normal condition.
22. systems as claimed in claim 21, is characterized in that,
Described POS terminal, when the data also returned for not receiving described smart card in appointment duration empty result, whether prompting carries out data null clear operation again; No longer carry out data if receive when emptying instruction, again obtain the data bulk of described smart card, if the data bulk again obtained is zero, process ends; If the data bulk again obtained is non-vanishing, sends data to described network side server and empty the request of cancelling;
Described network side server, also for after receiving data that described POS terminal sends and emptying the request of cancelling, is revised as normal condition by data mode corresponding for described unification user mark.
23. the system as claimed in claim 22, is characterized in that,
Described POS terminal, if also for receive again carry out data empty instruction time, send the second data to described network side server and empty request;
Described network side server, after the second data also sent for receiving described POS terminal empty request, obtains the data mode that the described unification user mark of local record is corresponding; If the second data bulk to be emptied is non-vanishing and described unification user identifies corresponding data mode for treating empty, again send data flush instructions to described POS terminal; If described second data bulk to be emptied is zero and described unification user identifies corresponding data mode for treating empty, empty the data bulk of local that store, described unification user mark correspondence.
24. systems as described in claim 22 or 23, is characterized in that, also comprise third-party server, wherein:
Described network side server, also for after emptying data bulk corresponding to local that store, described unification user mark, data transfer request is sent to described third-party server, carry described unification user mark and data bulk to be transferred in described data transfer request, described data bulk to be transferred is identical with described first data bulk to be emptied; And data mode corresponding for described unification user mark is revised as transfering state; If data batchmove success, to the confirmation message that described POS terminal return data transfer is successful, and data mode corresponding for described unification user mark is revised as exit state; If data batchmove failure, to the acknowledge message that described POS terminal return data transfer is failed;
Described POS terminal, also in appointment duration, when receiving the data batchmove success of described network side server transmission or failed acknowledge message, process ends.
25. systems as claimed in claim 24, is characterized in that,
If described POS terminal is also in appointment duration, when not receiving the data batchmove success of described network side server transmission or failed acknowledge message, whether prompting carries out data null clear operation again; Receive and no longer carry out data when emptying instruction, again obtain the data bulk of described smart card; If the data bulk again obtained is zero, process ends; If the data bulk again obtained is non-vanishing, sends data to described network side server and empty the request of cancelling;
Described network side server, also for receiving after described data empty the request of cancelling, judges data batchmove whether success; If, data recovery request is sent to third-party server, the first data bulk to be emptied is carried in described data recovery request, after receiving the date restoring success message that described third-party server returns, data mode corresponding for described unification user mark is revised as normal condition, and described date restoring success message is send after described third-party server recovers data according to described first data volume to be emptied; If not, data mode corresponding for described unification user mark is revised as normal condition;
Described third-party server, also for after the data recovery request receiving the transmission of described network side server, recovers data according to described first data bulk to be emptied; And after date restoring success, be successfully recovered message to described network side server return data.
26. systems as claimed in claim 25, is characterized in that,
Described POS terminal, if also for receive again carry out data empty instruction time, send the 3rd data to described network side server and empty request, described 3rd data empty in request and carry described unification user mark and the 3rd data bulk to be emptied;
Described network side server, also for after receiving the 3rd data and emptying request, obtains the data mode that the described unification user mark of local record is corresponding; If the 3rd data bulk to be emptied is zero and the current data state of local record is exit state, to the confirmation message that described POS terminal return data transfer is successful; 3rd data bulk to be emptied is zero and the current data state of local record is transfering state, judges that whether data batchmove is successful; If so, data mode corresponding for the described unification user mark of local record is revised as exit state; If not, send data recovery request to third-party server, carry the first data bulk to be emptied in this data recovery request and recover data; And after receiving date restoring success message, again send data transfer request to third-party server;
Described third-party server, also for after the data recovery request receiving the transmission of described network side server, recovers data according to described first data bulk to be emptied; And after date restoring success, be successfully recovered message to described network side server return data.
CN201210254773.3A 2012-07-20 2012-07-20 A kind of data processing method, device, system and relevant device Active CN103578207B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210254773.3A CN103578207B (en) 2012-07-20 2012-07-20 A kind of data processing method, device, system and relevant device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210254773.3A CN103578207B (en) 2012-07-20 2012-07-20 A kind of data processing method, device, system and relevant device

Publications (2)

Publication Number Publication Date
CN103578207A CN103578207A (en) 2014-02-12
CN103578207B true CN103578207B (en) 2015-12-02

Family

ID=50049915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210254773.3A Active CN103578207B (en) 2012-07-20 2012-07-20 A kind of data processing method, device, system and relevant device

Country Status (1)

Country Link
CN (1) CN103578207B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106817381A (en) * 2015-11-27 2017-06-09 阿里巴巴集团控股有限公司 Data processing method and device
CN110599330B (en) * 2019-09-12 2023-04-07 中国工商银行股份有限公司 Bank universal anti-transaction device, method and system
CN112395012B (en) * 2020-11-03 2024-02-27 南方电网数字电网科技(广东)有限公司 Data emptying method and device based on double-core intelligent ammeter and computer equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1269041A (en) * 1997-06-27 2000-10-04 瑞士电信公司 Transaction method carried out with a mobile apparatus
JP2002149454A (en) * 2000-08-30 2002-05-24 Internatl Business Mach Corp <Ibm> Transaction support on logical disk
JP2003162698A (en) * 2001-11-27 2003-06-06 Dainippon Printing Co Ltd Portable information recording medium
CN101510870A (en) * 2008-04-23 2009-08-19 北京德瑞海普科技有限公司 Method for simulating, verifying and organizing code grade network protocol based on script and module drive
CN101719247A (en) * 2009-11-30 2010-06-02 刘宜云 System and method for payment based on non-contact handheld payment terminal
CN102360478A (en) * 2011-10-14 2012-02-22 快钱支付清算信息有限公司 Mobile terminal-based payment method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1269041A (en) * 1997-06-27 2000-10-04 瑞士电信公司 Transaction method carried out with a mobile apparatus
JP2002149454A (en) * 2000-08-30 2002-05-24 Internatl Business Mach Corp <Ibm> Transaction support on logical disk
CN1365056A (en) * 2000-08-30 2002-08-21 国际商业机器公司 Apparatus and method for supporting data transactions
JP2003162698A (en) * 2001-11-27 2003-06-06 Dainippon Printing Co Ltd Portable information recording medium
CN101510870A (en) * 2008-04-23 2009-08-19 北京德瑞海普科技有限公司 Method for simulating, verifying and organizing code grade network protocol based on script and module drive
CN101719247A (en) * 2009-11-30 2010-06-02 刘宜云 System and method for payment based on non-contact handheld payment terminal
CN102360478A (en) * 2011-10-14 2012-02-22 快钱支付清算信息有限公司 Mobile terminal-based payment method and system

Also Published As

Publication number Publication date
CN103578207A (en) 2014-02-12

Similar Documents

Publication Publication Date Title
US11494243B2 (en) Adapter for providing unified transaction interface
CN101996442A (en) Method, device and system for recharging electronic purse
CN104063791A (en) Safety payment method and related device and system
CN103218713A (en) Multifunctional POS (point-of-sale) terminal, system and payment method based on intelligent platform
CN103577983A (en) Load method of electronic currency for off-line consumption
CN103578207B (en) A kind of data processing method, device, system and relevant device
CN115271705A (en) Payment method and device based on NFC
CN102592358A (en) Method, system and device for writing electronic data
CN101488251B (en) Charging method, equipment and system for e-wallet
US10217101B2 (en) Link of mobile devices to facilitate mobile commerce transactions
WO2021092479A1 (en) Remittance with recipient alias
KR20160013527A (en) Method for Alternative Payment
JP7266620B2 (en) program, device, computer, payment system
EP4500432A1 (en) In-person peer-to-peer transfer using tap
CN112150140B (en) Resource allocation method, device and system
EP2662818A1 (en) Method, transaction server and account server for electronic payment in a computer network
KR101052775B1 (en) Carbon credits processing method and system
CN103810517A (en) Contact-less card capable of independently enquiring balance and recharging and using method thereof
KR20060063026A (en) Method and system of value transfer between prepaid value means by simultaneous processing of payment and charging
JP2001043295A (en) Payment system, portable terminal, payment center and recording medium
KR20150042774A (en) Method for Alternative Payment
CN104200567A (en) Bank receiving terminal and IC card receiving system and method
JP5702847B2 (en) Data changing device, data changing method, data changing program, reader / writer, data transfer method, and data transfer program
KR20160129805A (en) Method for Alternative Payment
KR20170087846A (en) Method for Alternative Payment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant