CN112527668A - Applet safety debugging method and device, mobile terminal and storage medium - Google Patents

Applet safety debugging method and device, mobile terminal and storage medium Download PDF

Info

Publication number
CN112527668A
CN112527668A CN202011509998.XA CN202011509998A CN112527668A CN 112527668 A CN112527668 A CN 112527668A CN 202011509998 A CN202011509998 A CN 202011509998A CN 112527668 A CN112527668 A CN 112527668A
Authority
CN
China
Prior art keywords
parameter
applet
configuration parameter
url
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011509998.XA
Other languages
Chinese (zh)
Inventor
何兵
程达
镐振鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202011509998.XA priority Critical patent/CN112527668A/en
Publication of CN112527668A publication Critical patent/CN112527668A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/3644Software debugging by instrumenting at runtime
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running

Landscapes

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

Abstract

The invention relates to the technical field of mobile terminals, and provides a small program safety debugging method, a device, a mobile terminal and a storage medium, wherein the small program safety debugging method comprises the following steps: when detecting that an error occurs in the running of the applet, determining to bear the host application of the running of the applet; acquiring a prefix of the name of the host application, and acquiring a preset parameter password; responding to a first configuration parameter modification instruction input by a user, and generating a first URL according to the prefix, the parameter password and the first configuration parameter modification instruction; the first URL is transmitted to the SDK through the host application, and the first configuration parameter is subjected to hot updating through the SDK according to the first URL to obtain a first target configuration parameter pair; and refreshing the page of the applet according to the first target configuration parameter pair. The invention can rapidly debug the small program when the small program has an error in operation and ensure the safe operation of the small program.

Description

Applet safety debugging method and device, mobile terminal and storage medium
Technical Field
The invention relates to the technical field of mobile terminals, in particular to a safe debugging method and device for an applet, a mobile terminal and a storage medium.
Background
The Mini Program is an application which can be used without downloading and installing, realizes the dream of 'being reachable by hands' of the application, and also embodies the concept of 'being capable of being used up and running'.
Some applets can run on dozens of or even dozens of APPs, because the functions of all the APPs are different, the code styles are different, various compatibility problems often occur to applets, and developers of the APPs are inconvenient to help to troubleshoot problems sometimes because of more service requirements, and development and testing of the SDK need to modify some configurations of the SDK at this time, such as a log switch, a gesture switch, a domain name verification switch, an SDK environment, a request timeout threshold, a host ID and the like, so that the reasons of the problems are tried to be found out.
The inventor discovers that after the SDK configuration is manually modified, a host developer is required to modify codes and repack the codes, which wastes time and labor and reduces the running efficiency of the small program; adding functions inside the SDK, and performing direct modification can cause security problems for the applet.
Therefore, how to provide a safe and general SDK configuration modification solution becomes an urgent problem to be solved.
Disclosure of Invention
In view of the foregoing, there is a need for a safe debugging method, device, mobile terminal and storage medium for a applet, which can debug the applet quickly when an error occurs in the running of the applet and ensure the running safety of the applet.
A first aspect of the present invention provides a method for safely debugging an applet, the method comprising:
when detecting that an error occurs in the running of the applet, determining to bear the host application of the running of the applet;
acquiring a prefix of the name of the host application, and acquiring a preset parameter password;
responding to a first configuration parameter modification instruction input by a user, and generating a first URL according to the prefix, the parameter password and the first configuration parameter modification instruction;
the first URL is transmitted to the SDK through the host application, and the first configuration parameter is subjected to hot updating through the SDK according to the first URL to obtain a first target configuration parameter pair;
and refreshing the page of the applet according to the first target configuration parameter pair.
In an optional embodiment, the generating a first URL according to the prefix, the parameter password, and the first configuration parameter modification instruction includes:
analyzing the first configuration parameter modification instruction to obtain a parameter value of the first configuration parameter;
acquiring a log parameter, and defining a parameter value of the log parameter as a preset value;
connecting the log parameters, the parameter values of the log parameters, the first configuration parameters and the parameter values of the first configuration parameters according to preset operational characters to obtain parameter descriptions;
and generating a first URL based on the prefix, the parameter password and the parameter description according to a preset format.
In an optional embodiment, the obtaining, by the SDK, a first target configuration parameter pair by thermally updating the first configuration parameter according to the first URL includes:
analyzing the first URL through the SDK to obtain a host name and parameter description;
judging whether the host name is consistent with the parameter password;
when the host name is determined to be consistent with the parameter password, performing first segmentation on the parameter description according to a preset first operator to obtain a plurality of sub-parameter descriptions;
performing second segmentation on the sub-parameter descriptions according to a preset second operator to obtain a plurality of configuration parameters and a parameter value of each configuration parameter;
acquiring a parameter modification value of a first configuration parameter in the first configuration parameter modification instruction;
and thermally updating the parameter value of the corresponding configuration parameter by using the parameter modification value to obtain a first target configuration parameter pair.
In an optional embodiment, the method further comprises:
acquiring a plurality of historical system logs when other small programs run in error;
locating a plurality of problem points in the plurality of historical system logs;
extracting a plurality of key fields in the plurality of question points;
configuring a plurality of configuration parameters according to the plurality of key fields;
and responding to an instruction for opening the applet security debugging interface, and displaying the plurality of configuration parameters on the applet security debugging interface.
In an optional embodiment, the method further comprises:
when the page refreshing of the small program is failed according to the first target configuration parameter, receiving a second configuration parameter modification instruction input by a user;
generating a second URL according to the prefix, the parameter password and the second configuration parameter modification instruction;
transmitting the second URL to the SDK through the host application, and performing thermal update on the second configuration parameter through the SDK according to the second URL to obtain a second target configuration parameter pair;
and refreshing the page of the applet according to the second target configuration parameter pair.
In an optional embodiment, the method further comprises:
obtaining a refreshing result for refreshing the page of the small program;
the refreshing result and the corresponding target configuration parameters are stored in an associated mode;
calculating the number of target configuration parameters corresponding to the first refreshing result as the refreshing result;
and determining common problem points according to the number of the target configuration parameters.
In an optional embodiment, the method further comprises:
responding to a starting instruction of the small program, and acquiring the updating time of the small program;
judging whether the small program needs to be updated according to the updating time;
and when the applet needs to be updated according to the updating time, downloading an updating package of the applet, and updating the applet according to the updating package when the applet is started next time.
A second aspect of the present invention provides an applet security debugging apparatus, the apparatus comprising:
the bearing module is used for determining to bear host application operated by the small program when detecting that the small program operates in error;
the acquisition module is used for acquiring the prefix of the name of the host application and acquiring a preset parameter password;
the generating module is used for responding to a first configuration parameter modification instruction input by a user and generating a first URL according to the prefix, the parameter password and the first configuration parameter modification instruction;
the updating module is used for transmitting the first URL to the SDK through the host application and carrying out hot updating on the first configuration parameter through the SDK according to the first URL to obtain a first target configuration parameter pair;
and the refreshing module is used for refreshing the page of the applet according to the first target configuration parameter pair.
A third aspect of the invention provides a mobile terminal comprising a processor for implementing the applet security debugging method when executing a computer program stored in a memory.
A fourth aspect of the present invention provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the applet security debugging method.
In summary, according to the applet security debugging method, the applet security debugging device, the mobile terminal and the storage medium of the present invention, when an error occurs in the applet operation, a prefix bearing a name of a host application in which the applet operates is determined, a first configuration parameter modification instruction input by a user is responded, a first URL is generated according to the prefix, a preset parameter password and the first configuration parameter modification instruction, and then the first URL is transmitted to the SDK through the host application, so that the SDK performs a hot update on the first configuration parameter according to the first URL to obtain a first target configuration parameter pair, thereby enabling the mobile terminal to refresh a page of the applet according to the first target configuration parameter pair. When the small program has an error in operation, the configuration parameters of the small program are dynamically modified through the parameter password, the debugging efficiency of the small program is high, the code is not required to be modified through the host application, and the safety of the small program is improved.
Drawings
Fig. 1 is a flowchart of an applet security debugging method according to an embodiment of the present invention.
Fig. 2 is a structural diagram of an applet security debugging apparatus according to a second embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention.
Detailed Description
In order that the above objects, features and advantages of the present invention can be more clearly understood, a detailed description of the present invention will be given below with reference to the accompanying drawings and specific embodiments. It should be noted that the embodiments of the present invention and features of the embodiments may be combined with each other without conflict.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. The terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention.
The applet safety debugging method provided by the embodiment of the invention is executed by the mobile terminal, and correspondingly, the applet safety debugging device runs in the mobile terminal.
Fig. 1 is a flowchart of an applet security debugging method according to an embodiment of the present invention. The applet safety debugging method specifically comprises the following steps, and the sequence of the steps in the flowchart can be changed and some steps can be omitted according to different requirements.
S11, when detecting the small program operation error, determining the host application carrying the small program operation.
The host application is an application for providing a running environment for the applet, so that the applet runs on the mobile terminal depending on the host application. Wherein the host application is, for example, hundreds of mobile phones. Multiple applets can be run in one host application, for example, an applet Y1 and an applet Y2 in the host application XX 1. One applet may run in multiple host applications, for example, applet Y3 may run in host application XX2 and host application XX 3.
An applet is an application that can be used without downloading and installation and can run in different application environments (i.e., hosts), such as a web browser application, an instant messaging application, etc.
The mobile terminal can detect whether the small program runs in error or not through a thws Exception method, and when the small program runs in error, the host application providing a running environment for the small program is determined.
S12, obtaining the prefix of the name of the host application and obtaining the preset parameter password.
The mobile terminal is pre-stored with a parameter password for modifying the configuration parameters according to the parameter password.
The parameter password may be refreshConfig.
In other embodiments, the mobile terminal may further store a parameter password table in advance, where a prefix of the name of the host application and a corresponding parameter password table are recorded in the parameter password table. And matching a parameter password table corresponding to the prefix of the name of the host application through the parameter password table. Different parameter password tables are set for different host applications, and the parameter configuration of different host applications can be modified according to different parameter password tables when the small program runs in a plurality of host applications simultaneously and has errors. For example, the wechat applet runs in the host application XX1 and the host application XX2 at the same time, if the wechat applet has an error in the two host applications at the same time, the mobile terminal may acquire the parameter password P1 corresponding to the prefix of the name of the host application XX1 and the parameter password P2 corresponding to the prefix of the name of the host application XX2, modify the configuration parameters of the host application XX1 through the parameter password P1, and modify the configuration parameters of the host application XX2 through the parameter password P2.
S13, responding to a first configuration parameter modification instruction input by a user, and generating a first URL according to the prefix, the parameter password and the first configuration parameter modification instruction.
The host application can be called by a prefix (scheme), different schemes can call different hosts, and the schemes can be followed by parameters to form a URL.
The user can click or touch the applet safety debugging function icon on the mobile terminal to trigger and start the applet safety debugging function, so that an applet safety debugging interface is displayed on the mobile terminal.
The user can input a first configuration parameter modification instruction in the applet security debugging interface, so that the mobile terminal generates a first URL according to the first configuration parameter modification instruction.
In an optional embodiment, the generating a first URL according to the prefix, the parameter password, and the first configuration parameter modification instruction includes:
analyzing the first configuration parameter modification instruction to obtain a parameter value of the first configuration parameter;
acquiring a log parameter, and defining a parameter value of the log parameter as a preset value;
connecting the log parameters, the parameter values of the log parameters, the first configuration parameters and the parameter values of the first configuration parameters according to preset operational characters to obtain parameter descriptions;
and generating a first URL based on the prefix, the parameter password and the parameter description according to a preset format.
Wherein the preset operators are "═ and" & ", the operator" ═ "is an assignment symbol, and the operator" & "is a join symbol.
For example, assuming that the first configuration parameter obtained by the mobile terminal analyzing the first configuration parameter modification instruction is enableCheckDomain and the parameter value of the obtained first configuration parameter is 0, the log parameter defined by the mobile terminal is enableLog and the parameter value of the log parameter is 1, the parameter password is refreshcofig, the prefix of the name of the host application is Yiqianbao, and the parameter obtained by connecting the log parameter, the parameter value of the log parameter, the first configuration parameter and the parameter value of the first configuration parameter according to the preset operator is described as enableLog ═ 1& enableCheckDomain ═ 0. Then, the mobile terminal generates a first URL based on the prefix, the parameter password and the parameter description according to a preset format, and the first URL is: yiqianbao:// refreshcofeniblelog ═ 1& enableCheckDomain ═ 0.
In other embodiments, it is not necessary to define the parameter value of the log parameter as a preset value in advance. That is, the mobile terminal may not need to include the log parameter in the first URL generated according to the prefix, the parameter password, and the first configuration parameter modification instruction.
In this optional embodiment, by designating the parameter value of the log parameter as a preset value (e.g., 1), and including the log parameter and the parameter value of the log parameter in the generated first URL, the mobile terminal prints the system log to display to the user when executing an operation of opening the system log according to the first URL, so that the user can quickly locate a problem point of an error in the running of the applet according to the system log, and avoid the need of manually inputting the log parameter and the parameter value of the log parameter when the user makes an error in the running of the applet to safely debug the applet, thereby improving the generation efficiency of the first URL and further improving the efficiency of safely debugging the applet.
S14, the first URL is transmitted to the SDK through the host application, and the first configuration parameter is thermally updated through the SDK according to the first URL to obtain a first target configuration parameter pair.
Because of some service requirements, when the host is called by scheme, the host will pass the URL to the SDK for processing, such as pulling up a designated applet.
In an optional embodiment, the obtaining, by the SDK, a first target configuration parameter pair by thermally updating the first configuration parameter according to the first URL includes:
analyzing the first URL through the SDK to obtain a host name and parameter description;
judging whether the host name is consistent with the parameter password;
when the host name is determined to be consistent with the parameter password, performing first segmentation on the parameter description according to a preset first operator to obtain a plurality of sub-parameter descriptions;
performing second segmentation on the sub-parameter descriptions according to a preset second operator to obtain a plurality of configuration parameters and a parameter value of each configuration parameter;
acquiring a parameter modification value of a first configuration parameter in the first configuration parameter modification instruction;
and thermally updating the parameter value of the corresponding configuration parameter by using the parameter modification value to obtain a first target configuration parameter pair.
For example, the yijianbao is a scheme of one wallet, and the one wallet can be called up through the yijianbao, and then the one wallet will transfer the first URL to the SDK, and the SDK will parse the first URL to obtain the host name and the parameter description. Wherein the host name is refreshConfig, which matches the password defined above, and the SDK will perform the operation of updating the configuration parameters.
For example, assuming that the first URL is Yiqianbao:// refreshcofeniblelog ═ 1& weChatId ═ AA, the mobile terminal obtains a parameter description in the first URL as enablelolog ═ 1& weChatId ═ AA, then performs a first segmentation using a preset first operator "&" to obtain a first sub-parameter description enablelolog ═ 1 and a second sub-parameter description weChatId ═ AA, and then performs a second segmentation using a preset second operator "=" to obtain a configuration parameter enablelolog parameter value of 1 and obtain a configuration parameter weChatId parameter value of AA. Assuming that a parameter modification value of the weChatId in the first configuration parameter modification instruction input by the user is BB, the obtained first target configuration parameter pair is (weChatId, BB).
And when the mobile terminal judges that the host name is inconsistent with the parameter password, the mobile terminal indicates that the first URL received by the SDK is not obtained according to the first parameter configuration instruction input by the user and can not execute any operation.
S15, refreshing the page of the small program according to the first target configuration parameter pair.
The mobile terminal can preset a time period, and automatically refreshes the page of the applet according to the first target configuration parameter pair in the preset time period after detecting that the SDK carries out hot updating on the first configuration parameter according to the first URL to obtain the first target configuration parameter pair. The mobile terminal can also respond to the refresh command when receiving the refresh command of the page of the small program, and refresh the page of the small program according to the first target configuration parameter pair.
For example, assuming that an error occurs when a certain picture is displayed by the applet, the name of the picture with the error is a first name, the mobile terminal generates a first URL in response to a picture name configuration parameter modification instruction input by a user, the host application transmits the first URL to the SDK, the SDK performs thermal update on the picture name configuration parameter according to the first URL to obtain a picture name target configuration parameter, the name of the picture corresponding to the picture name target configuration parameter is a second name, and when a refresh instruction of a page of the applet is received, the picture corresponding to the second name is displayed according to the picture name target configuration parameter.
In an optional embodiment, the method further comprises:
when the page refreshing of the small program is failed according to the first target configuration parameter, receiving a second configuration parameter modification instruction input by a user;
generating a second URL according to the prefix, the parameter password and the second configuration parameter modification instruction;
transmitting the second URL to the SDK through the host application, and performing thermal update on the second configuration parameter through the SDK according to the second URL to obtain a second target configuration parameter pair;
and refreshing the page of the applet according to the second target configuration parameter pair.
When the page refreshing for refreshing the applet fails according to the first target configuration parameter, it indicates that the configuration parameter corresponding to the first configuration parameter modification instruction input by the user cannot realize hot updating of the configuration parameter of the applet, and cannot solve the problem of running error of the applet, and the mobile terminal may need to adopt a heuristic method to tentatively modify the configuration parameter one by one.
And after receiving a second configuration parameter modification instruction input by a user, obtaining a second target configuration parameter pair according to the process corresponding to the first configuration parameter modification instruction, and refreshing the page of the applet according to the second target configuration parameter pair. And then, obtaining a refreshing result of refreshing the page of the applet according to the second target configuration parameter, if the refreshing is failed, indicating that the configuration parameter corresponding to the second configuration parameter modification instruction input by the user cannot realize the hot updating of the configuration parameter of the applet, and the problem of operation error of the applet cannot be solved, and enabling the user to input a third configuration parameter modification instruction to realize the modification of the configuration parameter of the applet. If the updating is successful, the configuration parameters corresponding to the second configuration parameter modification instruction input by the user can be used for realizing the hot updating of the configuration parameters of the applet, so that the problem of error operation of the applet can be solved, and the applet can normally operate.
In an alternative embodiment, prior to S11, the method further comprises:
acquiring a plurality of historical system logs when other small programs run in error;
locating a plurality of problem points in the plurality of historical system logs;
extracting a plurality of key fields in the plurality of question points;
configuring a plurality of configuration parameters according to the plurality of key fields;
and responding to an instruction for opening the applet security debugging interface, and displaying the plurality of configuration parameters on the applet security debugging interface.
The mobile terminal can obtain other applets or a plurality of historical system logs when the applets have errors in operation, and can also receive a plurality of historical system logs when the applets have errors in operation, which are sent by other mobile terminals.
The system log records the occurrence time, access source and the like of all events. When an event has an error, a specific identifier is used for identifying, a problem point with a problem in a system log can be quickly located through the specific identifier, and the configuration of configuration parameters is carried out by extracting key fields in the problem point.
The configuration parameters may include a switch of a log, a switch of a gesture, a switch of a domain name check, an SDK environment, a timeout threshold of a request, a host ID, and the like.
In the optional embodiment, all problem points which are possible to make mistakes during the operation of the applet can be determined through the historical system logs, and the configuration of the configuration parameters is realized according to the problem points, so that the configuration parameters are more comprehensive and accurate, and the configuration efficiency of the configuration parameters can be improved; the configuration parameters are displayed on the applet safety debugging interface, so that the effect of prompting a user can be achieved, and the user can conveniently and quickly configure the host application according to the configuration parameters.
In an optional embodiment, the method further comprises:
obtaining a refreshing result for refreshing the page of the small program;
the refreshing result and the corresponding target configuration parameters are stored in an associated mode;
calculating the number of target configuration parameters corresponding to the first refreshing result as the refreshing result;
and determining common problem points according to the number of the target configuration parameters.
The refresh result includes a first result and a second result, the first result is used to indicate that the page of the applet is successfully refreshed, that is, the mobile terminal can normally operate the applet, and the second result is used to indicate that the page of the applet is failed to be refreshed, that is, the mobile terminal still cannot normally operate the applet.
And storing the first target configuration parameter pair and the corresponding refreshing result, and storing the second target configuration parameter pair and the corresponding refreshing result in a local database of the mobile terminal in an associated manner.
And when the data volume in the local database exceeds a preset data volume threshold value, the mobile terminal acquires target configuration parameters corresponding to a first refreshing result in the local database, and calculates the number of the acquired target configuration parameters. The more the number of the target configuration parameters is, the more the cause of the error in the small program operation is due to the configuration error of the configuration parameters corresponding to the target configuration parameters, which is a common problem point; the smaller the number of the target applet parameters is, the less the reason for the applet running error is that the configuration parameter corresponding to the target configuration parameter is configured incorrectly, which is an accidental problem point.
In this optional embodiment, the number of the target configuration parameters corresponding to the first refresh result is calculated as the refresh result, and the common problem points are determined according to the number of the target configuration parameters, that is, the common problem points are determined in a statistical manner, so that the determination of the common problem points is more objective, and the accuracy is higher. The method and the device determine common problem points, so that a warning effect can be achieved when a user configures the configuration parameters of the applet, the situation that the applet cannot normally run due to errors of the configuration parameters of the applet is avoided, and therefore the running efficiency of the applet is improved.
In an optional embodiment, the method further comprises:
responding to a starting instruction of the small program, and acquiring the updating time of the small program;
judging whether the small program needs to be updated according to the updating time;
and when the applet needs to be updated according to the updating time, downloading an updating package of the applet, and updating the applet according to the updating package when the applet is started next time.
And the mobile terminal calculates the time difference between the updating time and the current time, judges whether the time difference is greater than a preset difference threshold, downloads the updating package of the applet if the time difference is greater than the preset difference threshold and indicates that the applet is not updated for a long time, and does not need to download the updating package of the applet if the time difference is less than or equal to the preset difference threshold and indicates that the applet is not updated for a long time.
In this optional embodiment, when it is determined that the applet needs to be updated, the update package of the applet is downloaded, so that the applet is updated according to the update package when the applet is started next time, and the applet can be updated to the latest state without affecting the use of the applet by the user of the mobile terminal.
The method provided by the invention comprises the steps of determining a prefix for bearing the name of a host application operated by the applet when the applet operates in error, responding to a first configuration parameter modification instruction input by a user, generating a first URL according to the prefix, a preset parameter password and the first configuration parameter modification instruction, and transmitting the first URL to the SDK through the host application, so that the SDK carries out thermal update on the first configuration parameter according to the first URL to obtain a first target configuration parameter pair, and the mobile terminal refreshes the page of the applet according to the first target configuration parameter pair. When the small program has an error in operation, the configuration parameters of the small program are dynamically modified through the parameter password, the debugging efficiency of the small program is high, the code is not required to be modified through the host application, and the safety of the small program is improved.
It is emphasized that the plurality of configuration parameters may be stored in a node of the blockchain in order to further ensure privacy and security of the plurality of configuration parameters.
Fig. 2 is a structural diagram of an applet security debugging apparatus according to a second embodiment of the present invention.
In some embodiments, the applet security debugging apparatus 20 may include a plurality of functional modules composed of computer program segments. The computer program of each program segment in the applet security debugging apparatus 20 can be stored in the memory of the mobile terminal and executed by at least one processor to perform (see fig. 1 for details) the functions of the applet security debugging.
In this embodiment, the applet security debugging apparatus 20 may be divided into a plurality of functional modules according to the functions executed by the applet security debugging apparatus. The functional module may include: the device comprises a bearing module 201, an obtaining module 202, a generating module 203, an updating module 204, a refreshing module 205, a displaying module 206, a calculating module 207 and a downloading module 208. The module referred to herein is a series of computer program segments capable of being executed by at least one processor and capable of performing a fixed function and is stored in memory. In the present embodiment, the functions of the modules will be described in detail in the following embodiments.
The bearing module 201 is configured to determine to bear a host application run by the applet when it is detected that an error occurs in the running of the applet.
The host application is an application for providing a running environment for the applet, so that the applet runs on the mobile terminal depending on the host application. Wherein the host application is, for example, hundreds of mobile phones. Multiple applets can be run in one host application, for example, an applet Y1 and an applet Y2 in the host application XX 1. One applet may run in multiple host applications, for example, applet Y3 may run in host application XX2 and host application XX 3.
An applet is an application that can be used without downloading and installation and can run in different application environments (i.e., hosts), such as a web browser application, an instant messaging application, etc.
The mobile terminal can detect whether the small program runs in error or not through a thws Exception method, and when the small program runs in error, the host application providing a running environment for the small program is determined.
The obtaining module 202 is configured to obtain a prefix of the name of the host application, and obtain a preset parameter password.
The mobile terminal is pre-stored with a parameter password for modifying the configuration parameters according to the parameter password.
The parameter password may be refreshConfig.
In other embodiments, the mobile terminal may further store a parameter password table in advance, where a prefix of the name of the host application and a corresponding parameter password table are recorded in the parameter password table. And matching a parameter password table corresponding to the prefix of the name of the host application through the parameter password table. Different parameter password tables are set for different host applications, and the parameter configuration of different host applications can be modified according to different parameter password tables when the small program runs in a plurality of host applications simultaneously and has errors. For example, the wechat applet runs in the host application XX1 and the host application XX2 at the same time, if the wechat applet has an error in the two host applications at the same time, the mobile terminal may acquire the parameter password P1 corresponding to the prefix of the name of the host application XX1 and the parameter password P2 corresponding to the prefix of the name of the host application XX2, modify the configuration parameters of the host application XX1 through the parameter password P1, and modify the configuration parameters of the host application XX2 through the parameter password P2.
The generating module 203 is configured to generate a first URL according to the prefix, the parameter password, and a first configuration parameter modification instruction, in response to the first configuration parameter modification instruction input by the user.
The host application can be called by a prefix (scheme), different schemes can call different hosts, and the schemes can be followed by parameters to form a URL.
The user can click or touch the applet safety debugging function icon on the mobile terminal to trigger and start the applet safety debugging function, so that an applet safety debugging interface is displayed on the mobile terminal.
The user can input a first configuration parameter modification instruction in the applet security debugging interface, so that the mobile terminal generates a first URL according to the first configuration parameter modification instruction.
In an optional embodiment, the generating module 203 generates the first URL according to the prefix, the parameter password, and the first configuration parameter modification instruction, including:
analyzing the first configuration parameter modification instruction to obtain a parameter value of the first configuration parameter;
acquiring a log parameter, and defining a parameter value of the log parameter as a preset value;
connecting the log parameters, the parameter values of the log parameters, the first configuration parameters and the parameter values of the first configuration parameters according to preset operational characters to obtain parameter descriptions;
and generating a first URL based on the prefix, the parameter password and the parameter description according to a preset format.
Wherein the preset operators are "═ and" & ", the operator" ═ "is an assignment symbol, and the operator" & "is a join symbol.
For example, assuming that the first configuration parameter obtained by the mobile terminal analyzing the first configuration parameter modification instruction is enableCheckDomain and the parameter value of the obtained first configuration parameter is 0, the log parameter defined by the mobile terminal is enableLog and the parameter value of the log parameter is 1, the parameter password is refreshcofig, the prefix of the name of the host application is Yiqianbao, and the parameter obtained by connecting the log parameter, the parameter value of the log parameter, the first configuration parameter and the parameter value of the first configuration parameter according to the preset operator is described as enableLog ═ 1& enableCheckDomain ═ 0. Then, the mobile terminal generates a first URL based on the prefix, the parameter password and the parameter description according to a preset format, and the first URL is: yiqianbao:// refreshcofeniblelog ═ 1& enableCheckDomain ═ 0.
In other embodiments, it is not necessary to define the parameter value of the log parameter as a preset value in advance. That is, the mobile terminal may not need to include the log parameter in the first URL generated according to the prefix, the parameter password, and the first configuration parameter modification instruction.
In this optional embodiment, by designating the parameter value of the log parameter as a preset value (e.g., 1), and including the log parameter and the parameter value of the log parameter in the generated first URL, the mobile terminal prints the system log to display to the user when executing an operation of opening the system log according to the first URL, so that the user can quickly locate a problem point of an error in the running of the applet according to the system log, and avoid the need of manually inputting the log parameter and the parameter value of the log parameter when the user makes an error in the running of the applet to safely debug the applet, thereby improving the generation efficiency of the first URL and further improving the efficiency of safely debugging the applet.
The updating module 204 is configured to transmit the first URL to the SDK through the host application, and perform a hot update on the first configuration parameter according to the first URL through the SDK to obtain a first target configuration parameter pair.
Because of some service requirements, when the host is called by scheme, the host will pass the URL to the SDK for processing, such as pulling up a designated applet.
In an optional embodiment, the obtaining, by the update module 204, a first target configuration parameter pair by performing a hot update on the first configuration parameter according to the first URL through the SDK includes:
analyzing the first URL through the SDK to obtain a host name and parameter description;
judging whether the host name is consistent with the parameter password;
when the host name is determined to be consistent with the parameter password, performing first segmentation on the parameter description according to a preset first operator to obtain a plurality of sub-parameter descriptions;
performing second segmentation on the sub-parameter descriptions according to a preset second operator to obtain a plurality of configuration parameters and a parameter value of each configuration parameter;
acquiring a parameter modification value of a first configuration parameter in the first configuration parameter modification instruction;
and thermally updating the parameter value of the corresponding configuration parameter by using the parameter modification value to obtain a first target configuration parameter pair.
For example, the yijianbao is a scheme of one wallet, and the one wallet can be called up through the yijianbao, and then the one wallet will transfer the first URL to the SDK, and the SDK will parse the first URL to obtain the host name and the parameter description. Wherein the host name is refreshConfig, which matches the password defined above, and the SDK will perform the operation of updating the configuration parameters.
For example, assuming that the first URL is Yiqianbao:// refreshcofeniblelog ═ 1& weChatId ═ AA, the mobile terminal obtains a parameter description in the first URL as enablelolog ═ 1& weChatId ═ AA, then performs a first segmentation using a preset first operator "&" to obtain a first sub-parameter description enablelolog ═ 1 and a second sub-parameter description weChatId ═ AA, and then performs a second segmentation using a preset second operator "=" to obtain a configuration parameter enablelolog parameter value of 1 and obtain a configuration parameter weChatId parameter value of AA. Assuming that a parameter modification value of the weChatId in the first configuration parameter modification instruction input by the user is BB, the obtained first target configuration parameter pair is (weChatId, BB).
And when the mobile terminal judges that the host name is inconsistent with the parameter password, the mobile terminal indicates that the first URL received by the SDK is not obtained according to the first parameter configuration instruction input by the user and can not execute any operation.
The refreshing module 205 is configured to refresh a page of the applet according to the first target configuration parameter pair.
The mobile terminal can preset a time period, and automatically refreshes the page of the applet according to the first target configuration parameter pair in the preset time period after detecting that the SDK carries out hot updating on the first configuration parameter according to the first URL to obtain the first target configuration parameter pair. The mobile terminal can also respond to the refresh command when receiving the refresh command of the page of the small program, and refresh the page of the small program according to the first target configuration parameter pair.
For example, assuming that an error occurs when a certain picture is displayed by the applet, the name of the picture with the error is a first name, the mobile terminal generates a first URL in response to a picture name configuration parameter modification instruction input by a user, the host application transmits the first URL to the SDK, the SDK performs thermal update on the picture name configuration parameter according to the first URL to obtain a picture name target configuration parameter, the name of the picture corresponding to the picture name target configuration parameter is a second name, and when a refresh instruction of a page of the applet is received, the picture corresponding to the second name is displayed according to the picture name target configuration parameter.
In an optional embodiment, the generating module 203 is further configured to receive a second configuration parameter modification instruction input by a user when the page refreshing for refreshing the applet according to the first target configuration parameter fails; and generating a second URL according to the prefix, the parameter password and the second configuration parameter modification instruction.
The updating module 204 is further configured to transmit the second URL to the SDK through the host application, and perform a hot update on the second configuration parameter according to the second URL through the SDK to obtain a second target configuration parameter pair.
The refreshing module 205 is further configured to refresh a page of the applet according to the second target configuration parameter pair.
When the page refreshing for refreshing the applet fails according to the first target configuration parameter, it indicates that the configuration parameter corresponding to the first configuration parameter modification instruction input by the user cannot realize hot updating of the configuration parameter of the applet, and cannot solve the problem of running error of the applet, and the mobile terminal may need to adopt a heuristic method to tentatively modify the configuration parameter one by one.
And after receiving a second configuration parameter modification instruction input by a user, obtaining a second target configuration parameter pair according to the process corresponding to the first configuration parameter modification instruction, and refreshing the page of the applet according to the second target configuration parameter pair. And then, obtaining a refreshing result of refreshing the page of the applet according to the second target configuration parameter, if the refreshing is failed, indicating that the configuration parameter corresponding to the second configuration parameter modification instruction input by the user cannot realize the hot updating of the configuration parameter of the applet, and the problem of operation error of the applet cannot be solved, and enabling the user to input a third configuration parameter modification instruction to realize the modification of the configuration parameter of the applet. If the updating is successful, the configuration parameters corresponding to the second configuration parameter modification instruction input by the user can be used for realizing the hot updating of the configuration parameters of the applet, so that the problem of error operation of the applet can be solved, and the applet can normally operate.
The display module 206 is configured to obtain a plurality of historical system logs when other applets run in error;
locating a plurality of problem points in the plurality of historical system logs; extracting a plurality of key fields in the plurality of question points; configuring a plurality of configuration parameters according to the plurality of key fields; and responding to an instruction for opening the applet security debugging interface, and displaying the plurality of configuration parameters on the applet security debugging interface.
The mobile terminal can obtain other applets or a plurality of historical system logs when the applets have errors in operation, and can also receive a plurality of historical system logs when the applets have errors in operation, which are sent by other mobile terminals.
The system log records the occurrence time, access source and the like of all events. When an event has an error, a specific identifier is used for identifying, a problem point with a problem in a system log can be quickly located through the specific identifier, and the configuration of configuration parameters is carried out by extracting key fields in the problem point.
The configuration parameters may include a switch of a log, a switch of a gesture, a switch of a domain name check, an SDK environment, a timeout threshold of a request, a host ID, and the like.
In the optional embodiment, all problem points which are possible to make mistakes during the operation of the applet can be determined through the historical system logs, and the configuration of the configuration parameters is realized according to the problem points, so that the configuration parameters are more comprehensive and accurate, and the configuration efficiency of the configuration parameters can be improved; the configuration parameters are displayed on the applet safety debugging interface, so that the effect of prompting a user can be achieved, and the user can conveniently and quickly configure the host application according to the configuration parameters.
The computing module 207 is further configured to obtain a refresh result of refreshing the page of the applet; the refreshing result and the corresponding target configuration parameters are stored in an associated mode; calculating the number of target configuration parameters corresponding to the first refreshing result as the refreshing result; and determining common problem points according to the number of the target configuration parameters.
The refresh result includes a first result and a second result, the first result is used to indicate that the page of the applet is successfully refreshed, that is, the mobile terminal can normally operate the applet, and the second result is used to indicate that the page of the applet is failed to be refreshed, that is, the mobile terminal still cannot normally operate the applet.
And storing the first target configuration parameter pair and the corresponding refreshing result, and storing the second target configuration parameter pair and the corresponding refreshing result in a local database of the mobile terminal in an associated manner.
And when the data volume in the local database exceeds a preset data volume threshold value, the mobile terminal acquires target configuration parameters corresponding to a first refreshing result in the local database, and calculates the number of the acquired target configuration parameters. The more the number of the target configuration parameters is, the more the cause of the error in the small program operation is due to the configuration error of the configuration parameters corresponding to the target configuration parameters, which is a common problem point; the smaller the number of the target applet parameters is, the less the reason for the applet running error is that the configuration parameter corresponding to the target configuration parameter is configured incorrectly, which is an accidental problem point.
In this optional embodiment, the number of the target configuration parameters corresponding to the first refresh result is calculated as the refresh result, and the common problem points are determined according to the number of the target configuration parameters, that is, the common problem points are determined in a statistical manner, so that the determination of the common problem points is more objective, and the accuracy is higher. The method and the device determine common problem points, so that a warning effect can be achieved when a user configures the configuration parameters of the applet, the situation that the applet cannot normally run due to errors of the configuration parameters of the applet is avoided, and therefore the running efficiency of the applet is improved.
The downloading module 208 is configured to, in response to a start instruction of the applet, obtain update time of the applet; judging whether the small program needs to be updated according to the updating time; and when the applet needs to be updated according to the updating time, downloading an updating package of the applet, and updating the applet according to the updating package when the applet is started next time.
And the mobile terminal calculates the time difference between the updating time and the current time, judges whether the time difference is greater than a preset difference threshold, downloads the updating package of the applet if the time difference is greater than the preset difference threshold and indicates that the applet is not updated for a long time, and does not need to download the updating package of the applet if the time difference is less than or equal to the preset difference threshold and indicates that the applet is not updated for a long time.
In this optional embodiment, when it is determined that the applet needs to be updated, the update package of the applet is downloaded, so that the applet is updated according to the update package when the applet is started next time, and the applet can be updated to the latest state without affecting the use of the applet by the user of the mobile terminal.
According to the device provided by the invention, when an error occurs in the running of the small program, a prefix bearing the name of a host application running the small program is determined, a first configuration parameter modification instruction input by a user is responded, a first URL is generated according to the prefix, a preset parameter password and the first configuration parameter modification instruction, then the first URL is transmitted to the SDK through the host application, the SDK carries out hot updating on the first configuration parameter according to the first URL to obtain a first target configuration parameter pair, and therefore the mobile terminal refreshes the page of the small program according to the first target configuration parameter pair. When the small program has an error in operation, the configuration parameters of the small program are dynamically modified through the parameter password, the debugging efficiency of the small program is high, the code is not required to be modified through the host application, and the safety of the small program is improved.
It is emphasized that the plurality of configuration parameters may be stored in a node of the blockchain in order to further ensure privacy and security of the plurality of configuration parameters.
Fig. 3 is a schematic structural diagram of a mobile terminal according to a third embodiment of the present invention. In the preferred embodiment of the present invention, the mobile terminal 3 includes a memory 31, at least one processor 32, at least one communication bus 33, and a transceiver 34.
It will be appreciated by those skilled in the art that the configuration of the mobile terminal shown in fig. 3 does not constitute a limitation of the embodiment of the present invention, and may be a bus-type configuration or a star-type configuration, and the mobile terminal 3 may further include more or less hardware or software than those shown, or different component arrangements.
In some embodiments, the mobile terminal 3 is a device capable of automatically performing numerical calculation and/or information processing according to instructions set or stored in advance, and the hardware thereof includes but is not limited to a microprocessor, an application specific integrated circuit, a programmable gate array, a digital processor, an embedded device, and the like. The mobile terminal 3 may further include a computer device and a client device, where the client device includes, but is not limited to, any electronic product that can interact with a client through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device, for example, a personal computer, a tablet computer, a smart phone, a digital camera, and the like.
It should be noted that the mobile terminal 3 is only an example, and other existing or future electronic products, such as those that can be adapted to the present invention, should also be included in the scope of the present invention, and are included herein by reference.
In some embodiments, the memory 31 has stored therein a computer program which, when executed by the at least one processor 32, implements all or part of the steps of the applet security debugging method as described. The Memory 31 includes a Read-Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), a One-time Programmable Read-Only Memory (OTPROM), an electronically Erasable rewritable Read-Only Memory (Electrically-Erasable Programmable Read-Only Memory (EEPROM)), an optical Read-Only disk (CD-ROM) or other optical disk Memory, a magnetic disk Memory, a tape Memory, or any other medium readable by a computer capable of carrying or storing data.
Further, the computer-readable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the blockchain node, and the like.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
In some embodiments, the at least one processor 32 is a Control Unit (Control Unit) of the mobile terminal 3, connects various components of the entire mobile terminal 3 by using various interfaces and lines, and executes various functions and processes data of the mobile terminal 3 by running or executing programs or modules stored in the memory 31 and calling data stored in the memory 31. For example, the at least one processor 32, when executing the computer program stored in the memory, implements all or part of the steps of the applet security debugging method described in the embodiments of the present invention; or implement all or part of the functions of the applet security debugging device. The at least one processor 32 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same or different functions, including one or more Central Processing Units (CPUs), microprocessors, digital Processing chips, graphics processors, and combinations of various control chips.
In some embodiments, the at least one communication bus 33 is arranged to enable connection communication between the memory 31 and the at least one processor 32 or the like.
Although not shown, the mobile terminal 3 may further include a power supply (e.g., a battery) for supplying power to various components, and preferably, the power supply may be logically connected to the at least one processor 32 through a power management device, so as to implement functions of managing charging, discharging, and power consumption through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The mobile terminal 3 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
The integrated unit implemented in the form of a software functional module may be stored in a computer-readable storage medium. The software functional module is stored in a storage medium and includes several instructions to enable a mobile terminal (which may be a personal computer, a mobile terminal, or a network device) or a processor (processor) to execute parts of the methods according to the embodiments of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or that the singular does not exclude the plural. A plurality of units or means recited in the specification may also be implemented by one unit or means through software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. An applet security debugging method, comprising:
when detecting that an error occurs in the running of the applet, determining to bear the host application of the running of the applet;
acquiring a prefix of the name of the host application, and acquiring a preset parameter password;
responding to a first configuration parameter modification instruction input by a user, and generating a first URL according to the prefix, the parameter password and the first configuration parameter modification instruction;
the first URL is transmitted to the SDK through the host application, and the first configuration parameter is subjected to hot updating through the SDK according to the first URL to obtain a first target configuration parameter pair;
and refreshing the page of the applet according to the first target configuration parameter pair.
2. The applet security debugging method according to claim 1, wherein the generating a first URL according to the prefix, the parameter password and the first configuration parameter modification instruction comprises:
analyzing the first configuration parameter modification instruction to obtain a parameter value of the first configuration parameter;
acquiring a log parameter, and defining a parameter value of the log parameter as a preset value;
connecting the log parameters, the parameter values of the log parameters, the first configuration parameters and the parameter values of the first configuration parameters according to preset operational characters to obtain parameter descriptions;
and generating a first URL based on the prefix, the parameter password and the parameter description according to a preset format.
3. The applet security debugging method according to claim 1 or 2, wherein the obtaining a first target configuration parameter pair by the SDK hot-updating the first configuration parameter according to the first URL comprises:
analyzing the first URL through the SDK to obtain a host name and parameter description;
judging whether the host name is consistent with the parameter password;
when the host name is determined to be consistent with the parameter password, performing first segmentation on the parameter description according to a preset first operator to obtain a plurality of sub-parameter descriptions;
performing second segmentation on the sub-parameter descriptions according to a preset second operator to obtain a plurality of configuration parameters and a parameter value of each configuration parameter;
acquiring a parameter modification value of a first configuration parameter in the first configuration parameter modification instruction;
and thermally updating the parameter value of the corresponding configuration parameter by using the parameter modification value to obtain a first target configuration parameter pair.
4. The applet security debugging method according to claim 3, characterized in that the method further comprises:
acquiring a plurality of historical system logs when other small programs run in error;
locating a plurality of problem points in the plurality of historical system logs;
extracting a plurality of key fields in the plurality of question points;
configuring a plurality of configuration parameters according to the plurality of key fields;
and responding to an instruction for opening the applet security debugging interface, and displaying the plurality of configuration parameters on the applet security debugging interface.
5. The applet security debugging method according to claim 3, characterized in that the method further comprises:
when the page refreshing of the small program is failed according to the first target configuration parameter, receiving a second configuration parameter modification instruction input by a user;
generating a second URL according to the prefix, the parameter password and the second configuration parameter modification instruction;
transmitting the second URL to the SDK through the host application, and performing thermal update on the second configuration parameter through the SDK according to the second URL to obtain a second target configuration parameter pair;
and refreshing the page of the applet according to the second target configuration parameter pair.
6. The applet security debugging method according to claim 3, characterized in that the method further comprises:
obtaining a refreshing result for refreshing the page of the small program;
the refreshing result and the corresponding target configuration parameters are stored in an associated mode;
calculating the number of target configuration parameters corresponding to the first refreshing result as the refreshing result;
and determining common problem points according to the number of the target configuration parameters.
7. The applet security debugging method according to claim 3, characterized in that the method further comprises:
responding to a starting instruction of the small program, and acquiring the updating time of the small program;
judging whether the small program needs to be updated according to the updating time;
and when the applet needs to be updated according to the updating time, downloading an updating package of the applet, and updating the applet according to the updating package when the applet is started next time.
8. An applet security debugging apparatus, comprising:
the bearing module is used for determining to bear host application operated by the small program when detecting that the small program operates in error;
the acquisition module is used for acquiring the prefix of the name of the host application and acquiring a preset parameter password;
the generating module is used for responding to a first configuration parameter modification instruction input by a user and generating a first URL according to the prefix, the parameter password and the first configuration parameter modification instruction;
the updating module is used for transmitting the first URL to the SDK through the host application and carrying out hot updating on the first configuration parameter through the SDK according to the first URL to obtain a first target configuration parameter pair;
and the refreshing module is used for refreshing the page of the applet according to the first target configuration parameter pair.
9. A mobile terminal, characterized in that it comprises a processor for implementing the applet security debugging method according to anyone of claims 1 to 7 when executing a computer program stored in a memory.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the applet security debugging method as claimed in any one of claims 1 to 7.
CN202011509998.XA 2020-12-18 2020-12-18 Applet safety debugging method and device, mobile terminal and storage medium Pending CN112527668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011509998.XA CN112527668A (en) 2020-12-18 2020-12-18 Applet safety debugging method and device, mobile terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011509998.XA CN112527668A (en) 2020-12-18 2020-12-18 Applet safety debugging method and device, mobile terminal and storage medium

Publications (1)

Publication Number Publication Date
CN112527668A true CN112527668A (en) 2021-03-19

Family

ID=75001568

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011509998.XA Pending CN112527668A (en) 2020-12-18 2020-12-18 Applet safety debugging method and device, mobile terminal and storage medium

Country Status (1)

Country Link
CN (1) CN112527668A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115390939A (en) * 2022-08-17 2022-11-25 中电金信软件有限公司 Service processing method and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115390939A (en) * 2022-08-17 2022-11-25 中电金信软件有限公司 Service processing method and system

Similar Documents

Publication Publication Date Title
CN112367246A (en) Message pushing method and device, electronic equipment and storage medium
CN112506559B (en) Gray release method and device based on gateway, electronic equipment and storage medium
CN112506779A (en) Software interface testing method and device, electronic equipment and storage medium
CN110708366A (en) Plug-in process management method, related method and related device
CN111654522A (en) File synchronization method, file synchronization server and storage medium
CN112256989A (en) Page loading method and device based on offline package, terminal equipment and storage medium
CN111949529A (en) System debugging method and device, computer equipment and storage medium
CN112948275A (en) Test data generation method, device, equipment and storage medium
CN112948723A (en) Interface calling method and device and related equipment
CN112527668A (en) Applet safety debugging method and device, mobile terminal and storage medium
CN114722437A (en) Cross-APP unique identifier generation method, device, equipment and storage medium
CN113434254B (en) Client deployment method, client deployment apparatus, computer device, and storage medium
CN110879701B (en) Workflow visual configuration method, server, system and medium
CN112579452A (en) Software automation test method, device, equipment and storage medium
CN114185502B (en) Log printing method, device, equipment and medium based on production line environment
CN113286014B (en) Dynamic configuration method and device of basic domain name and related equipment
CN112069078A (en) ESA interface pressure testing method, device, testing equipment and storage medium
CN110348984B (en) Automatic credit card data input method and related equipment under different transaction channels
CN112631551A (en) Random number generation method and device, electronic equipment and storage medium
CN112905470A (en) Interface calling method and device, computer equipment and medium
CN113986357A (en) Method, apparatus and storage medium for establishing communication link
CN113434847B (en) Privacy module processing method and device of application program, electronic equipment and medium
CN115756496B (en) Mirror image compiling method and device, computer readable storage medium and electronic equipment
CN113111047B (en) Data processing method and device and electronic equipment
CN112532721B (en) Cluster calling method and device, electronic equipment and storage medium

Legal Events

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