本发明的实施方式Embodiments of the invention
为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
在本发明实施例中,通过按照电子交易凭证数据的保密级别和数据量的差异将电子交易凭证数据分为第一数据和第二数据,在获取电子交易凭证数据时分别查询和发送第一数据和第二数据,再将第一数据和第二数据合并,生成电子交易凭证页面,提高了数据传输的速度也方便数据的进一步处理。In the embodiment of the present invention, the electronic transaction voucher data is divided into the first data and the second data according to the difference of the security level and the data amount of the electronic transaction voucher data, and the first data is respectively queried and transmitted when acquiring the electronic transaction voucher data. And the second data, the first data and the second data are combined to generate an electronic transaction voucher page, which improves the speed of data transmission and facilitates further processing of the data.
图1为本发明实施例提供的电子交易凭证页面生成系统的实施架构图,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 1 is a schematic structural diagram of an electronic transaction voucher page generation system according to an embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
电子交易凭证生成装置1可以是一个终端、应用软件(APP)、软件系统,或是集成到其他终端、应用软件(APP)、软件系统中的插件或模块。The electronic transaction voucher generating device 1 can be a terminal, an application software (APP), a software system, or a plug-in or module integrated into other terminals, application software (APP), software systems.
交易标的提供方通过电子交易凭证生成装置1生成交易标的的电子交易凭证。本发明实施例中的交易标的包括商品或服务等,商品可以是实体物品或虚拟物品。在本发明实施例中,交易标的提供方可以是物品生产商、服务提供商,也可以是经商品生产商、服务提供商授权的其他机构或个人,例如代理商、销售商等。The transaction target provider generates an electronic transaction voucher for the transaction target through the electronic transaction voucher generating device 1. The subject matter of the transaction in the embodiment of the present invention includes a commodity or a service, etc., and the commodity may be a physical item or a virtual item. In the embodiment of the present invention, the provider of the transaction target may be an item manufacturer, a service provider, or another institution or an individual authorized by the commodity manufacturer or the service provider, such as an agent, a seller, or the like.
在本发明实施例中,电子交易凭证至少包含有包含交易标的的属性信息、生产厂商信息、结算账户信息以及交易规则信息,以表明交易标的的真实来源、属性、交易以及结算方式,一个或一类交易标的对应一个电子交易凭证。其中,交易标的的属性信息是对交易标的的有关描述信息,例如商品的大小、重量、生产日期、保质期、金额、名称等信息。In the embodiment of the present invention, the electronic transaction voucher includes at least attribute information including the transaction target, manufacturer information, settlement account information, and transaction rule information to indicate the true source, attribute, transaction, and settlement method of the transaction target, one or one. The class transaction target corresponds to an electronic transaction voucher. The attribute information of the transaction target is related description information of the transaction target, such as the size, weight, production date, shelf life, amount, name, and the like of the commodity.
生产厂商信息是交易标的的生产厂家的有关信息,例如名称、地址、联系方式等信息。结算账户信息是交易标的提供方的账户信息,例如收款人名称、账户等信息。交易规则信息是买卖双方的交易规则信息,例如付款方式、退款、维修保证等信息。Manufacturer information is information about the manufacturer of the transaction subject, such as name, address, contact information, etc. The settlement account information is the account information of the provider of the transaction target, such as the name of the payee, the account, and the like. The transaction rule information is the transaction rule information of the buyer and the seller, such as payment method, refund, maintenance guarantee and the like.
在本发明实施例中,电子交易凭证是一个可写入信息的电子文件,通过该电子交易凭证,用户不需要通过电话、实体或网络店铺、第三方交易平台等传统方式,就可以实现交易标的信息页面的生成。In the embodiment of the present invention, the electronic transaction voucher is an electronic file that can write information, and the electronic transaction voucher can be used by the user without the traditional means such as a telephone, an entity or an online store, or a third-party transaction platform. The generation of information pages.
作为本发明的一个实施例,电子交易凭证的生成可以由交易标的提供方在电子交易凭证生成装置1输入交易标的信息实现。作为本发明的一个实施例,交易标的信息可以采用人工方式输入电子交易凭证生成装置1。作为本发明的另一实施例,也可以通过数据信息系统,例如ERP系统批量向电子交易凭证生成装置1导入交易标的信息。As an embodiment of the present invention, the generation of the electronic transaction voucher can be realized by the transaction target provider inputting the transaction target information in the electronic transaction voucher generating device 1. As an embodiment of the present invention, the information of the transaction subject can be manually input into the electronic transaction voucher generating apparatus 1. As another embodiment of the present invention, it is also possible to import the transaction target information into the electronic transaction voucher generating device 1 in batches by a data information system such as an ERP system.
作为本发明的一个优选实施例,电子交易凭证还可以包含有交易交互图形对象,以及与该交易交互图形对象关联的订单指示信息,以便于用户根据电子交易凭证生成交易订单。作为本发明的另一个实施例,电子交易凭证还可以包括交易标的的物流属性信息和保险属性信息。其中,物流属性信息是与商品的物流有关的信息,例如发货的物流商名称、联系电话、发货时间等信息。保险属性信息是与商品保险有关的信息,例如保险合同号、承保商等信息。作为本发明的一个优选实施例,为了保证电子交易凭证的稳定性、可靠性、真确性,避免电子交易凭证在网络上流通的过程中被篡改,电子交易凭证中写入有交易标的提供方的电子签名。As a preferred embodiment of the present invention, the electronic transaction voucher may further include a transaction interaction graphic object and order indication information associated with the transaction interaction graphic object to facilitate the user to generate a transaction order based on the electronic transaction voucher. As another embodiment of the present invention, the electronic transaction voucher may further include logistics attribute information and insurance attribute information of the transaction subject. Among them, the logistics attribute information is information related to the logistics of the goods, such as the name of the logistics company, the contact number, and the delivery time. The insurance attribute information is information related to commodity insurance, such as insurance contract number, underwriter, and the like. As a preferred embodiment of the present invention, in order to ensure the stability, reliability, and authenticity of the electronic transaction voucher, the electronic transaction voucher is prevented from being tampered with during the circulation on the network, and the electronic transaction voucher is written with the transaction target provider. Electronic signature.
电子交易凭证生成装置1将生成的电子交易凭证发送到电子交易凭证数据存储服务器2中,并分发到互联网上,供用户查询使用。用户看到相应的电子交易凭证的分发信息,如图片、视频或文本时,可以点击相应的链接或按钮通过客户端3发送电子交易凭证数据获取请求,电子交易凭证数据存储服务器2接收该电子交易凭证数据获取请求并查询相应的电子交易凭证数据返回至客户端3中,客户端接收该电子交易凭证数据,生成电子交易凭证页面。在本发明实施例中,为方便对数据进行进一步处理,减少数据处理量,电子交易凭证数据包括第一数据和第二数据,第一数据的保密级别高于第二数据,且数据量小于第二数据。保密级别是指对数据安全性的要求程度,保密级别越高,对安全性的要求越高。The electronic transaction voucher generating device 1 transmits the generated electronic transaction voucher to the electronic transaction voucher data storage server 2 and distributes it to the Internet for use by the user for inquiry. When the user sees the distribution information of the corresponding electronic transaction voucher, such as a picture, a video or a text, the electronic transaction voucher data acquisition request can be sent through the client 3 by clicking the corresponding link or button, and the electronic transaction voucher data storage server 2 receives the electronic transaction. The voucher data acquisition request and query corresponding electronic transaction voucher data are returned to the client 3, and the client receives the electronic transaction voucher data to generate an electronic transaction voucher page. In the embodiment of the present invention, in order to facilitate further processing of the data and reduce the amount of data processing, the electronic transaction voucher data includes the first data and the second data, and the first data has a higher security level than the second data, and the data amount is less than the first data. Two data. The level of confidentiality refers to the degree of security required for data. The higher the level of confidentiality, the higher the security requirements.
作为本发明的一个实施例,电子交易凭证生成装置1可以将第一数据和第二数据发送到同一个电子交易凭证数据存储服务器,也可以将第一数据和第二数据发送到不同的电子交易凭证数据存储服务器。As an embodiment of the present invention, the electronic transaction voucher generating apparatus 1 may transmit the first data and the second data to the same electronic transaction voucher data storage server, or may transmit the first data and the second data to different electronic transactions. Credential data storage server.
图2示出了本发明实施例提供的电子交易凭证页面生成方法的实现流程,详述如下:FIG. 2 is a flowchart showing an implementation process of a method for generating an electronic transaction voucher page according to an embodiment of the present invention, which is described in detail as follows:
在步骤S201中,接收电子交易凭证数据获取请求。In step S201, an electronic transaction voucher data acquisition request is received.
在本发明实施例中,电子交易凭证数据获取请求携带有待交易的交易标的的电子交易凭证标识。In an embodiment of the invention, the electronic transaction voucher data acquisition request carries an electronic transaction voucher identification of the transaction subject to be traded.
在步骤S202中,根据电子交易凭证标识查询对应电子交易凭证的第一数据和第二数据。In step S202, the first data and the second data corresponding to the electronic transaction voucher are queried according to the electronic transaction voucher identifier.
在本发明实施例中,
电子交易凭证数据存储服务器接收到电子交易凭证数据获取请求后,解析出其中的电子交易凭证标识,即可查询电子交易凭证的的第一数据和第二数据。在本发明实施例中,为方便对部分保密级别高的数据进行进一步处理,减少数据处理量,电子交易凭证数据包括第一数据和第二数据,第一数据的保密级别高于第二数据,且数据量小于第二数据。保密级别是指对数据安全性的要求程度,保密级别越高,对安全性的要求越高。In the embodiment of the present invention,
After receiving the electronic transaction voucher data acquisition request, the electronic transaction voucher data storage server parses out the electronic transaction voucher identifier, and can query the first data and the second data of the electronic transaction voucher. In the embodiment of the present invention, in order to facilitate further processing of the data with high security level and reduce the amount of data processing, the electronic transaction voucher data includes the first data and the second data, and the security level of the first data is higher than the second data. And the amount of data is smaller than the second data. The level of confidentiality refers to the degree of security required for data. The higher the level of confidentiality, the higher the security requirements.
作为本发明的一个实施例,为了保证交易标的真实来源、结算时资金的安全以及提高交易标的信息的真实性,第一数据包括交易标的生产厂商信息、结算账户信息、物流属性信息、保险属性信息、交易规则信息的一种或其组合。作为本发明的一个实施例,为了减少需进一步处理的数据量,将交易标的的图片信息、视频信息等数据量比较大的数据作为第二数据,进一步提高数据传输的速度。As an embodiment of the present invention, in order to ensure the true source of the transaction target, the security of the funds at the time of settlement, and the authenticity of the information of the transaction target, the first data includes the manufacturer information of the transaction target, the settlement account information, the logistics attribute information, and the insurance attribute information. , one or a combination of transaction rule information. As an embodiment of the present invention, in order to reduce the amount of data to be further processed, data having a relatively large amount of data such as picture information and video information of the transaction target is used as the second data, thereby further increasing the speed of data transmission.
在步骤S203中,发送第一数据和第二数据。In step S203, the first data and the second data are transmitted.
在本发明实施例中,电子交易凭证数据存储服务器向客户端发送查询到的第一数据和第二数据。In the embodiment of the present invention, the electronic transaction voucher data storage server sends the queried first data and the second data to the client.
作为本发明的一个实施例,参见图3,为了提高数据的安全性,保证交易标的信息的真实性,在发送第一数据前对第一数据进行加密,具体的加密流程详述如下:As an embodiment of the present invention, referring to FIG. 3, in order to improve the security of data and ensure the authenticity of the information of the transaction target, the first data is encrypted before the first data is sent. The specific encryption process is as follows:
在步骤S301中,采用对称密钥对第一数据进行加密,得到第一加密数据。优选地,该对称密钥采用高级加密标准(Advanced
Encryption Standard,AES)密钥。In step S301, the first data is encrypted by using a symmetric key to obtain first encrypted data. Preferably, the symmetric key adopts an advanced encryption standard (Advanced
Encryption Standard, AES) key.
在步骤S302中,采用非对称密钥对对称密钥进行非对称加密,得到第二加密数据。优选地,该非对称密钥采用椭圆曲线密码(Elliptic Curves
Cryptography,ECC)密钥。
In step S302, the asymmetric key is asymmetrically encrypted using an asymmetric key to obtain second encrypted data. Preferably, the asymmetric key uses elliptic curve cryptography (Elliptic Curves)
Cryptography, ECC) key.
在本发明实施例中,当加密完成后,将第一加密数据和第二加密数据作为第一数据发送至客户端。In the embodiment of the present invention, after the encryption is completed, the first encrypted data and the second encrypted data are sent to the client as the first data.
本发明实施例通过按照电子交易凭证数据的保密级别和数据量的差异将电子交易凭证数据分为第一数据和第二数据,在接收到电子交易凭证数据获取请求时,查询第一数据和第二数据,然后分别发送第一数据和第二数据,提高数据查询的速度同时也方便对第一数据进行进一步处理,减少了数据处理量,进而提高了电子交易凭证页面的生成速度。The embodiment of the present invention divides the electronic transaction voucher data into the first data and the second data according to the difference of the security level and the data amount of the electronic transaction voucher data, and queries the first data and the first data when receiving the electronic transaction voucher data acquisition request. The second data and then the first data and the second data are respectively sent to improve the speed of the data query, and the first data is further processed, thereby reducing the data processing amount, thereby improving the generation speed of the electronic transaction voucher page.
图4示出了本发明第二实施例提供的电子交易凭证页面生成方法的实现流程,详述如下:FIG. 4 is a flowchart showing an implementation process of a method for generating an electronic transaction voucher page according to a second embodiment of the present invention, which is described in detail as follows:
在步骤S401中,接收电子交易凭证页面获取请求。In step S401, an electronic transaction voucher page acquisition request is received.
在本发明实施例中,当用户看到交易标的的分发信息,如图片、文本、音视频信息,可以点击相应的链接或者按钮请求电子交易凭证页面,客户端接收电子交易凭证页面获取请求。In the embodiment of the present invention, when the user sees the distribution information of the transaction target, such as pictures, texts, audio and video information, the electronic transaction voucher page may be requested by clicking a corresponding link or button, and the client receives the electronic transaction voucher page acquisition request.
在步骤S402中,根据电子交易凭证页面获取请求获取对应电子交易凭证的第一数据和第二数据。In step S402, the first data and the second data corresponding to the electronic transaction voucher are obtained according to the electronic transaction voucher page acquisition request.
在本发明实施例中,
客户端接收到电子交易凭证页面获取请求后,向电子交易凭证数据存储服务器发送电子交易凭证数据获取请求,电子交易凭证数据存储服务器解析出其中的电子交易凭证标识,即可查询对应电子交易凭证的第一数据和第二数据并发送至客户端。In the embodiment of the present invention,
After receiving the electronic transaction voucher page obtaining request, the client sends an electronic transaction voucher data obtaining request to the electronic transaction voucher data storage server, and the electronic transaction voucher data storage server parses out the electronic transaction voucher identifier therein, so as to query the corresponding electronic transaction voucher The first data and the second data are sent to the client.
在本发明实施例中,为方便对部分保密级别高的数据进行进一步处理,减少数据处理量,电子交易凭证数据包括第一数据和第二数据,第一数据的保密级别高于第二数据,且数据量小于第二数据。保密级别是指对数据安全性的要求程度,保密级别越高,对安全性的要求越高。In the embodiment of the present invention, in order to facilitate further processing of the data with high security level and reduce the amount of data processing, the electronic transaction voucher data includes the first data and the second data, and the security level of the first data is higher than the second data. And the amount of data is smaller than the second data. The level of confidentiality refers to the degree of security required for data. The higher the level of confidentiality, the higher the security requirements.
作为本发明的一个实施例,为了保证交易标的真实来源、结算时资金的安全以及提高交易标的信息的真实性,第一数据包括交易标的生产厂商信息、结算账户信息、物流属性信息、保险属性信息、交易规则信息的一种或其组合。作为本发明的一个实施例,为了减少需进一步处理的数据量,将交易标的的图片信息、视频信息等数据量比较大的数据作为第二数据,以进一步提高数据查询的速度。As an embodiment of the present invention, in order to ensure the true source of the transaction target, the security of the funds at the time of settlement, and the authenticity of the information of the transaction target, the first data includes the manufacturer information of the transaction target, the settlement account information, the logistics attribute information, and the insurance attribute information. , one or a combination of transaction rule information. As an embodiment of the present invention, in order to reduce the amount of data to be further processed, data having a relatively large amount of data such as picture information and video information of the transaction subject is used as the second data to further improve the speed of data query.
作为本发明的一个实施例,参见图5,当第一数据被加密时,获取第一加密数据和第二加密数据后对第一加密数据和第二加密数据进行解密,具体的解密流程详述如下:As an embodiment of the present invention, referring to FIG. 5, when the first data is encrypted, the first encrypted data and the second encrypted data are obtained, and then the first encrypted data and the second encrypted data are decrypted, and the specific decryption process is detailed. as follows:
在步骤S501中,采用非对称密钥对第二加密数据进行解密,得到对称密钥。In step S501, the second encrypted data is decrypted using an asymmetric key to obtain a symmetric key.
具体而言,第二加密数据根据电子交易凭证数据解密端的公钥-私钥对中的公钥进行加密的,则接收到该第二加密数据后,就根据电子交易凭证数据解密端公钥-私钥对中的私钥对该第二加密数据进行解密。Specifically, the second encrypted data is encrypted according to the public key in the public key-private key pair of the decryption end of the electronic transaction voucher data, and after receiving the second encrypted data, the public key is decrypted according to the electronic transaction voucher data - The private key in the private key pair decrypts the second encrypted data.
在步骤S502中,采用对称密钥对第一加密数据进行解密,得到第一数据。In step S502, the first encrypted data is decrypted using a symmetric key to obtain first data.
在步骤S403中,将第一数据和第二数据合并,生成电子交易凭证页面。In step S403, the first data and the second data are combined to generate an electronic transaction voucher page.
在本发明实施例中,将获取的第一数据和第二数据进行合并,生成电子交易凭证页面,以供用户在电子交易凭证页面浏览交易标的的详细信息。In the embodiment of the present invention, the acquired first data and the second data are combined to generate an electronic transaction voucher page for the user to browse the detailed information of the transaction target on the electronic transaction voucher page.
本发明实施例通过在接收到电子交易凭证页面获取请求时,按照电子交易凭证数据的保密级别和数据量的差异将电子交易凭证数据分为第一数据和数据量的第二数据分别获取,然后将第一数据和第二数据合并,生成电子交易凭证页面,以供用户在电子交易凭证页面浏览交易标的的详细信息,提高数据获取的速度同时也方便对第一数据进行进一步处理,减少了数据处理量,进而提高了电子交易凭证页面的生成速度。。
In the embodiment of the present invention, when the electronic transaction voucher page is received, the electronic transaction voucher data is separately classified into the first data and the second data according to the difference of the security level and the data amount of the electronic transaction voucher data, and then Combining the first data and the second data to generate an electronic transaction voucher page for the user to browse the detailed information of the transaction target on the electronic transaction voucher page, thereby improving the speed of data acquisition and facilitating further processing of the first data, reducing data The processing volume, in turn, increases the speed at which electronic transaction voucher pages are generated. .
本领域普通技术人员可以理解,实现上述实施例方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成的,上述的程序可以存储于一计算机可读取存储介质中,上述的存储介质,如ROM/RAM、磁盘、光盘、闪盘等。It will be understood by those skilled in the art that all or part of the steps of the foregoing embodiments may be implemented by a program to instruct related hardware, and the above program may be stored in a computer readable storage medium, the foregoing storage. Media, such as ROM/RAM, disk, CD, flash drive, etc.
图6示出了本发明第四实施例提供的电子交易凭证页面生成装置的结构图,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 6 is a structural diagram of an electronic transaction voucher page generating apparatus according to a fourth embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
电子交易凭证数据获取请求接收单元61接收电子交易凭证的数据获取请求。在本发明实施例中,电子交易凭证数据获取请求接收携带有待交易的交易标的的电子交易凭证标识。The electronic transaction voucher data acquisition request receiving unit 61 receives the data acquisition request of the electronic transaction voucher. In an embodiment of the invention, the electronic transaction voucher data acquisition request receives an electronic transaction voucher identification carrying the transaction subject to be traded.
数据查询单元62根据电子交易凭证标识查询对应电子交易凭证的第一数据和第二数据。在本发明实施例中,数据查询单元62接收到电子交易凭证数据获取请求后,解析出其中的电子交易凭证标识,查询电子交易凭证的的第一数据和第二数据。The data query unit 62 queries the first data and the second data of the corresponding electronic transaction voucher according to the electronic transaction voucher identification. In the embodiment of the present invention, after receiving the electronic transaction voucher data acquisition request, the data query unit 62 parses out the electronic transaction voucher identifier therein, and queries the first data and the second data of the electronic transaction voucher.
在本发明实施例中,为方便对部分保密级别高的数据进行进一步处理,减少数据处理量,电子交易凭证数据包括第一数据和第二数据,第一数据的保密级别高于第二数据,且数据量小于第二数据。保密级别是指对数据安全性的要求程度,保密级别越高,对安全性的要求越高。In the embodiment of the present invention, in order to facilitate further processing of the data with high security level and reduce the amount of data processing, the electronic transaction voucher data includes the first data and the second data, and the security level of the first data is higher than the second data. And the amount of data is smaller than the second data. The level of confidentiality refers to the degree of security required for data. The higher the level of confidentiality, the higher the security requirements.
作为本发明的一个实施例,为了保证交易标的真实来源、结算时资金的安全以及提高交易标的信息的真实性,第一数据包括交易标的生产厂商信息、结算账户信息、物流属性信息、保险属性信息、交易规则信息的一种或其组合。As an embodiment of the present invention, in order to ensure the true source of the transaction target, the security of the funds at the time of settlement, and the authenticity of the information of the transaction target, the first data includes the manufacturer information of the transaction target, the settlement account information, the logistics attribute information, and the insurance attribute information. , one or a combination of transaction rule information.
作为本发明的一个实施例,为了减少需进一步处理的数据量,将交易标的的图片信息、视频信息等数据量比较大的数据作为第二数据,以进一步提高数据处理的速度。As an embodiment of the present invention, in order to reduce the amount of data to be further processed, data having a relatively large amount of data such as picture information and video information of the transaction subject is used as the second data to further increase the speed of data processing.
数据发送单元63用于发送第一数据和第二数据。在本发明实施例中,数据发送单元63向客户端发送查询到第一数据和第二数据。The data transmitting unit 63 is configured to transmit the first data and the second data. In the embodiment of the present invention, the data sending unit 63 sends a query to the client to the first data and the second data.
作为本发明的一个实施例,参见图7,为了提高数据的安全性,保证交易标的信息的真实性,加密模块631在发送第一数据前对第一数据进行加密,包括第一加密子模块6311和第二加密子模块6312。As an embodiment of the present invention, referring to FIG. 7, in order to improve the security of data and ensure the authenticity of the information of the transaction target, the encryption module 631 encrypts the first data before transmitting the first data, including the first encryption submodule 6311. And a second encryption sub-module 6312.
第一加密子模块6311采用对称密钥对第一数据进行加密,得到第一加密数据。优选地,该对称密钥采用高级加密标准(Advanced
Encryption Standard,AES)密钥。The first encryption submodule 6311 encrypts the first data by using a symmetric key to obtain the first encrypted data. Preferably, the symmetric key adopts an advanced encryption standard (Advanced
Encryption Standard, AES) key.
第二加密子模块6312采用非对称密钥对对称密钥进行非对称加密,得到第二加密数据。优选地,该非对称密钥采用椭圆曲线密码(Elliptic
Curves Cryptography,ECC)密钥。The second encryption sub-module 6312 asymmetrically encrypts the symmetric key by using an asymmetric key to obtain the second encrypted data. Preferably, the asymmetric key uses elliptic curve cryptography (Elliptic
Curves Cryptography, ECC) key.
在本发明实施例中,当加密完成后,将第一加密数据和第二加密数据发送至客户端。In the embodiment of the present invention, after the encryption is completed, the first encrypted data and the second encrypted data are sent to the client.
本发明实施例通过按照电子交易凭证数据的保密级别和数据量的差异将电子交易凭证数据分为第一数据和第二数据,在接收到电子交易凭证数据获取请求时,分别查询第一数据和第二数据,然后将第一数据和第二数据分别发送,提高数据查询的速度同时也方便对部分数据进行进一步处理,减少了数据处理量,进而提高了电子交易凭证页面的生成速度。The embodiment of the present invention divides the electronic transaction voucher data into the first data and the second data according to the difference of the security level and the data amount of the electronic transaction voucher data, and separately queries the first data and the electronic transaction voucher data acquisition request when receiving the electronic transaction voucher data acquisition request. The second data is then sent separately to the first data and the second data, thereby improving the speed of the data query and facilitating further processing of the partial data, thereby reducing the amount of data processing, thereby increasing the generation speed of the electronic transaction voucher page.
图8示出了本发明第五实施例提供的电子交易凭证页面生成装置的结构图,为了便于说明,仅示出了与本发明实施例相关的部分。FIG. 8 is a structural diagram of an electronic transaction voucher page generating apparatus according to a fifth embodiment of the present invention. For convenience of description, only parts related to the embodiment of the present invention are shown.
电子交易凭证页面获取请求接收单元81接收电子交易凭证页面获取请求。The electronic transaction voucher page acquisition request receiving unit 81 receives the electronic transaction voucher page acquisition request.
在本发明实施例中,当用户看到交易标的的分发信息,如图片、文本、音视频信息,可以点击相应的链接或者按钮,请求电子交易凭证页面,电子交易凭证页面获取请求接收单元81接收电子交易凭证页面获取请求。In the embodiment of the present invention, when the user sees the distribution information of the transaction target, such as pictures, texts, audio and video information, the electronic transaction voucher page may be requested by clicking the corresponding link or button, and the electronic transaction voucher page acquisition request receiving unit 81 receives The electronic transaction voucher page gets the request.
电子交易凭证数据获取单元82根据电子交易凭证页面获取请求获取对应电子交易凭证的第一数据和第二数据。The electronic transaction voucher data obtaining unit 82 acquires the first data and the second data corresponding to the electronic transaction voucher according to the electronic transaction voucher page acquisition request.
在本发明实施例中,客户端接收到电子交易凭证页面获取请求后,向电子交易凭证数据存储服务器发送电子交易凭证数据获取请求,电子交易凭证数据获取单元82解析出其中的电子交易凭证标识,查询电子交易凭证的第一数据和第二数据,并将第一数据和第二数据发送到客户端中。In the embodiment of the present invention, after receiving the electronic transaction voucher page acquisition request, the client sends an electronic transaction voucher data acquisition request to the electronic transaction voucher data storage server, and the electronic transaction voucher data obtaining unit 82 parses out the electronic transaction voucher identifier therein. The first data and the second data of the electronic transaction voucher are queried, and the first data and the second data are sent to the client.
在本发明实施例中,为方便对部分保密级别高的数据进行进一步处理,减少数据处理量,电子交易凭证数据包括第一数据和第二数据,第一数据的保密级别高于第二数据,且数据量小于第二数据。保密级别是指对数据安全性的要求程度,保密级别越高,对安全性的要求越高。In the embodiment of the present invention, in order to facilitate further processing of the data with high security level and reduce the amount of data processing, the electronic transaction voucher data includes the first data and the second data, and the security level of the first data is higher than the second data. And the amount of data is smaller than the second data. The level of confidentiality refers to the degree of security required for data. The higher the level of confidentiality, the higher the security requirements.
作为本发明的一个实施例,为了保证交易标的真实来源、结算时资金的安全以及提高交易标的信息的真实性,第一数据包括交易标的生产厂商信息、结算账户信息、物流属性信息、保险属性信息、交易规则信息的一种或其组合。As an embodiment of the present invention, in order to ensure the true source of the transaction target, the security of the funds at the time of settlement, and the authenticity of the information of the transaction target, the first data includes the manufacturer information of the transaction target, the settlement account information, the logistics attribute information, and the insurance attribute information. , one or a combination of transaction rule information.
作为本发明的一个实施例,为了减少需进一步处理的数据量,将交易标的的图片信息、视频信息等数据量比较大的数据作为第二数据,以进一步提高数据查询的速度。As an embodiment of the present invention, in order to reduce the amount of data to be further processed, data having a relatively large amount of data such as picture information and video information of the transaction subject is used as the second data to further improve the speed of data query.
在本发明的实施例中,参见图9,当获取的第一数据被加密时,获取第一加密数据和第二加密数据后解密模块821对对第一加密数据和第二加密数据进行解密。In the embodiment of the present invention, referring to FIG. 9, when the acquired first data is encrypted, the decryption module 821 decrypts the first encrypted data and the second encrypted data after acquiring the first encrypted data and the second encrypted data.
第一解密子模块8211采用非对称密钥对第二加密数据进行解密,得到对称密钥。具体而言,第二加密数据根据电子交易凭证数据解密端的公钥-私钥对中的公钥进行加密的,则接收到该第二加密数据后,就根据电子交易凭证数据解密端公钥-私钥对中的私钥对该第二加密数据进行解密。The first decryption sub-module 8211 decrypts the second encrypted data using an asymmetric key to obtain a symmetric key. Specifically, the second encrypted data is encrypted according to the public key in the public key-private key pair of the decryption end of the electronic transaction voucher data, and after receiving the second encrypted data, the public key is decrypted according to the electronic transaction voucher data - The private key in the private key pair decrypts the second encrypted data.
第二秘密子模块8212采用对称密钥对第一加密数据进行解密,得到第一数据。The second secret sub-module 8212 decrypts the first encrypted data by using a symmetric key to obtain the first data.
电子交易凭证页面生成单元83将第一数据和第二数据合并,生成电子交易凭证页面。The electronic transaction voucher page generating unit 83 combines the first data and the second data to generate an electronic transaction voucher page.
在本发明实施例中,电子交易凭证页面生成单元83将获取的电子交易凭证数据和第二数据进行合并,生成电子交易凭证页面,以供用户浏览交易标的的详细信息。In the embodiment of the present invention, the electronic transaction voucher page generating unit 83 combines the acquired electronic transaction voucher data and the second data to generate an electronic transaction voucher page for the user to browse the detailed information of the transaction target.
本发明实施例通过在接收到电子交易凭证页面获取请求时,按照保密级别和数据量的差异将电子交易凭证数据分为第一数据和第二数据分别获取,然后将第一数据和第二数据合并,生成电子交易凭证页面,以供用户在电子交易凭证页面浏览交易标的的详细信息,提高数据获取的速度同时也方便对部分数据进行进一步处理,减少了数据处理量,进而提高了电子交易凭证页面的生成速度。In the embodiment of the present invention, when the electronic transaction voucher page is received, the electronic transaction voucher data is separately obtained according to the difference of the security level and the data amount, and then the first data and the second data are respectively acquired. Merging, generating an electronic transaction voucher page for the user to browse the detailed information of the transaction target on the electronic transaction voucher page, improving the speed of data acquisition and facilitating further processing of part of the data, reducing the amount of data processing, thereby improving the electronic transaction voucher The speed at which the page is generated.
在本发明实施例中,电子交易凭证数据存储服务器接收电子交易凭证数据获取请求,根据电子交易凭证标识分别查询第一数据和第二数据,然后将第一数据和第二数据分别发送至客户端,客户端接收第一数据和第二数据后合并,生成电子交易凭证页面,以供用户在电子交易凭证页面浏览交易标的的详细信息,这种按照保密级别和数据量的差异将电子交易凭证数据分为第一数据和第二数据分别查询以及传输的方法,提高数据获取的速度同时也方便对部分数据进行进一步处理,减少了数据处理量,进而提高了电子交易凭证页面的生成速度。In the embodiment of the present invention, the electronic transaction voucher data storage server receives the electronic transaction voucher data acquisition request, separately queries the first data and the second data according to the electronic transaction voucher identifier, and then sends the first data and the second data to the client respectively. After receiving the first data and the second data, the client merges to generate an electronic transaction voucher page for the user to browse the detailed information of the transaction target on the electronic transaction voucher page, and the electronic transaction voucher data according to the difference of the confidentiality level and the data amount. The method of separately querying and transmitting the first data and the second data respectively improves the speed of data acquisition and facilitates further processing of some data, thereby reducing the amount of data processing, thereby improving the generation speed of the electronic transaction voucher page.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection of the present invention. Within the scope.