CN112463414B - Multi-client data interaction method and device, electronic equipment and storage medium - Google Patents

Multi-client data interaction method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112463414B
CN112463414B CN202011466875.2A CN202011466875A CN112463414B CN 112463414 B CN112463414 B CN 112463414B CN 202011466875 A CN202011466875 A CN 202011466875A CN 112463414 B CN112463414 B CN 112463414B
Authority
CN
China
Prior art keywords
client
data
information
request
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011466875.2A
Other languages
Chinese (zh)
Other versions
CN112463414A (en
Inventor
邢喜彬
刘海东
王嵘
杨子豪
龙喜洋
高宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Merchants Finance Technology Co Ltd
Original Assignee
China Merchants Finance 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 China Merchants Finance Technology Co Ltd filed Critical China Merchants Finance Technology Co Ltd
Priority to CN202011466875.2A priority Critical patent/CN112463414B/en
Publication of CN112463414A publication Critical patent/CN112463414A/en
Application granted granted Critical
Publication of CN112463414B publication Critical patent/CN112463414B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention relates to the technology of the Internet of things, and discloses a data interaction method of multiple clients, which comprises the following steps: receiving a connection instruction, analyzing the connection instruction by using a pre-constructed instruction protocol analysis framework to obtain client information of a first client, packaging the client information to obtain client packaging information, generating a jump address according to the client packaging information, connecting a second client by using the jump address, receiving a data request instruction when the connection is successful, acquiring corresponding request data from the second client by using the data request instruction, and if the request data needs to be subjected to filtering operation, executing filtering operation on the request data to obtain filtering data, and sending the filtering data or the request data back to the first client. The invention also discloses a data interaction device of the multiple clients, electronic equipment and a storage medium. The invention can solve the problem of low data interaction efficiency caused by excessive consumption of computing resources during data interaction.

Description

Multi-client data interaction method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of internet of things, and in particular, to a method and apparatus for data interaction between multiple clients, an electronic device, and a computer readable storage medium.
Background
The method mainly comprises the steps of converting an input account of each client into a format form meeting the requirements of a target client through an account conversion system, connecting the clients through the converted input account, and further realizing data interaction among the clients. Although the method can realize connection and data interaction of multiple clients, excessive human resources and computing resources are required to be consumed in development, maintenance and the like of an account conversion system, so that the connection efficiency is low and the effect is not high.
Disclosure of Invention
The invention provides a data interaction method, a device, electronic equipment and a computer readable storage medium of multiple clients, and mainly aims to solve the problem that account conversion occupies computational resources when account conversion among the clients is needed before data interaction among the multiple clients, so that the data interaction is caused.
In order to achieve the above object, the present invention provides a data interaction method for multiple clients, including:
receiving a connection instruction sent by a first client to a second client, analyzing the connection instruction by utilizing a pre-constructed instruction protocol analysis framework to obtain client information of the first client, and packaging the client information to obtain client packaging information;
generating a jump address according to the client encapsulation information;
connecting the second client by using the jump address, and receiving a data request instruction of the first client when the connection is successful;
acquiring corresponding request data from the second client by utilizing a data request instruction;
judging whether the request data needs to be subjected to filtering operation or not, and if the request data needs to be subjected to filtering operation, executing filtering operation on the request data to obtain filtering data;
and sending the filtered data or the request data back to the first client.
Optionally, the receiving the connection instruction sent by the first client to the second client includes:
receiving an authorization instruction of a user to the first client, and acquiring authorization information from the first client according to the authorization instruction;
and applying for a token from a pre-built authentication server by using the authorization information, and building the connection instruction based on the token.
Optionally, the obtaining authorization information from the first client according to the authorization instruction includes:
verifying whether the cookie in the first client is consistent with the cookie in the APP pre-bound by the first client by utilizing the authorization instruction;
if the cookie in the first client is inconsistent with the cookie in the APP pre-bound by the first client, the acquisition of the authorization information fails, and the first client and the APP are re-bound;
and if the cookie in the first client is consistent with the cookie in the APP pre-bound by the first client, acquiring the authorization information from the APP pre-bound by the first client.
Optionally, the verifying, by using the authorization instruction, whether the cookie in the first client is consistent with the cookie in the APP pre-bound by the first client includes:
transmitting a binding request to the APP by using the first client, and judging whether the APP returns a response request corresponding to the binding request;
if the APP returns the response request, a cookie is analyzed from the response request, and the cookie is stored in the first client, so that the binding of the first client and the APP is completed.
Optionally, the encapsulating the client information to obtain client encapsulation information includes:
and encapsulating the client information by using a private function of a programming language to obtain the client encapsulation information.
Optionally, the generating a jump address according to the client encapsulation information includes:
designating a pre-constructed connection server according to the client packaging information;
modifying the IP address of the connection server into a jump prefix;
modifying the service domain name of the second client into a jump suffix;
and extracting the URL of the connection instruction, and combining the jump prefix, the URL and the jump suffix to obtain the jump address.
Optionally, the connecting the second client with the jump address includes:
accessing the second client according to the jump address by using a connection server;
and when the access is successful, extracting user information from the client packaging information, and logging in the second client by using the user information.
In order to solve the above problems, the present invention further provides a data interaction device for multiple clients, the device comprising:
the client information packaging module is used for receiving a connection instruction sent by a first client to a second client, analyzing the connection instruction by utilizing a pre-constructed instruction protocol analysis frame to obtain client information of the first client, and packaging the client information to obtain client packaging information;
the data request instruction generation module is used for generating a jump address according to the client encapsulation information, connecting the second client by using the jump address, and receiving the data request instruction of the first client when the connection is successful;
the data acquisition module is used for acquiring corresponding request data from the second client by utilizing a data request instruction;
and the data transmission module is used for judging whether the request data needs to be subjected to filtering operation or not, if so, executing the filtering operation on the request data to obtain the filtering data, and sending the filtering data or the request data back to the first client.
In order to solve the above-mentioned problems, the present invention also provides an electronic apparatus including:
a memory storing at least one instruction; and
And the processor executes the instructions stored in the memory to realize the multi-client data interaction method.
In order to solve the above-mentioned problems, the present invention also provides a computer-readable storage medium including a storage data area storing created data and a storage program area storing a computer program; the computer program, when executed by a processor, implements the multi-client data interaction method of any one of the above.
According to the embodiment of the invention, the client information of the first client is encapsulated into the client encapsulation information through the connection instruction sent to the second client by the first client, the jump address is generated by utilizing the client encapsulation information, and the connection of the second client is tried through the jump address, so that compared with the prior art, the method of converting the input account of each client into the format form required by the destination client through the account conversion system, and further, the method of connecting the clients through the converted input account is adopted, the account conversion system is abandoned, the calculation resources of the account conversion system are saved, and further, the embodiment of the invention performs the filtering operation on the request data to obtain the filtered data, the data quantity is further reduced by the filtering operation, and the resource consumption of data interaction is saved. Therefore, the data interaction method, the data interaction device and the computer readable storage medium of the multi-client can solve the problem that account conversion occupies computing resources when the data interaction is caused by account conversion between the clients before the data interaction between the multi-client.
Drawings
Fig. 1 is a flow chart of a data interaction method of multiple clients according to an embodiment of the present invention;
fig. 2 is a detailed flowchart of S2 in the data interaction method of multiple clients according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of a multi-client data interaction device according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an internal structure of an electronic device for implementing a data interaction method of multiple clients according to an embodiment of the present invention;
the achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the application provides a data interaction method of multiple clients, and an execution subject of the data interaction method of the multiple clients includes, but is not limited to, at least one of a server, a terminal and the like capable of being configured to execute the electronic equipment of the method provided by the embodiment of the application. In other words, the multi-client data interaction method may be performed by software or hardware installed in a terminal device or a server device, and the software may be a blockchain platform. The service end includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like.
Referring to fig. 1, a flow chart of a data interaction method of multiple clients according to an embodiment of the invention is shown. In this embodiment, the data interaction method of multiple clients includes:
s1, receiving a connection instruction sent by a first client to a second client, analyzing the connection instruction by utilizing a pre-constructed instruction protocol analysis frame to obtain client information of the first client, and packaging the client information to obtain client packaging information.
In the embodiment of the invention, the first client and the second client need to execute the data interaction function based on the demands of business transaction and the like, and the first client and the second client need to be connected on the premise of executing the data interaction. If the first client is a financial APP facing a user of a bank, and the second client is a background system supporting banking, when the financial APP needs to request data from the background system, a connection instruction needs to be sent first to achieve the purpose of connecting to the background system.
In detail, the connection instruction is a connection instruction constructed based on an HTTP protocol, which is a request-response protocol.
Further, the receiving the connection instruction sent by the first client to the second client includes: receiving an authorization instruction of a user to the first client, and acquiring authorization information from the first client according to the authorization instruction; and applying for obtaining a token from a pre-built authentication server by using the authorization information, and building the connection instruction based on the token.
In detail, the obtaining authorization information from the first client according to the authorization instruction includes: receiving the authorization instruction, verifying whether the cookie in the first client is consistent with the cookie in the APP pre-bound to the first client by using the authorization instruction, if the cookie in the first client is inconsistent with the cookie in the APP pre-bound to the first client, acquiring authorization information fails, re-binding the first client with the APP, and if the cookie in the first client is consistent with the cookie in the APP pre-bound to the first client, acquiring the authorization information from the APP pre-bound to the first client.
The authorization instruction is generally displayed in a user interface of the first client, for example, when a user opens the user interface of the first client, the first client is used for requesting the user to give authorization, and when the user agrees to give authorization to the first client, the authorization instruction is automatically generated and a cookie is verified, and then the authorization information is obtained from a social APP, a financial APP and the like bound with the first client. Wherein the authorization information comprises user information such as user name, login password, network communication protocol, IP address protocol, network access permission number, etc.
In the embodiment of the invention, the social APP, the financial APP and the first client are bound based on a Cookie mechanism, and if binding is needed between the first client and the APP, the Cookie is stored in the first client. When the first client and the APP share data next time, only whether the Cookie stored in the first client is identical to the Cookie in the APP is checked, and when the Cookie stored in the first client is identical to the APP, any data in the APP can be directly obtained.
Further, before receiving the authorization instruction, a binding operation needs to be performed between the first client and the APP, including: and sending a binding request to the APP by using the first client, judging whether the APP returns a response request corresponding to the binding request, if so, analyzing a cookie from the response request, and storing the cookie to the first client to finish binding of the first client and the APP.
The authentication server is a server pre-bound to the first client, and in general, is provided by a service provider of the first client, in which a token generated by pre-binding to the first client is stored. Wherein the Token is a domain name identification, also called Token information, determining the identity of said first client. And after the Token is obtained, packaging the Token information and the authorization information into the connection instruction by using a packaging program.
Further, the present invention uses the instruction protocol analysis framework to analyze the connection instruction, where the instruction protocol analysis framework is a framework for controlling and coordinating resource access according to the identity of the first client.
Further, the encapsulating the client information to obtain client encapsulation information includes: and encapsulating the client information by using a private function of a programming language to obtain the client encapsulation information.
The Private function is different according to different programming languages, such as Private function of java programming language, such as Private { }, client information is put into the Private function and packaged to obtain Private { client information }, namely the client package information.
S2, generating a jump address according to the client encapsulation information.
In detail, referring to fig. 3, the S2 includes:
s21, designating a pre-constructed connection server according to the client packaging information;
s22, modifying the IP address of the connection server into a jump prefix;
s23, modifying the service domain name of the second client into a jump suffix;
s24, extracting the URL of the connection instruction, and combining the jump prefix, the URL and the jump suffix to obtain the jump address.
In the embodiment of the invention, the connection server capable of serving the first client and the second client currently is designated according to the size of the client packaging information, the network location and the like.
In the embodiment of the invention, the connection and access between the clients can be realized according to the jump address.
And S3, connecting the second client by using the jump address, and receiving a data request instruction of the first client when the connection is successful.
In detail, the connecting the second client using the jump address includes: accessing the second client according to the jump address by using a connection server; and when the access is successful, extracting user information from the client packaging information, and logging in the second client by using the user information.
As can be seen from S1, the client package information is composed of Token information and authorization information, and the authorization information includes user information such as a user name and a login password, other information such as a network communication protocol, an IP address protocol, and a login permission number, so that the user information can be extracted from the client package information, and the second client can be logged in by using the user information.
Further, when the user information is used to successfully log in the second client, the first client is informed to send the data request instruction to the second client, wherein the data request instruction corresponds to the connection instruction and is also a request type instruction constructed based on an HTTP protocol.
S4, acquiring corresponding request data from the second client by utilizing a data request instruction.
If the first client is a financial APP for a bank facing a user, and the second client is a background system supporting banking, when the financial APP needs to request the background system for the data of the current residual purchasable quantity of the financial product, the request data of the current residual purchasable quantity of the financial product is correspondingly acquired from the background system.
S5, judging whether the request data needs to be subjected to filtering operation or not, and if so, executing the filtering operation on the request data to obtain the filtering data.
In detail, whether the requested data needs to be filtered or not is determined, and the filtering operation or the like may be performed according to a preset value of the user, for example, after the encrypted data is decrypted
The embodiment of the invention comprises various filtering operations, such as judging whether the digital certificate of the request data belongs to a digital certificate white list, or belongs to a digital certificate black list, or is an unknown digital certificate. Judging whether the uniform resource locator in the request data belongs to a uniform resource locator white list, or belongs to a uniform resource locator black list, or is an unknown uniform resource locator, and the like.
And S6, sending the filtered data or the request data back to the first client.
According to the embodiment of the invention, the client information of the first client is encapsulated into the client encapsulation information through the connection instruction sent to the second client by the first client, the jump address is generated by utilizing the client encapsulation information, and the connection of the second client is tried through the jump address, so that compared with the prior art, the method of converting the input account of each client into the format form required by the destination client through the account conversion system, and further, the method of connecting the clients through the converted input account is adopted, the account conversion system is abandoned, the calculation resources of the account conversion system are saved, and further, the embodiment of the invention performs the filtering operation on the request data to obtain the filtered data, the data quantity is further reduced by the filtering operation, and the resource consumption of data interaction is saved. Therefore, the data interaction method, the data interaction device and the computer readable storage medium of the multi-client can solve the problem that account conversion occupies computing resources when the data interaction is caused by account conversion between the clients before the data interaction between the multi-client.
Fig. 3 is a schematic block diagram of a multi-client data interaction device according to the present invention.
The multi-client data interaction device 100 of the present invention may be installed in an electronic apparatus. The multi-client data interaction device may include a client information packaging module 101, a data request instruction generating module 102, a data acquisition module 103, and a data transmission module 104 according to the implemented functions. The module of the present invention may also be referred to as a unit, meaning a series of computer program segments capable of being executed by the processor of the electronic device and of performing fixed functions, stored in the memory of the electronic device.
In the present embodiment, the functions concerning the respective modules/units are as follows:
the client information packaging module 101 is configured to receive a connection instruction sent from a first client to a second client, analyze the connection instruction by using a pre-constructed instruction protocol analysis framework, obtain client information of the first client, and package the client information to obtain client package information;
the data request instruction generating module 102 is configured to generate a jump address according to the client encapsulation information, connect the second client with the jump address, and accept the data request instruction of the first client when the connection is successful;
the data acquisition module 103 is configured to acquire corresponding request data from the second client by using a data request instruction;
the data transmission module 104 is configured to determine whether the request data needs to be subjected to a filtering operation, and if the request data needs to be subjected to a filtering operation, perform a filtering operation on the request data to obtain filtered data, and send the filtered data or the request data back to the first client.
The modules in the multi-client data interaction device 100 provided in the embodiment of the present invention can adopt the same means based on the method for data interaction with multiple clients as described above when in use, and specific implementation steps are not repeated herein, so that technical effects generated about functions of the modules/units are the same as those of the method for data interaction with multiple clients as described above, that is, the problem that account conversion between clients is required before data interaction between multiple clients, and thus causes the account conversion to occupy computing resources is solved.
Fig. 4 is a schematic structural diagram of an electronic device implementing a data interaction method of multiple clients according to the present invention.
The electronic device 1 may comprise a processor 10, a memory 11 and a bus, and may further comprise a computer program, such as a multi-client data interaction program 12, stored in the memory 11 and executable on the processor 10.
The memory 11 includes at least one type of readable storage medium, including flash memory, a mobile hard disk, a multimedia card, a card memory (e.g., SD or DX memory, etc.), a magnetic memory, a magnetic disk, an optical disk, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device 1, such as a removable hard disk of the electronic device 1. The memory 11 may in other embodiments also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided on the electronic device 1. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device 1. The memory 11 may be used not only for storing application software installed in the electronic device 1 and various types of data, such as code of the multi-client data interaction program 12, but also for temporarily storing data that has been output or is to be output.
The processor 10 may be comprised of integrated circuits in some embodiments, for example, a single packaged integrated circuit, or may be comprised of multiple integrated circuits packaged with the same or different functions, including one or more central processing units (Central Processing unit, CPU), microprocessors, digital processing chips, graphics processors, combinations of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects respective components of the entire electronic device using various interfaces and lines, executes programs or modules stored in the memory 11 (for example, executes a multi-client data interaction program or the like), and invokes data stored in the memory 11 to perform various functions of the electronic device 1 and process data.
The bus may be a peripheral component interconnect standard (peripheral component interconnect, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The bus may be classified as an address bus, a data bus, a control bus, etc. The bus is arranged to enable a connection communication between the memory 11 and at least one processor 10 etc.
Fig. 4 shows only an electronic device with components, it being understood by a person skilled in the art that the structure shown in fig. 4 does not constitute a limitation of the electronic device 1, and may comprise fewer or more components than shown, or may combine certain components, or may be arranged in different components.
For example, although not shown, the electronic device 1 may further include a power source (such as a battery) for supplying power to each component, and preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management, and the like are implemented through the power management device. The power supply may also include one or more of any of a direct current or alternating current power supply, recharging device, power failure detection circuit, power converter or inverter, power status indicator, etc. The electronic device 1 may further include various sensors, bluetooth modules, wi-Fi modules, etc., which will not be described herein.
Further, the electronic device 1 may also comprise a network interface, optionally the network interface may comprise a wired interface and/or a wireless interface (e.g. WI-FI interface, bluetooth interface, etc.), typically used for establishing a communication connection between the electronic device 1 and other electronic devices.
The electronic device 1 may optionally further comprise a user interface, which may be a Display, an input unit, such as a Keyboard (Keyboard), or a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch, or the like. The display may also be referred to as a display screen or display unit, as appropriate, for displaying information processed in the electronic device 1 and for displaying a visual user interface.
It should be understood that the embodiments described are for illustrative purposes only and are not limited to this configuration in the scope of the patent application.
The multi-client data interaction program 12 stored in the memory 11 of the electronic device 1 is a combination of instructions that, when executed in the processor 10, may implement:
receiving a connection instruction sent by a first client to a second client, analyzing the connection instruction by utilizing a pre-constructed instruction protocol analysis framework to obtain client information of the first client, and packaging the client information to obtain client packaging information;
generating a jump address according to the client encapsulation information;
connecting the second client by using the jump address, and receiving a data request instruction of the first client when the connection is successful;
acquiring corresponding request data from the second client by utilizing a data request instruction;
judging whether the request data needs to be subjected to filtering operation or not, and if the request data needs to be subjected to filtering operation, executing filtering operation on the request data to obtain filtering data;
and sending the filtered data or the request data back to the first client.
Further, the modules/units integrated in the electronic device 1 may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as separate products. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM).
Further, the computer-usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created from the use of blockchain nodes, and the like.
The present invention also provides a computer readable storage medium storing a computer program which, when executed by a processor of an electronic device, can implement:
receiving a connection instruction sent by a first client to a second client, analyzing the connection instruction by utilizing a pre-constructed instruction protocol analysis framework to obtain client information of the first client, and packaging the client information to obtain client packaging information;
generating a jump address according to the client encapsulation information;
connecting the second client by using the jump address, and receiving a data request instruction of the first client when the connection is successful;
acquiring corresponding request data from the second client by utilizing a data request instruction;
judging whether the request data needs to be subjected to filtering operation or not, and if the request data needs to be subjected to filtering operation, executing filtering operation on the request data to obtain filtering data;
and sending the filtered data or the request data back to the first client.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be other manners of division when actually implemented.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical units, may be located in one place, or may be distributed over multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional module in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units can be realized in a form of hardware or a form of hardware and a form of software functional modules.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof.
The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any accompanying diagram representation in the claims should not be considered as limiting the claim concerned.
The blockchain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, encryption algorithm and the like. The Blockchain (Blockchain), which is essentially a decentralised database, is a string of data blocks that are generated by cryptographic means in association, each data block containing a batch of information of network transactions for verifying the validity of the information (anti-counterfeiting) and generating the next block. The blockchain may include a blockchain underlying platform, a platform product services layer, an application services layer, and the like.
Furthermore, it is evident that the word "comprising" does not exclude other elements or steps, and that the singular does not exclude a plurality. A plurality of units or means recited in the system claims can also be implemented by means of software or hardware by means of one unit or means. The terms second, etc. are used to denote a name, but not any particular order.
Finally, it should be noted that the above-mentioned embodiments are merely for illustrating the technical solution of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications and equivalents may be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (9)

1. A method for data interaction of multiple clients, the method comprising:
receiving a connection instruction sent by a first client to a second client, and analyzing the connection instruction by utilizing a pre-constructed instruction protocol analysis framework to obtain client information of the first client, and packaging the client information to obtain client packaging information, wherein the client information comprises Token information and authorization information;
generating a jump address according to the client encapsulation information;
connecting the second client by using the jump address, and receiving a data request instruction of the first client when the connection is successful;
acquiring corresponding request data from the second client by utilizing a data request instruction;
judging whether the request data needs to be subjected to filtering operation or not, and if the request data needs to be subjected to filtering operation, executing filtering operation on the request data to obtain filtering data;
sending the filtered data or the request data back to the first client;
wherein the generating a jump address according to the client encapsulation information includes: designating a pre-constructed connection server according to the client packaging information; modifying the IP address of the connection server into a jump prefix; modifying the service domain name of the second client into a jump suffix; and extracting the URL of the connection instruction, and combining the jump prefix, the URL and the jump suffix to obtain the jump address.
2. The multi-client data interaction method of claim 1, wherein prior to receiving the connection instruction sent by the first client to the second client, the method further comprises:
receiving an authorization instruction of a user to the first client, and acquiring authorization information from the first client according to the authorization instruction;
and applying for a token from a pre-built authentication server by using the authorization information, and building the connection instruction based on the token.
3. The method for data interaction between multiple clients according to claim 2, wherein the obtaining authorization information from the first client according to the authorization instruction includes:
verifying whether the cookie in the first client is consistent with the cookie in the APP pre-bound by the first client or not by utilizing the authorization instruction;
if the cookie in the first client is inconsistent with the cookie in the APP pre-bound by the first client, the acquisition of the authorization information fails, and the first client and the APP are re-bound;
and if the cookie in the first client is consistent with the cookie in the APP pre-bound by the first client, acquiring the authorization information from the APP pre-bound by the first client.
4. The multi-client data interaction method of claim 3, wherein prior to verifying that the first client-side cookie is consistent with the first client-side pre-bound APP-side cookie using the authorization instructions, the method further comprises:
transmitting a binding request to the APP by using the first client, and judging whether the APP returns a response request corresponding to the binding request;
if the APP returns the response request, a cookie is analyzed from the response request, and the cookie is stored in the first client, so that the binding of the first client and the APP is completed.
5. The method for data interaction between multiple clients according to claim 1, wherein said encapsulating the client information to obtain client encapsulation information includes:
and encapsulating the client information by using a private function of a programming language to obtain the client encapsulation information.
6. The multi-client data interaction method according to any one of claims 1 to 5, wherein the connecting the second client using the jump address comprises:
accessing the second client according to the jump address by using a connection server;
and when the access is successful, extracting user information from the client packaging information, and logging in the second client by using the user information.
7. A multi-client data interaction device for implementing the multi-client data interaction method according to any one of claims 1 to 6, the device comprising:
the client information packaging module is used for receiving a connection instruction sent by a first client to a second client, analyzing the connection instruction by utilizing a pre-constructed instruction protocol analysis frame to obtain client information of the first client, and packaging the client information to obtain client packaging information;
the data request instruction generation module is used for generating a jump address according to the client encapsulation information, connecting the second client by using the jump address, and receiving the data request instruction of the first client when the connection is successful;
the data acquisition module is used for acquiring corresponding request data from the second client by utilizing a data request instruction;
and the data transmission module is used for judging whether the request data needs to be subjected to filtering operation or not, if so, executing the filtering operation on the request data to obtain the filtering data, and sending the filtering data or the request data back to the first client.
8. An electronic device, the electronic device comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the multi-client data interaction method of any one of claims 1 to 6.
9. A computer-readable storage medium comprising a storage data area and a storage program area, characterized in that the storage data area stores created data, the storage program area storing a computer program; wherein the computer program, when executed by a processor, implements a multi-client data interaction method as claimed in any one of claims 1 to 6.
CN202011466875.2A 2020-12-14 2020-12-14 Multi-client data interaction method and device, electronic equipment and storage medium Active CN112463414B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011466875.2A CN112463414B (en) 2020-12-14 2020-12-14 Multi-client data interaction method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011466875.2A CN112463414B (en) 2020-12-14 2020-12-14 Multi-client data interaction method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112463414A CN112463414A (en) 2021-03-09
CN112463414B true CN112463414B (en) 2024-02-09

Family

ID=74803997

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011466875.2A Active CN112463414B (en) 2020-12-14 2020-12-14 Multi-client data interaction method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112463414B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010610A (en) * 2021-04-15 2021-06-22 上海绚显科技有限公司 Data synchronization method and device
CN113703995B (en) * 2021-08-13 2024-04-16 深圳市中博科创信息技术有限公司 Front-end and back-end data interaction method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031072A (en) * 2019-12-31 2020-04-17 北京力控华康科技有限公司 Data acquisition system, method and computer equipment
CN111382415A (en) * 2019-04-24 2020-07-07 深圳市鸿合创新信息技术有限责任公司 Unified login method and device and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111382415A (en) * 2019-04-24 2020-07-07 深圳市鸿合创新信息技术有限责任公司 Unified login method and device and electronic equipment
CN111031072A (en) * 2019-12-31 2020-04-17 北京力控华康科技有限公司 Data acquisition system, method and computer equipment

Also Published As

Publication number Publication date
CN112463414A (en) 2021-03-09

Similar Documents

Publication Publication Date Title
CN112463414B (en) Multi-client data interaction method and device, electronic equipment and storage medium
CN113704665B (en) Dynamic service release method and device, electronic equipment and storage medium
CN112243002A (en) Data forwarding method and device, electronic equipment and computer readable medium
CN114827161B (en) Service call request sending method and device, electronic equipment and readable storage medium
CN111209557A (en) Cross-domain single sign-on method and device, electronic equipment and storage medium
CN111651121A (en) Data logic calculation method and device, electronic equipment and storage medium
CN114584381A (en) Security authentication method and device based on gateway, electronic equipment and storage medium
CN113393239A (en) Transaction processing method, system, device, electronic equipment and storage medium
CN111241504B (en) Identity verification method, device, electronic equipment and storage medium
CN114826725B (en) Data interaction method, device, equipment and storage medium
CN115374207A (en) Service processing method and device, electronic equipment and computer readable storage medium
CN114844693A (en) Lightweight communication data encryption method, device, equipment and storage medium
CN113127109A (en) Interface calling method and device, electronic equipment and readable storage medium
CN110098921A (en) Verification code generation method, device, application service end and system
CN113779528A (en) Multi-system front-end page integration method, device, equipment and medium
CN114596088A (en) Digital currency transaction method and system and digital currency card application device
CN112487400A (en) Single sign-on method and device based on multiple pages, electronic equipment and storage medium
CN114978675B (en) Access authentication method and device, electronic equipment and storage medium
CN112099957A (en) Resource allocation method, system, device and electronic equipment
CN115001805B (en) Single sign-on method, device, equipment and storage medium
CN110248326A (en) A kind of data processing method and its device
CN115086432B (en) Gateway supervision-based data processing method, device, equipment and storage medium
CN113886493B (en) System log security query method, device, equipment and storage medium
CN116112172B (en) Android client gRPC interface security verification method and device
CN117061221A (en) Method and device for realizing cloud password service

Legal Events

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