CN107133777A - A kind of establishment of electronic contract, signature method and system - Google Patents
A kind of establishment of electronic contract, signature method and system Download PDFInfo
- Publication number
- CN107133777A CN107133777A CN201710276720.4A CN201710276720A CN107133777A CN 107133777 A CN107133777 A CN 107133777A CN 201710276720 A CN201710276720 A CN 201710276720A CN 107133777 A CN107133777 A CN 107133777A
- Authority
- CN
- China
- Prior art keywords
- contract
- request
- platform
- signing
- module
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 98
- 230000004044 response Effects 0.000 claims description 46
- 230000008569 process Effects 0.000 claims description 19
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 230000005540 biological transmission Effects 0.000 abstract description 5
- 230000006870 function Effects 0.000 description 125
- 238000004806 packaging method and process Methods 0.000 description 6
- 239000002006 petroleum coke Substances 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 4
- 241000531116 Blitum bonus-henricus Species 0.000 description 2
- 235000008645 Chenopodium bonus henricus Nutrition 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 238000007789 sealing Methods 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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
- G06Q10/00—Administration; Management
- G06Q10/10—Office automation; Time management
- G06Q10/103—Workflow collaboration or project management
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Strategic Management (AREA)
- Human Resources & Organizations (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Data Mining & Analysis (AREA)
- Signal Processing (AREA)
- Computer Networks & Wireless Communication (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses a kind of establishment of electronic contract, signature method and system, belong to e-commerce field.Methods described includes:When the second platform calls the 6th function interface to sign a contract request to the first platform transmission first, the signature picture that the first platform is selected according to signer treats execution signature operation of signing a contract;When the second platform calls the 7th function interface to sign a contract request to the first platform transmission second, the first platform treats execution signature operation of signing a contract;When the second platform calls the 3rd function interface to send the first establishment contract request to the first platform, the first platform performs establishment contract according to replacement data and corresponding contract template and operated;When the second platform calls the 4th function interface to send the second establishment contract request to the first platform, based on contract document performs the operation of establishment contract to the first platform.In the present invention, a variety of patterns for signing a contract and creating contract are provided the user, user can be selected according to demand, improve Consumer's Experience.
Description
Technical Field
The invention relates to the field of electronic commerce, in particular to a method and a system for creating and signing an electronic contract.
Background
With the development of electronic technology, the traditional contract is gradually replaced by an electronic contract, which is an agreement between two parties or multiple parties to establish, change and terminate property civil right obligation relation in electronic form through an electronic information network. The electronic contract has the advantages of convenient use, high transmission efficiency, no limitation of time and place and the like.
In the prior art, the electronic contract is usually signed by a contract-making platform to provide functions of creating a contract and signing a contract in a fixed mode for a user, and the use habits, signing modes and the like of the user are limited by the contract-making platform, so that the requirements of all users cannot be met, and the user experience is reduced.
Disclosure of Invention
In order to solve the defects of the prior art, the invention provides a method and a system for creating and signing an electronic contract.
In one aspect, the present invention provides a method for signing an electronic contract, including:
when the second platform calls the sixth function interface to send the first signing contract request to the first platform, the following operations are performed:
step C1: the sixth function interface judges whether the first signing contract request is legal or not, and if so, the first signing contract request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step C2: the first platform receives the first contract signing request, and searches a correspondingly stored contract to be signed according to a contract number contained in the first contract signing request;
step C3: the first platform acquires a contract to be displayed, searches a signature picture of a corresponding signer according to signer information contained in the first signing contract request, generates a page containing the contract to be displayed and the signature picture, opens the page through the second platform and displays the page to the signer, and executes the step C4 when receiving signing trigger information of the signer in the page;
step C4: the first platform executes signing operation on the contract to be signed according to the signing picture selected by the signer, returns a response to the second platform, and ends;
when the second platform calls the seventh function interface to send the second signing contract request to the first platform, the following operations are performed:
step D1: the seventh function interface judges whether the second signing contract request is legal or not, and if so, the seventh function interface sends the second signing contract request to the first platform; otherwise, returning an error code to the second platform, and ending;
step D2: the first platform receives the second contract signing request, searches a correspondingly stored contract to be signed according to a contract number contained in the second contract signing request, executes signing operation on the contract to be signed, returns a response to the second platform, and ends
The invention also provides a method for creating the electronic contract, which comprises the following steps:
when the second platform calls the third function interface to send the first contract creating request to the first platform, the following operations are executed:
step A1: the third function interface judges whether the first contract creating request is legal or not, and if so, the first contract creating request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step A2: the first platform receives the first contract creating request, searches a corresponding contract template according to a template identifier contained in the first contract creating request, and generates a contract to be created according to the contract template;
step A3: the first platform acquires a contract number, generates a contract to be signed according to the contract to be created and the replacement data contained in the first contract creating request, stores the contract to be signed to obtain a first storage address, correspondingly stores the first storage address and the contract number, returns a response to the second platform, and ends;
when the second platform calls the fourth function interface to send a second contract creation request to the first platform, the following operations are performed:
step B1: the fourth function interface judges whether the second contract creating request is legal or not, and if so, the second contract creating request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step B2: the first platform receives the second contract creating request, and takes a contract document contained in the second contract creating request as a contract to be signed;
step B3: and the first platform acquires a contract number, stores the contract to be signed to obtain a first storage address, correspondingly stores the first storage address and the contract number, returns a response to the second platform and finishes the process.
In another aspect, the present invention provides an electronic contract signing system, including: the system comprises a second platform module, a function interface module and a first platform module;
the function interface module comprises a sixth function interface sub-module and a seventh function interface sub-module;
the second platform module is used for calling the sixth function interface sub-module to send a first contract signing request to the first platform module;
the sixth function interface sub-module includes:
a first judgment unit, configured to judge whether the first signing contract request is legal;
the first sending unit is used for sending the first signing contract request to the first platform module when the first judging unit judges that the first signing contract request is legal;
the first error reporting unit is used for returning an error code to the second platform module when the first judging unit judges that the first signing contract request is illegal;
the first platform module, comprising:
the first receiving submodule is used for receiving a first contract signing request sent by the sixth function interface submodule;
the first searching submodule is used for searching the correspondingly stored contract to be signed according to the contract number contained in the first contract signing request received by the first receiving submodule;
the first obtaining submodule is used for obtaining the contract to be displayed;
the second searching submodule is used for searching the corresponding signing picture of the signer according to the signer information contained in the first signing contract request received by the first receiving submodule;
the first generation submodule is used for generating a page containing the contract to be displayed and the signed picture;
the first display sub-module is used for opening the page generated by the first generation sub-module through the second platform module and displaying the page to the signer;
the first receiving submodule is also used for receiving signing trigger information of the signer in a page displayed by the first display submodule;
the first signing sub-module is used for executing signing operation on the contract to be signed searched by the first searching sub-module according to the signing picture selected by the signer when the first receiving sub-module receives signing trigger information of the signer in the page displayed by the first display sub-module;
the first sending submodule is used for returning a response to the second platform module after the first signing submodule executes signing operation;
the second platform module is further configured to call the seventh function interface sub-module to send a second contract signing request to the first platform module;
the seventh function interface sub-module includes:
a second judging unit, configured to judge whether the second signing contract request is legal;
a second sending unit, configured to send the second contract signing request to the first platform module when the second determining unit determines that the second contract signing request is legal;
the second error reporting unit is used for returning an error code to the second platform module when the second judgment unit judges that the second signing contract request is illegal;
the first platform module further comprises:
the second receiving submodule is used for receiving a second contract signing request sent by the seventh function interface submodule;
the third searching submodule is used for searching the correspondingly stored contract to be signed according to the contract number contained in the second contract signing request received by the second receiving submodule;
the second signing sub-module is used for executing signing operation on the contract to be signed searched by the third searching sub-module;
and the second sending submodule is used for returning a response to the second platform module after the second signing submodule executes signing operation.
The invention also provides a system for creating the electronic contract, which comprises the following components: the system comprises a second platform module, a function interface module and a first platform module;
the function interface module includes: a third function interface submodule and a fourth function interface submodule;
the second platform module is used for calling the third function interface sub-module to send a first contract creating request to the first platform module;
the third function interface sub-module includes:
a fourth judging unit, configured to judge whether the first contract creating request is legal;
a fourth sending unit, configured to send the first contract creating request to the first platform module when the fourth determining unit determines that the first contract creating request is legal;
the fourth error reporting unit is used for returning an error code to the second platform module when the fourth judging unit judges that the first contract creating request is illegal;
the first platform module, comprising:
a fourth receiving submodule, configured to receive the first contract creation request;
the fifth searching submodule is used for searching a corresponding contract template according to the template identifier contained in the first contract creating request received by the fourth receiving submodule;
the second generating sub-module is used for generating a contract to be created according to the contract template searched by the fifth searching sub-module;
the second obtaining submodule is used for obtaining the contract number;
the third generation submodule is used for generating a contract to be signed according to the contract to be created generated by the second generation submodule and the replacement data contained in the first contract creation request received by the fourth receiving submodule;
the second storage submodule is used for storing the contract to be signed generated by the third generation submodule to obtain a first storage address;
the third saving submodule is used for correspondingly saving the first storage address obtained by the second saving submodule and the contract number obtained by the second obtaining submodule;
the fourth sending submodule is used for returning a response to the second platform module;
the second platform module is also used for calling a fourth function interface sub-module to send a second contract creating request to the first platform module;
the fourth function interface sub-module includes:
a fifth judging unit, configured to judge whether the second contract creating request is legal;
a fifth sending unit, configured to send the second contract creating request to the first platform module when the fifth determining unit determines that the second contract creating request is legal;
a fifth error reporting unit, configured to return an error code to the second platform module when the fifth determining unit determines that the second contract creation request is illegal;
the first platform module further comprises:
a fifth receiving submodule, configured to receive a second contract creation request sent by the fourth function interface submodule;
the contract document is used as a contract to be signed, and the contract document is contained in the second contract creating request received by the fifth receiving submodule;
the third obtaining submodule is used for obtaining a contract number;
the fourth storage submodule is used for storing the contract to be signed obtained by the submodule to obtain a first storage address;
the fifth saving submodule is used for correspondingly saving the first storage address obtained by the fourth saving submodule and the contract number obtained by the third obtaining submodule;
and the fifth sending submodule is used for returning a response to the second platform module.
Compared with the prior art, the invention has the following advantages:
according to the invention, various modes of contract creation and contract signing are provided for the user, the user can select according to the requirement, and the user experience is improved.
Drawings
Fig. 1 is a flowchart of a method for creating an electronic contract according to a second embodiment of the present invention;
fig. 2 and fig. 3 are flowcharts of a method for signing an electronic contract according to a third embodiment of the present invention;
fig. 4 is a block diagram of the module components of a signing system of an electronic contract according to the fourth embodiment of the present invention;
fig. 5 is a block diagram of the module components of a system for creating an electronic contract according to a fifth embodiment of the present invention.
Detailed Description
The technical solution in the embodiment of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiment of the present invention; it is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be obtained by a person skilled in the art without inventive effort based on the embodiments of the present invention, are within the scope of the present invention.
In the invention, a user (hereinafter referred to as a second platform) integrates an SDK provided by a contract-making platform (hereinafter referred to as a first platform), when a signer initiates a contract-creating or signing operation to the second platform, the second platform sends a corresponding request to the first platform by calling an interface in the SDK, and the first platform executes the corresponding operation according to the received request; when the second platform integrates the SDK provided by the first platform, the first platform creates an account corresponding to the second platform; and when the second platform communicates with the first platform for the first time, the first platform allocates a unique access token for the second platform, and the second platform uses the access token to perform subsequent data communication with the first platform.
Example one
The embodiment of the invention provides a method for creating and signing an electronic contract, wherein the method for signing the electronic contract comprises the following steps:
when the second platform calls the sixth function interface to send the first signing contract request to the first platform, the following operations are performed:
step C1: the sixth function interface judges whether the first contract signing request is legal or not, and if so, the first contract signing request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step C2: the first platform receives the first contract signing request, and searches a correspondingly stored contract to be signed according to a contract number contained in the first contract signing request;
step C3: the first platform acquires the contract to be displayed, searches the signing picture of the corresponding signer according to the signer information contained in the first signing contract request, generates a page containing the contract to be displayed and the signing picture, opens the generated page through the second platform and displays the page to the signer, and executes the step C4 when receiving the signing trigger information of the signer in the page;
step C4: the first platform executes signing operation on the contract to be signed according to the signing picture selected by the signer, returns a response to the second platform, and ends;
when the second platform calls the seventh function interface to send the second signing contract request to the first platform, the following operations are performed:
step D1: the seventh function interface judges whether the second contract signing request is legal or not, and if so, the second contract signing request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step D2: and the first platform receives the second contract signing request, searches the correspondingly stored contract to be signed according to the contract number contained in the second contract signing request, executes signing operation on the contract to be signed, returns a response to the second platform and finishes the operation.
The method for creating the electronic contract comprises the following steps:
when the second platform calls the third function interface to send the first contract creating request to the first platform, the following operations are executed:
step A1: the third function interface judges whether the first contract creating request is legal or not, and if so, the first contract creating request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step A2: the first platform receives a first contract creating request, searches a corresponding contract template according to a template identifier contained in the first contract creating request, and generates a contract to be created according to the contract template;
step A3: the first platform acquires the contract number, generates a contract to be signed according to the contract to be created and the replacement data contained in the first contract creating request, stores the contract to be signed to obtain a first storage address, correspondingly stores the first storage address and the contract number, returns a response to the second platform, and ends;
when the second platform calls the fourth function interface to send a second contract creation request to the first platform, the following operations are performed:
step B1: the fourth function interface judges whether the second contract creating request is legal or not, and if so, the second contract creating request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step B2: the first platform receives a second contract creating request, and takes a contract document contained in the second contract creating request as a contract to be signed;
step B3: and the first platform acquires the contract number, stores the contract to be signed to obtain a first storage address, correspondingly stores the first storage address and the contract number, returns a response to the second platform and finishes the process.
In step C3 in this embodiment, the step of searching for the signature picture of the corresponding signer according to the signer information contained in the first signing contract request specifically includes: the first platform searches the signature picture and the signature picture of the corresponding signer according to the signer information contained in the first signing contract request;
correspondingly, in step C3, a page containing the contract to be displayed and the signed picture is generated, specifically: generating a page containing a contract to be displayed, a signature picture and a date picture;
in step C4, the first platform performs a signing operation on the contract to be signed according to the signing picture selected by the signer, specifically:
the first platform takes the contract to be signed as a current contract to be signed, adds the signing picture selected by the signer and/or the information corresponding to the signing picture selected by the signer to the corresponding position in the current contract to be signed respectively and then takes the contract to be signed as the current contract to be signed, and calculates the abstract value of the current contract to be signed according to a preset algorithm; and finding a private key corresponding to the digital certificate of the signer according to the signer information contained in the first signing contract request, signing the abstract value by using the private key to obtain signature information, and writing the signature information and the digital certificate of the signer into the current contract to be signed.
In step a3 and step B3 of this embodiment, the first platform acquires the contract number, which specifically is:
step F: the first platform judges whether the received request contains a contract number, if so, the first platform reads the contract number contained in the received request; otherwise, generating a contract number.
Example two
An embodiment of the present invention provides a method for creating an electronic contract, as shown in fig. 1, including:
when the second platform calls the first function interface to send a contract template adding request to the first platform, the method comprises the following steps:
step 201: the first function interface judges whether the contract template adding request is legal or not, if so, the contract template adding request is sent to the first platform, and step 202 is executed; otherwise, returning an error code to the second platform, and ending;
in this embodiment, the determining, by the first function interface, whether the contract template adding request is legal specifically includes:
judging whether the template name contained in the contract template adding request is not empty and does not exceed a first preset length;
judging whether the template contained in the contract template adding request is not empty and does not exceed a second preset length;
if the judgment results are yes, judging that the contract template adding request is legal; otherwise, the contract template adding request is judged to be illegal.
Preferably, in this embodiment, the first preset length is 32 bits, and the second preset length is 65536.
Further, in this embodiment, the first function interface sends the contract template adding request to the first platform, specifically: and packaging the contract template adding request into data in a Json format, encrypting the data in the Json format to obtain a contract template adding request ciphertext, calculating a check value of the contract template adding request ciphertext, and sending the contract template adding request ciphertext, the calculated check value, the function interface identifier and the like to the first platform.
Specifically, the first platform correspondingly executes different operations according to different function interface identifiers.
Step 202: the first platform analyzes the received contract template adding request to obtain a contract template and a corresponding template identifier;
in this embodiment, the first function interface is specifically StringaddHtmltemplate (Stringtemplatinmem, Stringhtml);
for example, in this embodiment, the obtained corresponding template identifier is template0001, and the obtained contract template is:
contract for buying and selling petroleum coke
A supplier: supplier contract number: contctnum
An acquirer: book subscription time: time
According to the principle that the supply and demand parties are in equal mutual profit according to the ' people's republic of China and contractual laws ', through friendly negotiation, the following agreement is achieved for the demand party to buy petroleum coke from the supply party:
first, product name, quantity, amount
Name: tentertile
Quantity (ton): success quantity
Unit price (yuan/ton): buyPrice
Total (yuan): summrice
Secondly, the transportation mode and the related cost are undertaken: and (5) carrying out automobile transportation by self.
Thirdly, calculating mode: after all goods arrive at the appointed place of the demander, the supplier and the demander can make 17% value-added tax invoice after confirming that the goods are correct.
Fourthly, violation responsibility: according to the rules of the protocol, either party breaks the contract, and the party breaking the contract undertakes the responsibility of breaking the contract.
Fifthly, the contract takes effect: the contract is effective in transmission and takes effect after signature and seal of both parties.
A supplier: supplier demanders: eye
Supplying and sealing: and (3) requiring stamping:
step 203: if the contract template obtained by the first platform is checked to be legal, executing the step 204, otherwise, returning an error code to the second platform, and ending;
specifically, the first platform checks whether the content in the obtained contract template meets the requirement of converting the content into the document in the first preset format, if so, the obtained contract template is judged to be legal, otherwise, the obtained contract template is judged to be illegal;
preferably, in this embodiment, the first preset format is a PDF format;
for example, the first platform checks whether the content in the contract template contains characters or the like that are not recognized by the document in the PDF format.
Step 204: the first platform creates a template record corresponding to the obtained contract template, stores the obtained template identification into the created template record, and stores the template record;
in this embodiment, the first platform saves the created template record to a database storing template records.
Step 205: the first platform stores the obtained contract template, stores the storage address into the created template record and returns a response to the second platform;
specifically, the first platform stores the obtained contract template in a database, and adds the storage address to the created template record.
When the second platform calls the second function interface to send a watermark picture adding request to the first platform, the method comprises the following steps:
step 301: the second function interface judges whether the watermark adding picture request is legal or not, if so, the watermark adding picture request is sent to the first platform, and step 302 is executed; otherwise, returning an error code to the second platform, and ending;
in this embodiment, the second function interface determines whether the watermark adding request is legal, specifically:
judging whether the size, the dimension and the transparency of a watermark picture contained in the watermark picture adding request are all in corresponding preset conditions, if so, judging that the watermark picture adding request is legal; otherwise, the request for adding the watermark picture is judged to be illegal.
For example, in the present embodiment, the preset condition of the size of the watermark picture is not greater than 1M; the preset condition of the size of the watermark picture is that the width and the height are both digital and the unit is px; the preset condition of the transparency of the watermark picture is within 0% -100%.
Further, in this embodiment, the second function interface sends the request for adding the watermark to the first platform, specifically: the method comprises the steps of packaging a watermark adding picture request into data in a Json format, encrypting the data in the Json format to obtain a watermark adding picture request ciphertext, calculating a check value of the watermark adding picture request ciphertext, and sending the watermark adding picture request ciphertext, the calculated check value, a function interface identifier and the like to a first platform.
Specifically, the first platform correspondingly executes different operations according to different function interface identifiers.
Step 302: the first platform stores the watermark picture contained in the received watermark picture adding request to an account of the second platform and returns a response to the second platform;
in this embodiment, the second function interface specifically: string setWatermark (byte [ ] img, StringWatermarkset);
further, in this embodiment, when the watermark adding picture request received by the first platform further includes a watermark picture identifier corresponding to the watermark picture, in step 303, the watermark picture included in the watermark adding picture request is stored under an account of the second platform, specifically: and correspondingly storing the watermark picture and the watermark picture identification contained in the watermark picture adding request to an account of the second platform.
When the second platform calls the third function interface to send the first contract creating request to the first platform, the method comprises the following steps:
step 401: the third function interface judges whether the first contract creating request is legal, if so, the first contract creating request is sent to the first platform, and step 402 is executed; otherwise, returning an error code to the second platform, and ending;
in this embodiment, the third function interface is specifically: streaming createconctbytemplate (streaming templateName, streaming replayval, streaming containctnum, borolanius watermark);
the first contract creation request specifically includes: creating a contract request to be signed according to a contract template;
further, in this embodiment, the determining, by the third function interface, whether the first contract creating request is legal specifically includes:
judging whether the template name contained in the first contract creating request is not empty and does not exceed a first preset length;
judging whether the replacement data contained in the first contract creating request conforms to a preset format or not;
if the judgment results are yes, judging that the first contract creating request is legal; otherwise, the first contract creation request is judged to be illegal.
Preferably, in this embodiment, the first preset length is 32 bits; the preset format is a Json format; and each item in the replacement data meets a corresponding preset condition, for example, the signer's mobile phone number must be a number.
Further, in this embodiment, the third function interface sends the first contract creation request to the first platform, specifically: and packaging the first contract creating request into data in a Json format, encrypting the data in the Json format to obtain a first contract creating request ciphertext, calculating a check value of the first contract creating request ciphertext, and sending the first contract creating request ciphertext, the calculated check value, the function interface identifier and the like to the first platform.
Specifically, the first platform correspondingly executes different operations according to different function interface identifiers.
Step 402: the first platform analyzes the received first contract creating request to obtain a template identifier and replacement data;
for example, in this embodiment, the template identifier obtained by the first platform parsing the received first contract creation request is template0001, and the replacement data is { "client": three, layer ": four, and contitnum": "extract 0001", "extensetitle": "petroleum coke", "success quantity": "500", "buypice": "150", "suplice": "75000"}.
Step 403: the first platform judges whether the obtained template identifier is valid, if so, the corresponding contract template is found according to the template identifier, the corresponding contract template is stored as a contract to be created, step 404 is executed, otherwise, an error code is returned to the second platform, and the operation is finished;
specifically, the first platform judges whether the stored template record contains the obtained template identifier, and if so, the obtained template identifier is judged to be valid; otherwise, judging that the obtained template identification is invalid;
more specifically, the first platform searches template records stored in a database, sequentially reads template identifiers in the searched template records, judges whether the template identifiers identical to the obtained template identifiers can be read, if so, judges that the obtained template identifiers are valid, otherwise, judges that the obtained template identifiers are invalid;
for example, in this embodiment, the first platform reads the template identifier that is the same as the obtained template identifier from the database, and determines that the obtained template identifier is valid.
Further, in this embodiment, the finding of the corresponding contract template according to the template identifier specifically includes: and the first platform reads the storage address of the stored contract template in the template record containing the template identifier, and searches the corresponding contract template according to the read storage address.
Step 404: the first platform judges whether the first contract creating request contains a contract number, if so, the step 406 is executed, otherwise, the step 405 is executed;
specifically, the first platform judges whether a received first contract creating request contains a contract number or not, if yes, the received contract creating request contains the contract number, and if not, the received contract creating request does not contain the contract number;
for example, in the present embodiment, the received first contract creation request contains the contract num field, and it is determined that the received first contract creation request contains the contract number and the contract number is contract 0001.
Step 405: the first platform generates a contract number and executes step 407;
step 406: the first platform judges whether the contract number contained in the first contract creating request is valid, if so, step 407 is executed, otherwise, an error code is returned to the second platform, and the process is finished;
specifically, the first platform determines whether the contract number contained in the first contract creating request is occupied by other contracts, if so, determines that the contract number contained in the first contract creating request is invalid, otherwise, determines that the contract number contained in the first contract creating request is valid;
more specifically, the first platform searches for the contract records stored in the database, sequentially reads the contract numbers stored in the searched contract records, judges whether the read contract numbers are the same as the contract numbers contained in the first contract creating request, and judges that the contract numbers contained in the first contract creating request are invalid if the contract numbers contained in the first contract creating request are the same; otherwise, judging that the contract number contained in the second contract creating request is valid;
step 407: the first platform creates a contract record corresponding to the contract to be created, adds the contract number to the created contract record, saves the contract record, and executes step 408;
step 408: the first platform generates a contract document according to the obtained replacement data and the contract to be created;
specifically, the first platform uses the replacement data to replace the identifier at the corresponding position in the contract to be created to obtain a contract document;
for example, in this embodiment, the first platform replaces the identifier ' super ' in the contract to be created with the replacement data ' zhangsi ', replaces the identifier buyer ' in the contract to be created with the replacement data ' lie si ', and obtains a contract document as follows:
contract for buying and selling petroleum coke
A supplier: zhang three contracts with numbers: contact 0001
An acquirer: plum four signing time: time
According to the principle that the supply and demand parties are in equal mutual profit according to the ' people's republic of China and contractual laws ', through friendly negotiation, the following agreement is achieved for the demand party to buy petroleum coke from the supply party:
sixth, product name, quantity, sum
Name: petroleum coke
Quantity (ton): 500
Unit price (yuan/ton): 150
Total (yuan): 75000
Seventhly, the transportation mode and the related cost are undertaken: and (5) carrying out automobile transportation by self.
Eighthly, a calculation mode: after all goods arrive at the appointed place of the demander, the supplier and the demander can make 17% value-added tax invoice after confirming that the goods are correct.
Ninthly, violation liability: according to the rules of the protocol, either party breaks the contract, and the party breaking the contract undertakes the responsibility of breaking the contract.
Tenthly, the contract takes effect: the contract is effective in transmission and takes effect after signature and seal of both parties.
A supplier: zhang three demanders: li four
Supplying and sealing: and (3) requiring stamping:
step 409: the first platform converts the generated contract document into a document with a preset format, and the document with the preset format is used as a contract to be signed;
preferably, in this embodiment, the preset format is a PDF format.
Step 410: the first platform judges whether the contract to be signed needs to be added with the watermark, if so, step 411 is executed; otherwise, go to step 412;
specifically, the first platform reads data in a preset field in the contract creating request, judges whether the read data is a preset value, judges that the contract to be signed needs to be added with the watermark if the read data is the preset value, and judges that the contract to be signed does not need to be added with the watermark if the read data is the preset value;
in this embodiment, the preset field is specifically an isWatermark field, and the preset value is specifically TRUE;
for example, in this embodiment, the data in the isWatermark field in the contract request is read as TRUE, and it is determined that the contract to be signed needs to be watermarked.
Step 411: the first platform judges whether a watermark picture corresponding to the second platform exists, if so, the watermark picture corresponding to the second platform is added into the contract to be signed, and the step 412 is executed, otherwise, an error code is returned to the second platform, and the process is finished;
specifically, the first platform finds the account of the second platform according to the access token contained in the contract creating request, judges whether the found account contains a watermark picture, and adds the watermark picture in the found account into the contract to be signed if the found account contains the watermark picture; otherwise, returning an error code to the second platform, and ending;
further, in this embodiment, when the contract creation request further includes an identifier of the watermark picture;
correspondingly, step 411 specifically includes: the first platform searches a corresponding account according to an access token contained in the contract creating request, judges whether the searched account contains a watermark picture, if so, searches the corresponding watermark picture in the searched account according to the identifier of the watermark picture contained in the contract creating request, and adds the searched watermark picture into the contract to be signed; otherwise, returning error codes to the second platform, and ending.
For example, the identifier of the watermark picture contained in the contract creating request is watermark0001, the first platform finds the watermark picture corresponding to the found account in the found account, and adds the found watermark picture to the contract to be signed.
Step 412: the first platform converts the contract to be signed into a picture, and the picture is used as the contract to be displayed;
step 413: the first platform respectively stores the contract to be signed and the contract to be displayed to obtain a first storage address and a second storage address, and adds the first storage address and the second storage address to corresponding contract records;
for example, in the embodiment, the first storage address obtained by storing the contract to be signed is http:// xxxxxx/pdf/accountnumxxxxx/contact 0001, and the second storage address obtained by storing the contract to be shown is http:// xxxx/img/accountnumxxxxx/contact 0001, and is respectively added to the contract records corresponding to the contract with the contract number of contact 0001.
Step 414: and the first platform returns the contract number to the second platform, and the process is finished.
For example, in the present embodiment, the contract number contract0001 is returned to the second platform.
In this embodiment, step 413, "the first platform saves the contract to be signed and adds the storage address of the contract to be signed to the corresponding contract record", may also be located between step 411 and step 412;
correspondingly, in step 413, specifically: the first platform saves the contract to be displayed and adds the storage address of the contract to be displayed into the corresponding contract record.
Further, in this embodiment, the steps 410 to 412 may further include:
step 410-1: the first platform converts the contract to be signed into a picture, and the picture is used as the contract to be displayed;
step 411-1: the first platform judges whether the contract to be signed needs to be added with the watermark, if so, the step 412-1 is executed; otherwise, go to step 413
Step 412-1: the first platform judges whether a watermark picture corresponding to the second platform exists, if so, the watermark picture corresponding to the second platform is respectively added to the contract to be signed and the contract to be displayed, and step 413 is executed; otherwise, returning an error code to the upper computer, and ending.
Further, in this embodiment, the steps 412 to 413 may further include:
step 412-2: the first platform stores the contract to be signed to obtain a first storage address, and adds the first storage address to the corresponding contract record.
When the second platform calls the fourth function interface to send the second contract creating request to the first platform, the method comprises the following steps:
step 501: the fourth function interface judges whether the second contract creating request is legal, if so, the second contract creating request is sent to the first platform, and step 502 is executed; otherwise, returning an error code to the second platform, and ending;
in this embodiment, the fourth function interface is specifically a String uploadtrack (String data, String type, String connected num, bolt isWatermark);
the second contract creation request specifically includes: a request to sign a contract is created from the contract document.
Further, in this embodiment, the determining, by the fourth function interface, whether the second contract creation request is legal specifically includes:
judging whether the type of the contract document contained in the second contract creating request is a supported file type or not;
judging whether the contract document contained in the second contract creating request is not empty and does not exceed a preset size;
if the judgment results are yes, judging that the second contract creating request is legal; otherwise, the second contract creation request is judged to be illegal.
In the present embodiment, the supported contract document formats include doc, docx, xls, xlsx, ppt, pptx, pdf, etc.; the preset maximum is 5 million.
Further, in this embodiment, the fourth function interface sends the second contract creation request to the first platform, specifically: and packaging the second contract creating request into data in a Json format, encrypting the data in the Json format to obtain a second contract creating request ciphertext, calculating a check value of the second contract creating request ciphertext, and sending the second contract creating request ciphertext, the calculated check value, the function interface identifier and the like to the first platform.
Specifically, the first platform correspondingly executes different operations according to different function interface identifiers.
Step 502: the first platform analyzes the received second contract creating request to obtain a contract document, judges whether the contract document is in a preset format, if so, takes the contract document as a contract to be signed, and executes step 503; otherwise, converting the received contract document into a preset format to be used as a contract to be signed, and executing step 503;
in this embodiment, the format of the contract document received by the first platform may be any one of doc, docx, xls, xlsx, ppt, pptx, and pdf;
preferably, in this embodiment, the preset format is a pdf format;
in this embodiment, the first platform converts the received contract document into pdf format, specifically: the first platform calls an OFFICE document conversion platform to convert the OFFICE document into a pdf format;
for example, in this embodiment, the received contract document is in doc format, and the first platform calls the OFFICE document conversion platform to convert it into pdf format.
Step 503: the first platform judges whether the received second contract creating request contains a contract number, if so, the step 505 is executed; otherwise, go to step 504;
specifically, the first platform judges whether the received contract creating request contains a contract number or not, if so, judges that the received second contract creating request contains a contract number, and otherwise, judges that the received second contract creating request does not contain the contract number;
for example, in the present embodiment, the received second contract creation request includes the contract num field, and it is determined that the received second contract creation request includes the contract number and the contract number is contract 0002.
Step 504: the first platform generates a contract number and executes step 506;
step 505: the first platform judges whether the contract number contained in the second contract creating request is valid, if so, step 506 is executed, otherwise, an error code is returned to the second platform, and the process is finished;
specifically, the first platform judges whether the contract number contained in the second contract creating request is occupied by other contracts, if so, judges that the contract number contained in the second contract creating request is invalid, otherwise, judges that the contract number contained in the second contract creating request is valid;
more specifically, the first platform searches for the contract records stored in the database, sequentially reads the contract numbers stored in the searched contract records, judges whether the read contract numbers are the same as the contract numbers contained in the second contract creation request, and judges that the contract numbers contained in the second contract creation request are invalid if the read contract numbers are the same as the contract numbers contained in the second contract creation request; otherwise, the contract number contained in the second contract creating request is judged to be valid.
Step 506: the first platform creates a contract record corresponding to the contract to be signed, adds the contract number to the created contract record, saves the contract record and executes the step 507;
step 507: the first platform determines whether the contract to be signed needs to be watermarked, if so, executes step 508; otherwise, go to step 509;
specifically, the first platform reads data in a preset field in the second contract creating request, judges whether the read data is a preset value, judges that the contract to be signed needs to be added with the watermark if the read data is the preset value, and judges that the contract to be signed does not need to be added with the watermark if the read data is the preset value;
in this embodiment, the preset field is specifically an isWatermark field, and the preset value is specifically TRUE;
for example, in this embodiment, the data in the isWatermark field in the contract request is read as TRUE, and it is determined that the contract to be signed needs to be watermarked.
Step 508: the first platform determines whether a watermark picture corresponding to the second platform exists, if yes, the watermark picture corresponding to the second platform is added to the contract to be signed, and step 509 is executed; otherwise, returning an error code to the upper computer, and ending;
in this embodiment, the implementation method of step 508 is the same as the implementation method of step 411, and is not described herein again.
Step 509: the first platform converts the contract to be signed into a picture, and the picture is used as the contract to be displayed;
step 510: the first platform respectively stores the contract to be signed and the contract to be displayed to obtain a first storage address and a second storage address, and adds the first storage address and the second storage address to corresponding contract records;
for example, in the embodiment, the first storage address obtained by storing the contract to be signed is http:// xxxxxx/pdf/accountnumxxxxx/contact 0002, the second storage address obtained by storing the contract to be shown is http:// xxxxxx/img/accountnumxxxxx/contact 0002, and the second storage address is added to the contract record corresponding to the contract with the contract number of contact 0002.
Step 511: and the first platform returns the contract number to the second platform, and the process is finished.
For example, in the present embodiment, the first platform returns the contract number contract0002 to the second platform.
In this embodiment, step 510, "the first platform saves the contract to be signed, and adds the storage address of the contract to be signed to the corresponding contract record", may also be located between step 508 and step 509;
correspondingly, step 510 specifically includes: the first platform saves the contract to be displayed and adds the storage address of the contract to be displayed into the corresponding contract record.
Further, in this embodiment, steps 507 to 509 may further be:
step 507-1: the first platform converts the contract to be signed into a picture, and the picture is used as the contract to be displayed;
step 508-1: the first platform determines whether the contract to be signed needs to be watermarked, if so, executes step 509-1; otherwise, go to step 510
Step 509-1: the first platform judges whether a watermark picture corresponding to the second platform exists, if so, the watermark picture corresponding to the second platform is respectively added to the contract to be signed and the contract to be displayed, and step 510 is executed; otherwise, returning an error code to the upper computer, and ending.
Further, in this embodiment, step 509 and step 510 may further be:
step 509-2: the first platform stores the contract to be signed to obtain a first storage address, and adds the first storage address to the corresponding contract record.
In this embodiment, the first platform provides multiple contract creation modes for the second platform, and the second platform can call the third function interface to select to create a contract according to the template, and can call the fourth function interface to select to create a contract according to the contract document.
EXAMPLE III
The third embodiment of the present invention provides a signing method for an electronic contract, which includes an authentication signer process and an electronic contract signing process, and specifically, as shown in fig. 2 and 3, includes:
when the second platform calls the fifth function interface to send the authentication identity request to the first platform, the method comprises the following steps:
step 601: the fifth function interface judges whether the authentication identity request is legal, if so, the authentication identity request is sent to the first platform, and step 602 is executed; otherwise, returning an error code to the second platform, and ending;
in this embodiment, the fifth function interface is specifically a String sendsendaddverifyinfo (String designer, String connected number, String type);
further, in this embodiment, the fifth function interface determines whether the authentication identity request is legal, specifically:
judging whether the contract number contained in the authentication identity request does not exceed a third preset length;
judging whether signer information contained in the identity authentication request conforms to a preset format or not;
if the judgment result is yes, judging that the authentication identity request is legal; otherwise, the authentication identity request is judged to be illegal.
Preferably, in this embodiment, the third preset length is 64 bits; the preset format is a Json format, and each item in the signer information meets a corresponding preset condition, for example, the mobile phone number of the signer must be a number.
Further, in this embodiment, the fifth function interface sends the authentication identity request to the first platform, specifically: the authentication identity request is packaged into data in a Json format, data in the Json format are encrypted to obtain an authentication identity request ciphertext, a check value is calculated for the authentication identity request ciphertext, and the authentication identity request ciphertext, the calculated check value, the function interface identification and the like are sent to the first platform.
Specifically, the first platform correspondingly executes different operations according to different function interface identifiers.
Step 602: the first platform analyzes the received authentication identity request to obtain a contract number and signer identity information;
in this embodiment, the signer identity information includes, but is not limited to: signer name, signer mobile phone number, signer certificate type, certificate number and the like;
further, in this embodiment, when the signer is an individual, the signer certificate type and the certificate number are preferably an identity card and an identification card number; when the signer is an enterprise, the signer certificate type and the signer certificate number are preferably a business license and a business license number;
preferably, in this embodiment, the signer is a person;
for example, in this embodiment, the contract number obtained by the first platform parsing the received authentication identity request is contact 0001, and the obtained signer identity information is { "type": 0"," cardtype ": 0", "idcardnum": 0000111122223333"," name ": three in tension", "phonesn": 18812345678"}, where" type ": 0" indicates that the signer is a person, "cardtype": 0 "indicates that the signer certificate type is an identity card, and" idcardnum ": 0000111122223333" indicates that the signer certificate number is 0000111122223333; "name": three in a page "identifies the signer's name as three in a page, and" 18812345678 "indicates the signer's phone number as 18812345678.
Step 603: the first platform judges whether a contract record corresponding to the obtained contract number exists, if so, step 604 is executed, otherwise, an error code is returned to the second platform, and the process is finished;
specifically, the first platform searches for contract records stored in a database, sequentially reads contract numbers stored in the searched contract records, judges whether the read contract numbers are the same as the contract numbers obtained by analysis, and judges that the contract records corresponding to the obtained contract numbers exist if the read contract numbers are the same as the contract numbers obtained by analysis; otherwise, judging that no contract record corresponding to the obtained contract number exists;
for example, in this embodiment, the first platform finds the contract number contract0001 that is the same as the obtained contract number in the database, determines that there is a contract record corresponding to the obtained contract number, and executes step 604.
Step 604: the first platform sends an authentication code to the signer according to the obtained signer information, and correspondingly adds the signer information and the sent authentication code to the contract record corresponding to the obtained contract number;
in this embodiment, the sending, by the first platform, the authentication code to the signer according to the obtained signer information specifically includes: the first platform sends an authentication code to the mobile phone number of the signer contained in the obtained signer information;
for example, in this embodiment, the first platform sends the authentication code 123456 to the signer's mobile phone number 18812345678, and adds the signer information { "type": 0"," cardtype ": 0", "idcardnum": 0000111122223333"," name ": zhang (zhang) >)," phonesn ": 18812345678" } and the authentication code 123456 to the contract record corresponding to the obtained contract number contract 0001.
Further, in this embodiment, when the signer receives the authentication code, the signer inputs the received authentication code in the input box of the second platform, and the second platform may invoke the sixth function interface to select the manual contract signing mode or invoke the seventh function interface to select the automatic contract signing mode according to the received authentication code and the signer information, and send a contract signing request to the first platform;
when the second platform calls the sixth function interface to send the first signing contract request to the first platform, the method comprises the following steps:
step 701: the sixth functional interface judges whether the first signing contract request is legal, if so, the first signing contract request is sent to the first platform, and step 702 is executed; otherwise, returning an error code to the second platform, and ending;
in this embodiment, the sixth function interface is specifically a String managesigjn (String signallnfo, String containctrum, String callUrl);
the first contract signing request specifically comprises: the contract request is manually signed.
Further, in this embodiment, the sixth function interface determines whether the first contract signing request is legal, specifically:
judging whether the contract number contained in the first contract signing request does not exceed a third preset length;
judging whether the signer information contained in the first signing contract request conforms to a preset format or not;
if the judgment result is yes, judging that the first signing contract request is legal; otherwise, the first signing contract request is judged to be illegal.
Preferably, in this embodiment, the third preset length is 64 bits, the preset format is a Json format, and each item in the signer information meets a corresponding preset condition, for example, the mobile phone number of the signer must be a number.
Further, in this embodiment, the sixth function interface sends the first contract signing request to the first platform, specifically: and packaging the first signing contract request into data in a Json format, encrypting the data in the Json format to obtain a first signing contract request ciphertext, calculating a check value of the first signing contract request ciphertext, and sending the first signing contract request ciphertext, the calculated check value, the function interface identifier and the like to the first platform.
Specifically, the first platform correspondingly executes different operations according to different function interface identifiers.
Step 702: the first platform analyzes the received first signing contract request to obtain an authentication code, a contract number and signer information;
for example, in this embodiment, the first platform parses the received first signing contract request to obtain an authentication code of 123456, a contract number of contact 0001, signer information of { "type": 0"," cardtype ": 0", "idcardnum": 0000111122223333"," name ": zhang", "phonesn": 18812345678 ".
Step 703: the first platform judges whether a contract record corresponding to the obtained contract number exists, if so, step 704 is executed, otherwise, an error code is returned to the second platform, and the process is finished;
specifically, the first platform searches for contract records stored in a database, sequentially reads contract numbers stored in the searched contract records, judges whether the read contract numbers are the same as the contract numbers obtained through analysis, judges whether the contract records corresponding to the obtained contract numbers exist or not if the contract numbers are the same, and judges whether the contract records corresponding to the obtained contract numbers do not exist or not;
for example, in this embodiment, the first platform finds the contract number contract0001 identical to the obtained contract number in the database, and determines that there is a contract record corresponding to the obtained contract number.
Step 704: the first platform judges whether the obtained contract record corresponding to the contract number contains the obtained signer information, if so, the first platform reads the authentication code corresponding to the obtained signer information, and executes the step 705, otherwise, the first platform returns an error code to the second platform, and the process is finished;
step 705: the first platform judges whether the read authentication code is matched with the obtained authentication code, if so, step 706 is executed; otherwise, returning an error code to the second platform, and ending;
specifically, the first platform determines whether the read authentication code is the same as the obtained authentication code, if so, step 706 is executed, otherwise, an error code is returned to the second platform;
for example, in this embodiment, the authentication code read by the first platform is 123456, and if the authentication code is the same as the obtained authentication code, step 706 is executed.
Step 706: the first platform reads a second storage address in the contract record corresponding to the obtained contract number, and searches the contract to be displayed according to the read second storage address;
for example, in the present embodiment, the second memory address read is http:// xxxxxx/img/accountnumxxxxx/contact 0001.
Step 707: the first platform searches the signature picture of the signer according to the obtained signer information, judges whether the search is successful, if so, executes step 708, otherwise, generates and stores the signature picture of the signer according to the signer name in the obtained signer information, and executes step 708;
in this embodiment, the signer can upload the self signature picture to the first platform through the second platform at any time, when the first platform receives the signature picture, judge whether the contract record stored in the database stores the signer information corresponding to the signature picture, if yes, correspondingly store the received signature picture and the signer certificate number in the signer information into the signature picture database;
correspondingly, in this embodiment, the first platform searches for the signature picture of the signer according to the obtained signer information, and determines whether the search is successful, specifically: the first platform sequentially reads the signer certificate numbers stored in the signature picture database, judges whether the signer certificate number identical to the signer certificate number contained in the obtained signer information can be read, if so, judges that the search is successful, otherwise, judges that the search is failed;
further, in this embodiment, after the first platform generates the signature picture of the signer according to the signer name in the obtained signer information, the generated signature picture and the signer certificate number included in the signer information are stored in the signature picture database in a corresponding manner.
Step 708: the first platform searches the signature picture of the signer according to the obtained signer information, judges whether the search is successful, if so, executes step 716, otherwise, executes step 709;
in this embodiment, the signer can upload the self signature picture to the first platform through the second platform at any time, when the first platform receives the signature picture, the first platform judges whether the contract record stored in the database stores the signer information corresponding to the signature picture, if yes, the received signature picture and the signer certificate number in the signer information are correspondingly stored in the signature picture database;
correspondingly, in this embodiment, the first platform searches for the signature picture of the signer according to the obtained signer information, and determines whether the search is successful, specifically: the first platform sequentially reads the signer certificate numbers stored in the signer picture database, judges whether the signer certificate number identical to the signer certificate number contained in the obtained signer information can be read, if so, judges that the search is successful, otherwise, judges that the search is failed.
Step 709: the first platform generates a page containing a contract to be displayed, a signature picture and a date picture of a signer, the generated page is opened through the second platform and displayed to the signer, and when signing trigger information is received, step 710 is executed;
specifically, the first platform adds the contract to be displayed, the signature picture and the date picture of the signer to a preset operation page, and returns the address of the preset operation page to the second platform, the second platform opens the preset operation page corresponding to the received address, the contract to be displayed, the signature picture and the date picture of the signer are displayed to the signer, and when the signing trigger information is received, the step 710 is executed;
further, in this embodiment, after the second platform displays the contract to be presented and the signature picture and the date picture of the signer to the signer, the signer drags the signature picture and/or the date picture to the corresponding position in the contract to be presented according to the self requirement, clicks the signing icon, and the first platform performs signing operation on the contract to be signed according to the picture selected by the signer.
Preferably, in this embodiment, the signer drags both the signature picture and the date picture to the corresponding positions in the contract to be presented.
Step 710: the first platform judges whether the digital certificate of the signer exists, if so, the step 711 is executed, otherwise, the first platform applies for the digital certificate and distributes the digital certificate to the signer corresponding to the obtained signer information, and the step 711 is executed;
specifically, the first platform judges whether a signer certificate number contained in the obtained signer information exists in a database storing the digital certificate, if so, the digital certificate of the signer exists, otherwise, the digital certificate of the signer does not exist;
further, in this embodiment, applying for a digital certificate and assigning the digital certificate to a signer corresponding to the obtained signer information specifically includes: the first platform applies for a digital certificate from a digital certificate issuing organization, correspondingly stores the applied digital certificate and the certificate number of a signer in a database storing the digital certificate, establishes association between the applied digital certificate and a corresponding private key, and stores the private key;
further, in this embodiment, the process of the first platform applying for the digital certificate to the digital certificate authority is not described in detail herein;
for example, in this embodiment, a digital certificate of the signer is present, specifically MIIDRzCCAi + gAwIBAgIEEGAAATANBgqhkgG 9w0 BAQUFADMBCMQswCQYDVQGEwJDTjELMAkGA 1 CcwCRlQxEjAQBgNVBAsMCUNsb 3VkU2lnbjESMBAGA 1. 8MIGKm8 xSJFyDsCnWYDg 8LLjfb60 xBpcoKWVWwzsHlmdg 628a3 DGFUO.
Step 711: the first platform reads the first storage address in the contract record corresponding to the obtained contract number, searches the contract to be signed according to the first storage address, and opens the contract to be signed;
step 712: the first platform adds the signature picture of the signer to a corresponding position in the contract to be signed to serve as the current contract to be signed, and calculates the current contract to be signed to obtain a first abstract value;
in this embodiment, the calculating the current contract to be signed to obtain the first digest value specifically includes: the first platform carries out Hash operation on the current contract to be signed according to a preset algorithm to obtain a first abstract value;
preferably, the preset algorithm is sha 256; the preset algorithm is not limited to sha256, and can also be SM3 and the like;
for example, in this embodiment, the first platform adds the signature picture of the signer to the position of the supplier's signature in the contract to be signed, and performs a hash operation on the current contract to be signed according to the sha256 algorithm to obtain a first digest value of bdgf34gf3 erbb 3534h 56.
Step 713: the first platform finds out a private key corresponding to the digital certificate of the signer, signs the first abstract value by using the private key to obtain first signature information, and writes the first signature information and the digital certificate of the signer into a current contract to be signed;
for example, in this embodiment, the first platform finds that the private key corresponding to the signer's digital certificate is 8667290c1388daa fb184016fc42f3fbeb5326663e09e594a184a80aa810db018662df953c9a939b5 4623 b8b8ce29ddaf8578ec53638cfa0e81dda472735 bddfdffe 5877f5d 581877 c0d cd495 · · · · · · · · b2bee fc96f1c23 c29c 95fe1a3d45518626776fe7911650062b15af42bff443523b78183111c0931280059a3e 8246 da bbe f7bf 5da 50a2fd7c75740 c1, and signs the current signature of cgubfw dogqkufw 3692 hgefg 3692 fw dogfkufw 3692 and fw 3692 fw dogh 3692 fw.
Step 714: the first platform acquires the current date, adds the current date to a corresponding position in the current contract to be signed to serve as the current contract to be signed, and calculates the current contract to be signed to obtain a second abstract value;
in this embodiment, the method for calculating the current contract to be signed to obtain the second digest value is the same as the method for calculating the current contract to be signed to obtain the first digest value in step 712, and details are not repeated herein;
for example, in this embodiment, the first platform acquires that the current date is 1 month and 8 days in 2017, adds the current date to the current contract to be signed as the current generation signed contract after the signing date, and calculates the current contract to be signed to obtain a second digest value of bdf242t43 fhbtthyyjy 8i 6.
Step 715: the first platform finds out a private key corresponding to the digital certificate of the signer, signs the second abstract value by using the private key to obtain second signature information, and writes the second signature information and the digital certificate of the signer into the current contract to be signed;
for example, in this embodiment, the first platform uses the private key 8667290c1388daa fb184016fc42f3fbeb5326663e09e594a184a80aa810db018662df953c9a939b5cbe b 23b8b8ce29ddaf8578ec53638cfa0e81dda472735bddfe5877f5d336436019990ecd1877c0d531cd495 · · · · · · · · · · · · · b2bee fc96f1c23ac29c2895fe1a3d45518626776fe7911650062b15af42b 4642 b78183111c0931280059a3e86516da46bbe f7bf 5da9250a2fd7c75740b9c1 to sign the second digest value bdf fbtfb 242 f 43 fhbyy jy8i6 t 598 i with the second signature of the second digest tlyth 24 fht 598 fth b.
Further, in the present embodiment, the execution order of step 712 and step 713 and the execution order of step 714 and step 715 may be interchanged.
Step 716: the first platform generates a page containing a contract to be displayed, a signature picture and a date picture of a signer, the generated page is opened through the second platform and displayed to the signer, and when signing trigger information is received, step 717 is executed;
specifically, the first platform adds the contract to be displayed, the signature picture of the signer and the date picture to a preset operation page, and returns the address of the preset operation page to the second platform, the second platform opens the preset operation page corresponding to the received address, displays the contract to be displayed, the signature picture of the signer and the date picture of the signer to the signer, and executes the step 717 when receiving the signing trigger information;
further, in this embodiment, after the second platform displays the contract to be presented, the signature picture of the signer, the signature picture and the date picture of the signer to the signer, the signer drags the signature picture and/or the date picture to the corresponding position in the contract to be presented according to the self requirement, clicks the signing icon, and the first platform performs signing operation on the contract to be signed according to the picture selected by the signer.
Preferably, in this embodiment, the signer drags the signature picture, the signature picture and the date picture to corresponding positions in the contract to be shown.
Step 717: the first platform judges whether the digital certificate of the signer exists, if so, step 718 is executed, otherwise, the first platform applies for the digital certificate and distributes the digital certificate to the signer corresponding to the obtained signer information, and step 718 is executed;
in this embodiment, the implementation method of step 717 is the same as that of step 710, and is not described herein again.
For example, in this embodiment, a digital certificate of the signer is present, specifically MIIDRzCCAi + gAwIBAgIEEGAAATANBgqhkgG 9w0 BAQUFADMBCMQswCQYDVQGEwJDTjELMAkGA 1 CcwCRlQxEjAQBgNVBAsMCUNsb 3VkU2lnbjESMBAGA 1. 8MIGKm8 xSJFyDsCnWYDg 8LLjfb60 xBpcoKWVWwzsHlmdg 628a3 DGFUO.
Step 718: the first platform reads the first storage address in the contract record corresponding to the obtained contract number, searches the contract to be signed according to the first storage address, and opens the contract to be signed;
step 719: the first platform adds the signature picture of the signer to a corresponding position in the contract to be signed to serve as the current contract to be signed, and calculates the current contract to be signed to obtain a first abstract value;
in this embodiment, the calculating the current contract to be signed to obtain the first digest value specifically includes: the first platform carries out Hash operation on the current contract to be signed according to a preset algorithm to obtain a first abstract value;
preferably, the preset algorithm is sha 256; the preset algorithm is not limited to sha256, and can also be SM3 and the like;
for example, in this embodiment, the first platform performs a hash operation on the current contract to be signed according to the sha256 algorithm to obtain a first digest value of bdgf34gf3 erbb 3534h 56.
Step 720: the first platform finds out a private key corresponding to the digital certificate of the signer, signs the first abstract value by using the private key to obtain first signature information, and writes the first signature information and the digital certificate of the signer into a current contract to be signed;
for example, in this embodiment, the first platform finds that the private key corresponding to the signer's digital certificate is 8667290c1388daa fb 7fb184016fc42f3fbeb5326663e09e594a184a80aa810db018662df953c9a939b5cbe b8b8ce29ddaf8578ec53638cfa0e dda472735 bddffe 5877f5d336436019990ecd d1877c0d cd495 · · · · · · · b2 398 fc96f1c23 c29c 95fe1a3d45518626776fe7911650062b15af42b bff443523b78183111c0931280059a3e86516da46bbe f7bf 5da 50a2fd7c75740 c1, and signs the first digest value bfgf 34g 3534 g 68634 g3534h56 with a undifff 927 b 27 fw 9227 fw 27 fw 928 fw 94 b 27 fw 94 b 638 fw 94 jvg 928.
Step 721: the first platform acquires the current date, adds the current date to a corresponding position in the current contract to be signed to serve as the current contract to be signed, and calculates the current contract to be signed to obtain a second abstract value;
in this embodiment, the method for calculating the current contract to be signed to obtain the second digest value is the same as the method for calculating the current contract to be signed to obtain the first digest value in step 712, and details are not repeated herein;
for example, in this embodiment, the calculated second digest value is bdf242t43 fhbtyjy 8i 6.
Step 722: the first platform finds out a private key corresponding to the digital certificate of the signer, signs the second abstract value by using the private key to obtain second signature information, and writes the second signature information and the digital certificate of the signer into the current contract to be signed;
for example, in this embodiment, the first platform uses the private key 8667290c1388daa fb184016fc42f3fbeb5326663e09e594a184a80aa810db018662df953c9a939b5cbe b 23b8b8ce29ddaf8578ec53638cfa0e81dda472735bddfe5877f5d336436019990ecd d1877c0d531cd495 · · · · · · · · · b2bee fc96f1c23ac29c2895fe1a3d45518626776fe7911650062b15af42b 4642 b78183111c0931280059a3e86516da46bbe f7bf 5da9250a2fd7c75740b9c1 to sign the second digest value bdf t43 fhbywy 8i 598 h signature 12 fhyth b.
Step 723: the first platform adds the signature picture of the signer to a corresponding position in the current contract to be signed to serve as the current contract to be signed, and calculates the current contract to be signed to obtain a third abstract value;
step 724: the first platform finds out a private key corresponding to the digital certificate of the signer, uses the private key to sign the third abstract value to obtain third signature information, and writes the third signature information and the digital certificate of the signer into the current contract to be signed;
for example, in this embodiment, the first platform uses the private key 8667290c1388daa fb184016fc42f3fbeb5326663e09e594a184a80aa810db018662df953c9a939b5cbe b8b8ce29ddaf8578ec53638cfa0e81dda472735bddfe5877f5d336436019990ecd1877c0d531cd495 · · · · · · · · · · · · · · · · · · · · · · · b2bee fc96f1c23ac29c2895fe1a3d45518626776fe7911650062b15af42 b78183111 b6 c0931280059a3e86516da 3646 f7bf5 bf 9250a2fd7c75740 c1 to sign bqwwegry 343 yh 5yh 465 yh 4544 yh 44 yh.
Further, in the present embodiment, the execution orders of step 719 and step 720, step 721 and step 722, step 723 and step 724 may be interchanged with each other.
Step 725: the first platform takes the current contract to be signed as a signed contract, stores the signed contract and returns signing completion information to the second platform.
Preferably, in this embodiment, in step 702, the first signing contract request received by the first platform includes a signing completion information return address;
correspondingly, in step 725, the first platform returns the signing completion information to the second platform, specifically: the first platform returns the signing completion information to the second platform according to the signing completion information return address contained in the first signing contract request;
further, in this embodiment, when the signing completion information return address is not specified in the first signing contract request, correspondingly, in step 715, the first platform returns the signing completion information to the second platform, specifically: and the first platform returns the signing completion information to the second platform according to the default address.
Further, in this embodiment, when the step 412 and the step 413 are specifically the step 412-2, or when the step 509 and the step 510 are specifically the step 509-2, correspondingly:
step 706 specifically includes: the first platform finds out a corresponding contract to be signed according to the obtained contract number, and converts the found contract to be signed into a picture as a contract to be displayed;
step 711 specifically includes: and the first platform opens the searched contract to be signed.
When the second platform calls the seventh function interface to send the second contract signing request to the first platform, the method comprises the following steps:
step 801: the seventh function interface judges whether the second contract signing request is legal, if so, the second contract signing request is sent to the first platform, and step 802 is executed; otherwise, returning an error code to the second platform, and ending;
in this embodiment, the seventh function interface is specifically: string autoSign (String SignerInfo, String Connectnum, String callUrl);
the second contract signing request specifically comprises: automatically signing the contract request;
further, in this embodiment, the seventh function interface determines whether the second contract signing request is legal, specifically:
judging whether the contract number contained in the second contract signing request does not exceed a third preset length;
judging whether the signer information contained in the second signing contract request conforms to a preset format or not;
if the judgment result is yes, judging that the second signing contract request is legal; otherwise, the second signing contract request is determined to be illegal.
Preferably, in this embodiment, the third preset length is 64 bits, the preset format is a Json format, and each item in the signer information meets a corresponding preset condition, for example, the mobile phone number of the signer must be a number.
Further, in this embodiment, the seventh function interface sends the second contract signing request to the first platform, specifically: and packaging the second signing contract request into data in a Json format, encrypting the data in the Json format to obtain a second signing contract request ciphertext, calculating a check value of the second signing contract request ciphertext, and sending the second signing contract request ciphertext, the calculated check value, the function interface identifier and the like to the first platform.
Specifically, the first platform correspondingly executes different operations according to different function interface identifiers.
Step 802: the first platform analyzes the received second signing contract request to obtain an authentication code, a contract number and signer information;
in this embodiment, the signer information includes, but is not limited to: signer name, signer mobile phone number, signer certificate type and certificate number, signing type (enterprise or personal), etc.;
further, in this embodiment, when the signer is an individual, the signer certificate type and the certificate number are preferably an identity card and an identification card number; when the signer is an enterprise, the signer certificate type and the signer certificate number are preferably a business license and a business license number;
preferably, in this embodiment, the signer is a person;
for example, in this embodiment, the first platform parses the received second contract signing request to obtain an authentication code of 123456, a contract number of contact 0001, signer information of { "type": 0"," cardtype ": 0", "idcardnum": 0000111122223333"," name ": zhang", "phonesn": 18812345678 ".
Step 803: the first platform judges whether a contract record corresponding to the obtained contract number exists, if so, step 804 is executed, otherwise, an error code is returned to the second platform, and the process is finished;
specifically, the first platform searches for a contract record in a database in which the contract record exists, sequentially reads contract numbers contained in the searched contract records, judges whether the read contract number is the same as the contract number obtained by analysis, judges whether the contract record corresponding to the obtained contract number exists or not, and judges whether the contract record corresponding to the obtained contract number does not exist or not;
for example, in this embodiment, the first platform finds the contract number contract0001 that is the same as the obtained contract number in the database in which the contract records exist, and determines that the contract record corresponding to the obtained contract number exists.
Step 804: the first platform judges whether the contract record corresponding to the obtained contract number contains the obtained signer information, if so, the first platform reads the authentication code corresponding to the obtained signer information and executes the step 805, otherwise, the first platform returns an error code to the second platform and finishes;
step 805: the first platform judges whether the read authentication code is matched with the obtained authentication code, if so, step 806 is executed, otherwise, an error code is returned to the second platform, and the process is finished;
specifically, the first platform determines whether the read authentication code is the same as the obtained authentication code, and if so, determines that the read authentication code is matched with the obtained authentication code, and executes step 806; otherwise, judging that the read authentication code is not matched with the obtained authentication code, returning an error code to the second platform, and ending;
for example, in this embodiment, the authentication code read by the first platform is 123456, and if the authentication code is the same as the obtained authentication code, step 806 is executed.
Step 806: the first platform judges whether the digital certificate of the signer corresponding to the obtained signer information exists, if so, the step 807 is executed, otherwise, the first platform applies for the digital certificate and distributes the digital certificate to the signer corresponding to the obtained signer information, and the step 807 is executed;
in this embodiment, the implementation method of step 806 is the same as that of step 710, and is not described herein again;
for example, in this embodiment, a digital certificate of the signer is present, specifically MIIDRzCCAi + gAwIBAgIEEGAAATANBgqhkgG 9w0 BAQUFADMBCMQswCQYDVQGEwJDTjELMAkGA 1 CcwCRlQxEjAQBgNVBAsMCUNsb 3VkU2lnbjESMBAGA 1. 8MIGKm8 xSJFyDsCnWYDg 8LLjfb60 xBpcoKWVWwzsHlmdg 628a3 DGFUO.
Step 807: the first platform reads the first storage address in the contract record corresponding to the obtained contract number, searches the contract to be signed according to the first storage address, and opens the contract to be signed;
step 808: the first platform calculates the searched contract to be signed to obtain a fourth abstract value;
specifically, the first platform performs hash operation on the contract to be signed according to a preset algorithm to obtain a fourth abstract value;
preferably, the preset algorithm is sha 256; the preset algorithm is not limited to sha256, and can also be SM3 and the like;
for example, in this embodiment, the first platform performs a hash operation on the contract to be signed according to the sha256 algorithm to obtain a fourth digest value bgew23gghfh4rty45y 2.
Step 809: the first platform finds out a private key corresponding to the digital certificate of the signer, uses the private key to sign the fourth abstract value to obtain fourth signature information, and writes the fourth signature information and the digital certificate of the signer to a contract to be signed to be used as a signed contract;
for example, in this embodiment, the first platform finds that the private key corresponding to the signer's digital certificate is 8667290c1388daa fb184016fc42f3fbeb5326663e09e594a184a80aa810db018662df953c9a939b5cbe b8b8ce29ddaf8578ec53638cfa0e81dda472735 bddffe 5877f5d336436019990ecd1877c0d cd495 · · · · · · · · · · · · · · · · · b2bee fc96f1c23ac29c 95fe1a3d45518626776fe7911650062b15af42bff443523b78183111c0931280059a3e86516da46bbe f7bf 5da 50a2fd7c75740b 1c 1, and signs 2 hgyregh 9224 of the fourth digest value bghey 598 hgyh 24 with 5935 hgyh 9224 and 598 hgyh 92 hgyh 24 and 5912 hgyh 12 hgyh 24.
Step 810: the first platform saves the signed contract and returns the signing completion information to the second platform, and the process is finished.
Further, in this embodiment, when the contract template obtained by the first platform in step 202 includes a set signing position, the signing position is specifically a signature position and/or a signing date position;
correspondingly, steps 808 and 809 specifically include: the first platform searches the signature picture and/or signature picture of the signer according to the signer information contained in the contract signing request, and executes signing operation on the contract to be signed according to the searched signature picture and/or current date;
further, when the signing position set in the contract template obtained by the first platform in step 202 includes a signing position, if the signing picture of the signer is not found by the first platform according to the signer information included in the contract signing request, the signer is prompted to upload the signing picture through the second platform.
In this embodiment, the first platform provides multiple methods of signing the electronic contract for the second platform, which may choose to sign manually or automatically.
Example four
An embodiment of the present invention provides a signing system of an electronic contract, as shown in fig. 4, including: a second platform module 1000, a function interface module 2000 and a first platform module 3000;
the function interface module 2000 includes a sixth function interface submodule 2001 and a seventh function interface submodule 2002;
the second platform module 1000 is configured to call the sixth function interface sub-module 2001 to send a first contract signing request to the first platform module 3000;
the sixth function interface submodule 2001 includes:
a first judgment unit 2001-1 for judging whether the first signing contract request is legal;
in this embodiment, the first determining unit 2001-1 is specifically configured to:
judging whether the contract number contained in the first contract signing request does not exceed a third preset length;
judging whether the signer information contained in the first signing contract request conforms to a second preset format or not;
if the judgment result is yes, judging that the first signing contract request is legal; otherwise, the first signing contract request is judged to be illegal.
A first sending unit 2001-2 for sending the first signing contract request to the first platform module 3000 when the first judging unit 2001-1 judges that the first signing contract request is legal;
a first error reporting unit 2001-3 for returning an error code to the second platform module 1000 when the first judging unit 2001-1 judges that the first signing contract request is illegal;
the first platform module 3000 includes:
a first receiving submodule 3001, configured to receive the first contract signing request sent by the sixth function interface submodule 2001;
the first searching submodule 3002 is configured to search a correspondingly stored contract to be signed according to a contract number included in the first contract signing request received by the first receiving submodule 3001;
in this embodiment, the first lookup sub-module 3002 is specifically configured to: and searching a corresponding contract record according to the contract number contained in the first contract signing request, and searching a corresponding contract to be signed according to the first storage address stored in the contract record.
The first obtaining submodule 3003 is configured to obtain a contract to be displayed;
in this embodiment, the first obtaining sub-module 3003 is specifically configured to:
converting the contract to be signed into a picture as a contract to be displayed;
or,
and searching the corresponding contract record according to the contract number contained in the contract signing request, and searching the corresponding contract to be displayed according to the second storage address stored in the contract record.
The second searching sub-module 3004 is configured to search for the signature picture of the corresponding signer according to the signer information included in the first signing contract request received by the first receiving sub-module 3001;
a first generation submodule 3005, configured to generate a page including a contract to be displayed and a signed picture;
a first display sub-module 3006 for opening the page generated by the first generation sub-module 3005 through the second platform module 1000 and displaying it to the signer;
the first receiving sub-module 3001 is further configured to receive signing trigger information of the signer in the page displayed by the first display sub-module 3006;
the first signing sub-module 3007 is configured to, when the first receiving sub-module 3001 receives signing trigger information of a signer in a page displayed by the first display sub-module 3006, perform signing operation on the to-be-signed contract found by the first searching sub-module 3002 according to the signing picture selected by the signer;
in this embodiment, the first signing sub-module 3007 is specifically configured to:
taking the contract to be signed as a current contract to be signed, adding the signing picture selected by the signer and/or the information corresponding to the signing picture selected by the signer to a corresponding position in the current contract to be signed respectively, then taking the contract as the current contract to be signed, and calculating a digest value of the current contract to be signed according to a preset algorithm; and finding a private key corresponding to the digital certificate of the signer according to the signer information contained in the first signing contract request, signing the abstract value by using the private key to obtain signature information, and writing the signature information and the digital certificate of the signer into the current contract to be signed.
Correspondingly, the first platform module 3000 further includes: a second judgment submodule and a first application submodule;
the second judgment submodule is used for judging whether the digital certificate of the signer corresponding to the signer information contained in the first signing contract request exists or not;
the first signing sub-module 3007 is specifically configured to: when the second judgment sub-module judges that the digital certificate of the signer corresponding to the signer information contained in the first signing contract request exists, executing signing operation on the contract to be signed searched by the first searching sub-module according to the signature picture selected by the signer;
the first application sub-module is used for applying for and distributing the digital certificate to the signer when the second judgment sub-module judges that the digital certificate of the signer corresponding to the signer information contained in the first signing contract request does not exist;
the first signing sub-module 3007 is further configured to, after the first application sub-module applies for the digital certificate and distributes the digital certificate to the signer, perform a signing operation on the contract to be signed found by the first lookup sub-module according to the signature picture selected by the signer.
A first sending sub-module 3008, configured to return a response to the second platform module 1000 after the first signing sub-module 3007 performs the signing operation;
in this embodiment, the second platform module 1000 is further configured to call the seventh function interface sub-module 2002 to send a second contract signing request to the first platform module 3000;
the seventh function interface sub-module 2002 includes:
a second judging unit 2002-1 for judging whether the second signing contract request is legal;
in this embodiment, the second determining unit 2002-1 is specifically configured to:
judging whether the contract number contained in the second contract signing request does not exceed a third preset length;
judging whether the signer information contained in the second signing contract request conforms to a second preset format or not;
if yes, judging that the second signing contract request is legal; otherwise, the second signing contract request is judged to be illegal.
A second transmitting unit 2002-2 for transmitting the second signed contract request to the first platform module 3000 when the second judging unit 2002-1 judges that the second signed contract request is legal;
a second error reporting unit 2002-3, configured to, when the second judging unit 2002-1 judges that the second signing contract request is illegal, return an error code to the second platform module 1000;
correspondingly, the first platform module further comprises:
a second receiving submodule 3009, configured to receive the second contract signing request sent by the seventh function interface submodule 2002;
a third searching sub-module 3010, configured to search for a correspondingly stored contract to be signed according to the contract number included in the second contract signing request received by the second receiving sub-module 3009;
in this embodiment, the third searching sub-module 3010 is specifically configured to: and searching the corresponding contract record according to the contract number contained in the second contract signing request, and searching the corresponding contract to be signed according to the first storage address stored in the contract record.
The second signing sub-module 3011, configured to perform signing operation on the contract to be signed found by the third searching sub-module 3010;
in this embodiment, the second signing sub-module 3011 is specifically configured to:
calculating a digest value of the contract to be signed according to a preset algorithm; and finding a private key corresponding to the digital certificate of the signer according to the signer information contained in the second signing contract request, signing the abstract value by using the private key to obtain signature information, and writing the signature information and the digital certificate of the signer into the contract to be signed.
Correspondingly, the first platform module 3000 further includes: a third judgment submodule and a second application submodule;
the third judgment submodule is used for judging whether the digital certificate of the signer corresponding to the signer information contained in the second signing contract request exists or not;
the second signing sub-module 3011 is specifically configured to: when the third judging sub-module judges that the digital certificate of the signer corresponding to the signer information contained in the second signing contract request exists, the signing operation is executed on the contract to be signed searched by the third searching sub-module 3010;
the second application sub-module is used for applying for and distributing the digital certificate to the signer when the third judgment sub-module judges that the digital certificate of the signer corresponding to the signer information contained in the second signing contract request does not exist;
the second signing sub-module 3011 is further configured to, after the second application sub-module applies for a digital certificate and distributes the digital certificate to a signer, perform a signing operation on the contract to be signed found by the third searching sub-module 3010.
Further, in this embodiment, when the third searching sub-module 3010 finds out, according to the contract number included in the second signing contract request, that the correspondingly stored contract to be signed includes the set signing position; the signing position comprises a signing position and/or a signing date position;
correspondingly, the first platform module further comprises: a fourth search submodule;
the fourth searching sub-module is configured to search a signature picture and/or a signature picture of a corresponding signer according to signer information contained in the second signing contract request before the second signing sub-module 3011 performs signing operation on the to-be-signed contract searched by the third searching sub-module 3010;
the second signing sub-module 3011 is specifically configured to: and executing signing operation on the contract to be signed according to the signature picture and/or the current date searched by the fourth searching submodule.
Further, when the signing position includes a signing position, the first platform module 3000 further includes: a fourth judgment submodule and a prompt submodule;
the fourth judging submodule is used for judging whether the fourth searching submodule searches the signature picture;
the second signing sub-module 3011 is specifically configured to: when the fourth judgment sub-module judges that the fourth searching sub-module finds the signature picture, executing signing operation on the contract to be signed;
and the prompting sub-module is used for prompting the signer to upload the signature picture through the second platform module 1000 when the fourth judging sub-module judges that the fourth searching sub-module does not search the signature picture.
And the second sending sub-module 3012 is configured to return a response to the second platform module 1000 after the second signing sub-module 3011 performs a signing operation.
In this embodiment, the second lookup sub-module 3004 is specifically configured to: searching for the signature picture and the signature picture of the corresponding signer according to the signer information contained in the first signing contract request;
correspondingly, the first generation submodule 3005 is specifically configured to: and generating a page containing the contract to be displayed, the signature picture and the date picture.
Optionally, the first platform module 3000 further includes: a first judgment submodule;
the first judgment sub-module is used for judging whether the second searching sub-module 3004 finds the signature picture of the signer;
correspondingly, the first generation submodule 3005 is specifically configured to: when the first judgment sub-module judges that the second search sub-module 3004 searches the signature picture of the signer, generating a page containing the contract to be displayed, the signature picture and the date picture; when the first judgment sub-module judges that the signature picture of the signer is not found by the second search sub-module 3004, a page containing the contract to be displayed, the signature picture and the date picture is generated.
In this embodiment, the first generation sub-module 3005 is specifically configured to: adding the contract to be displayed and the signed picture into a preset operation page, and returning the address of the preset operation page to the second platform module 1000;
correspondingly, the first display sub-module 3006 is specifically configured to: and opening a preset operation page corresponding to the received address through the second platform module, and displaying the contract to be displayed and the signed picture to the signer.
In this embodiment, the second lookup sub-module 3004 and the fourth lookup sub-module are specifically configured to: searching the signature picture of the corresponding signer according to the signer information, judging whether the searching is successful, and if so, continuing; otherwise, generating the signature picture of the corresponding signer according to the signer information and continuing.
In this embodiment, the function interface module 2000 further includes: a fifth function interface sub-module; correspondingly, the first platform module 3000 further includes: the third receiving submodule, the third sending submodule, the first saving submodule, the fifth judging submodule and the sixth judging submodule;
the second platform module 1000 is further configured to call a fifth function interface sub-module to send an authentication identity request to the first platform;
a fifth function interface sub-module comprising:
a third judging unit, configured to judge whether the authentication identity request is legal;
in this embodiment, the third determining unit is specifically configured to:
judging whether the contract number contained in the authentication identity request does not exceed a third preset length;
judging whether signer information contained in the identity authentication request conforms to a second preset format or not;
if the judgment result is yes, judging that the authentication identity request is legal; otherwise, the authentication identity request is judged to be illegal.
The third sending unit is used for sending the authentication identity request to the first platform module when the third judging unit judges that the authentication identity request is legal;
a third error reporting unit, configured to return an error code to the second platform module 1000 when the third determining unit determines that the authentication identity request is illegal;
the third receiving submodule is used for receiving an authentication identity request;
the third sending submodule is used for sending the authentication code to the signer according to the signer identity information contained in the authentication identity request received by the third receiving submodule;
the first storage submodule is used for correspondingly storing the signer identity information and the authentication code into a contract record corresponding to a contract number contained in the authentication identity request;
a fifth determining sub-module, configured to determine whether the authentication code included in the first signing contract request received by the first receiving sub-module 3001 is correct;
the first search submodule is specifically configured to: when the fifth determining sub-module determines that the authentication code included in the first signing contract request received by the first receiving sub-module 3001 is correct, searching for a corresponding contract to be signed according to the contract number included in the first signing contract request;
the first sending submodule 3008 is further configured to, when the fifth determining submodule determines that the authentication code included in the first signing contract request received by the first receiving submodule 3001 is incorrect, return an error code to the second platform module 1000;
the sixth judging submodule is configured to judge whether the authentication code included in the second contract signing request received by the second receiving submodule is correct;
the third search submodule is specifically configured to: when the sixth judgment sub-module judges that the authentication code contained in the second signing contract request received by the second receiving sub-module is correct, searching for a corresponding contract to be signed according to the contract number contained in the second signing contract request;
the second sending submodule is further configured to, when the sixth determining submodule determines that the authentication code included in the second signing contract request received by the second receiving submodule is incorrect, return an error code to the second platform module.
The fifth judgment submodule and the sixth judgment submodule are specifically configured to: searching a corresponding contract record according to a contract number contained in the received request, reading an authentication code stored corresponding to signer information contained in the received request from the contract record, judging whether the read authentication code is matched with the authentication code contained in the received request or not, and judging that the authentication code contained in the received request is correct if the read authentication code is matched with the authentication code contained in the received request; otherwise, the authentication code contained in the received request is judged to be incorrect.
In this embodiment, the first sending submodule 3008 and the second sending submodule 3012 are specifically configured to: and returning a response to the second platform module according to a return response address contained in the received request.
EXAMPLE five
An embodiment of the present invention provides a system for creating an electronic contract, as shown in fig. 5, including: the system comprises a second platform module 4000, a function interface module 5000 and a first platform module 6000;
the function interface module 5000 includes: a third function interface sub-module 5001 and a fourth function interface sub-module 5002;
the second platform module 4000 is configured to call the third function interface sub-module 5001 to send a first contract creating request to the first platform;
the third function interface sub-module 5001 includes:
a fourth judging unit 5001-1 for judging whether the first contract creation request is legal;
in this embodiment, the fourth determining unit is specifically configured to:
judging whether the template name contained in the first contract creating request is not empty and does not exceed a first preset length;
judging whether the replacement data contained in the first contract creating request conforms to a second preset format or not;
if the judgment results are yes, judging that the first contract creating request is legal; otherwise, the first contract creation request is judged to be illegal.
A fourth sending unit 5001-2, configured to send the first contract creation request to the first platform module 6000 when the fourth determining unit 5001-1 determines that the first contract creation request is legal;
a fourth error reporting unit 5001-3, configured to return an error code to the second platform module 4000 when the fourth determining unit 5001-1 determines that the first contract creation request is illegal;
the first platform module 6000 includes:
a fourth receiving submodule 6001, configured to receive the first contract creation request;
the fifth searching sub-module 6002 is configured to search for a corresponding contract template according to a template identifier included in the first contract creation request received by the fourth receiving sub-module 6001;
the second generating sub-module 6003 is configured to generate a contract to be created according to the contract template found by the fifth searching sub-module 6002;
a second obtaining sub-module 6004, configured to obtain a contract number;
the third generating sub-module 6005 is configured to generate a contract to be signed according to the contract to be created generated by the second generating sub-module 6003 and the replacement data included in the first contract creating request received by the fourth receiving sub-module 6001;
in this embodiment, the third generation sub-module 6005 is specifically configured to: and replacing the identifier at the corresponding position in the contract to be created by using the replacement data contained in the first contract creating request to obtain a contract document, and converting the contract document into a first preset format to be used as the contract to be signed.
The second storing submodule 6006 is configured to store the contract to be signed generated by the third generating submodule 6005 to obtain a first storage address;
a third saving submodule 6007, configured to correspondingly save the first storage address obtained by the second saving submodule 6006 and the contract number obtained by the second obtaining submodule 6004;
a fourth sending submodule 6008 configured to return a response to the second platform module 4000;
in this embodiment, the second platform module 4000 is further configured to call the fourth function interface sub-module 5002 to send a second contract creation request to the first platform module 6000;
a fourth function interface sub-module 5002 comprising:
a fifth judging unit 5002-1 for judging whether the second contract creation request is legal;
in this embodiment, the fifth determining unit 5002-1 is specifically configured to:
judging whether the type of the contract document contained in the second contract creating request is a supported file type or not;
judging whether the contract document contained in the second contract creating request is not empty and does not exceed a preset size;
if the judgment results are yes, judging that the second contract creating request is legal; otherwise, the second contract creation request is judged to be illegal.
A fifth sending unit 5002-2, configured to send the second contract creation request to the first platform module 6000 when the fifth judging unit 5002-1 judges that the second contract creation request is legal;
a fifth error reporting unit 5002-3, configured to return an error code to the second platform module 4000 when the fifth judging unit 5002-1 judges that the second contract creation request is illegal;
correspondingly, the first platform module 6000 further includes:
a fifth receiving submodule 6009, configured to receive the second contract creation request sent by the fourth function interface submodule 5002;
a sub-module 6010, configured to use the contract document included in the second contract creating request received by the fifth receiving sub-module 6009 as the contract to be signed;
in this embodiment, as the sub-module 6010, there are included:
a ninth judging unit configured to judge whether the contract document included in the second contract creating request is in the first preset format;
a sub-unit configured to, when the ninth judging unit judges that the contract document included in the second contract creation request is in the first preset format, take the contract document as a contract to be signed;
and the conversion subunit is configured to, when the ninth determining unit determines that the contract document included in the second contract creating request is not in the first preset format, convert the contract document into the first preset format and use the converted contract document as the contract to be signed.
A third obtaining submodule 6011 configured to obtain a contract number;
a fourth storing submodule 6012, configured to store the contract to be signed obtained by the submodule 6010 to obtain a first storage address;
a fifth saving submodule 6013, configured to correspondingly save the first storage address obtained by the fourth saving submodule 6012 and the contract number obtained by the third obtaining submodule 6011;
a fifth sending submodule 6014, configured to return a response to the second platform module 4000.
In this embodiment, the function interface module 5000 further includes: a first function interface sub-module;
the second platform module 4000 is further configured to call the first function interface sub-module to send a contract template adding request to the first platform module 6000;
a first function interface submodule, comprising:
a sixth judging unit, configured to judge whether the contract template adding request is legal;
in this embodiment, the sixth determining unit is specifically configured to:
judging whether the template name contained in the contract template adding request is not empty and does not exceed a first preset length;
judging whether the template contained in the contract template adding request is not empty and does not exceed a second preset length;
if the judgment results are yes, judging that the contract template adding request is legal; otherwise, the contract template adding request is judged to be illegal.
A sixth sending unit, configured to send the contract template adding request to the first platform module 6000 when the sixth determining unit determines that the contract template adding request is legal;
a sixth error reporting unit, configured to, when the sixth determining unit determines that the contract template addition request is illegal, return an error code to the second platform module 4000;
correspondingly, the first platform module 6000 further includes:
a sixth receiving submodule, configured to receive a contract template adding request sent by the first function interface submodule;
the first creating submodule is used for creating a template record of the contract template contained in the contract template adding request;
the sixth storage submodule is used for storing the contract template to obtain a third storage address;
the seventh saving submodule is used for correspondingly saving the third storage address obtained by the sixth saving submodule and the template mark contained in the contract template adding request into the template record created by the first creating submodule;
a sixth sending submodule, configured to return a response to the second platform module 4000;
correspondingly, the fifth search submodule 6002 is specifically configured to: and searching the corresponding template record according to the template identifier contained in the first contract establishing request, and searching the corresponding contract template according to the third storage address stored in the template record.
Optionally, the first platform module 6000 further includes: a seventh judgment sub-module;
a seventh judging submodule, configured to judge whether the contract template included in the contract template adding request meets the requirement of the document converted into the first preset format;
correspondingly, the first creating sub-module is specifically configured to: when the seventh judging submodule judges that the contract template contained in the contract template adding request meets the requirement of the document converted into the first preset format, a template record of the contract template contained in the contract template adding request is created;
and the sixth sending submodule is further configured to, when the seventh judging submodule judges that the contract template included in the contract template adding request does not meet the requirement of the document converted into the first preset format, return an error code to the second platform module 4000.
In this embodiment, the second obtaining sub-module 6004 and the third obtaining sub-module 6011 specifically include:
a seventh judging unit, configured to judge whether the received request includes a contract number;
the reading subunit is used for reading the contract number contained in the received request when the seventh judging unit judges that the received request contains the contract number;
a generation unit configured to generate the contract number when the seventh judgment unit judges that the received request does not include the contract number.
In this embodiment, the second obtaining sub-module 6004 and the third obtaining sub-module 6011 further include:
an eighth judging unit, configured to judge whether the contract number included in the received request is occupied by another contract;
a reading unit, specifically configured to: when the eighth judging unit judges that the contract number contained in the received request is not occupied by other contracts, reading the contract number contained in the received request;
and a seventh error reporting unit, configured to return an error code to the second platform module 4000 when the eighth determining unit determines that the contract number included in the received request is occupied by another contract.
In this embodiment, the first platform module 6000 further includes: a second creation sub-module;
the second creating submodule is used for creating a contract record of the contract to be created;
correspondingly, the third saving sub-module 6007 and the fifth saving sub-module 6013 are specifically configured to: and correspondingly storing the first storage address and the contract number into a contract record created by the second creation submodule.
Optionally, in this embodiment, the first platform module 6000 further includes: a first conversion submodule and an eighth storage submodule;
the first conversion sub-module is configured to convert the contract to be signed into a picture as a contract to be displayed before the fourth sending sub-module 6008 and the fifth sending sub-module 6014 return responses to the second platform module 4000;
and the eighth storage submodule is used for storing the contract to be displayed to obtain a second storage address and correspondingly storing the second storage address and the contract number.
Correspondingly, the function interface module 500 further includes: a second function interface sub-module;
the second platform module 400 is further configured to call the second function interface sub-module to send a watermark picture adding request to the first platform module 6000;
a second function interface sub-module comprising:
a tenth judging unit, configured to judge whether the watermark adding picture request is legal;
a seventh sending unit, configured to send the request for adding the watermark picture to the first platform module 6000 when the tenth determining unit determines that the request for adding the watermark picture is legal;
an eighth error reporting unit, configured to, when the tenth determining unit determines that the request for adding the watermark picture is illegal, return an error code to the second platform module 6000;
the first platform module 6000 further includes:
a seventh receiving submodule, configured to receive a request for adding a watermark picture;
a ninth saving sub-module, configured to save the watermark picture included in the request for adding the watermark picture to the account of the second platform module 4000;
the eighth judgment sub-module is used for judging whether the contract to be signed needs to be added with the watermark after the first conversion sub-module converts the contract to be signed into the picture as the contract to be displayed;
and the first adding sub-module is used for respectively adding the watermark pictures stored in the account of the second platform module 4000 into the contract to be signed and the contract to be displayed when the eighth judging sub-module judges that the contract to be signed needs to be added with the watermark.
Optionally, the ninth saving sub-module is specifically configured to: correspondingly storing the watermark picture and the watermark picture identification contained in the watermark picture adding request into an account of the second platform;
the first adding submodule is specifically used for: and finding the corresponding watermark picture in the account of the second platform module 4000 according to the watermark picture identifier contained in the received contract creating request, and respectively adding the found watermark picture into the contract to be signed and the contract to be displayed.
Optionally, in this embodiment, the function interface module 5000 further includes: a second function interface sub-module;
the second platform module 4000 is further configured to call the second function interface sub-module to send a watermark picture adding request to the first platform module 6000;
a second function interface sub-module comprising:
a tenth judging unit, configured to judge whether the watermark adding picture request is legal;
a seventh sending unit, configured to send the request for adding the watermark picture to the first platform module 6000 when the tenth determining unit determines that the request for adding the watermark picture is legal;
an eighth error reporting unit, configured to, when the tenth determining unit determines that the request for adding the watermark picture is illegal, return an error code to the second platform module 4000;
the first platform module 6000 further includes:
an eighth receiving submodule, configured to receive a request for adding a watermark picture;
a tenth storing sub-module, configured to store the watermark picture included in the request for adding the watermark picture into an account of the second platform module 4000;
the ninth judging submodule is used for judging whether the contract to be signed needs to be added with the watermark before the second storing submodule and the fourth storing submodule obtain the first storage address;
and the second adding sub-module is used for adding the watermark picture stored in the account of the second platform module 4000 to the contract to be signed when the ninth judging sub-module judges that the contract to be signed needs to be added with the watermark.
Wherein, the tenth saving submodule is specifically configured to: correspondingly storing the watermark picture and the watermark picture identification contained in the watermark picture adding request into an account of a second platform module 4000;
correspondingly, the second adding submodule is specifically configured to: and searching a corresponding watermark picture in the account of the second platform module 4000 according to the watermark picture identifier contained in the received contract establishing request, and adding the searched watermark picture into the contract to be signed.
In this embodiment, the ninth determining unit and the tenth determining unit are specifically configured to: judging whether the size, the dimension and the transparency of the watermark picture contained in the watermark picture adding request are all in corresponding preset conditions, if so, judging that the watermark picture adding request is legal; otherwise, the request for adding the watermark picture is judged to be illegal.
In this embodiment, the fourth sending submodule 6008 and the fifth sending submodule 6014 are specifically configured to: and returning a response to the second platform module 4000 according to a return response address contained in the received request.
In the invention, the contract-making platform (the first platform) provides a plurality of modes of creating and signing contracts for the user (the second platform), and the user can select according to the requirement, thereby improving the user experience.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all such changes or substitutions should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (70)
1. A method of signing an electronic contract, comprising:
when the second platform calls the sixth function interface to send the first signing contract request to the first platform, the following operations are performed:
step C1: the sixth function interface judges whether the first signing contract request is legal or not, and if so, the first signing contract request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step C2: the first platform receives the first contract signing request, and searches a correspondingly stored contract to be signed according to a contract number contained in the first contract signing request;
step C3: the first platform acquires a contract to be displayed, searches a signature picture of a corresponding signer according to signer information contained in the first signing contract request, generates a page containing the contract to be displayed and the signature picture, opens the page through the second platform and displays the page to the signer, and executes the step C4 when receiving signing trigger information of the signer in the page;
step C4: the first platform executes signing operation on the contract to be signed according to the signing picture selected by the signer, returns a response to the second platform, and ends;
when the second platform calls the seventh function interface to send the second signing contract request to the first platform, the following operations are performed:
step D1: the seventh function interface judges whether the second signing contract request is legal or not, and if so, the seventh function interface sends the second signing contract request to the first platform; otherwise, returning an error code to the second platform, and ending;
step D2: and the first platform receives the second contract signing request, searches a correspondingly stored contract to be signed according to the contract number contained in the second contract signing request, executes signing operation on the contract to be signed, returns a response to the second platform and finishes the operation.
2. The method according to claim 1, wherein in the step C1, the sixth function interface determines whether the first signing contract request is legal, specifically:
judging whether the contract number contained in the first contract signing request does not exceed a third preset length;
judging whether the signer information contained in the first signing contract request conforms to a second preset format or not;
if yes, judging that the first signing contract request is legal; otherwise, the first signing contract request is judged to be illegal.
3. The method of claim 1,
in the step C2, the searching for the corresponding contract to be signed according to the contract number included in the first contract signing request specifically includes: the first platform finds out a corresponding contract record according to a contract number contained in the first contract signing request, and finds out a corresponding contract to be signed according to a first storage address stored in the contract record;
in the step D2, the searching for the correspondingly stored contract to be signed according to the contract number included in the second contract signing request specifically includes: and the first platform searches the corresponding contract record according to the contract number contained in the second contract signing request, and searches the corresponding contract to be signed according to the first storage address stored in the contract record.
4. The method according to claim 1, wherein in the step C3, the first platform acquires the contract to be shown, specifically:
the first platform converts the contract to be signed into a picture and then takes the picture as a contract to be displayed;
or,
and the first platform searches the corresponding contract record according to the contract number contained in the contract signing request, and searches the corresponding contract to be displayed according to the second storage address stored in the contract record.
5. The method of claim 1,
in the step C3, the searching for the signature picture of the corresponding signer according to the signer information contained in the first signing contract request specifically includes: the first platform searches the signature picture and the signature picture of the corresponding signer according to the signer information contained in the first signing contract request;
in the step C3, the generating a page including the contract to be displayed and the signed picture specifically includes: and generating a page containing the contract to be displayed, the signature picture and the date picture.
6. The method of claim 5, wherein before generating the page containing the contract to be presented, the signature picture and the date picture, further comprising:
the first platform judges whether a signature picture of a signer is found, if so, a page containing the contract to be displayed, the signature picture and a date picture is generated; otherwise, generating a page containing the contract to be displayed, the signature picture and the date picture.
7. The method according to claim 1, wherein in step C3, the generating of the page containing the contract to be presented and the signed picture, the opening of the page through the second platform and the displaying to the signer are specifically:
and the first platform adds the contract to be displayed and the signed picture into a preset operation page, returns the address of the preset operation page to the second platform, and the second platform opens the preset operation page corresponding to the received address and displays the contract to be displayed and the signed picture to the signer.
8. The method according to claim 1, wherein in the step C4, the first platform performs a signing operation on the contract to be signed according to the signing picture selected by the signer, specifically:
the first platform takes the contract to be signed as a current contract to be signed, adds the signing picture selected by the signer and/or the information corresponding to the signing picture selected by the signer to the corresponding position in the current contract to be signed respectively and then takes the contract to be signed as the current contract to be signed, and calculates a digest value of the current contract to be signed according to a preset algorithm; and finding a private key corresponding to the digital certificate of the signer according to the signer information contained in the first signing contract request, signing the abstract value by using the private key to obtain signature information, and writing the signature information and the digital certificate of the signer into the current contract to be signed.
9. The method according to claim 1, wherein in step D1, the seventh functional interface determines whether the second signing contract request is legal, specifically:
judging whether the contract number contained in the second contract signing request does not exceed a third preset length;
judging whether the signer information contained in the second signing contract request conforms to a second preset format or not;
if yes, judging that the second signing contract request is legal; otherwise, the second signing contract request is judged to be illegal.
10. The method according to claim 1, wherein in step D2, the signing operation is performed on the contract to be signed, specifically: the first platform calculates a digest value of the contract to be signed according to a preset algorithm; and finding a private key corresponding to the digital certificate of the signer according to the signer information contained in the second signing contract request, signing the abstract value by using the private key to obtain signature information, and writing the signature information and the digital certificate of the signer into the contract to be signed.
11. The method according to claim 8 or 10,
before the step C4, the method further includes: the first platform judges whether a digital certificate of a signer corresponding to the signer information contained in the first signing contract request exists or not, if so, the first platform continues; otherwise, applying for a digital certificate and distributing the digital certificate to the signer, and continuing;
in step D2, before executing the signing operation on the contract to be signed, the method further includes: the first platform judges whether the digital certificate of the signer corresponding to the signer information contained in the second signing contract request exists or not, if so, the first platform continues to process the second signing contract request; otherwise, applying for the digital certificate and distributing to the signer, and continuing.
12. The method of claim 1,
in the step D2, the correspondingly stored contract to be signed that is found according to the contract number included in the second contract signing request includes the set signing position; the signing position comprises a signing position and/or a signing date position;
in step D2, before executing the signing operation on the contract to be signed, the method further includes: the first platform searches the signature picture and/or the signature picture of the corresponding signer according to the signer information contained in the second signing contract request;
in the step D2, the executing a signing operation on the contract to be signed specifically includes: and the first platform executes signing operation on the contract to be signed according to the signature picture and/or the current date.
13. The method of claim 12, wherein the signing location comprises a signature location;
the first platform searches signer signature pictures according to the signer information contained in the signing contract request, and specifically comprises the following steps: the first platform searches the signature picture of the signer according to the signer information contained in the signing contract request, judges whether the search is successful, and continues if the search is successful; and otherwise, prompting the signer to upload the signature picture through the second platform.
14. The method according to claim 5 or 12, wherein searching for the signature picture of the corresponding signer according to the signer information specifically comprises:
the first platform searches the corresponding signer signature picture according to the signer information, judges whether the searching is successful or not, and continues if the searching is successful; otherwise, generating the signature picture of the corresponding signer according to the signer information and continuing.
15. The method of claim 1,
the method further comprises the following steps: when the second platform calls the fifth function interface to send an authentication identity request to the first platform, executing the step 3-1:
step 3-1: the fifth function interface judges whether the authentication identity request is legal or not, and if so, the fifth function interface sends the authentication identity request to the first platform; otherwise, returning an error code to the second platform, and ending;
step 3-2: the first platform receives the authentication identity request, sends an authentication code to a signer according to signer identity information contained in the authentication identity request, and correspondingly stores the signer identity information and the authentication code into a contract record corresponding to a contract number contained in the authentication identity request;
in the step C2 and the step D2, before searching for the corresponding contract to be signed according to the contract number, the method further includes:
step E: the first platform judges whether the authentication code contained in the received request is correct or not, if so, the first platform continues; otherwise, returning an error code to the second platform, and ending.
16. The method according to claim 15, wherein in step E, the first platform determines whether the authentication code included in the received request is correct, specifically:
the first platform finds a corresponding contract record according to a contract number contained in the received request, reads an authentication code stored corresponding to signer information contained in the received request from the contract record, judges whether the read authentication code is matched with the authentication code contained in the received request or not, and judges that the authentication code contained in the received request is correct if the read authentication code is matched with the authentication code contained in the received request; otherwise, the authentication code contained in the received request is judged to be incorrect.
17. The method according to claim 15, wherein in step 3-1, the fifth function interface determines whether the authentication identity request is legal, specifically:
judging whether the contract number contained in the authentication identity request does not exceed a third preset length;
judging whether signer information contained in the identity authentication request conforms to a second preset format or not;
if the judgment result is yes, judging that the authentication identity request is legal; otherwise, the authentication identity request is judged to be illegal.
18. The method of claim 1,
the returning response to the second platform specifically includes: and returning a response to the second platform according to a return response address contained in the received request.
19. A method for creating an electronic contract, comprising:
when the second platform calls the third function interface to send the first contract creating request to the first platform, the following operations are executed:
step A1: the third function interface judges whether the first contract creating request is legal or not, and if so, the first contract creating request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step A2: the first platform receives the first contract creating request, searches a corresponding contract template according to a template identifier contained in the first contract creating request, and generates a contract to be created according to the contract template;
step A3: the first platform acquires a contract number, generates a contract to be signed according to the contract to be created and the replacement data contained in the first contract creating request, stores the contract to be signed to obtain a first storage address, correspondingly stores the first storage address and the contract number, returns a response to the second platform, and ends;
when the second platform calls the fourth function interface to send a second contract creation request to the first platform, the following operations are performed:
step B1: the fourth function interface judges whether the second contract creating request is legal or not, and if so, the second contract creating request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step B2: the first platform receives the second contract creating request, and takes a contract document contained in the second contract creating request as a contract to be signed;
step B3: and the first platform acquires a contract number, stores the contract to be signed to obtain a first storage address, correspondingly stores the first storage address and the contract number, returns a response to the second platform and finishes the process.
20. The method according to claim 19, wherein in step a1, the step of judging whether the first contract creation request is legal by the third function interface includes:
judging whether the template name contained in the first contract creating request is not empty and does not exceed a first preset length;
judging whether the replacement data contained in the first contract creating request conforms to a second preset format or not;
if the judgment results are yes, judging that the first contract creating request is legal; otherwise, the first contract creating request is judged to be illegal.
21. The method of claim 19, further comprising: when the second platform calls the first function interface to send a contract template adding request to the first platform, executing the step 1-1:
step 1-1: the first function interface judges whether the contract template adding request is legal or not, if so, the contract template adding request is sent to the first platform, and the step 1-2 is executed; otherwise, returning an error code to the second platform, and ending;
step 1-2: the first platform receives the contract template adding request, creates a template record of a contract template contained in the contract template adding request, stores the contract template to obtain a third storage address, correspondingly stores the third storage address and a template identifier contained in the contract template adding request into the template record, and returns a response to the second platform;
in step a2, the finding of the corresponding contract template according to the template identifier included in the first contract creating request specifically includes: and the first platform searches the corresponding template record according to the template identifier contained in the first contract establishing request, and searches the corresponding contract template according to a third storage address stored in the template record.
22. The method according to claim 21, wherein in step 1-1, the first function interface determines whether the contract template adding request is legal, specifically:
judging whether the template name contained in the contract template adding request is not empty and does not exceed a first preset length;
judging whether the template contained in the contract template adding request is not empty and does not exceed a second preset length;
if the judgment result is yes, judging that the contract template adding request is legal; otherwise, the contract template adding request is judged to be illegal.
23. The method according to claim 21, wherein before creating the template record of the contract template included in the contract template adding request in step 1-2, the method further comprises:
the first platform judges whether the contract template contained in the contract template adding request meets the requirement of converting the contract template into a document with a first preset format, if so, the first platform continues to use the contract template; otherwise, returning an error code to the second platform, and ending.
24. The method according to claim 19, wherein in the step a3 and the step B3, the first platform obtains contract numbers, specifically:
step F: the first platform judges whether the received request contains a contract number, if so, the first platform reads the contract number contained in the received request; otherwise, generating a contract number.
25. The method according to claim 24, wherein in step F, before reading the contract number included in the received request, the method further comprises: the first platform judges whether the contract number contained in the received request is occupied by other contracts, if so, an error code is returned to the second platform, and the process is finished; otherwise, continuing.
26. The method of claim 19,
in step a3, the first platform generates a contract to be signed according to the contract to be created and the replacement data included in the first contract creating request, specifically: the first platform uses the replacement data contained in the first contract creating request to replace the identifier at the corresponding position in the contract to be created to obtain a contract document, and the contract document is converted into a first preset format and then is used as the contract to be signed;
in the step B2, the taking the contract document included in the second contract creating request as the contract to be signed specifically includes: the first platform judges whether the contract document contained in the second contract creating request is in the first preset format, if so, the contract document is used as a contract to be signed; otherwise, the contract document is converted into the first preset format and then is used as a contract to be signed.
27. The method of claim 19,
before storing the first storage address corresponding to the contract number in the steps a3 and B3, the method further includes: the first platform creates a contract record of the contract to be created;
in the step a3 and the step B3, the storing the first storage address and the contract number correspondingly includes: and the first platform correspondingly saves the first storage address and the contract number into the contract record.
28. The method of claim 19, wherein before returning the response to the second platform in steps a3 and B3, further comprising:
step L: and the first platform converts the contract to be signed into a picture as a contract to be displayed, stores the contract to be displayed to obtain a second storage address, and correspondingly stores the second storage address and the contract number.
29. The method of claim 28,
the method further comprises the following steps: when the second platform calls a second function interface to send a watermark picture adding request to the first platform, executing the step 2-1:
step 2-1: the second function interface judges whether the watermark adding picture request is legal or not, and if so, the watermark adding picture request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step 2-2: the first platform receives the watermark picture adding request, and stores the watermark picture contained in the watermark picture adding request into an account of the second platform;
in the step L, after the first platform converts the contract to be signed into a picture as a contract to be displayed, the method further includes:
step P: the first platform judges whether the contract to be signed needs to be added with the watermark or not, if so, the watermark pictures stored in the account of the second platform are respectively added into the contract to be signed and the contract to be displayed, and the operation is continued; otherwise, continuing.
30. The method of claim 29,
the step 2-2 specifically comprises the following steps: the first platform correspondingly stores the watermark picture and the watermark picture identification contained in the watermark picture adding request to an account of the second platform;
in the step P, the adding the watermark pictures stored in the account of the second platform into the contract to be signed and the contract to be displayed respectively specifically includes: and searching a corresponding watermark picture in the account of the second platform according to the watermark picture identifier contained in the received contract establishing request, and respectively adding the searched watermark picture into the contract to be signed and the contract to be displayed.
31. The method of claim 19,
the method further comprises the following steps: when the second platform calls the second function interface to send a watermark picture adding request to the first platform, executing the step 2-1:
step 2-1: the second function interface judges whether the watermark adding picture request is legal or not, and if so, the watermark adding picture request is sent to the first platform; otherwise, returning an error code to the second platform, and ending;
step 2-2: the first platform receives the watermark picture adding request, and stores the watermark picture contained in the watermark picture adding request into an account of the second platform;
in the step a3 and the step B3, before the storing the contract to be signed and obtaining the first storage address, the method further includes:
step P': the first platform judges whether the contract to be signed needs to be added with the watermark or not, if so, the watermark pictures stored in the account of the second platform are added into the contract to be signed and continue; otherwise, continuing.
32. The method of claim 31,
the step 2-2 specifically comprises the following steps: the first platform correspondingly stores the watermark picture and the watermark picture identification contained in the watermark picture adding request to an account of the second platform;
in the step P', the adding the watermark picture stored in the account of the second platform to the contract to be signed specifically includes: and searching a corresponding watermark picture in the account of the second platform according to the watermark picture identifier contained in the received contract establishing request, and adding the searched watermark picture into the contract to be signed.
33. The method according to claim 29 or 31, wherein the second function interface determines whether the watermark picture adding request is legal, specifically:
judging whether the size, the dimension and the transparency of the watermark picture contained in the watermark picture adding request are all in corresponding preset conditions, if so, judging that the watermark picture adding request is legal; otherwise, the watermark adding picture request is judged to be illegal.
34. The method according to claim 19, wherein in step B1, the fourth function interface determines whether the second contract creation request is legal, specifically:
judging whether the type of the contract document contained in the second contract creating request is a supported file type or not;
judging whether the contract document contained in the second contract creating request is not empty and does not exceed a preset size;
if the judgment results are yes, judging that the second contract creating request is legal; otherwise, the second contract creating request is judged to be illegal.
35. The method of claim 19,
the returning response to the second platform specifically includes: and returning a response to the second platform according to a return response address contained in the received request.
36. A system for signing an electronic contract, comprising: the system comprises a second platform module, a function interface module and a first platform module;
the function interface module comprises a sixth function interface sub-module and a seventh function interface sub-module;
the second platform module is used for calling the sixth function interface sub-module to send a first contract signing request to the first platform module;
the sixth function interface sub-module includes:
a first judgment unit, configured to judge whether the first signing contract request is legal;
the first sending unit is used for sending the first signing contract request to the first platform module when the first judging unit judges that the first signing contract request is legal;
the first error reporting unit is used for returning an error code to the second platform module when the first judging unit judges that the first signing contract request is illegal;
the first platform module, comprising:
the first receiving submodule is used for receiving a first contract signing request sent by the sixth function interface submodule;
the first searching submodule is used for searching the correspondingly stored contract to be signed according to the contract number contained in the first contract signing request received by the first receiving submodule;
the first obtaining submodule is used for obtaining the contract to be displayed;
the second searching submodule is used for searching the corresponding signing picture of the signer according to the signer information contained in the first signing contract request received by the first receiving submodule;
the first generation submodule is used for generating a page containing the contract to be displayed and the signed picture;
the first display sub-module is used for opening the page generated by the first generation sub-module through the second platform module and displaying the page to the signer;
the first receiving submodule is also used for receiving signing trigger information of the signer in a page displayed by the first display submodule;
the first signing sub-module is used for executing signing operation on the contract to be signed searched by the first searching sub-module according to the signing picture selected by the signer when the first receiving sub-module receives signing trigger information of the signer in the page displayed by the first display sub-module;
the first sending submodule is used for returning a response to the second platform module after the first signing submodule executes signing operation;
the second platform module is further configured to call the seventh function interface sub-module to send a second contract signing request to the first platform module;
the seventh function interface sub-module includes:
a second judging unit, configured to judge whether the second signing contract request is legal;
a second sending unit, configured to send the second contract signing request to the first platform module when the second determining unit determines that the second contract signing request is legal;
the second error reporting unit is used for returning an error code to the second platform module when the second judgment unit judges that the second signing contract request is illegal;
the first platform module further comprises:
the second receiving submodule is used for receiving a second contract signing request sent by the seventh function interface submodule;
the third searching submodule is used for searching the correspondingly stored contract to be signed according to the contract number contained in the second contract signing request received by the second receiving submodule;
the second signing sub-module is used for executing signing operation on the contract to be signed searched by the third searching sub-module;
and the second sending submodule is used for returning a response to the second platform module after the second signing submodule executes signing operation.
37. The system according to claim 36, wherein the first determining unit is specifically configured to:
judging whether the contract number contained in the first contract signing request does not exceed a third preset length;
judging whether the signer information contained in the first signing contract request conforms to a second preset format or not;
if yes, judging that the first signing contract request is legal; otherwise, the first signing contract request is judged to be illegal.
38. The system of claim 36,
the first search submodule is specifically configured to: searching a corresponding contract record according to a contract number contained in the first contract signing request, and searching a corresponding contract to be signed according to a first storage address stored in the contract record;
the third search submodule is specifically configured to: and searching a corresponding contract record according to the contract number contained in the second contract signing request, and searching a corresponding contract to be signed according to a first storage address stored in the contract record.
39. The system of claim 36, wherein the first obtaining sub-module is specifically configured to:
converting the contract to be signed into a picture as a contract to be displayed;
or,
and searching a corresponding contract record according to the contract number contained in the contract signing request, and searching a corresponding contract to be displayed according to a second storage address stored in the contract record.
40. The system of claim 36,
the second search submodule is specifically configured to: searching for the signature picture and the signature picture of the corresponding signer according to the signer information contained in the first signing contract request;
the first generation submodule is specifically configured to: and generating a page containing the contract to be displayed, the signature picture and the date picture.
41. The system of claim 40, wherein the first platform module further comprises: a first judgment submodule;
the first judgment sub-module is used for judging whether the second searching sub-module finds the signature picture of the signer;
the first generation submodule is specifically configured to: when the first judgment sub-module judges that the second searching sub-module finds the signature picture of the signer, generating a page containing the contract to be displayed, the signature picture and the date picture; and when the first judgment sub-module judges that the signature picture of the signer is not found by the second search sub-module, generating a page containing the contract to be displayed, the signature picture and the date picture.
42. The system of claim 36,
the first generation submodule is specifically configured to: adding the contract to be displayed and the signed picture into a preset operation page, and returning the address of the preset operation page to the second platform module;
the first display sub-module is specifically configured to: and opening the preset operation page corresponding to the received address through the second platform module, and displaying the contract to be displayed and the signed picture to the signer.
43. The system of claim 36, wherein the first signing sub-module is specifically configured to:
taking the contract to be signed as a current contract to be signed, adding the signing picture selected by the signer and/or the information corresponding to the signing picture selected by the signer to a corresponding position in the current contract to be signed respectively to serve as the current contract to be signed, and calculating a digest value of the current contract to be signed according to a preset algorithm; and finding a private key corresponding to the digital certificate of the signer according to the signer information contained in the first signing contract request, signing the abstract value by using the private key to obtain signature information, and writing the signature information and the digital certificate of the signer into the current contract to be signed.
44. The system according to claim 36, wherein the second determining unit is specifically configured to:
judging whether the contract number contained in the second contract signing request does not exceed a third preset length;
judging whether the signer information contained in the second signing contract request conforms to a second preset format or not;
if yes, judging that the second signing contract request is legal; otherwise, the second signing contract request is judged to be illegal.
45. The system of claim 36, wherein the second signing sub-module is specifically configured to:
calculating a digest value of the contract to be signed according to a preset algorithm; and finding a private key corresponding to the digital certificate of the signer according to the signer information contained in the second signing contract request, signing the abstract value by using the private key to obtain signature information, and writing the signature information and the digital certificate of the signer into the contract to be signed.
46. The system of claim 43 or 45, wherein the first platform module further comprises: the first judgment submodule, the second judgment submodule, the first application submodule, the third judgment submodule and the second application submodule;
the second judgment submodule is used for judging whether a digital certificate of a signer corresponding to the signer information contained in the first signing contract request exists or not;
the first signing sub-module is specifically configured to: when the second judgment sub-module judges that the digital certificate of the signer corresponding to the signer information contained in the first signing contract request exists, executing signing operation on the contract to be signed searched by the first search sub-module according to the signature picture selected by the signer;
the first application sub-module is configured to apply for and distribute a digital certificate to the signer when the second judgment sub-module judges that the digital certificate of the signer corresponding to the signer information included in the first signing contract request does not exist;
the first signing sub-module is further configured to, after the first application sub-module applies for a digital certificate and distributes the digital certificate to the signer, execute signing operation on the contract to be signed found by the first lookup sub-module according to the signature picture selected by the signer;
the third judgment submodule is used for judging whether the digital certificate of the signer corresponding to the signer information contained in the second signing contract request exists or not;
the second signing sub-module is specifically configured to: when the third judgment sub-module judges that the digital certificate of the signer corresponding to the signer information contained in the second signing contract request exists, executing signing operation on the contract to be signed searched by the third searching sub-module;
the second application sub-module is configured to apply for and distribute a digital certificate to the signer when the third judgment sub-module judges that the digital certificate of the signer corresponding to the signer information included in the second signing contract request does not exist;
the second signing sub-module is further configured to perform signing operation on the contract to be signed found by the third searching sub-module after the second application sub-module applies for a digital certificate and distributes the digital certificate to the signer.
47. The system of claim 36,
the third searching submodule searches a corresponding stored signing position contained in the contract to be signed according to the contract number contained in the second signing contract request; the signing position comprises a signing position and/or a signing date position;
the first platform module further comprises: a fourth search submodule;
the fourth searching sub-module is configured to search a signature picture and/or a signature picture of a corresponding signer according to signer information contained in the second signing contract request before the second signing sub-module performs signing operation on the contract to be signed searched by the third searching sub-module;
the second signing sub-module is specifically configured to: and executing signing operation on the contract to be signed according to the signature picture andor the current date searched by the fourth searching submodule.
48. The system of claim 47, wherein the signing location comprises a signing location; the first platform module further comprises: a fourth judgment submodule and a prompt submodule;
the fourth judging submodule is used for judging whether the fourth searching submodule searches the signature picture;
the second signing sub-module is specifically configured to: when the fourth judgment sub-module judges that the fourth search sub-module finds the signature picture, executing signature operation on the contract to be signed;
and the prompting sub-module is used for prompting the signer to upload the signature picture through the second platform module when the fourth judging sub-module judges that the signature picture is not found by the fourth searching sub-module.
49. The system according to claim 40 or 47, wherein the second lookup submodule and the fourth lookup submodule are specifically configured to: searching the signature picture of the corresponding signer according to the signer information, judging whether the searching is successful, and if so, continuing; otherwise, generating the signature picture of the corresponding signer according to the signer information and continuing.
50. The system of claim 36, wherein the function interface module further comprises: a fifth function interface sub-module; the first platform module further comprises: the third receiving submodule, the third sending submodule, the first saving submodule, the fifth judging submodule and the sixth judging submodule;
the second platform module is further configured to call the fifth function interface sub-module to send an authentication identity request to the first platform;
the fifth function interface sub-module includes:
a third judging unit, configured to judge whether the authentication identity request is legal;
a third sending unit, configured to send the authentication identity request to the first platform module when the third determining unit determines that the authentication identity request is legal;
the third error reporting unit is used for returning an error code to the second platform module when the third judging unit judges that the authentication identity request is illegal;
the third receiving submodule is used for receiving the authentication identity request;
the third sending submodule is used for sending an authentication code to the signer according to the signer identity information contained in the authentication identity request received by the third receiving submodule;
the first storage sub-module is used for correspondingly storing the signer identity information and the authentication code into a contract record corresponding to a contract number contained in the authentication identity request;
the fifth judging submodule is used for judging whether the authentication code contained in the first signing contract request received by the first receiving submodule is correct or not;
the first search submodule is specifically configured to: when the fifth judgment sub-module judges that the authentication code contained in the first signing contract request received by the first receiving sub-module is correct, searching a corresponding contract to be signed according to the contract number contained in the first signing contract request;
the first sending submodule is further configured to return an error code to the second platform module when the fifth judging submodule judges that the authentication code included in the first signing contract request received by the first receiving submodule is incorrect;
the sixth judging submodule is configured to judge whether the authentication code included in the second contract signing request received by the second receiving submodule is correct;
the third search submodule is specifically configured to: when the sixth judgment sub-module judges that the authentication code contained in the second signing contract request received by the second receiving sub-module is correct, searching for a corresponding contract to be signed according to the contract number contained in the second signing contract request;
the second sending submodule is further configured to, when the sixth determining submodule determines that the authentication code included in the second signing contract request received by the second receiving submodule is incorrect, return an error code to the second platform module.
51. The apparatus according to claim 50, wherein the fifth and sixth determining sub-modules are specifically configured to: searching a corresponding contract record according to a contract number contained in the received request, reading an authentication code stored corresponding to signer information contained in the received request from the contract record, judging whether the read authentication code is matched with the authentication code contained in the received request or not, and judging that the authentication code contained in the received request is correct if the read authentication code is matched with the authentication code contained in the received request; otherwise, the authentication code contained in the received request is judged to be incorrect.
52. The system according to claim 50, wherein the third determining unit is specifically configured to:
judging whether the contract number contained in the authentication identity request does not exceed a third preset length;
judging whether signer information contained in the identity authentication request conforms to a second preset format or not;
if the judgment result is yes, judging that the authentication identity request is legal; otherwise, the authentication identity request is judged to be illegal.
53. The system of claim 36, wherein: the first sending submodule and the second sending submodule are specifically configured to: and returning a response to the second platform module according to a return response address contained in the received request.
54. The system for creating the electronic contract is characterized by comprising a second platform module, a function interface module and a first platform module;
the function interface module includes: a third function interface submodule and a fourth function interface submodule;
the second platform module is used for calling the third function interface sub-module to send a first contract creating request to the first platform module;
the third function interface sub-module includes:
a fourth judging unit, configured to judge whether the first contract creating request is legal;
a fourth sending unit, configured to send the first contract creating request to the first platform module when the fourth determining unit determines that the first contract creating request is legal;
the fourth error reporting unit is used for returning an error code to the second platform module when the fourth judging unit judges that the first contract creating request is illegal;
the first platform module, comprising:
a fourth receiving submodule, configured to receive the first contract creation request;
the fifth searching submodule is used for searching a corresponding contract template according to the template identifier contained in the first contract creating request received by the fourth receiving submodule;
the second generating sub-module is used for generating a contract to be created according to the contract template searched by the fifth searching sub-module;
the second obtaining submodule is used for obtaining the contract number;
the third generation submodule is used for generating a contract to be signed according to the contract to be created generated by the second generation submodule and the replacement data contained in the first contract creation request received by the fourth receiving submodule;
the second storage submodule is used for storing the contract to be signed generated by the third generation submodule to obtain a first storage address;
the third saving submodule is used for correspondingly saving the first storage address obtained by the second saving submodule and the contract number obtained by the second obtaining submodule;
the fourth sending submodule is used for returning a response to the second platform module;
the second platform module is also used for calling a fourth function interface sub-module to send a second contract creating request to the first platform module;
the fourth function interface sub-module includes:
a fifth judging unit, configured to judge whether the second contract creating request is legal;
a fifth sending unit, configured to send the second contract creating request to the first platform module when the fifth determining unit determines that the second contract creating request is legal;
a fifth error reporting unit, configured to return an error code to the second platform module when the fifth determining unit determines that the second contract creation request is illegal;
the first platform module further comprises:
a fifth receiving submodule, configured to receive a second contract creation request sent by the fourth function interface submodule;
the contract document is used as a contract to be signed, and the contract document is contained in the second contract creating request received by the fifth receiving submodule;
the third obtaining submodule is used for obtaining a contract number;
the fourth storage submodule is used for storing the contract to be signed obtained by the submodule to obtain a first storage address;
the fifth saving submodule is used for correspondingly saving the first storage address obtained by the fourth saving submodule and the contract number obtained by the third obtaining submodule;
and the fifth sending submodule is used for returning a response to the second platform module.
55. The system according to claim 54, wherein the fourth determining unit is specifically configured to:
judging whether the template name contained in the first contract creating request is not empty and does not exceed a first preset length;
judging whether the replacement data contained in the first contract creating request conforms to a second preset format or not;
if the judgment results are yes, judging that the first contract creating request is legal; otherwise, the first contract creating request is judged to be illegal.
56. The system of claim 54, wherein the function interface module further comprises: a first function interface sub-module;
the second platform module is also used for calling the first function interface sub-module to send a contract template adding request to the first platform module;
the first function interface sub-module includes:
a sixth judging unit, configured to judge whether the contract template adding request is legal;
a sixth sending unit, configured to send the contract template adding request to the first platform module when the sixth determining unit determines that the contract template adding request is legal;
a sixth error reporting unit, configured to, when the sixth determining unit determines that the contract template adding request is illegal, return an error code to the second platform module;
the first platform module further comprises:
a sixth receiving submodule, configured to receive a contract template adding request sent by the first function interface submodule;
the first creating submodule is used for creating a template record of the contract template contained in the contract template adding request;
the sixth storage submodule is used for storing the contract template to obtain a third storage address;
a seventh saving submodule, configured to correspondingly save the third storage address obtained by the sixth saving submodule and the template identifier included in the contract template adding request to the template record created by the first creating submodule;
a sixth sending submodule, configured to return a response to the second platform module;
the fifth search submodule is specifically configured to: and searching the corresponding template record according to the template identifier contained in the first contract establishing request, and searching the corresponding contract template according to a third storage address stored in the template record.
57. The system according to claim 56, wherein the sixth determining unit is specifically configured to:
judging whether the template name contained in the contract template adding request is not empty and does not exceed a first preset length;
judging whether the template contained in the contract template adding request is not empty and does not exceed a second preset length;
if the judgment result is yes, judging that the contract template adding request is legal; otherwise, the contract template adding request is judged to be illegal.
58. The system of claim 56, wherein the first platform module further comprises: a seventh judgment sub-module;
the seventh judging submodule is used for judging whether the contract template contained in the contract template adding request meets the requirement of converting the contract template into the document in the first preset format;
the first creating sub-module is specifically configured to: when the seventh judging submodule judges that the contract template contained in the contract template adding request meets the requirement of converting the contract template into the document in the first preset format, a template record of the contract template contained in the contract template adding request is created;
the sixth sending submodule is further configured to, when the seventh judging submodule judges that the contract template included in the contract template adding request does not meet the requirement of the document converted into the first preset format, return an error code to the second platform module.
59. The system according to claim 54, wherein the second acquisition submodule and the third acquisition submodule specifically include:
a seventh judging unit, configured to judge whether the received request includes a contract number;
a reading subunit, configured to read the contract number included in the received request when the seventh determining unit determines that the received request includes the contract number;
a generating unit configured to generate the contract number when the seventh judging unit judges that the received request does not include the contract number.
60. The system of claim 59, wherein the second acquisition submodule and the third acquisition submodule further comprise:
an eighth judging unit, configured to judge whether the contract number included in the received request is occupied by another contract;
the reading unit is specifically configured to: when the eighth judging unit judges that the contract number contained in the received request is not occupied by other contracts, reading the contract number contained in the received request;
and a seventh error reporting unit, configured to return an error code to the second platform module when the eighth determining unit determines that the contract number included in the received request is occupied by another contract.
61. The system of claim 54,
the third generation submodule is specifically configured to: replacing the identifier at the corresponding position in the contract to be created with the replacement data contained in the first contract creating request to obtain a contract document, and converting the contract document into a first preset format to be used as a contract to be signed;
the sub-modules comprise:
a ninth judging unit, configured to judge whether the contract document included in the second contract creating request is in the first preset format;
a sub-unit configured to, when the ninth judging unit judges that the contract document included in the second contract creation request is in the first preset format, treat the contract document as a contract to be signed;
and a converting subunit, configured to, when the ninth determining unit determines that the contract document included in the second contract creating request is not in the first preset format, convert the contract document into the first preset format and use the converted contract document as a contract to be signed.
62. The system of claim 54, wherein the first platform module further comprises: a second creation sub-module;
the second creating submodule is used for creating a contract record of the contract to be created;
the third saving submodule and the fifth saving submodule are specifically configured to: and correspondingly storing the first storage address and the contract number into a contract record created by the second creation submodule.
63. The system of claim 54, wherein the first platform module further comprises: a first conversion submodule and an eighth storage submodule;
the first conversion sub-module is configured to convert the contract to be signed into a picture as a contract to be displayed before the fourth sending sub-module and the fifth sending sub-module return responses to the second platform module;
and the eighth storage submodule is used for storing the contract to be displayed to obtain a second storage address and correspondingly storing the second storage address and the contract number.
64. The system according to claim 63, wherein said function interface module further comprises: a second function interface sub-module;
the second platform module is further configured to call the second function interface sub-module to send a watermark adding picture request to the first platform module;
the second function interface sub-module includes:
a tenth judging unit, configured to judge whether the watermark adding picture request is legal;
a seventh sending unit, configured to send the watermark adding picture request to the first platform module when the tenth determining unit determines that the watermark adding picture request is legal;
an eighth error reporting unit, configured to, when the tenth determining unit determines that the request for adding a watermark is illegal, return an error code to the second platform module;
the first platform module further comprises:
a seventh receiving submodule, configured to receive the watermark adding picture request;
a ninth saving sub-module, configured to save the watermark picture included in the watermark picture adding request to an account of the second platform module;
an eighth judging submodule, configured to judge whether the contract to be signed needs to be watermarked after the first converting submodule converts the contract to be signed into a picture as a contract to be displayed;
and the first adding submodule is used for respectively adding the watermark pictures stored in the account of the second platform module into the contract to be signed and the contract to be displayed when the eighth judging submodule judges that the contract to be signed needs to be added with the watermarks.
65. The system of claim 64,
the ninth saving sub-module is specifically configured to: correspondingly storing the watermark picture and the watermark picture identification contained in the watermark picture adding request into an account of the second platform;
the first adding submodule is specifically configured to: and finding the corresponding watermark picture in the account of the second platform module according to the watermark picture identifier contained in the received contract creating request, and respectively adding the found watermark picture into the contract to be signed and the contract to be displayed.
66. The system of claim 54, wherein the function interface module further comprises: a second function interface sub-module;
the second platform module is further configured to call the second function interface sub-module to send a watermark adding picture request to the first platform module;
the second function interface sub-module includes:
a tenth judging unit, configured to judge whether the watermark adding picture request is legal;
a seventh sending unit, configured to send the watermark adding picture request to the first platform module when the tenth determining unit determines that the watermark adding picture request is legal;
an eighth error reporting unit, configured to, when the tenth determining unit determines that the request for adding a watermark is illegal, return an error code to the second platform module;
the first platform module further comprises:
an eighth receiving submodule, configured to receive the watermark adding picture request;
a tenth storing submodule, configured to store the watermark picture included in the watermark picture adding request into an account of the second platform module;
a ninth judging submodule, configured to judge whether the contract to be signed needs to be watermarked before the second saving submodule and the fourth saving submodule obtain the first storage address;
and the second adding sub-module is used for adding the watermark picture stored in the account of the second platform module into the contract to be signed when the ninth judging sub-module judges that the contract to be signed needs to be added with the watermark.
67. The system of claim 66,
the tenth saving submodule is specifically configured to: correspondingly storing the watermark picture and the watermark picture identification contained in the watermark picture adding request into an account of the second platform module;
the second adding submodule is specifically configured to: and searching a corresponding watermark picture in the account of the second platform module according to the watermark picture identifier contained in the received contract establishing request, and adding the searched watermark picture into the contract to be signed.
68. The system according to claim 64 or 66, wherein the ninth and tenth determination units are specifically configured to: judging whether the size, the dimension and the transparency of the watermark picture contained in the watermark picture adding request are all in corresponding preset conditions, if so, judging that the watermark picture adding request is legal; otherwise, the watermark adding picture request is judged to be illegal.
69. The system according to claim 54, wherein the fifth determining unit is specifically configured to:
judging whether the type of the contract document contained in the second contract creating request is a supported file type or not;
judging whether the contract document contained in the second contract creating request is not empty and does not exceed a preset size;
if the judgment results are yes, judging that the second contract creating request is legal; otherwise, the second contract creating request is judged to be illegal.
70. The system according to claim 54, wherein the fourth and fifth transmitting sub-modules are specifically configured to: and returning a response to the second platform module according to a return response address contained in the received request.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710276720.4A CN107133777A (en) | 2017-04-25 | 2017-04-25 | A kind of establishment of electronic contract, signature method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710276720.4A CN107133777A (en) | 2017-04-25 | 2017-04-25 | A kind of establishment of electronic contract, signature method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107133777A true CN107133777A (en) | 2017-09-05 |
Family
ID=59715614
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710276720.4A Pending CN107133777A (en) | 2017-04-25 | 2017-04-25 | A kind of establishment of electronic contract, signature method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107133777A (en) |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107818504A (en) * | 2017-09-27 | 2018-03-20 | 上海维信荟智金融科技有限公司 | The automation signature method and system of contract |
CN107844710A (en) * | 2017-09-26 | 2018-03-27 | 浙江大学 | A kind of contract generation system and generation method |
CN109003210A (en) * | 2018-07-18 | 2018-12-14 | 杭州鑫合汇互联网金融服务有限公司 | A kind of Electronic Seal System and method |
CN109492367A (en) * | 2018-10-17 | 2019-03-19 | 平安国际融资租赁有限公司 | Electronic contract signature processing method, device, computer equipment and storage medium |
CN109711806A (en) * | 2018-12-26 | 2019-05-03 | 上海连尚网络科技有限公司 | A kind of contracting method, equipment and computer-readable medium |
CN109710903A (en) * | 2018-08-20 | 2019-05-03 | 平安普惠企业管理有限公司 | Management method, device, equipment and the storage medium of document |
CN109784873A (en) * | 2019-02-28 | 2019-05-21 | 飞天诚信科技股份有限公司 | A working method and equipment of an electronic contract signing platform |
WO2019100613A1 (en) * | 2017-11-23 | 2019-05-31 | 平安科技(深圳)有限公司 | Electronic insurance policy signing method and apparatus, computer device and storage medium |
CN110084072A (en) * | 2019-04-30 | 2019-08-02 | 北京智签科技有限公司 | A kind of electronic contract online verification method based on block chain network |
CN110113157A (en) * | 2019-05-05 | 2019-08-09 | 江苏全链通信息科技有限公司 | Contract processing method, equipment, network and storage medium based on block chain |
CN110175807A (en) * | 2019-04-17 | 2019-08-27 | 平安普惠企业管理有限公司 | Document data processing method, device and computer equipment in loan transaction |
CN110245912A (en) * | 2019-04-28 | 2019-09-17 | 深圳法大大网络科技有限公司 | A kind of electronic contract signature method, apparatus, storage medium and terminal device |
CN110264383A (en) * | 2019-05-06 | 2019-09-20 | 深圳法大大网络科技有限公司 | A kind of electronic contract is put on record method, apparatus, readable storage medium storing program for executing and server |
CN110427602A (en) * | 2019-07-26 | 2019-11-08 | 杭州尚尚签网络科技有限公司 | A method of quick, safe creation and transmission electronic contract based on template |
CN113743049A (en) * | 2021-09-06 | 2021-12-03 | 四川新网银行股份有限公司 | Method for previewing electronic contract |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1858793A (en) * | 2006-05-24 | 2006-11-08 | 孟繁波 | Electronic contract managing system operation platform |
CN105488432A (en) * | 2015-11-30 | 2016-04-13 | 山东中创软件工程股份有限公司 | Document anti-fake method and device |
CN105787741A (en) * | 2016-02-17 | 2016-07-20 | 林慕新 | Electronic contract signing system based on mobile phone client, and application method thereof |
CN105913219A (en) * | 2016-04-05 | 2016-08-31 | 周宇航 | Method and system used for monitoring and managing whole actuating process of electronic contract |
CN106067849A (en) * | 2016-05-24 | 2016-11-02 | 飞天诚信科技股份有限公司 | A kind of digital signature method being applicable to PDF document and device |
CN106295405A (en) * | 2016-07-25 | 2017-01-04 | 飞天诚信科技股份有限公司 | A kind of method concluding electronic contract and server |
-
2017
- 2017-04-25 CN CN201710276720.4A patent/CN107133777A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1858793A (en) * | 2006-05-24 | 2006-11-08 | 孟繁波 | Electronic contract managing system operation platform |
CN105488432A (en) * | 2015-11-30 | 2016-04-13 | 山东中创软件工程股份有限公司 | Document anti-fake method and device |
CN105787741A (en) * | 2016-02-17 | 2016-07-20 | 林慕新 | Electronic contract signing system based on mobile phone client, and application method thereof |
CN105913219A (en) * | 2016-04-05 | 2016-08-31 | 周宇航 | Method and system used for monitoring and managing whole actuating process of electronic contract |
CN106067849A (en) * | 2016-05-24 | 2016-11-02 | 飞天诚信科技股份有限公司 | A kind of digital signature method being applicable to PDF document and device |
CN106295405A (en) * | 2016-07-25 | 2017-01-04 | 飞天诚信科技股份有限公司 | A kind of method concluding electronic contract and server |
Non-Patent Citations (1)
Title |
---|
袁文婷: "利用字符特征和标点符号的WORD文档水印算法研究", 《中国优秀硕士学位论文全文数据库(信息科技辑)》 * |
Cited By (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107844710B (en) * | 2017-09-26 | 2020-07-17 | 浙江大学 | A contract generation system and generation method |
CN107844710A (en) * | 2017-09-26 | 2018-03-27 | 浙江大学 | A kind of contract generation system and generation method |
CN107818504A (en) * | 2017-09-27 | 2018-03-20 | 上海维信荟智金融科技有限公司 | The automation signature method and system of contract |
WO2019100613A1 (en) * | 2017-11-23 | 2019-05-31 | 平安科技(深圳)有限公司 | Electronic insurance policy signing method and apparatus, computer device and storage medium |
CN109003210A (en) * | 2018-07-18 | 2018-12-14 | 杭州鑫合汇互联网金融服务有限公司 | A kind of Electronic Seal System and method |
CN109710903A (en) * | 2018-08-20 | 2019-05-03 | 平安普惠企业管理有限公司 | Management method, device, equipment and the storage medium of document |
CN109492367A (en) * | 2018-10-17 | 2019-03-19 | 平安国际融资租赁有限公司 | Electronic contract signature processing method, device, computer equipment and storage medium |
CN109711806A (en) * | 2018-12-26 | 2019-05-03 | 上海连尚网络科技有限公司 | A kind of contracting method, equipment and computer-readable medium |
CN109784873A (en) * | 2019-02-28 | 2019-05-21 | 飞天诚信科技股份有限公司 | A working method and equipment of an electronic contract signing platform |
CN109784873B (en) * | 2019-02-28 | 2021-07-02 | 飞天诚信科技股份有限公司 | A working method and equipment of an electronic contract signing platform |
CN110175807A (en) * | 2019-04-17 | 2019-08-27 | 平安普惠企业管理有限公司 | Document data processing method, device and computer equipment in loan transaction |
CN110245912A (en) * | 2019-04-28 | 2019-09-17 | 深圳法大大网络科技有限公司 | A kind of electronic contract signature method, apparatus, storage medium and terminal device |
CN110084072A (en) * | 2019-04-30 | 2019-08-02 | 北京智签科技有限公司 | A kind of electronic contract online verification method based on block chain network |
CN110113157A (en) * | 2019-05-05 | 2019-08-09 | 江苏全链通信息科技有限公司 | Contract processing method, equipment, network and storage medium based on block chain |
CN110264383A (en) * | 2019-05-06 | 2019-09-20 | 深圳法大大网络科技有限公司 | A kind of electronic contract is put on record method, apparatus, readable storage medium storing program for executing and server |
CN110264383B (en) * | 2019-05-06 | 2022-03-11 | 深圳法大大网络科技有限公司 | Electronic contract filing method and device, readable storage medium and server |
CN110427602A (en) * | 2019-07-26 | 2019-11-08 | 杭州尚尚签网络科技有限公司 | A method of quick, safe creation and transmission electronic contract based on template |
CN113743049A (en) * | 2021-09-06 | 2021-12-03 | 四川新网银行股份有限公司 | Method for previewing electronic contract |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107133777A (en) | A kind of establishment of electronic contract, signature method and system | |
US9355389B2 (en) | Purchase transaction system with encrypted payment card data | |
CN105512881A (en) | Method and terminal for completing payment on the basis of two-dimensional code | |
CN108921627A (en) | A kind of method and system generating electronic invoice OFD layout files | |
CN110471951A (en) | Determine the method for the sequence of Transaction Information, accounting nodes and medium in data block | |
CN101414370A (en) | Payment method, system and payment platform capable of improving payment safety by virtual card | |
CN113032703B (en) | Resource data processing method, device, computer equipment and storage medium | |
CN104732431A (en) | Electronic bill platform and electronic bill processing method executing on electronic bill platform | |
CN105654355A (en) | Invoice generation method and equipment | |
CN113706299B (en) | Data processing method, device, electronic equipment and medium | |
JP2012003670A (en) | Receipt information processing apparatus, method and computer program | |
AU2014201213A1 (en) | Information Processing System, Information Processing Apparatus, Method Of Controlling An Information Processing Appataus, And Program | |
CN110942567A (en) | Self-service equipment data processing method, device and system | |
WO2024066749A1 (en) | Blockchain transaction execution method and apparatus, program product, device, and medium | |
CN106447968A (en) | Invoicing device, system and method | |
KR20180016735A (en) | Business processing methods and devices | |
CN111681141A (en) | File authentication method, file authentication device and terminal equipment | |
CN105516225A (en) | Operation object method, device and system | |
CN104993930A (en) | Digital voucher generation method and system, and digital voucher verifying method and system | |
CN115361376A (en) | Government affair file uploading method and device, electronic equipment and storage medium | |
CN105590241B (en) | Self-adaptive electronic bill implementation method and system | |
CN109978683A (en) | Supply chain management method, system, storage medium and electronic equipment | |
CN107516251A (en) | The method and system of interactive operation based on electronic bill | |
CN105427116A (en) | Network service platform based digital watermark anti-counterfeit system | |
CN107729345B (en) | Website data processing method and device, website data processing platform 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170905 |