[go: up one dir, main page]

CN112150160A - Electronic ticket transaction suggestion generation method and system - Google Patents

Electronic ticket transaction suggestion generation method and system Download PDF

Info

Publication number
CN112150160A
CN112150160A CN202011062720.2A CN202011062720A CN112150160A CN 112150160 A CN112150160 A CN 112150160A CN 202011062720 A CN202011062720 A CN 202011062720A CN 112150160 A CN112150160 A CN 112150160A
Authority
CN
China
Prior art keywords
transaction
information
center server
transaction information
electronic ticket
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011062720.2A
Other languages
Chinese (zh)
Other versions
CN112150160B (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.)
Chongqing Academy of Science and Technology
Original Assignee
Chongqing Academy of Science and Technology
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 Chongqing Academy of Science and Technology filed Critical Chongqing Academy of Science and Technology
Priority to CN202011062720.2A priority Critical patent/CN112150160B/en
Publication of CN112150160A publication Critical patent/CN112150160A/en
Application granted granted Critical
Publication of CN112150160B publication Critical patent/CN112150160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/40Authorisation, e.g. identification of payer or payee, verification of customer or shop credentials; Review and approval of payers, e.g. check credit lines or negative lists
    • G06Q20/401Transaction verification
    • G06Q20/4016Transaction verification involving fraud or risk level assessment in transaction processing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24549Run-time optimisation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/04Payment circuits
    • G06Q20/045Payment circuits using payment protocols involving tickets
    • G06Q20/0457Payment circuits using payment protocols involving tickets the tickets being sent electronically
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q20/00Payment architectures, schemes or protocols
    • G06Q20/38Payment protocols; Details thereof
    • G06Q20/382Payment protocols; Details thereof insuring higher security of transaction
    • G06Q20/3829Payment protocols; Details thereof insuring higher security of transaction involving key management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Accounting & Taxation (AREA)
  • General Engineering & Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Health & Medical Sciences (AREA)
  • Bioethics (AREA)
  • General Health & Medical Sciences (AREA)
  • Computer Hardware Design (AREA)
  • Software Systems (AREA)
  • Finance (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及区块链技术领域,具体涉及一种电子票券交易建议生成方法及系统,方法包括以下步骤:S1、获取本区用户端发起的交易信息,并根据交易信息划定买家中心服务器、卖家中心服务器和第三方中心服务器;S2、判断电子票券交易是否发生在同一区域,如果是,则达成交易;反之,则判断本区能否达成交易,如果能,则向用户端发送提示信息,建议本区内达成;如果不能,则将该交易信息转发至待上链序列,并向第三方中心服务器广播交易信息;S3、获取第三方中心服务器发送的与本次交易信息类似的交易记录,并提取交易记录中的评价信息;采用本方案能够让交易双方了解类似交易情况,并解决双方信息不对称的问题。

Figure 202011062720

The invention relates to the technical field of blockchain, and in particular to a method and system for generating electronic ticket transaction suggestions. The method includes the following steps: S1. Obtain transaction information initiated by a client in the local area, and define a buyer center server according to the transaction information. , the seller center server and the third-party center server; S2, determine whether the electronic ticket transaction occurs in the same area, if so, the transaction is concluded; otherwise, determine whether the transaction can be concluded in this area, and if so, send a prompt to the client If not, then forward the transaction information to the sequence to be linked, and broadcast the transaction information to the third-party central server; S3. Obtain the transaction similar to this transaction information sent by the third-party central server record, and extract the evaluation information in the transaction record; adopting this scheme can let both parties of the transaction understand the similar transaction situation, and solve the problem of information asymmetry between the two parties.

Figure 202011062720

Description

一种电子票券交易建议生成方法及系统A method and system for generating electronic ticket transaction advice

技术领域technical field

本发明涉及区块链技术领域,具体涉及一种电子票券交易建议生成方法及系统。The invention relates to the technical field of blockchain, and in particular to a method and system for generating electronic ticket transaction suggestions.

背景技术Background technique

票券,是指以单位或者个人发行,蕴含一定价值,用于购物或者消费的一种书面凭证;随着移动通讯网络环境的不断完善以及智能手机的进一步普及,电子支付的运用也愈显重要,尤其是商店业者为了能够达到更佳的广告与宣传效果,利用网络交易平台发行无纸电子票券已经成为一种常见的金融交易模式。Tickets refer to a written certificate issued by units or individuals, containing a certain value, for shopping or consumption; with the continuous improvement of the mobile communication network environment and the further popularization of smart phones, the use of electronic payment has become more and more important. , In particular, in order to achieve better advertising and publicity effects, the use of online trading platforms to issue paperless electronic coupons has become a common financial transaction mode.

但是,目前大多数电子票券交易系统主要是为商户提供开放式的信息发布、广告布展平台,并为用户提供一种支付手段,为商户和用户之间提供便利的清结算功能;而现有的电子票券在单一服务器进行流转,不仅交易高峰期处理速度较慢;此外,当平台在向用户提供参考信息时,由于单一服务器内记录的交易信息有限,极易造成交易双方无法在交易过程中了解到类似交易的情况,存在交易双方信息不对称的问题。However, most of the current e-ticket trading systems mainly provide merchants with an open platform for information release and advertisement display, and provide users with a means of payment to provide convenient clearing and settlement functions between merchants and users; while the existing The e-tickets are circulated on a single server, not only the processing speed is slow during the peak period of the transaction; in addition, when the platform provides reference information to users, due to the limited transaction information recorded in a single server, it is very easy for both parties to the transaction to fail during the transaction process. In the case of similar transactions, there is a problem of information asymmetry between the two sides of the transaction.

发明内容SUMMARY OF THE INVENTION

本发明意在于提供一种电子票券交易建议生成方法及系统,能够解决交易双方信息不对称的问题。The purpose of the present invention is to provide a method and system for generating an electronic ticket transaction suggestion, which can solve the problem of information asymmetry between the two parties of the transaction.

本发明提供的基础方案为:一种电子票券交易建议生成方法,包括以下步骤:The basic solution provided by the present invention is: a method for generating an electronic ticket transaction suggestion, comprising the following steps:

S1、获取本区用户端发起的交易信息,并根据交易信息划定买家中心服务器、卖家中心服务器和第三方中心服务器;S1. Obtain the transaction information initiated by the client in this area, and define the buyer center server, seller center server and third-party center server according to the transaction information;

S2、判断电子票券交易是否发生在同一区域,如果是,则达成交易;反之,则判断本区能否达成交易,如果能,则向用户端发送提示信息,建议本区内达成;如果不能,则将该交易信息转发至待上链序列,并向第三方中心服务器广播交易信息;S2. Determine whether the electronic ticket transaction occurs in the same area. If so, the transaction is concluded; otherwise, it is determined whether the transaction can be concluded in this area. , the transaction information is forwarded to the sequence to be uploaded, and the transaction information is broadcast to the third-party central server;

S3、获取第三方中心服务器发送的与本次交易信息类似的交易记录,并提取交易记录中的评价信息,判断其中是否有差评超过预设阈值的交易记录,如果不存在,则广播记录本次交易信息,并根据区块链算法将本次交易上链封存;如果存在,则广播本次交易延期,并将差评超过预设阈值的交易记录转发至买家中心服务器和卖家中心服务器进行确认;S3. Obtain a transaction record similar to this transaction information sent by the third-party central server, and extract the evaluation information in the transaction record, and determine whether there is a transaction record with a negative evaluation exceeding a preset threshold. If not, broadcast the record book This transaction information will be stored on the chain according to the blockchain algorithm; if it exists, broadcast the transaction extension, and forward the transaction records whose negative reviews exceed the preset threshold to the buyer center server and seller center server for processing. confirm;

S4、获取买家中心服务器和卖家中心服务器发送的确认信息,并根据确认信息判断双方是否仍需进行本次交易,如果是,则交易达成;如果任一方不同意,则取消本次交易,并在待上链序列中删除本次交易信息。S4. Obtain the confirmation information sent by the buyer's center server and the seller's center server, and judge whether the two parties still need to carry out the transaction according to the confirmation information. If so, the transaction is concluded; if either party does not agree, the transaction is cancelled and the transaction is completed. Delete this transaction information in the pending chain sequence.

本发明的工作原理及优点在于:The working principle and advantages of the present invention are:

本方案中,首先获取本区用户端发起的交易信息,由于交易一般涉及到买卖双方,所以在交易请求中除了包含发起方,还有相应的交易对象;所以根据交易信息中的发起方和交易对象分别划定出买家中心服务器和卖家中心服务器,其余的则为不相关的第三方中心服务器;然后,再判断买卖双方是否属于同一区域,如果是,则表示电子票券交易为本区交易,可直接达成交易;相反的,如果不是,则表示正在进行跨区交易,需进行风险管控,即先判断本区能够达成与之类似的交易,如果能,则建议用户在本区内达成交易,安全性方面相对较高;如果不能,则说明该交易属于用户的常规选择,本次交易需要跨区才可以进行;并将该交易信息转发至待上链序列,并向第三方中心服务器广播交易信息;通过第三方中心服务器解析本次交易内容,通过各台第三方中心服务器分析本区内类似交易是否有差评超过阈值的交易记录,如果没有,表示根据第三方中心服务器的记录来看本次交易出现问题的几率不大;相反的,如果有,则说明本次交易可能存在风险,需在全网广播本次交易延期,并将相应的交易记录分别转发到买卖双方中心服务器中等待确认;为确保双方是在信息对称的情况下完成的交易,通过获取买卖双方中心服务器反馈的确认信息,根据确认信息来判断买卖双方是否仍然进行本次交易,如果两者中任一方不同意,则取消本次交易,随后将暂存在待上链序列中的本次交易信息删除。In this solution, the transaction information initiated by the client in this area is obtained first. Since transactions generally involve buyers and sellers, the transaction request includes not only the initiator but also the corresponding transaction object; therefore, according to the initiator and transaction in the transaction information The object is divided into buyer center server and seller center server, and the rest are irrelevant third-party center servers; then, it is judged whether the buyer and seller belong to the same area, if so, it means that the electronic ticket transaction is a transaction in the area , the transaction can be concluded directly; on the contrary, if it is not, it means that a cross-regional transaction is in progress, and risk management and control are required, that is, it is first judged that a similar transaction can be concluded in this area. , the security is relatively high; if not, it means that the transaction is a regular choice of the user, and this transaction can only be carried out across regions; and the transaction information is forwarded to the sequence to be uploaded, and broadcast to the third-party central server Transaction information; analyze the content of this transaction through the third-party central server, and analyze whether there are transaction records with negative reviews exceeding the threshold for similar transactions in this area through each third-party central server. There is little chance of problems in this transaction; on the contrary, if there is, it means that there may be risks in this transaction. It is necessary to broadcast the extension of this transaction on the whole network, and forward the corresponding transaction records to the central server of the buyer and seller respectively. Waiting Confirmation: In order to ensure that the two parties complete the transaction under the condition of symmetrical information, by obtaining the confirmation information fed back by the central server of the buyer and seller, according to the confirmation information, it is judged whether the buyer and the seller still carry out the transaction. If either party does not agree, Then the transaction will be cancelled, and then the transaction information temporarily stored in the sequence to be uploaded will be deleted.

综上,本方案通过设置在各区的若干中心服务器,允许电子票券的跨区交易,能够避免在交易高峰期因数据量较大而导致电子票券的交易延时,从而加快电子票券交易效率;其次,对于本区能够达成的交易,会生成相应的交易建议提示用户端,从而增大用户端选择在本区交易的可能性,避免跨区交易风险;而对于跨区交易,通过风险管控以及区块链全网广播的方式,能够保障交易的安全性;最后,借助第三方中心服务器,并从中提取出相关的交易记录供买卖双方参考,能够让交易双方充分的信息对称,了解到类似交易的情况;确保双方实在信息对称的情况下完成交易。To sum up, this solution allows cross-regional transactions of electronic coupons by setting up several central servers in each district, which can avoid the transaction delay of electronic coupons due to the large amount of data during peak trading periods, thereby speeding up electronic coupon transactions. Efficiency; secondly, for the transactions that can be reached in this area, corresponding transaction suggestions will be generated to prompt the user terminal, thereby increasing the possibility of the user terminal choosing to trade in this area and avoiding the risk of cross-area transactions; and for cross-area transactions, through the risk The method of management and control and the whole network broadcast of the blockchain can ensure the security of the transaction; finally, with the help of a third-party central server, the relevant transaction records can be extracted from it for the reference of both buyers and sellers, so that both parties can have sufficient information symmetry and understand. Transaction-like situations; ensure that both parties complete the transaction with symmetric information.

进一步,所述步骤S2中具体还包括步骤S21、分别提取买家中心服务器的协议地址和卖家中心服务器的协议地址,生成第一标识信息和第二标识信息;并根据第一标识信息和第二标识信息判断交易双方是否为同一区域。Further, the step S2 also specifically includes step S21, respectively extracting the agreement address of the buyer's center server and the agreement address of the seller's center server, and generating the first identification information and the second identification information; and according to the first identification information and the second identification information The identification information determines whether the two parties to the transaction are in the same area.

有益效果:能够提供一种判断电子票券交易是否发生在同一区的具体方式。Beneficial effects: a specific way of judging whether the electronic ticket transaction occurs in the same area can be provided.

进一步,所述步骤S3中具体还包括步骤S31、根据哈希运算对本次交易信息进行加密,计算得到相应的哈希值,并存入数据库中,生成交易信息与哈希值的关系映射表。Further, the step S3 specifically includes step S31, encrypting the current transaction information according to the hash operation, calculating the corresponding hash value, and storing it in the database to generate a relationship mapping table between the transaction information and the hash value. .

有益效果:通过采用哈希运算处理交易信息,不仅可以简化信息,并在有限时间和有限资源得出哈希值;还具有一定隐秘性,使交易信息无法被篡改。Beneficial effects: By using hash operation to process transaction information, not only can the information be simplified, and the hash value can be obtained in a limited time and limited resources; it also has certain secrecy, so that the transaction information cannot be tampered with.

进一步,所述步骤S4中具体还包括步骤S41、接收通过合法性验证的交易信息,并存入交易池中;S42、根据预设时间周期查询交易池中的交易信息,直到在交易池中查到两个相同的交易信息,则停止继续查询。Further, the step S4 further includes step S41, receiving the transaction information that has passed the legality verification, and storing it in the transaction pool; S42, querying the transaction information in the transaction pool according to a preset time period, until the transaction information is checked in the transaction pool. If two identical transaction information is reached, the query will be stopped.

有益效果:通过设定时间周期按次数查询交易池中的交易信息,无需实时进行查询,能够降低系统的运算负载;此外,通过实际情况调整时间周期,减少查询次数,能够避免无效查询操作,减少系统运算量。Beneficial effects: By setting the time period to query the transaction information in the transaction pool by the number of times, there is no need to query in real time, which can reduce the computing load of the system; in addition, by adjusting the time period according to the actual situation, the number of queries can be reduced, invalid query operations can be avoided, and the number of queries can be reduced. system computation.

本发明还提供了一种电子票券建议生成系统,包括设置在各区的若干中心服务器,所述中心服务器均包括:The present invention also provides an electronic ticket suggestion generation system, including several central servers arranged in each district, and the central servers all include:

接收模块,用于获取本区用户端发起的交易信息,并根据交易信息划定买家中心服务器、卖家中心服务器和第三方中心服务器;The receiving module is used to obtain the transaction information initiated by the client in this area, and define the buyer center server, the seller center server and the third-party center server according to the transaction information;

判断模块,用于判断电子票券交易是否发生在同一区域,如果是,则达成交易;反之,则判断本区能否达成交易,如果能,则向用户端发送提示信息,建议本区内达成;如果不能,则将该交易信息转发至待上链序列,并向第三方中心服务器广播交易信息;The judgment module is used to judge whether the electronic ticket transaction occurs in the same area. If so, the transaction is concluded; otherwise, it is determined whether the transaction can be concluded in this area. ; If not, forward the transaction information to the sequence to be chained, and broadcast the transaction information to the third-party central server;

第一处理模块,用于获取第三方中心服务器发送的与本次交易信息类似的交易记录,并提取交易记录中的评价信息,判断其中是否有差评超过预设阈值的交易记录,如果不存在,则广播记录本次交易信息,并根据区块链算法将本次交易上链封存;如果存在,则广播本次交易延期,并将差评超过预设阈值的交易记录转发至买家中心服务器和卖家中心服务器进行确认;The first processing module is used to obtain a transaction record similar to this transaction information sent by a third-party central server, and extract the evaluation information in the transaction record, and determine whether there is a transaction record with a negative evaluation exceeding a preset threshold, and if there is no transaction record , the transaction information will be broadcast and recorded, and the transaction will be stored on the chain according to the blockchain algorithm; if it exists, the transaction will be broadcasted for extension, and the transaction records whose negative reviews exceed the preset threshold will be forwarded to the buyer center server. Confirm with the seller center server;

第二处理模块,用于获取买家中心服务器和卖家中心服务器发送的确认信息,并根据确认信息判断双方是否仍需进行本次交易,如果是,则交易达成;如果任一方不同意,则取消本次交易,并在待上链序列中删除本次交易信息。The second processing module is used to obtain the confirmation information sent by the buyer's center server and the seller's center server, and judge whether the two parties still need to carry out the transaction according to the confirmation information. If so, the transaction is concluded; if either party disagrees, it will be cancelled This transaction, and delete this transaction information in the pending chain sequence.

有益效果:本方案通过设置在各区的若干中心服务器,允许电子票券的跨区交易,能够避免在交易高峰期因数据量较大而导致电子票券的交易延时,从而加快电子票券交易效率;其次,对于本区能够达成的交易,会生成相应的交易建议提示用户端,从而增大用户端选择在本区交易的可能性,避免跨区交易风险;而对于跨区交易,通过风险管控以及区块链全网广播的方式,能够保障交易的安全性;最后,借助第三方中心服务器,并从中提取出相关的交易记录供买卖双方参考,能够让交易双方充分的信息对称,了解到类似交易的情况;确保双方实在信息对称的情况下完成交易。Beneficial effect: This solution allows cross-regional transactions of electronic tickets by setting up several central servers in each district, which can avoid the transaction delay of electronic tickets due to the large amount of data during peak trading periods, thereby speeding up electronic ticket transactions. Efficiency; secondly, for the transactions that can be reached in this area, corresponding transaction suggestions will be generated to prompt the user terminal, thereby increasing the possibility of the user terminal choosing to trade in this area and avoiding the risk of cross-area transactions; and for cross-area transactions, through the risk The method of management and control and the whole network broadcast of the blockchain can ensure the security of the transaction; finally, with the help of a third-party central server, the relevant transaction records can be extracted from it for the reference of both buyers and sellers, so that both parties can have sufficient information symmetry and understand. Transaction-like situations; ensure that both parties complete the transaction with symmetric information.

进一步,所述判断模块,还用于分别提取买家中心服务器的协议地址和卖家中心服务器的协议地址,生成第一标识信息和第二标识信息;并根据第一标识信息和第二标识信息判断交易双方是否为同一区域。Further, the judging module is also used to extract the agreement address of the buyer's center server and the agreement address of the seller's center server respectively, and generate the first identification information and the second identification information; and judge according to the first identification information and the second identification information Whether the two parties to the transaction are in the same region.

有益效果:意在提供一种能够判断电子票券交易是否发生在同一区的具体方式,即通过提取两台服务器的协议地址,能够轻松和直接找到服务器所属的区域。Beneficial effect: The purpose is to provide a specific way to judge whether the electronic ticket transaction occurs in the same area, that is, by extracting the protocol addresses of the two servers, the area to which the server belongs can be easily and directly found.

进一步,还包括存储模块,用于接收并存储已达成交易的交易信息,生成历史交易信息;所述判断模块,还用于提取本次交易信息中的交易名称,并根据关键字匹配算法查询存储模块中是否有与交易名称相同的历史交易信息,如果有,则判断本区能达成交易。Further, it also includes a storage module, which is used to receive and store the transaction information of the transaction that has been reached, and generate historical transaction information; the judgment module is also used to extract the transaction name in the current transaction information, and query the storage according to the keyword matching algorithm. Whether there is historical transaction information with the same name as the transaction in the module, if so, it is judged that the transaction can be concluded in this area.

有益效果:采用本方案,通过不断存储已达成交易的交易信息,作为历史交易信息,能够拓展存储模块的数据量;便于后续从存储模块找到与本次交易请求类似的历史交易信息。Beneficial effects: By adopting this scheme, by continuously storing transaction information of completed transactions as historical transaction information, the data volume of the storage module can be expanded; it is convenient to subsequently find historical transaction information similar to this transaction request from the storage module.

进一步,还包括交易池,还用于接收并存储通过合法性验证的交易信息;所述第二处理模块,还用于根据预设时间周期查询交易池中的交易信息,直到在交易池中查到两个相同的交易信息,则停止继续查询。Further, it also includes a transaction pool, which is also used to receive and store transaction information that has passed the legality verification; the second processing module is also used to query the transaction information in the transaction pool according to a preset time period, until the transaction pool is checked. If two identical transaction information is reached, the query will be stopped.

有益效果:本方案中,由于交易信息在经过买卖双方的验证后会被存入交易池中,再由第二处理模块按照预设的时间周期在交易池中查询通过合法性验证的交易信息,无需实时查询,降低系统负载。Beneficial effect: In this solution, since the transaction information will be stored in the transaction pool after being verified by both the buyer and the seller, and then the second processing module will query the transaction pool for the transaction information that has passed the legality verification according to a preset time period. No real-time query is required, reducing system load.

进一步,所述第二处理模块,还用于记录查询次数,若查询次数大于预设次数阈值,则延长时间周期。Further, the second processing module is further configured to record the number of queries, and if the number of queries is greater than the preset number of times threshold, the time period is extended.

有益效果:能够有根据地对各中心服务器遍历交易池的时间周期进行调整,从而减少查询的次数,避免无效查询操作,减少系统运算量。Beneficial effects: the time period for each central server to traverse the transaction pool can be adjusted according to the basis, thereby reducing the number of queries, avoiding invalid query operations, and reducing the amount of system computation.

进一步,所述第一处理模块,还用于根据哈希运算对本次交易信息进行加密,计算得到相应的哈希值,并存入数据库中,生成交易信息与哈希值的关系映射表。Further, the first processing module is further configured to encrypt the current transaction information according to the hash operation, calculate the corresponding hash value, store it in the database, and generate a relationship mapping table between the transaction information and the hash value.

有益效果:哈希运算主要是将一串信息通过密码学中哈希函数进行计算,得到的结果是一个固定位数的字符串,不仅可以简化信息,并在有限时间和有限资源得出哈希值;还具有一定隐秘性,使交易信息无法被篡改。Beneficial effect: Hash operation is mainly to calculate a string of information through the hash function in cryptography, and the result obtained is a string of fixed digits, which can not only simplify the information, but also obtain a hash in limited time and limited resources. value; it also has a certain privacy, so that the transaction information cannot be tampered with.

附图说明Description of drawings

图1为本发明一种电子票券交易建议生成方法及系统实施例一的流程图。FIG. 1 is a flowchart of Embodiment 1 of a method and system for generating an electronic ticket transaction suggestion according to the present invention.

具体实施方式Detailed ways

下面通过具体实施方式进一步详细的说明:The following is a further detailed description through specific embodiments:

实施例一Example 1

一种电子票券交易建议生成方法,基本执行流程如图1所示,本实施例中具体包括以下步骤:A method for generating an electronic ticket transaction suggestion, the basic execution process is shown in Figure 1, and the present embodiment specifically includes the following steps:

S1、获取本区用户端发起的交易信息,并根据交易信息划定买家中心服务器、卖家中心服务器和第三方中心服务器;S1. Obtain the transaction information initiated by the client in this area, and define the buyer center server, seller center server and third-party center server according to the transaction information;

S2、判断电子票券交易是否发生在同一区域,如果是,则达成交易;反之,则判断本区能否达成交易,如果能,则向用户端发送提示信息,建议本区内达成;如果不能,则将该交易信息转发至待上链序列,并向第三方中心服务器广播交易信息;具体的,步骤S2中还包括步骤S21、分别提取买家中心服务器的协议地址和卖家中心服务器的协议地址,生成第一标识信息和第二标识信息;并根据第一标识信息和第二标识信息判断交易双方是否为同一区域;S2. Determine whether the electronic ticket transaction occurs in the same area. If so, the transaction is concluded; otherwise, it is determined whether the transaction can be concluded in this area. , then the transaction information is forwarded to the sequence to be linked, and the transaction information is broadcast to the third-party central server; specifically, step S2 also includes step S21, respectively extracting the agreement address of the buyer's central server and the agreement address of the seller's central server. , generate the first identification information and the second identification information; and judge whether the two sides of the transaction are the same area according to the first identification information and the second identification information;

S3、获取第三方中心服务器发送的与本次交易信息类似的交易记录,并提取交易记录中的评价信息,判断其中是否有差评超过预设阈值的交易记录,如果不存在,则广播记录本次交易信息,并根据区块链算法将本次交易上链封存;如果存在,则广播本次交易延期,并将差评超过预设阈值的交易记录转发至买家中心服务器和卖家中心服务器进行确认;本实施例中,步骤S3中具体还包括步骤S31、根据哈希运算对本次交易信息进行加密,计算得到相应的哈希值,并存入数据库中,生成交易信息与哈希值的关系映射表;S3. Obtain a transaction record similar to this transaction information sent by the third-party central server, and extract the evaluation information in the transaction record, and determine whether there is a transaction record with a negative evaluation exceeding a preset threshold. If not, broadcast the record book This transaction information will be stored on the chain according to the blockchain algorithm; if it exists, broadcast the transaction extension, and forward the transaction records whose negative reviews exceed the preset threshold to the buyer center server and seller center server for processing. Confirmation; in this embodiment, step S3 specifically further includes step S31, encrypting the current transaction information according to the hash operation, calculating the corresponding hash value, and storing it in the database to generate the transaction information and the hash value. relationship mapping table;

S4、获取买家中心服务器和卖家中心服务器发送的确认信息,并根据确认信息判断双方是否仍需进行本次交易,如果是,则交易达成;如果任一方不同意,则取消本次交易,并在待上链序列中删除本次交易信息。S4. Obtain the confirmation information sent by the buyer's center server and the seller's center server, and judge whether the two parties still need to carry out the transaction according to the confirmation information. If so, the transaction is concluded; if either party does not agree, the transaction is cancelled and the transaction is completed. Delete this transaction information in the pending chain sequence.

本实施例中的方法是用电子票券交易建议生成系统来实施的;The method in this embodiment is implemented by an electronic ticket transaction suggestion generation system;

该系统包括:设置在各区的若干中心服务器,中心服务器均包括:The system includes: several central servers set up in each district, and the central servers all include:

接收模块,用于获取本区用户端发起的交易信息,并根据交易信息划定买家中心服务器、卖家中心服务器和第三方中心服务器;由于电子票券涉及买卖双方,可以直接根据其中包含的买卖双方信息定位出卖家中心服务器和买家中心服务器,确定买卖中心服务器后,其他各区的中心服务器则可以定义为第三方中心服务器;The receiving module is used to obtain the transaction information initiated by the client in this area, and define the buyer center server, the seller center server and the third-party center server according to the transaction information; since the electronic ticket involves both buyers and sellers, it can be directly The information of both parties locates the seller's central server and the buyer's central server. After the buying and selling central server is determined, the central servers in other districts can be defined as third-party central servers;

判断模块,用于判断电子票券交易是否发生在同一区域,如果是,则达成交易;反之,则判断本区能否达成交易,如果能,则向用户端发送提示信息,建议本区内达成;如果不能,则将该交易信息转发至待上链序列,并向第三方中心服务器广播交易信息;本实施例中,判断模块,还用于分别提取买家中心服务器的协议地址和卖家中心服务器的协议地址,生成第一标识信息和第二标识信息;并根据第一标识信息和第二标识信息判断交易双方是否为同一区域;其中的协议地址类似于现有技术中服务器的IP地址,服务器在进行电子票券交易的过程中,能够同步获取中心服务器的协议地址,根据协议地址可以判定电子票券具体属于哪个服务器,该技术为现有技术,在此不再赘述;如果判断出买卖双方为同一区域,则表示电子票券交易为本区交易,则可以直接达成;相反的,如果不是,则表示正在进行跨区交易,需要进行风险管控,需要再由判断模块该交易是否能够在本区达成;于是,在本实施例中还包括存储模块,用于接收并存储已达成交易的交易信息,生成历史交易信息;所述判断模块,还用于提取本次交易信息中的交易名称,并根据关键字匹配算法查询存储模块中是否有与交易名称相同的历史交易信息,如果有,则判断本区能达成交易;即通过现有的关键字匹配技术根据本次交易信息中的名称对存储模块进行筛查,类似于数据库查找功能,采用这种方式,能够判别本区能达成与本次交易信息类似的交易;这样做的目的在于:如果能,则建议用户在本区内达成交易,安全性方面相对较高;如果不能,则说明该交易属于用户的常规选择,本次交易需要跨区才可以进行;并将该交易信息转发至待上链序列暂存,并向第三方中心服务器广播交易信息,广播交易信息类似于现有技术中的区块链全网广播技术,通过将交易信息在全网进行广播,广播给每一个节点,让全网承认有效,能够解决信任问题;The judgment module is used to judge whether the electronic ticket transaction occurs in the same area. If so, the transaction is concluded; otherwise, it is determined whether the transaction can be concluded in this area. If not, then this transaction information is forwarded to the sequence to be chained, and the transaction information is broadcast to the third-party central server; In this embodiment, the judgment module is also used to extract the agreement address of the buyer's central server and the seller's central server respectively. the protocol address, generate the first identification information and the second identification information; and according to the first identification information and the second identification information, judge whether the two sides of the transaction are the same area; wherein the protocol address is similar to the IP address of the server in the prior art, and the server In the process of electronic ticket transaction, the protocol address of the central server can be obtained synchronously, and which server the electronic ticket belongs to can be determined according to the protocol address. This technology is the prior art and will not be repeated here; If it is in the same area, it means that the electronic ticket transaction is a local transaction, and it can be achieved directly; on the contrary, if it is not, it means that a cross-area transaction is in progress, and risk control needs to be carried out. Therefore, in this embodiment, it also includes a storage module for receiving and storing the transaction information of the transaction that has been reached, and generating historical transaction information; the judgment module is also used for extracting the transaction name in this transaction information, And according to the keyword matching algorithm to query whether there is historical transaction information with the same transaction name in the storage module, if so, it is judged that the transaction can be concluded in this area; that is, through the existing keyword matching technology, according to the name in this transaction information, The storage module performs screening, which is similar to the database search function. In this way, it can be judged that a transaction similar to this transaction information can be concluded in this area; the purpose of this is: if it can, it is recommended that users conclude transactions in this area , the security is relatively high; if not, it means that the transaction is a regular choice of the user, and this transaction can only be carried out across regions; and the transaction information is forwarded to the sequence to be uploaded for temporary storage, and sent to the third-party center The server broadcasts the transaction information. The broadcast transaction information is similar to the blockchain whole network broadcasting technology in the prior art. By broadcasting the transaction information in the whole network and broadcasting it to each node, the whole network can recognize the validity and solve the trust problem;

第一处理模块,用于获取第三方中心服务器发送的与本次交易信息类似的交易记录,并提取交易记录中的评价信息,判断其中是否有差评超过预设阈值的交易记录,如果不存在,则广播记录本次交易信息,并根据区块链算法将本次交易上链封存;如果存在,则广播本次交易延期,并将差评超过预设阈值的交易记录转发至买家中心服务器和卖家中心服务器进行确认;具体的,上链封存主要是采用现有的区块链算法处理交易信息,由第一处理模块根据哈希运算对本次交易信息进行加密,计算得到相应的哈希值,并存入数据库中,生成交易信息与哈希值的关系映射表,其中,采用现有的区块链算法处理交易信息,由第二判断模块根据哈希运算对交易信息进行加密,计算得到相应的哈希值,并存入数据库中,生成交易信息与哈希值的关系映射表,其中,哈希算法是区块链中用的最多的一种算法,它被广泛的使用在构建区块和确认交易的完整性上,为现有技术,应用在本方案中能够避免交易信息被篡改,并提高安全性;此外,从第三中心服务器得到类似交易记录也是根据本次交易的名称进行关键字匹配和筛查,由于这些交易记录中包含了买卖双方给予的评价信息,可供选择的评价信息包括好评和差评;通过各台第三方中心服务器分析本区内类似交易是否有差评超过阈值的交易记录,如果没有,表示根据第三方中心服务器的记录来看本次交易出现问题的几率不大;相反的,如果有,则说明本次交易可能存在风险,需在全网广播本次交易延期,并将相应的交易记录分别转发到买卖双方中心服务器中等待确认;The first processing module is used to obtain a transaction record similar to this transaction information sent by a third-party central server, and extract the evaluation information in the transaction record, and determine whether there is a transaction record with a negative evaluation exceeding a preset threshold, and if there is no transaction record , the transaction information will be broadcast and recorded, and the transaction will be stored on the chain according to the blockchain algorithm; if it exists, the transaction will be broadcasted for extension, and the transaction records whose negative reviews exceed the preset threshold will be forwarded to the buyer center server. Confirm with the seller center server; specifically, the on-chain storage mainly uses the existing blockchain algorithm to process the transaction information, and the first processing module encrypts the transaction information according to the hash operation, and calculates the corresponding hash. The value is stored in the database, and the relationship mapping table between transaction information and hash value is generated. The existing blockchain algorithm is used to process the transaction information, and the second judgment module encrypts the transaction information according to the hash operation, and calculates Get the corresponding hash value and store it in the database to generate a relationship mapping table between transaction information and hash value. Among them, the hash algorithm is the most used algorithm in the blockchain, and it is widely used in the construction of In terms of the integrity of blocks and confirmed transactions, it is an existing technology, and the application in this scheme can prevent transaction information from being tampered with and improve security; in addition, obtaining similar transaction records from the third central server is also based on the name of this transaction. Carry out keyword matching and screening. Since these transaction records contain evaluation information given by buyers and sellers, the available evaluation information includes positive and negative comments; through each third-party central server to analyze whether there are differences in similar transactions in the area Evaluate the transaction records that exceed the threshold. If there are no records, it means that there is little chance of problems in this transaction according to the records of the third-party central server; on the contrary, if there are, it means that there may be risks in this transaction, which needs to be broadcast on the entire network. The transaction is postponed, and the corresponding transaction records are forwarded to the central server of the buyer and seller respectively for confirmation;

第二处理模块,用于获取买家中心服务器和卖家中心服务器发送的确认信息,并根据确认信息判断双方是否仍需进行本次交易,如果是,则交易达成;如果任一方不同意,则取消本次交易,并在待上链序列中删除本次交易信息。为了确保双方是在信息对称的情况下完成的交易,本实施例中还包括交易池,用于接收并存储通过合法性验证的交易信息;所述第二处理模块,还用于根据预设时间周期查询交易池中的交易信息,直到在交易池中查到两个相同的交易信息,则停止继续查询;其中,合法性验证的方式主要是采集买卖双方的指纹信息或者签名进行确认;通过获取买卖双方中心服务器反馈的确认信息,根据确认信息来判断买卖双方是否仍然进行本次交易,如果两者中任一方不同意,则取消本次交易,随后将暂存在待上链序列中的本次交易信息删除。The second processing module is used to obtain the confirmation information sent by the buyer's center server and the seller's center server, and judge whether the two parties still need to carry out the transaction according to the confirmation information. If so, the transaction is concluded; if either party disagrees, it will be cancelled This transaction, and delete this transaction information in the pending chain sequence. In order to ensure that the two parties complete the transaction under the condition of information symmetry, this embodiment also includes a transaction pool, which is used to receive and store the transaction information that has passed the legality verification; the second processing module is also used to Periodically query the transaction information in the transaction pool, until two identical transaction information is found in the transaction pool, then stop the query; among them, the method of legality verification is mainly to collect the fingerprint information or signature of the buyer and seller for confirmation; by obtaining The confirmation information fed back by the central server of the buyer and seller, based on the confirmation information to determine whether the buyer and seller are still conducting this transaction, if either party does not agree, the transaction will be cancelled, and then it will be temporarily stored in the sequence to be uploaded. Transaction information is deleted.

采用本方案,通过借助第三方中心服务器,并从中提取出相关的交易记录供买卖双方参考,能够让交易双方充分的信息对称,了解到类似交易的情况;确保双方实在信息对称的情况下完成交易。By adopting this solution, by using a third-party central server and extracting relevant transaction records for the reference of buyers and sellers, both parties can have sufficient information symmetry to understand the situation of similar transactions; ensure that both parties complete the transaction under the condition of information symmetry .

实施例二Embodiment 2

与实施例一相比,不同之处仅在于,还包括交易池,用于接收并储存通过合法性验证的交易信息;第二处理模块,还用于根据预设时间周期查询交易池中的交易信息,直到在交易池中查到两个相同的交易信息,则停止继续查询;其中,预设时间周期为60s,表示第二处理模块会在60秒自动执行一次交易池的查询操作,判断交易池中是否有两个相同的交易信息,并在此时停止查询;在另一实施例中,第二处理模块,还用于记录查询次数,若查询次数大于预设次数阈值,则延长时间周期;且设定次数阈值具体为5次,比如在执行某一次交易信息查询时,中心服务器A进行了6次查询,将其时间周期调整为70s执行一次查询。Compared with the first embodiment, the only difference is that it also includes a transaction pool, which is used to receive and store transaction information that has passed legality verification; the second processing module is also used to query transactions in the transaction pool according to a preset time period. information, until two identical transaction information is found in the transaction pool, the query will stop; the preset time period is 60s, which means that the second processing module will automatically perform a query operation of the transaction pool within 60 seconds to determine the transaction. Whether there are two identical transaction information in the pool, and stop querying at this time; in another embodiment, the second processing module is also used to record the number of queries, and if the number of queries is greater than the preset number of times threshold, the time period is extended ; and the set number of times threshold is specifically 5 times. For example, when executing a certain transaction information query, the central server A performs 6 queries, and adjusts its time period to 70s to execute a query.

一种电子票券交易风控管理方法,在实施例一的基础上,步骤S4中具体还包括步骤S41、接收通过合法性验证的交易信息,并存入交易池中;S42、根据预设时间周期查询交易池中的交易信息,直到在交易池中查到两个相同的交易信息,则停止继续查询;S43、记录查询次数,若查询次数大于预设次数阈值,则延长时间周期。A risk control and management method for electronic ticket transactions, on the basis of Embodiment 1, step S4 specifically further includes step S41, receiving transaction information that has passed legality verification, and storing it in a transaction pool; S42, according to a preset time Periodically query the transaction information in the transaction pool, until two identical transaction information is found in the transaction pool, then stop continuing the inquiry; S43, record the number of inquiries, and extend the time period if the number of inquiries is greater than the preset number of times threshold.

实施例三Embodiment 3

与实施例一相比,不同之处仅在于,还包括封存模块,用于根据哈希运算对交易请求进行加密,计算得到第一哈希值,生成交易请求与第一哈希值的关系映射表,将关系映射表分别存入买家中心服务器和卖家中心服务器中;所述交易请求中包括交易双方信息和交易详情记录。封存模块,还用于记录关系映射表在买家中心服务器和卖家中心服务器中的存放时间,若存放时间大于预设时间阈值(本实施例中设定为3天),则从交易请求中的交易详细记录,仅保留交易双方信息,生成新的交易请求;并根据哈希运算对新的交易请求进行加密,计算得到第二哈希值,生成新的交易请求与第二哈希值的关系映射表,并存入第三中心服务器中。Compared with the first embodiment, the only difference is that it also includes a sealing module, which is used to encrypt the transaction request according to the hash operation, calculate the first hash value, and generate a relationship map between the transaction request and the first hash value. The relationship mapping table is stored in the buyer's center server and the seller's center server respectively; the transaction request includes transaction information and transaction details records. The sealing module is also used to record the storage time of the relationship mapping table in the buyer center server and the seller center server. If the storage time is greater than the preset time threshold (set to 3 days in this embodiment), then the transaction request The transaction details record, only the information of both parties of the transaction is kept, and a new transaction request is generated; the new transaction request is encrypted according to the hash operation, the second hash value is calculated, and the relationship between the new transaction request and the second hash value is generated. The mapping table is stored in the third central server.

本方案通过在发生交易操作的买家中心服务器和卖家中心服务器中,仍然保留交易详情记录并计算相应的哈希值,能够保证数据的完整性,和便于后续对数据库的赘述和调用;在第三方中心服务器中仅保存交易双方信息作为简化版的交易请求,并计算哈希值,而不是存储占用空间较大的交易详情,能够节省中心服务器的存储空间。This solution can ensure the integrity of the data and facilitate the subsequent repetition and invocation of the database by still retaining the transaction details records and calculating the corresponding hash value in the buyer center server and the seller center server where the transaction operation occurs. In the three-party central server, only the information of both parties of the transaction is stored as a simplified version of the transaction request, and the hash value is calculated instead of storing the transaction details that occupy a large space, which can save the storage space of the central server.

由于现有技术中,交易信息同步上链后,所有第三方中心服务器中均备份了票券交易信息;且随着交易的不断进行,第三方服务器中会累积大量交易信息,占用大量的存储空间。采用本方案能够使没有参与交易的第三方中心服务器不存储具体的交易详情,仅存储一个简单的交易对象信息,通过这样的一个指代信息能够便于后续再以此进行交易信息的提取和识别,能够节省系统的存储空间。Because in the prior art, after the transaction information is synchronized on the chain, all the third-party central servers have backed up the ticket transaction information; and as the transaction continues, a large amount of transaction information will be accumulated in the third-party server, occupying a large amount of storage space . By adopting this solution, the third-party central server that does not participate in the transaction does not store specific transaction details, but only stores a simple transaction object information. Such a reference information can facilitate the subsequent extraction and identification of transaction information. It can save system storage space.

以上所述的仅是本发明的实施例,方案中公知的具体结构及特性等常识在此未作过多描述,所属领域普通技术人员知晓申请日或者优先权日之前发明所属技术领域所有的普通技术知识,能够获知该领域中所有的现有技术,并且具有应用该日期之前常规实验手段的能力,所属领域普通技术人员可以在本申请给出的启示下,结合自身能力完善并实施本方案,一些典型的公知结构或者公知方法不应当成为所属领域普通技术人员实施本申请的障碍。应当指出,对于本领域的技术人员来说,在不脱离本发明结构的前提下,还可以作出若干变形和改进,这些也应该视为本发明的保护范围,这些都不会影响本发明实施的效果和专利的实用性。本申请要求的保护范围应当以其权利要求的内容为准,说明书中的具体实施方式等记载可以用于解释权利要求的内容。The above are only the embodiments of the present invention, and the common knowledge such as the well-known specific structures and characteristics in the scheme has not been described too much here. Those of ordinary skill in the art know that the invention belongs to the technical field before the filing date or the priority date. Technical knowledge, can know all the existing technologies in this field, and have the ability to apply conventional experimental means before the date, those of ordinary skill in the art can improve and implement this scheme in combination with their own abilities under the enlightenment given in this application, Some typical well-known structures or well-known methods should not be an obstacle to those skilled in the art from practicing the present application. It should be pointed out that for those skilled in the art, on the premise of not departing from the structure of the present invention, several modifications and improvements can also be made, which should also be regarded as the protection scope of the present invention, and these will not affect the implementation of the present invention. Effectiveness and utility of patents. The scope of protection claimed in this application shall be based on the content of the claims, and the descriptions of the specific implementation manners in the description can be used to interpret the content of the claims.

Claims (10)

1.一种电子票券交易建议生成方法,其特征在于,包括以下步骤:1. A method for generating an electronic ticket transaction suggestion, characterized in that, comprising the following steps: S1、获取本区用户端发起的交易信息,并根据交易信息划定买家中心服务器、卖家中心服务器和第三方中心服务器;S1. Obtain the transaction information initiated by the client in this area, and define the buyer center server, seller center server and third-party center server according to the transaction information; S2、判断电子票券交易是否发生在同一区域,如果是,则达成交易;反之,则判断本区能否达成交易,如果能,则向用户端发送提示信息,建议本区内达成;如果不能,则将该交易信息转发至待上链序列,并向第三方中心服务器广播交易信息;S2. Determine whether the electronic ticket transaction occurs in the same area. If so, the transaction is concluded; otherwise, it is determined whether the transaction can be concluded in this area. , the transaction information is forwarded to the sequence to be uploaded, and the transaction information is broadcast to the third-party central server; S3、获取第三方中心服务器发送的与本次交易信息类似的交易记录,并提取交易记录中的评价信息,判断其中是否有差评超过预设阈值的交易记录,如果不存在,则广播记录本次交易信息,并根据区块链算法将本次交易上链封存;如果存在,则广播本次交易延期,并将差评超过预设阈值的交易记录转发至买家中心服务器和卖家中心服务器进行确认;S3. Obtain a transaction record similar to this transaction information sent by the third-party central server, and extract the evaluation information in the transaction record, and determine whether there is a transaction record with a negative evaluation exceeding a preset threshold. If not, broadcast the record book This transaction information will be stored on the chain according to the blockchain algorithm; if it exists, broadcast the transaction extension, and forward the transaction records whose negative reviews exceed the preset threshold to the buyer center server and seller center server for processing. confirm; S4、获取买家中心服务器和卖家中心服务器发送的确认信息,并根据确认信息判断双方是否仍需进行本次交易,如果是,则交易达成;如果任一方不同意,则取消本次交易,并在待上链序列中删除本次交易信息。S4. Obtain the confirmation information sent by the buyer's center server and the seller's center server, and judge whether the two parties still need to carry out the transaction according to the confirmation information. If so, the transaction is concluded; if either party does not agree, the transaction is cancelled and the transaction is completed. Delete this transaction information in the pending chain sequence. 2.根据权利要求1所述的电子票券交易建议生成方法,其特征在于:所述步骤S2中具体还包括步骤S21、分别提取买家中心服务器的协议地址和卖家中心服务器的协议地址,生成第一标识信息和第二标识信息;并根据第一标识信息和第二标识信息判断交易双方是否为同一区域。2. The method for generating an electronic ticket transaction suggestion according to claim 1, characterized in that: in the step S2, it further comprises step S21, respectively extracting the agreement address of the buyer's center server and the agreement address of the seller's center server, and generating The first identification information and the second identification information; and according to the first identification information and the second identification information, it is judged whether the two sides of the transaction are in the same area. 3.根据权利要求1所述的电子票券交易建议生成方法,其特征在于:所述步骤S3中具体还包括步骤S31、根据哈希运算对本次交易信息进行加密,计算得到相应的哈希值,并存入数据库中,生成交易信息与哈希值的关系映射表。3. The method for generating an electronic ticket transaction suggestion according to claim 1, wherein the step S3 further comprises a step S31, encrypting the current transaction information according to a hash operation, and calculating the corresponding hash The value is stored in the database, and the relationship mapping table between transaction information and hash value is generated. 4.根据权利要求1所述的电子票券交易建议生成方法,其特征在于:所述步骤S4中具体还包括步骤S41、接收通过合法性验证的交易信息,并存入交易池中;S42、根据预设时间周期查询交易池中的交易信息,直到在交易池中查到两个相同的交易信息,则停止继续查询。4. The method for generating an electronic ticket transaction suggestion according to claim 1, characterized in that: the step S4 specifically further comprises a step S41, receiving the transaction information that has passed the legality verification, and storing it in the transaction pool; S42, Query the transaction information in the transaction pool according to the preset time period, and stop querying until two identical transaction information is found in the transaction pool. 5.一种电子票券交易建议生成系统,其特征在于,包括设置在各区的若干中心服务器,所述中心服务器均包括:5. An electronic ticket transaction suggestion generation system, characterized in that it comprises several central servers arranged in each district, and the central servers all comprise: 接收模块,用于获取本区用户端发起的交易信息,并根据交易信息划定买家中心服务器、卖家中心服务器和第三方中心服务器;The receiving module is used to obtain the transaction information initiated by the client in this area, and define the buyer center server, the seller center server and the third-party center server according to the transaction information; 判断模块,用于判断电子票券交易是否发生在同一区域,如果是,则达成交易;反之,则判断本区能否达成交易,如果能,则向用户端发送提示信息,建议本区内达成;如果不能,则将该交易信息转发至待上链序列,并向第三方中心服务器广播交易信息;The judgment module is used to judge whether the electronic ticket transaction occurs in the same area. If so, the transaction is concluded; otherwise, it is judged whether the transaction can be concluded in this area. ; If not, forward the transaction information to the sequence to be chained, and broadcast the transaction information to the third-party central server; 第一处理模块,用于获取第三方中心服务器发送的与本次交易信息类似的交易记录,并提取交易记录中的评价信息,判断其中是否有差评超过预设阈值的交易记录,如果不存在,则广播记录本次交易信息,并根据区块链算法将本次交易上链封存;如果存在,则广播本次交易延期,并将差评超过预设阈值的交易记录转发至买家中心服务器和卖家中心服务器进行确认;The first processing module is used to obtain a transaction record similar to this transaction information sent by a third-party central server, and extract the evaluation information in the transaction record, and determine whether there is a transaction record with a negative evaluation exceeding a preset threshold, and if there is no transaction record , the transaction information will be broadcast and recorded, and the transaction will be stored on the chain according to the blockchain algorithm; if it exists, the transaction will be broadcasted for extension, and the transaction records whose negative reviews exceed the preset threshold will be forwarded to the buyer center server. Confirm with the seller center server; 第二处理模块,用于获取买家中心服务器和卖家中心服务器发送的确认信息,并根据确认信息判断双方是否仍需进行本次交易,如果是,则交易达成;如果任一方不同意,则取消本次交易,并在待上链序列中删除本次交易信息。The second processing module is used to obtain the confirmation information sent by the buyer's center server and the seller's center server, and judge whether the two parties still need to carry out the transaction according to the confirmation information. If so, the transaction is concluded; if either party disagrees, it will be cancelled This transaction, and delete this transaction information in the pending chain sequence. 6.根据权利要求5所述的电子票券交易建议生成系统,其特征在于:所述判断模块,还用于分别提取买家中心服务器的协议地址和卖家中心服务器的协议地址,生成第一标识信息和第二标识信息;并根据第一标识信息和第二标识信息判断交易双方是否为同一区域。6. The electronic ticket transaction suggestion generation system according to claim 5, wherein the judging module is also used to extract the agreement address of the buyer's center server and the agreement address of the seller's center server respectively, and generate the first identification information and second identification information; and according to the first identification information and the second identification information to determine whether the two parties to the transaction are in the same area. 7.根据权利要求5所述的电子票券交易建议生成系统,其特征在于:还包括存储模块,用于接收并存储已达成交易的交易信息,生成历史交易信息;所述判断模块,还用于提取本次交易信息中的交易名称,并根据关键字匹配算法查询存储模块中是否有与交易名称相同的历史交易信息,如果有,则判断本区能达成交易。7. The electronic ticket transaction suggestion generation system according to claim 5, characterized in that: it further comprises a storage module for receiving and storing the transaction information of the transaction that has been reached, and generating historical transaction information; the judging module also uses The transaction name in the current transaction information is extracted, and according to the keyword matching algorithm, the storage module is queried whether there is historical transaction information with the same transaction name. 8.根据权利要求5所述的电子票券交易建议生成系统,其特征在于:还包括交易池,用于接收并存储通过合法性验证的交易信息;所述第二处理模块,还用于根据预设时间周期查询交易池中的交易信息,直到在交易池中查到两个相同的交易信息,则停止继续查询。8. The electronic ticket transaction suggestion generation system according to claim 5, characterized in that: further comprising a transaction pool for receiving and storing transaction information that has passed legality verification; the second processing module is also used for Query the transaction information in the transaction pool for a preset time period, and stop continuing to query until two identical transaction information is found in the transaction pool. 9.根据权利要求5所述的电子票券交易建议生成系统,其特征在于:所述第二处理模块,还用于记录查询次数,若查询次数大于预设次数阈值,则延长时间周期。9 . The electronic ticket transaction suggestion generation system according to claim 5 , wherein the second processing module is further configured to record the number of inquiries, and if the number of inquiries is greater than a preset number of thresholds, the time period is extended. 10 . 10.根据权利要求5所述的电子票券交易建议生成系统,其特征在于:所述第一处理模块,还用于根据哈希运算对本次交易信息进行加密,计算得到相应的哈希值,并存入数据库中,生成交易信息与哈希值的关系映射表。10. The electronic ticket transaction suggestion generation system according to claim 5, wherein the first processing module is further configured to encrypt the current transaction information according to a hash operation, and obtain a corresponding hash value by calculation , and stored in the database to generate the relationship mapping table between transaction information and hash value.
CN202011062720.2A 2020-09-30 2020-09-30 Electronic ticket transaction suggestion generation method and system Active CN112150160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011062720.2A CN112150160B (en) 2020-09-30 2020-09-30 Electronic ticket transaction suggestion generation method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011062720.2A CN112150160B (en) 2020-09-30 2020-09-30 Electronic ticket transaction suggestion generation method and system

Publications (2)

Publication Number Publication Date
CN112150160A true CN112150160A (en) 2020-12-29
CN112150160B CN112150160B (en) 2023-08-08

Family

ID=73951630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011062720.2A Active CN112150160B (en) 2020-09-30 2020-09-30 Electronic ticket transaction suggestion generation method and system

Country Status (1)

Country Link
CN (1) CN112150160B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114549137A (en) * 2022-02-28 2022-05-27 北京有竹居网络技术有限公司 Request processing method and device
CN114888795A (en) * 2022-04-25 2022-08-12 重庆市科学技术研究院 Future teaching space scene modeling and cognitive understanding method and system

Citations (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010014870A1 (en) * 2000-02-02 2001-08-16 Kabushiki Kaisha Toshiba Electronic coupon sending and collecting scheme and information collecting and managing scheme using radio LAN
JP2002222316A (en) * 2001-01-26 2002-08-09 Nec Corp Dealing system and dealing method by using network and dealing program
DE10222859A1 (en) * 2002-05-23 2003-12-04 Ident Technology Ag Object presence analysis system uses evaluation of signal generated by signal transmitter assigned to object
US20050060536A1 (en) * 2003-09-17 2005-03-17 Nec Corporation Portable information terminal, and electronic information authenticating system and method using same terminal
US20050172335A1 (en) * 2004-01-30 2005-08-04 Aday Michael A. System and method for assigning quality to cryptographic identities used in a digital transaction
US20070088614A1 (en) * 2002-04-16 2007-04-19 Shuya Huo Electronic information item selection for trade and traded item control delivery system
CN1959728A (en) * 2005-11-01 2007-05-09 郑益庆 Network transaction processing system and method
US20080275748A1 (en) * 2007-05-04 2008-11-06 Michael Sasha John Systems and methods for facilitating electronic transactions and deterring fraud
WO2012168457A1 (en) * 2011-06-10 2012-12-13 Swedbank Ab Electronic transactions
EP2615575A1 (en) * 2012-01-13 2013-07-17 Hyundai Motor Company Reverse auction system and method for matching between buyer and seller using space analysis
US20140188723A1 (en) * 2013-01-02 2014-07-03 Mastercard International Incorporated Methods and systems for mitigating fraud losses during a payment card transaction
CN104408610A (en) * 2014-12-03 2015-03-11 苏州贝多环保技术有限公司 Third-party payment platform business processing method based on risk assessment
US20150287114A1 (en) * 2014-04-03 2015-10-08 Arnold Auer Computer-implemented system of grouping buyer requests matching in combination with a seller offer
CN105701651A (en) * 2016-01-11 2016-06-22 何伯祥 Cross-regional settlement transaction system and method
WO2016202108A1 (en) * 2015-06-19 2016-12-22 宇龙计算机通信科技(深圳)有限公司 Nfc payment method, nfc payment system and mobile terminal
US20170004506A1 (en) * 2015-06-14 2017-01-05 Tender Armor, Llc Security for electronic transactions and user authentication
CN107395403A (en) * 2017-07-07 2017-11-24 北京区块链云科技有限公司 A kind of fiduciary block chain common recognition method suitable for extensive ecommerce
US20180039994A1 (en) * 2016-08-02 2018-02-08 International Business Machines Corporation Conformity determination of cross-regional affairs
CN107918868A (en) * 2016-10-07 2018-04-17 华讯资讯服务有限公司 Electronic ticket transaction system combined with block chain and electronic ticket transaction method thereof
US20180121923A1 (en) * 2015-06-18 2018-05-03 Coinplug, Inc. System and method for verifying forgery of financial institution proof documents on basis of block chain
US20180225670A1 (en) * 2017-02-03 2018-08-09 Samsung Electronics Co., Ltd. Electronic device and method for performing plurality of payments
WO2018234882A1 (en) * 2017-05-16 2018-12-27 Angus Bernhardt Pohl A system and method for conducting a transaction
US20190147431A1 (en) * 2017-11-16 2019-05-16 Blockmason Inc. Credit Protocol
CN109816386A (en) * 2019-01-24 2019-05-28 杭州趣链科技有限公司 Data get through method on a kind of chain of the unified identity authentication based on block chain
CN110633329A (en) * 2019-10-12 2019-12-31 链农(深圳)信息科技有限公司 System and method for block chain transaction record
CN110738474A (en) * 2019-10-14 2020-01-31 普联软件股份有限公司 method and system for encrypting digital currency tokens based on SM2 cryptographic algorithm
US20200065794A1 (en) * 2017-08-03 2020-02-27 Liquineq AG System and method for conducting and securing transactions when blockchain connection is unreliable
US20200126078A1 (en) * 2018-10-23 2020-04-23 Vopy Technology As Apparatus, systems, and methods for authorization of electronic transactions based on secured zones
US20200160328A1 (en) * 2018-11-21 2020-05-21 TraDove, Inc. Lightweight blockchain supported transaction platform with digital bill optimizations and denominations
WO2020102782A1 (en) * 2018-11-15 2020-05-22 Dan Kikinis Multi-tiered distributed network transactional database
US20200193432A1 (en) * 2017-04-24 2020-06-18 Blocksettle Ab Method and system for settling a blockchain transaction

Patent Citations (31)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010014870A1 (en) * 2000-02-02 2001-08-16 Kabushiki Kaisha Toshiba Electronic coupon sending and collecting scheme and information collecting and managing scheme using radio LAN
JP2002222316A (en) * 2001-01-26 2002-08-09 Nec Corp Dealing system and dealing method by using network and dealing program
US20070088614A1 (en) * 2002-04-16 2007-04-19 Shuya Huo Electronic information item selection for trade and traded item control delivery system
DE10222859A1 (en) * 2002-05-23 2003-12-04 Ident Technology Ag Object presence analysis system uses evaluation of signal generated by signal transmitter assigned to object
US20050060536A1 (en) * 2003-09-17 2005-03-17 Nec Corporation Portable information terminal, and electronic information authenticating system and method using same terminal
US20050172335A1 (en) * 2004-01-30 2005-08-04 Aday Michael A. System and method for assigning quality to cryptographic identities used in a digital transaction
CN1959728A (en) * 2005-11-01 2007-05-09 郑益庆 Network transaction processing system and method
US20080275748A1 (en) * 2007-05-04 2008-11-06 Michael Sasha John Systems and methods for facilitating electronic transactions and deterring fraud
WO2012168457A1 (en) * 2011-06-10 2012-12-13 Swedbank Ab Electronic transactions
EP2615575A1 (en) * 2012-01-13 2013-07-17 Hyundai Motor Company Reverse auction system and method for matching between buyer and seller using space analysis
US20140188723A1 (en) * 2013-01-02 2014-07-03 Mastercard International Incorporated Methods and systems for mitigating fraud losses during a payment card transaction
US20150287114A1 (en) * 2014-04-03 2015-10-08 Arnold Auer Computer-implemented system of grouping buyer requests matching in combination with a seller offer
CN104408610A (en) * 2014-12-03 2015-03-11 苏州贝多环保技术有限公司 Third-party payment platform business processing method based on risk assessment
US20170004506A1 (en) * 2015-06-14 2017-01-05 Tender Armor, Llc Security for electronic transactions and user authentication
US20180121923A1 (en) * 2015-06-18 2018-05-03 Coinplug, Inc. System and method for verifying forgery of financial institution proof documents on basis of block chain
WO2016202108A1 (en) * 2015-06-19 2016-12-22 宇龙计算机通信科技(深圳)有限公司 Nfc payment method, nfc payment system and mobile terminal
CN105701651A (en) * 2016-01-11 2016-06-22 何伯祥 Cross-regional settlement transaction system and method
US20180039994A1 (en) * 2016-08-02 2018-02-08 International Business Machines Corporation Conformity determination of cross-regional affairs
CN107918868A (en) * 2016-10-07 2018-04-17 华讯资讯服务有限公司 Electronic ticket transaction system combined with block chain and electronic ticket transaction method thereof
US20180225670A1 (en) * 2017-02-03 2018-08-09 Samsung Electronics Co., Ltd. Electronic device and method for performing plurality of payments
US20200193432A1 (en) * 2017-04-24 2020-06-18 Blocksettle Ab Method and system for settling a blockchain transaction
WO2018234882A1 (en) * 2017-05-16 2018-12-27 Angus Bernhardt Pohl A system and method for conducting a transaction
CN107395403A (en) * 2017-07-07 2017-11-24 北京区块链云科技有限公司 A kind of fiduciary block chain common recognition method suitable for extensive ecommerce
US20200065794A1 (en) * 2017-08-03 2020-02-27 Liquineq AG System and method for conducting and securing transactions when blockchain connection is unreliable
US20190147431A1 (en) * 2017-11-16 2019-05-16 Blockmason Inc. Credit Protocol
US20200126078A1 (en) * 2018-10-23 2020-04-23 Vopy Technology As Apparatus, systems, and methods for authorization of electronic transactions based on secured zones
WO2020102782A1 (en) * 2018-11-15 2020-05-22 Dan Kikinis Multi-tiered distributed network transactional database
US20200160328A1 (en) * 2018-11-21 2020-05-21 TraDove, Inc. Lightweight blockchain supported transaction platform with digital bill optimizations and denominations
CN109816386A (en) * 2019-01-24 2019-05-28 杭州趣链科技有限公司 Data get through method on a kind of chain of the unified identity authentication based on block chain
CN110633329A (en) * 2019-10-12 2019-12-31 链农(深圳)信息科技有限公司 System and method for block chain transaction record
CN110738474A (en) * 2019-10-14 2020-01-31 普联软件股份有限公司 method and system for encrypting digital currency tokens based on SM2 cryptographic algorithm

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
李梦茹;李阳;张哲;刘金秋;: "基于区块链的电子发票系统研究", 数码世界, no. 09 *
杨帆;王燕霞;李国勇;周扬眉;王佩;: "成渝地区双城经济圈综合科技服务模式研究及应用示范", 中国基础科学, no. 02 *
韩爽;蒲宝明;李顺喜;李相泽;张笑东;王帅;: "区块链技术在数字资产安全交易中的应用", 计算机系统应用, no. 03 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114549137A (en) * 2022-02-28 2022-05-27 北京有竹居网络技术有限公司 Request processing method and device
CN114888795A (en) * 2022-04-25 2022-08-12 重庆市科学技术研究院 Future teaching space scene modeling and cognitive understanding method and system
CN114888795B (en) * 2022-04-25 2023-08-18 重庆市科学技术研究院 Future teaching space scene modeling and cognitive understanding method and system

Also Published As

Publication number Publication date
CN112150160B (en) 2023-08-08

Similar Documents

Publication Publication Date Title
US11734675B2 (en) Systems and methods of blockchain transaction recordation
CN111461739B (en) Bank mobile comprehensive service system and device suitable for second-level legal person
WO2020147484A1 (en) Transaction clearing method and transaction clearing system
CN111814195B (en) Data management method, device and equipment based on trusted hardware
CN111383005A (en) Digital currency flow direction tracking method and device
CN111563098A (en) Structured and unstructured data query method, device, storage medium and device
CN112801778A (en) Federated bad asset blockchain
US20100262837A1 (en) Systems And Methods For Personal Digital Data Ownership And Vaulting
CN111444416B (en) Financial service popularization method, system and device
CN112150160B (en) Electronic ticket transaction suggestion generation method and system
CN110598479A (en) Data processing method and device and computer readable storage medium
CN115310894A (en) Purchasing contract management method
WO2018001120A1 (en) Method and device facilitating expansion of primary payment instruments
CN112734418A (en) Block chain-based equity asset purchasing and gifting system
CN117557360A (en) Digital creditor certificate generation method and device, computer equipment and storage medium
CN112150150B (en) A blockchain-based electronic coupon trading system and method
CN111160916A (en) Risk transaction identification method and device
TWI737522B (en) A system for processing accounting records in accounting public ledger using blockchain
CN115511633A (en) Method, device, terminal and storage medium for recovering blockchain assets
CN117592986A (en) Transaction method, device, equipment, system and storage medium
CN115099800A (en) Block chain based method and device for transferring poor asset data
CN115170302A (en) Digital currency circulation method and system
CN112150161B (en) A risk management and control system and method for electronic ticket trading
Saxena et al. UML Modeling & Protection of Domain Based System
CN112926091B (en) Block chain-based data ownership recording and data transaction verification method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant