CN109753530B - Data processing method and device, medium and terminal thereof - Google Patents

Data processing method and device, medium and terminal thereof Download PDF

Info

Publication number
CN109753530B
CN109753530B CN201811611359.7A CN201811611359A CN109753530B CN 109753530 B CN109753530 B CN 109753530B CN 201811611359 A CN201811611359 A CN 201811611359A CN 109753530 B CN109753530 B CN 109753530B
Authority
CN
China
Prior art keywords
data
presentation
display
information
interaction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811611359.7A
Other languages
Chinese (zh)
Other versions
CN109753530A (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.)
Shigengjian Data Technology Shanghai Co ltd
Original Assignee
Shigengjian Data Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shigengjian Data Technology Shanghai Co ltd filed Critical Shigengjian Data Technology Shanghai Co ltd
Priority to CN201811611359.7A priority Critical patent/CN109753530B/en
Publication of CN109753530A publication Critical patent/CN109753530A/en
Priority to US16/726,777 priority patent/US10725744B2/en
Application granted granted Critical
Publication of CN109753530B publication Critical patent/CN109753530B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses a data processing method, a device, a medium and a terminal thereof, wherein the data processing method comprises the following steps: generating display data according to the interaction mode of the intelligent contract and the blockchain and parameter names contained in the interaction data, wherein the interaction data is selected from data interacting with the blockchain through the intelligent contract; and responding to a display request, and displaying a user interface based on the display data. The technical scheme in the embodiment of the invention can improve the user experience in the process of interacting with the block chain.

Description

Data processing method and device, medium and terminal thereof
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a data processing method, an apparatus, a medium, and a terminal thereof.
Background
With the rapid development of the blockchain technology, the application of the blockchain technology is more extensive, and users pay more attention to the data interaction problem with the blockchain in the application of the blockchain technology.
How to improve the user experience in the process of interacting with the block chain becomes a problem to be solved urgently.
Disclosure of Invention
The technical problem solved by the embodiment of the invention is to improve the user experience in the process of interacting with the block chain.
In order to solve the above technical problem, an embodiment of the present invention provides a data processing method, including: generating display data according to the interaction mode of the intelligent contract and the blockchain and parameter names contained in the interaction data, wherein the interaction data is selected from data interacting with the blockchain through the intelligent contract; and responding to a display request, and displaying a user interface based on the display data.
Optionally, the generating of the display data according to the interaction mode between the intelligent contract and the blockchain and the parameter name included in the interaction data includes: acquiring page information from the blockchain, wherein the page information comprises the interactive data; screening the page information based on the format of the page information to obtain interactive data of the intelligent contract and the block chain; determining an information screening template according to the mode of interaction between the intelligent contract and the block chain and the parameter name contained in the interaction data; screening the page information by using the information screening template to obtain screened information and corresponding text description, wherein the text description is determined according to the parameter name and the interactive mode; splicing the screened information and the corresponding text description; and determining the display data according to the spliced data.
Optionally, the intelligent contract comprises a preset intelligent contract; the generating of the display data according to the interaction mode of the intelligent contract and the block chain and the parameter name included in the interaction data further comprises: and determining the interaction mode and the interaction data of the preset intelligent contract and the block chain.
Optionally, the screening the page information by using the information screening template includes at least one of the following: and screening the state of the operation interacting with the block chain and the numerical value corresponding to the parameter name.
Optionally, the method further includes: receiving the display request; and determining the network address of the page information according to the display request.
Optionally, the display request is a request for viewing an order log, and the display request includes order information; the determining the network address of the page information according to the display request includes: and acquiring one or more network addresses corresponding to the order information in the display request.
Optionally, the display request includes a network address of the page information.
Optionally, the obtaining page information from the block chain includes: acquiring the page information at a preset time point; the presentation data includes a plurality of data corresponding to the page information, and the presentation of the user interface based on the presentation data in response to the presentation request includes: determining data associated with the presentation request among the plurality of data; presenting, through the user interface, data associated with the presentation request.
Optionally, the generating of the display data according to the interaction mode between the intelligent contract and the blockchain and the parameter name included in the interaction data includes: responding to the calling of the interface of the intelligent contract, and calling data interacted between the interface and the blockchain as the interactive data; generating the display data according to the interaction mode of the intelligent contract and the block chain and the parameter name contained in the interaction data, wherein the interaction mode of the intelligent contract and the block chain is determined based on the interface; and recording the display data in a log file.
Optionally, the displaying, in response to the display request, the user interface based on the display data includes: and acquiring data corresponding to the display request from the log file to display the user interface.
Optionally, the display request includes a request to view an order log; the responding to the display request, and the displaying of the user interface based on the display data comprises: determining data associated with the order for presentation in the presentation data.
Optionally, the display request includes a screening condition, where the screening condition includes at least one of a time period, order information, block chain information, mode information of interacting with a block chain, parameter name information, and parameter content information; the responding to the display request, and the displaying of the user interface based on the display data comprises: determining data associated with the screening conditions in the presentation data for presentation.
An embodiment of the present invention further provides a data processing apparatus, including: the display data generating unit is configured to generate display data according to the mode of interaction between the intelligent contract and the blockchain and parameter names contained in the interaction data, and the interaction data is selected from data interacted with the blockchain through the intelligent contract; and the display unit is configured to respond to a display request and display the user interface based on the display data.
Optionally, the display data generating unit includes: a page information obtaining subunit configured to obtain page information from the blockchain, the page information including the interactive data; the interactive data acquisition unit is configured to screen the page information based on the format of the page information to obtain interactive data of the intelligent contract and the block chain; the information screening template determining subunit is configured to determine an information screening template according to the mode of interaction between the intelligent contract and the block chain and the parameter name contained in the interaction data; the screening subunit is configured to screen the page information by using the information screening template to obtain screened information and corresponding text descriptions, and the text descriptions are determined according to the parameter names and the interaction mode; a splicing subunit configured to splice the screened information and the corresponding text description; and the display data determining subunit is configured to determine the display data according to the spliced data.
Optionally, the intelligent contract comprises a preset intelligent contract; the presentation data generation unit further includes: and the interactive mode and interactive data determining subunit is configured to determine a mode and interactive data of the preset intelligent contract interacting with the block chain.
Optionally, the screening subunit is configured to screen at least one of: and screening the state of the operation interacting with the block chain and the numerical value corresponding to the parameter name.
Optionally, the data processing apparatus further includes: a presentation request receiving unit configured to receive the presentation request; and the network address determining unit is configured to determine the network address of the page information according to the display request.
Optionally, the display request is a request for viewing an order log, and the display request includes order information; the network address determination unit is configured to obtain one or more network addresses corresponding to the order information in the presentation request.
Optionally, the display request includes a network address of the page information.
Optionally, the page information obtaining subunit is configured to obtain the page information at a preset time point, where the presentation data includes a plurality of data corresponding to the page information; the display unit includes: a presentation data determining subunit configured to determine data associated with the presentation request among the plurality of data; a presentation subunit configured to present data associated with the presentation request through the user interface.
Optionally, the display data generating unit includes: the interaction data determination subunit is configured to respond to the calling of the interface of the intelligent contract to call the data of the interface interacting with the block chain as the interaction data; the display data generating subunit is configured to generate the display data according to the mode of interaction between the intelligent contract and the blockchain and the parameter name included in the interaction data, wherein the mode of interaction between the intelligent contract and the blockchain is determined based on the interface; and the recording subunit is configured to record the display data in a log file.
Optionally, the presentation unit is configured to obtain data corresponding to the presentation request from the log file to perform presentation of the user interface.
Optionally, the display request includes a request to view an order log; the presentation unit is configured to determine data associated with the order for presentation in the presentation data.
Optionally, the display request includes a screening condition, where the screening condition includes at least one of a time period, order information, block chain information, mode information of interacting with a block chain, parameter name information, and parameter content information; the presentation unit is configured to determine data associated with the screening condition among the presentation data for presentation.
The embodiment of the invention also provides a computer-readable storage medium, on which computer instructions are stored, and when the computer instructions are executed, the steps of any one of the data processing methods are executed.
The embodiment of the present invention further provides a terminal, which includes a memory and a processor, where the memory stores computer instructions capable of running on the processor, and the processor executes the steps of any one of the data processing methods when executing the computer instructions.
Compared with the prior art, the technical scheme of the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, the display data is generated according to the interaction mode of the intelligent contract and the block chain and the parameter name contained in the interaction data, and the display data is generated to respond to the display request and display the user interface based on the display data. Therefore, the data of interaction between the intelligent contract and the block chain can be displayed through the user interface according to the display request of the user, the user can check the data and the action of interaction between the intelligent contract displayed by the user interface and the block chain, the user can check the record of interaction between the intelligent contract and the block chain more visually, and the user experience can be improved.
Further, page information is obtained from the block chain, an information screening template is determined according to the interaction mode of the intelligent contract and the block chain and the parameter name contained in the interaction data, the page information is screened by the information screening template, and display data is determined based on the screened and spliced data, so that the data for interaction between the intelligent contract and the block chain can be determined through the page information obtained from the block chain, the display data can be generated based on scene needs, and the flexibility is higher.
Further, the page information is acquired at a preset time point, the display data comprises a plurality of data corresponding to the page information, and the data associated with the display request in the plurality of data is displayed based on the display request of the user, so that the page information is acquired in advance, and compared with the case that the page information is acquired after the display request is received, the page information can respond to the request of the user more efficiently, and the waiting time of the user is reduced. And moreover, the data associated with the display request of the user is displayed, so that the displayed data can be more suitable for the user requirements, and the user experience can be improved.
Furthermore, the calling of the interface of the intelligent contract and the data interacted with the block chain are recorded through the log file, and compared with the display data generated by acquiring information through a network, the network resource can be saved. And according to the display request of the user, the data corresponding to the display request is acquired from the log file to display the user interface, the data recorded by the log file can be directly acquired and displayed, the data acquisition time can be saved, the data display efficiency can be improved, and the user experience can be improved.
Furthermore, the data related to the order in the display data is displayed through the request for checking the order log in the display request, and the user can determine the data to be displayed through selecting the order, so that the displayed data can correspond to the order, the displayed data can be more targeted, and the user experience can be improved.
Furthermore, the display data are screened through the screening conditions, and the data related to the screening conditions in the display data are displayed, so that the displayed data have pertinence, the user requirements are met better, and the user experience can be improved.
Drawings
FIG. 1 is a flow chart of a data processing method in an embodiment of the invention;
FIG. 2 is a flow chart of a method of generating presentation data in an embodiment of the present invention;
FIG. 3 is a partial flow diagram of another data processing method in an embodiment of the invention;
FIG. 4 is a flow chart of a method for presenting presentation data in an embodiment of the present invention;
FIG. 5 is a flow chart of another method of generating presentation data in an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of a display data generating unit according to an embodiment of the present invention;
FIG. 8 is a schematic structural diagram of a display unit according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of another display data generation unit in the embodiment of the present invention.
Detailed Description
As described in the background art, how to intuitively display data interaction between an intelligent contract and a blockchain to a user becomes a problem to be solved urgently.
In a data transaction based on a blockchain, both data transaction parties can check data interaction between an intelligent contract and the blockchain through a transaction address of the blockchain. The user views the data interaction between the intelligent contract and the blockchain based on the transaction address of the blockchain, the process is complex, and the user cannot understand the viewed data content easily. Therefore, how to intuitively display the data interaction content of the intelligent contract and the block chain to the user and improve the user experience become an urgent problem to be solved.
In the embodiment of the invention, the display data is generated according to the interaction mode of the intelligent contract and the block chain and the parameter name contained in the interaction data, and the display data is generated to respond to the display request and display the user interface based on the display data. Therefore, the data of interaction between the intelligent contract and the block chain can be displayed through the user interface according to the display request of the user, the user can check the data and the action of interaction between the intelligent contract displayed by the user interface and the block chain, the user can check the record of interaction between the intelligent contract and the block chain more visually, and the user experience can be improved.
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
Referring to the flowchart of the data processing method shown in fig. 1, in the embodiment of the present invention, the data processing specifically may include the following steps:
step S11, generating display data according to the interactive mode of the intelligent contract and the block chain and the parameter name contained in the interactive data, wherein the interactive data is selected from the data interacted with the block chain through the intelligent contract;
and step S12, responding to the display request, and displaying the user interface based on the display data.
The block chain is a chain data structure formed by combining data blocks in a sequential connection mode according to a time sequence, and is a distributed account book which is guaranteed in a cryptology mode and cannot be tampered and forged. The blockchain may include a public chain, a private chain, or a federation chain, among others.
The public chain is a decentralized chain, and data uploaded to the public chain cannot be tampered; the private chain is a block chain with writing authority completely in one organization, and all nodes participating in the block chain are strictly controlled; a federation chain refers to a block chain in which several organizations or institutions participate together in management, each organization or institution controls one or more nodes, records transaction data together, and only these organizations and institutions can read and write and send transactions to and from data in the federation chain.
An intelligent contract is a piece of code running on a blockchain, the logic of the code defining the contents of the intelligent contract, the account of the contract retaining the running state of the contract.
In implementations, the intelligent contracts interacting with the blockchain may include interaction objects and manners of interaction by which the intelligent contracts interact with the blockchain. The blockchains are different, and the interaction objects are different, for example, the blockchains may be Etherhouses (ETH), the interaction objects may be smart contracts and ETH corresponding to ETH, the blockchains may be commercial distributed design blockchain operating systems (EOSs), and the interaction objects may be smart contracts and EOSs corresponding to EOS. The interaction mode can correspond to specific services, for example, transfer, voting, transaction and the like. The data for interaction may be data corresponding to the interaction mode, for example, interaction data corresponding to a transfer, or data corresponding to a vote, and the like.
In specific implementation, the interactive object and the interactive mode may be determined by selecting the block chain, for example, selecting ETH, the interactive object may be determined to be an intelligent contract and ETH corresponding to ETH, a corresponding specific interactive mode has been written into the intelligent contract of ETH, and the specific interactive mode may be determined by the intelligent contract.
The data interacted with the blockchain through the intelligent contracts may also include the state of the intelligent contracts interoperating with the blockchain, for example, success, failure, and the like of the operations, which are not enumerated herein.
The interactive data may be all or part of data in the data of the intelligent contract interacting with the corresponding blockchain, and in a specific implementation, may be determined according to different application scenarios.
The display request may be a request triggered by an operation performed by a user on a user side, may be a trigger operation performed on a preset control, or may also be a request carrying more information, for example, the display request may include a screening request of the user, a request for the user to view an order log, or another request related to the user to view data for interacting between an intelligent contract and a block chain. In a specific implementation, the presentation data is presented via the user interface based on a presentation request of a user.
The user interface may be an interface that a user can directly view, and may be an interface in various forms, and the presentation form is not limited herein. In specific implementation, the user interface may be a display interface of a data transaction platform, the data transaction platform is a platform for a user to perform data transaction, the data processing method may be executed on the data transaction platform, and the user may view display data displayed on the display interface through the display interface of the data transaction platform. As will be appreciated by those skilled in the art, a user may include a data supplier to provide data, and a data demander to purchase data.
According to the display request of the user, the data of interaction between the intelligent contract and the block chain is displayed through the user interface, and the user can view the data and actions of interaction between the intelligent contract and the block chain displayed in the user interface, so that the user can view the record of interaction between the intelligent contract and the block chain more visually, and further the user experience can be improved.
In particular implementations, the presentation data presented via the user interface may be data generated in various ways, for example, data generated from data obtained from a log file, data generated from data obtained from a blockchain network address page, or data generated in other ways, which will be described in detail below with reference to specific embodiments.
In an implementation of the present invention, referring to fig. 2, the generating display data according to the interaction manner between the intelligent contract and the blockchain and the parameter name included in the interaction data may include:
step S21, obtaining page information from the blockchain, where the page information includes the interactive data;
step S22, based on the format of the page information, screening the page information to obtain the interactive data of the intelligent contract and the block chain;
step S23, determining an information screening template according to the mode of the intelligent contract interacting with the block chain and the parameter name contained in the interactive data;
step S24, screening the page information by using the information screening template to obtain screened information and corresponding text description, wherein the text description is determined according to the parameter name and the interactive mode;
step S25, splicing the screened information and the corresponding text description;
and step S26, determining the display data according to the spliced data.
The page information may be block information of a block chain, for example, information of a block in the block chain. According to different types of the block chains, such as ETH, EOS, and the like, the page information of the corresponding block chains is different.
In an implementation, the page information may be obtained according to the network address of the block chain. For different block chains and different application scenarios, the way in which the user acquires the network address may be different. For example, the network address may be provided directly by the user, or may be determined based on information of the trade order or may be obtained based on other forms. The following description will be given with reference to specific embodiments.
The parameter name may be a name corresponding to specific data in the page information, such as "data price", "gas (consumption)", "block time", and the like, which are not listed herein.
The information screening template may be a preset template, the information screening template may be associated with the blockchain and a specific intelligent contract and correspond to different blockchains and intelligent contracts, the information screening template may be different, for example, correspond to the blockchains such as ETH and EOS, and the screening template may be different according to display characteristics of the blockchains. The information screening template may also be different corresponding to intelligent contracts of different interaction modes, such as the aforementioned intelligent contract for transfer and the intelligent contract for voting, and may specifically be determined according to parameters of the intelligent contract and data that needs to interact with the blockchain.
In a specific implementation, the information obtained by filtering with the information filtering template may be partial information in the page information of the block chain, and may be information such as specific time and cost corresponding to the page information "data price", "gas", "block time", and the like, for example, information such as "3000", "Nov-15-2018, 02:37:47 PM", and the like.
The text description corresponding to the information obtained by the screening may be a text description corresponding to a specific fee and a specific time, for example, the text description corresponding to "3000" may be "data fee", and the text description corresponding to "Nov-15-2018, 02:37:47 PM" may be "block time". In particular implementations, the textual description may also include a textual description that illustrates data interaction with the blockchain, such as "a contract operation for a user to initiate a create order".
In specific implementation, the display data may be generated according to the data processing after splicing, for example, the information obtained by screening and the corresponding text description may be spliced according to a manner that a user is easy to view or read. In a specific implementation, determining the display data according to the spliced data may include performing data inspection, semantic processing, or the like on the spliced data, or may generate data of a plurality of different styles, or may directly use the spliced data as the display data, which is not limited thereto.
The method comprises the steps of obtaining page information from the block chain, determining an information screening template according to the interaction mode of the intelligent contract and the block chain and the parameter name contained in the interaction data, screening the page information by using the information screening template, and determining display data based on the screened and spliced data, so that the data for interaction of the intelligent contract and the block chain can be determined according to the page information obtained from the block chain, the display data can be generated based on scene requirements, and the flexibility is higher.
In particular implementations, the intelligent contracts may be different for different blockchains or different services. The intelligent contract applied to a specific service scene can be generated through an intelligent contract template based on a specific service requirement, or an existing preset intelligent contract is utilized. The preset intelligent contract can be an intelligent contract generated by a third party, and the preset intelligent contract can interact with the corresponding block chain.
In a specific implementation, if the intelligent contract is a preset intelligent contract, the generating of the presentation data according to the mode of interaction between the intelligent contract and the blockchain and the parameter name included in the interaction data may further include: and determining the interaction mode and the interaction data of the preset intelligent contract and the block chain.
Specifically, a preset intelligent contract may be analyzed, and through the analysis, the interaction mode and the interaction data between the preset intelligent contract and the corresponding block chain may be determined, so that an information screening template of the preset intelligent contract may be determined, and then page information of the preset intelligent contract may be screened to determine display data.
In a specific implementation, the screening the page information by using the information screening template may include at least one of: and screening the state of the operation interacting with the block chain and the numerical value corresponding to the parameter name.
The operation of interacting with the blockchain through the intelligent contract can be various operations corresponding to the interaction of the blockchain in the data transaction, for example, for the data transaction, the operation can be an order data uplink operation or a payment operation. The operation status may be a successful or failed status of the interaction of the blockchain, for example, a successful order data uplink, a failed order data uplink, or the like. It should be noted that the above is only an example, and is not a limitation on the operation and completion status of the interaction of the blockchain.
As mentioned above, the display data is obtained based on the page information obtained from the blockchain, and in an implementation, referring to fig. 3, the data processing method may further include:
step S31, receiving the display request;
step S34, determining the network address of the page information according to the display request.
The network address may be an address corresponding to page information in the block chain, and may be an address corresponding to each block in the block chain.
Further, the display request may be a request for viewing an order log, the display request may include order information, and determining the network address of the page information according to the display request may include: and acquiring one or more network addresses corresponding to the order information in the display request.
The display request may be a request for viewing the order log by the user, and the order log determined by the order information may be viewed according to the order information in the display request. In a specific implementation, the order information may include information corresponding to one or more blocks, and one or more network addresses corresponding to the page information may be determined according to the order information.
For example, when a user requests to view an order log, the data of interaction between the intelligent contract and the blockchain may include data corresponding to contract operations of creating an order by the user, operations of confirming order transactions by the user, operations of confirming transfer success, and the like, and a plurality of network addresses corresponding to page information of the plurality of operations, that is, a network address corresponding to page information of creating an order by the user, a network address corresponding to page information of confirming order transactions by the user, and a network address corresponding to page information of confirming transfer success, may be acquired according to the order information.
In one specific implementation, the presentation request may include a network address of the page information.
As previously mentioned, the network address may be the address of each block in the corresponding block chain. In this application scenario, the data processing method in the embodiment of the present invention may be provided by application software, and the application software may be used as translation software for information on the block chain. For example, according to a display request of a user, the application software obtains page information corresponding to a network address in the display request, and displays data content obtained by translation conversion of the application software through an interactive interface.
In another embodiment of the present invention, the obtaining the page information from the blockchain may include: and acquiring the page information at a preset time point, wherein the display data comprises a plurality of data corresponding to the page information. Referring to fig. 4, the presentation of the user interface based on the presentation data in response to the presentation request may include:
step S41, determining data associated with the presentation request in the plurality of data;
step S42, displaying data associated with the display request through the user interface.
In an embodiment, the predetermined time point may be a time point when the smart contract interacts with the blockchain, for example, the order is linked as a time point, the user confirms the data transaction as a time point, or a time interval is predetermined as a time point, for example, an hour is predetermined to obtain a page information. The presentation data may be a plurality of data corresponding to the page information acquired at a plurality of time points, for example, data of the page information corresponding to the first hour, data of the page information corresponding to the second hour, and the like.
The page information is acquired at a preset time point, the display data comprises a plurality of data corresponding to the page information, and the data associated with the display request in the plurality of data is displayed based on the display request of the user, so that the page information is acquired in advance, and compared with the case that the page information is acquired after the display request is received, the page information can respond to the request of the user more efficiently, and the waiting time of the user is reduced. And moreover, the data associated with the display request of the user is displayed, so that the displayed data can be more suitable for the user requirements, and the user experience can be improved.
In another specific implementation of the present invention, the data transaction platform may obtain data of interaction between the intelligent contract and the blockchain based on a default display requirement, and determine data for display from the interactive data when a user requests data display.
As mentioned above, the presentation data presented by the user interface may be various types of data, for example, data obtained from a log file may be presented, or data obtained from a blockchain network address page may be presented, or data obtained in other manners may be presented. In a specific implementation of the present invention, the presentation data presented by the user interface may be data acquired from the log file, for example, a system log file for executing the data processing method. This is explained in detail below with reference to fig. 5.
Referring to fig. 5, in an implementation, the generating presentation data according to the manner of interacting with the blockchain by the smart contract and the parameter name included in the interaction data may include:
step S51, responding to the call of the interface of the intelligent contract, and calling the data of the interface interacting with the block chain as the interaction data;
step S52, generating the display data according to the interactive mode of the intelligent contract and the block chain and the parameter name contained in the interactive data, wherein the interactive mode of the intelligent contract and the block chain is determined based on the interface;
step S53, recording the display data in a log file.
In a specific implementation, the displaying the user interface based on the display data in response to the display request may include: and acquiring data corresponding to the display request from the log file to display the user interface.
In the specific implementation, when the interface of the intelligent contract is called, a call record is recorded in the log file, for example, the recorded content may be "a certain user calls a transaction api (interface) in the intelligent contract at time point 2018.12.1312: 00, to be linked up"; after the interface calling the intelligent contract is completed, the uplink result is recorded in the log file, for example, it may be "intelligent contract transaction api operation is successful" or the like. It will be understood by those skilled in the art that the foregoing is merely illustrative and not limiting of the content of the log file and the manner of recording.
The calling of the interface of the intelligent contract and the data interacted with the block chain are recorded through the log file, and compared with the display data generated by acquiring information through a network, the network resource can be saved. And according to the display request of the user, the data corresponding to the display request is acquired from the log file to display the user interface, the data recorded by the log file can be directly acquired and displayed, the data acquisition time can be saved, the data display efficiency can be improved, and the user experience can be improved.
As previously mentioned, the presentation request may be a request for a user to view presentation data, and may be a request including a plurality of different data contents. In a specific implementation of the present invention, the display request may include a request for viewing an order log, and the displaying, based on the display data, the user interface in response to the display request may include: determining data associated with the order for presentation in the presentation data.
In a specific implementation, the display data may be data corresponding to a plurality of orders, and the data corresponding to the order in the display data may be triggered and displayed through the operation of the user on the order. Specifically, all data of the order may be displayed, or part of data of the order may be displayed, which may be determined according to an actual application scenario, and is not limited herein.
The data to be displayed can be determined by the user through selecting the order, the displayed data can correspond to the order, and therefore the displayed data can be more targeted, and the user experience can be improved.
In another specific implementation of the present invention, the presentation request may include a filtering condition, where the filtering condition may include at least one of a time period, order information, blockchain information, mode information of interacting with a blockchain, parameter name information, and parameter content information. The presenting, in response to the presentation request, the user interface based on the presentation data may include: determining data associated with the screening conditions in the presentation data for presentation.
In implementations, presentation data may be data that includes multiple orders or data that interacts with different blockchains. In a specific implementation, the user may determine the data to be presented from the presentation data by the screening condition. For example, the data to be displayed is determined and displayed by screening according to a specific time period for generating a transaction order or a specific time period for completing the transaction order, a data type and a data amount of a transaction in order information, or information of an interactive block chain. It should be noted that the present invention is only illustrative and is not limited to the screening conditions and the screening method.
The display data are screened through the screening conditions, and the data related to the screening conditions in the display data are displayed, so that the displayed data are more targeted, the user requirements are met better, and the user experience can be improved.
An embodiment of the present invention further provides a development assisting apparatus, and a schematic structural diagram of the development assisting apparatus is shown in fig. 6, where the development assisting apparatus specifically includes:
the display data generating unit 61 is configured to generate display data according to the mode of interaction between the intelligent contract and the blockchain and the parameter name included in the interaction data, wherein the interaction data is selected from data interacted with the blockchain through the intelligent contract;
and the presentation unit 62 is configured to respond to the presentation request and perform presentation of the user interface based on the presentation data.
With combined reference to fig. 6 and fig. 7, in a specific implementation, the presentation data generating unit 61 may include:
a page information obtaining subunit 71 configured to obtain page information from the blockchain, where the page information includes the interaction data;
the interactive data obtaining unit 72 is configured to filter the page information based on the format of the page information to obtain interactive data of the intelligent contract and the block chain;
an information screening template determining subunit 73 configured to determine an information screening template according to the manner of interaction between the intelligent contract and the blockchain and the parameter name included in the interaction data;
a screening subunit 74, configured to screen the page information by using the information screening template to obtain screened information and corresponding text descriptions, where the text descriptions are determined according to the parameter names and the interaction manners;
a splicing subunit 75 configured to splice the screened information and the corresponding text description;
a presentation data determining subunit 76 configured to determine the presentation data from the stitched data.
In particular implementations, the smart contracts may include preset smart contracts; the presentation data generation unit 61 may further include: an interactive mode and interactive data determining subunit 77, configured to determine a mode and interactive data of the preset intelligent contract interacting with the blockchain.
Further, the screening subunit 74 may be configured to screen at least one of: and screening the state of the operation interacting with the block chain and the numerical value corresponding to the parameter name.
With continued reference to fig. 6, in a specific implementation, the data processing apparatus may further include:
a presentation request receiving unit 63 configured to receive the presentation request;
a network address determining unit 64 configured to determine a network address of the page information according to the presentation request.
In a specific implementation, the presentation request may be a request for viewing an order log, the presentation request may include order information, and the network address determining unit 64 may be configured to obtain one or more network addresses corresponding to the order information in the presentation request.
In another specific implementation of the present invention, the presentation request may include a network address of the page information.
With combined reference to fig. 6 to 8, in a specific implementation, the page information obtaining subunit 71 may be configured to obtain the page information at a preset time point, and the presentation data may include a plurality of data corresponding to the page information. The presentation unit 62 may include:
a presentation data determining subunit 81 configured to determine data associated with the presentation request among the plurality of data;
a presentation subunit 82 configured to present data associated with the presentation request via the user interface.
With combined reference to fig. 6 and fig. 9, in a specific implementation, the presentation data generating unit 61 may include:
an interaction data determination subunit 91 configured to respond to the call to the interface of the intelligent contract to call data of the interface interacting with the blockchain as the interaction data;
a display data generating subunit 92, configured to generate the display data according to the mode of interaction between the intelligent contract and the blockchain, which is determined based on the interface, and the parameter name included in the interaction data;
the recording subunit 93 is configured to record the presentation data in a log file.
In a specific implementation, the presentation unit 62 may be configured to obtain data corresponding to the presentation request from the log file to perform presentation of the user interface.
In a specific implementation of the present invention, the presentation request may include a request to view an order log. The presentation unit 62 may be configured to determine data associated with the order for presentation in the presentation data.
In another specific implementation of the present invention, the presentation request may include a filtering condition, where the filtering condition includes at least one of a time period, order information, blockchain information, mode information of interacting with blockchains, parameter name information, and parameter content information. The presentation unit 62 may be configured to determine data associated with the filtering condition among the presentation data for presentation.
The noun explanation, the working principle, the specific implementation and the beneficial effects related to the data processing apparatus in the embodiment of the present invention can be referred to the data processing method in the embodiment of the present invention, and are not described herein again.
The embodiment of the present invention further provides a computer-readable storage medium, where computer instructions are stored, and when the computer instructions are executed, the steps of the data processing method may be executed.
The computer readable storage medium may be an optical disc, a mechanical hard disk, a solid state hard disk, etc.
An embodiment of the present invention further provides a terminal, which may include a memory and a processor, where the memory stores a computer instruction capable of running on the processor, and the processor executes the steps of the data processing method when running the computer instruction.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (24)

1. A data processing method, comprising:
generating display data according to the interaction mode of the intelligent contract and the blockchain and parameter names contained in the interaction data, wherein the interaction data is selected from data interacting with the blockchain through the intelligent contract;
responding to a display request, and displaying a user interface based on the display data;
wherein, the generating of the display data according to the interaction mode of the intelligent contract and the block chain and the parameter name included in the interaction data comprises:
acquiring page information from the blockchain, wherein the page information comprises the interactive data;
screening the page information based on the format of the page information to obtain interactive data of the intelligent contract and the block chain;
determining an information screening template according to the mode of interaction between the intelligent contract and the block chain and the parameter name contained in the interaction data;
screening the page information by using the information screening template to obtain screened information and corresponding text description, wherein the text description is determined according to the parameter name and the interactive mode;
splicing the screened information and the corresponding text description;
and determining the display data according to the spliced data.
2. The data processing method of claim 1, wherein the intelligent contracts include preset intelligent contracts;
the generating of the display data according to the interaction mode of the intelligent contract and the block chain and the parameter name included in the interaction data further comprises: and determining the interaction mode and the interaction data of the preset intelligent contract and the block chain.
3. The data processing method of claim 1, wherein the filtering the page information using the information filtering template comprises at least one of: and screening the state of the operation interacting with the block chain and the numerical value corresponding to the parameter name.
4. The data processing method of claim 1, further comprising:
receiving the display request;
and determining the network address of the page information according to the display request.
5. The data processing method according to claim 4, wherein the display request is a request for viewing an order log, and the display request includes order information;
the determining the network address of the page information according to the display request includes: and acquiring one or more network addresses corresponding to the order information in the display request.
6. The data processing method of claim 4, wherein the presentation request includes a network address of the page information.
7. The data processing method of claim 1, wherein obtaining page information from the blockchain comprises: acquiring the page information at a preset time point;
the presentation data includes a plurality of data corresponding to the page information, and the presentation of the user interface based on the presentation data in response to the presentation request includes:
determining data associated with the presentation request among the plurality of data;
presenting, through the user interface, data associated with the presentation request.
8. The data processing method according to claim 1, wherein the generating presentation data according to the way the intelligent contract interacts with the blockchain and parameter names included in the interaction data comprises:
responding to the calling of the interface of the intelligent contract, and calling data interacted between the interface and the blockchain as the interactive data;
generating the display data according to the interaction mode of the intelligent contract and the block chain and the parameter name contained in the interaction data, wherein the interaction mode of the intelligent contract and the block chain is determined based on the interface;
and recording the display data in a log file.
9. The data processing method of claim 8, wherein the presenting, in response to the presentation request, the user interface based on the presentation data comprises: and acquiring data corresponding to the display request from the log file to display the user interface.
10. The data processing method of claim 1, wherein the presentation request comprises a request to view an order log;
the responding to the display request, and the displaying of the user interface based on the display data comprises:
determining data associated with the order for presentation in the presentation data.
11. The data processing method according to claim 1, wherein the presentation request includes a screening condition, and the screening condition includes at least one of a time period, order information, blockchain information, mode information of interacting with blockchains, parameter name information, and parameter content information;
the responding to the display request, and the displaying of the user interface based on the display data comprises:
determining data associated with the screening conditions in the presentation data for presentation.
12. A data processing apparatus, comprising:
the display data generating unit is configured to generate display data according to the mode of interaction between the intelligent contract and the blockchain and parameter names contained in the interaction data, and the interaction data is selected from data interacted with the blockchain through the intelligent contract;
the display unit is configured to respond to a display request and display a user interface based on the display data;
wherein the presentation data generation unit includes:
a page information obtaining subunit configured to obtain page information from the blockchain, the page information including the interactive data;
the interactive data acquisition unit is configured to screen the page information based on the format of the page information to obtain interactive data of the intelligent contract and the block chain;
the information screening template determining subunit is configured to determine an information screening template according to the mode of interaction between the intelligent contract and the block chain and the parameter name contained in the interaction data;
the screening subunit is configured to screen the page information by using the information screening template to obtain screened information and corresponding text descriptions, and the text descriptions are determined according to the parameter names and the interaction mode;
a splicing subunit configured to splice the screened information and the corresponding text description;
and the display data determining subunit is configured to determine the display data according to the spliced data.
13. The data processing apparatus of claim 12, wherein the smart contracts include preset smart contracts;
the presentation data generation unit further includes: and the interactive mode and interactive data determining subunit is configured to determine a mode and interactive data of the preset intelligent contract interacting with the block chain.
14. The data processing apparatus according to claim 12, wherein the screening subunit is configured to screen at least one of: and screening the state of the operation interacting with the block chain and the numerical value corresponding to the parameter name.
15. The data processing apparatus of claim 12, further comprising:
a presentation request receiving unit configured to receive the presentation request;
and the network address determining unit is configured to determine the network address of the page information according to the display request.
16. The data processing apparatus according to claim 15, wherein the display request is a request for viewing an order log, and the display request includes order information;
the network address determination unit is configured to obtain one or more network addresses corresponding to the order information in the presentation request.
17. The data processing apparatus of claim 15, wherein the presentation request includes a network address of the page information.
18. The data processing apparatus according to claim 12, wherein the page information acquiring subunit is configured to acquire the page information at a preset time point, and the presentation data includes a plurality of data corresponding to the page information;
the display unit includes:
a presentation data determining subunit configured to determine data associated with the presentation request among the plurality of data;
a presentation subunit configured to present data associated with the presentation request through the user interface.
19. The data processing apparatus of claim 12, wherein the presentation data generation unit comprises:
the interaction data determination subunit is configured to respond to the calling of the interface of the intelligent contract to call the data of the interface interacting with the block chain as the interaction data;
the display data generating subunit is configured to generate the display data according to the mode of interaction between the intelligent contract and the blockchain and the parameter name included in the interaction data, wherein the mode of interaction between the intelligent contract and the blockchain is determined based on the interface;
and the recording subunit is configured to record the display data in a log file.
20. The data processing apparatus according to claim 19, wherein the presentation unit is configured to obtain data corresponding to the presentation request from the log file for presentation of the user interface.
21. The data processing apparatus of claim 12, wherein the presentation request comprises a request to view an order log;
the presentation unit is configured to determine data associated with an order for presentation in the presentation data.
22. The data processing apparatus according to claim 12, wherein the presentation request includes a filtering condition, the filtering condition including at least one of a time period, order information, blockchain information, mode information of interacting with blockchains, parameter name information, and parameter content information;
the presentation unit is configured to determine data associated with the screening condition among the presentation data for presentation.
23. A computer readable storage medium having stored thereon computer instructions, characterized in that the computer instructions are operative to perform the steps of the data processing method according to any one of claims 1 to 11.
24. A terminal comprising a memory and a processor, the memory having stored thereon computer instructions executable on the processor, wherein the processor, when executing the computer instructions, performs the steps of the data processing method of any one of claims 1 to 11.
CN201811611359.7A 2018-12-27 2018-12-27 Data processing method and device, medium and terminal thereof Active CN109753530B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811611359.7A CN109753530B (en) 2018-12-27 2018-12-27 Data processing method and device, medium and terminal thereof
US16/726,777 US10725744B2 (en) 2018-12-27 2019-12-24 Method for adapting to blockchain and device, terminal and medium performing the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811611359.7A CN109753530B (en) 2018-12-27 2018-12-27 Data processing method and device, medium and terminal thereof

Publications (2)

Publication Number Publication Date
CN109753530A CN109753530A (en) 2019-05-14
CN109753530B true CN109753530B (en) 2021-11-26

Family

ID=66404071

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811611359.7A Active CN109753530B (en) 2018-12-27 2018-12-27 Data processing method and device, medium and terminal thereof

Country Status (1)

Country Link
CN (1) CN109753530B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110308962B (en) * 2019-07-04 2022-08-23 明链科技(深圳)有限公司 Method, electronic device, and medium for managing block chain network
US10903989B2 (en) 2019-08-30 2021-01-26 Advanced New Technologies Co., Ltd. Blockchain transaction processing method and apparatus
CN110597877A (en) * 2019-08-30 2019-12-20 阿里巴巴集团控股有限公司 Block chain transaction processing method and device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7904450B2 (en) * 2008-04-25 2011-03-08 Wilson Kelce S Public electronic document dating list
EP3579524B1 (en) * 2015-02-13 2020-09-16 Yoti Holding Limited Digital identity system
CN104699863A (en) * 2015-04-08 2015-06-10 上海玖道信息科技股份有限公司 Webpage data display system
CN107133239A (en) * 2016-02-29 2017-09-05 上海普兰金融服务有限公司 instant information processing method and device
CN107516176B (en) * 2016-06-17 2021-03-19 菜鸟智能物流控股有限公司 Logistics information processing method and device
CN108734576B (en) * 2018-04-04 2022-04-19 深圳大学 Block chain-based educational resource sharing method and system
CN108629013B (en) * 2018-05-07 2021-08-03 前海梧桐(深圳)数据有限公司 Method and system for collecting and displaying enterprise data based on block chain
CN108898389B (en) * 2018-06-26 2021-05-18 创新先进技术有限公司 Content verification method and device based on block chain and electronic equipment
CN109087166B (en) * 2018-07-23 2019-12-06 深圳慧通商务有限公司 Identity authentication method, device and system

Also Published As

Publication number Publication date
CN109753530A (en) 2019-05-14

Similar Documents

Publication Publication Date Title
US11436125B2 (en) Game test automation device and method
CN109753530B (en) Data processing method and device, medium and terminal thereof
WO2015147878A1 (en) Systems and methods for providing an information technology interface
CN112835688A (en) Distributed transaction processing method, device and storage medium
US8983055B1 (en) Quality review of contacts between customers and customer service agents
US11935293B2 (en) Augmented reality support platform
US8762448B2 (en) Implementing asynchronous processes on a mobile client
CN111324480B (en) Large-scale host transaction fault positioning system and method
CN111475423A (en) Data entry method and device, electronic equipment and readable storage medium
CN111798161A (en) Flow configuration method, device, equipment and storage medium
CN114071382B (en) Message sending method and device
JP2010081607A (en) Method and system for realizing video shop
CN110990275B (en) Page display test method and device for mobile banking
CN114666568A (en) Intelligent double-recording-based service processing method and intelligent double-recording system
US10795671B2 (en) Audiovisual source code documentation
CN112184248A (en) Card organization payment refusal bill data processing method and device
CN111931465A (en) Method and system for automatically generating user manual based on user operation
CN110570280A (en) Data processing method and system, equipment and storage medium
CN114339442B (en) Method and device for configuring multimedia channels, electronic equipment and storage medium
CN115567732B (en) Virtual live broadcast interaction method and device
KR20130112190A (en) System and method for providing helpline service
US9208045B2 (en) Testing integrated business systems
CN117196709A (en) Information processing method, information processing device, electronic equipment and storage medium
CN115271658A (en) Workflow processing method and method combined with task and related equipment
CN112508504A (en) Information management method and device for business information and electronic equipment

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