Nothing Special   »   [go: up one dir, main page]

CN111078437A - Remote calling method and device of verification code, electronic equipment and readable storage medium - Google Patents

Remote calling method and device of verification code, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111078437A
CN111078437A CN201911347721.9A CN201911347721A CN111078437A CN 111078437 A CN111078437 A CN 111078437A CN 201911347721 A CN201911347721 A CN 201911347721A CN 111078437 A CN111078437 A CN 111078437A
Authority
CN
China
Prior art keywords
code
verification code
type
calling
storage address
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
CN201911347721.9A
Other languages
Chinese (zh)
Other versions
CN111078437B (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.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201911347721.9A priority Critical patent/CN111078437B/en
Publication of CN111078437A publication Critical patent/CN111078437A/en
Application granted granted Critical
Publication of CN111078437B publication Critical patent/CN111078437B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • G06F9/548Object oriented; Remote method invocation [RMI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/30Authentication, i.e. establishing the identity or authorisation of security principals
    • G06F21/45Structures or tools for the administration of authentication
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/546Message passing systems or structures, e.g. queues
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/54Indexing scheme relating to G06F9/54
    • G06F2209/544Remote
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2221/00Indexing scheme relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/21Indexing scheme relating to G06F21/00 and subgroups addressing additional information or applications relating to security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F2221/2133Verifying human interaction, e.g., Captcha

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Hardware Design (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a remote calling method and device of a verification code, electronic equipment and a readable storage medium. The method comprises the following steps: after detecting the preset operation triggered by the user, the calling end device can send a calling request to the server end device, receive a code storage address corresponding to the target function parameter, acquire a target code file from the second database according to the code storage address, assemble the target code file, and call the verification code to be called by executing the assembled target code file. It can be seen that, in the present application, the code file is stored by taking the functional parameter as a unit, and compared with a manner of separately providing code files for different types of verification codes in the prior art, the method provided by the present application only reserves one code file for the same functional parameter, thereby reducing the redundancy of the code.

Description

Remote calling method and device of verification code, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for remotely invoking a verification code, an electronic device, and a readable storage medium.
Background
The verification code is a public full-automatic program for distinguishing whether a user is a computer or a person, so that the situations of malicious password cracking, ticket swiping, forum water irrigation and the like can be prevented, and a hacker can be effectively prevented from carrying out continuous login attempts on a certain specific registered user in a specific program brute force cracking mode. The verification code login is a passing mode of many websites at present, and the safety of a user in the webpage browsing process can be improved.
At present, a server device generally provides a code file of a type of an authentication code directly according to the type of the authentication code required by a website. However, different types of authentication codes may relate to the same functional parameters, and the codes of the same functional parameters may be the same. A large number of repeated codes may exist in code files corresponding to different types of verification codes, which easily causes the problem of high code redundancy.
Based on this, there is a need for a remote invocation method for verification codes, which is used to solve the problem in the prior art that a large number of repeated codes may exist in code files corresponding to different types of verification codes, which easily results in high code redundancy.
Disclosure of Invention
The application provides a remote calling method and device of verification codes, electronic equipment and a readable storage medium, which can be used for solving the technical problem that in the prior art, a large number of repeated codes possibly exist in code files corresponding to different types of verification codes, so that the code redundancy is high easily.
In a first aspect, an embodiment of the present application provides a method for remotely invoking a verification code, where the method includes:
after detecting a preset operation triggered by a user, the calling end equipment sends a calling request to the server end equipment; the calling request comprises the type of the verification code to be called, and is used for requesting a code storage address corresponding to a target function parameter matched with the type of the verification code to be called, wherein the code storage address is acquired from a first database;
the calling terminal equipment receives a response message of a calling request, wherein the response message comprises the code storage address;
the calling terminal equipment acquires a target code file from a second database according to the code storage address;
and the calling terminal equipment assembles the target code file and calls the verification code to be called by executing the assembled target code file.
With reference to the first aspect, in an implementation manner of the first aspect, after the invoking end device detects a preset operation triggered by a user, the method further includes:
the calling terminal equipment calls a pre-established initialization function to obtain the address of an initialization file;
and the calling end equipment reads a preset initialization file according to the address of the initialization file, wherein the initialization file comprises the type of the verification code to be called.
With reference to the first aspect, in an implementable manner of the first aspect, the response message further includes a latest version of the code storage address; the code storage address of the latest version is determined according to the code version information acquired from the first database;
the calling terminal equipment acquires the target code file from a second database according to the code storage address, and the method comprises the following steps:
and the calling terminal equipment acquires the target code file from a second database according to the code storage address of the latest version.
With reference to the first aspect, in an implementation manner of the first aspect, the type of the verification code to be called is any one of the following types: a character-type verification code, a click-type verification code, a slide-type verification code, a voice-type verification code, a gesture-type verification code.
In a second aspect, an embodiment of the present application provides a method for remotely invoking an authentication code, where the method includes:
the method comprises the steps that a server-side device receives a calling request sent by a calling-side device, wherein the calling request comprises the type of a verification code to be called;
the server-side equipment determines a target function parameter corresponding to the verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the function parameter;
the server-side equipment acquires file information corresponding to the target function parameters from a first database, wherein the file information comprises a code storage address; the first database stores file information of each functional parameter;
and the server-side equipment returns a response message of the calling request to the calling-side equipment, wherein the response message comprises the code storage address.
With reference to the second aspect, in an implementation manner of the first aspect, the corresponding relationship between the type of the verification code and the function parameter is a corresponding relationship between the type of the verification code and a dedicated function parameter; the special function parameter is a function parameter unique to each type of verification code;
the server-side equipment determines a target function parameter corresponding to the verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the function parameter, and the method comprises the following steps:
the server-side equipment determines a special function parameter corresponding to the verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the special function parameter;
the server-side equipment customizes function parameters according to preset general function parameters and special function parameters corresponding to the verification code to be called, and determines target function parameters corresponding to the verification code to be called; the generic function parameter is a function parameter common to all types of captchas.
With reference to the second aspect, in an implementable manner of the first aspect, the file information further includes code version information, and the code version information corresponds to the code storage address;
before the server device returns a response message of the call request to the caller device, the method further includes:
and the server side equipment determines the code storage address of the latest version according to the code version information and the corresponding relation between the code version information and the code storage address.
With reference to the second aspect, in an implementable manner of the first aspect, the response message includes the latest version of the code storage address.
In a third aspect, an embodiment of the present application provides an apparatus for remotely invoking an authentication code, where the apparatus includes:
the sending unit is used for sending a calling request to the server equipment after detecting the preset operation triggered by the user; the calling request comprises the type of the verification code to be called, and is used for requesting a code storage address corresponding to a target function parameter matched with the type of the verification code to be called, wherein the code storage address is acquired from a first database;
a receiving unit, configured to receive a response message of a call request, where the response message includes the code storage address;
the processing unit is used for acquiring a target code file from a second database according to the code storage address; and assembling the target code file, and calling the verification code to be called by executing the assembled target code file.
With reference to the third aspect, in an implementation manner of the first aspect, after detecting a preset operation triggered by a user, the processing unit is further configured to:
calling a pre-established initialization function to acquire an address of an initialization file; and reading a preset initialization file according to the address of the initialization file, wherein the initialization file comprises the type of the verification code to be called.
With reference to the third aspect, in an implementable manner of the first aspect, the response message further includes a latest version of the code storage address; the code storage address of the latest version is determined according to the code version information acquired from the first database;
the processing unit is specifically configured to:
and acquiring a target code file from a second database according to the code storage address of the latest version.
With reference to the third aspect, in an implementation manner of the first aspect, the type of the verification code to be called is any one of the following types: a character-type verification code, a click-type verification code, a slide-type verification code, a voice-type verification code, a gesture-type verification code.
In a fourth aspect, an embodiment of the present application provides an apparatus for remotely invoking an authentication code, where the apparatus includes:
the receiving unit is used for receiving a calling request sent by calling end equipment, and the calling request comprises the type of a verification code to be called;
the processing unit is used for determining a target function parameter corresponding to the verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the function parameter; acquiring file information corresponding to the target function parameter from a first database, wherein the file information comprises a code storage address; the first database stores file information of each functional parameter;
and the sending unit is used for returning a response message of the calling request to the calling terminal equipment, and the response message comprises the code storage address.
With reference to the fourth aspect, in an implementation manner of the first aspect, the corresponding relationship between the type of the verification code and the functional parameter is a corresponding relationship between the type of the verification code and a dedicated functional parameter; the special function parameter is a function parameter unique to each type of verification code;
the processing unit is specifically configured to:
determining a special function parameter corresponding to the verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the special function parameter; customizing a function parameter according to a preset general function parameter and a special function parameter corresponding to the verification code to be called, and determining a target function parameter corresponding to the verification code to be called; the generic function parameter is a function parameter common to all types of captchas.
With reference to the fourth aspect, in an implementable manner of the first aspect, the file information further includes code version information, and the code version information corresponds to the code storage address;
before the sending unit returns a response message of the call request to the calling terminal device, the processing unit is further configured to:
and determining the code storage address of the latest version according to the code version information and the corresponding relation between the code version information and the code storage address.
With reference to the fourth aspect, in one implementable manner of the first aspect, the response message includes the latest version of the code storage address.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including:
a memory for storing program instructions;
a processor, configured to call and execute the program instructions in the memory to implement the remote call method of the verification code according to the first aspect.
In a sixth aspect, an embodiment of the present invention provides an electronic device, including:
a memory for storing program instructions;
a processor for calling and executing the program instructions in the memory to implement the remote calling method of the verification code according to the second aspect.
In a seventh aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored in the readable storage medium, and when at least one processor of a remote invocation device of an authentication code executes the computer program, the remote invocation device of the authentication code executes the remote invocation method of the authentication code according to the first aspect.
In an eighth aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored, and when the computer program is executed by at least one processor of a remote invocation device of an authentication code, the remote invocation device of the authentication code executes the remote invocation method of the authentication code according to the second aspect.
In the embodiment of the application, after detecting a preset operation triggered by a user, a calling end device can send a calling request to a server end device, and the server end device can determine a target function parameter corresponding to a verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the function parameter, and acquire file information corresponding to the target function parameter from a first database; and then the server-side equipment can return the code storage address included in the file information to the calling-side equipment, so that the calling-side equipment acquires the target code file from the second database according to the code storage address, assembles the target code file, and calls the verification code to be called by executing the assembled target code file. It can be seen that, in the present application, the code file is stored by taking the functional parameter as a unit, and compared with a manner of separately providing code files for different types of verification codes in the prior art, the method provided by the present application only reserves one code file for the same functional parameter, thereby reducing the redundancy of the code.
Drawings
FIG. 1 is a schematic diagram of a system suitable for use in embodiments of the present application;
fig. 2 is a schematic flowchart of a remote verification code invoking method according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram illustrating a process of reading an initialization file by a calling device in the present application;
fig. 4 is a schematic structural diagram of a remote invocation device for an authentication code according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another remote invocation device for an authentication code according to an embodiment of the present application;
fig. 6 is a schematic hardware structure diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a schematic hardware structure diagram of another electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
A possible system architecture to which the embodiments of the present application are applicable will be first described with reference to fig. 1.
Referring to fig. 1, a schematic structural diagram of a system to which an embodiment of the present application is applicable is exemplarily shown. The system 100 may include a calling-side device 101 and a server-side device 102.
The calling-side device 101 may be a terminal device where a website is located, or may also be a terminal device operated by an application program, and is configured to request the server-side device 102 to obtain the verification code.
The server-side device may be a server, or may also be a cloud server, and is configured to return the verification code to the caller device 101.
Based on the system architecture shown in fig. 1, fig. 2 exemplarily shows a flow diagram corresponding to a remote invocation method for an authentication code provided in an embodiment of the present application. As shown in fig. 2, the method specifically includes the following steps:
step 201, after detecting a preset operation triggered by a user, a calling end device sends a calling request to a server end device.
Step 202, the server device receives a call request sent by the caller device.
Step 203, the server device determines a target function parameter corresponding to the verification code to be called according to the type of the verification code to be called and a preset corresponding relationship between the type of the verification code and the function parameter.
Step 204, the server device obtains file information corresponding to the target function parameter from the first database.
In step 205, the server device returns a response message of the invocation request to the caller device.
In step 206, the calling terminal device receives a response message of the calling request.
And step 207, the calling terminal equipment acquires the target code file from the second database according to the code storage address.
And step 208, the calling terminal equipment assembles the target code file and calls the verification code to be called by executing the assembled target code file.
In the embodiment of the application, after detecting a preset operation triggered by a user, a calling end device can send a calling request to a server end device, and the server end device can determine a target function parameter corresponding to a verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the function parameter, and acquire file information corresponding to the target function parameter from a first database; and then the server-side equipment can return the code storage address included in the file information to the calling-side equipment, so that the calling-side equipment acquires the target code file from the second database according to the code storage address, assembles the target code file, and calls the verification code to be called by executing the assembled target code file. It can be seen that, in the present application, the code file is stored by taking the functional parameter as a unit, and compared with a manner of separately providing code files for different types of verification codes in the prior art, the method provided by the present application only reserves one code file for the same functional parameter, thereby reducing the redundancy of the code.
Specifically, in step 201, the preset operation may be any one of preset operations, which is not limited herein. In one example, the preset operation may be a click operation on a login key. When it is detected that the user clicks the login key, the calling-side device may send a calling request to the server-side device.
In another example, the preset operation may be a slide to a certain page element (e.g., a picture, a certain piece of text, etc.). When detecting that the user slides to the page element, the calling-side device may send a calling request to the server-side device.
In yet another example, the preset operation may be an operation to open a page. When it is detected that a user opens a certain page, the calling-side device may send a calling request to the server-side device.
The calling request sent by the calling end device may include the type of the verification code to be called, and the type of the verification code to be called may be determined by the calling end device by reading the initialization file.
The following describes a process of reading the initialization file by the caller device. As shown in fig. 3, the calling device may read the initialization file by:
step 301, the calling end device calls a pre-created initialization function to obtain the address of the initialization file.
The address of the initialization file may be a Uniform Resource Locator (URL) address.
The initialization function may be packaged with a method for obtaining an initialization address, and the calling end device may execute the method by calling the initialization function, thereby obtaining an address of the initialization file. In practice, the address of the initialization file may be the download address of the latest version of the initialization file. The initialization file may typically be downloaded from a service server providing support for the current service.
Step 302, the calling end device reads a preset initialization file according to the address of the initialization file.
The initialization file may include the type of the authentication code to be invoked. The type of the verification code to be called can be any one of the following types: the specific examples of the verification code include a character-type verification code, a click-type verification code, a slide-type verification code, a voice-type verification code, and a gesture-type verification code, which are not limited.
The initialization file may be stored locally on the calling device or in a server communicatively coupled to the calling device. The calling end device can read the initialization file from the local. In practice, different initialization files may correspond to different services (e.g., a house renting service, a recruitment service, a home administration service, etc.) in a website or application. Therefore, the type of the verification code can be different under different services.
In the embodiment of the present application, in the process of reading the initialization file again, the calling end device may further determine whether the version number of the initialization file in the address is the same as the version number of the initialization file cached locally. If the two files are the same, the initialization file in the local cache can be read; if not, the initialization file can be downloaded from the address, and the downloaded initialization file can be read.
When the version number of the initialization file in the address is the same as the version number of the initialization file cached locally, it means that the current initialization file cached locally is the latest version. At this time, the calling end device reads the initialization file in the local cache without downloading the initialization file again. Therefore, network resources can be saved, and the verification code display speed can be improved. When the version number of the initialization file in the address is different from the version number of the initialization file cached locally, it means that the initialization file is updated. At this time, the calling end device downloads the initialization file from the address, and reads the downloaded initialization file, thereby reading the latest version of the initialization file. Meanwhile, the calling end equipment can also cache the downloaded initialization file to replace the original cached initialization file, so that the next reading is facilitated.
In step 202 and step 203, after receiving the invocation request, the server device may determine a target function parameter corresponding to the to-be-invoked passcode according to the type of the to-be-invoked passcode and a preset correspondence between the type of the passcode and the function parameter.
Each type of authentication code may have a variety of functional parameters. The functional parameters may include, but are not limited to, page elements (e.g., buttons, input boxes, text, etc.) to which the captcha component needs to bind, the width and height of the captcha picture, the manner in which the captcha is presented (e.g., pop-up, trigger, embedded, etc.), and so on.
In the embodiment of the application, the corresponding relation between the verification code type and the functional parameter can be in various forms, and the processes of determining the target functional parameter by using the relation in different forms are also different. In one example, the type of captcha and the functional parameter may be in a one-to-many relationship, i.e., one type of captcha may correspond to multiple functional parameters.
As shown in table 1, an example of the correspondence between the type of the verification code and the function parameter is shown. The functional parameters corresponding to the character type identifying code comprise a binding page button, and the width x and the height h of an identifying code picture are displayed in a pop-up mode; the functional parameters corresponding to the click type verification code comprise a binding page input box, the width x and the height h of a verification code picture and are displayed in a triggering mode; the functional parameters corresponding to the sliding type identifying code comprise a binding page button, and the identifying code picture is wide x and high h and is displayed in an embedded mode.
Table 1: example of correspondence between type of authentication code and function parameter
Figure BDA0002333857420000061
Taking the contents shown in table 1 as an example, assuming that the type of the captcha to be called is a character-type captcha, the target function parameters include a binding page button, a width x and a height h of the captcha picture, and are shown in a pop-up manner.
In another example, the corresponding relationship between the type of the verification code and the function parameter may be a corresponding relationship between the type of the verification code and the dedicated function parameter. Wherein the special function parameter is a function parameter unique to each type of verification code; correspondingly, the functional parameters common to all types of captchas may be referred to as generic functional parameters. Therefore, the functional parameters are divided into general functional parameters and special functional parameters, the corresponding relation between the type of the verification code and the functional parameters can be simplified, the data storage capacity can be reduced, and the storage space can be saved.
Taking the contents shown in table 1 as an example, among the functional parameters corresponding to the character-type verification code, the click-type verification code and the slide-type verification code, the width x and the height h of the verification code picture are common to the three, so that the verification code picture can be used as a universal functional parameter; instead, other functional parameters may be dedicated functional parameters.
As shown in table 2, an example of the correspondence between the type of the authentication code and the dedicated function parameter is shown. The special function parameters corresponding to the character type identifying code comprise a binding page button and are displayed in a pop-up mode; the special function parameters corresponding to the click type verification code comprise a binding page input box and are displayed in a triggering mode; the special function parameters corresponding to the sliding type verification code comprise a binding page button and are displayed in an embedded mode.
Table 2: example of correspondence between authentication code type and dedicated function parameter
Figure BDA0002333857420000071
Therefore, the server-side equipment can determine the special function parameters corresponding to the verification codes to be called according to the types of the verification codes to be called and the corresponding relation between the preset verification code types and the special function parameters; and customizing the function parameters according to the preset general function parameters and the special function parameters corresponding to the verification code to be called, and determining the target function parameters corresponding to the verification code to be called.
Taking the contents shown in table 2 as an example, assuming that the type of the authenticator to be called is a character-type authenticator, the corresponding special function parameters include a bound page button and a pop-up presentation. And the preset general function parameters are width x and height h of the verification code picture, and then the target function parameters comprise a binding page button, width x and height h of the verification code picture and are displayed in a pop-up mode.
In steps 204 and 205, the first database may store file information of each function parameter; and the file information may include a code storage address and code version information, and the code version information corresponds to the code storage address.
After obtaining the file information containing the code storage address, the server device may return a response message, where the response message may include the code storage address.
Further, before the server-side device returns the response message of the call request to the caller-side device, the latest version of the code storage address can be determined according to the code version information and the corresponding relationship between the code version information and the code storage address. Further, when returning the response message, the response message may include the latest version of the code storage address.
In step 206 and step 207, after the calling device receives the response message containing the code storage address, the target code file may be obtained from the second database according to the code storage address.
Further, if the latest version of the code storage address is included in the response message, the calling-side device may obtain the target code file from the second database according to the latest version of the code storage address. Therefore, the acquired target code file can be ensured to be the latest version.
In step 208, when the calling device assembles the target code file, the target code file may be assembled according to the execution sequence of the target code file, that is, the target code file executed first is before and the target code file executed later is after a disaster. After the assembly is completed, the verification code to be called can be called by executing the assembled target code file.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 4 exemplarily shows a schematic structural diagram of a remote invocation device of a verification code according to an embodiment of the present application. As shown in fig. 4, the apparatus has a function of implementing the remote invocation method of the verification code, and the function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The apparatus may include: a transmitting unit 401, a receiving unit 402 and a processing unit 403.
A sending unit 401, configured to send a call request to a server device after detecting a preset operation triggered by a user; the calling request comprises the type of the verification code to be called, and is used for requesting a code storage address corresponding to a target function parameter matched with the type of the verification code to be called, wherein the code storage address is acquired from a first database;
a receiving unit 402, configured to receive a response message of the invocation request, where the response message includes the code storage address;
a processing unit 403, configured to obtain a target code file from a second database according to the code storage address; and assembling the target code file, and calling the verification code to be called by executing the assembled target code file.
Optionally, after detecting a preset operation triggered by a user, the processing unit 403 is further configured to:
calling a pre-established initialization function to acquire an address of an initialization file; and reading a preset initialization file according to the address of the initialization file, wherein the initialization file comprises the type of the verification code to be called.
Optionally, the response message further includes a latest version of the code storage address; the code storage address of the latest version is determined according to the code version information acquired from the first database;
the processing unit 403 is specifically configured to:
and acquiring a target code file from a second database according to the code storage address of the latest version.
Optionally, the type of the verification code to be called is any one of the following types: a character-type verification code, a click-type verification code, a slide-type verification code, a voice-type verification code, a gesture-type verification code.
Fig. 5 is a schematic structural diagram illustrating another remote invocation device for a verification code according to an embodiment of the present application. As shown in fig. 5, the apparatus has a function of implementing the remote invocation method of the verification code, and the function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The apparatus may include: a receiving unit 501, a processing unit 502 and a transmitting unit 503.
A receiving unit 501, configured to receive a call request sent by a calling end device, where the call request includes a type of an authentication code to be called;
the processing unit 502 is configured to determine a target function parameter corresponding to the verification code to be called according to the type of the verification code to be called and a preset correspondence between the type of the verification code and the function parameter; acquiring file information corresponding to the target function parameter from a first database, wherein the file information comprises a code storage address; the first database stores file information of each functional parameter;
a sending unit 503, configured to return a response message of the invocation request to the invoking end device, where the response message includes the code storage address.
Optionally, the corresponding relationship between the type of the verification code and the functional parameter is a corresponding relationship between the type of the verification code and a dedicated functional parameter; the special function parameter is a function parameter unique to each type of verification code;
the processing unit 502 is specifically configured to:
determining a special function parameter corresponding to the verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the special function parameter; customizing a function parameter according to a preset general function parameter and a special function parameter corresponding to the verification code to be called, and determining a target function parameter corresponding to the verification code to be called; the generic function parameter is a function parameter common to all types of captchas.
Optionally, the file information further includes code version information, and the code version information corresponds to the code storage address;
before the sending unit 503 returns a response message of the invocation request to the invoking end device, the processing unit 502 is further configured to:
and determining the code storage address of the latest version according to the code version information and the corresponding relation between the code version information and the code storage address.
Optionally, the response message includes the latest version of the code storage address.
Fig. 6 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 6, an embodiment of the present invention provides an electronic device, including: a memory 601 for storing program instructions; the processor 602 is configured to call and execute the program instructions in the memory to implement the remote call method of the verification code according to the foregoing embodiment. Reference may be made in particular to the description in relation to the preceding embodiments.
In this embodiment, the processor 602 and the memory 601 may be connected by a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
Fig. 7 is a schematic hardware structure diagram of another electronic device according to an embodiment of the present application. As shown in fig. 7, an embodiment of the present invention provides an electronic device, including: a memory 701 for storing program instructions; the processor 702 is configured to call and execute the program instructions in the memory to implement the remote call method of the verification code according to the foregoing embodiment. Reference may be made in particular to the description in relation to the preceding embodiments.
In this embodiment, the processor 702 and the memory 1001 may be connected by a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present invention. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
The embodiment of the invention provides a readable storage medium, wherein a computer program is stored in the readable storage medium, and when at least one processor of a remote calling device of an authentication code executes the computer program, the remote calling device of the authentication code executes the remote calling method of the authentication code described in the embodiment.
The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present invention may be implemented as software plus a required general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be essentially or partially implemented in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, as for the embodiment of the document transmission device, since it is basically similar to the embodiment of the method, the description is simple, and the relevant points can be referred to the description in the embodiment of the method.
The above-described embodiments of the present invention should not be construed as limiting the scope of the present invention.

Claims (20)

1. A method for remotely calling a verification code, the method comprising:
after detecting a preset operation triggered by a user, the calling end equipment sends a calling request to the server end equipment; the calling request comprises the type of the verification code to be called, and is used for requesting a code storage address corresponding to a target function parameter matched with the type of the verification code to be called, wherein the code storage address is acquired from a first database;
the calling terminal equipment receives a response message of a calling request, wherein the response message comprises the code storage address;
the calling terminal equipment acquires a target code file from a second database according to the code storage address;
and the calling terminal equipment assembles the target code file and calls the verification code to be called by executing the assembled target code file.
2. The method according to claim 1, wherein after the calling device detects a preset operation triggered by a user, the method further comprises:
the calling terminal equipment calls a pre-established initialization function to obtain the address of an initialization file;
and the calling end equipment reads a preset initialization file according to the address of the initialization file, wherein the initialization file comprises the type of the verification code to be called.
3. The method of claim 1, wherein the response message further includes a latest version of the code storage address; the code storage address of the latest version is determined according to the code version information acquired from the first database;
the calling terminal equipment acquires the target code file from a second database according to the code storage address, and the method comprises the following steps:
and the calling terminal equipment acquires the target code file from a second database according to the code storage address of the latest version.
4. The method according to any one of claims 1 to 3, wherein the type of the verification code to be called is any one of the following types: a character-type verification code, a click-type verification code, a slide-type verification code, a voice-type verification code, a gesture-type verification code.
5. A method for remotely calling a verification code, the method comprising:
the method comprises the steps that a server-side device receives a calling request sent by a calling-side device, wherein the calling request comprises the type of a verification code to be called;
the server-side equipment determines a target function parameter corresponding to the verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the function parameter;
the server-side equipment acquires file information corresponding to the target function parameters from a first database, wherein the file information comprises a code storage address; the first database stores file information of each functional parameter;
and the server-side equipment returns a response message of the calling request to the calling-side equipment, wherein the response message comprises the code storage address.
6. The method of claim 5, wherein the corresponding relationship between the type of the verification code and the function parameter is a corresponding relationship between the type of the verification code and a dedicated function parameter; the special function parameter is a function parameter unique to each type of verification code;
the server-side equipment determines a target function parameter corresponding to the verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the function parameter, and the method comprises the following steps:
the server-side equipment determines a special function parameter corresponding to the verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the special function parameter;
the server-side equipment customizes function parameters according to preset general function parameters and special function parameters corresponding to the verification code to be called, and determines target function parameters corresponding to the verification code to be called; the generic function parameter is a function parameter common to all types of captchas.
7. The method of claim 5, wherein the file information further includes code version information, the code version information corresponding to the code storage address;
before the server device returns a response message of the call request to the caller device, the method further includes:
and the server side equipment determines the code storage address of the latest version according to the code version information and the corresponding relation between the code version information and the code storage address.
8. The method of claim 7, wherein the response message includes the latest version of the code storage address.
9. An apparatus for remote invocation of captchas, the apparatus comprising:
the sending unit is used for sending a calling request to the server equipment after detecting the preset operation triggered by the user; the calling request comprises the type of the verification code to be called, and is used for requesting a code storage address corresponding to a target function parameter matched with the type of the verification code to be called, wherein the code storage address is acquired from a first database;
a receiving unit, configured to receive a response message of a call request, where the response message includes the code storage address;
the processing unit is used for acquiring a target code file from a second database according to the code storage address; and assembling the target code file, and calling the verification code to be called by executing the assembled target code file.
10. The apparatus of claim 9, wherein after detecting a preset operation triggered by a user, the processing unit is further configured to:
calling a pre-established initialization function to acquire an address of an initialization file; and reading a preset initialization file according to the address of the initialization file, wherein the initialization file comprises the type of the verification code to be called.
11. The apparatus of claim 9, wherein the response message further comprises a latest version of the code storage address; the code storage address of the latest version is determined according to the code version information acquired from the first database;
the processing unit is specifically configured to:
and acquiring a target code file from a second database according to the code storage address of the latest version.
12. The apparatus according to any one of claims 9 to 11, wherein the type of the to-be-invoked passcode is any one of the following types: a character-type verification code, a click-type verification code, a slide-type verification code, a voice-type verification code, a gesture-type verification code.
13. An apparatus for remote invocation of captchas, the apparatus comprising:
the receiving unit is used for receiving a calling request sent by calling end equipment, and the calling request comprises the type of a verification code to be called;
the processing unit is used for determining a target function parameter corresponding to the verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the function parameter; acquiring file information corresponding to the target function parameter from a first database, wherein the file information comprises a code storage address; the first database stores file information of each functional parameter;
and the sending unit is used for returning a response message of the calling request to the calling terminal equipment, and the response message comprises the code storage address.
14. The apparatus of claim 13, wherein the corresponding relationship between the type of the verification code and the function parameter is a corresponding relationship between the type of the verification code and a dedicated function parameter; the special function parameter is a function parameter unique to each type of verification code;
the processing unit is specifically configured to:
determining a special function parameter corresponding to the verification code to be called according to the type of the verification code to be called and the corresponding relation between the preset verification code type and the special function parameter; customizing a function parameter according to a preset general function parameter and a special function parameter corresponding to the verification code to be called, and determining a target function parameter corresponding to the verification code to be called; the generic function parameter is a function parameter common to all types of captchas.
15. The apparatus of claim 13, wherein the file information further comprises code version information, the code version information corresponding to the code storage address;
before the sending unit returns a response message of the call request to the calling terminal device, the processing unit is further configured to:
and determining the code storage address of the latest version according to the code version information and the corresponding relation between the code version information and the code storage address.
16. The apparatus of claim 15, wherein the response message comprises the latest version of the code storage address.
17. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling and executing program instructions in said memory to implement the remote invocation of captchas of any of claims 1 to 4.
18. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling and executing program instructions in said memory to implement the remote invocation of captchas of any of claims 5 to 8.
19. A readable storage medium, in which a computer program is stored, which, when executed by at least one processor of a remote invocation means of an authentication code, causes the remote invocation means of the authentication code to perform the remote invocation method of the authentication code according to any one of claims 1 to 4.
20. A readable storage medium, in which a computer program is stored, which, when executed by at least one processor of a remote invocation means of an authentication code, causes the remote invocation means of the authentication code to perform the remote invocation method of the authentication code according to any one of claims 5 to 8.
CN201911347721.9A 2019-12-24 2019-12-24 Remote calling method and device for verification codes, electronic equipment and readable storage medium Active CN111078437B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911347721.9A CN111078437B (en) 2019-12-24 2019-12-24 Remote calling method and device for verification codes, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911347721.9A CN111078437B (en) 2019-12-24 2019-12-24 Remote calling method and device for verification codes, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111078437A true CN111078437A (en) 2020-04-28
CN111078437B CN111078437B (en) 2023-07-14

Family

ID=70317317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911347721.9A Active CN111078437B (en) 2019-12-24 2019-12-24 Remote calling method and device for verification codes, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111078437B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580989A (en) * 2020-04-30 2020-08-25 成都新潮传媒集团有限公司 File processing method and device
CN113505360A (en) * 2021-07-16 2021-10-15 湖南快乐阳光互动娱乐传媒有限公司 Verification code request processing method and related equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160014120A1 (en) * 2013-04-11 2016-01-14 Tencent Technology (Shenzhen) Company Limited Method, server, client and system for verifying verification codes
CN105338000A (en) * 2015-12-02 2016-02-17 中国联合网络通信集团有限公司 Verification method and verification system
CN108989269A (en) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 Obtain the methods, devices and systems of identifying code
CN109450646A (en) * 2018-12-10 2019-03-08 珠海格力电器股份有限公司 verification request processing method and system
CN110427745A (en) * 2019-07-02 2019-11-08 五八有限公司 Identifying code acquisition methods, device, electronic equipment and computer-readable medium
CN110493261A (en) * 2019-09-16 2019-11-22 腾讯科技(深圳)有限公司 Identifying code acquisition methods, client, server and storage medium based on block chain

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160014120A1 (en) * 2013-04-11 2016-01-14 Tencent Technology (Shenzhen) Company Limited Method, server, client and system for verifying verification codes
CN105338000A (en) * 2015-12-02 2016-02-17 中国联合网络通信集团有限公司 Verification method and verification system
CN108989269A (en) * 2017-06-02 2018-12-11 阿里巴巴集团控股有限公司 Obtain the methods, devices and systems of identifying code
CN109450646A (en) * 2018-12-10 2019-03-08 珠海格力电器股份有限公司 verification request processing method and system
CN110427745A (en) * 2019-07-02 2019-11-08 五八有限公司 Identifying code acquisition methods, device, electronic equipment and computer-readable medium
CN110493261A (en) * 2019-09-16 2019-11-22 腾讯科技(深圳)有限公司 Identifying code acquisition methods, client, server and storage medium based on block chain

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111580989A (en) * 2020-04-30 2020-08-25 成都新潮传媒集团有限公司 File processing method and device
CN113505360A (en) * 2021-07-16 2021-10-15 湖南快乐阳光互动娱乐传媒有限公司 Verification code request processing method and related equipment

Also Published As

Publication number Publication date
CN111078437B (en) 2023-07-14

Similar Documents

Publication Publication Date Title
EP3203709B1 (en) Cloud service server and method for managing cloud service server
WO2021040994A1 (en) Systems, method, and media for determining security compliance of continuous build software
CN109542361B (en) Distributed storage system file reading method, system and related device
CN105122760B (en) Page operation processing method, device and terminal
EP3991389B1 (en) File upload control for client-side applications in proxy solutions
US9307010B2 (en) Data upload method using shortcut
CN108574721B (en) Login method, device, server, user terminal and readable storage medium
CN113641983A (en) Account binding method, device and system for application program
CN111897564A (en) Application updating method and system
CN111158597A (en) Metadata reading method and device, electronic equipment and storage medium
CN102135895B (en) System upgrading method and system
CN106487662B (en) Information sharing method and device
CN112818270B (en) Data cross-domain transfer method and device and computer equipment
CN111078437B (en) Remote calling method and device for verification codes, electronic equipment and readable storage medium
CN106534280B (en) Data sharing method and device
CN105959293B (en) The management method and device of electronic account
CN113923144A (en) Service test system, method, electronic device and storage medium
CN112642164A (en) Account sharing method, device and system and computer readable storage medium
CN112925589B (en) Calling method and device of expansion interface
CN105554136A (en) Backup data restoration method, device and system
CN108600255B (en) Mock service management method, device, computer equipment and storage medium
CN108509228B (en) Page loading method, terminal equipment and computer readable storage medium
US8762483B2 (en) System for and method of verifying packages
JP5753302B1 (en) Program, method and system for warning access to web page
CN110413423B (en) Data processing method, related device, equipment and storage medium

Legal Events

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