CN111078437B - Remote calling method and device for verification codes, electronic equipment and readable storage medium - Google Patents

Remote calling method and device for verification codes, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111078437B
CN111078437B CN201911347721.9A CN201911347721A CN111078437B CN 111078437 B CN111078437 B CN 111078437B CN 201911347721 A CN201911347721 A CN 201911347721A CN 111078437 B CN111078437 B CN 111078437B
Authority
CN
China
Prior art keywords
code
verification code
type
called
verification
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.)
Active
Application number
CN201911347721.9A
Other languages
Chinese (zh)
Other versions
CN111078437A (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 invocation method and device of verification codes, electronic equipment and a readable storage medium. The method comprises the following steps: after detecting the preset operation triggered by the user, the calling terminal device can send a calling request to the server terminal device, receive the code storage address corresponding to the target function parameter, acquire the 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. Therefore, in the application, the code files are stored in units of the functional parameters, and compared with the mode of respectively providing the code files for different types of verification codes in the prior art, the method provided by the application only reserves one code file for the same functional parameters, thereby reducing the redundancy of codes.

Description

Remote calling method and device for verification codes, electronic equipment and readable storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and apparatus for remote invocation of verification codes, an electronic device, and a readable storage medium.
Background
The verification code is a public full-automatic program for distinguishing whether the user is a computer or a person, can prevent the situations of maliciously cracking the password, brushing tickets, forum watering and the like, and can also effectively prevent a certain hacker from continuously attempting to log in by using a specific program brute force cracking mode for a certain specific registered user. The verification code login is a current mode of many websites, and can improve the safety of users in the webpage browsing process.
Currently, the server device generally directly provides a code file of the verification code according to the type of the verification code required by the website. However, different types of verification codes may involve the same functional parameters, and the codes of the same functional parameters are the same. A large number of repeated codes may exist in the code files corresponding to different types of verification codes, which easily causes the problem of higher code redundancy.
Based on this, a remote calling method of verification codes is needed at present, which is used for solving the 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.
Disclosure of Invention
The application provides a remote calling method, a device, electronic equipment and a readable storage medium of verification codes, which can be used for solving the technical problem that a large number of repeated codes possibly exist in code files corresponding to different types of verification codes in the prior art, and code redundancy is high easily caused.
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, calling end equipment sends a calling request to service end equipment; the call request comprises the type of the verification code to be called, and the call request 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 obtained from a first database;
the calling terminal equipment receives a response message of the calling request, wherein the response message comprises the code storage address;
the calling terminal equipment acquires an object code file from a second database according to the code storage address;
and the calling end 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 calling 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 acquire an address of an initialization file;
And the calling terminal 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 implementation manner of the first aspect, the response message further includes a code storage address of a latest version; the latest version code storage address is determined according to the code version information acquired from the first database;
the calling terminal equipment obtains an object 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 the 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 invoked is any one of the following types: character type verification code, click type verification code, sliding type verification code, voice type verification code and gesture type verification code.
In a second aspect, an embodiment of the present application provides a method for remotely invoking a verification 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 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 the corresponding relation between the preset verification code type and the function parameter;
the server 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 correspondence between the verification code type and the function parameter is a correspondence between the verification code type and a dedicated function parameter; the special function parameter is a function parameter unique to each type of verification code;
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 the corresponding relation between the preset verification code type and the function parameter, and the method comprises the following steps:
the server device determines the special function parameters 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 parameters;
The server equipment customizes the 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 general function parameter is a function parameter common to all types of verification codes.
With reference to the second aspect, in an implementation manner of the first aspect, the file information further includes code version information, where the code version information corresponds to the code storage address;
before the server-side equipment returns a response message of the call request to the calling-side equipment, the method further comprises:
and the server 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 implementation manner of the first aspect, the response message includes a code storage address of the latest version.
In a third aspect, an embodiment of the present application provides a remote invocation device of a verification code, where the device includes:
the sending unit is used for sending a calling request to the server equipment after detecting a preset operation triggered by a user; the call request comprises the type of the verification code to be called, and the call request 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 obtained from a first database;
A receiving unit, configured to receive a response message of the call request, where the response message includes the code storage address;
the processing unit is used for acquiring an object code file from the 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 implementation manner of the first aspect, the response message further includes a code storage address of a latest version; the latest version code storage address is determined according to the code version information acquired from the first database;
the processing unit is specifically configured to:
and acquiring the target code file from the 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 invoked is any one of the following types: character type verification code, click type verification code, sliding type verification code, voice type verification code and gesture type verification code.
In a fourth aspect, an embodiment of the present application provides a remote invocation device of a verification code, where the device includes:
the receiving unit is used for receiving a calling request sent by calling terminal equipment, wherein the calling request comprises the type of the verification code to be called;
the processing unit is used for determining target function parameters 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 parameters; acquiring 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 sending unit is used for returning a response message of the calling request to the calling end 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 correspondence between the verification code type and the function parameter is a correspondence between the verification code type 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 function parameters according to preset general function parameters and special function parameters corresponding to the verification code to be called, and determining target function parameters corresponding to the verification code to be called; the general function parameter is a function parameter common to all types of verification codes.
With reference to the fourth aspect, in an implementation manner of the first aspect, the file information further includes code version information, where 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 end 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 an implementation manner of the first aspect, the response message includes a code storage address of the latest version.
In a fifth aspect, an embodiment of the present invention provides an electronic device, including:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the remote calling method of the verification code in the first aspect.
In a sixth aspect, an embodiment of the present invention provides an electronic device, including:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the remote calling method of the verification code in the second aspect.
In a seventh aspect, an embodiment of the present invention provides a readable storage medium, where a computer program is stored, and when at least one processor of a remote invocation device of a verification code executes the computer program, the remote invocation device of the verification code executes the remote invocation method of the verification code described in 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 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 described in the second aspect.
In the embodiment of the application, after detecting a preset operation triggered by a user, the calling end device may send a calling request to the server end device, and the server end device may 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 the corresponding relation between the preset verification code type and the function parameter, and acquire file information corresponding to the target function parameter from the first database; and 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. Therefore, in the application, the code files are stored in units of the functional parameters, and compared with the mode of respectively providing the code files for different types of verification codes in the prior art, the method provided by the application only reserves one code file for the same functional parameters, thereby reducing the redundancy of codes.
Drawings
FIG. 1 is a schematic diagram of a system suitable for use in embodiments of the present application;
Fig. 2 is a schematic flow diagram corresponding to a method for remotely calling verification codes according to an embodiment of the present application;
FIG. 3 is a schematic diagram illustrating a procedure of calling end device to read an initialization file in the present application;
fig. 4 is a schematic structural diagram of a remote invocation device for verification code according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of a remote invocation device of another verification code according to an embodiment of the present application;
fig. 6 is a schematic hardware structure of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic hardware structure of another electronic device according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the 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 diagram of a system to which embodiments of the present application are applicable is shown. The system 100 may include a calling end device 101 and a server end device 102.
The calling end device 101 may be a terminal device where a website is located, or may also be a terminal device where an application program runs, and is configured to request to obtain a verification code from the server end device 102.
The server device may be a server or may be a cloud server, which is configured to return the verification code to the calling device 101.
Based on the system architecture shown in fig. 1, fig. 2 illustrates a flow diagram corresponding to a method for remotely calling a verification code according to an embodiment of the present application. As shown in fig. 2, the method specifically comprises the following steps:
step 201, after detecting a preset operation triggered by a user, the calling end device sends a calling request to the server end device.
Step 202, the server device receives a call request sent by the call device.
Step 203, the server device determines the 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.
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 call request to the calling device.
In step 206, the calling end device receives the response message of the call request.
Step 207, the calling terminal device obtains the target code file from the second database according to the code storage address.
And step 208, the calling end equipment assembles the target code file, and the verification code to be called is called by executing the assembled target code file.
In the embodiment of the application, after detecting a preset operation triggered by a user, the calling end device may send a calling request to the server end device, and the server end device may 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 the corresponding relation between the preset verification code type and the function parameter, and acquire file information corresponding to the target function parameter from the first database; and 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. Therefore, in the application, the code files are stored in units of the functional parameters, and compared with the mode of respectively providing the code files for different types of verification codes in the prior art, the method provided by the application only reserves one code file for the same functional parameters, thereby reducing the redundancy of codes.
Specifically, in step 201, the preset operation may be any preset operation, which is not limited herein. In one example, the preset operation may be a click operation on a login key. When the user is detected to click the login key, the calling end device can send a calling request to the service end device.
In another example, the preset operation may be an operation to slide to a certain page element (e.g., a picture, a certain text, etc.). When detecting that the user slides to the page element, the calling end device may send a call request to the service end device.
In yet another example, the preset operation may be an operation of opening a page. When detecting that the user opens a certain page, the calling terminal device can send a calling request to the service terminal device.
The type of the verification code to be called can be included in the call request sent by the calling end device, and the type of the verification code to be called can be determined by the calling end device through reading the initialization file.
The procedure for calling the end device to read the initialization file will be described below. As shown in fig. 3, the calling device may read the initialization file by:
step 301, calling end equipment calls a pre-created initialization function to acquire an address of an initialization file.
The address of the initialization file may be a uniform resource locator (Uniform Resource Locator, URL) address, among others.
The initialization function may be encapsulated with a method for acquiring an initialization address, and the calling end device may execute the method by calling the initialization function, thereby acquiring the 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 that provides support for the current service.
Step 302, calling terminal equipment reads a preset initialization file according to the address of the initialization file.
The initialization file may include a type of verification code to be invoked. The type of verification code to be invoked may be any of the following types: the character type verification code, the click type verification code, the sliding type verification code, the voice type verification code and the gesture type verification code are not particularly limited.
The initialization file may be stored locally on the calling end device or may be stored in a server communicatively coupled to the calling end device. The calling end device may read the initialization file from the local. In practice, different services (e.g., rental, recruitment, home, etc.) may correspond to different initialization files in a website or application. Thus, the type of verification code may be different for different services.
In the embodiment of the present application, in the process of re-reading the initialization file, 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 locally cached initialization file. If the initialization files are the same, the initialization files 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 locally cached initialization file, the currently locally cached initialization file is the latest version. At this time, the calling terminal device reads the initialization file in the local cache, and does not need to download 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 locally cached initialization file, it means that the initialization file is updated. At this time, the calling end device downloads the initialization file from the above address and reads the downloaded initialization file, thereby reading the latest version of the initialization file. Meanwhile, the calling terminal equipment can buffer the downloaded initialization file to replace the original buffered initialization file, so that the next reading is facilitated.
In step 202 and step 203, after receiving the call request, the server device may determine, according to the type of the verification code to be called and the corresponding relationship between the preset verification code type and the function parameter, the target function parameter corresponding to the verification code to be called.
Each type of passcode 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, width and height of the captcha picture, captcha presentation (e.g., pop-up, triggered, embedded, etc.), and the like.
In the embodiment of the application, the corresponding relation between the verification code type and the functional parameter can have multiple forms, and the process of determining the target functional parameter by using the relation of different forms is also different. In one example, the captcha type and the functional parameter may be 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 verification code type and the function parameter is shown. The functional parameters corresponding to the character type verification code comprise binding page buttons, and the verification code pictures are wide x and high h and are displayed in a pop-up mode; the functional parameters corresponding to the click type verification code comprise a binding page input box, and the verification code pictures are wide x and high h and displayed in a triggering mode; the functional parameters corresponding to the sliding verification code comprise a binding page button, and the verification code picture is wide x and high h and displayed in an embedded mode.
Table 1: an example of correspondence between verification code type and functional parameters
Figure BDA0002333857420000061
Taking the content shown in table 1 as an example, assuming that the type of the verification code to be called is a character type verification code, the target function parameters include a binding page button, and the verification code pictures are wide x and high h and are displayed in a pop-up mode.
In another example, the correspondence between the verification code type and the function parameter may be a correspondence between the verification code type and the dedicated function parameter. Wherein the special function parameter is a function parameter unique to each type of verification code; correspondingly, the function parameter common to all types of verification codes may be referred to as a general function parameter. Therefore, the functional parameters are divided into the general functional parameters and the special functional parameters, the corresponding relation between the verification code type and the functional parameters can be simplified, the data storage quantity can be reduced, and the storage space is saved.
Taking the content shown in table 1 as an example, in the functional parameters corresponding to the character type verification code, the click type verification code and the sliding type verification code respectively, the width x and the height h of the verification code picture are shared, so that the character type verification code, the click type verification code and the sliding type verification code can be used as general functional parameters; instead, other functional parameters may be dedicated functional parameters.
As shown in table 2, an example of the correspondence between the type of verification code and the specific function parameter is shown. The special function parameters corresponding to the character type verification code comprise binding page buttons and are displayed in a pop-up mode; the special function parameters corresponding to the click type verification code comprise binding page input boxes and are displayed in a triggering mode; the special function parameters corresponding to the sliding verification code comprise binding page buttons and are displayed in an embedded mode.
Table 2: an example of correspondence between verification code type and special function parameter
Figure BDA0002333857420000071
In this way, the server device can determine the 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; 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 content shown in table 2 as an example, assuming that the type of the verification code to be invoked is a character type verification code, the corresponding special function parameters include a binding page button and are presented in a pop-up form. And the preset general function parameters are the width x and the height h of the verification code picture, and then the target function parameters comprise a binding page button and the width x and the height h of the verification code picture and are displayed in a pop-up mode.
In step 204 and step 205, the first database may store file information of each functional 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 acquiring 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 calling side device, the latest version of the code storage address can be determined according to the code version information and the corresponding relation between the code version information and the code storage address. Further, upon returning the response message, the response message may include the latest version of the code storage address.
In step 206 and step 207, after receiving the response message including the code storage address, the calling device may obtain the target code file 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 device may obtain the target code file from the second database according to the latest version of the code storage address. So that it can be ensured that the acquired object code file is of the latest version.
In step 208, when the calling end 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 and then is executed after the disaster. After the assembly is completed, the verification code to be called can be called by executing the assembled object code file.
The following are device embodiments of the present application, which may be used to perform method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
Fig. 4 is 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 device has a function of implementing the remote invocation method of the verification code, and the function can be implemented by hardware or by executing corresponding software by hardware. 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 call request comprises the type of the verification code to be called, and the call request 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 obtained from a first database;
A receiving unit 402, configured to receive a response message of the call request, where the response message includes the code storage address;
a processing unit 403, configured to obtain an object code file from the 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 the 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 latest version code storage address is determined according to the code version information acquired from the first database;
the processing unit 403 is specifically configured to:
and acquiring the target code file from the 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: character type verification code, click type verification code, sliding type verification code, voice type verification code and gesture type verification code.
Fig. 5 is a schematic structural diagram of a remote invocation device of another verification code according to an embodiment of the present application. As shown in FIG. 5, the device has the function of realizing the remote calling method of the verification code, and the function can be realized by hardware or by executing corresponding software by hardware. 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 a verification code to be called;
the processing unit 502 is configured to determine a target function parameter corresponding to the verification code to be invoked according to the type of the verification code to be invoked and a preset correspondence between the type of the verification code and the function parameter; acquiring 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;
a sending unit 503, configured to return a response message of the call request to the calling end device, where the response message includes the code storage address.
Optionally, the corresponding relation between the verification code type and the function parameter is the corresponding relation between the verification code type and the special function 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 function parameters according to preset general function parameters and special function parameters corresponding to the verification code to be called, and determining target function parameters corresponding to the verification code to be called; the general function parameter is a function parameter common to all types of verification codes.
Optionally, the file information further includes code version information, the code version information corresponding to the code storage address;
before the sending unit 503 returns a response message of the call request to the calling 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 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; and a processor 602, configured to call and execute the program instructions in the memory, so as to implement the remote call method of the verification code according to the foregoing embodiment. Reference may be made in particular to the relevant description of the previous 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 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; and the processor 702 is configured to call and execute the program instructions in the memory, so as to implement the remote call method of the verification code according to the foregoing embodiment. Reference may be made in particular to the relevant description of the previous 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.
An embodiment of the present invention provides a readable storage medium, where a computer program is stored, 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 described in the foregoing embodiment.
The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), a random-access memory (random access memory, RAM), or the like.
It will be apparent to those skilled in the art that the techniques of embodiments of the present invention may be implemented in software plus a necessary general purpose hardware platform. Based on such understanding, the technical solutions in the embodiments of the present invention may be embodied in essence or what contributes to the prior art in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present invention.
The same or similar parts between the various embodiments in this specification are referred to each other. In particular, for the file transfer device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference should be made to the description of the method embodiments for the matters.
The embodiments of the present invention described above do not limit the scope of the present invention.

Claims (18)

1. A method for remotely invoking a verification code, the method comprising:
after detecting a preset operation triggered by a user, calling end equipment sends a calling request to service end equipment; the call request comprises the type of the verification code to be called;
the corresponding relation between the type of the verification code to be called and the function parameter is the corresponding relation between the type of the verification code to be called and the special function parameter; the special function parameter is a function parameter unique to each type of verification code;
the server device determines the special function parameters 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 type of the preset verification code to be called and the special function parameters;
the server equipment customizes the 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 general function parameters are function parameters shared by all types of verification codes; the call request is used for requesting a code storage address corresponding to the target function parameter matched with the type of the verification code to be called, and the code storage address is obtained from a first database;
The calling terminal equipment receives a response message of the calling request, wherein the response message comprises the code storage address;
the calling terminal equipment acquires an object code file from a second database according to the code storage address;
and the calling end equipment assembles the target code file, and calls the verification code to be called by executing the assembled target code file.
2. The method of claim 1, wherein the calling end device, after detecting a preset operation triggered by a user, further comprises:
the calling terminal equipment calls a pre-established initialization function to acquire an address of an initialization file;
and the calling terminal 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 latest version code storage address is determined according to the code version information acquired from the first database;
the calling terminal equipment obtains an object 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 the second database according to the code storage address of the latest version.
4. A method according to any one of claims 1 to 3, wherein the type of verification code to be invoked is any one of the following types: character type verification code, click type verification code, sliding type verification code, voice type verification code and gesture type verification code.
5. A method for remotely invoking 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 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 the corresponding relation between the preset verification code type and the function parameter;
the server 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;
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;
The corresponding relation between the type of the verification code to be called and the function parameter is the corresponding relation between the type of the verification code to be called and the special function parameter; the special function parameter is a function parameter unique to each type of verification code;
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 relation between the type of the verification code to be called and the function parameter, and the method comprises the following steps:
the server device determines the special function parameters 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 parameters;
the server equipment customizes the 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 general function parameter is a function parameter common to all types of verification codes.
6. The method of claim 5, wherein the file information further comprises code version information, the code version information corresponding to the code storage address;
Before the server-side equipment returns a response message of the call request to the calling-side equipment, the method further comprises:
and the server 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.
7. The method of claim 6, wherein the response message includes the latest version of the code storage address.
8. A remote invocation device of a verification code, the device comprising:
the sending unit is used for sending a calling request to the server equipment after detecting a preset operation triggered by a user; the call request comprises the type of the verification code to be called;
the corresponding relation between the type of the verification code to be called and the function parameter is the corresponding relation between the type of the verification code to be called and the special function parameter; the special function parameter is a function parameter unique to each type of verification code;
the server device determines the special function parameters 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 type of the preset verification code to be called and the special function parameters;
The server equipment customizes the 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 general function parameters are function parameters shared by all types of verification codes; the call request is used for requesting a code storage address corresponding to the target function parameter matched with the type of the verification code to be called, and the code storage address is obtained from a first database; a receiving unit, configured to receive a response message of the call request, where the response message includes the code storage address;
the processing unit is used for acquiring an object code file from the 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.
9. The apparatus of claim 8, wherein the processing unit is further configured to, after detecting a user-triggered preset operation:
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.
10. The apparatus of claim 8, wherein the response message further comprises a latest version of a code storage address; the latest version code storage address is determined according to the code version information acquired from the first database;
the processing unit is specifically configured to:
and acquiring the target code file from the second database according to the code storage address of the latest version.
11. The apparatus according to any one of claims 8 to 10, wherein the type of verification code to be invoked is any one of the following types: character type verification code, click type verification code, sliding type verification code, voice type verification code and gesture type verification code.
12. A remote invocation device of a verification code, the device comprising:
the receiving unit is used for receiving a calling request sent by calling terminal equipment, wherein the calling request comprises the type of the verification code to be called;
the processing unit is used for determining target function parameters 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 parameters; acquiring 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;
A sending unit, configured to return a response message of the call request to the calling end device, where the response message includes the code storage address;
the corresponding relation between the type of the verification code to be called and the function parameter is the corresponding relation between the type of the verification code to be called and the special 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 function parameters according to preset general function parameters and special function parameters corresponding to the verification code to be called, and determining target function parameters corresponding to the verification code to be called; the general function parameter is a function parameter common to all types of verification codes.
13. The apparatus of claim 12, 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 end 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.
14. The apparatus of claim 13, wherein the response message includes the latest version of the code storage address.
15. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in the memory to implement the remote invocation method of the passcode of any of claims 1 to 4.
16. An electronic device, comprising:
a memory for storing program instructions;
a processor for invoking and executing program instructions in the memory to implement the remote invocation method of the passcode of any of claims 5 to 7.
17. A readable storage medium, wherein a computer program is stored in the readable storage medium, and when executed by at least one processor of a remote invocation device of a verification code, the remote invocation device of the verification code performs the remote invocation method of the verification code as claimed in any one of claims 1 to 4.
18. A readable storage medium, wherein a computer program is stored in the readable storage medium, and when executed by at least one processor of a remote invocation device of a verification code, the remote invocation device of the verification code performs the remote invocation method of the verification code as claimed in any one of claims 5 to 7.
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 CN111078437A (en) 2020-04-28
CN111078437B true 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)

Families Citing this family (2)

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

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104104664A (en) * 2013-04-11 2014-10-15 腾讯科技(深圳)有限公司 Method, server, client and system for verifying verification code

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN111078437A (en) 2020-04-28

Similar Documents

Publication Publication Date Title
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
KR101068598B1 (en) System and method for managing delivery of internet content
US20170230444A1 (en) Cloud service server and method for managing cloud service server
CN113641983A (en) Account binding method, device and system for application program
CN103873918A (en) Picture processing method, device and terminal
CN111078437B (en) Remote calling method and device for verification codes, electronic equipment and readable storage medium
CN106911666B (en) Wearable intelligent device and message processing method and system thereof
CN106487662B (en) Information sharing method and device
CN105515887B (en) application testing method, server and system
CN108549586B (en) Information processing method and device
CN102932471A (en) Method and system for login server by browser and for achieving browser login
CN112685211A (en) Error information display method and device, electronic equipment and medium
CN110825600B (en) Page information processing method, server and page display device
CN104486371A (en) Equipment and method for downloading file on batch
CN108600255B (en) Mock service management method, device, computer equipment and storage medium
CN112818270B (en) Data cross-domain transfer method and device and computer equipment
CN112788090B (en) Network resource transmission method, device and system
KR101328118B1 (en) Method for providing log in service based on passdata
CN104346460A (en) Method and device for downloading file and browser client
WO2015003570A1 (en) Data downloading method,device and system thereof
CA3147120A1 (en) Method and apparatus for sharing content data between networked devices
CN116304403A (en) Webpage access method and device, computer equipment and storage medium
CN110633432A (en) Method, device, terminal equipment and medium for acquiring data
CN107222559B (en) Information calling method

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