CN112434506A - Electronic protocol signing processing method, device, computer equipment and medium - Google Patents

Electronic protocol signing processing method, device, computer equipment and medium Download PDF

Info

Publication number
CN112434506A
CN112434506A CN202011340620.1A CN202011340620A CN112434506A CN 112434506 A CN112434506 A CN 112434506A CN 202011340620 A CN202011340620 A CN 202011340620A CN 112434506 A CN112434506 A CN 112434506A
Authority
CN
China
Prior art keywords
signature
protocol
target
version number
electronic
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.)
Pending
Application number
CN202011340620.1A
Other languages
Chinese (zh)
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.)
Ping An Puhui Enterprise Management Co Ltd
Original Assignee
Ping An Puhui Enterprise Management 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 Ping An Puhui Enterprise Management Co Ltd filed Critical Ping An Puhui Enterprise Management Co Ltd
Priority to CN202011340620.1A priority Critical patent/CN112434506A/en
Publication of CN112434506A publication Critical patent/CN112434506A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/602Providing cryptographic facilities or services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/64Protecting data integrity, e.g. using checksums, certificates or signatures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services
    • G06Q50/188Electronic negotiation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Business, Economics & Management (AREA)
  • General Engineering & Computer Science (AREA)
  • Bioethics (AREA)
  • Software Systems (AREA)
  • Tourism & Hospitality (AREA)
  • Computer Hardware Design (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Technology Law (AREA)
  • Computational Linguistics (AREA)
  • Artificial Intelligence (AREA)
  • Economics (AREA)
  • Human Resources & Organizations (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application relates to a data processing technology, and provides an electronic protocol signing processing method, an electronic protocol signing processing device, computer equipment and a storage medium, wherein the electronic protocol signing processing method comprises the following steps: acquiring a first protocol version number of a locally stored target protocol template and a first signature version number of a target signature, and a second protocol version number of the target protocol template and a second signature version number of the target signature stored in a target server; respectively detecting whether the first protocol version number is consistent with the second protocol version number and whether the first signature version number is consistent with the second signature version number; when the detection result is yes, rendering protocol content in the target protocol template to obtain a target electronic protocol; acquiring a signature area and a signature area of a target electronic protocol, and determining an initial synthetic picture; and processing the initial synthetic picture by using an encryption technology to obtain a target synthetic picture and adding the target synthetic picture into the target electronic protocol. The method and the device can improve the efficiency and the correctness of electronic protocol signing processing, and promote the construction of intelligent medical treatment and intelligent cities.

Description

Electronic protocol signing processing method, device, computer equipment and medium
Technical Field
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for electronic protocol signing processing, a computer device, and a medium.
Background
With the rapid development of electronic commerce, electronic agreements are directly signed through a network, and the troubles of signing, exchanging and storing paper agreements are avoided, so that the electronic commerce system gradually becomes an attractive development direction in the field of electronic commerce. The promulgation of the protocol Law in the electronic signature Law lays the legal foundation for the development of the electronic protocol in the electronic commerce.
After the electronic agreement adds the signature and the signature, the agreement party can take effect. In some signature and signature processing methods in the related art, a large number of electronic protocol templates and signature templates are stored in an application program, and the space of the application program is occupied, so that when one of the protocol templates and the signature template is called, a long time is spent, and the electronic protocol signing efficiency is low; in addition, the related technology can only add the signature and the signature to a certain position of the electronic contract, the related position of the signature and the signature cannot be adjusted according to the actual scene, and the signing accuracy of the electronic agreement is low.
Therefore, it is necessary to provide an electronic protocol signing processing method, which can improve the signing efficiency and correctness of the electronic protocol.
Disclosure of Invention
In view of the foregoing, it is desirable to provide an electronic protocol signing processing method, an electronic protocol signing processing apparatus, a computer device and a medium, which can improve the efficiency and accuracy of electronic protocol signing processing.
A first aspect of an embodiment of the present application provides an electronic protocol subscription processing method, where the electronic protocol subscription processing method includes:
when a protocol generation request is monitored, acquiring identity information of a requester;
respectively acquiring a first protocol version number of a locally stored target protocol template and a first signature version number of a target signature, and a second protocol version number of the target protocol template and a second signature version number of the target signature, which are stored in a target server, according to the identity information;
respectively detecting whether the first protocol version number is consistent with the second protocol version number and whether the first signature version number is consistent with the second signature version number;
when the detection result shows that the first protocol version number is consistent with the second protocol version number and the first signature version number is consistent with the second signature version number, calling a preset rich text editor to render protocol contents in the target protocol template to obtain a target electronic protocol;
acquiring a signature area and a signature area of the target electronic protocol, and determining an initial composite picture related to signature and signature based on the signature area and the signature area;
processing the initial synthetic picture based on a preset encryption technology to obtain a target synthetic picture;
adding the target composite picture to the target electronic protocol.
Further, in the method for processing an electronic protocol signature provided in an embodiment of the present application, the obtaining, according to the identity information, a first protocol version number of a locally stored target protocol template and a first signature version number of a target signature respectively includes:
acquiring category information corresponding to the identity information, and traversing a preset mapping relation between categories and protocol templates according to the category information to obtain a target protocol template corresponding to the category information;
analyzing the target protocol template to obtain a first protocol version number corresponding to the target protocol template;
traversing a preset mapping relation between the identity and the signature according to the identity information to obtain a target signature corresponding to the identity information;
and analyzing the target signature to obtain a first signature version number corresponding to the target signature.
Further, in the method for processing an electronic protocol subscription provided in an embodiment of the present application, the invoking a preset rich text editor to render protocol content in the target protocol template to obtain the target electronic protocol includes:
acquiring protocol content in the target protocol template;
segmenting the protocol content according to paragraphs;
for each paragraph, reading element attribute information of the protocol content;
and calling a preset rich text editor to render the protocol content according to the element attribute information to obtain the target electronic protocol.
Further, in the above electronic protocol signing processing method provided in this embodiment of the application, the acquiring a signature area and a signature area of the target electronic protocol includes:
determining a designated area of the target electronic protocol;
acquiring preset keywords contained in the designated area;
and determining a signature area and a signature area of the target electronic protocol according to the preset keywords.
Further, in the above electronic agreement signing processing method provided by the embodiment of the present application, the determining an initial composite picture about a signature and a signature based on the signature region and the signature region includes:
acquiring relative position information of the signature area and the signature area;
determining the synthesis requirement of the signature and the signature according to the relative position information;
an initial composite picture is constructed for the signature and the signature using picture synthesis techniques based on the synthesis requirements.
Further, in the above electronic agreement signing processing method provided in this embodiment of the present application, before the constructing an initial synthesized picture about a signature and a signature using a picture synthesis technique based on the synthesis requirement, the method further includes:
acquiring signature picture information of a user through a preset drawing board;
extracting signature text information in the signature picture information;
detecting whether the definition of the signature text information exceeds a preset definition threshold range or not;
when the detection result shows that the definition of the signature text information exceeds a preset definition threshold range, constructing an initial composite picture related to the signature and the signature;
and when the detection result shows that the definition of the signature text information does not exceed the preset definition threshold range, outputting a prompt for re-acquiring the signature picture information.
Further, in the above method for processing an electronic protocol subscription provided in an embodiment of the present application, the processing the initial composite picture based on a preset encryption technique to obtain a target composite picture includes:
calculating an MD5 value for the initial composite picture;
encrypting the MD5 value by using an RSA private key to obtain a digital signature of the initial synthetic picture;
and adding the digital signature to the initial synthetic picture to obtain a target synthetic picture.
A second aspect of the embodiments of the present application further provides an electronic protocol subscription processing apparatus, including:
the information monitoring module is used for acquiring the identity information of a requester when a protocol generation request is monitored;
a version number obtaining module, configured to obtain, according to the identity information, a first protocol version number of a locally stored target protocol template and a first signature version number of a target signature, and a second protocol version number of the target protocol template and a second signature version number of the target signature stored in a target server, respectively;
the consistency detection module is used for respectively detecting whether the first protocol version number is consistent with the second protocol version number and whether the first signature version number is consistent with the second signature version number;
the content rendering module is used for calling a preset rich text editor to render protocol content in the target protocol template to obtain a target electronic protocol when the detection result shows that the first protocol version number is consistent with the second protocol version number and the first signature version number is consistent with the second signature version number;
the picture synthesis module is used for acquiring a signature area and a signature area of the target electronic protocol and determining an initial synthesis picture related to signature and signature based on the signature area and the signature area;
the picture encryption module is used for processing the initial synthetic picture based on a preset encryption technology to obtain a target synthetic picture;
and the picture adding module is used for adding the target synthetic picture into the target electronic protocol.
The third aspect of the embodiments of the present application further provides a computer device, where the computer device includes a processor, and the processor is configured to implement the electronic protocol signing processing method according to any one of the above items when executing the computer program stored in the memory.
A fourth aspect of the embodiments of the present application further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for processing electronic protocol signing is implemented as any one of the above-mentioned methods.
According to the electronic protocol signing processing method, the electronic protocol signing processing device, the computer equipment and the computer readable storage medium, the application program developed with the electronic protocol signing processing logic is in communication connection with the target server, the signature template and the protocol template are stored in the target server, the signature template and the protocol template can be automatically updated in the application program in an online configurable mode under the condition that the version of the application program is not updated, and the efficiency of electronic protocol signing processing can be improved; according to the method and the device, the optimal initial synthetic picture related to the signature and the signature can be determined according to the signature area and the signature area, and the signing correctness of the electronic protocol can be improved; in addition, the problem that the signature and the signature are falsified is avoided by means of encryption processing of the initial synthesized picture, and correctness of electronic protocol signing is improved; the application can be applied to each function module of wisdom cities such as wisdom government affairs, wisdom traffic, for example, the electronic protocol of wisdom government affairs signs and orders processing procedure etc. can promote the rapid development in wisdom city.
Drawings
Fig. 1 is a flowchart of an electronic agreement signing processing method according to a first embodiment of the present application.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present application.
FIG. 3 is an exemplary functional block diagram of the computer device shown in FIG. 2.
The following detailed description will further illustrate the present application in conjunction with the above-described figures.
Detailed Description
In order that the above objects, features and advantages of the present application can be more clearly understood, a detailed description of the present application will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments and features of the embodiments of the present application may be combined with each other without conflict.
In the following description, numerous specific details are set forth to provide a thorough understanding of the present application, and the described embodiments are a part, but not all, of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
Fig. 1 is a flowchart of an electronic agreement signing processing method according to a first embodiment of the present application. The electronic protocol signing processing method is applied to an electronic protocol signing processing device, the electronic protocol signing processing device is connected with a target server, and signature information and protocol information are stored in the target server in a centralized mode. As shown in fig. 1, the electronic agreement signing processing method may include the steps of:
and S11, acquiring the identity information of the requester when the protocol generation request is monitored.
In at least one embodiment of the present application, an electronic protocol template corresponding to each type of electronic protocol is stored in advance in a target server, and the electronic protocol template may include a protocol content frame, a signature area, and a signature area. The target server may be a target node in a blockchain. The protocol content frame is an area filled with protocol content in the electronic protocol template, and information such as a protocol name, a protocol header, protocol signing time, protocol content, a protocol version number and the like can be displayed on the protocol content frame. The signature area refers to an area for signing an electronic signature in an electronic agreement template. The signature region refers to a region in the electronic protocol template for stamping with a stamp.
Optionally, the electronic protocol template may be updated according to actual requirements, and whether the current electronic protocol template is the latest version may be determined according to the protocol version number. And the protocol content frame, the signature area and the signature area in the electronic protocol template corresponding to different protocol version numbers can be different.
In at least one embodiment of the present application, whether a protocol generation request is monitored is determined by monitoring whether a target touch button of an application is triggered or receiving a trigger voice command, where the application is developed with an electronic protocol subscription processing logic, that is, the application may include the electronic protocol subscription processing apparatus, which is not limited herein. And when the target touch button of the application program is monitored to be triggered or a triggering voice instruction is received, judging that a protocol generation request is monitored.
The protocol generation request is a request for triggering the application program to make an electronic protocol. The requestor is typically a business or institution, for example, the requestor may be a financial institution that provides loans or funds. The identity information can be an organization code of an enterprise, and the organization code is a code identification which is unique and invariable in the national range and issued by institutions, enterprises and public institutions, social groups and other organizations which register the people and people in accordance with the law in China and register the institutions, the enterprises and public institutions and social groups in accordance with the law.
S12, respectively acquiring a first protocol version number of a locally stored target protocol template and a first signature version number of a target signature, and a second protocol version number of the target protocol template and a second signature version number of the target signature stored in a target server according to the identity information.
In at least one embodiment of the present application, the identity information of the requesting party and the category information to which the requesting party belongs have a mapping relationship, and the category information of the identity information can be obtained based on the identity information traversing the preset mapping relationship between the identity and the category. The local of the application program may cache protocol templates of different types of information, where a mapping relationship exists between the type information and the protocol templates, for example, one type information corresponds to one or more protocol templates. The identity information and the signature have a mapping relationship, for example, one identity information corresponds to one signature. And traversing the mapping relation between the identity and the signature according to the identity information to obtain a target signature corresponding to the identity information.
Optionally, the respectively obtaining the first protocol version number of the locally stored target protocol template and the first signature version number of the target signature according to the identity information includes: acquiring category information corresponding to the identity information, and traversing a preset mapping relation between categories and protocol templates according to the category information to obtain a target protocol template corresponding to the category information; analyzing the target protocol template to obtain a first protocol version number corresponding to the target protocol template; traversing a preset mapping relation between the identity and the signature according to the identity information to obtain a target signature corresponding to the identity information; and analyzing the target signature to obtain a first signature version number corresponding to the target signature.
The first protocol version number is stored in a preset position of the target protocol template, and the first protocol version number of the target protocol template can be obtained by determining the preset position; or, the first protocol version number may be displayed in a manner of a preset identifier, and the first protocol version number of the target protocol template may be obtained by checking the preset identifier, which is not limited herein. Similarly, the first signature version number is stored in a predetermined position of the target signature, and the first signature version number of the target signature can be obtained by determining the predetermined position; or, the first signature version number may be displayed in a predetermined identifier manner, and the first signature version number of the target signature may be obtained by checking the predetermined identifier, which is not limited herein.
S13, respectively detecting whether the first protocol version number is consistent with the second protocol version number and whether the first signature version number is consistent with the second signature version number, and executing the step S14 when the detection result shows that the first protocol version number is consistent with the second protocol version number and the first signature version number is consistent with the second signature version number.
In at least one embodiment of the present application, it can be determined whether the target protocol template stored locally in the application program is the latest version by detecting whether the first protocol version number is consistent with the second protocol version number. When the detection result shows that the first protocol version number is consistent with the second protocol version number, determining that the locally stored target protocol template is the latest version; otherwise, determining that the target protocol template stored locally is not the latest version. Similarly, whether the target signature stored in the local of the application program is the latest version can be determined by detecting whether the first signature version number is consistent with the second signature version number, and details are not repeated here.
Optionally, when the detection result indicates that the first signature version number is inconsistent with the second signature version number, the method further includes: and replacing the locally stored target signature with the latest version of the signature stored in the target server.
Optionally, when the detection result indicates that the first protocol version number is inconsistent with the second protocol version number, the method further includes: acquiring the latest template content corresponding to the target protocol template in the target server; determining change information of the latest template content compared with the local template content of the target protocol template stored locally; and determining an updating strategy according to the change information, and updating the locally stored local template content based on the updating strategy.
The latest template content comprises a protocol content frame, a signature area and a signature area of the latest target protocol template. The change information comprises change information of a protocol content frame, a signature area and a signature area. In an embodiment, the method further comprises: acquiring the number of the protocol content frame, the signature area and the change items in the signature area; detecting whether the number of the change items exceeds a preset change number threshold range; when the detection result shows that the number of the change items exceeds the preset change number threshold range, determining that the change degree is high; and when the detection result shows that the number of the change items does not exceed the preset change number threshold range, determining that the change degree is low.
The update policy includes: updating local template content of the locally stored target protocol template based on the change item; or, all the latest template contents of the target protocol template in the target server are cached in a local module. Optionally, when the change degree is high, the change policy is to cache all the latest template content of the target protocol template in the target server in a local module; when the change degree is low, the change strategy is to update the local template content of the target protocol template stored locally based on the change item. According to the method and the device, the optimal change strategy is determined based on the information change degree of the protocol template in the target server compared with the locally stored protocol version, the acquisition efficiency of the local latest version of the protocol template can be improved, and then the electronic protocol signing processing efficiency is improved.
In at least one embodiment of the present application, the method further comprises: and newly establishing a monitoring process, wherein the monitoring process is used for monitoring whether the protocol version number of the protocol template in the target server is updated or not, and adding a target mark to the protocol template when the monitoring result shows that the protocol version number of the protocol template in the target server is updated, and the target mark is used for indicating that the protocol template is updated. At this time, whether the target mark exists in the target server can be detected according to the identity information; when the detection result indicates that the target mark exists in the target server, determining that the first protocol version number is inconsistent with the second protocol version number; otherwise, determining that the first protocol version number is consistent with the second protocol version number. Similarly, the signature in the target server may also be monitored as soon as possible by using the monitoring process, which is not described herein again.
And S14, calling a preset rich text editor to render the protocol content in the target protocol template to obtain the target electronic protocol.
In at least one embodiment of the present application, the protocol content in the target protocol template may set corresponding attribute information according to the information importance degree, for example, for a common protocol content, attribute information with a font of song and a font size of 11 may be adopted; for important contents in the protocol contents, attribute information with a bold song body font and a character size of 11 can be adopted; for the very important contents in the protocol contents, the attribute information with the font of bold and bold sons and the font size of 11 may be used, which is not limited herein. The method and the device can render the protocol contents with different attributes in the target protocol template by calling the preset rich text editor to obtain the target electronic protocol with the protocol content importance degree. The method and the device can render the protocol contents of different attribute information in the target protocol template by calling the preset rich text editor to obtain the target electronic protocol indicating the importance degree of the protocol contents.
Optionally, the invoking a preset rich text editor to render protocol content in the target protocol template to obtain the target electronic protocol includes: acquiring protocol content in the target protocol template; segmenting the protocol content according to paragraphs; for each paragraph, reading element attribute information of the protocol content; and calling a preset rich text editor to render the protocol content according to the element attribute information to obtain the target electronic protocol.
And each paragraph is used as an array to realize the digitization, all the element attribute information of each protocol content in each paragraph is found out in a recursive mode, the element attribute information is uniformly coded, and each element attribute information is added into the array according to the sequence from top to bottom. The finding out all the element attribute information of each protocol content in each paragraph in a recursive manner includes: acquiring a target paragraph of the protocol content; inputting a preset search function aiming at the target paragraph, and detecting whether a preset starting symbol and a preset ending symbol exist in the target paragraph through the preset search function; and when the detection result shows that a preset starting symbol and a preset ending symbol exist in the target paragraph, recursively calling the preset search function by taking the content between the preset starting symbol and the preset ending symbol as the content to be searched until all the protocol contents of the target paragraph are processed, and obtaining all the element attribute information of each protocol content of the target paragraph, so that the whole protocol content can be correctly rendered, and the correctness of electronic protocol signing processing is improved. The preset query function is a preset function used for searching attribute information of each element in the protocol content, and the form of the preset query function is not limited. The preset starting symbol and the preset ending symbol are preset and are respectively used for marking the starting symbol and the ending symbol of the protocol content of each paragraph.
In at least one embodiment of the present application, one category information may correspond to a plurality of protocol templates, that is, there is a case where a plurality of protocols are signed when a service is handled. When the number of the target protocol templates is multiple, the step of calling a preset rich text editor to render protocol contents in the target protocol templates to obtain the target electronic protocol further comprises the following steps: acquiring all target protocol templates corresponding to the category information; and calling a rich text editor to arrange and splice all the target protocol templates to display all the target protocol templates to obtain all the target electronic protocols.
According to the method and the device, the target protocol templates are arranged, spliced and displayed in a rich text editor mode, a plurality of target protocol templates can be displayed in one page, and when a user clicks one of the target protocol templates, only the selected target protocol template is displayed in the current page. Subsequently, when the target electronic protocol is signed and signed, the method further comprises: determining the number of the target protocol templates; and calling the threads corresponding to the number, and performing signature and signature processing on each target protocol template based on the threads. By simultaneously processing multiple target electronic protocols through multiple threads, the electronic protocol signing processing efficiency can be improved.
S15, acquiring a signature area and a signature area of the target electronic protocol, and determining an initial composite picture related to the signature and the signature based on the signature area and the signature area.
In at least one embodiment of the present application, the signature area refers to an area for signing an electronic signature in an electronic protocol template, and the signature area refers to an area for stamping with a stamp in the electronic protocol template. There may be differences in the relative positions of the signature region and the signature region of different electronic protocol templates, for example, the signature region of the electronic protocol template a is above the signature region, and the distance between the signature region and the signature region is 18 pounds; the signature area of the electronic protocol template B is below the signature area, and the distance between the signature area and the signature area is 20 pounds. For the case that the relative positions of the signature region and the signature region are different, it is necessary to determine the optimal positions of the signature and the signature for each relative position, and obtain an initial composite picture based on the positions of the signature and the signature.
Optionally, the acquiring a signature area and a signature area of the target electronic protocol includes: determining a designated area of the target electronic protocol; acquiring preset keywords contained in the designated area; and determining a signature area and a signature area of the target electronic protocol according to the preset keywords.
The designated area refers to a position including the signature area and the signature area, and the designated areas of different electronic protocols are fixed and are generally located at the lowest part of the electronic protocols. The preset keywords can be 'signature' and 'signature', and a signature area can be determined by searching the preset keywords at the specified position.
Optionally, the acquiring the signature area and the signature area of the target electronic protocol further includes: acquiring an area number contained in the target electronic protocol; inquiring a first area number corresponding to the signature area and a second area number corresponding to the signature area from the area numbers; and determining a signature area and a signature area of the target electronic protocol according to the first area number and the second area number. The area number comprises a frame number corresponding to the protocol content frame, a first area number corresponding to the signature area and a second area number corresponding to the signature area.
Optionally, the determining an initial composite picture for a signature and a signature based on the signature region and the signature region comprises: acquiring relative position information of the signature area and the signature area; determining the synthesis requirement of the signature and the signature according to the relative position information; an initial composite picture is constructed for the signature and the signature using picture synthesis techniques based on the synthesis requirements.
Wherein the relative position information includes distance information (e.g., a distance between the signature region and the signature region) and orientation information (e.g., the signature region is above and/or below the signature region). The composition requirement refers to the position requirement and the orientation requirement of the signature and the signature, the position requirement refers to the distance requirement of the signature and the signature, and the orientation requirement refers to the condition that the signature is above and/or below the signature.
For example, the orientation requirement may be determined according to orientation information of a signature region and a signature region, and when the signature region is above the signature region, the orientation requirement is: the signature is above the signature; when the signature region is below the signature region, the orientation requirement is: the signature is under the signature. The distance requirement can be determined according to the distance information of the signature region and the signature region, and the optimal distance requirement is obtained according to the mapping relation between the distance information traversal distance and the distance requirement.
Optionally, before the constructing an initial composite picture for a signature and a signature using a picture synthesis technique based on the synthesis requirement, the method further comprises: acquiring signature picture information of a user through a preset drawing board; extracting signature text information in the signature picture information; detecting whether the definition of the signature text information exceeds a preset definition threshold range or not; when the detection result shows that the definition of the signature text information exceeds a preset definition threshold range, constructing an initial composite picture related to the signature and the signature; and when the detection result shows that the definition of the signature text information does not exceed the preset definition threshold range, outputting a prompt for re-acquiring the signature picture information of the user.
And signing in a preset drawing board by a user to obtain signature picture information. And extracting the signature text information in the signature picture information by adopting an OCR technology. The preset definition threshold is preset, for example, 85%.
Optionally, the extracting, by using an OCR technology, the signature text information in the signature picture information includes: preprocessing the signature picture information; extracting multi-dimensional features from the character image by using a character feature extraction algorithm; carrying out template rough classification and template fine matching on the multi-dimensional feature vectors by using a character recognition algorithm to recognize characters; and correcting the recognized characters according to the semantics and outputting signature text information. The preprocessing may include a denoising processing, an image binarization processing, and other processing manners, which are not limited herein.
Optionally, the detecting whether the definition of the signature text information exceeds a preset definition threshold range includes: preprocessing the signature text information; extracting target feature points from the signature text information by using a Harris algorithm; detecting whether the definition of the target feature point exceeds a preset definition threshold range or not; when the detection result shows that the definition of the target feature point exceeds a preset definition threshold range, determining that the definition of the signature text information exceeds the preset definition threshold range; otherwise, determining that the definition of the signature text information does not meet the preset definition threshold range. The preprocessing can comprise binarization processing, and isolated points in the signature text information and stains on the signature strokes can be filtered out through the binarization processing.
And S16, processing the initial synthetic picture based on a preset encryption technology to obtain a target synthetic picture.
In at least one embodiment of the present application, the preset encryption technology may be a combination of an RSA encryption technology and an MD5 encryption technology, and generates encrypted data based on the preset encryption technology, and adds the encrypted data to the initial composite picture to obtain a target composite picture. By encrypting the initial synthetic picture, the signature and signature information can be prevented from being tampered, and the correctness of electronic protocol signing processing is ensured.
Optionally, the processing the initial composite picture based on a preset encryption technology to obtain a target composite picture includes: calculating an MD5 value of the initial contract picture; encrypting the MD5 value by using an RSA private key to obtain a digital signature of the initial contract picture; and adding the digital signature to the initial synthetic picture to obtain a target synthetic picture.
The MD5 value is a hash value obtained by calculating data using MD5 algorithm, which can calculate information of any length bit by bit to generate a "digital fingerprint" or "message digest" with a binary length of 128 bits. The MD5 value is extremely resistant to modification, namely, any modification is carried out on the original data, and even if only 1 byte is modified, the obtained MD5 value is very different. Based on the characteristic, the integrity of the initial composite picture can be verified according to the MD5 value, and the picture is prevented from being tampered by a certain network node in the transmission process.
The RSA algorithm is an asymmetric cryptographic algorithm that requires a pair of keys, a public key and a private key, one of which is used for encryption and the other for decryption. In the RSA algorithm, if a encrypts the transmitted data with a private key, B can decrypt the data encrypted with the private key only through a public key paired with the private key, and this encryption manner can ensure that the data received by B is actually sent by a.
S17, adding the target synthetic picture into the target electronic protocol.
In at least one embodiment of the present application, after adding the target composite picture to the target electronic protocol, the method further comprises: acquiring the time of a current system; populating the time into an agreement signing time entry of the target electronic agreement. And when the electronic protocol is approved, starting a service corresponding to the target electronic protocol.
The above is a detailed description of the method provided in the examples of the present application. The order of execution of the blocks in the flowcharts shown may be changed, and some blocks may be omitted, according to various needs. The following describes a computer device 1 provided in an embodiment of the present application.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present application, and as shown in fig. 2, the computer device 1 includes a memory 10, and the electronic protocol signing processing apparatus 300 is stored in the memory 10. The computer device 1 may be an electronic device having functions of data processing, analysis, program execution, display, and the like, such as a computer, a tablet computer, and a personal digital assistant. The electronic protocol signing processing device 300 may acquire the identity information of the requester when monitoring the protocol generation request; respectively acquiring a first protocol version number of a locally stored target protocol template and a first signature version number of a target signature, and a second protocol version number of the target protocol template and a second signature version number of the target signature, which are stored in a target server, according to the identity information; respectively detecting whether the first protocol version number is consistent with the second protocol version number and whether the first signature version number is consistent with the second signature version number; when the detection result shows that the first protocol version number is consistent with the second protocol version number and the first signature version number is consistent with the second signature version number, calling a preset rich text editor to render protocol contents in the target protocol template to obtain a target electronic protocol; acquiring a signature area and a signature area of the target electronic protocol, and determining an initial composite picture related to signature and signature based on the signature area and the signature area; processing the initial synthetic picture based on a preset encryption technology to obtain a target synthetic picture; adding the target composite picture to the target electronic protocol. Through the method and the device, the efficiency and the correctness of electronic protocol signing processing can be improved, and the development of intelligent medical treatment and the construction of an intelligent city are facilitated.
In this embodiment, the computer device 1 may further include a display screen 20 and a processor 30. The memory 10 and the display screen 20 can be electrically connected with the processor 30 respectively.
The memory 10 may be of different types of memory devices for storing various types of data. For example, the memory and the internal memory of the computer device 1 may be used, and the memory Card may be a memory Card that is externally connected to the computer device 1, such as a flash memory, an SM Card (Smart Media Card), an SD Card (Secure Digital Card), and the like. Further, the memory 10 may include non-volatile memory and volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other storage devices. The memory 10 is used to store various types of data, for example, various types of application programs (Applications) installed in the computer apparatus 1, data set and acquired by applying the above-described electronic protocol subscription processing method, and the like.
A display screen 20 is mounted to the computer apparatus 1 for displaying information.
The processor 30 is used for executing the electronic protocol signing processing method and various software installed in the computer device 1, such as an operating system, application display software and the like. The processor 30 includes, but is not limited to, a Central Processing Unit (CPU), a Micro Controller Unit (MCU), and other devices for interpreting computer instructions and Processing data in computer software.
The electronic protocol signing processing apparatus 300 may include one or more modules, which are stored in the memory 10 of the computer device 1 and configured to be executed by one or more processors (in this embodiment, one processor 30) to complete the embodiments of the present application. Referring to fig. 3, the electronic agreement sign-up processing apparatus 300 may include an information monitoring module 301, a version number obtaining module 302, a consistency detection module 303, a content rendering module 304, a picture composition module 305, a picture encryption module 306, and a picture adding module 307. The modules referred to in the embodiments of the present application may be program segments for performing a specific function, and are more suitable than programs for describing the execution process of software in the processor 30.
It is understood that, in correspondence with each embodiment of the electronic-protocol-subscription processing method described above, the electronic-protocol-subscription processing apparatus 300 may include some or all of the functional blocks shown in fig. 3, and functions of the blocks will be described in detail below. It should be noted that the same nouns and their specific explanations in the above embodiments of the electronic protocol signing processing method can also be applied to the following functional descriptions of the modules. For brevity and to avoid repetition, further description is omitted.
The information interception module 301 may be configured to obtain identity information of a requester when intercepting a protocol generation request.
The version number obtaining module 302 may be configured to obtain, according to the identity information, a first protocol version number of a locally stored target protocol template and a first signature version number of a target signature, and a second protocol version number of the target protocol template and a second signature version number of the target signature stored in a target server, respectively.
The consistency detection module 303 may be configured to detect whether the first protocol version number is consistent with the second protocol version number, and whether the first signature version number is consistent with the second signature version number, respectively.
The content rendering module 304 may be configured to invoke a preset rich text editor to render the protocol content in the target protocol template to obtain the target electronic protocol when the detection result indicates that the first protocol version number is consistent with the second protocol version number and the first signature version number is consistent with the second signature version number.
Picture composition module 305 may be configured to obtain a signature region and a signature region of the target electronic protocol, and determine an initial composite picture for a signature and a signature based on the signature region and the signature region.
The picture encryption module 306 may be configured to process the initial composite picture based on a preset encryption technique to obtain a target composite picture.
The picture adding module 307 may be configured to add the target composite picture to the target electronic protocol.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 30, implements the steps of the electronic protocol signing processing method in any one of the above embodiments.
The electronic agreement signing processing apparatus 300/computer device 1/computer device integrated module/unit may be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, all or part of the flow in the method of the embodiments described above may be implemented by a computer program, which may be stored in a computer readable storage medium and used by the processor 30 to implement the steps of the method embodiments described above. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable storage medium may include: any entity or device capable of carrying the computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), random-access Memory, or the like.
The Processor 30 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, or the like. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc., and the processor 30 is a control center of the electronic protocol subscription processing apparatus 300/computer device 1, and various interfaces and lines are used to connect the respective parts of the whole electronic protocol subscription processing apparatus 300/computer device 1.
The memory 10 is used for storing the computer program and/or module, and the processor 30 implements various functions of the electronic protocol subscription processing apparatus 300/computer device 1 by running or executing the computer program and/or module stored in the memory 10 and calling data stored in the memory 10. The memory 10 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 by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to the use of the computer apparatus 1, and the like.
In the several embodiments provided in this application, it should be understood that the disclosed computer apparatus and method may be implemented in other ways. For example, the system embodiments described above are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The block chain referred by the application is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
It will be evident to those skilled in the art that the embodiments of the present application are not limited to the details of the foregoing illustrative embodiments, and that the embodiments of the present application can be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the embodiments 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 reference sign in a claim should not be construed as limiting the claim concerned. Several of the units, modules or devices recited in this application can also be implemented by one and the same unit, module or device in software or hardware.
Although the embodiments of the present application have been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the spirit and scope of the embodiments of the present application.

Claims (10)

1. An electronic protocol signing processing method, characterized in that the electronic protocol signing processing method comprises:
when a protocol generation request is monitored, acquiring identity information of a requester;
respectively acquiring a first protocol version number of a locally stored target protocol template and a first signature version number of a target signature, and a second protocol version number of the target protocol template and a second signature version number of the target signature, which are stored in a target server, according to the identity information;
respectively detecting whether the first protocol version number is consistent with the second protocol version number and whether the first signature version number is consistent with the second signature version number;
when the detection result shows that the first protocol version number is consistent with the second protocol version number and the first signature version number is consistent with the second signature version number, calling a preset rich text editor to render protocol contents in the target protocol template to obtain a target electronic protocol;
acquiring a signature area and a signature area of the target electronic protocol, and determining an initial composite picture related to signature and signature based on the signature area and the signature area;
processing the initial synthetic picture based on a preset encryption technology to obtain a target synthetic picture;
adding the target composite picture to the target electronic protocol.
2. The method of claim 1, wherein the obtaining the first protocol version number of the locally stored target protocol template and the first signature version number of the target signature according to the identity information respectively comprises:
acquiring category information corresponding to the identity information, and traversing a preset mapping relation between categories and protocol templates according to the category information to obtain a target protocol template corresponding to the category information;
analyzing the target protocol template to obtain a first protocol version number corresponding to the target protocol template;
traversing a preset mapping relation between the identity and the signature according to the identity information to obtain a target signature corresponding to the identity information;
and analyzing the target signature to obtain a first signature version number corresponding to the target signature.
3. The electronic protocol signing processing method of claim 1, wherein said invoking a pre-defined rich text editor to render protocol content in the target protocol template to obtain a target electronic protocol comprises:
acquiring protocol content in the target protocol template;
segmenting the protocol content according to paragraphs;
for each paragraph, reading element attribute information of the protocol content;
and calling a preset rich text editor to render the protocol content according to the element attribute information to obtain the target electronic protocol.
4. The electronic protocol signing processing method of claim 1, wherein said acquiring a signature area and a signature area of the target electronic protocol comprises:
determining a designated area of the target electronic protocol;
acquiring preset keywords contained in the designated area;
and determining a signature area and a signature area of the target electronic protocol according to the preset keywords.
5. The electronic protocol signing processing method of claim 1, wherein the determining an initial composite picture for signature and signature based on the signature region and the signature region comprises:
acquiring relative position information of the signature area and the signature area;
determining the synthesis requirement of the signature and the signature according to the relative position information;
an initial composite picture is constructed for the signature and the signature using picture synthesis techniques based on the synthesis requirements.
6. The electronic protocol signing processing method of claim 5, wherein prior to said constructing an initial composite picture for signatures and signatures using picture synthesis techniques based on said synthesis requirements, the method further comprises:
acquiring signature picture information of a user through a preset drawing board;
extracting signature text information in the signature picture information;
detecting whether the definition of the signature text information exceeds a preset definition threshold range or not;
when the detection result shows that the definition of the signature text information exceeds a preset definition threshold range, constructing an initial composite picture related to the signature and the signature;
and when the detection result shows that the definition of the signature text information does not exceed the preset definition threshold range, outputting a prompt for re-acquiring the signature picture information.
7. The electronic protocol signing processing method of claim 1, wherein the processing the initial composite picture based on a preset encryption technique to obtain a target composite picture comprises:
calculating an MD5 value for the initial composite picture;
encrypting the MD5 value by using an RSA private key to obtain a digital signature of the initial synthetic picture;
and adding the digital signature to the initial synthetic picture to obtain a target synthetic picture.
8. An electronic-protocol-subscription processing apparatus, characterized by comprising:
the information monitoring module is used for acquiring the identity information of a requester when a protocol generation request is monitored;
a version number obtaining module, configured to obtain, according to the identity information, a first protocol version number of a locally stored target protocol template and a first signature version number of a target signature, and a second protocol version number of the target protocol template and a second signature version number of the target signature stored in a target server, respectively;
the consistency detection module is used for respectively detecting whether the first protocol version number is consistent with the second protocol version number and whether the first signature version number is consistent with the second signature version number;
the content rendering module is used for calling a preset rich text editor to render protocol content in the target protocol template to obtain a target electronic protocol when the detection result shows that the first protocol version number is consistent with the second protocol version number and the first signature version number is consistent with the second signature version number;
the picture synthesis module is used for acquiring a signature area and a signature area of the target electronic protocol and determining an initial synthesis picture related to signature and signature based on the signature area and the signature area;
the picture encryption module is used for processing the initial synthetic picture based on a preset encryption technology to obtain a target synthetic picture;
and the picture adding module is used for adding the target synthetic picture into the target electronic protocol.
9. A computer device characterized by comprising a processor for implementing the electronic protocol signing processing method of any one of claims 1 to 7 when executing a computer program stored in a memory.
10. A computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the electronic agreement signing processing method according to any one of claims 1 to 7.
CN202011340620.1A 2020-11-25 2020-11-25 Electronic protocol signing processing method, device, computer equipment and medium Pending CN112434506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011340620.1A CN112434506A (en) 2020-11-25 2020-11-25 Electronic protocol signing processing method, device, computer equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011340620.1A CN112434506A (en) 2020-11-25 2020-11-25 Electronic protocol signing processing method, device, computer equipment and medium

Publications (1)

Publication Number Publication Date
CN112434506A true CN112434506A (en) 2021-03-02

Family

ID=74698866

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011340620.1A Pending CN112434506A (en) 2020-11-25 2020-11-25 Electronic protocol signing processing method, device, computer equipment and medium

Country Status (1)

Country Link
CN (1) CN112434506A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113177407A (en) * 2021-06-30 2021-07-27 平安普惠企业管理有限公司 Data dictionary construction method and device, computer equipment and storage medium
CN113283231A (en) * 2021-06-26 2021-08-20 厦门海迈科技股份有限公司 Method for acquiring signature bit, setting system, signature system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160204944A1 (en) * 2015-01-09 2016-07-14 Adobe Systems Incorporated Private electronic signature service for electronic documents
CN107968815A (en) * 2017-10-25 2018-04-27 北京信安世纪科技股份有限公司 A kind of method and device of security protection
CN109615343A (en) * 2019-01-03 2019-04-12 深圳壹账通智能科技有限公司 Electronic contract generation method, device, computer equipment and storage medium
CN111666593A (en) * 2020-06-23 2020-09-15 中信银行股份有限公司 Electronic signature method and device, electronic equipment and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160204944A1 (en) * 2015-01-09 2016-07-14 Adobe Systems Incorporated Private electronic signature service for electronic documents
CN107968815A (en) * 2017-10-25 2018-04-27 北京信安世纪科技股份有限公司 A kind of method and device of security protection
CN109615343A (en) * 2019-01-03 2019-04-12 深圳壹账通智能科技有限公司 Electronic contract generation method, device, computer equipment and storage medium
CN111666593A (en) * 2020-06-23 2020-09-15 中信银行股份有限公司 Electronic signature method and device, electronic equipment and computer readable storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113283231A (en) * 2021-06-26 2021-08-20 厦门海迈科技股份有限公司 Method for acquiring signature bit, setting system, signature system and storage medium
CN113177407A (en) * 2021-06-30 2021-07-27 平安普惠企业管理有限公司 Data dictionary construction method and device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US11258612B2 (en) Method, apparatus, and electronic device for blockchain-based recordkeeping
AU2019295815C1 (en) Blockchain-based data verification method and apparatus, and electronic device
JP6833302B2 (en) Information authentication method and system
EP3414867B1 (en) A system and method for document information authenticity verification
US20200099534A1 (en) Improved Blockchain-Based Method for Registration and Verification of a File
CN111737499B (en) Data searching method based on natural language processing and related equipment
US20180225631A1 (en) Dynamic notary system
CN110008428B (en) News data processing method and device, blockchain node equipment and storage medium
CN111859431B (en) Electronic file signing method and device, electronic equipment and storage medium
CN109948343A (en) Leak detection method, Hole Detection device and computer readable storage medium
US20190130042A1 (en) Instrument disambiguation to facilitate electronic data consolidation
WO2022126978A1 (en) Invoice information extraction method and apparatus, computer device and storage medium
CN112434506A (en) Electronic protocol signing processing method, device, computer equipment and medium
CN112948418A (en) Dynamic query method, device, equipment and storage medium
CN112329043A (en) Information encryption processing method, device, computer equipment and medium
CN113378224B (en) Medical image storage method, device, equipment and storage medium
JP2997483B2 (en) Verification data generator
CN111933241B (en) Medical data analysis method, device, electronic equipment and storage medium
CN111461191B (en) Method and device for determining image sample set for model training and electronic equipment
CN113177543B (en) Certificate identification method, device, equipment and storage medium
WO2023172190A1 (en) Method and apparatus for accessing data in a plurality of machine readable medium
WO2021151274A1 (en) Image file processing method and apparatus, electronic device, and computer readable storage medium
CN113420143A (en) Document abstract generation method, device, equipment and storage medium
CN113283677A (en) Index data processing method, device, equipment and storage medium
CN112950154A (en) Flow information matching method, device, equipment and storage medium

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