CN110244986B - Browser configuration method and device - Google Patents

Browser configuration method and device Download PDF

Info

Publication number
CN110244986B
CN110244986B CN201910422853.7A CN201910422853A CN110244986B CN 110244986 B CN110244986 B CN 110244986B CN 201910422853 A CN201910422853 A CN 201910422853A CN 110244986 B CN110244986 B CN 110244986B
Authority
CN
China
Prior art keywords
configuration
registry
browser
configuration command
modification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910422853.7A
Other languages
Chinese (zh)
Other versions
CN110244986A (en
Inventor
王明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank 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 Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN201910422853.7A priority Critical patent/CN110244986B/en
Publication of CN110244986A publication Critical patent/CN110244986A/en
Application granted granted Critical
Publication of CN110244986B publication Critical patent/CN110244986B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/958Organisation or management of web site content, e.g. publishing, maintaining pages or automatic linking
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Transfer Between Computers (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a browser configuration method and a browser configuration device, wherein the method comprises the following steps: obtaining a modification request for a browser, the modification request being used for requesting modification of at least one configuration of the browser; determining a registry configuration command set according to the modification request, wherein the registry configuration command set comprises one or more registry configuration commands; modifying a system registry corresponding to each registry configuration command according to each registry configuration command in the registry configuration command set; and generating a modification response when the system registry corresponding to each registry configuration command in the registry configuration command set is modified, wherein the modification response is used for indicating that the modification of the at least one configuration is completed. According to the technical scheme, the configuration of the browser can be manually modified by a user, the modification efficiency of the configuration of the browser is improved, and the user experience is improved.

Description

Browser configuration method and device
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a browser configuration method and device.
Background
The IE (Internet Explorer) browser is a web browser proposed by microsoft corporation, and in consideration of compatibility problems, user acceptance and support for various web controls, some service systems facing users are currently developed based on the characteristics of the IE browser, and these service systems may be, for example, office systems, examination systems, auditing systems, reporting systems, customer service systems, and the like.
The user can access these business systems and perform business operations related to the business systems on the business systems using the IE browser. Because the service system has different functions and roles, the user needs to configure the IE browser before performing the service operation related to the service system, so that the IE browser can support the service operation to be performed. For example, for some users to conduct business approval, the user needs to set phone controls, video scan controls, screen recording controls, etc., which need to be supported by the IE browser. Currently, for these configurations, a user who needs to perform a service operation performs the configuration according to a configuration document, and the user needs to perform the subsequent service operation after the configuration is successful, which is complicated in process.
Disclosure of Invention
The embodiment of the invention provides a browser configuration method and device, which solve the problem of low efficiency of manually modifying the browser configuration.
In a first aspect, a browser configuration method is provided, including:
obtaining a modification request for a browser, the modification request being used for requesting modification of at least one configuration of the browser;
determining a registry configuration command set according to the modification request, wherein the registry configuration command set comprises one or more registry configuration commands;
Modifying a system registry corresponding to each registry configuration command according to each registry configuration command in the registry configuration command set;
and generating a modification response when the system registry corresponding to each registry configuration command in the registry configuration command set is modified, wherein the modification response is used for indicating that the modification of the at least one configuration is completed.
In the technical scheme, a registry configuration command set is determined according to the acquired modification request aiming at the browser, a system registry corresponding to each registry configuration command is modified according to each registry configuration command in the registry configuration command set, and a modification response is generated under the condition that the system registry corresponding to each registry configuration command in the registry configuration command set is modified, so that a user knows that the current configuration modification aiming at the browser is successful. The configuration to be modified in the browser is determined by acquiring the modification request of the browser, the registry configuration commands corresponding to the configurations are formed into a registry configuration command set, and then the system registry is modified according to the registry configuration commands in the registry configuration command set, so that the configuration of the browser is modified, the configuration of the browser can be automatically modified, the configuration of the browser is omitted from being manually modified by a user, and the configuration modification efficiency of the browser is improved.
With reference to the first aspect, in a possible implementation manner, the modification request includes a configuration document, where the configuration document includes at least one configuration item, and each configuration item corresponds to a configuration in the browser; the determining a registry configuration command set according to the modification request comprises the following steps: determining registry configuration commands corresponding to the at least one configuration item according to the corresponding relation between the configuration items and the registry configuration commands; and combining the registry configuration commands corresponding to the at least one configuration item respectively into a registry configuration command set. By establishing the corresponding relation between the configuration items and the registry configuration commands, the registry configuration commands can be conveniently and quickly determined according to the corresponding relation between the configuration items and the registry configuration commands.
With reference to the first aspect, in a possible implementation manner, the combining the registry configuration commands corresponding to the at least one configuration item into a registry configuration command set includes: determining the execution sequence of the registry configuration commands corresponding to the at least one configuration item according to the sequence of the at least one configuration item in the configuration document; and combining the registry configuration commands corresponding to the at least one configuration item into a registry configuration command set in sequence according to the execution sequence of the registry configuration commands corresponding to the at least one configuration item. Determining the order of the registry configuration commands in the registry configuration command set according to the order of the configuration items in the configuration document, thereby determining the execution order of the registry configuration commands.
With reference to the first aspect, in a possible implementation manner, the modification request includes a target service system identifier, where the target service system identifier is an identifier of a service system currently running on the browser; the determining a registry configuration command set according to the modification request comprises the following steps: determining a registry configuration command set identifier corresponding to the target service system identifier according to the corresponding relation between the service system identifier and the registry configuration command set identifier; and determining a registry configuration command set corresponding to the registry configuration command set identifier. By establishing the corresponding relation between the service system identifier and the registry configuration command identifier, the registry configuration command set identifier is conveniently and rapidly determined according to the corresponding relation between the service system identifier and the registry configuration command identifier, so that the registry configuration command set corresponding to the registry configuration command set identifier is determined.
With reference to the first aspect, in a possible implementation manner, before the generating the modification response, the method further includes: and re-executing the target registry configuration command under the condition that the target registry configuration command in the registry configuration command set is detected to be abnormal in execution, so as to modify the system registry corresponding to the target registry configuration command. By re-executing and executing the abnormal target registry configuration command, the system registry corresponding to the target registry configuration command can be quickly modified.
With reference to the first aspect, in a possible implementation manner, before the re-executing the target registry configuration command, the method further includes: detecting the reason of the abnormal execution of the target registry configuration command; generating a modification abnormality prompt for indicating the human cause when the cause is the human cause; and executing the step of re-executing the target registry configuration command if the cause is not the human cause. By generating the modification abnormality prompt, a user can modify the cause of the abnormality according to the modification abnormality prompt, and the configuration modification accuracy and efficiency of the browser are improved.
With reference to the first aspect, in one possible implementation manner, after the generating the modification exception prompt, the method further includes: and in the case that the disappearance of the human cause is detected, executing the step of re-executing the target registry configuration command.
In a second aspect, there is provided a browser configuration apparatus comprising:
a request acquisition module, configured to acquire a modification request for a browser, where the modification request is used to request modification of at least one configuration of the browser;
A command set determining module configured to determine a registry configuration command set according to the modification request, where the registry configuration command set includes one or more registry configuration commands;
the modification module is used for modifying the system registry corresponding to each registry configuration command according to each registry configuration command in the registry configuration command set;
and the response module is used for generating a modification response when the system registry corresponding to each registry configuration command in the registry configuration command set is modified, wherein the modification response is used for indicating that the modification of the at least one configuration is completed.
In a third aspect, there is provided another browser configuration device comprising a processor, a memory and an input-output interface, the processor, memory and input-output interface being interconnected, wherein the input-output interface is for receiving or transmitting data, the memory is for storing application program code for performing the above method by the browser configuration device, and the processor is configured for performing the above method of the first aspect.
In a fourth aspect, there is provided a computer storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of the first aspect described above.
In the technical scheme, when the registry configuration command is detected to execute the abnormality, the abnormality cause is detected, the corresponding abnormality prompt is generated when the abnormality cause is detected to be the artificial cause, so that a user carries out abnormal modification according to the prompt, and when the abnormality is detected to disappear, the registry configuration command which is not executed is continuously executed, thereby realizing the modification of the system registry, avoiding time waste caused by detecting each configuration item under the condition that the user does not know the abnormality is caused by the error operation by generating the abnormality prompt when the abnormality cause is the artificial cause, and improving the modification efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a browser configuration method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another browser configuration method according to an embodiment of the present invention;
FIG. 3 is a flowchart illustrating another browser configuration method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a composition structure of a browser configuration device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a composition structure of another browser configuration apparatus according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The scheme of the embodiment of the invention is suitable for modifying the configuration in the browser so that the user can better use each service operation in the service system. For example, in a business system for handling business in a hall on line using a housing in XX region and a hall for urban and rural construction, an auditing user needs to configure a browser as follows: setting IP1 as a trusted site, allowing to run an ActiveX control, setting file downloading as starting, closing a pop-up window blocking program, and enabling an auditing user to normally use service operation in the service system under the condition that the auditing user performs the four configurations on the browser.
The following describes a technical solution for implementing the above scenario.
Referring to fig. 1, fig. 1 is a flowchart of a browser configuration method according to an embodiment of the present invention, as shown in the drawing, the method includes:
s101, the user terminal acquires a modification request aiming at the browser, wherein the modification request is used for requesting to modify at least one configuration of the browser.
Here, the user terminal is a terminal that can configure a browser and is held by a user, and the user terminal may be a mobile phone, a computer, a tablet computer, or the like. The user terminal may obtain the modification request for the browser through an application running or installed on the user terminal for configuring the browser.
In a first possible design, the application may identify a configuration document uploaded by a user for an upload page of the application, thereby configuring the browser according to configuration items in the identified configuration document. After the user uploads the configuration document, the user terminal obtains a modification request for the browser, wherein the modification request comprises the configuration document.
The configuration document may include at least one configuration item, each configuration item corresponding to a configuration in one of the browsers. The configuration document is an indicative document capable of instructing a user to make a certain configuration of the browser. For example, the configuration document may be an indicative document for instructing a user to set the browser to a compatible mode; alternatively, the configuration document may be an executive document for instructing the user to set the IP site as a trusted site; alternatively, the configuration document may be one that instructs the user to set the browser's properties to allow the ActiveX control to run, and so on. The content of the configuration document is different according to the business operation to be performed.
In a second possible design, the application may configure the browser based on the user selected configuration document identification. The application program can display the configuration document identification, and after the user selects the target configuration document identification on the configuration document identification display page corresponding to the application program, the user terminal obtains a modification request aiming at the browser, wherein the modification request comprises the target configuration document identification.
Here, the target profile identification is used to uniquely indicate the target profile. The target profile is the profile currently selected by the user. Specifically, the target profile identification may be identified as a name full name of the target profile or a name abbreviation of the target profile, etc. For example, a plurality of profile identifications may be displayed in the application, which may be the name of the profile, the number of the profile, and an icon for identifying the profile, etc.
In a third possible design, the application may configure the browser based on the user selected business system identification. The application program can display the service system identifier, and after the user selects the target service system identifier on the service system identifier display page corresponding to the application program, the user terminal obtains a modification request aiming at the browser, wherein the modification request comprises the target service system identifier.
Here, the target service system identification is used to uniquely indicate the target service system. The target service system is the service system currently selected by the user, namely the service system currently running on the browser corresponding to the user terminal. For example, business systems include office systems, examination systems, auditing systems, etc., which are targeted business systems when the auditing system is selected by the user. When a user uses the auditing system, the configuration of the browser needs to be modified aiming at the auditing system, and the configuration of the browser is modified to realize normal business operation in the auditing system. The target business system identification is an identification of the business system currently running on the browser. Specifically, the target service system identifier may be an identifier such as a name full name of the target service system or a name abbreviation of the target service system.
S102, the user terminal determines a registry configuration command set according to the modification request aiming at the browser, wherein the registry configuration command set comprises one or more registry configuration commands.
If the application program is of the first design, the user terminal can identify the configuration items in the configuration document through the application program, then determine the registry configuration commands corresponding to at least one configuration item respectively according to the corresponding relation between the configuration items and the registry configuration commands, and combine the registry configuration commands corresponding to at least one configuration item respectively into a registry configuration command set.
In a specific implementation, a registry configuration command may be set in advance for each configuration item in the browser, and a correspondence between the registry configuration command and the configuration item may be established, and then the registry configuration command and the correspondence between the registry configuration command and the configuration item may be stored in the application program for configuring the browser.
Here, the set of registry configuration commands may exist in the form of a program script, and each registry configuration command in the set of registry configuration commands is a computer instruction that may be used to adjust the name and value of the system registry in the operating system to effect modification of the configuration in the browser.
Optionally, the user terminal may further determine an execution order of the registry configuration commands corresponding to the at least one configuration item according to an order of the at least one configuration item in the configuration document, and sequentially combine the registry configuration commands corresponding to the at least one configuration item into the registry configuration command set according to the execution order of the registry configuration commands corresponding to the at least one configuration item.
For example, there are four configuration items in the configuration document, namely, configuration item 1, configuration item 2, configuration item 3, and configuration item 4, the order of the four configuration items in the configuration document is configuration item 1, configuration item 2, configuration item 3, and configuration item 4 in turn, and the registry configuration command corresponding to configuration item 1 is registry configuration command 1, the registry configuration command corresponding to configuration item 2 is registry configuration command 2, the registry configuration command corresponding to configuration item 3 is registry configuration command 3, and the registry configuration command corresponding to configuration item 4 is registry configuration command 4; the execution order of the registry configuration commands is registry configuration command 1, registry configuration command 2, registry configuration command 3, registry configuration command 4 in order. That is, the registry configuration command 2 can be executed after the registry configuration command 1 is executed, the registry configuration command 3 can be executed after the registry configuration command 2 is executed, and the registry configuration command 4 can be executed after the registry configuration command 3 is executed. The registry configuration command set includes a registry configuration command 1, a registry configuration command 2, a registry configuration command 3, and a registry configuration command 4, and the order of the four commands is a registry configuration command 1, a registry configuration command 2, a registry configuration command 3, and a registry configuration command 4 in order.
If the application program is of the second design, the user terminal can determine the target configuration document identification through a selection instruction of a user on a configuration document identification display page corresponding to the application program, then determine a registry configuration command set identification corresponding to the target configuration document identification according to the corresponding relation between the configuration document identification and the registry configuration command set identification, and determine a registry configuration command set corresponding to the registry configuration command set identification.
In a specific implementation, a correspondence between the configuration document identifier and the registry configuration command set identifier may be established, and then the registry configuration command set identifier and the correspondence between the registry configuration command set identifier and the configuration document identifier may be stored in the application program for configuring the browser.
If the application program is of the third design, the user terminal can determine the target service system identifier through a selection instruction of the user on the service system identifier display page corresponding to the application program, then determine the registry configuration command set identifier corresponding to the target service system identifier according to the corresponding relation between the service system identifier and the registry configuration command set identifier, and determine the registry configuration command set corresponding to the registry configuration command set identifier.
Here, the registry configuration command set identifier may be an identifier for uniquely indicating the registry configuration command set, such as a name, a number, or the like of the registry command set.
In a specific implementation, a correspondence between the service system identifier and the registry configuration command set identifier may be established, and then the registry configuration command set identifier and the correspondence between the registry configuration command set identifier and the service system identifier are stored in the application program for configuring the browser.
S103, the user terminal modifies the system registry corresponding to each registry configuration command according to each registry configuration command in the registry configuration command set.
Here, the system registry is a core database in the operating system, and various parameters for controlling the starting of the operating system, the loading of the hardware driver, and the running of the application programs in some operating systems are stored in the system registry, so that the configuration of the browser can be modified by modifying the name and the value of the system registry.
Here, there may be two cases where the user terminal modifies the system registry corresponding to each registry configuration command:
in the first case, under the condition that the execution sequence exists in each registry configuration command in the registry configuration command set, the user terminal sequentially executes each registry configuration command in the registry configuration command set in sequence, thereby realizing the sequential modification of the system registries corresponding to each registry configuration command.
For example, the registry configuration command set includes 4 registry configuration commands, which are respectively registry configuration command 1 to registry configuration command 4, and the order of the four registry configuration commands in the registry configuration command set is registry configuration command 1, registry configuration command 2, registry configuration command 3, and registry configuration command 4 in turn, and then the execution order of each registry configuration command is registry configuration command 1, registry configuration command 2, registry configuration command 3, and registry configuration command 4 in turn, that is, the registry configuration command 2 can be executed after the registry configuration command 1 is executed, the registry configuration command 3 can be executed after the registry configuration command 2 is executed, and the registry configuration command 4 can be executed after the registry configuration command 3 is executed, thereby sequentially modifying the system registries 1 to 4 corresponding to the registry configuration command 1 to the registry configuration command 4 in order.
In the second case, in the case that the execution order of each registry configuration command in the registry configuration command set does not exist, the user terminal executes each registry configuration command in the registry configuration command set, thereby implementing modification of the system registry corresponding to each registry configuration command.
For example, the registry configuration command set includes 4 registry configuration commands, which are respectively registry configuration command 1 to registry configuration command 4, and the order of executing the registry configuration commands in the registry configuration command set may be registry configuration command 1, registry configuration command 2, registry configuration command 3, registry configuration command 4, registry configuration command 2, registry configuration command 3, registry configuration command 1, registry configuration command 4, registry configuration command 3, registry configuration command 1, registry configuration command 2, registry configuration command 4, or the like, thereby implementing modification of the system registries corresponding to the registry configuration commands 1 to 4.
S104, the user terminal generates a modification response under the condition that the system registry corresponding to each registry configuration command in the registry configuration command set is modified, wherein the modification response is used for indicating that the modification of at least one configuration is completed.
Here, the modification response is a response to the user, i.e., the effect of the modification response is to prompt the user that the system registry corresponding to each registry configuration command in the current registry configuration command set has been modified. For example, the user terminal may respond by displaying "configuration successful" on the page, may respond by prompting "configuration successful" by voice, etc., which is not limited herein.
In the embodiment of the invention, the user terminal determines the configuration to be modified in each service system by acquiring the modification request of the browser, for example, acquiring the configuration item corresponding to the configuration document or the service system identifier corresponding to the service system, the user terminal composes the registry configuration command corresponding to each configuration into a registry configuration command set, and then modifies the system registry according to each registry configuration command in the registry configuration command set, thereby completing the modification of the configuration of the browser, realizing the automatic modification of the configuration of the browser, omitting the manual modification of the configuration of the browser by a user and improving the modification efficiency of the configuration of the browser.
In some possible embodiments, after the configuration document is obtained, identifying content in the configuration document is further included to determine each configuration item in the configuration document. Referring to fig. 2, fig. 2 is a flowchart of another browser configuration method according to an embodiment of the present invention, as shown in the figure, the method includes the following steps:
s201, the user terminal acquires a modification request aiming at the browser, wherein the modification request comprises a configuration document.
Here, the case where the user terminal obtains the modification may refer to the description corresponding to the first design in step S101, which is not repeated here.
S202, the user terminal identifies the configuration document to determine at least one configuration item in the configuration document.
Here, the manner in which the user terminal identifies the configuration document to determine the configuration item may include the following two manners:
in the first way, the user terminal may identify the format of the configuration document, and after identifying a specific format in the configuration document, such as "1", "2", "3", "4", "… …" and "1", "2", "3", "… …, respectively. "when, the configuration document contents from" 1 "to" 2 "before are determined as one configuration item, the configuration document contents from" 2 "to" 3 "before are determined as one configuration item, the configuration document contents from" 3 "to" 4 "before are determined as one configuration item, … …, whereby each configuration item in the configuration document may be determined.
For example, the content in the configuration document includes: and 1, setting the mode of the browser to be a monitoring mode. 2. IP1 is set as a put-through site. 3. IP2 is set as a put-through site. 4. Allowing the ActiveX control to run. The user terminal determines that the configuration item 1 is "set the mode of the browser to the monitoring mode", the configuration item 2 is "set the IP1 to the available site", the configuration item 3 is "set the IP2 to the available site", and the configuration item 4 is "allow operation of the ActiveX control".
In the second way, the user terminal can identify the keywords in the configuration document, and the user terminal identifies the keywords in the configuration document, such as "ActiveX", "IP2", "monitoring mode", "IP1" and punctuation marks. ","; "etc., dividing the configuration document content containing the keywords between two punctuation marks into small document contents, and determining each small document content containing the keywords as one configuration item.
For example, the content in the configuration document includes: "set the mode of the browser to monitor mode; IP1 is set as a put-through site. Setting IP2 as a site capable of being put through; allowing the ActiveX control to run. Dividing the content in the configuration document into 4 small-section document contents by the user terminal, namely setting the mode of the browser as a monitoring mode, setting the IP1 as a site which can be put through, setting the IP2 as a site which can be put through, allowing an ActiveX control to run, determining the small-section document content corresponding to the small-section document content containing the keyword as the monitoring mode as a configuration item 1, and determining that the configuration item 1 is the mode of the browser as the monitoring mode; determining the content of a small document corresponding to the keyword IP1 as a configuration item 2, and determining the configuration item 2 as a site capable of setting IP1 to be put through; determining the content of a small section of document corresponding to the keyword of IP2 as a configuration project 3, and determining the configuration document 3 as a site capable of setting IP2 to be put through; and determining the content of the small section document corresponding to the keyword "ActiveX" as the configuration item 4, and determining the configuration document 4 as "allowed to run ActiveX control".
S203, the user terminal determines the registry configuration command corresponding to at least one configuration item according to the corresponding relation between the configuration item and the registry configuration command.
S204, the user terminal combines the registry configuration commands corresponding to the at least one configuration item respectively into a registry configuration command set.
Here, the specific implementation manner of steps S203 to S204 may refer to the description in step S102, and will not be repeated here.
In the embodiment of the invention, the user terminal identifies the acquired configuration document, determines each configuration item in the configuration document according to the configuration document format or the keywords in the configuration document, thereby determining the configuration required by the browser corresponding to each service system, and under the condition that the user opens any service system, the user terminal can also determine the configuration item in the configuration document according to the configuration document format in the configuration document or the keywords in the configuration document, thereby determining the configuration item corresponding to the current service system, determining the registry configuration command set corresponding to the configuration item, and realizing the modification of the system registry corresponding to the registry configuration command set, thereby realizing the service operation in the normal service system.
In some possible implementations, before generating the modification response, further comprising re-executing the target registry configuration command in the set of registry configuration commands if an exception is detected to execute the target registry configuration command. Referring to fig. 3, fig. 3 is a flowchart of another browser configuration method according to an embodiment of the present invention, as shown in the drawing, the method includes:
s301, the user terminal acquires a modification request for the browser, wherein the modification request for the browser is used for requesting to modify at least one configuration of the browser.
S302, the user terminal determines a registry configuration command set according to the modification request for the browser, wherein the registry configuration command set comprises one or more registry configuration commands.
S303, the user terminal modifies the system registry corresponding to each registry configuration command according to each registry configuration command in the registry configuration command set.
Here, the specific implementation manner of steps S301 to S303 may refer to descriptions of steps S101 to S103 in the corresponding embodiment of fig. 1, which are not repeated herein.
S304, the user terminal detects the reason of the abnormal execution of the target registry configuration command under the condition that the abnormal execution of the target registry configuration command in the registry configuration command set is detected.
Here, the target registry configuration command is a registry configuration command in which an exception is executed in the registry configuration command set.
S305, the user terminal executes step S308 when detecting that the cause of the abnormal execution of the target registry configuration command is not artificial.
Here, the reason for the abnormality in execution of the target registry configuration command may be that when the system registry corresponding to each registry configuration command is modified according to each registry configuration command in the registry configuration command set, the terminal suddenly fails when the system registry corresponding to the registry configuration command is not modified, and step S308 is performed after the failure is removed. For example, when the terminal is re-operated and enters the service system used before the power-off, for example, due to the sudden power-off and power-off of the terminal, step S308 is performed.
S306, when the user terminal detects that the reason of the abnormal execution of the target registry configuration command is the artificial reason, generating a modification abnormal prompt, wherein the modification abnormal prompt is used for indicating that the reason of the abnormal execution of the target registry configuration command is the artificial reason.
Here, the human cause may cause the target registry configuration command execution abnormality for the user to operate the terminal by mistake. For example, when the operation of the ActiveX control needs to be allowed in the service system, other security software on the user terminal, such as XX antivirus software, sets the ActiveX control to be prohibited from operating, and the corresponding modification exception prompt may be that "XX antivirus software is prohibited from operating the ActiveX control" is displayed through a page, and the modification exception prompt may also be that "XX antivirus software is prohibited from operating the ActiveX control" is prompted through voice. The human cause may also be the absence of an ActiveX control on the user terminal. If the user has deleted the ActiveX control on the terminal, the corresponding modification anomaly prompt can be to display "the current device does not install the ActiveX control" through the page, and the modification anomaly prompt can also be to prompt "the current device does not install the ActiveX control" through voice, and so on.
S307, the user terminal executes step S308 when detecting that the human factor has disappeared.
Here, the artificial cause may be as shown in step S306, and the disappearance of the artificial cause may be that after the user reinstalls the ActiveX control or sets the XX antivirus software to allow the operation of the ActiveX control according to the indication of modifying the abnormal prompt, the detection of the disappearance of the artificial cause is indicated when the current ActiveX control is detected to be normal.
S308, the user terminal re-executes the target registry configuration command to modify the system registry corresponding to the target registry configuration command.
S309, the user terminal generates a modification response for indicating that the modification of at least one configuration is completed in the case of modifying the system registry corresponding to each registry configuration command in the registry configuration command set.
Here, the specific implementation manner may be referred to the description of step S104, which is not repeated here.
In the embodiment of the invention, the user terminal determines the configuration to be modified in each service system by acquiring the modification request of the browser, for example, acquiring the configuration item corresponding to the configuration document or the service system identifier corresponding to the service system, and forms the registry configuration command corresponding to each configuration into a registry configuration command set, and then modifies the system registry according to each registry configuration command in the registry configuration command set, thereby completing the modification of the configuration of the browser, realizing the automatic modification of the configuration of the browser, omitting the manual modification of the configuration of the browser by the user and improving the user experience; when the registry configuration command is detected to be abnormal, the abnormal reason is detected, a corresponding abnormal prompt is generated when the abnormal reason is detected to be the artificial reason, so that a user carries out abnormal modification according to the prompt, and when the abnormal disappearance is detected, the registry configuration command which is not executed is continuously executed, thereby realizing the modification of the registry of the system, avoiding time waste caused by detecting each configuration item when the user does not know that the configuration item is operated by mistake when the abnormal reason is the artificial reason, and improving the modification efficiency.
The method of the embodiment of the invention is described above, and the apparatus of the embodiment of the invention is described below.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a browser configuration device according to an embodiment of the present invention, where the browser configuration device may be a user terminal or a part of a user terminal, and the device includes:
a request acquisition module 401, configured to acquire a modification request for a browser, where the modification request is used to request modification of at least one configuration of the browser;
a command set determining module 402, configured to determine a registry configuration command set according to the modification request, where the registry configuration command set includes one or more registry configuration commands;
a modifying module 403, configured to modify a system registry corresponding to each registry configuration command according to each registry configuration command in the registry configuration command set;
and a response module 404, configured to generate a modification response, where the system registry corresponding to each registry configuration command in the registry configuration command set is modified, where the modification response is used to indicate that modification of the at least one configuration is completed.
In one possible design, the modification request includes a configuration document including at least one configuration item, each configuration item corresponding to a configuration in the browser; the command set determining module 402 is specifically configured to:
Determining registry configuration commands corresponding to the at least one configuration item according to the corresponding relation between the configuration items and the registry configuration commands;
and combining the registry configuration commands corresponding to the at least one configuration item respectively into a registry configuration command set.
In one possible design, the command set determination module 402 is specifically configured to:
determining the execution sequence of the registry configuration commands corresponding to the at least one configuration item according to the sequence of the at least one configuration item in the configuration document;
and combining the registry configuration commands corresponding to the at least one configuration item into a registry configuration command set in sequence according to the execution sequence of the registry configuration commands corresponding to the at least one configuration item.
In one possible design, the modification request includes a target business system identification, which is an identification of a business system currently running on the browser; the command set determining module 402 is specifically configured to:
determining a registry configuration command set identifier corresponding to the target service system identifier according to the corresponding relation between the service system identifier and the registry configuration command set identifier;
And determining a registry configuration command set corresponding to the registry configuration command set identifier.
In one possible design, the apparatus further comprises:
and the exception modifying module 405 is configured to re-execute the target registry configuration command to modify the system registry corresponding to the target registry configuration command when detecting that the target registry configuration command in the registry configuration command set is abnormal.
In one possible design, the apparatus further comprises:
the anomaly display module 406 is specifically configured to: detecting the reason of the abnormal execution of the target registry configuration command;
generating a modification abnormality prompt for indicating the human cause when the cause is the human cause;
and executing the step of re-executing the target registry configuration command if the cause is not the human cause.
In one possible design, the apparatus further comprises:
an exception clearing module 407, configured to execute the step of re-executing the target registry configuration command if the artifact is detected to disappear.
It should be noted that, in the embodiment corresponding to fig. 4, the content not mentioned may be referred to the description of the method embodiment, and will not be repeated here.
In the embodiment of the invention, the browser configuration device determines the configuration to be modified in each service system by acquiring the modification request of the browser, for example, acquiring the configuration item corresponding to the configuration document or the service system identifier corresponding to the service system, and forms the registry configuration command corresponding to each configuration into a registry configuration command set, and then modifies the system registry according to each registry configuration command in the registry configuration command set, thereby completing the modification of the configuration of the browser, realizing the automatic modification of the configuration of the browser, omitting the manual modification of the configuration of the browser by a user and improving the user experience; when the registry configuration command is detected to be abnormal, the abnormal reason is detected, a corresponding abnormal prompt is generated when the abnormal reason is detected to be the artificial reason, so that a user carries out abnormal modification according to the prompt, and when the abnormal disappearance is detected, the registry configuration command which is not executed is continuously executed, thereby realizing the modification of the registry of the system, avoiding time waste caused by detecting each configuration item when the user does not know that the configuration item is operated by mistake when the abnormal reason is the artificial reason, and improving the modification efficiency.
Referring to fig. 5, fig. 5 is a schematic diagram illustrating the composition of another browser configuration device according to an embodiment of the present invention, where the browser configuration device may be a user terminal or a part of a user terminal, and the device includes a processor 501, a memory 502, and an input/output interface 503. The processor 501 is connected to the memory 502 and the input-output interface 503, for example, the processor 501 may be connected to the memory 502 and the input-output interface 503 through a bus.
The processor 501 is configured to support the browser configuration means to perform the corresponding functions of the browser configuration method described in fig. 1-3. The processor 501 may be a central processing unit (central processing unit, CPU), a network processor (network processor, NP), a hardware chip or any combination thereof. The hardware chip may be an application specific integrated circuit (application specific integrated circuit, ASIC), a programmable logic device (programmable logic device, PLD), or a combination thereof. The PLD may be a complex programmable logic device (complex programmable logic device, CPLD), a field-programmable gate array (field-programmable gate array, FPGA), general-purpose array logic (generic array logic, GAL), or any combination thereof.
The memory 502 stores program codes and the like. The memory 502 may include Volatile Memory (VM), such as random access memory (random access memory, RAM); the memory 502 may also include a non-volatile memory (NVM), such as read-only memory (ROM), flash memory (flash memory), hard disk (HDD) or Solid State Drive (SSD); memory 502 may also include a combination of the types of memory described above.
The input/output interface 503 is used to input or output data.
The processor 501 may call the program code to:
obtaining a modification request for a browser, the modification request being used for requesting modification of at least one configuration of the browser;
determining a registry configuration command set according to the modification request, wherein the registry configuration command set comprises one or more registry configuration commands;
modifying a system registry corresponding to each registry configuration command according to each registry configuration command in the registry configuration command set;
and generating a modification response when the system registry corresponding to each registry configuration command in the registry configuration command set is modified, wherein the modification response is used for indicating that the modification of the at least one configuration is completed.
It should be noted that, implementation of each operation may also correspond to the corresponding description referring to the above method embodiment; the processor 501 may also cooperate with the input-output interface 503 to perform other operations in the method embodiments described above.
Embodiments of the present invention also provide a computer storage medium storing a computer program comprising program instructions which, when executed by a computer, cause the computer to perform a method as described in the previous embodiments, the computer being part of a browser configuration apparatus as mentioned above. Such as the processor 501 described above.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in the embodiments may be accomplished by computer programs stored in a computer-readable storage medium, which when executed, may include the steps of the embodiments of the methods described above. Wherein the storage medium can be a magnetic disk, an optical disk, a ROM or a RAM, etc.
The foregoing disclosure is illustrative of the present invention and is not to be construed as limiting the scope of the invention, which is defined by the appended claims.

Claims (10)

1. A browser configuration method, comprising:
acquiring a modification request for a browser through an application program running on a user terminal and used for configuring the browser, wherein the modification request is used for requesting to modify at least one configuration of the browser, the application program is used for identifying a configuration document uploaded by a user for an uploading page of the application program and configuring the browser according to configuration items in the identified configuration document, the application program is also used for configuring the browser according to a configuration document identifier selected by the user, and the application program is also used for configuring the browser according to a service system identifier selected by the user, wherein the modification request comprises one of the configuration document, a target configuration document identifier and a target service system identifier;
determining a registry configuration command set according to the modification request, wherein the registry configuration command set comprises one or more registry configuration commands;
modifying a system registry corresponding to each registry configuration command according to each registry configuration command in the registry configuration command set;
and generating a modification response when the system registry corresponding to each registry configuration command in the registry configuration command set is modified, wherein the modification response is used for indicating that the modification of the at least one configuration is completed.
2. The method of claim 1, wherein the modification request comprises a configuration document, the configuration document comprising at least one configuration item, each configuration item corresponding to a configuration in one of the browsers;
the determining a registry configuration command set according to the modification request comprises the following steps:
determining registry configuration commands corresponding to the at least one configuration item according to the corresponding relation between the configuration items and the registry configuration commands;
and combining the registry configuration commands corresponding to the at least one configuration item respectively into a registry configuration command set.
3. The method of claim 2, wherein the combining the registry configuration commands for each of the at least one configuration item into a registry configuration command set comprises:
determining the execution sequence of the registry configuration commands corresponding to the at least one configuration item according to the sequence of the at least one configuration item in the configuration document;
and combining the registry configuration commands corresponding to the at least one configuration item into a registry configuration command set in sequence according to the execution sequence of the registry configuration commands corresponding to the at least one configuration item.
4. The method of claim 1, wherein the modification request includes a target business system identification, the target business system identification being an identification of a business system currently running on the browser;
the determining a registry configuration command set according to the modification request comprises the following steps:
determining a registry configuration command set identifier corresponding to the target service system identifier according to the corresponding relation between the service system identifier and the registry configuration command set identifier;
and determining a registry configuration command set corresponding to the registry configuration command set identifier.
5. The method of claim 1, wherein prior to generating the modification response, further comprising:
and re-executing the target registry configuration command under the condition that the target registry configuration command in the registry configuration command set is detected to be abnormal in execution, so as to modify the system registry corresponding to the target registry configuration command.
6. The method of claim 5, wherein prior to re-executing the target registry configuration command, further comprising:
detecting the reason of the abnormal execution of the target registry configuration command;
Generating a modification abnormality prompt for indicating the human cause when the cause is the human cause;
and executing the step of re-executing the target registry configuration command if the cause is not the human cause.
7. The method of claim 6, further comprising, after generating the modified exception prompt:
and in the case that the disappearance of the human cause is detected, executing the step of re-executing the target registry configuration command.
8. A browser configuration apparatus, comprising:
a request acquisition module, configured to acquire a modification request for a browser through an application program running on a user terminal and configured to configure the browser, where the modification request is used to request modification of at least one configuration of the browser, the application program is configured to identify a configuration document uploaded by a user for an upload page of the application program and configure the browser according to a configuration item in the identified configuration document, the application program is further configured to configure the browser according to a configuration document identifier selected by the user, and the application program is further configured to configure the browser according to a service system identifier selected by the user, where the modification request includes one of a configuration document, a target configuration document identifier, and a target service system identifier;
A command set determining module configured to determine a registry configuration command set according to the modification request, where the registry configuration command set includes one or more registry configuration commands;
the modification module is used for modifying the system registry corresponding to each registry configuration command according to each registry configuration command in the registry configuration command set;
and the response module is used for generating a modification response when the system registry corresponding to each registry configuration command in the registry configuration command set is modified, wherein the modification response is used for indicating that the modification of the at least one configuration is completed.
9. A browser configuration device comprising a processor, a memory and an input-output interface, the processor, memory and input-output interface being interconnected, wherein the input-output interface is for receiving or transmitting data, the memory is for storing program code, and the processor is for invoking the program code to perform the method of any of claims 1-7.
10. A computer storage medium storing a computer program comprising program instructions which, when executed by a processor, cause the processor to perform the method of any of claims 1-7.
CN201910422853.7A 2019-05-20 2019-05-20 Browser configuration method and device Active CN110244986B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910422853.7A CN110244986B (en) 2019-05-20 2019-05-20 Browser configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910422853.7A CN110244986B (en) 2019-05-20 2019-05-20 Browser configuration method and device

Publications (2)

Publication Number Publication Date
CN110244986A CN110244986A (en) 2019-09-17
CN110244986B true CN110244986B (en) 2023-12-08

Family

ID=67884654

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910422853.7A Active CN110244986B (en) 2019-05-20 2019-05-20 Browser configuration method and device

Country Status (1)

Country Link
CN (1) CN110244986B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306725A (en) * 2020-09-11 2021-02-02 神州融安科技(北京)有限公司 Program repair method and device, electronic equipment and computer readable storage medium
CN112153244B (en) * 2020-09-25 2022-11-29 北京格非科技股份有限公司 Studio making business process management control method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002003255A2 (en) * 2000-06-30 2002-01-10 Electronic Marketing Technologies Configurable browser system
CN101299682A (en) * 2008-06-17 2008-11-05 腾讯科技(深圳)有限公司 Method for implementing browser collocation, apparatus as well as browser system
CN101729594A (en) * 2009-11-10 2010-06-09 中兴通讯股份有限公司 Remote configuration control method and system
US8214744B1 (en) * 2008-03-31 2012-07-03 Emc Corporation Integrated device interface using multiple web servers
CN103365694A (en) * 2013-07-31 2013-10-23 北京金和软件股份有限公司 Method for setting IE (internet explorer) environment during primary operation of B/S (browser/server) system
CN106888247A (en) * 2016-12-26 2017-06-23 沈阳通用软件有限公司 A kind of unified terminal IE configurations and the method for protection

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002003255A2 (en) * 2000-06-30 2002-01-10 Electronic Marketing Technologies Configurable browser system
US8214744B1 (en) * 2008-03-31 2012-07-03 Emc Corporation Integrated device interface using multiple web servers
CN101299682A (en) * 2008-06-17 2008-11-05 腾讯科技(深圳)有限公司 Method for implementing browser collocation, apparatus as well as browser system
CN101729594A (en) * 2009-11-10 2010-06-09 中兴通讯股份有限公司 Remote configuration control method and system
CN103365694A (en) * 2013-07-31 2013-10-23 北京金和软件股份有限公司 Method for setting IE (internet explorer) environment during primary operation of B/S (browser/server) system
CN106888247A (en) * 2016-12-26 2017-06-23 沈阳通用软件有限公司 A kind of unified terminal IE configurations and the method for protection

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
计算机安全检测与评估系统的设计与实现;刘意先 等;《电脑知识与技术》;第10卷(第17期);第4034-4037页 *

Also Published As

Publication number Publication date
CN110244986A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
US8171406B1 (en) Automating user interface navigation
CN106897095B (en) Method and device for hot repairing application program, readable storage medium and computing equipment
CN106951335B (en) Process daemon method and mobile terminal
US20100031248A1 (en) Installation Sequence Manager
CN111026645A (en) User interface automatic testing method and device, storage medium and electronic equipment
CN111506318A (en) Circuit board chip burning method, device, terminal and computer readable storage medium
CN110244986B (en) Browser configuration method and device
CN110908702A (en) Version switching method, version switching device, computer equipment and storage medium
CN104156305A (en) Application program testing method and device
KR101252358B1 (en) Apparatus and method for testing plc command
CN113094251A (en) Embedded system testing method and device, computer equipment and storage medium
CN111427738B (en) Display method, application monitoring module, byte code enhancement module and display system
CN110333964A (en) Abnormal log processing method and processing device, electronic equipment, storage medium
US20090094614A1 (en) Direct synchronous input
CN106130815B (en) Board level testing method and device
CN105278993B (en) A kind of drive module upgrade method and device based on linux system
EP3321808A1 (en) Verification system and verification method
CN112558982A (en) Code detection method and device and computer equipment
CN110764792B (en) Application program installation method, device, equipment and storage medium
US11714744B2 (en) System and method for diagnosing a computing device in safe mode
CN109802846A (en) USB Key certificate environment detection method and device
CN117349166A (en) Automatic test method, device, equipment and medium for mobile terminal JSAPI interface
CN108881585B (en) Built-in application program test processing method and device, electronic equipment and storage medium
CN113868128B (en) Method and device for testing PXE (PCI express) guide function and storage medium
US20120054776A1 (en) Network device and method for setting parameters of the network device

Legal Events

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