Method and device for triggering WeChat applet

By using verification information to match reserved verification information during the triggering process of WeChat applets, the data leakage problem caused by the whitelist being hijacked or stolen is solved, and the security and authentication accuracy are improved.

CN119089427AInactive Publication Date: 2024-12-06BEIJING ALL UNION TECH CORP
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202411035404.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-12-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the process of triggering WeChat applets, there is a risk of data leakage when using the whitelist mechanism for identification, resulting in security issues.

Method used

By obtaining the verification information of the trigger request and matching the reserved verification information in the merchant’s preset cache, if the match is successful, responding to the trigger request, avoiding passing a whitelist to reduce the risk of hijacking and theft.

Benefits of technology

It improves the security of triggering WeChat applets, prevents user data leakage and order brushing, and enhances the accuracy and security of identity verification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119089427A_ABST
    Figure CN119089427A_ABST
Patent Text Reader

Abstract

The invention discloses a method and device for triggering a WeChat applet, and relates to the technical field of software. The method comprises the steps of obtaining verification information corresponding to a trigger request, wherein the verification information is generated based on the trigger request; judging whether the verification information is matched with reserved verification information stored in a preset cache of a merchant or not; and if the verification information is matched with the reserved verification information, responding to the trigger request. The method and the device are used for realizing a function of triggering the WeChat applet.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of software technology, and more particularly to a method and device for triggering a WeChat applet. Background Art

[0002] With the development and progress of technology, WeChat has become a commonly used communication software in people's daily life. With the popularity of WeChat, WeChat Mini Programs have gradually become well-known to people. Since WeChat Mini Programs do not require installation or uninstallation and are easy to operate, more and more merchants choose to complete transactions with users by triggering WeChat Mini Programs during the use of their own applications.

[0003] At present, in the process of triggering WeChat mini-programs, a whitelist mechanism is generally used to identify users to determine whether the user is a user who has been granted the corresponding triggering authority by the merchant. For example, when a user receives a discount authority through a merchant's application, it is necessary to trigger the corresponding WeChat mini-program to conduct subsequent transactions. In this process, the merchant's application generally needs to add the user to the whitelist and send the whitelist to the WeChat mini-program. After the WeChat mini-program detects that the user who previously initiated the trigger request is on the whitelist, it completes the request to trigger the WeChat mini-program, thereby realizing the function of "jumping" from the merchant's application to the WeChat mini-program. However, in actual applications, although the whitelist mechanism can be combined to achieve the triggering effect of the WeChat mini-program and exclude the interference of non-whitelist users in triggering the WeChat mini-program. However, if the whitelist is hijacked or leaked, it will cause some "scalpers" to maliciously copy all the user information on the whitelist to achieve operations such as "brushing orders", which will lead to the risk of data leakage in the process of triggering the WeChat mini-program, making the current conventional way of triggering the WeChat mini-program have security issues. Summary of the invention

[0004] The embodiments of the present application provide a method and device for triggering a WeChat mini-program, the main purpose of which is to solve the risk of data leakage when using a whitelist mechanism for identification in the current process of triggering a WeChat mini-program, thereby causing security issues in the entire process of triggering the WeChat mini-program.

[0005] In order to solve the above technical problems, the embodiments of the present application provide the following technical solutions:

[0006] In a first aspect, the present application provides a method for triggering a WeChat applet, the method comprising:

[0007] Obtaining verification information corresponding to the trigger request, wherein the verification information is generated based on the trigger request;

[0008] Determining whether the verification information matches the reserved verification information stored in the merchant preset cache;

[0009] If the verification information matches the reserved verification information, respond to the trigger request.

[0010] In a second aspect, the present application also provides a device for triggering a WeChat applet, including:

[0011] An acquiring unit, configured to acquire verification information corresponding to the trigger request, wherein the verification information is generated based on the trigger request;

[0012] A determination unit, configured to determine whether the verification information matches the reserved verification information stored in a preset cache of the merchant;

[0013] An execution unit is configured to respond to the trigger request if the verification information matches the reserved verification information.

[0014] In a third aspect, an embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method for triggering a WeChat mini program described in any one of the first aspects.

[0015] In a fourth aspect, an embodiment of the present application provides a device for triggering a WeChat mini program, the device comprising a storage medium; and one or more processors, the storage medium being coupled to the processor, the processor being configured to execute program instructions stored in the storage medium; when the program instructions are executed, the method for triggering a WeChat mini program described in any one of the first aspects is executed.

[0016] By means of the above technical solution, the technical solution provided by this application has at least the following advantages:

[0017] The present application provides a method and device for triggering a WeChat applet. The present application can obtain verification information corresponding to a trigger request, and the verification information is generated based on the trigger request; determine whether the verification information matches the reserved verification information stored in the merchant's preset cache; if the verification information matches the reserved verification information, respond to the trigger request, thereby realizing the function of triggering the WeChat applet. Compared with the prior art, in the present application, since it is no longer necessary to transmit a whitelist in the process of triggering the WeChat applet, but only to transmit the verification information, the problem of order brushing caused by the hijacking or theft of the whitelist during transmission is avoided, and the leakage of user data is avoided, thereby improving the security of the process of triggering the WeChat applet. At the same time, since the matching process is matched with the reserved verification information in the merchant's preset cache, even if the hacker steals the verification information, since the reserved verification information in the merchant's preset cache cannot be obtained at the same time, this can ensure that the hacker cannot simulate the verification information corresponding to the reserved verification information during the matching process, thereby further improving the security of triggering the WeChat applet.

[0018] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] By reading the detailed description below with reference to the accompanying drawings, the above and other purposes, features and advantages of the exemplary embodiments of the present application will become easy to understand. In the accompanying drawings, several embodiments of the present application are shown in an exemplary and non-limiting manner, and the same or corresponding reference numerals represent the same or corresponding parts, wherein:

[0020] Figure 1 A flowchart of a method for triggering a WeChat applet provided in an embodiment of the present application is shown;

[0021] Figure 2 Another method flow chart for triggering a WeChat applet provided in an embodiment of the present application is shown;

[0022] Figure 3 A block diagram of a device for triggering a WeChat applet provided in an embodiment of the present application is shown;

[0023] Figure 4 A block diagram showing the composition of another device for triggering a WeChat applet provided in an embodiment of the present application. DETAILED DESCRIPTION

[0024] The exemplary embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to fully convey the scope of the present application to those skilled in the art.

[0025] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by technicians in the field to which this application belongs.

[0026] The present application embodiment provides a method for triggering a WeChat applet, specifically: Figure 1 As shown, the method includes 101-103.

[0027] 101. Obtain verification information corresponding to the trigger request.

[0028] wherein the verification information is generated based on the trigger request;

[0029] In the prior art, the conventional scenarios for triggering WeChat mini programs are often as follows:

[0030] When a user operates a merchant's APP on a smart terminal, the merchant will regularly release some promotional activities, which often need to jump to the corresponding WeChat mini-program page to receive. At this time, the operator of the smart terminal will trigger the "jump" behavior of the WeChat mini-program. In this process, the merchant's APP is often required to pass the current user's information together with the whitelist for identifying whether the user has the right to the promotional activity to the WeChat mini-program. At this time, if the operator of the smart terminal is infected by malicious scripts, Trojans, etc., the transmitted user information will be stolen and hijacked together with the whitelist, and sent to the Trojan publisher or the malicious script publisher. These people will copy the stolen user information in the whitelist, thereby realizing malicious rights to receive promotions and fake orders.

[0031] In this embodiment, unlike the prior art, it is no longer necessary to transmit a whitelist in this embodiment. Instead, after the user triggers the APP, the verification information at the time of the current trigger request is directly obtained. The verification information is a kind of identity verification information, which corresponds to the reserved verification information in the subsequent steps. It should be noted that in this embodiment, the reserved verification information can be reserved by the operator of the smart terminal when registering the merchant software, or specific information that can characterize the identity of the operator left at the request of the merchant. In this embodiment, the type and form of the verification information are not limited, and it can be selected based on the actual needs of the user. Since there is a corresponding relationship between the reserved verification information and the verification information, the two can be the same information content, or different information content with a corresponding relationship, and of course, they can be selected based on needs.

[0032] It should be noted that the verification information must be obtained after the user triggers the trigger request to ensure the timeliness of the verification information. If the user fails to obtain the corresponding verification information within a certain period of time after triggering the trigger request from the APP to the WeChat mini program, the user can be fed back with corresponding prompt information to prompt the user to re-execute the corresponding operation. At the same time, this method can also ensure that certain hackers or malicious users are prevented from stealing other people's information to trigger the WeChat mini program, which can play a role in identifying and prompting users.

[0033] 102. Determine whether the verification information matches the reserved verification information stored in the merchant preset cache.

[0034] After obtaining the verification information, it is necessary to verify the user based on the verification information to ensure the user's identity. The verification information is matched with the reserved verification information in this embodiment. Therefore, whether there is a match depends on the rules selected by the merchant. For example, if the selected rule is that the reserved verification information recorded in advance by the user needs to be completely consistent with the verification information when the trigger request is triggered, then at this time, it is necessary to determine whether the currently obtained verification information is completely consistent with the reserved verification information during matching. If not, it means that the user is not the user who left the reserved verification information. Otherwise, it means that the user identity is correct.

[0035] In addition, in this embodiment, the reserved verification information is stored in the merchant's preset cache, that is, stored in the merchant's own device, which can be a separately set cache server, so that when the user triggers the trigger request and provides the corresponding verification information, it is determined from the cache server whether there is corresponding reserved verification information and whether it can be matched. In this way, the function of verifying and detecting the user operation when the user triggers the jump to the WeChat applet is realized.

[0036] 103. If the verification information matches the reserved verification information, respond to the trigger request.

[0037] When it is determined that the verification information matches the reserved verification information, it means that the current user has the authority to jump to the WeChat applet. At this time, the trigger request can be affected to realize the function of jumping to the WeChat applet, thus realizing the function of user detection when jumping to the WeChat applet.

[0038] The embodiment of the present application provides a method for triggering a WeChat applet. The present application can obtain verification information corresponding to a trigger request, and the verification information is generated based on the trigger request; determine whether the verification information matches the reserved verification information stored in the merchant preset cache; if the verification information matches the reserved verification information, respond to the trigger request, thereby realizing the function of triggering the WeChat applet. Compared with the prior art, in the present application, since it is no longer necessary to transmit a whitelist in the process of triggering the WeChat applet, but only to transmit the verification information, the problem of order brushing caused by the hijacking or theft of the whitelist during transmission is avoided, and the leakage of user data is avoided, thereby improving the security of the process of triggering the WeChat applet. At the same time, since the matching process is matched with the reserved verification information in the merchant preset cache, even if the hacker steals the verification information, since the reserved verification information in the merchant preset cache cannot be obtained at the same time, this can ensure that the hacker cannot simulate the verification information corresponding to the reserved verification information during the matching process, thereby further improving the security of triggering the WeChat applet.

[0039] To explain in more detail below, the present application embodiment provides another method for triggering a WeChat applet, as follows: Figure 2 As shown, the method at least includes 201-203.

[0040] 201. Obtain verification information corresponding to the trigger request.

[0041] wherein the verification information is generated based on the trigger request;

[0042] In this embodiment, the meanings of the terms such as the trigger request and verification information are consistent with the description in the previous embodiments and are not repeated here.

[0043] In addition, in this embodiment, the method for triggering the WeChat program can be deployed on the WeChat applet side as a user identity verification function before the WeChat applet executes the trigger request, or independently deployed on a third party as a security protection function before the WeChat applet executes the jump function. The specific deployment method can be selected based on the actual needs of the user and is not limited here.

[0044] 202. Determine whether the verification information matches the reserved verification information stored in the merchant preset cache.

[0045] Since the reserved verification information pre-stored by the user may be a string of characters, when matching, it is possible to verify whether the strings are completely consistent. At the same time, in order to ensure timeliness, an effective time mechanism can be introduced for matching.

[0046] Based on this, the verification information specifically includes a character string based on the user identification and the trigger feature. At this time, the step of determining whether the verification information matches the reserved verification information stored in the merchant preset cache specifically includes:

[0047] In the merchant preset cache, determining whether the character string corresponding to the reserved verification information is consistent with the character string corresponding to the verification information;

[0048] When it is determined that the character string corresponding to the reserved verification information is consistent with the character string corresponding to the verification information, the validity period of the character string corresponding to the reserved verification information is obtained, and based on the triggering time of the triggering request, it is determined whether the reserved verification information is within the validity period.

[0049] When the user's reserved verification information is a string, then when matching in this embodiment, it is also necessary to obtain the corresponding string from the operator when the trigger request for jump is triggered. If the current operator is the operator who left the reserved verification information at that time, the string provided at this time will be consistent with the string of the reserved verification information in the current merchant preset cache. If the operator corresponding to the trigger request at this time is a hacker or, since it is unknown what the string of the reserved verification information left by the operator is, there is no way to give the correct verification information string, thereby avoiding others from impersonating the operator's device or identity to jump to the WeChat applet to claim corresponding permissions and benefits.

[0050] In addition, since the matching process also uses the effective time mechanism, the effective time is generally set to be short, such as 30 seconds or 1 minute. This ensures that even if the reserved verification information of the user is stolen, it is difficult to claim it in a short period of time, thereby further improving the security of triggering the WeChat applet.

[0051] 203. If the verification information matches the reserved verification information, respond to the trigger request.

[0052] On the premise that the verification information specifically includes a character string based on the user identifier and the trigger feature, in this step, if the verification information matches the reserved verification information, responding to the trigger request is specifically performed as follows:

[0053] If it is determined that the reserved verification information is within the validity period, respond to the trigger request.

[0054] When it is determined that the reserved verification information is in the validity period, it means that the operator who currently triggers the trigger request can give accurate verification information (consistent with the string of the reserved verification information), and the verification information is also provided within the validity period of the reserved verification information, indicating that the operator saves the reserved verification information and executes the behavior of jumping to the WeChat applet in a short time. At this time, it can be determined that the identity of the operator who is currently triggering the WeChat applet is not a problem, and then the subsequent operation can be allowed, that is, responding to the trigger request. It should be noted here that, based on the description of the aforementioned step 201 of this embodiment, since the method for triggering the WeChat applet of this embodiment can be deployed on the WeChat applet side, it can also be deployed separately on a third party, so the specific method of responding to the trigger request in this step is also different based on the different deployment methods. Among them, when deployed on a third party, then as a security protection function that triggers the WeChat applet, the specific method of responding to the trigger request at this time is to allow the trigger request to be passed to the WeChat applet. When deployed on the WeChat applet side, the specific execution method of responding to the trigger request can be to call the relevant modules or services of the WeChat applet to call and display the page corresponding to the trigger request. Specifically, the response method in this step can be any of the above methods, which is not limited here, and it is only necessary to ensure that the response method corresponds to the deployment method.

[0055] Furthermore, in this embodiment, the trigger request can be further verified from the perspective of the trigger source. Specifically, the verification information also includes source information; the source information is used to characterize the source of the trigger operation formed when the trigger information is generated;

[0056] Based on this, in this step, if it is determined that the reserved verification information is within the validity period, responding to the trigger request includes:

[0057] If it is determined that the reserved verification information is within the validity period, it is determined whether the source information in the verification information is consistent with the source information in the reserved verification information, and when they are consistent, the trigger request is responded to.

[0058] In this embodiment, the source of the current trigger request can be checked, and the checking process is compared with the source information in the reserved verification information. Since merchants will restrict the program that triggers the discount page of the WeChat applet when issuing discount activities, for example, some discount activities can only be claimed through the APP provided by the merchant, or some activities can only be claimed through the official account, then the source when the user triggers the trigger request in the APP is different from the source when the trigger request is triggered from the official account. At this time, the source information can be verified, that is, the source information in the user's reserved verification information is verified with the source information of the current trigger request.

[0059] Furthermore, in the process of verifying the source information, the source can include both type verification and specific application verification, that is, it is necessary to verify not only whether the source is a certain type of application, but also whether the application is specifically provided by the merchant. Based on this, the source information specifically includes scenario information and application identification;

[0060] In this case, in this step, determining whether the source information in the verification information is consistent with the source information in the reserved verification information, and responding to the trigger request when they are consistent, can be performed as follows:

[0061] extracting scene information from the verification information and the reserved verification information respectively, and determining whether the scene information in the verification information is consistent with the scene information in the reserved verification information;

[0062] Extracting the application identifier from the verification information and the reserved verification information respectively, and determining whether the application identifier of the verification information is consistent with the application identifier in the reserved verification information;

[0063] When it is determined that the scene information of the verification information is consistent with the scene information in the reserved verification information, and when it is determined that the application identifier of the verification information is consistent with the field application identifier in the reserved verification information, respond to the trigger request.

[0064] For example, in this embodiment, the parameters corresponding to "scene" can be extracted from the verification information and the reserved verification information, and then the parameters corresponding to "appId" can be extracted from the verification information and the reserved verification information, and then the two can be compared to confirm whether they are consistent. For example, when it is determined that the values ​​corresponding to the scene of the two are both 1069, it means that the two are consistent and both belong to the WeChat applet triggered from the APP application.

[0065] Furthermore, in some cases, the user may have already received the relevant preferential activities. In order to avoid the user from receiving it repeatedly, in this embodiment, a mechanism for verifying the user's behavior can be further added. Based on this, the verification information also includes user behavior information;

[0066] Thus, before responding to the trigger request, the method of this embodiment may further include:

[0067] Extract the user behavior information from the verification information, and verify whether the user corresponding to the trigger request has completed the target operation based on the user behavior information; the target operation is the operation behavior performed by the user in the WeChat applet after the trigger request is responded to;

[0068] In this case, the responding to the trigger request includes:

[0069] If it is determined that the user has not completed the target operation, respond to the trigger request.

[0070] In this way, when the user triggers the trigger request, the user behavior information in the verification information is synchronously obtained to determine whether the user has performed certain operations, such as obtaining the rights to certain preferential activities. This ensures that the user does not repeat the behavior of obtaining, and avoids wasting the user's operation time.

[0071] Specifically, the user behavior verification process may be based on the user's ID, serial number, etc. Based on this, the user behavior information at least includes the user ID, operation serial number, and mini program marketing product number;

[0072] Thus, extracting the user behavior information from the verification information and verifying whether the user corresponding to the trigger request has completed the target operation based on the user behavior information includes:

[0073] extracting the user identifier from the verification information and the reserved verification information respectively;

[0074] Extracting the operation serial number from the verification information and the reserved verification information respectively;

[0075] Extracting the mini program marketing product number from the verification information and the reserved verification information respectively;

[0076] Determine whether the user identifier, operation serial number, and mini program marketing product number in the verification information and the reserved verification information are consistent;

[0077] If it is determined that the user has not completed the target operation, responding to the trigger request includes:

[0078] When it is determined that the user identifier, operation serial number, and mini-program marketing product number in the verification information and the reserved verification information are inconsistent, respond to the trigger request.

[0079] In this embodiment, when a user performs operations such as claiming certain rights and interests on the WeChat mini program, information including user identification, operation serial number, mini program marketing product number, etc. can be obtained from the user's operation information, and this information is also added to the reserved verification information. In this way, when the user performs an operation to claim a certain right and interest again, the information corresponding to the current user is obtained at the same time and verified with the reserved verification information, thereby ensuring that the user will not claim certain rights and interests repeatedly, thereby avoiding the occurrence of repeated claims by users and the like.

[0080] In addition, in order to ensure that the verification information is not cracked or tampered with during transmission and to protect user privacy, in this embodiment, the information used to verify the user including the user information may also be encrypted. In this case, the verification information is generated based on a preset encryption algorithm.

[0081] Thus, before determining whether the verification information matches the reserved verification information stored in the merchant preset cache, the verification information needs to be decrypted, so the method further includes:

[0082] A decryption algorithm corresponding to the preset encryption algorithm is determined, and the verification information is decrypted based on the decryption algorithm.

[0083] In this embodiment, the encryption algorithm can be a symmetric encryption algorithm or an asymmetric encryption algorithm. The type of algorithm adopted by the encryption algorithm is not specifically limited and can be selected based on the needs of the user, but it is necessary to ensure that the decryption algorithm corresponds to the encryption algorithm. For example, when the encryption algorithm is an asymmetric encryption algorithm, if the verification information is encrypted by the public key of the asymmetric encryption algorithm, then the private key corresponding to the public key needs to be used for decryption, and vice versa.

[0084] In this way, by encrypting and decrypting the verification information, it is ensured that during the transmission of the verification information, even if it is maliciously hijacked by others, it is difficult to crack. This can improve the security when triggering the WeChat applet and ensure the user's data privacy.

[0085] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an embodiment of the present application also provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the above-mentioned method of triggering the WeChat applet.

[0086] In order to achieve the above-mentioned purpose, according to another aspect of the present application, an embodiment of the present application also provides a device for triggering a WeChat mini program, the device comprising a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the method for triggering a WeChat mini program described above is executed.

[0087] Furthermore, as a response to the above Figure 1 and Figure 2In order to realize the method shown, another embodiment of the present application further provides a device for triggering a WeChat applet. The device embodiment for triggering a WeChat applet corresponds to the aforementioned method embodiment. For ease of reading, the device embodiment for triggering a WeChat applet will no longer repeat the details of the aforementioned method embodiment, but it should be clear that the device in this embodiment can correspond to all the contents of the aforementioned method embodiment. The main purpose of the device for triggering a WeChat applet is to solve the problem that in the current process of triggering a WeChat applet, it takes a lot of time to parse the meaning of the assembly code, thereby affecting the efficiency of triggering the WeChat applet. Specifically, Figure 3 As shown, the device for triggering the WeChat applet includes:

[0088] The acquisition unit 31 may be configured to acquire verification information corresponding to the trigger request, wherein the verification information is generated based on the trigger request;

[0089] The determination unit 32 may be used to determine whether the verification information matches the reserved verification information stored in the merchant preset cache;

[0090] The execution unit 33 may be configured to respond to the trigger request if the verification information matches the reserved verification information.

[0091] Further, such as Figure 4 As shown, the verification information specifically includes a character string composed of a user identifier and a trigger feature;

[0092] The judging unit 32 comprises:

[0093] The determination module 321 may be used to determine whether the character string corresponding to the reserved verification information is consistent with the character string corresponding to the verification information in the merchant preset cache;

[0094] The judgment module 322 may be used to obtain the validity period of the string corresponding to the reserved verification information when it is determined that the string corresponding to the reserved verification information is consistent with the string corresponding to the verification information, and to judge whether the reserved verification information is within the validity period based on the triggering time of the triggering request;

[0095] The execution unit 33 may be configured to respond to the trigger request if it is determined that the reserved verification information is within the validity period.

[0096] Further, such as Figure 4 As shown, the verification information also includes source information; the source information can be used to characterize the source of the trigger operation formed when the trigger information is generated;

[0097] The execution unit 33 may be configured to determine whether the source information in the verification information is consistent with the source information in the reserved verification information if it is determined that the reserved verification information is within the validity period, and respond to the trigger request when they are consistent.

[0098] Further, such as Figure 4 As shown, the source information specifically includes scene information and application identification;

[0099] The execution unit 33 includes:

[0100] A first determination module 331 may be configured to extract scene information from the verification information and the reserved verification information, respectively, and determine whether the scene information of the verification information is consistent with the scene information in the reserved verification information;

[0101] The second determination module 332 may be used to extract the application identifier from the verification information and the reserved verification information respectively, and determine whether the application identifier of the verification information is consistent with the application identifier in the reserved verification information;

[0102] The execution module 333 may be used to respond to the trigger request when it is determined that the scene information of the verification information is consistent with the scene information in the reserved verification information, and when it is determined that the application identifier of the verification information is consistent with the field application identifier in the reserved verification information.

[0103] Further, such as Figure 4 As shown, the verification information also includes user behavior information;

[0104] The device also includes:

[0105] The verification unit 34 may be used to extract the user behavior information from the verification information, and verify whether the user corresponding to the trigger request has completed the target operation based on the user behavior information; the target operation is the operation behavior performed by the user in the WeChat applet after the trigger request is responded to;

[0106] The execution unit 33 may also be specifically configured to respond to the trigger request if it is determined that the user has not completed the target operation.

[0107] Further, such as Figure 4 As shown, the user behavior information includes at least the user ID, operation serial number and mini program marketing product number;

[0108] The verification unit 34 may be specifically configured to extract the user identifier from the verification information and the reserved verification information, respectively; extract the operation serial number from the verification information and the reserved verification information, respectively; extract the mini program marketing product number from the verification information and the reserved verification information, respectively; and respectively determine whether the user identifier, the operation serial number, and the mini program marketing product number in the verification information and the reserved verification information are consistent;

[0109] The execution unit 33 can be specifically used to respond to the trigger request when it is determined that the user identifier, operation serial number and mini program marketing product number in the verification information and the reserved verification information are inconsistent.

[0110] Furthermore, the verification information is generated based on a preset encryption algorithm;

[0111] The device also includes:

[0112] The decryption unit 35 may be configured to determine a decryption algorithm corresponding to the preset encryption algorithm, and decrypt the verification information based on the decryption algorithm.

[0113] The embodiment of the present application provides a method and device for triggering a WeChat applet. The present application can obtain verification information corresponding to a trigger request, and the verification information is generated based on the trigger request; determine whether the verification information matches the reserved verification information stored in the merchant's preset cache; if the verification information matches the reserved verification information, respond to the trigger request, thereby realizing the function of triggering the WeChat applet. Compared with the prior art, in the present application, since it is no longer necessary to transmit a whitelist in the process of triggering the WeChat applet, but only to transmit the verification information, the problem of order brushing caused by the hijacking or theft of the whitelist during transmission is avoided, and the leakage of user data is avoided, thereby improving the security of the process of triggering the WeChat applet. At the same time, since the matching process is matched with the reserved verification information in the merchant's preset cache, even if the hacker steals the verification information, since the reserved verification information in the merchant's preset cache cannot be obtained at the same time, this can ensure that the hacker cannot simulate the verification information corresponding to the reserved verification information during the matching process, thereby further improving the security of triggering the WeChat applet.

[0114] An embodiment of the present application provides a storage medium, which includes a stored program, wherein when the program is running, the device where the storage medium is located is controlled to execute the method of triggering the WeChat mini-program described above.

[0115] The storage medium may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.

[0116] An embodiment of the present application also provides a device for triggering a WeChat mini program, the device comprising a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the method for triggering a WeChat mini program described above is executed.

[0117] An embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented: obtaining verification information corresponding to a trigger request, wherein the verification information is generated based on the trigger request; determining whether the verification information matches reserved verification information stored in a preset cache of a merchant; and responding to the trigger request if the verification information matches the reserved verification information.

[0118] Furthermore, the verification information specifically includes a character string composed of a user identifier and a trigger feature;

[0119] The determining whether the verification information matches the reserved verification information stored in the merchant preset cache includes:

[0120] In the merchant preset cache, determining whether the character string corresponding to the reserved verification information is consistent with the character string corresponding to the verification information;

[0121] When it is determined that the character string corresponding to the reserved verification information is consistent with the character string corresponding to the verification information, obtaining the validity period of the character string corresponding to the reserved verification information, and judging whether the reserved verification information is within the validity period based on the triggering time of the triggering request;

[0122] If the verification information matches the reserved verification information, responding to the trigger request includes:

[0123] If it is determined that the reserved verification information is within the validity period, respond to the trigger request.

[0124] Furthermore, the verification information also includes source information; the source information is used to characterize the source of the trigger operation formed when the trigger information is generated;

[0125] If it is determined that the reserved verification information is within the validity period, responding to the trigger request includes:

[0126] If it is determined that the reserved verification information is within the validity period, it is determined whether the source information in the verification information is consistent with the source information in the reserved verification information, and when they are consistent, the trigger request is responded to.

[0127] Furthermore, the source information specifically includes scene information and application identification;

[0128] The determining whether the source information in the verification information is consistent with the source information in the reserved verification information, and responding to the trigger request when they are consistent, comprises:

[0129] extracting scene information from the verification information and the reserved verification information respectively, and determining whether the scene information in the verification information is consistent with the scene information in the reserved verification information;

[0130] Extracting the application identifier from the verification information and the reserved verification information respectively, and determining whether the application identifier of the verification information is consistent with the application identifier in the reserved verification information;

[0131] When it is determined that the scene information of the verification information is consistent with the scene information in the reserved verification information, and when it is determined that the application identifier of the verification information is consistent with the field application identifier in the reserved verification information, respond to the trigger request.

[0132] Furthermore, the verification information also includes user behavior information;

[0133] Before responding to the trigger request, the method further includes:

[0134] Extracting the user behavior information from the verification information, and verifying whether the user corresponding to the trigger request has completed the target operation based on the user behavior information; the target operation is the operation behavior performed by the user in the WeChat applet after responding to the trigger request;

[0135] The responding to the trigger request includes:

[0136] If it is determined that the user has not completed the target operation, respond to the trigger request.

[0137] Furthermore, the user behavior information includes at least a user ID, an operation serial number, and a Mini Program marketing product number;

[0138] The extracting the user behavior information from the verification information and verifying whether the user corresponding to the trigger request has completed the target operation based on the user behavior information includes:

[0139] extracting the user identifier from the verification information and the reserved verification information respectively;

[0140] Extracting the operation serial number from the verification information and the reserved verification information respectively;

[0141] Extracting the mini program marketing product number from the verification information and the reserved verification information respectively;

[0142] Determine whether the user identifier, operation serial number, and mini program marketing product number in the verification information and the reserved verification information are consistent;

[0143] If it is determined that the user has not completed the target operation, responding to the trigger request includes:

[0144] When it is determined that the user identifier, operation serial number, and mini-program marketing product number in the verification information and the reserved verification information are inconsistent, respond to the trigger request.

[0145] Furthermore, the verification information is generated based on a preset encryption algorithm;

[0146] Before determining whether the verification information matches the reserved verification information stored in the merchant preset cache, the method further includes:

[0147] A decryption algorithm corresponding to the preset encryption algorithm is determined, and the verification information is decrypted based on the decryption algorithm.

[0148] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program code that initializes the following method steps: based on the product to be generated, determining an expression corresponding to the triggering WeChat applet; wherein the assembly expression includes a first identifier of at least one first sub-product involved in the product, and a logical relationship between the first identifiers; generating a derivative logic of the product based on the assembly expression; calling the first sub-product corresponding to the first identifier, and assembling according to the derivative logic to obtain the product.

[0149] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0150] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0151] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0152] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0153] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0154] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0155] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0156] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0157] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0158] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for triggering a WeChat applet, characterized in that: The method comprises: Obtaining verification information corresponding to the trigger request, wherein the verification information is generated based on the trigger request; Determining whether the verification information matches the reserved verification information stored in the merchant preset cache; If the verification information matches the reserved verification information, respond to the trigger request.

2. The method according to claim 1, characterized in that The verification information specifically includes a character string composed of a user identifier and a trigger feature; The determining whether the verification information matches the reserved verification information stored in the merchant preset cache includes: In the merchant preset cache, determining whether the character string corresponding to the reserved verification information is consistent with the character string corresponding to the verification information; When it is determined that the character string corresponding to the reserved verification information is consistent with the character string corresponding to the verification information, obtaining the validity period of the character string corresponding to the reserved verification information, and judging whether the reserved verification information is within the validity period based on the triggering time of the triggering request; If the verification information matches the reserved verification information, responding to the trigger request includes: If it is determined that the reserved verification information is within the validity period, respond to the trigger request.

3. The method according to claim 2, characterized in that The verification information also includes source information; the source information is used to characterize the source of the trigger operation formed when the trigger information is generated; If it is determined that the reserved verification information is within the validity period, responding to the trigger request includes: If it is determined that the reserved verification information is within the validity period, it is determined whether the source information in the verification information is consistent with the source information in the reserved verification information, and when they are consistent, the trigger request is responded to.

4. The method according to claim 3, characterized in that The source information specifically includes scene information and application identification; The determining whether the source information in the verification information is consistent with the source information in the reserved verification information, and responding to the trigger request when they are consistent, comprises: extracting scene information from the verification information and the reserved verification information respectively, and determining whether the scene information in the verification information is consistent with the scene information in the reserved verification information; Extracting the application identifier from the verification information and the reserved verification information respectively, and determining whether the application identifier of the verification information is consistent with the application identifier in the reserved verification information; When it is determined that the scene information of the verification information is consistent with the scene information in the reserved verification information, and when it is determined that the application identifier of the verification information is consistent with the field application identifier in the reserved verification information, respond to the trigger request.

5. The method according to any one of claims 1 to 4, characterized in that The verification information also includes user behavior information; Before responding to the trigger request, the method further includes: Extract the user behavior information from the verification information, and verify whether the user corresponding to the trigger request has completed the target operation based on the user behavior information; the target operation is the operation behavior performed by the user in the WeChat applet after the trigger request is responded to; The responding to the trigger request includes: If it is determined that the user has not completed the target operation, respond to the trigger request.

6. The method according to claim 5, characterized in that The user behavior information includes at least the user ID, operation serial number and mini program marketing product number; The extracting the user behavior information from the verification information and verifying whether the user corresponding to the trigger request has completed the target operation based on the user behavior information includes: extracting the user identifier from the verification information and the reserved verification information respectively; Extracting the operation serial number from the verification information and the reserved verification information respectively; Extracting the mini program marketing product number from the verification information and the reserved verification information respectively; Determine whether the user identifier, operation serial number, and mini program marketing product number in the verification information and the reserved verification information are consistent; If it is determined that the user has not completed the target operation, responding to the trigger request includes: When it is determined that the user identifier, operation serial number, and mini-program marketing product number in the verification information and the reserved verification information are inconsistent, respond to the trigger request.

7. The method according to claim 1, characterized in that The verification information is generated based on a preset encryption algorithm; Before determining whether the verification information matches the reserved verification information stored in the merchant preset cache, the method further includes: A decryption algorithm corresponding to the preset encryption algorithm is determined, and the verification information is decrypted based on the decryption algorithm.

8. A device for triggering a WeChat applet, characterized in that: The device comprises: An acquiring unit, configured to acquire verification information corresponding to the trigger request, wherein the verification information is generated based on the trigger request; A determination unit, configured to determine whether the verification information matches the reserved verification information stored in a preset cache of the merchant; An execution unit is configured to respond to the trigger request if the verification information matches the reserved verification information.

9. A storage medium, characterized in that: The storage medium includes a stored program, wherein, when the program is running, the device where the storage medium is located is controlled to execute the method for triggering a WeChat mini program as described in any one of claims 1-7.

10. A device for triggering a WeChat applet, characterized in that: The device includes a storage medium; and one or more processors, the storage medium is coupled to the processor, and the processor is configured to execute program instructions stored in the storage medium; when the program instructions are executed, the method for triggering the WeChat mini program described in any one of claims 1 to 7 is executed.

Citation Information

Patent Citations

  • Method and device for managing applet skipping, electronic equipment and storage medium

    CN110543339A

  • Information verification method and device, server and storage medium

    CN113254897A

  • Advertisement putting control method and system

    CN113469756A

  • Verification processing method and device, electronic equipment and storage medium

    CN114519177A

  • Application authorization method and device, computer equipment and storage medium

    CN117786639A