CN112039971A - Data recording method and device, and data storage method and device - Google Patents

Data recording method and device, and data storage method and device Download PDF

Info

Publication number
CN112039971A
CN112039971A CN202010869913.2A CN202010869913A CN112039971A CN 112039971 A CN112039971 A CN 112039971A CN 202010869913 A CN202010869913 A CN 202010869913A CN 112039971 A CN112039971 A CN 112039971A
Authority
CN
China
Prior art keywords
data
service
access
page
access process
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
CN202010869913.2A
Other languages
Chinese (zh)
Other versions
CN112039971B (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.)
Ant Shengxin Shanghai Information Technology Co ltd
Original Assignee
Alipay Hangzhou Information Technology 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 Alipay Hangzhou Information Technology Co Ltd filed Critical Alipay Hangzhou Information Technology Co Ltd
Priority to CN202010869913.2A priority Critical patent/CN112039971B/en
Publication of CN112039971A publication Critical patent/CN112039971A/en
Application granted granted Critical
Publication of CN112039971B publication Critical patent/CN112039971B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/50Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols using hash chains, e.g. blockchains or hash trees

Abstract

The embodiment of the specification provides a data recording method and device and a data storage method and device, wherein the data recording method comprises the following steps: acquiring an access request of a target service; initializing a service page of the target service based on the access request; under the condition that the triggering interface is called in the initialization process, a process recording interface is called and long connection with a server is established; recording access process data corresponding to the access operation of the business page based on the process recording interface; and sending the access process data to the server through the long connection.

Description

Data recording method and device, and data storage method and device
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a data recording method and apparatus, and a data storage method and apparatus.
Background
With the continuous development and popularization of the internet, the mode of providing online services based on the internet is gradually applied to various service fields, more and more merchants provide online services for users in online platforms of various service fields, and users often have certain concerns in the process of providing online services by merchants using online platforms, wherein the concerns refer to whether online services provided by merchants of online platforms can be effectively provided for a long time and whether better service quality can be maintained.
Disclosure of Invention
One or more embodiments of the present specification provide a data recording method. The data recording method is applied to a client and comprises the following steps: and acquiring an access request of the target service. And initializing a service page of the target service based on the access request. And under the condition that the triggering interface is called in the initialization process, calling a process recording interface and establishing long connection with the server. And recording access process data corresponding to the access operation of the service page based on the process recording interface. And sending the access process data to the server through the long connection.
One or more embodiments of the present specification provide a data storage method, applied to a server, including: responding to a client and establishing a long connection with the client. And receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection. And the access process data is obtained by a process record interface aiming at the business page record of the target business aimed by the access operation. Detecting whether the target service is successfully executed based on the access process data; and if so, archiving and storing the access process data.
One or more embodiments of the present disclosure provide a block chain-based data storage method, which is applied to a block link point in a block chain, and includes: and receiving access process data corresponding to the access operation of the business page of the target business submitted by the server. And detecting the access process data by calling an intelligent contract deployed by the block chain nodes, and archiving the access process data under the condition of detecting that the access process data contains a service completion mark of the target service. And acquiring a data set obtained after the intelligent contract is filed, and performing uplink processing on the data set.
One or more embodiments of the present specification provide a data processing method, which is applied to a server, and includes: and receiving a long connection establishment request sent by the client. And returning a connection establishment response responding to the long connection establishment request to the client. And receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection. And the access process data is obtained by a process record interface aiming at the business page record of the target business aimed by the access operation. Submitting the access procedure data to a block link point.
One or more embodiments of the present specification provide a data processing method, applied to a client, including: and acquiring an access request of the target service. And initializing a service page of the target service based on the access request. A long connection setup request is sent to the server. And receiving a connection establishment response returned by the server. And calling a process recording interface triggered in the initialization process to record access process data corresponding to the access operation of the service page. Sending the access procedure data over a long connection established with the server.
One or more embodiments of the present specification provide a data recording apparatus, operating on a client, including: and the access request acquisition module is configured to acquire an access request of the target service. A service page initialization module configured to initialize a service page of the target service based on the access request. And the long connection establishing module is configured to call the process recording interface and establish long connection with the server under the condition that the triggering interface call in the initialization process is detected. And the access process data recording module is configured to record access process data corresponding to the access operation of the service page based on the process recording interface. An access procedure data sending module configured to send the access procedure data to the server over the long connection.
One or more embodiments of the present specification provide a data storage device, operating on a server, comprising: a long connection establishment module configured to respond to and establish a long connection with a client. And the access process data receiving module is configured to receive access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection. And the access process data is obtained by a process record interface aiming at the business page record of the target business aimed by the access operation. A target service execution detection module configured to detect whether the target service is successfully executed based on the access process data; if yes, operating the archiving storage module; the archiving storage module is configured to archive and store the access process data.
One or more embodiments of the present specification provide a block chain-based data storage device, which operates at a block link point in a block chain, including: and the access process data receiving module is configured to receive access process data corresponding to the access operation of the business page of the target business submitted by the server. And the access process data detection module is configured to detect the access process data by calling an intelligent contract deployed by the block link point, and archive the access process data when detecting that the access process data contains a service completion mark of the target service. And the data set uplink processing module is configured to acquire the data set obtained after the intelligent contract is subjected to archiving processing, and perform uplink processing on the data set.
One or more embodiments of the present specification provide a data processing apparatus, operating on a server, including: the long connection establishment request receiving module is configured to receive a long connection establishment request sent by a client. A connection establishment response returning module configured to return a connection establishment response responding to the long connection establishment request to the client. And the access process data receiving module is configured to receive access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection. And the access process data is obtained by a process record interface aiming at the business page record of the target business aimed by the access operation. An access procedure data submission module configured to submit the access procedure data to a block link point.
One or more embodiments of the present specification provide a data recording apparatus, operating on a client, including: and the access request acquisition module is configured to acquire an access request of the target service. A service page initialization module configured to initialize a service page of the target service based on the access request. A long connection establishment request sending module configured to send a long connection establishment request to the server. And the connection establishment response receiving module is configured to receive a connection establishment response returned by the server. And the access process data recording module is configured to call a process recording interface triggered in the initialization process to record access process data corresponding to the access operation of the service page. An access procedure data sending module configured to send the access procedure data over a long connection established with the server.
One or more embodiments of the present specification provide a data recording apparatus including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to: and acquiring an access request of the target service. And initializing a service page of the target service based on the access request. And under the condition that the triggering interface is called in the initialization process, calling a process recording interface and establishing long connection with the server. And recording access process data corresponding to the access operation of the service page based on the process recording interface. And sending the access process data to the server through the long connection.
One or more embodiments of the present specification provide a data storage device comprising: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to: responding to a client and establishing a long connection with the client. And receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection. And the access process data is obtained by a process record interface aiming at the business page record of the target business aimed by the access operation. Detecting whether the target service is successfully executed based on the access process data; and if so, archiving and storing the access process data.
One or more embodiments of the present specification provide a blockchain-based data storage device, including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to: and receiving access process data corresponding to the access operation of the business page of the target business submitted by the server. And detecting the access process data by calling an intelligent contract deployed by the block chain nodes, and archiving the access process data under the condition of detecting that the access process data contains a service completion mark of the target service. And acquiring a data set obtained after the intelligent contract is filed, and performing uplink processing on the data set.
One or more embodiments of the present specification provide a data processing apparatus including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to: and receiving a long connection establishment request sent by the client. And returning a connection establishment response responding to the long connection establishment request to the client. And receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection. And the access process data is obtained by a process record interface aiming at the business page record of the target business aimed by the access operation. Submitting the access procedure data to a block link point.
One or more embodiments of the present specification provide a data recording apparatus including: a processor; and a memory configured to store computer-executable instructions that, when executed, cause the processor to: and acquiring an access request of the target service. And initializing a service page of the target service based on the access request. A long connection setup request is sent to the server. And receiving a connection establishment response returned by the server. And calling a process recording interface triggered in the initialization process to record access process data corresponding to the access operation of the service page. Sending the access procedure data over a long connection established with the server.
One or more embodiments of the present specification provide a storage medium storing computer-executable instructions that, when executed, implement the following: and acquiring an access request of the target service. And initializing a service page of the target service based on the access request. And under the condition that the triggering interface is called in the initialization process, calling a process recording interface and establishing long connection with the server. And recording access process data corresponding to the access operation of the service page based on the process recording interface. And sending the access process data to the server through the long connection.
One or more embodiments of the present specification provide a second storage medium storing computer-executable instructions that, when executed, implement the following: responding to a client and establishing a long connection with the client. And receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection. And the access process data is obtained by a process record interface aiming at the business page record of the target business aimed by the access operation. Detecting whether the target service is successfully executed based on the access process data; and if so, archiving and storing the access process data.
One or more embodiments of the present specification provide a third storage medium storing computer-executable instructions that, when executed, implement the following: and receiving access process data corresponding to the access operation of the business page of the target business submitted by the server. And detecting the access process data by calling an intelligent contract deployed by the block chain nodes, and archiving the access process data under the condition of detecting that the access process data contains a service completion mark of the target service. And acquiring a data set obtained after the intelligent contract is filed, and performing uplink processing on the data set.
One or more embodiments of the present specification provide a fourth storage medium storing computer-executable instructions that, when executed, implement the following: and receiving a long connection establishment request sent by the client. And returning a connection establishment response responding to the long connection establishment request to the client. And receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection. And the access process data is obtained by a process record interface aiming at the business page record of the target business aimed by the access operation. Submitting the access procedure data to a block link point.
One or more embodiments of the present specification provide a fifth storage medium storing computer-executable instructions that, when executed, implement the following: and acquiring an access request of the target service. And initializing a service page of the target service based on the access request. A long connection setup request is sent to the server. And receiving a connection establishment response returned by the server. And calling a process recording interface triggered in the initialization process to record access process data corresponding to the access operation of the service page. Sending the access procedure data over a long connection established with the server.
Drawings
In order to more clearly illustrate one or more embodiments or technical solutions in the prior art in the present specification, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present specification, and for those skilled in the art, other drawings can be obtained according to the drawings without inventive exercise;
FIG. 1 is a process flow diagram of a data recording method provided in one or more embodiments of the present disclosure;
FIG. 2 is a flowchart of a data recording method applied to a security project scenario according to one or more embodiments of the present disclosure;
FIG. 3 is a process flow diagram of a data recording method applied to an asset management business scenario according to one or more embodiments of the present disclosure;
FIG. 4 is a process flow diagram of a data storage method provided in one or more embodiments of the present description;
FIG. 5 is a flowchart of a data storage method applied to a security project scenario, according to one or more embodiments of the present disclosure;
FIG. 6 is a process flow diagram of a data storage method applied to an asset management business scenario in accordance with one or more embodiments of the present disclosure;
fig. 7 is a processing flow diagram of a method for storing data based on a blockchain according to one or more embodiments of the present disclosure;
FIG. 8 is a process flow diagram of a data processing method provided in one or more embodiments of the present description;
FIG. 9 is a process flow diagram of a second data recording method provided in one or more embodiments of the present description;
FIG. 10 is a schematic diagram of a data recording device according to one or more embodiments of the present disclosure;
FIG. 11 is a schematic diagram of a data storage device according to one or more embodiments of the present disclosure;
FIG. 12 is a block chain based data storage device according to one or more embodiments of the present disclosure;
FIG. 13 is a schematic diagram of a data processing apparatus according to one or more embodiments of the present disclosure;
FIG. 14 is a schematic diagram of a second data recording device provided in one or more embodiments of the present disclosure;
fig. 15 is a schematic structural diagram of a data recording device according to one or more embodiments of the present disclosure;
FIG. 16 is a schematic structural diagram of a data storage device according to one or more embodiments of the present disclosure;
fig. 17 is a schematic structural diagram of a data storage device based on a block chain according to one or more embodiments of the present specification;
FIG. 18 is a block diagram of a data processing apparatus according to one or more embodiments of the present disclosure;
fig. 19 is a schematic structural diagram of a second data recording apparatus according to one or more embodiments of the present disclosure.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in one or more embodiments of the present disclosure, the technical solutions in one or more embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in one or more embodiments of the present disclosure, and it is obvious that the described embodiments are only a part of the embodiments of the present disclosure, and not all embodiments. All other embodiments that can be derived by a person skilled in the art from one or more of the embodiments described herein without making any inventive step shall fall within the scope of protection of this document.
An embodiment of a data recording method provided in this specification:
referring to fig. 1, which shows a processing flow chart of a data recording method provided by the present embodiment, referring to fig. 2, which shows a processing flow chart of a data recording method applied to a security project scenario provided by the present embodiment, and referring to fig. 3, which shows a processing flow chart of a data recording method applied to an asset management service scenario provided by the present embodiment.
Referring to fig. 1, the data recording method provided in this embodiment is applied to a client, and specifically includes steps S102 to S110.
Step S102, obtaining the access request of the target service.
The data recording method provided by the embodiment is applied to a client, records participation behaviors of a user in a business process on the basis of formatting and digitalizing business processes and business pages related to the user in the business access and business participation processes by matching with the data storage method applied to a server provided by the following embodiment, uploads access process data recorded aiming at the access operation to the server in real time by taking the access operation of the user as a unit, archives the uploaded access process data by the server, and performs uplink data storage on the basis of the archives, so that the reality and credibility of the access process data recorded in the business access and business participation processes of the user are ensured, and meanwhile, the access process data recorded in the business access and business participation processes of the user can be traced back, therefore, the trust of the user to the service is improved.
The target service in this embodiment refers to an online service that provides a service depending on the internet, such as a guarantee item (e.g., an insurance item) that provides a guarantee service, an asset management service (e.g., a fund service, a financing service) that provides an asset management service, or an online mutual-aid economic item that provides a mutual-aid economic service.
In practical application, in the process of accessing the target service, a user specifically accesses a service page of the target service to obtain specific service information of the target service, so as to determine whether to participate in the target service on the basis of obtaining the service information. For example, during a user's access to a guarantee project, the project page for the guarantee project includes: the project starting guide page of the project guide phase, the project participation confirmation page of the project participation phase, the project protocol display page of the protocol display phase, the protocol confirmation page of the protocol confirmation phase and the like.
The access request of the target service refers to an access request for a user to browse and view a service page of the target service, and the access request may be an access request submitted by the user between service pages of the target service, or an access request submitted by the user to access a subsequent service page of the target service on the basis of the service page of the target service. For example, a user submits a request for access to a security item by triggering an item entry for the security item.
Step S104, initializing the service page of the target service based on the access request.
Based on the access request of the target service, the service page of the target service is initialized, specifically, the page initialization is performed by executing the initialization script of the service page of the target service.
It should be noted that, in this embodiment, the access process and the participation process of the user accessing and participating in the target service are recorded, and the recording is implemented by calling a process recording interface, where the process recording interface is a service packaged in advance for recording a service page and an access operation, and the triggering of the process recording interface is triggered in the initialization process of the service page of the target service, optionally, the initialization script of the first service page in the first service stage of the target service includes a call function of the process recording interface, and if it is detected that the call function is executed in the execution process of the initialization script of the service page, the call of the process recording interface is triggered.
And step S106, under the condition that the interface calling is triggered in the initialization process, calling a process recording interface and establishing long connection with the server.
In specific implementation, the process recording interface is called when detecting that interface calling of the process recording interface is triggered in an initialization process of the service page, specifically, in the calling process, the process recording interface is called first to establish long connection with the server, and since a process of a user accessing the service page of the target service is a continuous process, in order to ensure that access process data recorded by the subsequent process recording interface can be uploaded to the server in real time, and in order to avoid that time consumption for uploading the recorded access process data to the server at one time is high, the process recording interface is called to establish long connection with the server.
In an optional implementation manner provided in this embodiment, the establishing of the long connection with the server is specifically implemented by the following method:
sending a WebSocket connection establishment request to the server;
and receiving a building response of the building request of the WebSocket connection returned by the server, wherein the building response establishes the WebSocket connection with the server after being received.
And step S108, recording access process data corresponding to the access operation of the service page based on the process record interface.
In order to reduce the probability of disputes occurring during the process of accessing and participating the target service, it is necessary to record the data of the access process related to the process of accessing and participating the target service as comprehensively and completely as possible, so that the disputes can be effectively resolved by using the data as a certificate, and meanwhile, the trust level of the user on the target service can be increased. In an optional implementation manner provided by this embodiment, the implementation process of recording the access process data corresponding to the access operation of the service page based on the process record interface is specifically as follows:
reading page element data of the displayed business page;
recording event data of a page event triggered by access operation aiming at the displayed service page;
recording page updating data of an updating service page obtained after the page event is executed;
and determining the page element data, the event data and the page updating data as access process data corresponding to the access operation.
For example, in the security project, if the page of the currently displayed safeguard project is the project start guide page of the project guide stage, the page element data of the project start guide page is recorded by using the process recording interface, if the access operation of the user is to click the confirmation control shown in the project start guide page, the event data of the confirmation event triggered by the user clicking the confirmation control is recorded by using the process recording interface, further, if the user clicks the confirmation control shown in the project start guide page and then jumps to the project participation confirmation page of the project participation stage, the page data of the project participation confirmation page is recorded by using the process recording interface, and finally, the page element data of the project start guide page, the event data of the confirmation event triggered by the user clicking the confirmation control, and the page data of the project participation confirmation page of the project participation stage after jumping are all three data, the access process data are used as the access process data corresponding to the access operation of the user aiming at the project initial guide page.
Step S110, sending the access procedure data to the server through the long connection.
As described above, the client establishes a WebSocket connection with the server to serve as a data transmission channel for transmitting access process data corresponding to the access operation to the server, and acquires the page element data, the event data, and the page update data through the data recording interface to serve as the access process data corresponding to the access operation.
In practical application, during a process of accessing a service page of the target service, a user may not finally form an effective participation in the target service every time of accessing, and becomes a service member of the target service, and at least a part of users may not actually participate in the target service finally after accessing the page of the target service, for this reason, in order to ensure that access process data corresponding to the access operation sent to the server can be effectively archived, in an optional implementation manner provided in this embodiment, whether a service completion event configured on a second service page of a second service phase of the target service is triggered is detected; if so, marking the access process data to obtain the access process data carrying the service completion mark of the target service; and if not, sending the access process data to the server.
Further, after the access process data carrying the service completion flag of the target service is sent to the server, the server archives the access process data according to the service completion flag carried in the access process data and returns a call end instruction of the process recording interface to the client, and correspondingly, after receiving the call end instruction sent by the server, the client ends the call of the process recording interface based on the call end instruction.
The following further describes the data recording method provided by the present embodiment by taking an application of the data recording method provided by the present embodiment in a guarantee project scenario as an example, referring to fig. 2, the data recording method applied to the guarantee project scenario is applied to a client, and the data storage method applied to the guarantee project scenario (step S502 to step S522) provided by the following embodiment is matched, and specifically includes step S202 to step S224.
Step S202, obtaining an access request submitted by a user aiming at the guarantee item.
In step S204, an item start guide page for the safeguard item is initialized based on the access request.
Step S206, under the condition that the interface call is triggered in the initialization process of the project initial guide page, sending a WebSocket connection establishment request to the server through the call process recording interface.
And step S208, receiving a building response of the building request of the WebSocket connection returned by the server.
And the client establishes WebSocket connection with the server after establishing response reception.
And step S210, recording access process data corresponding to the access operation of the currently displayed project page based on the process record interface.
Specifically, the currently displayed project page is displayed according to the actual access progress of the user to access the guarantee project, and the currently displayed project page is the project page currently accessed by the user; correspondingly, if the project page currently accessed by the user is a project starting guide page, recording access process data corresponding to the access operation of the project starting guide page based on the process record interface; and if the project page currently accessed by the user is a project page subsequent to the project starting guide page, recording access process data corresponding to the access operation of the project page subsequent to the project starting guide page based on the process record interface.
Step S212, detecting whether a project participation event configured on a project confirmation page at a project confirmation stage of the guarantee project is triggered;
if yes, go to step S216 to step S224;
if not, go to step S214, and return to step S210.
Step S214, the access process data is divided into frame sequences, and the frame sequences are sent to the server through WebSocket connection.
And step S216, marking the access process data to obtain the access process data carrying the item participation mark of the guarantee item.
Step S218, the access process data of the project participation mark carrying the guarantee project is divided into a frame sequence.
Step S220, sending the frame sequence to the server through the WebSocket connection.
In step S222, a call end instruction sent by the server is received.
In step S224, the call to the process recording interface is ended based on the call end instruction.
The following further describes the data recording method provided in this embodiment by taking an application of the data recording method provided in this embodiment in an asset management service scenario as an example, referring to fig. 3, the data recording method applied in the asset management service scenario is applied to a client, and the data storage method applied in the asset management service scenario (step S602 to step S620) provided in the following embodiment is matched, and specifically includes step S302 to step S324.
Step S302, obtaining the access request submitted by the user aiming at the asset management service.
Step S304, based on the access request, an asset management start page of the asset management service is initialized.
Step S306, under the condition that the interface calling is triggered in the initialization process of the asset management start page, a WebSocket connection establishment request is sent to the server through the calling process recording interface.
Step S308, receiving a request for establishing the WebSocket connection returned by the server.
And the client establishes WebSocket connection with the server after establishing response reception.
Step S310, recording access process data corresponding to the access operation of the currently displayed business page based on the process record interface.
Specifically, the currently displayed service page is displayed according to the actual access progress of the user for accessing the asset management service, and the currently displayed service page is the service page currently accessed by the user; correspondingly, if the service page currently accessed by the user is an asset management starting page, recording access process data corresponding to the access operation of the asset management starting page based on a process record interface; and if the service page currently accessed by the user is a service page subsequent to the asset management starting page, recording access process data corresponding to the access operation of the service page subsequent to the asset management starting page based on the process record interface.
Step S312, detecting whether the asset management participation event configured by the asset management confirmation page of the asset management service is triggered;
if yes, go to step S316-step S324;
if not, go to step S314, and return to step S310.
Step S314, dividing the access process data into frame sequences, and sending the frame sequences to the server through WebSocket connection.
And step S316, marking the access process data to obtain the access process data carrying the asset management participation mark of the asset management service.
Step S318, the access process data carrying the asset management participation flag is divided into a sequence of frames.
Step S320, sending the frame sequence to the server through the WebSocket connection.
In step S322, the call end instruction sent by the server is received.
In step S324, the call to the process recording interface is ended based on the call end instruction.
Similar to the data recording method applied to the guarantee project scenario and the data recording method applied to the asset management service scenario, in the mutual aid project, firstly, an access request submitted by a user for the mutual aid project is obtained, a project start guide page of the mutual aid project is initialized based on the access request, when an interface call is triggered in the initialization process of the project start guide page, a WebSocket connection establishment request is sent to a server through a call process recording interface, an establishment response of the WebSocket connection establishment request returned by the server is received, wherein a client establishes a WebSocket connection with the server after receiving the establishment response, access process data corresponding to the access operation of the currently displayed project page is recorded based on the process recording interface, and particularly, the currently displayed project page is displayed according to the actual access progress of the user for accessing the mutual aid project, the currently displayed project page is the project page currently visited by the user; correspondingly, if the project page currently accessed by the user is a project starting guide page, recording access process data corresponding to the access operation of the project starting guide page based on the process record interface; if the project page currently accessed by the user is a project page subsequent to the project starting guide page, recording access process data corresponding to the access operation of the project page subsequent to the project starting guide page based on the process recording interface;
then detecting whether a project participation event configured on a project confirmation page in a project confirmation phase of the mutual aid and help project is triggered; if so, dividing the access process data into frame sequences, sending the frame sequences to a server through WebSocket connection, marking the access process data, and obtaining the access process data of the project participation mark carrying the mutual aid coordination project; if not, the access process data is divided into frame sequences, the frame sequences are sent to the server through WebSocket connection, and the access process data process corresponding to the access operation of the subsequent project page of the project initial guide page recorded based on the process recording interface is returned to be executed;
and then, dividing the access process data into frame sequences, sending the frame sequences to a server through WebSocket connection, marking the access process data to obtain access process data of the project participation marks carrying the mutual aid coordination projects, dividing the access process data of the project participation marks carrying the mutual aid coordination projects into the frame sequences, sending the frame sequences to the server through the WebSocket connection, receiving a call ending instruction sent by the server, and ending the call of the process recording interface based on the call ending instruction.
In summary, the data recording method provided by this embodiment, starting from the access request of the target service, in case an interface call is detected during the initialization of a service page of the target service, establishing a long connection with the server by calling the process recording interface, recording access process data corresponding to the access operation of the service page by calling the process recording interface, and finally sending the recorded access process data to the server by the established long connection, thereby realizing the recording and uploading of the access process data involved in the access process of the target service, providing a basis for archiving the access process data by the server, simultaneously providing a data basis for the traceability of the access process data, therefore, the data in the access process are filed and traceable in cooperation with the server, and the trust of the user on the service is improved.
An embodiment of a data storage method provided in this specification is as follows:
referring to fig. 4, it shows a processing flow chart of a data storage method provided in this embodiment, where the data storage method is applied to a server, and specifically includes steps S402 to S408.
Step S402, responding to the client and establishing long connection with the client.
In practical application, a process of accessing a service page of a target service by a user is a continuous process, and uploading access process data recorded in an access operation for the service page of the target service to a server by a client is also a continuous process, so as to ensure that the server can receive the access process data uploaded by the client in real time, and avoid that the client needs to upload the recorded access process data to the server at one time, a long connection is established by matching with the client, in an optional implementation manner provided by this embodiment, the long connection is established between the client and the response client, and is specifically implemented by:
receiving a WebSocket connection establishment request sent by the client;
sending a building response of the building request of the WebSocket connection to the client; and after the establishment response is sent to the client, establishing WebSocket connection with the client.
Step S404, receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection.
The target service in this embodiment refers to an online service that provides a service depending on the internet, such as a guarantee item (e.g., an insurance item) that provides a guarantee service, an asset management service (e.g., a fund service, a financing service) that provides an asset management service, or an online mutual-aid economic item that provides a mutual-aid economic service.
In practical application, in the process of accessing the target service, a user specifically accesses a service page of the target service to acquire specific service information of the target service, so as to determine whether to participate in the target service on the basis of acquiring the service information, wherein the service page of the target service includes a service phase page corresponding to the target service in at least one service phase. For example, during a user's access to a guarantee project, the project page for the guarantee project includes: the project starting guide page of the project guide phase, the project participation confirmation page of the project participation phase, the project protocol display page of the protocol display phase, the protocol confirmation page of the protocol confirmation phase and the like.
It should be noted that the client records the access process and the participation process of the user to access and participate in the target service, and is implemented by calling a process recording interface, where the process recording interface is a service packaged in advance for recording a service page and an access operation, and the triggering of the process recording interface is triggered in the initialization process of the service page of the target service, specifically, the initialization script of the first service page of the first service stage of the target service includes a call function of the process recording interface, and if it is detected that the call function is executed in the execution process of the initialization script of the service page, the call of the process recording interface is triggered.
As mentioned above, the server cooperates with the client to establish a WebSocket connection as a data transmission channel for receiving the access process data sent by the client, and on the basis of collecting the page element data, the event data and the page update data as the access process data corresponding to the access operation through the data recording interface, in an optional implementation manner provided by this embodiment, in the process of receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection, firstly, receiving a frame sequence sent by the client through the WebSocket connection, and then assembling the frame sequence to obtain page element data of a service page, event data of a page event triggered by an access operation and page update data of an updated service page obtained after the execution of the page event.
In specific implementation, after receiving access process data corresponding to an access operation of a service page of a target service sent by the client through the long connection, the access process data is stored so as to perform archive processing and uplink processing on the access process data subsequently.
Step S406, detecting whether the target service is successfully executed based on the access process data.
In practical application, during a process that a user accesses a service page of a target service, the user does not finally form effective participation in the target service every time the user accesses the service page of the target service, and becomes a service member of the target service, at least a part of users do not finally actually participate in the target service after accessing the page of the target service, and for this reason, in order to ensure that access process data corresponding to an access operation received by a server can be effectively archived and avoid data storage space from being wasted, in this step, whether the target service is successfully executed is detected based on the access process data, and specifically, whether the target service is successfully executed is detected by detecting whether the access process data includes a service completion flag; if yes, executing the following step S408, and archiving and storing the access process data; and if not, deleting the stored access process data, and sending a call ending instruction of the process recording interface to the client.
In addition, under the condition that the detection result of detecting whether the target service is successfully executed based on the access process data is negative, whether the access process data stored in a preset time range carries the service completion mark can be further detected; if yes, executing the following step S408, and archiving and storing the access process data; and if not, deleting the stored access process data, and sending a call ending instruction of the process recording interface to the client.
And step S408, archiving and storing the access process data.
In order to improve that the access process data can be effectively stored, and in order to improve the uplink processing efficiency of the access process data, in an optional implementation manner provided in this embodiment, the data storage is implemented by storing the access process data in a cloud storage space, and the evidence of the access process data is implemented by uploading a hash string obtained by hashing the access process data to a block chain, and specifically, the archiving and storing the access process data includes: archiving the access process data according to the user identification contained in the access process data to obtain a data set corresponding to each user identification; and storing the data set to a cloud storage space.
Further, on the basis of archiving and storing the access process data, the access process data is stored in the following mode: carrying out hash processing on the access data set corresponding to each user identifier by adopting a hash algorithm to obtain a hash character string corresponding to each user identifier; and uploading the hash character strings corresponding to the user identifications to the block chain.
In practical application, after the archiving, storing and verifying the access process data, once a dispute occurs in the participation process of the target service, the user may perform verification on the access process data on the basis of the archiving, storing and verifying, so as to provide a data basis for dispute resolution, where in an optional implementation manner provided in this embodiment, the following manner is specifically adopted to perform verification processing on the access process data:
1) acquiring a data verification request of a service user of the target service;
2) reading a hash character string corresponding to the user identification from the block chain based on the user identification of the service user carried in the data verification request;
3) reading a data set corresponding to the user identification stored in the cloud storage space;
4) performing hash processing on the read data set by using the hash algorithm to obtain a character string to be verified;
5) and comparing the character string to be checked with the hash character string corresponding to the user identification, and determining the data checking result of the service user according to the comparison result.
The following further describes the data storage method provided in this embodiment by taking an application of the data storage method provided in this embodiment in a guarantee project scenario as an example, and referring to fig. 5, the data storage method applied in the guarantee project scenario specifically includes steps S502 to S522.
Step S502, receiving a WebSocket connection establishment request sent by a client.
Step S504, sending a request for establishing the WebSocket connection to the client.
Step S506, receiving a frame sequence sent by the client through the WebSocket connection.
Step S508, assembling the frame sequence, and obtaining access process data corresponding to the access operation of the item page of the guarantee item.
Step S510, the obtained access procedure data is stored.
Step S512, detecting whether the access process data contains a project participation mark of the guarantee project;
if yes, go to step S514 to step S516;
if not, go to step S518.
And step S514, archiving the access process data according to the user identification contained in the access process data, and obtaining a data set corresponding to each user identification.
And step S516, storing the data set to a cloud storage space.
Step S518, detecting whether the access process data stored in the preset time range carries an item participation mark;
if yes, returning to execute the step S514 to the step S516;
if not, deleting the stored access process data, and sending a call ending instruction of the process recording interface to the client.
Step S520, performing hash processing on the access data set corresponding to each user identifier by using a hash algorithm, to obtain a hash character string corresponding to each user identifier.
In step S522, the hash strings corresponding to the user identifiers are uploaded to the block chain.
The following further describes the data storage method provided in this embodiment by taking an application of the data storage method provided in this embodiment in an asset management service scenario as an example, and referring to fig. 6, the data storage method applied in the asset management service scenario specifically includes steps S602 to S620.
Step S602, receives a WebSocket connection establishment request sent by the client.
Step S604, sending a setup response of the setup request of the WebSocket connection to the client.
Step S606, receiving a frame sequence sent by the client through the WebSocket connection.
Step S608, assembling the frame sequence, and obtaining access process data corresponding to the access operation of the service page of the asset management service.
Step S610, the obtained access procedure data is stored.
Step S612, detecting whether the access process data contains a service participation mark of the asset management service;
if yes, go to step S614-S620;
if not, deleting the stored access process data, and sending a call ending instruction of the process recording interface to the client.
And step S614, archiving the access process data according to the user identification contained in the access process data, and obtaining a data set corresponding to each user identification.
Step S616, storing the data set to the cloud storage space.
Step S618, performing hash processing on the access data set corresponding to each user identifier by using a hash algorithm, to obtain a hash character string corresponding to each user identifier.
Step S620, uploading the hash strings corresponding to the user identifiers to a block chain.
In summary, in the data storage method provided in this embodiment, on the basis of responding to the long connection establishment request of the client and establishing the long connection with the client, the access process data sent by the client through the established long connection is received, and on the basis of the access process data, the access process data is subjected to archive storage and uplink storage under the condition that it is detected that the target service is successfully executed, so as to ensure the truthfulness of the access process data recorded in the service access and service participation processes of the user, and meanwhile, the access process data recorded in the service access and service participation processes of the user can be traced back, so that the trust level of the user on the service is improved.
An embodiment of a data storage method based on a block chain provided in this specification is as follows:
referring to fig. 7, the data storage method based on a block chain provided in this embodiment is applied to block chain link points in the block chain, and specifically includes steps S702 to S706.
Step S702, receiving access process data corresponding to the access operation of the service page of the target service submitted by the server.
The data storage method based on the block chain provided by this embodiment is applied to a block chain node in the block chain, and by cooperating with the data processing method applied to a server and the data recording method applied to a client provided by the following embodiments, on the basis of formatting and digitizing the service process and the service page related to the user in the service access and service participation process, records the participation behavior of the user in the service participation process, uploads the access process data recorded for the access operation to the server in real time by using the access operation of the user as a unit, submits the access process data uploaded by the client in real time to a block link point by the server, and archives and stores the access process data by the block link point, thereby ensuring the truthfulness and credibility of the access process data recorded in the service access and service participation processes of the user, meanwhile, the method can ensure that the access process data recorded in the process of service access and service participation of the user can be traced back, thereby improving the trust of the user on the service.
The target service in this embodiment refers to an online service that provides a service depending on the internet, such as a guarantee item (e.g., an insurance item) that provides a guarantee service, an asset management service (e.g., a fund service, a financing service) that provides an asset management service, or an online mutual-aid economic item that provides a mutual-aid economic service.
In practical application, in the process of accessing the target service, a user specifically accesses a service page of the target service to obtain specific service information of the target service, so as to determine whether to participate in the target service on the basis of obtaining the service information. For example, during a user's access to a guarantee project, the project page for the guarantee project includes: the project starting guide page of the project guide phase, the project participation confirmation page of the project participation phase, the project protocol display page of the protocol display phase, the protocol confirmation page of the protocol confirmation phase and the like.
The access process data corresponding to the access operation in this embodiment includes page element data of a currently displayed service page, event data of a page event triggered by the access operation for the displayed service page, and page update data of an updated service page obtained after the page event is executed.
For example, in the security project, if the page of the currently displayed safeguard project is the project start guide page of the project guide stage, the page element data of the project start guide page is recorded by using the process recording interface, if the access operation of the user is to click the confirmation control shown in the project start guide page, the event data of the confirmation event triggered by the user clicking the confirmation control is recorded by using the process recording interface, further, if the user clicks the confirmation control shown in the project start guide page and then jumps to the project participation confirmation page of the project participation stage, the page data of the project participation confirmation page is recorded by using the process recording interface, and finally, the page element data of the project start guide page, the event data of the confirmation event triggered by the user clicking the confirmation control, and the page data of the project participation confirmation page of the project participation stage after jumping are all three data, the access process data are used as the access process data corresponding to the access operation of the user aiming at the project initial guide page.
Step S704, detecting the access process data by calling the intelligent contract deployed by the block link point, and archiving the access process data when detecting that the access process data includes the service completion flag of the target service.
In order to improve the efficiency of storing the access procedure data effectively and improve the efficiency of processing the access procedure data in the uplink process, in an optional implementation manner provided in this embodiment, the access procedure data is archived in the following manner:
archiving the access process data according to the user identification contained in the access process data to obtain an intermediate data set corresponding to each user identification;
extracting key data contained in the intermediate data set to form a key data set;
on this basis, in the process of performing uplink processing on the data set in the subsequent step S706, specifically, the uplink processing on the data set is realized by uploading the key data set to the block chain.
Step S706, obtaining a data set obtained after the intelligent contract is archived, and performing uplink processing on the data set.
In an optional implementation manner provided in this embodiment, the uplink processing is performed on the data set, and specifically implemented as:
carrying out hash processing on the access data set corresponding to each user identifier by adopting a hash algorithm to obtain a hash character string corresponding to each user identifier;
and uploading the hash character strings corresponding to the user identifications to the block chain.
In practical applications, after archiving and uplink saving of the access process data, once a dispute occurs in a participation process of the target service, the user may restore the access process data on the basis of archiving and uplink saving, so as to serve as a data basis for resolving the dispute, in this embodiment, a process of restoring the access process data is implemented by being matched with the server, and in an optional implementation manner provided in this embodiment, the restoration processing of the access process data on one side of the block link node is implemented by a second intelligent contract deployed by the block link node:
receiving a reference data set of a service user of the target service submitted by the server;
reading a key data set of the business user from the blockchain;
calling the second intelligent contract to check the reference data set, and assembling the reference data set and the key data set into a target data set under the condition that the check is passed;
and acquiring the target data set assembled and obtained by the second intelligent contract and sending the target data set to the server.
In addition, in practical applications, in order to improve the efficiency of the uplink storage of the access process data and also improve the reliability of the uplink storage of the access process data, in an optional implementation manner provided in this embodiment, the following manner is adopted for verification processing:
receiving a data verification request of a service user of the target service submitted by the server;
reading the hash character string of the service user from the block chain based on the user identification of the service user carried in the data verification request;
and converting the hash character string into a second target data set and sending the second target data set to the server.
An embodiment of a data processing method provided in this specification is as follows:
referring to fig. 8, the data processing method provided in this embodiment is applied to a server, and specifically includes steps S802 to S808.
Step S802, a long connection establishment request sent by the client is received.
In practical application, a process of accessing a service page of a target service by a user is a continuous process, and uploading access process data recorded by an access operation for the service page of the target service to a server by a client is also a continuous process, so that the server can receive the access process data uploaded by the client in real time, and the recorded access process data is prevented from being uploaded to the server by the client at one time, so that a long connection is established by matching with the client, and optionally, the long connection comprises WebSocket connection established based on a WebSocket protocol.
Step S804, a connection establishment response responding to the long connection establishment request is returned to the client.
Specifically, a WebSocket establishment response is returned to the client for a WebSocket establishment request sent by the client.
Step S806, receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection.
The target service in this embodiment refers to an online service that provides a service depending on the internet, such as a guarantee item (e.g., an insurance item) that provides a guarantee service, an asset management service (e.g., a fund service, a financing service) that provides an asset management service, or an online mutual-aid economic item that provides a mutual-aid economic service.
In practical application, in the process of accessing the target service, a user specifically accesses a service page of the target service to acquire specific service information of the target service, so as to determine whether to participate in the target service on the basis of acquiring the service information, wherein the service page of the target service includes a service phase page corresponding to the target service in at least one service phase. For example, during a user's access to a guarantee project, the project page for the guarantee project includes: the project starting guide page of the project guide phase, the project participation confirmation page of the project participation phase, the project protocol display page of the protocol display phase, the protocol confirmation page of the protocol confirmation phase and the like.
It should be noted that the client records the access process and the participation process of the user to access and participate in the target service, and is implemented by calling a process recording interface, where the process recording interface is a service packaged in advance for recording a service page and an access operation, and the triggering of the process recording interface is triggered in the initialization process of the service page of the target service, specifically, the initialization script of the first service page of the first service stage of the target service includes a call function of the process recording interface, and if it is detected that the call function is executed in the execution process of the initialization script of the service page, the call of the process recording interface is triggered.
As mentioned above, the server cooperates with the client to establish a WebSocket connection as a data transmission channel for receiving the access process data sent by the client, and on the basis that the client acquires the page element data, the event data and the page update data as the access process data corresponding to the access operation through the data recording interface, in an optional implementation manner provided by this embodiment, in the process of receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection, firstly, receiving a frame sequence sent by the client through the WebSocket connection, and then assembling the frame sequence to obtain page element data of a service page, event data of a page event triggered by an access operation and page update data of an updated service page obtained after the execution of the page event.
Step S808, submitting the access process data to the block link point.
In practical application, during a process of accessing a service page of the target service, a user may not finally form an effective participation in the target service to become a service member of the target service, and at least a part of users may not actually participate in the target service after accessing the page of the target service, for this reason, in order to ensure that access process data corresponding to the access operation received by a server can be effectively archived and to avoid wasting a data storage space, in an optional implementation manner provided in this embodiment, whether a service completion flag is included in the access process data is detected;
if so, sending a call ending instruction of the process recording interface to the client;
archiving the user identification contained in the access process data according to the user identification to obtain an intermediate data set corresponding to each user identification;
and extracting non-key data contained in the intermediate data set to form a reference data set and storing the reference data set in a cloud storage space.
In practical applications, after archiving and chain saving the access process data, once a dispute occurs in the participation process of the target service, the user may restore the access process data on the basis of archiving and chain saving, so as to serve as a data basis for resolving the dispute, in this embodiment, the process of verifying the access process data is implemented by matching with the block link node, and in an optional implementation manner provided in this embodiment, the restoring processing of the access process data specifically includes:
under the condition that a data verification request of a service user of the target service is obtained, reading a reference data set of the service user from the cloud storage space;
submitting a reference data set of the service user to the block link point;
and receiving a target data set obtained by assembling the reference data set and the key data set sent by the block chain node.
In addition, in practical applications, in order to improve the efficiency of the uplink storage of the access process data and also improve the reliability of the uplink storage of the access process data, in an optional implementation manner provided in this embodiment, the following manner is adopted for verification processing:
submitting a data verification request of a service user of the target service to the block link node;
and receiving a second target data set of the service user sent by the block chain node.
The second data recording method provided by the present specification has the following embodiments:
referring to fig. 9, the data recording method provided in this embodiment is applied to a client, and specifically includes steps S902 to S912.
Step S902, an access request of the target service is obtained.
The target service in this embodiment refers to an online service that provides a service depending on the internet, such as a guarantee item (e.g., an insurance item) that provides a guarantee service, an asset management service (e.g., a fund service, a financing service) that provides an asset management service, or an online mutual-aid economic item that provides a mutual-aid economic service.
In practical application, in the process of accessing the target service, a user specifically accesses a service page of the target service to obtain specific service information of the target service, so as to determine whether to participate in the target service on the basis of obtaining the service information. For example, during a user's access to a guarantee project, the project page for the guarantee project includes: the project starting guide page of the project guide phase, the project participation confirmation page of the project participation phase, the project protocol display page of the protocol display phase, the protocol confirmation page of the protocol confirmation phase and the like.
The access request of the target service refers to an access request for a user to browse and view a service page of the target service, and the access request may be an access request submitted by the user between service pages of the target service, or an access request submitted by the user to access a subsequent service page of the target service on the basis of the service page of the target service. For example, a user submits a request for access to a security item by triggering an item entry for the security item.
Step S904, initializing a service page of the target service based on the access request.
Based on the access request of the target service, the service page of the target service is initialized, specifically, the page initialization is performed by executing the initialization script of the service page of the target service.
It should be noted that, in this embodiment, the access process and the participation process of the user accessing and participating in the target service are recorded, and the recording is implemented by calling a process recording interface, where the process recording interface is a service packaged in advance for recording a service page and an access operation, and the triggering of the process recording interface is triggered in the initialization process of the service page of the target service, optionally, the initialization script of the first service page in the first service stage of the target service includes a call function of the process recording interface, and if it is detected that the call function is executed in the execution process of the initialization script of the service page, the call of the process recording interface is triggered.
Step S906, sends a long connection establishment request to the server.
It should be noted that, since the process of accessing the service page of the target service by the user is a continuous process, in order to ensure that the access process data recorded by the subsequent process recording interface can be uploaded to the server in real time, and in order to avoid that the recorded access process data is uploaded to the server at one time and consumes much time, the process recording interface is called here to establish a long connection with the server. Optionally, the long connection includes a WebSocket connection established based on a WebSocket protocol.
Step S908, receiving a connection establishment response returned by the server.
Specifically, after sending a WebSocket establishment request to the server, a WebSocket establishment response returned by the server is received.
Step S910, a process recording interface triggered in the initialization process is called to record access process data corresponding to the access operation of the service page.
In order to reduce the probability of disputes occurring during the process of accessing and participating the target service, it is necessary to record the data of the access process related to the process of accessing and participating the target service as comprehensively and completely as possible, so that the disputes can be effectively resolved by using the data as a certificate, and meanwhile, the trust level of the user on the target service can be increased. In an optional implementation manner provided in this embodiment, the implementation process of calling the process record interface to record the access process data corresponding to the access operation of the service page is specifically as follows:
reading page element data of the displayed business page;
recording event data of a page event triggered by access operation aiming at the displayed service page;
recording page updating data of an updating service page obtained after the page event is executed;
and determining the page element data, the event data and the page updating data as access process data corresponding to the access operation.
Step S912, sending the access procedure data through the long connection established with the server.
As described above, the client establishes a WebSocket connection with the server to serve as a data transmission channel for transmitting access process data corresponding to the access operation to the server, and acquires the page element data, the event data, and the page update data through the data recording interface to serve as the access process data corresponding to the access operation.
In practical application, during a process of accessing a service page of the target service, a user may not finally form an effective participation in the target service every time of accessing, and becomes a service member of the target service, and at least a part of users may not actually participate in the target service finally after accessing the page of the target service, for this reason, in order to ensure that access process data corresponding to the access operation sent to the server can be effectively archived, in an optional implementation manner provided in this embodiment, whether a service completion event configured on a second service page of a second service phase of the target service is triggered is detected; if so, marking the access process data to obtain the access process data carrying the service completion mark of the target service; and if not, sending the access process data to the server.
Further, after the access process data carrying the service completion flag of the target service is sent to the server, the server returns a call end instruction of the process recording interface to the client after detecting the access process data carrying the service completion flag, and correspondingly, after receiving the call end instruction sent by the server, the client ends the call of the process recording interface based on the call end instruction.
The data recording device provided by the specification comprises the following embodiments:
in the foregoing embodiment, a data recording method applied to a client is provided, and correspondingly, a data recording apparatus is also provided, which is described below with reference to the accompanying drawings.
Referring to fig. 10, there is shown a schematic diagram of a data recording apparatus provided in the present embodiment.
Since the device embodiments correspond to the method embodiments, the description is relatively simple, and the relevant portions may refer to the corresponding description of the method embodiments provided above. The device embodiments described below are merely illustrative.
The present embodiment provides a data recording apparatus, operating on a client, including:
an access request obtaining module 1002 configured to obtain an access request of a target service;
a service page initialization module 1004 configured to initialize a service page of the target service based on the access request;
a long connection establishing module 1006, configured to, in a case that it is detected that the interface call is triggered in the initialization process, call a process recording interface and establish a long connection with a server;
an access process data recording module 1008 configured to record access process data corresponding to the access operation of the service page based on the process recording interface;
an access procedure data sending module 1010 configured to send the access procedure data to the server over the long connection.
Optionally, the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
Optionally, the data recording apparatus further includes:
detecting whether a service completion event configured by a second service page of a second service stage of the target service is triggered;
and if so, marking the access process data to obtain the access process data carrying the service completion mark of the target service.
Optionally, the data recording apparatus further includes:
receiving a call ending instruction sent by the server;
and ending the calling of the process recording interface based on the calling ending instruction.
Optionally, the long connection establishing module 1006 includes:
the establishment request sending submodule is configured to send an establishment request of the WebSocket connection to the server;
and the establishing response receiving submodule is configured to receive an establishing response of the establishing request of the WebSocket connection returned by the server, and the establishing response establishes the WebSocket connection with the server after being received.
Optionally, the access process data recording module 1008 is specifically configured to:
reading page element data of the displayed business page;
recording event data of a page event triggered by access operation aiming at the displayed service page;
recording page updating data of an updating service page obtained after the page event is executed;
and determining the page element data, the event data and the page updating data as access process data corresponding to the access operation.
Optionally, the access process data sending module 1010 is specifically configured to:
segmenting the page element data, the event data, and the page update data into a sequence of frames;
and sending the frame sequence to the server through the WebSocket connection.
The specification provides an embodiment of a data storage device as follows:
in the above embodiments, a data storage method is provided, and correspondingly, a data storage apparatus is also provided, which is described below with reference to the accompanying drawings.
Referring to fig. 11, there is shown a schematic diagram of a data storage device provided in the present embodiment.
Since the device embodiments correspond to the method embodiments, the description is relatively simple, and the relevant portions may refer to the corresponding description of the method embodiments provided above. The device embodiments described below are merely illustrative.
The present embodiment provides a data storage device including:
a long connection establishment module 1102 configured to respond to and establish a long connection with a client;
an access process data receiving module 1104, configured to receive access process data corresponding to an access operation of a service page of a target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
a target service execution detection module 1106 configured to detect whether the target service is successfully executed based on the access procedure data;
if so, the archive storage module 1108 is run; the archive storage module 1108 is configured to perform archive storage on the access process data.
Optionally, the data storage device further includes:
an access procedure data storage module configured to store the access procedure data.
Optionally, the target service execution detection module 1106 is specifically configured to detect whether the target service is successfully executed by detecting whether the access process data includes a service completion flag;
correspondingly, optionally, the data storage device further includes:
and the access process data deleting module is configured to delete the stored access process data and send a call ending instruction of the process recording interface to the client.
Optionally, if the operation result after the target service execution detection module 1106 operates is negative, the service completion flag monitoring module operates;
the service completion mark monitoring module is configured to detect whether the access process data stored in a preset time range carries the service completion mark; and if not, deleting the stored access process data, and sending a call ending instruction of the process recording interface to the client.
Optionally, the archive storage module 1108 is specifically configured to:
archiving the user identification contained in the access process data according to the user identification to obtain a data set corresponding to each user identification;
and storing the data set to a cloud storage space.
Optionally, the data storage device further includes:
the hash processing module is configured to perform hash processing on the access data set corresponding to each user identifier by adopting a hash algorithm to obtain a hash character string corresponding to each user identifier;
and the hash character string uploading module is configured to upload the hash character strings corresponding to the user identifications to the block chain.
Optionally, the data storage device further includes:
the data verification request acquisition module is configured to acquire a data verification request of a service user of the target service;
a hash string reading module configured to read a hash string corresponding to the user identifier from the blockchain based on the user identifier of the service user carried in the data verification request;
a data set reading module configured to read a data set corresponding to the user identifier stored in the cloud storage space;
the second hash processing module is configured to perform hash processing on the read data set by using the hash algorithm to obtain a character string to be verified;
and the comparison module is configured to compare the character string to be verified with the hash character string corresponding to the user identifier, and determine a data verification result of the service user according to the comparison result.
Optionally, the long connection establishing module 1102 is specifically configured to:
receiving a WebSocket connection establishment request sent by the client;
sending a building response of the building request of the WebSocket connection to the client; and after the establishment response is sent to the client, establishing WebSocket connection with the client.
Optionally, the access process data receiving module 1104 is specifically configured to:
receiving a frame sequence sent by the client through the WebSocket connection;
and assembling the frame sequence to obtain page element data of a service page, event data of a page event triggered by an access operation and page updating data of an updated service page obtained after the page event is executed.
The specification provides an embodiment of a data storage device based on a block chain, which is as follows:
in the foregoing embodiment, a method for storing data based on a block chain is provided, and correspondingly, a data storage apparatus based on a block chain is also provided, which is described below with reference to the accompanying drawings.
Referring to fig. 12, a schematic diagram of a data storage device based on a block chain according to the present embodiment is shown.
Since the device embodiments correspond to the method embodiments, the description is relatively simple, and the relevant portions may refer to the corresponding description of the method embodiments provided above. The device embodiments described below are merely illustrative.
The present embodiment provides a data storage device based on a block chain, including:
the access process data receiving module 1202 is configured to receive access process data corresponding to an access operation of a service page of a target service submitted by a server;
an access process data detection module 1204, configured to detect the access process data by calling an intelligent contract deployed by the block link point, and archive the access process data when detecting that the access process data includes a service completion flag of the target service;
a data set uplink processing module 1206, configured to obtain the data set obtained after the intelligent contract is archived and uplink process the data set.
Optionally, the access process data detection module 1204 includes:
the archiving submodule is configured to archive the access process data according to the user identifiers contained in the access process data to obtain intermediate data sets corresponding to the user identifiers;
the extraction sub-module is configured to extract key data contained in the intermediate data set to form a key data set;
accordingly, the data set uplink processing module 1206 includes:
an upload sub-module configured to upload the key data set to the blockchain.
Optionally, a second intelligent contract is deployed at the block chain node;
correspondingly, the data storage device based on the block chain further comprises:
a reference data set receiving module configured to receive a reference data set of a service user of the target service submitted by the server;
a key data set extraction module configured to read key data sets of the business users from the blockchain;
the second intelligent contract calling module is configured to call the second intelligent contract to check the reference data set, and under the condition that the check is passed, the reference data set and the key data set are assembled into a target data set;
and the target data set sending module is configured to acquire the target data set assembled and obtained by the second intelligent contract and send the target data set to the server.
Optionally, the data set uplink processing module 1206 includes:
the hash processing submodule is configured to perform hash processing on the access data set corresponding to each user identifier by adopting a hash algorithm to obtain a hash character string corresponding to each user identifier;
and the uploading sub-module is configured to upload the hash character strings corresponding to the user identifications to the block chain.
Optionally, the data storage device based on the blockchain further includes:
the data verification request receiving module is configured to receive a data verification request of a service user of the target service submitted by the server;
a hash string reading module configured to read a hash string of the service user from the block chain based on the user identifier of the service user carried in the data verification request;
a second target data set sending module configured to convert the hash string into a second target data set and send the second target data set to the server.
The data processing device provided by the specification comprises the following embodiments:
in the above embodiments, a data processing method is provided, and correspondingly, a data processing apparatus is also provided, which is described below with reference to the accompanying drawings.
Referring to fig. 13, a schematic diagram of a data processing apparatus provided in the present embodiment is shown.
Since the device embodiments correspond to the method embodiments, the description is relatively simple, and the relevant portions may refer to the corresponding description of the method embodiments provided above. The device embodiments described below are merely illustrative.
The present embodiment provides a data processing apparatus, including:
a long connection establishment request receiving module 1302, configured to receive a long connection establishment request sent by a client;
a connection establishment response returning module 1304 configured to return a connection establishment response in response to the long connection establishment request to the client;
an access process data receiving module 1306, configured to receive access process data corresponding to an access operation of a service page of a target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
an access procedure data submission module 1308 configured to submit the access procedure data to a block chain node.
Optionally, the data recording apparatus further includes:
a service completion flag monitoring module configured to detect whether the access process data includes a service completion flag;
if yes, running a calling ending instruction sending module; the calling end instruction sending module is configured to send a calling end instruction of the process recording interface to the client;
the archiving module is configured to archive the access process data according to the user identifiers to obtain intermediate data sets corresponding to the user identifiers, wherein the user identifiers are contained in the access process data;
and the storage module is configured to extract non-key data contained in the intermediate data set to form a reference data set and store the reference data set to a cloud storage space.
Optionally, the data recording apparatus further includes:
the benchmark data set reading module is configured to read the benchmark data set of the service user from the cloud storage space under the condition that the data verification request of the service user of the target service is acquired;
a reference data set submitting module configured to submit the reference data set of the service user to the block link point;
and the target data set receiving module is configured to receive a target data set obtained by assembling the reference data set and the key data set sent by the blockchain node.
Optionally, the long connection includes a WebSocket connection established based on a WebSocket protocol;
correspondingly, the access procedure data receiving module 1306 is specifically configured to:
receiving a frame sequence sent by the client through the WebSocket connection;
and assembling the frame sequence to obtain page element data of a service page, event data of a page event triggered by an access operation and page updating data of an updated service page obtained after the page event is executed.
Optionally, the data recording apparatus further includes:
a data verification request submitting module configured to submit the data verification request of the service user of the target service to the block link point;
and the second target data set receiving module is configured to receive a second target data set of the service user issued by the block link point.
Optionally, the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
The specification provides a second data recording apparatus embodiment as follows:
in the above-described embodiments, a second data recording method is provided, and correspondingly, a second data recording apparatus is also provided, which will be described below with reference to the accompanying drawings.
Referring to fig. 14, there is shown a schematic diagram of a second data recording apparatus provided in the present embodiment.
Since the device embodiments correspond to the method embodiments, the description is relatively simple, and the relevant portions may refer to the corresponding description of the method embodiments provided above. The device embodiments described below are merely illustrative.
The present embodiment provides a data recording apparatus including:
an access request obtaining module 1402 configured to obtain an access request of a target service;
a service page initialization module 1404 configured to initialize a service page of the target service based on the access request;
a long connection establishment request sending module 1406 configured to send a long connection establishment request to the server;
a connection establishment response receiving module 1408 configured to receive a connection establishment response returned by the server;
an access process data recording module 1410 configured to call a process recording interface triggered in the initialization process to record access process data corresponding to the access operation of the service page;
an access procedure data sending module 1412 configured to send the access procedure data over the long connection established with the server.
Optionally, the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
Optionally, the data recording apparatus further includes:
a service completion event detection module configured to detect whether a service completion event configured by a second service page of a second service stage of the target service is triggered;
if yes, operating the access process data marking module; the access process data marking module is configured to mark the access process data to obtain the access process data carrying the service completion mark of the target service.
Optionally, the data recording apparatus further includes:
a calling end instruction receiving module configured to receive a calling end instruction sent by the server;
a call end module configured to end the call to the process recording interface based on the call end instruction.
Optionally, the access procedure data recording module 1410 is specifically configured to:
reading page element data of the displayed business page;
recording event data of a page event triggered by access operation aiming at the displayed service page;
recording page updating data of an updating service page obtained after the page event is executed;
and determining the page element data, the event data and the page updating data as access process data corresponding to the access operation.
Optionally, the long connection includes a WebSocket connection established based on a WebSocket protocol;
correspondingly, the access procedure data sending module 1412 is specifically configured to:
segmenting the page element data, the event data, and the page update data into a sequence of frames;
and sending the frame sequence to the server through the WebSocket connection.
The data recording device provided by the specification comprises the following embodiments:
corresponding to the above-described data recording method, based on the same technical concept, one or more embodiments of the present specification further provide a data recording apparatus for performing the above-described data recording method, and fig. 15 is a schematic structural diagram of the data recording apparatus provided by one or more embodiments of the present specification.
The present embodiment provides a data recording apparatus, including:
as shown in fig. 15, the data recording device may have a relatively large difference due to different configurations or performances, and may include one or more processors 1501 and a memory 1502, and one or more stored applications or data may be stored in the memory 1502. The memory 1502 may be, for example, a transient storage or a persistent storage. The application program stored in the memory 1502 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a data recording device. Still further, the processor 1501 may be configured to communicate with the memory 1502 and execute a series of computer-executable instructions in the memory 1502 on a data recording device. The data recording apparatus may also include one or more power supplies 1503, one or more wired or wireless network interfaces 1504, one or more input/output interfaces 1505, one or more keyboards 1506, and the like.
In a particular embodiment, a data recording apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the data recording apparatus, and configured for execution by one or more processors the one or more programs include computer-executable instructions for:
acquiring an access request of a target service;
initializing a service page of the target service based on the access request;
under the condition that the triggering interface is called in the initialization process, a process recording interface is called and long connection with a server is established;
recording access process data corresponding to the access operation of the business page based on the process recording interface;
and sending the access process data to the server through the long connection.
Optionally, the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
Optionally, in the process of executing the computer executable instructions, the method further includes:
detecting whether a service completion event configured by a second service page of a second service stage of the target service is triggered;
and if so, marking the access process data to obtain the access process data carrying the service completion mark of the target service.
Optionally, in the process of executing the computer executable instructions, the method further includes:
receiving a call ending instruction sent by the server;
and ending the calling of the process recording interface based on the calling ending instruction.
Optionally, the establishing of the long connection with the server includes:
sending a WebSocket connection establishment request to the server;
and receiving a building response of the building request of the WebSocket connection returned by the server, wherein the building response establishes the WebSocket connection with the server after being received.
Optionally, the recording access process data corresponding to the access operation of the service page based on the process record interface includes:
reading page element data of the displayed business page;
recording event data of a page event triggered by access operation aiming at the displayed service page;
recording page updating data of an updating service page obtained after the page event is executed;
and determining the page element data, the event data and the page updating data as access process data corresponding to the access operation.
Optionally, the sending the access process data to the server through the long connection includes:
segmenting the page element data, the event data, and the page update data into a sequence of frames;
and sending the frame sequence to the server through the WebSocket connection.
The data storage device provided by the specification comprises the following embodiments:
corresponding to the above-described data storage method, based on the same technical concept, one or more embodiments of the present specification further provide a data storage device, where the data storage device is configured to perform the above-described data storage method, and fig. 16 is a schematic structural diagram of a data storage device provided in one or more embodiments of the present specification.
The embodiment provides a data storage device, which includes:
as shown in fig. 16, the data storage device may have a large difference due to different configurations or performances, and may include one or more processors 1601 and a memory 1602, where one or more stored applications or data may be stored. Wherein the memory 1602 may be a transient storage or a persistent storage. The application programs stored in memory 1602 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a data storage device. Still further, the processor 1601 may be configured to communicate with the memory 1602, executing a series of computer executable instructions in the memory 1602 on a data storage device. The data storage device may also include one or more power supplies 1603, one or more wired or wireless network interfaces 1604, one or more input-output interfaces 1605, one or more keyboards 1606, and the like.
In one particular embodiment, a data storage device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the data storage device, and configured for execution by one or more processors the one or more programs include computer-executable instructions for:
responding to a client and establishing a long connection with the client;
receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
detecting whether the target service is successfully executed based on the access process data;
and if so, archiving and storing the access process data.
Optionally, in the process of executing the computer executable instructions, the method further includes:
and storing the access process data.
Optionally, the detecting whether the target service is successfully executed based on the access process data includes:
detecting whether the target service is successfully executed by detecting whether a service completion flag is included in the access process data;
correspondingly, the data storage method further comprises the following steps:
and deleting the stored access process data, and sending a call ending instruction of the process recording interface to the client.
Optionally, in the process of executing the computer executable instructions, the method further includes:
detecting whether the access process data stored in a preset time range carries the service completion mark or not;
and if not, deleting the stored access process data, and sending a call ending instruction of the process recording interface to the client.
Optionally, the archiving and storing the access process data includes:
archiving the user identification contained in the access process data according to the user identification to obtain a data set corresponding to each user identification;
and storing the data set to a cloud storage space.
Optionally, in the process of executing the computer executable instructions, the method further includes:
carrying out hash processing on the access data set corresponding to each user identifier by adopting a hash algorithm to obtain a hash character string corresponding to each user identifier;
and uploading the hash character strings corresponding to the user identifications to the block chain.
Optionally, in the process of executing the computer executable instructions, the method further includes:
acquiring a data verification request of a service user of the target service;
reading a hash character string corresponding to the user identification from the block chain based on the user identification of the service user carried in the data verification request;
reading a data set corresponding to the user identification stored in the cloud storage space;
performing hash processing on the read data set by using the hash algorithm to obtain a character string to be verified;
and comparing the character string to be checked with the hash character string corresponding to the user identification, and determining the data checking result of the service user according to the comparison result.
Optionally, the responding to the client and establishing the long connection with the client includes:
receiving a WebSocket connection establishment request sent by the client;
sending a building response of the building request of the WebSocket connection to the client; and after the establishment response is sent to the client, establishing WebSocket connection with the client.
Optionally, the receiving access process data corresponding to an access operation of a service page of a target service sent by the client through the long connection includes:
receiving a frame sequence sent by the client through the WebSocket connection;
and assembling the frame sequence to obtain page element data of a service page, event data of a page event triggered by an access operation and page updating data of an updated service page obtained after the page event is executed.
An embodiment of a data storage device based on a block chain provided in this specification is as follows:
corresponding to the above-described data storage method based on a block chain, based on the same technical concept, one or more embodiments of the present specification further provide a data storage device based on a block chain, where the data storage device based on a block chain is configured to execute the above-described data storage method based on a block chain, and fig. 17 is a schematic structural diagram of a data storage device based on a block chain provided in one or more embodiments of the present specification.
The embodiment provides a data storage device based on a block chain, which includes:
as shown in fig. 17, a blockchain-based data storage device may vary significantly depending on configuration or performance, and may include one or more processors 1701 and memory 1702 in which one or more stored applications or data may be stored. Memory 1702 may be transient or persistent storage, among other things. The application programs stored in memory 1702 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a blockchain-based data storage device. Still further, the processor 1701 may be configured to communicate with the memory 1702 to execute a series of computer-executable instructions in the memory 1702 on a blockchain based data storage device. The blockchain-based data storage apparatus may also include one or more power supplies 1703, one or more wired or wireless network interfaces 1704, one or more input-output interfaces 1705, one or more keyboards 1706, and the like.
In a particular embodiment, a blockchain based data storage device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer executable instructions for the blockchain based data storage device, and the one or more programs configured to be executed by the one or more processors include computer executable instructions for:
receiving access process data corresponding to access operation of a service page of a target service submitted by a server;
detecting the access process data by calling an intelligent contract deployed by the block chain nodes, and archiving the access process data under the condition of detecting that the access process data contains a service completion mark of the target service;
and acquiring a data set obtained after the intelligent contract is filed, and performing uplink processing on the data set.
Optionally, the archiving the access process data includes:
archiving the access process data according to the user identification contained in the access process data to obtain an intermediate data set corresponding to each user identification;
extracting key data contained in the intermediate data set to form a key data set;
correspondingly, the uplink processing on the data set includes:
uploading the key data set to the blockchain.
Optionally, a second intelligent contract is deployed at the block chain node;
accordingly, the computer executable instructions, when executed, further comprise:
receiving a reference data set of a service user of the target service submitted by the server;
reading a key data set of the business user from the blockchain;
calling the second intelligent contract to check the reference data set, and assembling the reference data set and the key data set into a target data set under the condition that the check is passed;
and acquiring the target data set assembled and obtained by the second intelligent contract and sending the target data set to the server.
Optionally, the uplink processing on the data set includes:
carrying out hash processing on the access data set corresponding to each user identifier by adopting a hash algorithm to obtain a hash character string corresponding to each user identifier;
and uploading the hash character strings corresponding to the user identifications to the block chain.
Optionally, in the process of executing the computer executable instructions, the method further includes:
receiving a data verification request of a service user of the target service submitted by the server;
reading the hash character string of the service user from the block chain based on the user identification of the service user carried in the data verification request;
and converting the hash character string into a second target data set and sending the second target data set to the server.
The data storage device provided by the specification comprises the following embodiments:
corresponding to the above-described data storage method, based on the same technical concept, one or more embodiments of the present specification further provide a data storage device, where the data storage device is configured to perform the above-described data storage method, and fig. 18 is a schematic structural diagram of a data storage device provided in one or more embodiments of the present specification.
The embodiment provides a data storage device, which includes:
as shown in fig. 18, the data storage device may have a large difference due to different configurations or performances, and may include one or more processors 1801 and a memory 1802, and the memory 1802 may store one or more stored applications or data. Memory 1802 may be, among other things, transient storage or persistent storage. The application programs stored in memory 1802 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a data storage device. Still further, the processor 1801 may be disposed in communication with the memory 1802 for executing a series of computer-executable instructions within the memory 1802 on the data storage device. The data storage device may also include one or more power supplies 1803, one or more wired or wireless network interfaces 1804, one or more input-output interfaces 1805, one or more keyboards 1806, etc.
In one particular embodiment, a data storage device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the data storage device, and configured for execution by one or more processors the one or more programs include computer-executable instructions for:
receiving a long connection establishment request sent by a client;
returning a connection establishment response responding to the long connection establishment request to the client;
receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
submitting the access procedure data to a block link point.
Optionally, in the process of executing the computer executable instructions, the method further includes:
detecting whether the access process data contains a service completion mark or not;
if so, sending a call ending instruction of the process recording interface to the client;
archiving the user identification contained in the access process data according to the user identification to obtain an intermediate data set corresponding to each user identification;
and extracting non-key data contained in the intermediate data set to form a reference data set and storing the reference data set in a cloud storage space.
Optionally, in the process of executing the computer executable instructions, the method further includes:
under the condition that a data verification request of a service user of the target service is obtained, reading a reference data set of the service user from the cloud storage space;
submitting a reference data set of the service user to the block link point;
and receiving a target data set obtained by assembling the reference data set and the key data set sent by the block chain node.
Optionally, the long connection includes a WebSocket connection established based on a WebSocket protocol;
correspondingly, the receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection includes:
receiving a frame sequence sent by the client through the WebSocket connection;
and assembling the frame sequence to obtain page element data of a service page, event data of a page event triggered by an access operation and page updating data of an updated service page obtained after the page event is executed.
Optionally, in the process of executing the computer executable instructions, the method further includes:
submitting a data verification request of a service user of the target service to the block link node;
and receiving a second target data set of the service user sent by the block chain node.
Optionally, the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
The second data recording apparatus embodiment provided in this specification is as follows:
in correspondence to the second data recording method described above, based on the same technical concept, one or more embodiments of the present specification further provide a second data recording apparatus for performing the data recording method provided above, and fig. 19 is a schematic structural diagram of the second data recording apparatus provided in one or more embodiments of the present specification.
The present embodiment provides a data recording apparatus, including:
as shown in fig. 19, the data recording device may have a relatively large difference due to different configurations or performances, and may include one or more processors 1901 and a memory 1902, where one or more stored applications or data may be stored in the memory 1902. Memory 1902 may be, for example, transient storage or persistent storage. The application programs stored in memory 1902 may include one or more modules (not shown), each of which may include a series of computer-executable instructions in a data recording device. Still further, the processor 1901 may be configured to communicate with the memory 1902 to execute a series of computer-executable instructions in the memory 1902 on a data recording device. The data recording apparatus may also include one or more power supplies 1903, one or more wired or wireless network interfaces 1904, one or more input-output interfaces 1905, one or more keyboards 1906, and the like.
In a particular embodiment, a data recording apparatus includes a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs may include one or more modules, and each module may include a series of computer-executable instructions for the data recording apparatus, and configured for execution by one or more processors the one or more programs include computer-executable instructions for:
acquiring an access request of a target service;
initializing a service page of the target service based on the access request;
sending a long connection establishment request to a server;
receiving a connection establishment response returned by the server;
calling a process recording interface triggered in the initialization process to record access process data corresponding to the access operation of the service page;
sending the access procedure data over a long connection established with the server.
Optionally, the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
Optionally, in the process of executing the computer executable instructions, the method further includes:
detecting whether a service completion event configured by a second service page of a second service stage of the target service is triggered;
and if so, marking the access process data to obtain the access process data carrying the service completion mark of the target service.
Optionally, in the process of executing the computer executable instructions, the method further includes:
receiving a call ending instruction sent by the server;
and ending the calling of the process recording interface based on the calling ending instruction.
Optionally, the recording access process data corresponding to the access operation of the service page based on the process record interface includes:
reading page element data of the displayed business page;
recording event data of a page event triggered by access operation aiming at the displayed service page;
recording page updating data of an updating service page obtained after the page event is executed;
and determining the page element data, the event data and the page updating data as access process data corresponding to the access operation.
Optionally, the long connection includes a WebSocket connection established based on a WebSocket protocol;
correspondingly, the sending the access process data to the server through the long connection includes:
segmenting the page element data, the event data, and the page update data into a sequence of frames;
and sending the frame sequence to the server through the WebSocket connection.
An embodiment of a storage medium provided in this specification is as follows:
in correspondence to the above-described data recording method, based on the same technical idea, one or more embodiments of the present specification further provide a storage medium.
The storage medium provided in this embodiment is used to store computer-executable instructions, and when executed, the computer-executable instructions implement the following processes:
acquiring an access request of a target service;
initializing a service page of the target service based on the access request;
under the condition that the triggering interface is called in the initialization process, a process recording interface is called and long connection with a server is established;
recording access process data corresponding to the access operation of the business page based on the process recording interface;
and sending the access process data to the server through the long connection.
Optionally, the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
Optionally, the computer executable instructions, when executed, further implement the following process:
detecting whether a service completion event configured by a second service page of a second service stage of the target service is triggered;
and if so, marking the access process data to obtain the access process data carrying the service completion mark of the target service.
Optionally, the computer executable instructions, when executed, further implement the following process:
receiving a call ending instruction sent by the server;
and ending the calling of the process recording interface based on the calling ending instruction.
Optionally, the establishing of the long connection with the server includes:
sending a WebSocket connection establishment request to the server;
and receiving a building response of the building request of the WebSocket connection returned by the server, wherein the building response establishes the WebSocket connection with the server after being received.
Optionally, the recording access process data corresponding to the access operation of the service page based on the process record interface includes:
reading page element data of the displayed business page;
recording event data of a page event triggered by access operation aiming at the displayed service page;
recording page updating data of an updating service page obtained after the page event is executed;
and determining the page element data, the event data and the page updating data as access process data corresponding to the access operation.
Optionally, the sending the access process data to the server through the long connection includes:
segmenting the page element data, the event data, and the page update data into a sequence of frames;
and sending the frame sequence to the server through the WebSocket connection.
It should be noted that the embodiment of the storage medium in this specification and the embodiment of the data recording method in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the foregoing corresponding method, and repeated details are not described here.
The second storage medium example provided in this specification is as follows:
in correspondence to the above-described data storage method, based on the same technical concept, one or more embodiments of the present specification further provide a second storage medium.
The storage medium provided in this embodiment is used to store computer-executable instructions, and when executed, the computer-executable instructions implement the following processes:
responding to a client and establishing a long connection with the client;
receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
detecting whether the target service is successfully executed based on the access process data;
and if so, archiving and storing the access process data.
Optionally, after the access process data flow corresponding to the access operation of the service page of the target service sent by the client through the long connection is executed and before the target service is detected whether to be executed successfully based on the access process data, the computer-executable instructions further implement the following process when executed:
and storing the access process data.
Optionally, the detecting whether the target service is successfully executed based on the access process data includes:
detecting whether the target service is successfully executed by detecting whether a service completion flag is included in the access process data;
accordingly, the computer-executable instructions, when executed, further implement the following:
and deleting the stored access process data, and sending a call ending instruction of the process recording interface to the client.
Optionally, if the result obtained after detecting whether the target service is executed by the successfully executed process based on the access process data is negative, the computer-executable instructions further implement the following process when executed:
detecting whether the access process data stored in a preset time range carries the service completion mark or not;
and if not, deleting the stored access process data, and sending a call ending instruction of the process recording interface to the client.
Optionally, the archiving and storing the access process data includes:
archiving the user identification contained in the access process data according to the user identification to obtain a data set corresponding to each user identification;
and storing the data set to a cloud storage space.
Optionally, the computer executable instructions, when executed, further implement the following process:
carrying out hash processing on the access data set corresponding to each user identifier by adopting a hash algorithm to obtain a hash character string corresponding to each user identifier;
and uploading the hash character strings corresponding to the user identifications to the block chain.
Optionally, after the hash character string corresponding to each user identifier is uploaded to the blockchain process and executed, the computer-executable instruction further implements the following process when executed:
acquiring a data verification request of a service user of the target service;
reading a hash character string corresponding to the user identification from the block chain based on the user identification of the service user carried in the data verification request;
reading a data set corresponding to the user identification stored in the cloud storage space;
performing hash processing on the read data set by using the hash algorithm to obtain a character string to be verified;
and comparing the character string to be checked with the hash character string corresponding to the user identification, and determining the data checking result of the service user according to the comparison result.
Optionally, the responding to the client and establishing the long connection with the client includes:
receiving a WebSocket connection establishment request sent by the client;
sending a building response of the building request of the WebSocket connection to the client; and after the establishment response is sent to the client, establishing WebSocket connection with the client.
Optionally, the receiving access process data corresponding to an access operation of a service page of a target service sent by the client through the long connection includes:
receiving a frame sequence sent by the client through the WebSocket connection;
and assembling the frame sequence to obtain page element data of a service page, event data of a page event triggered by an access operation and page updating data of an updated service page obtained after the page event is executed.
It should be noted that the embodiment of the storage medium in this specification and the embodiment of the data storage method in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the foregoing corresponding method, and repeated details are not described here.
The third storage medium embodiment provided in this specification is as follows:
on the basis of the same technical concept, corresponding to the above-described data storage method based on a block chain, one or more embodiments of the present specification further provide a third storage medium.
The storage medium provided in this embodiment is used to store computer-executable instructions, and when executed, the computer-executable instructions implement the following processes:
receiving access process data corresponding to access operation of a service page of a target service submitted by a server;
detecting the access process data by calling an intelligent contract deployed by the block chain nodes, and archiving the access process data under the condition of detecting that the access process data contains a service completion mark of the target service;
and acquiring a data set obtained after the intelligent contract is filed, and performing uplink processing on the data set.
Optionally, the archiving the access process data includes:
archiving the access process data according to the user identification contained in the access process data to obtain an intermediate data set corresponding to each user identification;
extracting key data contained in the intermediate data set to form a key data set;
correspondingly, the uplink processing on the data set includes:
uploading the key data set to the blockchain.
Optionally, a second intelligent contract is deployed at the block chain node;
correspondingly, the data storage method based on the block chain further includes:
receiving a reference data set of a service user of the target service submitted by the server;
reading a key data set of the business user from the blockchain;
calling the second intelligent contract to check the reference data set, and assembling the reference data set and the key data set into a target data set under the condition that the check is passed;
and acquiring the target data set assembled and obtained by the second intelligent contract and sending the target data set to the server.
Optionally, the uplink processing on the data set includes:
carrying out hash processing on the access data set corresponding to each user identifier by adopting a hash algorithm to obtain a hash character string corresponding to each user identifier;
and uploading the hash character strings corresponding to the user identifications to the block chain.
Optionally, the computer executable instructions, when executed, further implement the following process:
receiving a data verification request of a service user of the target service submitted by the server;
reading the hash character string of the service user from the block chain based on the user identification of the service user carried in the data verification request;
and converting the hash character string into a second target data set and sending the second target data set to the server.
It should be noted that the embodiment of the storage medium in this specification and the embodiment of the data storage method based on the block chain in this specification are based on the same inventive concept, and therefore, specific implementation of this embodiment may refer to implementation of the foregoing corresponding method, and repeated parts are not described again.
The fourth storage medium example provided in this specification is as follows:
in correspondence to the above-described data processing method, based on the same technical concept, one or more embodiments of the present specification further provide a fourth storage medium.
The storage medium provided in this embodiment is used to store computer-executable instructions, and when executed, the computer-executable instructions implement the following processes:
receiving a long connection establishment request sent by a client;
returning a connection establishment response responding to the long connection establishment request to the client;
receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
submitting the access procedure data to a block link point.
Optionally, the computer executable instructions, when executed, further implement the following process:
detecting whether the access process data contains a service completion mark or not;
if so, sending a call ending instruction of the process recording interface to the client;
archiving the user identification contained in the access process data according to the user identification to obtain an intermediate data set corresponding to each user identification;
and extracting non-key data contained in the intermediate data set to form a reference data set and storing the reference data set in a cloud storage space.
Optionally, the computer executable instructions, when executed, further implement the following process:
under the condition that a data verification request of a service user of the target service is obtained, reading a reference data set of the service user from the cloud storage space;
submitting a reference data set of the service user to the block link point;
and receiving a target data set obtained by assembling the reference data set and the key data set sent by the block chain node.
Optionally, the long connection includes a WebSocket connection established based on a WebSocket protocol;
correspondingly, the receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection includes:
receiving a frame sequence sent by the client through the WebSocket connection;
and assembling the frame sequence to obtain page element data of a service page, event data of a page event triggered by an access operation and page updating data of an updated service page obtained after the page event is executed.
Optionally, the computer executable instructions, when executed, further implement the following process:
submitting a data verification request of a service user of the target service to the block link node;
and receiving a second target data set of the service user sent by the block chain node.
Optionally, the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
It should be noted that the embodiment related to the storage medium in this specification and the embodiment related to the data processing method in this specification are based on the same inventive concept, and therefore, specific implementation of this embodiment may refer to implementation of the foregoing corresponding method, and repeated details are not described here.
The fifth storage medium example provided in this specification is as follows:
on the basis of the same technical concept corresponding to the second data recording method described above, one or more embodiments of the present specification further provide a fifth storage medium.
The storage medium provided in this embodiment is used to store computer-executable instructions, and when executed, the computer-executable instructions implement the following processes:
acquiring an access request of a target service;
initializing a service page of the target service based on the access request;
sending a long connection establishment request to a server;
receiving a connection establishment response returned by the server;
calling a process recording interface triggered in the initialization process to record access process data corresponding to the access operation of the service page;
sending the access procedure data over a long connection established with the server.
Optionally, the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
Optionally, the computer executable instructions, when executed, further implement the following process:
detecting whether a service completion event configured by a second service page of a second service stage of the target service is triggered;
and if so, marking the access process data to obtain the access process data carrying the service completion mark of the target service.
Optionally, the computer executable instructions, when executed, further implement the following process:
receiving a call ending instruction sent by the server;
and ending the calling of the process recording interface based on the calling ending instruction.
Optionally, the recording access process data corresponding to the access operation of the service page based on the process record interface includes:
reading page element data of the displayed business page;
recording event data of a page event triggered by access operation aiming at the displayed service page;
recording page updating data of an updating service page obtained after the page event is executed;
and determining the page element data, the event data and the page updating data as access process data corresponding to the access operation.
Optionally, the long connection includes a WebSocket connection established based on a WebSocket protocol;
correspondingly, the sending the access process data to the server through the long connection includes:
segmenting the page element data, the event data, and the page update data into a sequence of frames;
and sending the frame sequence to the server through the WebSocket connection.
It should be noted that the embodiment of the storage medium in this specification and the embodiment of the data recording method in this specification are based on the same inventive concept, and therefore, for specific implementation of this embodiment, reference may be made to implementation of the foregoing corresponding method, and repeated details are not described here.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the 30 s of the 20 th century, improvements in a technology could clearly be distinguished between improvements in hardware (e.g., improvements in circuit structures such as diodes, transistors, switches, etc.) and improvements in software (improvements in process flow). However, as technology advances, many of today's process flow improvements have been seen as direct improvements in hardware circuit architecture. Designers almost always obtain the corresponding hardware circuit structure by programming an improved method flow into the hardware circuit. Thus, it cannot be said that an improvement in the process flow cannot be realized by hardware physical modules. For example, a Programmable Logic Device (PLD), such as a Field Programmable Gate Array (FPGA), is an integrated circuit whose Logic functions are determined by programming the Device by a user. A digital system is "integrated" on a PLD by the designer's own programming without requiring the chip manufacturer to design and fabricate application-specific integrated circuit chips. Furthermore, nowadays, instead of manually making an Integrated Circuit chip, such Programming is often implemented by "logic compiler" software, which is similar to a software compiler used in program development and writing, but the original code before compiling is also written by a specific Programming Language, which is called Hardware Description Language (HDL), and HDL is not only one but many, such as abel (advanced Boolean Expression Language), ahdl (alternate Hardware Description Language), traffic, pl (core universal Programming Language), HDCal (jhdware Description Language), lang, Lola, HDL, laspam, hardward Description Language (vhr Description Language), vhal (Hardware Description Language), and vhigh-Language, which are currently used in most common. It will also be apparent to those skilled in the art that hardware circuitry that implements the logical method flows can be readily obtained by merely slightly programming the method flows into an integrated circuit using the hardware description languages described above.
The controller may be implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, an Application Specific Integrated Circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may thus be considered a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
The systems, devices, modules or units illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. One typical implementation device is a computer. In particular, the computer may be, for example, a personal computer, a laptop computer, a cellular telephone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in multiple software and/or hardware when implementing the embodiments of the present description.
One skilled in the art will recognize that one or more embodiments of the present description may be provided as a method, system, or computer program product. Accordingly, one or more embodiments of the present description may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the description may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The description has been presented with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the description. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
One or more embodiments of the present description may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. One or more embodiments of the specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the system embodiment, since it is substantially similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
The above description is only an example of this document and is not intended to limit this document. Various modifications and changes may occur to those skilled in the art from this document. Any modifications, equivalents, improvements, etc. which come within the spirit and principle of the disclosure are intended to be included within the scope of the claims of this document.

Claims (48)

1. A data recording method is applied to a client and comprises the following steps:
acquiring an access request of a target service;
initializing a service page of the target service based on the access request;
under the condition that the triggering interface is called in the initialization process, a process recording interface is called and long connection with a server is established;
recording access process data corresponding to the access operation of the business page based on the process recording interface;
and sending the access process data to the server through the long connection.
2. The data recording method according to claim 1, wherein the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
3. The data recording method according to claim 2, further comprising:
detecting whether a service completion event configured by a second service page of a second service stage of the target service is triggered;
and if so, marking the access process data to obtain the access process data carrying the service completion mark of the target service.
4. The data recording method according to claim 3, further comprising:
receiving a call ending instruction sent by the server;
and ending the calling of the process recording interface based on the calling ending instruction.
5. The data recording method of claim 1, said establishing a long connection with a server, comprising:
sending a WebSocket connection establishment request to the server;
and receiving a building response of the building request of the WebSocket connection returned by the server, wherein the building response establishes the WebSocket connection with the server after being received.
6. The data recording method according to claim 5, wherein the recording access process data corresponding to the access operation of the service page based on the process recording interface comprises:
reading page element data of the displayed business page;
recording event data of a page event triggered by access operation aiming at the displayed service page;
recording page updating data of an updating service page obtained after the page event is executed;
and determining the page element data, the event data and the page updating data as access process data corresponding to the access operation.
7. The data logging method of claim 6, the sending the access procedure data to the server over the long connection, comprising:
segmenting the page element data, the event data, and the page update data into a sequence of frames;
and sending the frame sequence to the server through the WebSocket connection.
8. A data storage method is applied to a server and comprises the following steps:
responding to a client and establishing a long connection with the client;
receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
detecting whether the target service is successfully executed based on the access process data;
and if so, archiving and storing the access process data.
9. The data storage method according to claim 8, wherein after the step of receiving the access process data corresponding to the access operation of the service page of the target service sent by the client via the long connection is executed and before the step of detecting whether the target service is successfully executed based on the access process data is executed, the method comprises:
and storing the access process data.
10. The data storage method of claim 9, said detecting whether the target transaction was successfully executed based on the access procedure data, comprising:
detecting whether the target service is successfully executed by detecting whether a service completion flag is included in the access process data;
correspondingly, the data storage method further comprises the following steps:
and deleting the stored access process data, and sending a call ending instruction of the process recording interface to the client.
11. The data storage method according to claim 10, if the result after the step of detecting whether the target service is successfully executed based on the access process data is no, performing the following operations:
detecting whether the access process data stored in a preset time range carries the service completion mark or not;
and if not, deleting the stored access process data, and sending a call ending instruction of the process recording interface to the client.
12. The data storage method of claim 8, the archival storage of the access procedure data comprising:
archiving the user identification contained in the access process data according to the user identification to obtain a data set corresponding to each user identification;
and storing the data set to a cloud storage space.
13. The data storage method of claim 12, further comprising:
carrying out hash processing on the access data set corresponding to each user identifier by adopting a hash algorithm to obtain a hash character string corresponding to each user identifier;
and uploading the hash character strings corresponding to the user identifications to the block chain.
14. The data storage method of claim 13, after the step of uploading the hash string corresponding to each user identifier to the blockchain is executed, further comprising:
acquiring a data verification request of a service user of the target service;
reading a hash character string corresponding to the user identification from the block chain based on the user identification of the service user carried in the data verification request;
reading a data set corresponding to the user identification stored in the cloud storage space;
performing hash processing on the read data set by using the hash algorithm to obtain a character string to be verified;
and comparing the character string to be checked with the hash character string corresponding to the user identification, and determining the data checking result of the service user according to the comparison result.
15. The data storage method of claim 8, said responding to a client and establishing a long connection with the client, comprising:
receiving a WebSocket connection establishment request sent by the client;
sending a building response of the building request of the WebSocket connection to the client; and after the establishment response is sent to the client, establishing WebSocket connection with the client.
16. The data storage method according to claim 15, wherein the receiving access process data corresponding to an access operation of a service page of a target service sent by the client via the long connection includes:
receiving a frame sequence sent by the client through the WebSocket connection;
and assembling the frame sequence to obtain page element data of a service page, event data of a page event triggered by an access operation and page updating data of an updated service page obtained after the page event is executed.
17. A data storage method based on a block chain is applied to block chain link points in the block chain and comprises the following steps:
receiving access process data corresponding to access operation of a service page of a target service submitted by a server;
detecting the access process data by calling an intelligent contract deployed by the block chain nodes, and archiving the access process data under the condition of detecting that the access process data contains a service completion mark of the target service;
and acquiring a data set obtained after the intelligent contract is filed, and performing uplink processing on the data set.
18. The blockchain-based data storage method of claim 17, wherein the archiving the access procedure data includes:
archiving the access process data according to the user identification contained in the access process data to obtain an intermediate data set corresponding to each user identification;
extracting key data contained in the intermediate data set to form a key data set;
correspondingly, the uplink processing on the data set includes:
uploading the key data set to the blockchain.
19. The blockchain-based data storage method of claim 18, the blockchain link points being deployed with a second intelligent contract;
correspondingly, the data storage method based on the block chain further includes:
receiving a reference data set of a service user of the target service submitted by the server;
reading a key data set of the business user from the blockchain;
calling the second intelligent contract to check the reference data set, and assembling the reference data set and the key data set into a target data set under the condition that the check is passed;
and acquiring the target data set assembled and obtained by the second intelligent contract and sending the target data set to the server.
20. The blockchain-based data storage method of claim 17, wherein the uplink processing of the data set includes:
carrying out hash processing on the access data set corresponding to each user identifier by adopting a hash algorithm to obtain a hash character string corresponding to each user identifier;
and uploading the hash character strings corresponding to the user identifications to the block chain.
21. The blockchain-based data storage method of claim 20, further comprising:
receiving a data verification request of a service user of the target service submitted by the server;
reading the hash character string of the service user from the block chain based on the user identification of the service user carried in the data verification request;
and converting the hash character string into a second target data set and sending the second target data set to the server.
22. A data processing method is applied to a server and comprises the following steps:
receiving a long connection establishment request sent by a client;
returning a connection establishment response responding to the long connection establishment request to the client;
receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
submitting the access procedure data to a block link point.
23. The data recording method of claim 22, further comprising:
detecting whether the access process data contains a service completion mark or not;
if so, sending a call ending instruction of the process recording interface to the client;
archiving the user identification contained in the access process data according to the user identification to obtain an intermediate data set corresponding to each user identification;
and extracting non-key data contained in the intermediate data set to form a reference data set and storing the reference data set in a cloud storage space.
24. The data recording method of claim 23, further comprising:
under the condition that a data verification request of a service user of the target service is obtained, reading a reference data set of the service user from the cloud storage space;
submitting a reference data set of the service user to the block link point;
and receiving a target data set obtained by assembling the reference data set and the key data set sent by the block chain node.
25. The data recording method of claim 22, wherein the long connection comprises a WebSocket connection established based on a WebSocket protocol;
correspondingly, the receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection includes:
receiving a frame sequence sent by the client through the WebSocket connection;
and assembling the frame sequence to obtain page element data of a service page, event data of a page event triggered by an access operation and page updating data of an updated service page obtained after the page event is executed.
26. The data recording method of claim 22, further comprising:
submitting a data verification request of a service user of the target service to the block link node;
and receiving a second target data set of the service user sent by the block chain node.
27. The data recording method according to claim 22, wherein the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
28. A data recording method is applied to a client and comprises the following steps:
acquiring an access request of a target service;
initializing a service page of the target service based on the access request;
sending a long connection establishment request to a server;
receiving a connection establishment response returned by the server;
calling a process recording interface triggered in the initialization process to record access process data corresponding to the access operation of the service page;
sending the access procedure data over a long connection established with the server.
29. The data recording method according to claim 28, wherein the service page of the target service includes a service phase page corresponding to at least one service phase of the target service;
the initialization script of the first service page of the first service stage of the target service comprises a calling function of the process recording interface, and if the calling function is executed in the execution process of the initialization script of the service page, the calling of the process recording interface is triggered.
30. The data recording method according to claim 28, further comprising:
detecting whether a service completion event configured by a second service page of a second service stage of the target service is triggered;
and if so, marking the access process data to obtain the access process data carrying the service completion mark of the target service.
31. The data recording method of claim 29, further comprising:
receiving a call ending instruction sent by the server;
and ending the calling of the process recording interface based on the calling ending instruction.
32. The data recording method of claim 28, wherein the recording access process data corresponding to the access operation of the service page based on the process recording interface comprises:
reading page element data of the displayed business page;
recording event data of a page event triggered by access operation aiming at the displayed service page;
recording page updating data of an updating service page obtained after the page event is executed;
and determining the page element data, the event data and the page updating data as access process data corresponding to the access operation.
33. The data recording method of claim 32, wherein the long connection comprises a WebSocket connection established based on a WebSocket protocol;
correspondingly, the sending the access process data to the server through the long connection includes:
segmenting the page element data, the event data, and the page update data into a sequence of frames;
and sending the frame sequence to the server through the WebSocket connection.
34. A data recording apparatus, operating at a client, comprising:
the access request acquisition module is configured to acquire an access request of a target service;
a service page initialization module configured to initialize a service page of the target service based on the access request;
the long connection establishing module is configured to call a process recording interface and establish long connection with a server under the condition that the triggering interface calling in the initialization process is detected;
the access process data recording module is configured to record access process data corresponding to the access operation of the business page based on the process recording interface;
an access procedure data sending module configured to send the access procedure data to the server over the long connection.
35. A data storage device, operating on a server, comprising:
a long connection establishment module configured to respond to a client and establish a long connection with the client;
the access process data receiving module is configured to receive access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
a target service execution detection module configured to detect whether the target service is successfully executed based on the access process data;
if yes, operating the archiving storage module; the archiving storage module is configured to archive and store the access process data.
36. A block chain based data storage device operating at block link points in a block chain, comprising:
the access process data receiving module is configured to receive access process data corresponding to the access operation of the service page of the target service submitted by the server;
the access process data detection module is configured to detect the access process data by calling an intelligent contract deployed by the block link point, and archive the access process data when detecting that the access process data contains a service completion mark of the target service;
and the data set uplink processing module is configured to acquire the data set obtained after the intelligent contract is subjected to archiving processing, and perform uplink processing on the data set.
37. A data processing apparatus, operating on a server, comprising:
the long connection establishment request receiving module is configured to receive a long connection establishment request sent by a client;
a connection establishment response returning module configured to return a connection establishment response responding to the long connection establishment request to the client;
the access process data receiving module is configured to receive access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
an access procedure data submission module configured to submit the access procedure data to a block link point.
38. A data recording apparatus, operating at a client, comprising:
the access request acquisition module is configured to acquire an access request of a target service;
a service page initialization module configured to initialize a service page of the target service based on the access request;
a long connection establishment request sending module configured to send a long connection establishment request to a server;
a connection establishment response receiving module configured to receive a connection establishment response returned by the server;
the access process data recording module is configured to call a process recording interface triggered in the initialization process to record access process data corresponding to the access operation of the service page;
an access procedure data sending module configured to send the access procedure data over a long connection established with the server.
39. A data recording apparatus comprising:
a processor; and the number of the first and second groups,
a memory configured to store computer-executable instructions that, when executed, cause the processor to:
acquiring an access request of a target service;
initializing a service page of the target service based on the access request;
under the condition that the triggering interface is called in the initialization process, a process recording interface is called and long connection with a server is established;
recording access process data corresponding to the access operation of the business page based on the process recording interface;
and sending the access process data to the server through the long connection.
40. A data storage device, comprising:
a processor; and the number of the first and second groups,
a memory configured to store computer-executable instructions that, when executed, cause the processor to:
responding to a client and establishing a long connection with the client;
receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
detecting whether the target service is successfully executed based on the access process data;
and if so, archiving and storing the access process data.
41. A blockchain-based data storage device, comprising:
a processor; and the number of the first and second groups,
a memory configured to store computer-executable instructions that, when executed, cause the processor to:
receiving access process data corresponding to access operation of a service page of a target service submitted by a server;
detecting the access process data by calling an intelligent contract deployed by the block chain nodes, and archiving the access process data under the condition of detecting that the access process data contains a service completion mark of the target service;
and acquiring a data set obtained after the intelligent contract is filed, and performing uplink processing on the data set.
42. A data processing apparatus comprising:
a processor; and the number of the first and second groups,
a memory configured to store computer-executable instructions that, when executed, cause the processor to:
receiving a long connection establishment request sent by a client;
returning a connection establishment response responding to the long connection establishment request to the client;
receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
submitting the access procedure data to a block link point.
43. A data recording apparatus comprising:
a processor; and the number of the first and second groups,
a memory configured to store computer-executable instructions that, when executed, cause the processor to:
acquiring an access request of a target service;
initializing a service page of the target service based on the access request;
sending a long connection establishment request to a server;
receiving a connection establishment response returned by the server;
calling a process recording interface triggered in the initialization process to record access process data corresponding to the access operation of the service page;
sending the access procedure data over a long connection established with the server.
44. A storage medium storing computer-executable instructions that when executed implement the following:
acquiring an access request of a target service;
initializing a service page of the target service based on the access request;
under the condition that the triggering interface is called in the initialization process, a process recording interface is called and long connection with a server is established;
recording access process data corresponding to the access operation of the business page based on the process recording interface;
and sending the access process data to the server through the long connection.
45. A storage medium storing computer-executable instructions that when executed implement the following:
responding to a client and establishing a long connection with the client;
receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
detecting whether the target service is successfully executed based on the access process data;
and if so, archiving and storing the access process data.
46. A storage medium storing computer-executable instructions that when executed implement the following:
receiving access process data corresponding to access operation of a service page of a target service submitted by a server;
detecting the access process data by calling an intelligent contract deployed by the block chain nodes, and archiving the access process data under the condition of detecting that the access process data contains a service completion mark of the target service;
and acquiring a data set obtained after the intelligent contract is filed, and performing uplink processing on the data set.
47. A storage medium storing computer-executable instructions that when executed implement the following:
receiving a long connection establishment request sent by a client;
returning a connection establishment response responding to the long connection establishment request to the client;
receiving access process data corresponding to the access operation of the service page of the target service sent by the client through the long connection; the access process data is obtained by a process recording interface aiming at the business page record of the target business aimed by the access operation;
submitting the access procedure data to a block link point.
48. A storage medium storing computer-executable instructions that when executed implement the following:
acquiring an access request of a target service;
initializing a service page of the target service based on the access request;
sending a long connection establishment request to a server;
receiving a connection establishment response returned by the server;
calling a process recording interface triggered in the initialization process to record access process data corresponding to the access operation of the service page;
sending the access procedure data over a long connection established with the server.
CN202010869913.2A 2020-08-26 2020-08-26 Data recording method and device, and data storage method and device Active CN112039971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010869913.2A CN112039971B (en) 2020-08-26 2020-08-26 Data recording method and device, and data storage method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010869913.2A CN112039971B (en) 2020-08-26 2020-08-26 Data recording method and device, and data storage method and device

Publications (2)

Publication Number Publication Date
CN112039971A true CN112039971A (en) 2020-12-04
CN112039971B CN112039971B (en) 2023-11-24

Family

ID=73581475

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010869913.2A Active CN112039971B (en) 2020-08-26 2020-08-26 Data recording method and device, and data storage method and device

Country Status (1)

Country Link
CN (1) CN112039971B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115994172A (en) * 2022-12-09 2023-04-21 华青融天(北京)软件股份有限公司 Method, device, equipment and medium for determining service access relation

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040064443A1 (en) * 2002-09-30 2004-04-01 David Taniguchi System and method for performing click stream analysis
JP2014063447A (en) * 2012-09-24 2014-04-10 Hitachi Solutions Ltd Business document processing device, business document processing method and business document processing program
WO2017071356A1 (en) * 2015-10-26 2017-05-04 广州视睿电子科技有限公司 Client-based network data synchronization method, apparatus and system
CN107784065A (en) * 2017-08-17 2018-03-09 平安壹钱包电子商务有限公司 Business datum tracking, device, computer equipment and storage medium
CN108268364A (en) * 2018-01-19 2018-07-10 百度在线网络技术(北京)有限公司 Anomalous event back method, device and equipment
CN108804679A (en) * 2018-06-12 2018-11-13 云南电网有限责任公司信息中心 A kind of operation system user's operation monitoring data method for visualizing
CN109783335A (en) * 2018-12-14 2019-05-21 平安科技(深圳)有限公司 User's operation records restoring method, device, equipment and readable storage medium storing program for executing
CN111241157A (en) * 2020-01-07 2020-06-05 支付宝(杭州)信息技术有限公司 Operation behavior backtracking method and device and electronic equipment
CN111552872A (en) * 2020-04-15 2020-08-18 携程旅游网络技术(上海)有限公司 Method and system for restoring user behavior, electronic device and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040064443A1 (en) * 2002-09-30 2004-04-01 David Taniguchi System and method for performing click stream analysis
JP2014063447A (en) * 2012-09-24 2014-04-10 Hitachi Solutions Ltd Business document processing device, business document processing method and business document processing program
WO2017071356A1 (en) * 2015-10-26 2017-05-04 广州视睿电子科技有限公司 Client-based network data synchronization method, apparatus and system
CN107784065A (en) * 2017-08-17 2018-03-09 平安壹钱包电子商务有限公司 Business datum tracking, device, computer equipment and storage medium
CN108268364A (en) * 2018-01-19 2018-07-10 百度在线网络技术(北京)有限公司 Anomalous event back method, device and equipment
CN108804679A (en) * 2018-06-12 2018-11-13 云南电网有限责任公司信息中心 A kind of operation system user's operation monitoring data method for visualizing
CN109783335A (en) * 2018-12-14 2019-05-21 平安科技(深圳)有限公司 User's operation records restoring method, device, equipment and readable storage medium storing program for executing
CN111241157A (en) * 2020-01-07 2020-06-05 支付宝(杭州)信息技术有限公司 Operation behavior backtracking method and device and electronic equipment
CN111552872A (en) * 2020-04-15 2020-08-18 携程旅游网络技术(上海)有限公司 Method and system for restoring user behavior, electronic device and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨永峰等: "COMOS系统基于SSLVPN方式的网络安全部署", 《通讯世界》, no. 01 *
霍晓钢: "由Web日志确定页面访问时间的方法研究", 《计算机工程与设计》, no. 10 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115994172A (en) * 2022-12-09 2023-04-21 华青融天(北京)软件股份有限公司 Method, device, equipment and medium for determining service access relation

Also Published As

Publication number Publication date
CN112039971B (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN109614823B (en) Data processing method, device and equipment
CN107196788B (en) Method and device for processing buried point data, server and client
KR20190098752A (en) Blockchain based data processing method and device
CN112241506B (en) User behavior backtracking method, device, equipment and system
CN111158597A (en) Metadata reading method and device, electronic equipment and storage medium
CN111859470A (en) Business data chaining method and device
CN111259282B (en) URL (Uniform resource locator) duplication removing method, device, electronic equipment and computer readable storage medium
CN111090582A (en) Error code positioning method and device, storage medium and electronic equipment
CN108616361B (en) Method and device for identifying uniqueness of equipment
CN112016028A (en) Information recording method and device, and information storage method, device and system
CN114528269A (en) Method, electronic device and computer program product for processing data
CN112039971B (en) Data recording method and device, and data storage method and device
US10031745B2 (en) System and method for automatic API candidate generation
CN108989383B (en) Data processing method and client
CN113408254A (en) Page form information filling method, device, equipment and readable medium
CN110602163B (en) File uploading method and device
CN112231517A (en) Data query method and device
CN109657440B (en) Block chain-based biological characteristic information processing method and device and terminal equipment
CN112202894A (en) Information acquisition method and device and data processing method and device
CN108509059B (en) Information processing method, electronic equipment and computer storage medium
CN112181798B (en) Data recording method and device
CN110751003B (en) Method and equipment for acquiring target data information of two-dimension code
CN109600418B (en) Method, device, equipment and system for tracking application access
JP6178119B2 (en) Data migration system and data migration method
CN112199731A (en) Data processing method, device and 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
TA01 Transfer of patent application right

Effective date of registration: 20211210

Address after: Room 610, floor 6, No. 618, Wai Road, Huangpu District, Shanghai 200010

Applicant after: Ant Shengxin (Shanghai) Information Technology Co.,Ltd.

Address before: 310000 801-11 section B, 8th floor, 556 Xixi Road, Xihu District, Hangzhou City, Zhejiang Province

Applicant before: Alipay (Hangzhou) Information Technology Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant