CN109460226A - Test certificate image generation method, device, equipment and storage medium - Google Patents

Test certificate image generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN109460226A
CN109460226A CN201811415507.8A CN201811415507A CN109460226A CN 109460226 A CN109460226 A CN 109460226A CN 201811415507 A CN201811415507 A CN 201811415507A CN 109460226 A CN109460226 A CN 109460226A
Authority
CN
China
Prior art keywords
mvc
image
certificate image
test certificate
test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811415507.8A
Other languages
Chinese (zh)
Other versions
CN109460226B (en
Inventor
张琳娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Lexin Software Technology Co Ltd
Original Assignee
Shenzhen Lexin Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Lexin Software Technology Co Ltd filed Critical Shenzhen Lexin Software Technology Co Ltd
Priority to CN201811415507.8A priority Critical patent/CN109460226B/en
Publication of CN109460226A publication Critical patent/CN109460226A/en
Application granted granted Critical
Publication of CN109460226B publication Critical patent/CN109460226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/34Graphical or visual programming

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the invention discloses a kind of test certificate image generation method, device, equipment and storage mediums.The described method includes: inputting information generation test certificate image generation instruction according to the user received by target webpage based on the view layer in MVC and sending it to the controller layer in MVC;Instruction and its corresponding certificate stencil image generation test certificate image are generated according to test certificate image based on the controller layer in MVC and stored to setting storage region, view layer storage address being sent in MVC;It is obtained from setting storage region based on the view layer in MVC and shows test certificate image in target webpage.The manufacturing process that the technical solution of the embodiment of the present invention solves test certificate image in the prior art is cumbersome, time-consuming and production effect is difficult to meet the technological deficiency of high requirement, realizes the test certificate image for conveniently and efficiently generating high quality.

Description

Test certificate image generation method, device, equipment and storage medium
Technical field
The present embodiments relate to image generating technologies field more particularly to a kind of test certificate image generation methods, dress It sets, equipment and storage medium.
Background technique
With the continuous development of network technology and mobile device, the variation of matter is had occurred in the funds transaction mode of people. Nowadays people carry out funds transaction more by Mobile banking, finance class APP and Web bank etc..Due to passing through network The funds transaction of progress is all non-aspectant transaction, it is therefore desirable to which carrying out stringent verifying to user information just can be confirmed use Family identity.It wherein, is a more important and effective authentication mode to the verifying of ID card information.
It in general is realized by OCR (Optical Character Recognition, optical character identification) technology Verifying to ID card information.Before OCR on-line running, the identity using a large amount of test certificate image to OCR is needed It can be carried out test and verification.In the prior art, generally by PhotoShop, or test card is obtained by Axure RP Part image.
In the implementation of the present invention, the discovery prior art has following defects that the system of test certificate image to inventor Make that process is cumbersome, time-consuming and production effect is difficult to meet high requirement.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of test certificate image generation method, device, equipment and storages to be situated between Matter, the production method to optimize existing test certificate image, realizes the test certificate for conveniently and efficiently generating high quality Image.MVC is Model View Controller, is model (model)-view (view)-controller (controller) Abbreviation.
In a first aspect, being wrapped the embodiment of the invention provides a kind of test certificate image generation method based on web interaction It includes:
Based on the view layer in MVC, information is inputted according to the user received by target webpage and generates test certificate figure The controller layer that instruction is sent in MVC is generated as generating instruction, and by the test certificate image;
Based on the controller layer in the MVC, instruction and the test certificate are generated according to the test certificate image Image, which generates, instructs corresponding certificate stencil image, generates test certificate image, and the test certificate image is stored to setting Determine storage region, while the storage address of the test certificate image is sent to the view layer in the MVC;
The survey is obtained from the setting storage region according to the storage address based on the view layer in the MVC Certificate image is tried, and the test certificate image is shown in the target webpage.
In the above-mentioned methods, optionally, the view layer based in MVC, according to what is received by target webpage User inputs information and generates test certificate image generation instruction, and the test certificate image is generated instruction and is sent in MVC Controller layer, comprising:
Based on the view layer in MVC, the information of user's input is received by target webpage;
If the information of user's input is to test the certificate information of certificate, based on the view layer in the MVC, root It is generated according to the certificate information and tests the specified generation instruction of certificate image, and the specified generation instruction of the test certificate image is sent out Send the controller layer into MVC;
If the information of user's input is the random quantity for generating test certificate image and the test certificate figure The classification of picture, then based on the view layer in the MVC, according to the random quantity and the survey for generating test certificate image The classification of examination certificate image generates test certificate image and generates instruction at random, and the test certificate image is generated instruction at random The controller layer being sent in the MVC.
In the above-mentioned methods, optionally, the controller layer based in the MVC, according to the test certificate figure It generates as generating instruction and the test certificate image and instructs corresponding certificate stencil image, generate test certificate image, and The test certificate image is stored to setting storage region, while the storage address of the test certificate image is sent to institute State the view layer in MVC, comprising:
Based on the controller layer in the MVC, instruction generation image configurations are generated according to the test certificate image is specified Parameter;
It is specified according to described image configuration parameter and the test certificate image based on the controller layer in the MVC It generates and instructs corresponding certificate stencil image, generate test certificate image, and the test certificate image is stored to setting and is deposited Storage area domain, while the storage address of the test certificate image is sent to the view layer in the MVC.
In the above-mentioned methods, optionally, the controller layer based in the MVC, according to the test certificate figure It generates as generating instruction and the test certificate image and instructs corresponding certificate stencil image, generate test certificate image, and The test certificate image is stored to setting storage region, while the storage address of the test certificate image is sent to institute State the view layer in MVC, comprising:
Based on the controller layer in the MVC, generates instruction at random according to the test certificate image and deposited from the setting In storage area domain, the test certificate image is obtained according to the random quantity for generating test certificate image, and will be acquired The storage address of test certificate image is sent to the view layer in the MVC.
In the above-mentioned methods, optionally, the view layer in the MVC and the controller layer in the MVC are based on AJAX Technology carries out data interaction.
In the above-mentioned methods, optionally, further includes:
Based on the model layer in MVC, obtained according to the total number of images amount that the controller layer in the MVC received is sent Instruction obtains described image total quantity from setting database, and described image total quantity is sent to the control in the MVC Device layer;
Based on the view layer in the MVC, the described image total quantity that the controller in the MVC received is sent It is shown in the target webpage.
In the above-mentioned methods, optionally, the controller layer based in the MVC, according to the test certificate figure It generates as generating instruction and the test certificate image and instructs corresponding certificate stencil image, generate test certificate image, and The test certificate image is stored to setting storage region, while the storage address of the test certificate image is sent to institute State the view layer in MVC, comprising:
Based on the controller layer in the MVC, instruction and the test certificate are generated according to the test certificate image Image, which generates, instructs corresponding certificate stencil image, generates test certificate image, and the test certificate image is stored to setting Determine storage region;
Based on the controller layer in the MVC, the numerical value after described image total quantity adds 1 is obtained, and described image is total Numerical value after quantity adds 1 is sent to the model layer;
Numerical value and the test certificate based on the controller layer in the MVC, after described image total quantity is added 1 The storage address of image is sent to the view layer in the MVC;
Correspondingly, the view layer based in the MVC, according to the storage address, from the setting storage region It is middle to obtain the test certificate image, and the test certificate image is shown in the target webpage, comprising:
Based on the view layer in the MVC, the survey is obtained from the setting storage region according to the storage address Try certificate image, and by it is described test certificate image and described image total quantity add 1 after numerical value in the target webpage It is shown.
In the above-mentioned methods, optionally, further includes:
Based on the model layer in the MVC, the described image sent according to the controller layer in the MVC received is total Quantity add 1 after numerical value, update it is described setting database in data.
In second aspect, the embodiment of the invention provides a kind of test certificate image generating means based on web interaction, packets It includes:
Instruction acquisition module, for inputting letter according to the user received by target webpage based on the view layer in MVC Breath generates test certificate image and generates instruction, and the test certificate image is generated the controller layer that instruction is sent in MVC;
Image generation module, for being generated and being instructed according to the test certificate image based on the controller layer in the MVC And the test certificate image generates and instructs corresponding certificate stencil image, generates test certificate image, and by the test Certificate image is stored to setting storage region, while the storage address of the test certificate image being sent in the MVC View layer;
Image display, for being deposited according to the storage address from the setting based on the view layer in the MVC The test certificate image is obtained in storage area domain, and the test certificate image is shown in the target webpage.
In the third aspect, the embodiment of the invention provides a kind of equipment, the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the test certificate image generation method based on web interaction as described in any embodiment of that present invention.
It is described the embodiment of the invention provides a kind of storage medium comprising computer executable instructions in fourth aspect Computer executable instructions when being executed as computer processor for execute as described in any embodiment of that present invention based on web Interactive test certificate image generation method.
The embodiment of the invention provides a kind of test certificate image generation method, device, equipment and storage mediums, are based on View layer in MVC inputs information according to the user received by target webpage and generates test certificate image generation instruction, base Controller layer in MVC generates instruction according to test certificate image and its corresponding certificate stencil image generates test certificate figure Picture is simultaneously stored to setting storage region, is obtained from setting storage region based on the view layer in MVC and is shown in target webpage Show test certificate image, solve test in the prior art certificate image manufacturing process it is cumbersome, time-consuming and production effect is difficult To meet the technological deficiency of high requirement, the test certificate image for conveniently and efficiently generating high quality is realized.
Detailed description of the invention
Fig. 1 is a kind of process for test certificate image generation method based on web interaction that the embodiment of the present invention one provides Figure;
Fig. 2 is a kind of process of test certificate image generation method based on web interaction provided by Embodiment 2 of the present invention Figure;
Fig. 3 is a kind of process for test certificate image generation method based on web interaction that the embodiment of the present invention three provides Figure;
Fig. 4 is a kind of structure for test certificate image generating means based on web interaction that the embodiment of the present invention four provides Figure;
Fig. 5 is a kind of structure chart for equipment that the embodiment of the present invention five provides.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawing to of the invention specific real Example is applied to be described in further detail.It is understood that specific embodiment described herein is used only for explaining the present invention, Rather than limitation of the invention.
It also should be noted that only the parts related to the present invention are shown for ease of description, in attached drawing rather than Full content.It should be mentioned that some exemplary embodiments are described before exemplary embodiment is discussed in greater detail At the processing or method described as flow chart.Although operations (or step) are described as the processing of sequence by flow chart, It is that many of these operations can be implemented concurrently, concomitantly or simultaneously.In addition, the sequence of operations can be by again It arranges.The processing can be terminated when its operations are completed, it is also possible to have the additional step being not included in attached drawing. The processing can correspond to method, function, regulation, subroutine, subprogram etc..
Embodiment one
Fig. 1 is a kind of process for test certificate image generation method based on web interaction that the embodiment of the present invention one provides Figure, the method for the present embodiment can be executed by the test certificate image generating means interacted based on web, which can be by hard The mode of part and/or software is realized, and can be generally integrated in equipment, such as server etc..The method of the present embodiment is specifically wrapped It includes:
S101, based on the view layer in MVC, information is inputted according to the user received by target webpage and generates test card Part image generates instruction, and generates the controller layer that instruction is sent in MVC for certificate image is tested.
In the present embodiment, target webpage, which specifically refers to be shown in browser, is used for user's input test certificate image Generate the Webpage of instruction.Specifically, user can also input test certificate image pair to be generated by target webpage The certificate information of the type of credential, test certificate image to be generated answered and the particular image of test certificate image to be generated It is required that etc..Wherein, test certificate image, which generates instruction, can specifically include the type of test certificate, certificate information and test card The information such as the rendering parameter of part image.Test certificate image is specifically as follows test ID Card Image, test driving license image, test Officer's identity card image, test medical insurance card graphic etc..Test certificate information can specifically include passport NO., certificate date of issue with And certificate validity period etc..
It further, in the present embodiment, can be by the test certificate after receiving test certificate image and generating instruction Image generates the controller layer that instruction is sent in MVC, so that it generates instruction and test certificate according to test certificate image Image, which generates, instructs corresponding certificate stencil image, generates test certificate image.
Specifically, if user has input test certificate information in target webpage, the controller layer in MVC can Test certificate information is obtained in instruction directly to generate from test certificate image;What if user inputted in target webpage be with Machine generates the quantity of test certificate image and tests the classification of certificate image, then controller layer in MVC can according to Machine generates the quantity of test certificate image and tests the classification of certificate image, directly obtains from generated test certificate image Required test certificate image is taken, test certificate image identical with the classification for testing certificate image can also be regenerated.When So, when user is set as obtaining test certificate information at random by target webpage, user can also input some be directed to simultaneously The qualifications of certificate information are tested, for example, passport NO. should be with 9 beginnings etc..
S102, based on the controller layer in MVC, instruction is generated according to test certificate image and test certificate image generates Corresponding certificate stencil image is instructed, generates test certificate image, and test certificate image is stored to storage region is set, together When the storage address for testing certificate image is sent to view layer in MVC.
In the present embodiment, the controller layer in MVC, first can root after receiving test certificate image and generating instruction Instruction is generated according to test certificate image and obtains corresponding certificate stencil image, is then referred to further according to test certificate image generation Order and certificate stencil image generate certificate image.
Specifically, if user is provided with the rendering parameter of certificate information in test certificate image by target webpage, Controller layer in so MVC can be plotted in certificate image template according to above-mentioned rendering parameter by certificate information is tested, into And generate the test certificate image for meeting user demand.
Illustratively, the controller layer in MVC specifically can be based on PHP (Hypertext Preprocessor, it is super literary This preprocessor) first initialisation image handle class, then the rendering parameter of exact p-value certificate information, will finally test certificate Information is added in certificate stencil image according to rendering parameter and in a manner of watermark, generates test certificate image.
Further, in the present embodiment, based on the controller layer in MVC it is every generate test certificate image it Afterwards, the test certificate image can all be stored into setting storage region, and the storage address for testing certificate image is sent to View layer in MVC, so that the view layer in MVC can call the test certificate image from setting in storage region, and It is shown in target webpage.Wherein, setting storage region specifically can be the storage for storing one species test certificate image Region is also possible to the storage region for storing variety classes test certificate image.
S103, test certificate image is obtained according to storage address from setting storage region based on the view layer in MVC, And test certificate image is shown in target webpage.
In the present embodiment, the view layer in MVC is receiving the test certificate image of the controller layer transmission in MVC After storage address, test certificate image will be obtained from setting storage region according to storage address, and certificate figure will be tested As being shown in target webpage, user is allowed to view required test certificate image in time, and then can be used Test certificate image is tested and used in time in family.
The embodiment of the invention provides a kind of test certificate image generation method, based on the view layer in MVC according to passing through User that target webpage receives, which inputs information and generates test certificate image, generates instruction, based on the controller layer in MVC according to Test certificate image generates instruction and its corresponding certificate stencil image generates test certificate image and stores to setting memory block Domain is obtained from setting storage region based on the view layer in MVC and is shown in target webpage test certificate image, solves The manufacturing process for testing certificate image in the prior art is cumbersome, time-consuming and production effect is difficult to meet the technology of high requirement and lacks It falls into, realizes the test certificate image for conveniently and efficiently generating high quality.
Embodiment two
Fig. 2 is a kind of process of test certificate image generation method based on web interaction provided by Embodiment 2 of the present invention Figure.The present embodiment is optimized based on above-described embodiment, in the present embodiment, gives a kind of materialization test certificate figure As the step of generating instruction, and embody the specific embodiment of test certificate image generation step.
Correspondingly, the method for the present embodiment specifically includes:
S201, based on the view layer in MVC, pass through the information that target webpage receives user's input.
S202, based on the view layer in MVC, judge user's input information be test the certificate information of certificate, or with Machine generates the quantity of test certificate image and tests the classification of certificate image, if the certificate information of test certificate, then execute Step 203, if being randomly generated the quantity of test certificate image and testing the classification of certificate image, 206 are thened follow the steps.
In the present embodiment, there are two types of the information of the user's input received by target webpage, and one is test certificates Certificate information, it is a kind of be randomly generated test certificate image quantity and test certificate image classification.For above-mentioned two The information of kind of user input, the view layer in MVC can generate two different test certificates and generate instruction, and one is test certificate Image is specified to generate instruction, and one is test certificate image upper levels to generate instruction.
S203, based on the view layer in MVC, generate that test certificate image is specified to generate instruction according to certificate information, and will The specified controller layer for generating instruction and being sent in MVC of test certificate image.
In the present embodiment, if what user inputted by target webpage is the certificate information for testing certificate, i.e. user is uncommon It hopes and obtains test certificate image corresponding with the information that it is inputted, then the view layer in MVC can generate test certificate image and refer to It is fixed to generate instruction, include the certificate information of the test certificate of user's input in the instruction, then specifies test certificate image The controller layer that instruction is sent in MVC is generated, so that the controller layer in MVC generates instruction according to test certificate image is specified Test certificate image needed for generating user.
S204, based on the controller layer in MVC, generate instruction according to test certificate image is specified and generate image configurations ginseng Number.
In the present embodiment, the controller layer in MVC is in the specified generation of test certificate image for receiving view layer transmission After instruction, the certificate information in instruction can be generated according to test certificate image, determine the corresponding configuration ginseng of test certificate image Number.Wherein, configuration parameter specifically can be character script, text font size, text spacing, text color, digital color and number It is one or more in word space.
S205, based on the controller layer in MVC, according to image configuration parameter and test certificate image is specified generates instruction Corresponding certificate stencil image generates test certificate image, and test certificate image is stored to setting storage region, simultaneously will The storage address of test certificate image is sent to the view layer in MVC.
In the present embodiment, the controller layer in MVC can also generate instruction according to the test certificate image received is specified, Obtain the corresponding certificate stencil image of test certificate image to be generated.Then, the controller layer in MVC can be according to step 204 Identified configuration parameter, the certificate information received and acquired certificate stencil image, test needed for generating user are demonstrate,proved Part image.
S206, based on the view layer in MVC, test certificate image is generated according to the random quantity for generating test certificate image It is random to generate instruction, and the controller layer that instruction is sent in MVC is generated at random by certificate image is tested.
In the present embodiment, if user by target webpage input be randomly generated test certificate image quantity with And the classification of test certificate image, then the view layer in MVC can generate test certificate image generates instruction at random, test card Part image generates the class of the quantity that instruction includes test certificate image to be generated and test certificate image to be generated at random Not, it then will test certificate image and generate the controller layer that instruction is sent in MVC at random, so that the controller layer root in MVC Test certificate image needed for instruction obtains user is generated at random according to test certificate image.
S207, based on the controller layer in MVC, instruction is generated from setting storage region according to test certificate image at random In, test certificate image is obtained according to the random quantity for generating test certificate image, and by acquired test certificate image Storage address is sent to the view layer in MVC.
In the present embodiment, the controller in MVC, can basis after receiving test certificate image and generating instruction at random The random quantity for generating test certificate image and the classification for testing certificate image, directly acquire user from setting storage region Required test certificate image, and the storage address in the test certificate image directly acquired early setting storage region is sent to View layer in MVC.
Further, the controller in MVC can also pass through after receiving test certificate image and generating instruction at random Test certificate image needed for following methods obtain user:
The classification for generating the test certificate image for including in instruction at random according to test certificate image first, obtains certificate mould Plate image, then obtaining N group information at random from existing test certificate image information, (N is that random generate tests certificate image Quantity), ultimately produce N test certificate images.
S208, test certificate image is obtained according to storage address from setting storage region based on the view layer in MVC, And test certificate image is shown in target webpage.
The embodiment of the invention provides a kind of test certificate image generation method based on web interaction, this method embodies Test certificate image generates the step of instruction, realizes the diversification of test certificate information input mode, so that user can be with It is more flexible and advantageously obtain required test certificate image, and test certificate image generation step is embodied, it is real Show efficient, convenient and has accurately generated test certificate image.
On the basis of the various embodiments described above, be embodied as: the controller layer in view layer and MVC in MVC is based on AJAX technology carries out data interaction.
The benefit being arranged in this way is: realizing without that can update mesh in the case where reloading entire target webpage The partial content for marking webpage, allows user in time, advantageously to check the test certificate image of generation.
Embodiment three
Fig. 3 is a kind of process for test certificate image generation method based on web interaction that the embodiment of the present invention three provides Figure.The present embodiment is optimized based on above-described embodiment, in the present embodiment, it is aobvious to give a kind of increase total number of images amount Show step, after the amendment of total number of images amount and display amendment after increasing test certificate image generation the step of total number of images amount, with And increase the specific embodiment of database update step.
Correspondingly, the method for the present embodiment specifically includes:
S301, based on the view layer in MVC, information is inputted according to the user received by target webpage and generates test card Part image generates instruction, and generates the controller layer that instruction is sent in MVC for certificate image is tested.
S302, the mould based on the controller layer in MVC, after receiving test certificate image and generating instruction, into MVC Type layer sends total number of images amount acquisition instruction.
In the present embodiment, it is realized by step 302 to step 305 and shows total number of images amount in target webpage, In, total number of images amount is also possible to generated and test certificate either generated all total quantitys for testing certificate Image generate instruction it is corresponding test certificate image type it is identical test certificate image total quantity, the present embodiment comparison not into Row limitation.
Further, the present embodiment is only to be representatively shown as first carrying out step 302 to step 305, is then executed again Step 306, in actual operation, step 302 to step 305 can be performed simultaneously with step 306.
S303, based on the model layer in MVC, obtained according to the total number of images amount that the controller layer in the MVC received is sent Instruction fetch obtains total number of images amount from setting database, and total number of images amount is sent to the controller layer in MVC.
In the present embodiment, total number of images amount is stored in setting database, and is by the model layer in MVC Total number of images amount is obtained from setting database.Therefore, the controller layer in MVC is receiving test certificate image generation instruction Later, model layer of the meeting into MVC sends total number of images amount acquisition instruction, so that the model layer in MVC is from setting database Obtain total number of images amount.
In the present embodiment, the model layer in MVC, can be from setting data after receiving total number of images amount acquisition instruction Total number of images amount is obtained in library, and total number of images amount is fed back to the controller layer in MVC.
S304, based on the controller layer in MVC, the view layer total number of images amount received being sent in MVC.
Since total number of images amount will finally be shown in target webpage, in the present embodiment, it is based on Controller layer in MVC is after receiving total number of images amount, the view layer that can be sent to total number of images amount in MVC.
S305, based on the view layer in MVC, by the total number of images amount of the controller in the MVC received in target webpage In shown.
S306, based on the controller layer in MVC, instruction is generated according to test certificate image and test certificate image generates Corresponding certificate stencil image is instructed, generates test certificate image, and test certificate image is stored to storage region is set, together When the storage address for testing certificate image is sent to view layer in MVC.
S307, based on the controller layer in MVC, obtain the numerical value after total number of images amount adds 1, and total number of images amount is added 1 Numerical value afterwards is sent to model layer.
In the present embodiment, the controller layer in MVC is after being successfully generated a test certificate image, in order to make to set The total number of images amount stored in database is correct, can carry out the total number of images amount obtained before plus 1 operates, after then adding 1 Numerical value be sent to model layer so that the storing data in model layer more new settings database.
S308, based on the controller layer in MVC, numerical value after total number of images amount is added 1, and test certificate image are deposited Storage address is sent to the view layer in MVC.
S309, based on the view layer in MVC, test certificate image is obtained from setting storage region according to storage address, And it is shown the numerical value after certificate image and total number of images amount add 1 is tested in target webpage.
S310, based on the model layer in MVC, add 1 according to the total number of images amount that the controller layer in the MVC received is sent Numerical value afterwards, the data in more new settings database.
The embodiment of the invention provides it is a kind of based on web interaction test certificate image generation method, this method increase Total number of images amount shows step, and image is total after increasing the total number of images amount amendment after test certificate image generates and display amendment The step of quantity, also adds database update step, and user is allowed to confirm that required test certificate image is in time It is no to be successfully generated and store.
Example IV
Fig. 4 is a kind of structure for test certificate image generating means based on web interaction that the embodiment of the present invention four provides Figure.As shown in figure 4, described device includes: instruction acquisition module 401, image generation module 402 and image display 403, Wherein:
Instruction acquisition module 401, it is defeated according to the user received by target webpage for based on the view layer in MVC Enter information and generate test certificate image generation instruction, and generates the controller layer that instruction is sent in MVC for certificate image is tested;
Image generation module 402, for based on the controller layer in MVC, according to test certificate image generate instruction and It tests certificate image and generates the corresponding certificate stencil image of instruction, generate test certificate image, and test certificate image is stored To setting storage region, while the storage address for testing certificate image being sent to the view layer in MVC;
Image display 403, for being obtained from setting storage region based on the view layer in MVC according to storage address Test certificate image is taken, and test certificate image is shown in target webpage.
The embodiment of the invention provides a kind of test certificate image generating means based on web interaction, the device is logical first Instruction acquisition module 401 is crossed based on the view layer in MVC, information is inputted according to the user received by target webpage and generates survey It tries certificate image and generates instruction, and generate the controller layer that instruction is sent in MVC for certificate image is tested, then pass through image Generation module 402 generates instruction according to test certificate image and test certificate image generation refers to based on the controller layer in MVC Corresponding certificate stencil image is enabled, generates test certificate image, and test certificate image is stored to storage region is set, simultaneously The storage address for testing certificate image is sent to the view layer in MVC, finally by image display 403, for being based on View layer in MVC obtains test certificate image according to storage address from setting storage region, and will test certificate image It is shown in target webpage.
Which solves in the prior art test certificate image manufacturing process it is cumbersome, time-consuming and production effect is difficult to The technological deficiency for meeting high requirement realizes the test certificate image for conveniently and efficiently generating high quality.
On the basis of the various embodiments described above, instruction acquisition module 401 may include:
Information receiving unit, for receiving the information of user's input by target webpage based on the view layer in MVC;
It is specified to generate instruction generation unit, if the information for user's input is to test the certificate information of certificate, base View layer in MVC generates specified generate of test certificate image according to certificate information and instructs, and test certificate image is specified Generate the controller layer that instruction is sent in MVC;
It is random to generate instruction generation unit, if the information for user's input is the random number for generating test certificate image The classification of amount and test certificate image, then based on the view layer in MVC, according to the random quantity for generating test certificate image with And the classification of test certificate image generates test certificate image and generates instruction at random, and test certificate image is generated instruction at random The controller layer being sent in MVC.
On the basis of the various embodiments described above, image generation module 402 may include:
Parameter configuration unit, for generating instruction generation according to test certificate image is specified based on the controller layer in MVC Image configuration parameter;
First image generation unit, for according to image configuration parameter and testing certificate based on the controller layer in MVC Specified generate of image instructs corresponding certificate stencil image, generates test certificate image, and test certificate image is stored to setting Determine storage region, while the storage address for testing certificate image being sent to the view layer in MVC.
On the basis of the various embodiments described above, image generation module 402 can also include:
Second image generation unit, for generating instruction at random according to test certificate image based on the controller layer in MVC From setting storage region, test certificate image is obtained according to the random quantity for generating test certificate image, and will be acquired The storage address of test certificate image is sent to the view layer in the MVC.
On the basis of the various embodiments described above, the controller layer in view layer and MVC in MVC can be based on AJAX technology Carry out data interaction.
On the basis of the various embodiments described above, can also include:
Total number of images amount obtains module, for based on the model layer in MVC, according to the controller layer in the MVC received The total number of images amount acquisition instruction of transmission obtains total number of images amount from setting database, and total number of images amount is sent to MVC In controller layer;
Total number of images amount display module, for based on the view layer in MVC, the controller in the MVC received to be sent Total number of images amount shown in target webpage.
On the basis of the various embodiments described above, image generation module 402 may include:
Image storage unit, for generating instruction and test according to test certificate image based on the controller layer in MVC Certificate image, which generates, instructs corresponding certificate stencil image, generates test certificate image, and test certificate image is stored to setting Determine storage region;
Numerical value updating unit, for obtaining the numerical value after total number of images amount adds 1 based on the controller layer in MVC, and will figure As the numerical value after total quantity plus 1 is sent to model layer;
Numerical value transmission unit, for based on the controller layer in MVC, numerical value after total number of images amount is added 1, and test The storage address of certificate image is sent to the view layer in MVC;
Correspondingly, image display 403 specifically can be used for:
Based on the view layer in MVC, test certificate image is obtained from setting storage region according to storage address, and will survey Numerical value after examination certificate image and total number of images amount add 1 is shown in target webpage.
On the basis of the various embodiments described above, can also include:
Database update module, for being sent according to the controller layer in the MVC received based on the model layer in MVC Total number of images amount add 1 after numerical value, the data in more new settings database.
Test certificate image generating means based on web interaction provided by the embodiment of the present invention can be used for executing the present invention The test certificate image generation method based on web interaction that any embodiment provides, has corresponding functional module, realizes identical Beneficial effect.
Embodiment five
Fig. 5 is a kind of structural schematic diagram for equipment that the embodiment of the present invention five provides.Fig. 5, which is shown, to be suitable for being used to realizing this The block diagram of the example devices 12 of invention embodiment.The equipment 12 that Fig. 5 is shown is only an example, should not be to of the invention real The function and use scope for applying example bring any restrictions.
As shown in figure 5, equipment 12 is showed in the form of universal computing device.The component of equipment 12 may include but unlimited In one or more processor or processing unit 16, system storage 28, connecting different system components, (including system is deposited Reservoir 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment 12 The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable, Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable , non-volatile magnetic media (Fig. 5 do not show, commonly referred to as " hard disk drive ").Although being not shown in Fig. 5, use can be provided In the disc driver read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 18.Memory 28 may include at least one program product, The program product has one group of (for example, at least one) program module, these program modules are configured to perform each implementation of the invention The function of example.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 include but is not limited to operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.Program module 42 is usual Execute the function and/or method in embodiment described in the invention.
Equipment 12 can also be communicated with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.), Can also be enabled a user to one or more equipment interacted with the equipment 12 communication, and/or with enable the equipment 12 with One or more of the other any equipment (such as network interface card, modem etc.) communication for calculating equipment and being communicated.It is this logical Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or The multiple networks of person (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown, Network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that although not shown in the drawings, can combine Equipment 12 use other hardware and/or software module, including but not limited to: microcode, device driver, redundant processing unit, External disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize the test certificate image generation method based on web interaction provided by the embodiment of the present invention.Namely: Based on the view layer in MVC, information generation test certificate image generation is inputted according to the user received by target webpage and is referred to It enables, and the test certificate image is generated into the controller layer that instruction is sent in MVC;Based on the controller layer in the MVC, Instruction is generated according to the test certificate image and the test certificate image generates and instructs corresponding certificate stencil image, it is raw It stores at test certificate image, and by the test certificate image to setting storage region, while by the test certificate image Storage address be sent to the view layer in the MVC;Based on the view layer in the MVC, according to the storage address, from institute It states in setting storage region and obtains the test certificate image, and the test certificate image is carried out in the target webpage Display.
Embodiment six
The embodiment of the present invention six additionally provides a kind of storage medium comprising computer executable instructions, and the computer can It executes instruction when being executed as computer processor for executing the test certificate based on web interaction described in the embodiment of the present invention Image generating method.Namely: based on the view layer in MVC, information is inputted according to the user received by target webpage and is generated It tests certificate image and generates instruction, and the test certificate image is generated into the controller layer that instruction is sent in MVC;Based on institute The controller layer in MVC is stated, instruction is generated according to the test certificate image and the test certificate image generates instruction pair The certificate stencil image answered generates test certificate image, and the test certificate image is stored to storage region is set, simultaneously The storage address of the test certificate image is sent to the view layer in the MVC;Based on the view layer in the MVC, root According to the storage address, the test certificate image is obtained from the setting storage region, and by the test certificate image It is shown in the target webpage.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, It further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (11)

1. a kind of test certificate image generation method based on web interaction characterized by comprising
Based on the view layer in MVC, information is inputted according to the user received by target webpage and generates test certificate image life The controller layer that instruction is sent in MVC is generated at instruction, and by the test certificate image;
Based on the controller layer in the MVC, instruction and the test certificate image are generated according to the test certificate image It generates and instructs corresponding certificate stencil image, generate test certificate image, and the test certificate image is stored to setting and is deposited Storage area domain, while the storage address of the test certificate image is sent to the view layer in the MVC;
The test card is obtained from the setting storage region according to the storage address based on the view layer in the MVC Part image, and the test certificate image is shown in the target webpage.
2. the method according to claim 1, wherein the view layer based in MVC, according to passing through target network The user that page receives inputs information and generates test certificate image generation instruction, and the test certificate image is generated instruction hair Send the controller layer into MVC, comprising:
Based on the view layer in MVC, the information of user's input is received by target webpage;
If the information of user's input is to test the certificate information of certificate, based on the view layer in the MVC, according to institute It states certificate information generation test certificate image and specifies generation instruction, and the test certificate image is specified to generate to instruct and is sent to Controller layer in MVC;
If the information of user's input is the random quantity for generating test certificate image and the test certificate image Classification is demonstrate,proved then based on the view layer in the MVC according to the random quantity for generating test certificate image and the test The classification of part image generates test certificate image and generates instruction at random, and the test certificate image is generated instruction at random and is sent To the controller layer in the MVC.
3. according to the method described in claim 2, it is characterized in that, the controller layer based in the MVC, according to described It tests certificate image and generates instruction and the corresponding certificate stencil image of test certificate image generation instruction, generate test card Part image, and the test certificate image is stored to setting storage region, while by the storage of the test certificate image Location is sent to the view layer in the MVC, comprising:
Based on the controller layer in the MVC, instruction generation image configuration parameter is generated according to the test certificate image is specified;
Based on the controller layer in the MVC, generated according to described image configuration parameter and the test certificate image are specified Corresponding certificate stencil image is instructed, generates test certificate image, and the test certificate image is stored to setting memory block Domain, while the storage address of the test certificate image is sent to the view layer in the MVC.
4. according to the method described in claim 2, it is characterized in that, the controller layer based in the MVC, according to described It tests certificate image and generates instruction and the corresponding certificate stencil image of test certificate image generation instruction, generate test card Part image, and the test certificate image is stored to setting storage region, while by the storage of the test certificate image Location is sent to the view layer in the MVC, comprising:
Based on the controller layer in the MVC, instruction is generated at random according to the test certificate image from the setting memory block In domain, the test certificate image is obtained according to the random quantity for generating test certificate image, and by acquired test The storage address of certificate image is sent to the view layer in the MVC.
5. method according to any of claims 1-4, which is characterized in that view layer and the MVC in the MVC In controller layer be based on AJAX technology carry out data interaction.
6. method according to any of claims 1-4, which is characterized in that further include:
Based on the model layer in MVC, the total number of images amount acquisition sent according to the controller layer in the MVC received refers to It enables, obtains described image total quantity from setting database, and described image total quantity is sent to the controller in the MVC Layer;
Based on the view layer in the MVC, the described image total quantity that the controller in the MVC received is sent is in institute It states in target webpage and is shown.
7. according to the method described in claim 6, it is characterized in that, the controller layer based in the MVC, according to described It tests certificate image and generates instruction and the corresponding certificate stencil image of test certificate image generation instruction, generate test card Part image, and the test certificate image is stored to setting storage region, while by the storage of the test certificate image Location is sent to the view layer in the MVC, comprising:
Based on the controller layer in the MVC, instruction and the test certificate image are generated according to the test certificate image It generates and instructs corresponding certificate stencil image, generate test certificate image, and the test certificate image is stored to setting and is deposited Storage area domain;
Based on the controller layer in the MVC, the numerical value after described image total quantity adds 1 is obtained, and by described image total quantity Numerical value after adding 1 is sent to the model layer;
Numerical value and the test certificate image based on the controller layer in the MVC, after described image total quantity is added 1 Storage address be sent to the view layer in the MVC;
Correspondingly, the view layer based in the MVC is obtained from the setting storage region according to the storage address The test certificate image is taken, and the test certificate image is shown in the target webpage, comprising:
Based on the view layer in the MVC, the test card is obtained from the setting storage region according to the storage address Part image, and by it is described test certificate image and described image total quantity add 1 after numerical value carried out in the target webpage Display.
8. according to the method described in claim 6, it is characterized by further comprising:
Based on the model layer in the MVC, the described image total quantity sent according to the controller layer in the MVC received Numerical value after adding 1 updates the data in the setting database.
9. a kind of test certificate image generating means based on web interaction characterized by comprising
Instruction acquisition module, for it is raw to input information according to the user received by target webpage based on the view layer in MVC Instruction is generated at test certificate image, and the test certificate image is generated into the controller layer that instruction is sent in MVC;
Image generation module, for based on the controller layer in the MVC, according to the test certificate image generate instruction and The test certificate image, which generates, instructs corresponding certificate stencil image, generates test certificate image, and by the test certificate Image is stored to setting storage region, while the storage address of the test certificate image is sent to the view in the MVC Layer;
Image display, for based on the view layer in the MVC, according to the storage address, from the setting memory block The test certificate image is obtained in domain, and the test certificate image is shown in the target webpage.
10. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs;
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now test certificate image generation method as claimed in any one of claims 1-9 wherein based on web interaction.
11. a kind of storage medium comprising computer executable instructions, the computer executable instructions are by computer disposal For executing the test certificate image generation method as claimed in any one of claims 1-9 wherein based on web interaction when device executes.
CN201811415507.8A 2018-11-26 2018-11-26 Test certificate image generation method, device, equipment and storage medium Active CN109460226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811415507.8A CN109460226B (en) 2018-11-26 2018-11-26 Test certificate image generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811415507.8A CN109460226B (en) 2018-11-26 2018-11-26 Test certificate image generation method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109460226A true CN109460226A (en) 2019-03-12
CN109460226B CN109460226B (en) 2022-04-22

Family

ID=65611583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811415507.8A Active CN109460226B (en) 2018-11-26 2018-11-26 Test certificate image generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109460226B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111178238A (en) * 2019-12-25 2020-05-19 未鲲(上海)科技服务有限公司 Certificate testing method, device, equipment and computer readable storage medium
CN114463821A (en) * 2022-02-15 2022-05-10 平安科技(深圳)有限公司 Certificate data generation method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324484A (en) * 2013-06-28 2013-09-25 华为技术有限公司 Method and device for displaying view
CN104317559A (en) * 2014-08-26 2015-01-28 国家电网公司 Visual modeling platform based on GMF
US20150067480A1 (en) * 2013-09-05 2015-03-05 Tata Consultancy Services Limited System and methods for designing artifacts associated with a webpage
CN106560787A (en) * 2016-12-29 2017-04-12 武汉斗鱼网络科技有限公司 MVVM-framework-based view page displaying method and apparatus
CN107479891A (en) * 2017-08-17 2017-12-15 北京理工大学 One kind is based on MVC model datas processing system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103324484A (en) * 2013-06-28 2013-09-25 华为技术有限公司 Method and device for displaying view
US20150067480A1 (en) * 2013-09-05 2015-03-05 Tata Consultancy Services Limited System and methods for designing artifacts associated with a webpage
CN104317559A (en) * 2014-08-26 2015-01-28 国家电网公司 Visual modeling platform based on GMF
CN106560787A (en) * 2016-12-29 2017-04-12 武汉斗鱼网络科技有限公司 MVVM-framework-based view page displaying method and apparatus
CN107479891A (en) * 2017-08-17 2017-12-15 北京理工大学 One kind is based on MVC model datas processing system and method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘坤: "基于人脸识别的身份认证系统的设计与分析", 《中国优秀硕士学位论文全文数据库 信息科技辑》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111178238A (en) * 2019-12-25 2020-05-19 未鲲(上海)科技服务有限公司 Certificate testing method, device, equipment and computer readable storage medium
CN114463821A (en) * 2022-02-15 2022-05-10 平安科技(深圳)有限公司 Certificate data generation method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN109460226B (en) 2022-04-22

Similar Documents

Publication Publication Date Title
CN105378662B (en) Method of generating a bundle package for an application and associated computer system
CN108921556A (en) A kind of verification method, device, equipment and the storage medium of block chain
CN108985772A (en) A kind of verification method, device, equipment and the storage medium of block chain
CN110659569B (en) Electronic signature method, device, storage medium and electronic equipment
CN106327246B (en) Method and device for business processing
CN106462713B (en) The interface display method and terminal of terminal
CN107025174A (en) For the method for the user interface abnormality test of equipment, device and readable storage media
CN110990053A (en) Method for creating and using machine learning scheme template and device
CN105378661A (en) Resource package indexing
CN109815147A (en) Test cases generation method, device, server and medium
CN111242462B (en) Data processing method and device, computer storage medium and electronic equipment
CN106775882A (en) Cloud computing server batch dispositions method and device
CN111797020A (en) Mock data method and device based on dynamic bytecode
CN109460226A (en) Test certificate image generation method, device, equipment and storage medium
CN104471530B (en) Executable software code generation
CN112667219A (en) Code generation method and device, equipment and computer readable storage medium
CN115392718A (en) Processing method, device, equipment and medium of process model
US11222143B2 (en) Certified information verification services
CN114118959A (en) Method and device for examining and approving target object, computer storage medium and electronic equipment
CN113255505A (en) Certificate photo generation method, device, equipment and storage medium
CN117034894A (en) Credential generation method, device, equipment and readable storage medium
CN110472215B (en) Bid file generation method, device, equipment and medium
CN111783119A (en) Form data security control method and device, electronic equipment and storage medium
CN115238248A (en) SDK (software development kit) offline authorization method, device, equipment and medium
CN108259487A (en) Information interacting method and computer-readable 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
GR01 Patent grant
GR01 Patent grant