Component updating method and device, storage medium and computer device
By updating the parameters of the CAPTCHA component through hot updates, the problems of high manpower input and low real-time performance in CAPTCHA style updates in existing technologies are solved, enabling fast and flexible CAPTCHA updates and defense against hacker attacks.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-22
- Publication Date
- 2026-03-17
AI Technical Summary
In existing technologies, updating the style or parameters of CAPTCHAs requires reconnection to the business front-end domain, which involves significant manpower investment, has low real-time performance, and cannot effectively defend against diverse attacks from hackers.
By obtaining the latest component update version, the parameters in the CAPTCHA component are updated using hot update, including CAPTCHA style, tracking parameters, and verification bit logic. The client pre-configures the runtime space, bypassing the version update review process, and achieves fast and flexible updates.
It enables real-time updates of the CAPTCHA component, reduces manpower costs, enhances the ability to defend against hacker attacks, and ensures user experience and security.
Smart Images

Figure CN114237678B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of information security technology, and in particular to a component update method, apparatus, storage medium, and computer equipment. Background Technology
[0002] Currently, in order to ensure information security, most applications have introduced verification mechanisms, such as CAPTCHAs. CAPTCHAs, as a public, fully automated program that distinguishes between humans and machines, are widely used in various applications.
[0003] In existing technologies, when using CAPTCHAs for security verification, the corresponding CAPTCHAs are mainly generated based on the CAPTCHA type and template style issued by the server. When it is necessary to update the CAPTCHA style or other parameters, the business front-end domain that accesses the CAPTCHA service needs to re-access it. This process requires a large amount of manpower, has low real-time performance, and cannot resist diverse attacks from hackers. Summary of the Invention
[0004] The purpose of this invention is to at least solve one of the above-mentioned technical defects, especially the technical defects in the prior art where updating the style or other parameters of the verification code requires re-connection to the business front-end domain of the verification code service. This process requires a large amount of manpower, has low real-time performance, and cannot resist the technical defects of diverse hacker attacks.
[0005] This invention provides a component update method, the method comprising:
[0006] Get the latest component update version, which includes several parameters;
[0007] By using each parameter in the updated version of the component, the corresponding parameter in the CAPTCHA component is hot-updated. The CAPTCHA component is pre-configured with a set running space.
[0008] The corresponding verification code is generated based on the hot-updated verification code component.
[0009] Optionally, the parameters in the updated version of the component include the latest style of the verification code;
[0010] By utilizing each parameter in the updated version of the component, the corresponding parameters in the verification code component are hot-updated, including:
[0011] The latest style of the verification code is used to hot update the verification code style in the verification code component.
[0012] Optionally, the parameters in the updated version of the component include the latest data collection parameters automatically collected by the CAPTCHA component;
[0013] By utilizing each parameter in the updated version of the component, the corresponding parameters in the verification code component are hot-updated, including:
[0014] The latest data collection parameters automatically collected by the CAPTCHA component are used to perform hot updates on the data collection parameters in the CAPTCHA component.
[0015] Optionally, the parameters in the updated version of the component include the latest check bit logic;
[0016] By utilizing each parameter in the updated version of the component, the corresponding parameters in the verification code component are hot-updated, including:
[0017] The latest verification bit logic is used to perform a hot update of the verification bit logic in the CAPTCHA component.
[0018] Optionally, the method further includes:
[0019] The updated data corresponding to each parameter in the updated version of the component are compared with the original data corresponding to each parameter in the verification code component.
[0020] Based on the comparison results, the data to be updated corresponding to each parameter in the verification code component is selected.
[0021] The data to be updated is then hot-updated.
[0022] Optionally, the generation of the corresponding verification code based on the hot-updated verification code component includes:
[0023] Receive the verification code generation parameters returned by the server;
[0024] The verification code generation parameters are used to render the hot-updated verification code component, forming the corresponding verification code.
[0025] Optionally, before the step of receiving the verification code generation parameters returned by the server, the method further includes:
[0026] Send a verification code retrieval request to the server, along with the corresponding input parameter data for the verification code retrieval request.
[0027] The present invention also provides a component updating apparatus, comprising:
[0028] The version acquisition module is used to acquire the latest component update version, which includes several parameters.
[0029] The component update module is used to perform hot updates on the corresponding parameters in the CAPTCHA component using each parameter in the component update version. The CAPTCHA component is pre-configured with a set running space.
[0030] The verification code generation module is used to generate corresponding verification codes based on the hot-updated verification code component.
[0031] The present invention also provides a storage medium storing computer-readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the component update method as described in any of the above embodiments.
[0032] The present invention also provides a computer device, comprising: one or more processors, and a memory;
[0033] The memory stores computer-readable instructions that, when executed by the one or more processors, perform the steps of the component update method as described in any of the above embodiments.
[0034] As can be seen from the above technical solutions, the embodiments of the present invention have the following advantages:
[0035] The component update method, apparatus, storage medium, and computer equipment provided by this invention first obtain the latest component update version. Then, each parameter in the component update version can be used to perform a hot update on the corresponding parameters in the CAPTCHA component, and a corresponding CAPTCHA is generated based on the hot-updated CAPTCHA component. In this application, since hot updates can bypass the review process during version updates, problems in the application can be flexibly and quickly fixed. Therefore, using hot updates to update the CAPTCHA component can be done in real time without the access party investing manpower. Furthermore, when updating the CAPTCHA component using the latest component update version, since the client pre-configures a set running space for the CAPTCHA component, more functions can be updated simultaneously during component updates, such as CAPTCHA styles, tracking parameters, and verification bit logic. Through real-time updates of the CAPTCHA component, diverse attacks from hackers can be effectively defended. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 This is a flowchart illustrating a component update method provided in an embodiment of the present invention;
[0038] Figure 2 This is a page display image of an image verification code provided in an embodiment of the present invention;
[0039] Figure 3 A page display image of a verification code provided in an embodiment of the present invention;
[0040] Figure 4 A page display diagram for selecting a verification code provided in an embodiment of the present invention;
[0041] Figure 5 This is a page display diagram of direct interception provided in an embodiment of the present invention;
[0042] Figure 6 This is a schematic diagram of the structure of a component updating device provided in an embodiment of the present invention;
[0043] Figure 7 This is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present invention. Detailed Implementation
[0044] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0045] In existing technologies, when using CAPTCHAs for security verification, the corresponding CAPTCHAs are mainly generated based on the CAPTCHA type and template style issued by the server. When it is necessary to update the CAPTCHA style or other parameters, the business front-end domain that accesses the CAPTCHA service needs to re-access it. This process requires a large amount of manpower, has low real-time performance, and cannot resist diverse attacks from hackers.
[0046] Based on this, the present invention provides a component update method, as detailed below:
[0047] In one embodiment, such as Figure 1 As shown, Figure 1 This is a flowchart illustrating a component update method according to an embodiment of the present invention; the present invention provides a component update method, the method including:
[0048] S110: Get the latest component update version.
[0049] In this step, the client's front-end page is created through front-end development, which mainly uses HTML, CSS, JavaScript, and various derived technologies, frameworks, and solutions to realize the user interface interaction of Internet products.
[0050] The aforementioned client refers to an application that provides local services to customers in relation to the server. Commonly used clients include web browsers used for the World Wide Web, email clients for sending and receiving emails, clients that provide consumption services, and instant messaging client software. For different types of clients, corresponding services, such as database services, email services, and consumption services, can be provided through corresponding servers and service programs on the network. In addition, the client in this application can be installed on a desktop terminal or a mobile terminal, and the mobile terminal can specifically be at least one of mobile phones, tablets, laptops, etc.
[0051] When developers perform hot updates on problematic script modules in the client, they can push the updated script module to the client after successful testing. Upon receiving the updated script module, the client can compile it on the fly, then use `reload` to reload the corresponding module. After reloading, the program calls the new module at runtime and generates new objects using that new module.
[0052] Because this application incorporates a verification mechanism in the client-side application, when a user performs actions such as login, registration, or password retrieval on the front-end page, the client requests verification code generation parameters from the server based on the user's actions and generates the corresponding verification code using these parameters. Therefore, this application pre-configures a verification code component in the client; by rendering this component using the verification code generation parameters, the corresponding verification code can be obtained.
[0053] When it is necessary to update the parameters in the CAPTCHA component, the client can obtain the latest component update version and use that update version to update the CAPTCHA component.
[0054] Furthermore, when the client obtains the updated version of the component corresponding to the verification code component, in order to ensure that the current updated version of the component is the latest version, the client can compare the obtained updated version of the component with the existing version corresponding to the verification code component to determine whether the currently obtained updated version of the component is the latest version. If it is the latest version, then the client will use that version to update.
[0055] Furthermore, the updated version of the component in this application includes several parameters, such as CAPTCHA style, event tracking parameters, and verification bit logic. When it is necessary to add / delete / modify any CAPTCHA type, or to add / delete / modify any event tracking range and collection timing on the front end, only the CAPTCHA component needs to be updated to update all parameters.
[0056] Furthermore, due to the integration of front-end JavaScript in this application, such as the static field being able to publish the latest tracker.js version, the front-end basic component bootstrap.js will automatically obtain the latest component update version. This latest version only needs to be executed on the web page, without needing to distinguish the specific CAPTCHA access scenario. Moreover, the distribution of component update versions in this application can be controlled through the configuration center. For example, to control the risk of newly released JavaScript components, a canary control strategy can be used to gradually release the latest component update version to all users.
[0057] It should be noted that the static domain here refers to captcha.vipstatic.com, which is used in web servers and is mainly used as the front-end domain for CAPTCHAs, providing static resources, JS, and H5 templates.
[0058] S120: Use each parameter in the component update version to perform hot updates on the corresponding parameters in the CAPTCHA component.
[0059] In this step, after obtaining the latest component update version through S110, the client can use each parameter in the component update version to perform hot updates on the corresponding parameters in the verification code component.
[0060] Understandably, hot updates are a method for developers to quickly fix application problems. When an application encounters issues during operation, the inability to fix these problems promptly can cause immeasurable losses for both users and developers. Most app stores require developers to review new app versions, with a review period of at least 2-3 days. This means developers may not be able to fix sudden technical issues in time through version updates, potentially causing a significant negative impact on user experience. Hot updates, on the other hand, bypass the review process, flexibly and quickly fixing application problems, ensuring a good user experience, and guiding developers to formally fix and update application issues in regular updates.
[0061] The execution code during hot updates is script code used to instruct the client on how to perform the hot update. In this application, developers can pre-locate the problematic CAPTCHA component in the client, then extract the problematic function or variable from that component and correct it in the hot update execution code. When the client receives the corrected hot update execution code, it can update the content of the problematic function or variable in the CAPTCHA component according to the hot update execution code.
[0062] Specifically, when the client obtains the latest component update version, it can compare the executable code in the component update version with the content in the CAPTCHA component to determine the corresponding parameters of each executable code in the CAPTCHA component. That is, it can use each parameter in the component update version to perform hot updates on the corresponding parameters in the CAPTCHA component.
[0063] Furthermore, since the runtime space of the CAPTCHA component after hot update may increase or decrease, sufficient runtime space can be pre-configured for the CAPTCHA component during front-end development. This way, when hot-updating the CAPTCHA component in the future, there is no need to worry about the updated CAPTCHA component failing to run.
[0064] S130: Generate the corresponding verification code based on the hot-updated verification code component.
[0065] In this step, by using each parameter in the component update version in S120 to perform a hot update on the corresponding parameters in the verification code component, this application can generate the corresponding verification code based on the hot-updated verification code component.
[0066] For example, in this application, the client can request a verification code from the server based on the user's verification code retrieval request. The server can then issue corresponding verification code generation parameters based on the verification code retrieval request. After receiving the verification code generation parameters returned by the server, the client can render the hot-updated verification code component based on these parameters to obtain the corresponding verification code.
[0067] In the above embodiments, the latest component update version is first obtained. Then, each parameter in the component update version can be used to perform a hot update on the corresponding parameters in the CAPTCHA component, and a corresponding CAPTCHA is generated based on the hot-updated CAPTCHA component. In this application, since hot updates can bypass the review process during version updates and flexibly and quickly fix problems that occur in the application, using hot updates to update the CAPTCHA component does not require the access party to invest manpower costs and can perform real-time updates. Furthermore, when using the latest component update version to update the CAPTCHA component, since the client has pre-configured a set running space for the CAPTCHA component, it is possible to update more functions at the same time during component updates, such as CAPTCHA styles, tracking parameters, and verification bit logic. Through real-time updates of the CAPTCHA component, diverse attacks from hackers can be effectively defended.
[0068] In one embodiment, the parameters in the updated version of the component may include the latest style of CAPTCHA.
[0069] The step of hot-updating the corresponding parameter in the verification code component using each parameter in the component update version in S120 may include: hot-updating the verification code style in the verification code component using the latest style verification code.
[0070] In this embodiment, the updated version of the component obtained by the client includes the latest style of the CAPTCHA. This latest style refers to the deletion or modification of the CAPTCHA style corresponding to any existing CAPTCHA type, as well as the addition of a new CAPTCHA type and the corresponding CAPTCHA style under that type. The client can perform hot updates of the CAPTCHA style in the CAPTCHA component based on the latest style of the CAPTCHA.
[0071] It is understood that the CAPTCHA component in this application includes various CAPTCHA types, such as image CAPTCHAs, question CAPTCHAs, click-based CAPTCHAs, and direct interception CAPTCHAs; each CAPTCHA type has its corresponding CAPTCHA style. For example, Figure 2 , 3 As shown in Figures 4 and 5, Figure 2 This is a page display image of an image verification code provided in an embodiment of the present invention. Figure 3 This is a page display image of a verification code provided in an embodiment of the present invention. Figure 4 This is a page display diagram of clicking on a verification code provided in an embodiment of the present invention. Figure 5 This is a page display diagram for direct interception provided in an embodiment of the present invention.
[0072] Figure 2 In this system, image CAPTCHAs can be categorized into pure letter CAPTCHAs, number + letter CAPTCHAs, and Chinese character CAPTCHAs, depending on the content. The specific CAPTCHA can be set according to the actual scenario. The image CAPTCHA format is as follows: the right display box shows the corresponding CAPTCHA content, and the left input box is for the user to enter the CAPTCHA result. After the user enters the CAPTCHA result and clicks "OK", the client can upload the CAPTCHA result to the server so that the server can verify the CAPTCHA result.
[0073] Figure 3 The CAPTCHA in this context mainly refers to CAPTCHAs that require selecting inverted characters, characters of a certain color, or numbers and letters. The CAPTCHA format features specific instructions at the top, the characters displayed to the right of the input box in the middle, and "Cancel" or "Confirm" buttons at the bottom. When the user enters the corresponding CAPTCHA result in the input box and clicks "Confirm," the client uploads the CAPTCHA result to the server for verification.
[0074] Figure 4The "click-to-select" CAPTCHA refers to a CAPTCHA where users select corresponding text, images, or other text based on the prompts provided. For example, selecting specific text within an image. The CAPTCHA format features text or an image in the center, with prompts below. Users can select the text or image from the prompts. The client can use a tracking component to retrieve the user's selection and upload it to the server as the CAPTCHA input result for verification.
[0075] Figure 5 Direct interception in this context refers to the interception page displayed on the client when the server determines that the user's actions are high-risk. For example, the interception page might display a message such as "Frequent operations, please try again later" for the user's reference.
[0076] In one embodiment, the parameters in the updated version of the component may include the latest data collection parameters automatically collected by the CAPTCHA component.
[0077] S120 uses each parameter in the updated version of the component to perform a hot update of the corresponding parameter in the verification code component, which may include: using the latest data collection parameters automatically collected by the verification code component to perform a hot update of the data collection parameters in the verification code component.
[0078] In this embodiment, the updated version of the component obtained by the client includes the latest tracking parameters automatically collected by the CAPTCHA component. These tracking parameters can be used to automatically collect tracking data from the front-end page in the client, such as user behavior trajectory, user information, and device information for logging into the client.
[0079] When a component update includes the latest tracking parameters, the client can use these latest tracking parameters to perform a hot update of the tracking parameters in the CAPTCHA component, so that the updated tracking parameters can be used for subsequent data collection.
[0080] In one embodiment, the parameters in the updated version of the component may include the latest check bit logic.
[0081] S120 utilizes each parameter in the component update version to perform a hot update on the corresponding parameter in the verification code component, which may include: using the latest verification bit logic to perform a hot update on the verification bit logic in the verification code component.
[0082] In this embodiment, the updated component version obtained by the client includes the latest verification bit logic. This verification bit logic refers to the specific conversion logic used when converting the verification code input result into a verification bit. Generally, when converting the verification code input result, two main methods are used: implicit conversion or explicit conversion. When using implicit or explicit conversion, the specific conversion logic needs to be obtained based on the pre-determined verification bit logic.
[0083] Therefore, when the updated version of the component contains the latest verification bit logic, the latest verification bit logic can be used to hot update the verification bit logic in the CAPTCHA component, and the latest verification bit logic can be called to perform verification bit conversion when the CAPTCHA logic is used subsequently.
[0084] In one embodiment, the method may further include:
[0085] S141: Compare the updated data corresponding to each parameter in the updated version of the component with the original data corresponding to each parameter in the verification code component.
[0086] S142: Based on the comparison results, filter out the data to be updated corresponding to each parameter in the verification code component.
[0087] S143: Perform a hot update on the data to be updated.
[0088] In this embodiment, when updating the parameters in the CAPTCHA component, the updated data corresponding to each parameter in the obtained updated version of the component can be compared with the original data corresponding to each parameter in the CAPTCHA component to filter out the data to be updated in the CAPTCHA component and update the data to be updated.
[0089] Understandably, since the updated version of a component carries updated data corresponding to each parameter, such as the latest style of the CAPTCHA in the updated version, the updated data corresponding to the latest style of the CAPTCHA includes the length and width data of the input box. After comparing it with the original data corresponding to the CAPTCHA style in the CAPTCHA component, it is found that the length in the updated data is the same as the length in the original data, only the width has been modified. Therefore, the width data of the input box in the CAPTCHA style can be filtered out and used as the data to be updated. This can accurately locate the data to be updated, thereby improving the update accuracy.
[0090] In one embodiment, generating the corresponding verification code based on the hot-updated verification code component in step S130 may include:
[0091] S131: Receive the verification code generation parameters returned by the server.
[0092] S132: Render the hot-updated verification code component using the verification code generation parameters to form the corresponding verification code.
[0093] In this embodiment, the verification code generation parameters issued by the server 110 may include the verification code type and template identifier. When the client 120 obtains the verification code generation parameters, it can render the hot-updated verification code component according to the verification code type and template identifier in the verification code generation parameters, thereby obtaining the corresponding verification code.
[0094] It is understood that the types of verification codes in this application include, but are not limited to, image verification codes, question verification codes, and click verification codes. The template identifier in this application is used to inform the front-end component of the front-end style interaction corresponding to the current verification code type.
[0095] In one specific implementation, when a user triggers a verification code retrieval request on the front end, the user can first request the verification code service through the middleware / business backend, and simultaneously pass the required input parameter data (such as device information, mobile phone number information, etc.) to Captcha (underlying domain). Captcha (underlying domain) determines whether a verification code needs to be generated and what type of verification code to generate based on risk control rules (such as whether the mobile phone number or IP is on a blacklist, whether the request frequency is too high), and then passes the result back to the front end through the middleware. After obtaining the verification code type and the corresponding template ID, the front end can render the verification code component according to the verification code type and the corresponding template ID, and automatically generate the corresponding verification code style.
[0096] In one embodiment, before receiving the verification code generation parameters returned by the server in step S131, the process may further include: sending a verification code acquisition request to the server, and input parameter data corresponding to the verification code acquisition request.
[0097] In this embodiment, the server can obtain the input parameter data sent by the client based on the verification code retrieval request sent by the client, and match the input parameter data with the preset verification code generation rules. If the match is successful, it indicates that the current client needs to use a verification code for verification. At this time, the server can generate the corresponding verification code generation parameters according to the verification code generation rules and return the verification code generation parameters to the client. The client saves all the front-end styles of the verification codes. When the client receives the verification code generation parameters, it can determine the corresponding front-end style according to the verification code generation parameters, thereby generating the corresponding verification code, and uploading the verification code input result to the server.
[0098] It is understood that the input parameter data in this application includes embedded information related to user information, user behavior, device status, etc., when the user enters the verification code; while the verification code generation rule in this application refers to the generation conditions and generation strategy when generating the verification code. The generation conditions can be used to determine whether the user logging into the client is a blacklisted user, whether the frequency of the user accessing the interface is high, whether the device logging into the client is normal, and whether the user's behavior trajectory on the client's front-end page is normal, etc.; the generation strategy can include whether a verification code is needed, and what type of verification code is needed, etc.
[0099] The verification code generation parameters in this application refer to the verification code-related parameter information generated according to the generation strategy in the verification code generation rules, which enables the client to generate verification codes, such as verification code type and template identifier.
[0100] Therefore, after the server obtains the input parameter data, it can match the input parameter data with the generation conditions in the preset verification code generation rules to determine whether the input parameter data meets the generation conditions in the preset verification code generation rules. If it does, the server can determine the corresponding verification code generation parameters based on the generation strategy in the verification code generation rules and send the verification code generation parameters to the corresponding client so that the client can generate the corresponding verification code.
[0101] The component update apparatus provided in the embodiments of this application is described below. The component update apparatus described below and the component update method described above can be referred to in correspondence.
[0102] In one embodiment, such as Figure 6 As shown, Figure 6 This is a schematic diagram of a component update device provided in an embodiment of the present invention. The present invention also provides a component update device, including a version acquisition module 210, a component update module 220, and a verification code generation module 230, specifically comprising the following:
[0103] Version acquisition module 210 is used to acquire the latest component update version, which includes several parameters.
[0104] The component update module 220 is used to perform hot updates on the corresponding parameters in the verification code component using each parameter in the component update version. The verification code component is pre-configured with a set running space.
[0105] The verification code generation module 230 is used to generate corresponding verification codes based on the hot-updated verification code component.
[0106] In the above embodiments, the latest component update version is first obtained. Then, each parameter in the component update version can be used to perform a hot update on the corresponding parameters in the CAPTCHA component, and a corresponding CAPTCHA is generated based on the hot-updated CAPTCHA component. In this application, since hot updates can bypass the review process during version updates and flexibly and quickly fix problems that occur in the application, using hot updates to update the CAPTCHA component does not require the access party to invest manpower costs and can perform real-time updates. Furthermore, when using the latest component update version to update the CAPTCHA component, since the client has pre-configured a set running space for the CAPTCHA component, it is possible to update more functions at the same time during component updates, such as CAPTCHA styles, tracking parameters, and verification bit logic. Through real-time updates of the CAPTCHA component, diverse attacks from hackers can be effectively defended.
[0107] In one embodiment, the parameters in the updated version of the component may include the latest style of CAPTCHA.
[0108] The component update module 220 may include:
[0109] The first hot update module is used to hot update the CAPTCHA style in the CAPTCHA component using the latest CAPTCHA style.
[0110] In one embodiment, the parameters in the updated version of the component may include the latest data collection parameters automatically collected by the CAPTCHA component.
[0111] The component update module 220 may include:
[0112] The second hot update module is used to hot update the tracking parameters in the CAPTCHA component using the latest tracking parameters automatically collected by the CAPTCHA component.
[0113] In one embodiment, the parameters in the updated version of the component may include the latest check bit logic.
[0114] The component update module 220 may include:
[0115] The third hot update module is used to hot update the verification bit logic in the verification code component using the latest verification bit logic.
[0116] In one embodiment, the apparatus may further include:
[0117] The data comparison module is used to compare the updated data corresponding to each parameter in the updated version of the component with the original data corresponding to each parameter in the verification code component.
[0118] The filtering module is used to filter out the data to be updated corresponding to each parameter in the verification code component based on the comparison results.
[0119] The data update module is used to perform hot updates on the data to be updated.
[0120] In one embodiment, the verification code generation module 230 may include:
[0121] The parameter receiving module is used to receive the verification code generation parameters returned by the server.
[0122] The rendering module is used to render the hot-updated verification code component using the verification code generation parameters to form the corresponding verification code.
[0123] In one embodiment, the apparatus may further include:
[0124] The verification code acquisition module is used to send a verification code acquisition request to the server, as well as the input parameter data corresponding to the verification code acquisition request.
[0125] In one embodiment, the present invention also provides a storage medium storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to perform the steps of the component update method as described in any of the above embodiments.
[0126] In one embodiment, the present invention also provides a computer device comprising: one or more processors, and a memory.
[0127] The memory stores computer-readable instructions that, when executed by the one or more processors, perform the steps of the component update method as described in any of the above embodiments.
[0128] Indicatively, such as Figure 7 As shown, Figure 7 This is a schematic diagram of the internal structure of a computer device 300 provided in an embodiment of the present invention. The computer device 300 can be provided as a server. (Refer to...) Figure 7 The computer device 300 includes a processing component 302, which further includes one or more processors, and memory resources represented by memory 301 for storing instructions, such as application programs, that can be executed by the processing component 302. The application programs stored in memory 301 may include one or more modules, each corresponding to a set of instructions. Furthermore, the processing component 302 is configured to execute instructions to perform the component update method of any of the above embodiments.
[0129] The computer device 300 may also include a power supply component 303 configured to perform power management of the computer device 300, a wired or wireless network interface 304 configured to connect the computer device 300 to a network, and an input / output (I / O) interface 305. The computer device 300 may operate on an operating system stored in memory 301, such as Windows Server™, Mac OS X™, Unix™, Linux™, Free BSD™, or similar.
[0130] Those skilled in the art will understand that Figure 7 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0131] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0132] The various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can be referred to each other.
[0133] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. An assembly update method, characterized by, The method comprises: acquiring a latest component update version, the component update version comprising a plurality of parameters; performing hot update on corresponding parameters in a verification code component using each parameter in the component update version, the verification code component being pre-configured with a set running space; generating a verification code based on the hot updated verification code component; the parameters in the component update version comprising a latest style verification code, a latest trace point parameter automatically collected by the verification code component, and a latest check bit logic; the performing hot update on corresponding parameters in a verification code component using each parameter in the component update version comprises: performing hot update on a verification code style in the verification code component using the latest style verification code; performing hot update on a trace point parameter in the verification code component using the latest trace point parameter automatically collected by the verification code component; performing hot update on a check bit logic in the verification code component using the latest check bit logic.
2. The component update method according to claim 1, wherein The method further comprises: comparing update data corresponding to each parameter in the component update version with original data corresponding to each parameter in the verification code component respectively; screening out to-be-updated data corresponding to each parameter in the verification code component according to the comparison result; performing hot update on the to-be-updated data.
3. The component update method according to claim 1, wherein The generating a verification code based on the hot updated verification code component comprises: receiving verification code generation parameters returned by a server; rendering the hot updated verification code component using the verification code generation parameters to form a corresponding verification code.
4. The component update method according to claim 3, wherein Before the receiving verification code generation parameters returned by a server, the method further comprises: sending a verification code acquisition request and input parameter data corresponding to the verification code acquisition request to a server.
5. An assembly updating apparatus characterized by comprising: The method comprises: a version acquisition module configured to acquire a latest component update version, the component update version comprising a plurality of parameters; a component update module configured to perform hot update on corresponding parameters in a verification code component using each parameter in the component update version, the verification code component being pre-configured with a set running space; a verification code generation module configured to generate a verification code based on the hot updated verification code component; the parameters in the component update version comprising a latest style verification code, a latest trace point parameter automatically collected by the verification code component, and a latest check bit logic; the component update module comprises: performing hot update on a verification code style in the verification code component using the latest style verification code; performing hot update on a trace point parameter in the verification code component using the latest trace point parameter automatically collected by the verification code component; performing hot update on a check bit logic in the verification code component using the latest check bit logic.
6. A storage medium characterized by: The storage medium stores computer readable instructions, which, when executed by one or more processors, cause the one or more processors to perform the steps of the component update method according to any one of claims 1 to 4.
7. A computer device, comprising: The method comprises: one or more processors and a memory; the memory stores computer readable instructions, which, when executed by the one or more processors, perform the steps of the component update method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Anti-crawler method, device and equipment based on random authentication strategy
CN111294343A
Verification mode dynamic installation method and system, electronic device and storage medium
CN113259320A