CN110427745A - Identifying code acquisition methods, device, electronic equipment and computer-readable medium - Google Patents
Identifying code acquisition methods, device, electronic equipment and computer-readable medium Download PDFInfo
- Publication number
- CN110427745A CN110427745A CN201910596712.7A CN201910596712A CN110427745A CN 110427745 A CN110427745 A CN 110427745A CN 201910596712 A CN201910596712 A CN 201910596712A CN 110427745 A CN110427745 A CN 110427745A
- Authority
- CN
- China
- Prior art keywords
- identifying code
- code
- initialization files
- verifying
- script file
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
- G06F21/36—User authentication by graphic or iconic representation
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application discloses identifying code acquisition methods, device, electronic equipment and computer-readable medium.The embodiment of this method includes: in the case where detecting that user executes predetermined registration operation, read preset initialization files, wherein, record has the corresponding verifying code type of the attribute information of identifying code, currently accessed business and the currently accessed corresponding identifying code ways of presentation of business in the initialization files;Send identifying code picture acquisition request;Receive the identifying code picture to match with the attribute information and the verifying code type;Show the identifying code picture with the identifying code ways of presentation.The embodiment reduces the redundancy of code.
Description
Technical field
The invention relates to field of computer technology, and in particular to identifying code acquisition methods, device, electronic equipment and
Computer-readable medium.
Background technique
With the development of computer technology, more and more websites provide identifying code function using (Application, APP)
Can, to be lifted at web page browsing or using safety in the process.In general, user for identifying code picture (such as in
The picture of existing multiple characters) after the correct verification information (such as the multiple characters presented in identifying code picture) of feedback, it can
To continue to browse current web page or using certain functions of application.
In existing mode, generally directed in website or application different business (such as business of renting a house, recruitment,
Housekeeping business etc.), formulate different independent codes respectively to carry out the display and verifying of identifying code.When business is more, this
Kind mode needs to store a large amount of duplicate codes, causes code redundancy higher.
Summary of the invention
The embodiment of the present application proposes identifying code acquisition methods, device, electronic equipment and computer-readable medium, to solve
The higher technical problem of code redundancy in the prior art.
In a first aspect, the embodiment of the present application provides a kind of identifying code acquisition methods, it is applied to terminal device, comprising: In
In the case where detecting that user executes predetermined registration operation, preset initialization files are read, wherein record is tested in initialization files
Demonstrate,prove attribute information, the corresponding verifying code type of currently accessed business and the currently accessed corresponding identifying code of business of code
Ways of presentation;Send identifying code picture acquisition request, wherein identifying code picture acquisition request includes attribute information and identifying code class
Type;Receive the identifying code picture to match with attribute information and verifying code type;Show identifying code figure with identifying code ways of presentation
Piece.
In some embodiments, in the case where detecting that user executes predetermined registration operation, preset initialization files are read,
It include: to call the initialization function being pre-created in the case where detecting that user executes predetermined registration operation, to obtain initialization text
The address of part;Determine the initialization files in address version number whether version number's phase with the initialization files of local cache
Together;If so, reading the initialization files in local cache;If it is not, downloading initialization files from address, reading is downloaded first
Beginningization file
In some embodiments, in initialization files also record have the corresponding script file of each verifying code type title and
Address, wherein there is for operational order performed by the different situations in verification process record in script file;And it is sending
Before identifying code picture acquisition request, method further include: by the corresponding script of verifying code type recorded in initialization files
File downloads the script text of the title of entitled target script file from the address of target script file as target script file
Part.
In some embodiments, after showing identifying code picture with identifying code ways of presentation, this method further include: response
In the verification information for detecting user feedback, the checking request comprising verification information is sent;Reception is used to indicate whether that verifying is logical
The verification result crossed.
It in some embodiments, include being used to indicate being verified of being verified in verification result when being verified
Mark;And after receiving the verification result for being used to indicate whether to be verified, this method further include: provide clothes to for business
The service server transmission of business is verified mark, so that service server authentication is by identifying whether effectively.
In some embodiments, the corresponding verifying code type of currently accessed business is following any kind: character is tested
Card code class clicks identifying code class, sliding identifying code class, speech identifying code class, gesture identifying code class, currently accessed business pair
The identifying code ways of presentation answered is following either type: Pop-up, trigger-type, embedded.
Second aspect, the embodiment of the present application provide a kind of identifying code acquisition device, are applied to terminal device, comprising: read
Unit is taken, is configured to read preset initialization files in the case where detecting that user executes predetermined registration operation, wherein just
Record has the corresponding verifying code type of the attribute information of identifying code, currently accessed business and currently accessed in beginningization file
The corresponding identifying code ways of presentation of business;First transmission unit is configured to send identifying code picture acquisition request, wherein
Identifying code picture acquisition request includes attribute information and verifying code type;First receiving unit is configured to receive and believe with attribute
The identifying code picture that breath and verifying code type match;Show unit, is configured to show identifying code with identifying code ways of presentation
Picture.
In some embodiments, reading unit, comprising: obtain module, be configured to detecting the default behaviour of user's execution
In the case where work, the initialization function being pre-created is called, to obtain the address of initialization files;Determining module is configured to
Determine whether the version number of the initialization files in address is identical as the version number of the initialization files of local cache;First reads
Module is configured to if so, reading the initialization files in local cache;Second read module is configured to if it is not, from address
Middle downloading initialization files read downloaded initialization files.
In some embodiments, in initialization files also record have the corresponding script file of each verifying code type title and
Address, wherein there is for operational order performed by the different situations in verification process record in script file;And device is also
Include: download unit, is configured to using the corresponding script file of verifying code type recorded in initialization files as target
Script file downloads the script file of the title of entitled target script file from the address of target script file.
In some embodiments, device further include: the second transmission unit is configured in response to detect user feedback
Verification information, send include verification information checking request;Second receiving unit is configured to reception and is used to indicate whether to test
Demonstrate,prove the verification result passed through.
It in some embodiments, include being used to indicate being verified of being verified in verification result when being verified
Mark;And device further include: authentication unit is configured to send verifying to the service server for providing service for business logical
Mark is crossed, so that service server authentication is by identifying whether effectively.
In some embodiments, the corresponding verifying code type of currently accessed business is following any kind: character is tested
Card code class clicks identifying code class, sliding identifying code class, speech identifying code class, gesture identifying code class, currently accessed business pair
The identifying code ways of presentation answered is following either type: Pop-up, trigger-type, embedded.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress
Set, be stored thereon with one or more programs, when one or more programs are executed by one or more processors so that one or
Multiple processors realize the method such as any embodiment in above-mentioned first aspect.
Fourth aspect, the embodiment of the present application provide a kind of computer-readable medium, are stored thereon with computer program, should
The method such as any embodiment in above-mentioned first aspect is realized when program is executed by processor.
Identifying code acquisition methods, device, electronic equipment and computer-readable medium provided by the embodiments of the present application, are being detected
After executing predetermined registration operation to user, attribute information, the corresponding identifying code of currently accessed business that record has identifying code are read
The initialization files of type and identifying code ways of presentation;Picture acquisition request is sent, then to obtain and attribute information and verifying
The identifying code picture that code type matches.Identifying code picture is finally showed with identifying code ways of presentation.As a result, for not of the same trade or business
Business, can be only by getting required class in initialization file sets attribute information, verifying code type and identifying code ways of presentation
The identifying code of type and required ways of presentation.It does not need that the code for realizing identifying code function is set separately for each business, reduces as a result,
The redundancy of code.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is the flow chart according to one embodiment of the identifying code acquisition methods of the application;
Fig. 2 is the flow chart according to another embodiment of the identifying code acquisition methods of the application;
Fig. 3 is the structural schematic diagram according to one embodiment of the identifying code acquisition device of the application;
Fig. 4 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Referring to FIG. 1, it illustrates the processes 100 according to one embodiment of the identifying code acquisition methods of the application.It should
Identifying code acquisition methods can be applied to terminal device.The identifying code acquisition methods the following steps are included:
Step 101, in the case where detecting that user executes predetermined registration operation, preset initialization files are read.
In the present embodiment, the executing subject (such as terminal device) of identifying code acquisition methods is detecting that it is pre- that user executes
If preset initialization files can be read in the case where operation.Wherein, it can recorde the category of identifying code in initialization files
Property information, the corresponding verifying code type of currently accessed business and the currently accessed corresponding identifying code side of showing of business
Formula.It should be pointed out that other information can also have been recorded in above-mentioned initialization files as needed, it is not construed as limiting herein.
Herein, the attribute information of identifying code can include but is not limited to the page elements (example that identifying code component needs to bind
Such as button, input frame, text), the width of identifying code picture and height etc..Verifying code type can include but is not limited to character
Identifying code class clicks identifying code class, sliding identifying code class, speech identifying code class, gesture verifying class etc..Identifying code ways of presentation can
To include but is not limited to Pop-up, trigger-type, embedded etc..
It should be noted that above-mentioned predetermined registration operation can be any one pre-set operation, it is not construed as limiting herein.Make
For example, above-mentioned predetermined registration operation be can be to the clicking operation for logging in key.When detecting that user clicks the login key, on
It states executing subject i.e. and preset initialization files can be read.As another example, above-mentioned predetermined registration operation, which can be, slides into some
The operation of page elements (such as picture, certain section of text etc.).When detecting that user slides into the page elements, above-mentioned executing subject
Preset initialization files can be read.As another example, above-mentioned predetermined registration operation can be the operation for opening the page.Work as detection
After opening a certain page to user, preset initialization files are can be read in above-mentioned executing subject.
In the present embodiment, above-mentioned initialization files can store in the local of above-mentioned executing subject, also can store
In the server of above-mentioned executing subject communication connection.Above-mentioned executing subject can be read just from local or the electronic equipment
Beginningization file.
In practice, in website or application, different business (such as business of renting a house, recruitment, housekeeping business etc.)
Different initialization files can be corresponding with.As a result, under different business, verifies code type and identifying code ways of presentation can not
Together.
Whole codes of identifying code function are realized due in the initialization files of each business, not needing storage, it is only necessary to store
For identifying code customized in identifying code needed for each business attribute information, show the contents such as form, thus, for called side
Speech, reduces size of code.Further, due to realizing that it is a large amount of identical interior that the code of the identifying code function of different business usually exists
Hold (such as operational order performed by the different situations in verification process, to identifying code picture carry out size adjusting with match belong to
The code etc. of property information), thus, each called side is not required to write the code for the identifying code function of realizing each business, reduces code
Redundancy.In some optional implementations of the present embodiment, above-mentioned executing subject can be read just as follows
Beginningization file:
The first step calls the initialization function being pre-created, in the case where detecting that user executes predetermined registration operation to obtain
Take the address (such as URL (Uniform Resource Locator, uniform resource locator)) of initialization files.Herein, on
The method for obtaining initialization address can be packaged with by stating initialization function, and above-mentioned executing subject can initialize letter by calling
Number executes this method, to obtain the address of the initialization files.In practice, the address of above-mentioned initialization files be can be most
The download address of the initialization files of new version.It can usually be downloaded from the service server that support is provided for current business just
Beginningization file.
Second step, determine the initialization files in address above mentioned version number whether with the initialization files of local cache
Version number is identical.If they are the same, the initialization files in local cache can be read;It, can be under in address above mentioned if not identical
Initialization files are carried, downloaded initialization files are read.
It is understood that the initialization files of the version number and local cache of the initialization files in the address above mentioned
When version number is identical, it is meant that the current local initialization files cached are latest edition.At this point, reading first in local cache
Beginningization file does not need to re-download the initialization files.It is thus possible to save Internet resources, and help to improve identifying code
Show speed.When the version number of initialization files of version number and local cache of the initialization files in address above mentioned is different
When, it is meant that initialization files are updated.At this point, download initialization files from address above mentioned, and reads and to be downloaded
Thus initialization files read the initialization files of latest edition.At the same time, above-mentioned executing subject can also will be downloaded
Initialization files cached, to replace the initialization files that cached originally, consequently facilitating read next time.
In some optional implementations of the present embodiment, multiple verifyings can also have been recorded in above-mentioned initialization files
The title of the corresponding script file of code type and address.Herein, different verifying code types can be corresponding with different script files.
Each script file has title and address.It is can recorde in script file for performed by the different situations in verification process
Operational order.For example, the operational order of pop-up prompting frame can be executed when failing the authentication;Page is executed when network request mistake
Face jump instruction etc..Due to recording the address of script file in initialization files, rather than the code of script file is needing to adjust
When with script file, then by the acquisition of address recorded in initialization files script file, prestored to reduce called side
Size of code.Further, due to script file, there may be identical content, (such as multiple business may use same type
Identifying code, thus need using identical script file), thus, in initialization files record script file address, and
The code of non-script file can reduce the redundancy of code.In above-mentioned implementation, above-mentioned executing subject is above-mentioned in reading
During initialization files, can using the corresponding script file of verifying code type recorded in above-mentioned initialization files as
Target script file downloads the script text of the title of entitled above-mentioned target script file from the address of above-mentioned target script file
Part, thus, in verification process, corresponding operation instruction can be executed.
In previous mode, it usually needs the corresponding script text of verifying code type needed for each business side needs to be known in advance
The title of part and address, according to the title and the call by location script file.After the script file updates, business side is needed
Corresponding version number is updated, causes business side's development effort heavier, links up higher cost.And in above-mentioned implementation, due to first
Title and the address of the corresponding script file of each verifying code type are stored in beginningization file, and read initialization files are equal
For the file of latest edition, thus, the title of each script file in initialization files and address are latest edition.As a result,
The newest title of script file required for business side can be directly obtained and address, reduce development difficulty, reduce
Link up cost.
Step 102, identifying code picture acquisition request is sent.
In the present embodiment, above-mentioned executing subject can send identifying code picture to server (such as identifying code server)
Acquisition request, to obtain identifying code picture.Wherein, above-mentioned identifying code picture acquisition request may include above-mentioned attribute information and upper
Verifying code type is stated, in order to which above-mentioned server obtains the identifying code picture to match with the attribute information and verifying code type.
In practice, server can first look for initial authentication code picture (such as word to match with above-mentioned verifying code type
Accord with class identifying code picture), then, initial authentication code picture can be carried out based on above-mentioned attribute information (such as height and width)
Screening or adjustment, to return to the identifying code picture to match with above-mentioned attribute information.
Since the identifying code picture that server is returned matches with the attribute information in initialization files, thus, it is not necessarily to
Terminal device, which is executed, carries out the operation such as size adjusting to identifying code picture.
In some optional implementations of the present embodiment, except including attribute letter in above-mentioned identifying code picture acquisition request
It can also include the service identification for being used to indicate currently accessed business, in order to above-mentioned service outside breath and verifying code type
Device verifies the validity of the service identification.After above-mentioned server receives the identifying code picture acquisition request, if verifying the industry
Business mark effectively, session identification and corresponding configuration information can be returned to above-mentioned executing subject and (such as is showing identifying code figure
Page configuration needed for piece process).Wherein, above-mentioned session identification, which can serve to indicate that, distinguishes this verification process.Each
Verification process is corresponding with different session identifications.Above-mentioned executing subject is after obtaining the session identification and configuration information, Ke Yijin
Row page configuration, and the picture acquisition request comprising the session identification is sent to above-mentioned server, and then server is held to above-mentioned
Row main body returns to identifying code picture.
Step 103, the identifying code picture to match with attribute information and verifying code type is received.
In the present embodiment, above-mentioned executing subject can receive the identifying code to match with attribute information and verifying code type
Picture.Herein, due to may include the information such as width and the height of identifying code picture in attribute information, thus, with attribute information
Match, it is meant that consistent with the information such as width, height set in attribute information.In addition, different verifying code types, verifying
The content of code picture is different.For example, may include that user is needed to know in the identifying code picture to match with character type identifying code class
Other character.Match in identifying code picture with sliding identifying code class, may include the path that sliding block and sliding block need to slide.
Step 104, identifying code picture is showed with above-mentioned identifying code ways of presentation.
In the present embodiment, above-mentioned executing subject can be showed with identifying code recorded in read initialization files
Mode shows above-mentioned identifying code picture.
As an example, dialog box can be directly popped up, in dialog box when above-mentioned identifying code ways of presentation is Pop-up
Show above-mentioned identifying code picture.As another example, it when above-mentioned identifying code ways of presentation is trigger-type, can be triggered in user
When a certain item operates when (such as reading the time of a certain page greater than preset duration), identifying code picture is stacked on the page
Side.As another example, it when identifying code ways of presentation is embedded, can be presented in the currently browsed information of user
State identifying code picture.
The method provided by the above embodiment of the application reads record and tests after detecting that user executes predetermined registration operation
Demonstrate,prove the attribute information of code, the initialization files of the corresponding verifying code type and identifying code ways of presentation of currently accessed business;
Picture acquisition request is sent, then to obtain the identifying code picture to match with above-mentioned attribute information and above-mentioned verifying code type.
Above-mentioned identifying code picture is finally showed with above-mentioned identifying code ways of presentation.It is directed to different business as a result, it can be only by initial
Change file configuration attribute information, verifying code type and identifying code ways of presentation, gets required type and required ways of presentation
Identifying code.In the process, the realization code of the code of different types of identifying code and the different ways of presentation of realization, to calling
Side be it is transparent, do not need to preset the code for realizing identifying code function respectively for each business.Due to realizing different business
The code of identifying code function usually has a large amount of identical contents, and (such as operation performed by the different situations in verification process refers to
Enable), and method provided by the present embodiment only needs the contents such as attribute information, type that identifying code is set for each business, without for
The code for realizing identifying code function is respectively written into for each business in the application, thus reduces the redundancy of code.
With further reference to Fig. 2, it illustrates the processes 200 of another embodiment of identifying code acquisition methods.The identifying code
The process 200 of acquisition methods, comprising the following steps:
Step 201, in the case where detecting that user executes predetermined registration operation, preset initialization files are read.
In the present embodiment, the executing subject (such as terminal device) of identifying code acquisition methods is detecting that it is pre- that user executes
If in the case where operation the initialization function being pre-created can be called, to obtain the address of initialization files.Herein, above-mentioned
Initialization function can be packaged with obtain initialization address method, above-mentioned executing subject can by call initialization function,
This method is executed, to obtain the address of the initialization files.Then, above-mentioned executing subject can determine first in address above mentioned
Whether the version number of beginningization file is identical as the version number of the initialization files of local cache.If they are the same, it can read local slow
Initialization files in depositing;If not identical, initialization files can be downloaded from address above mentioned, read downloaded initialization text
Part.
In the present embodiment, the corresponding script file of multiple verifying code types can also have been recorded in above-mentioned initialization files
Title and address.Herein, different verifying code types can be corresponding with different script files.Each script file have title and
Address.It is can recorde in script file for operational order performed by the different situations in verification process.For example, when verifying
The operational order of pop-up prompting frame can be executed when failure;Page jump instruction etc. is executed when network request mistake.
Above-mentioned executing subject, can will be recorded in above-mentioned initialization files during reading above-mentioned initialization files
The corresponding script file of verifying code type as target script file, downloaded from the address of above-mentioned target script file entitled
The script file of the title of above-mentioned target script file, thus, in verification process, corresponding operation instruction can be executed.
In previous mode, it usually needs the corresponding script text of verifying code type needed for each business side needs to be known in advance
The title of part and address, according to the title and the call by location script file.After the script file updates, business side is needed
Corresponding version number is updated, causes business side's development effort heavier, links up higher cost.And in above-mentioned implementation, due to first
Title and the address of the corresponding script file of each verifying code type are stored in beginningization file, and read initialization files are equal
For the file of latest edition, thus, the title of each script file in initialization files and address are latest edition.As a result,
The newest title of script file required for business side can be directly obtained and address, reduce development difficulty, reduce
Link up cost.
Step 202, identifying code picture acquisition request is sent.
In the present embodiment, above-mentioned executing subject can send identifying code picture to server (such as identifying code server)
Acquisition request, to obtain identifying code picture.Wherein, above-mentioned identifying code picture acquisition request may include above-mentioned attribute information and upper
Verifying code type is stated, in order to which above-mentioned server obtains the identifying code picture to match with the attribute information and verifying code type.
Step 203, the identifying code picture to match with attribute information and verifying code type is received.
In the present embodiment, above-mentioned executing subject can receive the identifying code to match with attribute information and verifying code type
Picture.Herein, due to may include the information such as width and the height of identifying code picture in attribute information, thus, with attribute information
Match, may include consistent with width set in attribute information, height.In addition, different verifying code types, identifying code figure
The content of piece is different.For example, may include that user is needed to identify in the identifying code picture to match with character type identifying code class
Character.Match in identifying code picture with sliding identifying code class, may include the path that sliding block and sliding block need to slide.
Step 204, identifying code picture is showed with above-mentioned identifying code ways of presentation.
In the present embodiment, above-mentioned executing subject can be showed with identifying code recorded in read initialization files
Mode shows above-mentioned identifying code picture.
As an example, dialog box can be directly popped up, in dialog box when above-mentioned identifying code ways of presentation is Pop-up
Show above-mentioned identifying code picture.As another example, it when above-mentioned identifying code ways of presentation is trigger-type, can be triggered in user
When a certain item operates when (such as reading the time of a certain page greater than preset duration), identifying code picture is stacked on the page
Side.As another example, it when identifying code ways of presentation is embedded, can be presented in the currently browsed information of user
State identifying code picture.
Step 205, in response to detecting the verification information of user feedback, send include verification information checking request.
In the present embodiment, in response to detecting the verification information of user feedback, above-mentioned executing subject can be to above-mentioned clothes
Business device (such as identifying code server) sends the checking request comprising the verification information.Herein, different verifying code type, can be with
With various forms of verification informations.
As an example, verification information can be user in identifying code picture when verifying code type is to click identifying code
The coordinate clicked.When verifying code type is character identifying code, verification information can be the character string of user's input.Work as verifying
Code type is that verification information can be user speech corresponding to the character string in identifying code picture for speech identifying code.
Step 206, the verification result for being used to indicate whether to be verified is received.
In the present embodiment, above-mentioned executing subject can receive it is that above-mentioned server returns, be used to indicate whether that verifying is logical
The verification result crossed.
Herein, when being verified, in above-mentioned verification result may include be used to indicate be verified be verified mark
Know.In time, in the verification result after being verified every time, included is verified mark difference.
Step 207, it is verified mark to the service server transmission for providing service for above-mentioned business is above-mentioned, so that above-mentioned
Above-mentioned be verified of service server verifying identifies whether effectively.
In the present embodiment, above-mentioned executing subject can be sent above-mentioned to the service server for providing service for above-mentioned business
It is verified mark, so that above-mentioned be verified of above-mentioned service server verifying identifies whether effectively.It is thus possible to carry out secondary
Verifying, improves the accuracy of verifying.
From figure 2 it can be seen that compared with the corresponding embodiment of Fig. 1, the stream of the identifying code acquisition methods in the present embodiment
Journey 200 is related to being verified the step of mark is verified.The scheme of the present embodiment description can be tested twice as a result,
Card, improves the accuracy of verifying.
With further reference to Fig. 3, as the realization to method shown in above-mentioned each figure, this application provides a kind of acquisitions of identifying code
One embodiment of device, the Installation practice is corresponding with embodiment of the method shown in FIG. 1, which specifically can be applied to
In various electronic equipments.
As shown in figure 3, identifying code acquisition device 300 described in the present embodiment includes: reading unit 301, it is configured to
In the case where detecting that user executes predetermined registration operation, preset initialization files are read, wherein record in above-mentioned initialization files
There is the corresponding verifying code type of the attribute information of identifying code, currently accessed business and currently accessed business is corresponding tests
Demonstrate,prove code ways of presentation;First transmission unit 302 is configured to send identifying code picture acquisition request, wherein above-mentioned identifying code figure
Piece acquisition request includes above-mentioned attribute information and above-mentioned verifying code type;First receiving unit 303, be configured to receive with it is above-mentioned
The identifying code picture that attribute information and above-mentioned verifying code type match;Show unit 304, is configured to above-mentioned identifying code exhibition
Existing mode shows above-mentioned identifying code picture.
In some optional implementations of the present embodiment, above-mentioned reading unit can also include obtaining module, determination
Module, the first read module and the second read module.Wherein, above-mentioned acquisition module is configured to detecting that it is pre- that user executes
If the initialization function being pre-created is called, to obtain the address of initialization files in the case where operation;Determining module is matched
Whether the version number for being set to the initialization files in determining address above mentioned is identical as the version number of the initialization files of local cache;
First read module is configured to if so, reading the initialization files in local cache;Second read module, if being configured to
It is no, initialization files are downloaded from address above mentioned, read downloaded initialization files.
In some optional implementations of the present embodiment, also record has each verifying code type in above-mentioned initialization files
The title of corresponding script file and address, wherein there is record in script file is held for the different situations in verification process
Capable operational order;And above-mentioned apparatus can also include: download unit, being configured to will be recorded in above-mentioned initialization files
The corresponding script file of verifying code type as target script file, downloaded from the address of above-mentioned target script file entitled
The script file of the title of above-mentioned target script file.
In some optional implementations of the present embodiment, which can also include: the second transmission unit, be configured
At the verification information in response to detecting user feedback, the checking request comprising above-mentioned verification information is sent;Second receiving unit,
It is configured to receive the verification result for being used to indicate whether to be verified.
It include being used in above-mentioned verification result when being verified in some optional implementations of the present embodiment
Indicate that is be verified is verified mark;And the device can also include: authentication unit, be configured to for above-mentioned business
The service server transmission of offer service is above-mentioned to be verified mark, so that the verifying of above-mentioned service server is above-mentioned to be verified mark
Whether effective know.
In some optional implementations of the present embodiment, the corresponding verifying code type of above-mentioned currently accessed business
Can be following any kind: character identifying code class, click identifying code class, sliding identifying code class, speech identifying code class, gesture are tested
Code class is demonstrate,proved, the corresponding identifying code ways of presentation of above-mentioned currently accessed business can be following either type: Pop-up, triggering
It is formula, embedded.
The device provided by the above embodiment of the application is read after reading unit 301 detects that user executes predetermined registration operation
Take record have the attribute information of identifying code, currently accessed business it is corresponding verifying code type and identifying code ways of presentation just
Beginningization file;Then the first transmission unit 302 send picture acquisition request so that the first receiving unit 303 receive with it is above-mentioned
The identifying code picture that attribute information and above-mentioned verifying code type match.Show unit 304 finally with the above-mentioned identifying code side of showing
Formula shows above-mentioned identifying code picture.As a result, be directed to different business, can only by initialization file sets attribute information, test
Code type and identifying code ways of presentation are demonstrate,proved, the identifying code of required type and required ways of presentation is got.It does not need as each business
The code for realizing identifying code function is set separately, reduces the redundancy of code as a result,.
Below with reference to Fig. 4, it illustrates the computer systems 400 for the electronic equipment for being suitable for being used to realize the embodiment of the present application
Structural schematic diagram.Electronic equipment shown in Fig. 4 is only an example, function to the embodiment of the present application and should not use model
Shroud carrys out any restrictions.
As shown in figure 4, computer system 400 includes central processing unit (CPU) 401, it can be read-only according to being stored in
Program in memory (ROM) 402 or be loaded into the program in random access storage device (RAM) 403 from storage section 408 and
Execute various movements appropriate and processing.In RAM 403, also it is stored with system 400 and operates required various programs and data.
CPU401, ROM 402 and RAM 403 is connected with each other by bus 404.Input/output (I/O) interface 405 is also connected to always
Line 404.
I/O interface 405 is connected to lower component: the importation 406 including keyboard, mouse etc.;Including such as liquid crystal
Show the output par, c 407 of device (LCD) etc. and loudspeaker etc.;Storage section 408 including hard disk etc.;And including such as LAN
The communications portion 409 of the network interface card of card, modem etc..Communications portion 409 is executed via the network of such as internet
Communication process.Driver 410 is also connected to I/O interface 405 as needed.Detachable media 411, such as disk, CD, magneto-optic
Disk, semiconductor memory etc. are mounted on as needed on driver 410, in order to from the computer program root read thereon
According to needing to be mounted into storage section 408.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium
On computer program, which includes the program code for method shown in execution flow chart.In such reality
It applies in example, which can be downloaded and installed from network by communications portion 409, and/or from detachable media
411 are mounted.When the computer program is executed by central processing unit (CPU) 401, limited in execution the present processes
Above-mentioned function.It should be noted that computer-readable medium described herein can be computer-readable signal media or
Computer readable storage medium either the two any combination.Computer readable storage medium for example can be --- but
Be not limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.
The more specific example of computer readable storage medium can include but is not limited to: have one or more conducting wires electrical connection,
Portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only deposit
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In this application, computer readable storage medium, which can be, any include or stores
The tangible medium of program, the program can be commanded execution system, device or device use or in connection.And
In the application, computer-readable signal media may include in a base band or the data as the propagation of carrier wave a part are believed
Number, wherein carrying computer-readable program code.The data-signal of this propagation can take various forms, including but not
It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer
Any computer-readable medium other than readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use
In by the use of instruction execution system, device or device or program in connection.Include on computer-readable medium
Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc., Huo Zheshang
Any appropriate combination stated.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use
The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box
The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually
It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse
Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding
The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction
Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit also can be set in the processor, wherein the title of these units is in certain situation
Under do not constitute restriction to the unit itself.
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be
Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating
Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should
Device: in the case where detecting that user executes predetermined registration operation, preset initialization files are read, wherein the initialization files
Middle record has the corresponding verifying code type of the attribute information of identifying code, currently accessed business and currently accessed business pair
The identifying code ways of presentation answered;Send identifying code picture acquisition request;It receives and the attribute information and the verifying code type phase
The identifying code picture matched;Show the identifying code picture with the identifying code ways of presentation.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art
Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature
Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (14)
1. a kind of identifying code acquisition methods, which is characterized in that be applied to terminal device, comprising:
In the case where detecting that user executes predetermined registration operation, preset initialization files are read, wherein the initialization files
Middle record has the corresponding verifying code type of the attribute information of identifying code, currently accessed business and currently accessed business pair
The identifying code ways of presentation answered;
Send identifying code picture acquisition request, wherein the identifying code picture acquisition request includes the attribute information and described
Verify code type;
Receive the identifying code picture to match with the attribute information and the verifying code type;
Show the identifying code picture with the identifying code ways of presentation.
2. identifying code acquisition methods according to claim 1, which is characterized in that described to detect the default behaviour of user's execution
In the case where work, preset initialization files are read, comprising:
In the case where detecting that user executes predetermined registration operation, the initialization function being pre-created is called, to obtain initialization text
The address of part;
Determine whether the version number of the initialization files in the address is identical as the version number of the initialization files of local cache;
If so, reading the initialization files in local cache;
If it is not, downloading initialization files from the address, downloaded initialization files are read.
3. identifying code acquisition methods according to claim 1, which is characterized in that also record has respectively in the initialization files
Verify title and the address of the corresponding script file of code type, wherein in script file record have in verification process not
With operational order performed by situation;And
Before the transmission identifying code picture acquisition request, the method also includes:
Using the corresponding script file of verifying code type recorded in the initialization files as target script file, from described
Download the script file of the title of the entitled target script file in the address of target script file.
4. identifying code acquisition methods according to claim 1, which is characterized in that described with the identifying code ways of presentation
After showing the identifying code picture, the method also includes:
In response to detecting the verification information of user feedback, the checking request comprising the verification information is sent;
Receive the verification result for being used to indicate whether to be verified.
5. identifying code acquisition methods according to claim 4, which is characterized in that when being verified, the verification result
In include be used to indicate be verified be verified mark;And
After the reception is used to indicate whether the verification result being verified, the method also includes:
It is verified mark described in the service server transmission of service to providing for the business, so that the service server is tested
It is verified and is identified whether effectively described in card.
6. identifying code acquisition methods described in one of -5 according to claim 1, which is characterized in that the currently accessed business
Corresponding verifying code type is following any kind: character identifying code class, click identifying code class, sliding identifying code class, voice are tested
Code class, gesture identifying code class are demonstrate,proved, the corresponding identifying code ways of presentation of the currently accessed business is following either type: bullet
Formula, trigger-type, embedded out.
7. a kind of identifying code acquisition device, which is characterized in that be applied to terminal device, comprising:
Reading unit is configured to read preset initialization files in the case where detecting that user executes predetermined registration operation,
In, in the initialization files record have the corresponding verifying code type of the attribute information of identifying code, currently accessed business and
The corresponding identifying code ways of presentation of currently accessed business;
First transmission unit is configured to send identifying code picture acquisition request, wherein the identifying code picture acquisition request packet
Include the attribute information and the verifying code type;
First receiving unit is configured to receive the identifying code figure to match with the attribute information and the verifying code type
Piece;
Show unit, is configured to show the identifying code picture with the identifying code ways of presentation.
8. identifying code acquisition device according to claim 7, which is characterized in that the reading unit, comprising:
Module is obtained, is configured to call the initialization letter being pre-created in the case where detecting that user executes predetermined registration operation
Number, to obtain the address of initialization files;
Determining module, be configured to determine the initialization files in the address version number whether the initialization with local cache
The version number of file is identical;
First read module is configured to if so, reading the initialization files in local cache;
Second read module is configured to if it is not, downloading initialization files from the address, and the downloaded initialization of reading is literary
Part.
9. identifying code acquisition device according to claim 7, which is characterized in that also record has respectively in the initialization files
Verify title and the address of the corresponding script file of code type, wherein in script file record have in verification process not
With operational order performed by situation;And
Described device further include:
Download unit is configured to using the corresponding script file of verifying code type recorded in the initialization files as mesh
Script file is marked, the script text of the title of the entitled target script file is downloaded from the address of the target script file
Part.
10. identifying code acquisition device according to claim 7, which is characterized in that described device further include:
Second transmission unit is configured in response to detect the verification information of user feedback, and sending includes the verification information
Checking request;
Second receiving unit is configured to receive the verification result for being used to indicate whether to be verified.
11. identifying code acquisition device according to claim 10, which is characterized in that when being verified, the verifying knot
In fruit include be used to indicate be verified be verified mark;And
Described device further include:
Authentication unit, be configured to provided for the business service service server send described in be verified mark, with
Make to be verified described in the service server verifying and identify whether effectively.
12. the identifying code acquisition device according to one of claim 7-11, which is characterized in that the currently accessed industry
Corresponding verifying code type be engaged in as following any kind: character identifying code class clicks identifying code class, sliding identifying code class, voice
Identifying code class, gesture identifying code class, the corresponding identifying code ways of presentation of the currently accessed business is following either type:
It is Pop-up, trigger-type, embedded.
13. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device is stored thereon with 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
Now such as method as claimed in any one of claims 1 to 6.
14. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that the program is executed by processor
Shi Shixian method for example as claimed in any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910596712.7A CN110427745B (en) | 2019-07-02 | 2019-07-02 | Verification code obtaining method and device, electronic equipment and computer readable medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910596712.7A CN110427745B (en) | 2019-07-02 | 2019-07-02 | Verification code obtaining method and device, electronic equipment and computer readable medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110427745A true CN110427745A (en) | 2019-11-08 |
CN110427745B CN110427745B (en) | 2022-03-08 |
Family
ID=68410222
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910596712.7A Active CN110427745B (en) | 2019-07-02 | 2019-07-02 | Verification code obtaining method and device, electronic equipment and computer readable medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110427745B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111078437A (en) * | 2019-12-24 | 2020-04-28 | 五八有限公司 | Remote calling method and device of verification code, electronic equipment and readable storage medium |
Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674353A (en) * | 2009-09-24 | 2010-03-17 | 旭丽电子(广州)有限公司 | Incoming call filter method |
CN102255913A (en) * | 2011-07-14 | 2011-11-23 | 北京百度网讯科技有限公司 | Verification-security-level-based audio verification code provision method and equipment |
CN102315955A (en) * | 2010-06-30 | 2012-01-11 | 上海薄荷信息科技有限公司 | Control method for setting obstruction for junk information and corresponding control device |
CN102360505A (en) * | 2011-08-16 | 2012-02-22 | 北京新媒传信科技有限公司 | Graphical verification code generation method |
CN102831568A (en) * | 2012-08-03 | 2012-12-19 | 网易(杭州)网络有限公司 | Method and device for generating verification code picture |
CN103475483A (en) * | 2013-09-10 | 2013-12-25 | 北京思特奇信息技术股份有限公司 | Method and system for verification code service based on cloud service |
CN104200140A (en) * | 2014-09-28 | 2014-12-10 | 北京奇虎科技有限公司 | Method and device providing verification code |
CN104243155A (en) * | 2013-06-18 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Safety verification method and device |
CN105095726A (en) * | 2014-05-08 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Method and device for generating verification code |
CN105553940A (en) * | 2015-12-09 | 2016-05-04 | 北京中科云集科技有限公司 | Safety protection method based on big data processing platform |
CN106713241A (en) * | 2015-11-16 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Identity verification method, device and system |
CN106790199A (en) * | 2016-12-31 | 2017-05-31 | 中国移动通信集团江苏有限公司 | Identifying code processing method and processing device |
CN107017989A (en) * | 2015-09-29 | 2017-08-04 | 弗里塞恩公司 | The generation of domain name operation demonstration code and/or checking |
CN107193476A (en) * | 2017-05-10 | 2017-09-22 | 北京百度网讯科技有限公司 | Data inputting method and device, computer equipment and computer-readable recording medium |
CN107315958A (en) * | 2016-04-26 | 2017-11-03 | 北京京东尚科信息技术有限公司 | The legality identification method and device of data object |
CN107341384A (en) * | 2016-04-28 | 2017-11-10 | 苏宁云商集团股份有限公司 | A kind of service verification method and system |
CN107395647A (en) * | 2017-09-05 | 2017-11-24 | 北京京东尚科信息技术有限公司 | Checking system, method and apparatus |
CN108989269A (en) * | 2017-06-02 | 2018-12-11 | 阿里巴巴集团控股有限公司 | Obtain the methods, devices and systems of identifying code |
-
2019
- 2019-07-02 CN CN201910596712.7A patent/CN110427745B/en active Active
Patent Citations (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101674353A (en) * | 2009-09-24 | 2010-03-17 | 旭丽电子(广州)有限公司 | Incoming call filter method |
CN102315955A (en) * | 2010-06-30 | 2012-01-11 | 上海薄荷信息科技有限公司 | Control method for setting obstruction for junk information and corresponding control device |
CN102255913A (en) * | 2011-07-14 | 2011-11-23 | 北京百度网讯科技有限公司 | Verification-security-level-based audio verification code provision method and equipment |
CN102360505A (en) * | 2011-08-16 | 2012-02-22 | 北京新媒传信科技有限公司 | Graphical verification code generation method |
CN102831568A (en) * | 2012-08-03 | 2012-12-19 | 网易(杭州)网络有限公司 | Method and device for generating verification code picture |
CN104243155A (en) * | 2013-06-18 | 2014-12-24 | 腾讯科技(深圳)有限公司 | Safety verification method and device |
CN103475483A (en) * | 2013-09-10 | 2013-12-25 | 北京思特奇信息技术股份有限公司 | Method and system for verification code service based on cloud service |
CN105095726A (en) * | 2014-05-08 | 2015-11-25 | 阿里巴巴集团控股有限公司 | Method and device for generating verification code |
CN104200140A (en) * | 2014-09-28 | 2014-12-10 | 北京奇虎科技有限公司 | Method and device providing verification code |
CN107017989A (en) * | 2015-09-29 | 2017-08-04 | 弗里塞恩公司 | The generation of domain name operation demonstration code and/or checking |
CN106713241A (en) * | 2015-11-16 | 2017-05-24 | 腾讯科技(深圳)有限公司 | Identity verification method, device and system |
CN105553940A (en) * | 2015-12-09 | 2016-05-04 | 北京中科云集科技有限公司 | Safety protection method based on big data processing platform |
CN107315958A (en) * | 2016-04-26 | 2017-11-03 | 北京京东尚科信息技术有限公司 | The legality identification method and device of data object |
CN107341384A (en) * | 2016-04-28 | 2017-11-10 | 苏宁云商集团股份有限公司 | A kind of service verification method and system |
CN106790199A (en) * | 2016-12-31 | 2017-05-31 | 中国移动通信集团江苏有限公司 | Identifying code processing method and processing device |
CN107193476A (en) * | 2017-05-10 | 2017-09-22 | 北京百度网讯科技有限公司 | Data inputting method and device, computer equipment and computer-readable recording medium |
CN108989269A (en) * | 2017-06-02 | 2018-12-11 | 阿里巴巴集团控股有限公司 | Obtain the methods, devices and systems of identifying code |
CN107395647A (en) * | 2017-09-05 | 2017-11-24 | 北京京东尚科信息技术有限公司 | Checking system, method and apparatus |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111078437A (en) * | 2019-12-24 | 2020-04-28 | 五八有限公司 | Remote calling method and device of verification code, electronic equipment and readable storage medium |
CN111078437B (en) * | 2019-12-24 | 2023-07-14 | 五八有限公司 | Remote calling method and device for verification codes, electronic equipment and readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN110427745B (en) | 2022-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11048620B2 (en) | Distributed system test device | |
CN105940654B (en) | Franchise static web application in trust | |
CN104954353B (en) | The method of calibration and device of APK file bag | |
US9219719B1 (en) | Automatic dynamic vetting of browser extensions and web applications | |
CN103678487B (en) | Method and device for generating web page snapshot | |
WO2015180635A1 (en) | Online-banking type website visiting method and browser | |
US10802952B2 (en) | Streamlined creation of integration tests | |
CN107609122B (en) | Advertisement shielding rule updating method, device, server and storage medium | |
CN108696481A (en) | leak detection method and device | |
CN109144842A (en) | Method and apparatus for test application | |
CN106911693A (en) | For detecting method, device and terminal device that web page contents are kidnapped | |
CN107547524A (en) | A kind of page detection method, device and equipment | |
CN108416212A (en) | Method for identifying application program and device | |
CN109284198A (en) | A kind of method and apparatus verifying data | |
CN109241722A (en) | For obtaining method, electronic equipment and the computer-readable medium of information | |
CN109460652A (en) | For marking the method, equipment and computer-readable medium of image pattern | |
CN109446092A (en) | The method, apparatus and electronic equipment be identified to user interface UI element | |
CN110336781A (en) | A kind of method and apparatus based on browser identification terminal uniqueness | |
US9292613B2 (en) | Generation of generic universal resource indicators | |
CN107766106B (en) | The method and apparatus for generating configuration file | |
CN107203372A (en) | Control shows method and device | |
CN111008059A (en) | Control method and device for popup window display, terminal and storage medium | |
CN109388551A (en) | There are the method for loophole probability, leak detection method, relevant apparatus for prediction code | |
CN109614327A (en) | Method and apparatus for output information | |
CN108959642A (en) | Method and apparatus for information to be written |
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 |