Automatic compiling method and device based on webpage interaction
By using a web-based interactive automatic compilation method, and leveraging multi-factor authentication and a permission matrix model, a list of compileable items within the user's permission scope is generated. Static and dynamic verification is then performed, solving the problems of low compilation efficiency and high cost of software installation packages in existing technologies, and achieving a convenient, efficient, and secure compilation process.
Patent Information
- Application Number
- CN202511004384.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-21
- Publication Date
- 2025-11-21
AI Technical Summary
Existing software installation package compilation methods rely on manual assistance, resulting in low efficiency, lack of intuitiveness and controllability, and high deployment and usage costs, which affect project progress and customer experience.
This paper presents an automatic compilation method based on web page interaction. Through multi-factor authentication, permission matrix model and project visibility hierarchical control, it generates a list of compileable projects within the user's permission range, uses a priority merging strategy to determine the compilation parameter configuration interface, performs static and dynamic verification, selects the final compilation script based on matching degree score and captures the output in real time.
It improves the ease, efficiency, and security of compiling software installation packages, reduces reliance on manual assistance, and enhances user experience and system stability.
Smart Images

Figure CN120994201A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of data processing, in particular to an automatic compiling method and device based on webpage interaction. BACKGROUND
[0002] In the current technical environment, the compiling process of company internal software installation package mainly relies on bat script execution. This process must be connected to the company's internal network and remotely access a specific server to find and execute the corresponding bat script. This compilation method exposes many inconveniences and limitations in actual operation.
[0003] Firstly, for colleagues who often need to travel, they often have to rely on other colleagues for help when they need to compile a new version, which undoubtedly increases the complexity and time cost of the compilation process. This compilation method that relies on manual assistance not only is inefficient, but also may cause compilation errors due to poor communication or operation errors, thereby affecting the overall progress of the project.
[0004] Secondly, the existing compilation method lacks intuitiveness and controllability. Users cannot directly see the names of the software installation packages that can be compiled, and cannot initiate a compilation request at any time and anywhere. This limitation makes it inconvenient for users to obtain the compiled installation package, and cannot quickly respond to customer needs, thereby affecting customer experience.
[0005] In addition, although there are many open-source and free automatic compilation frameworks on the market, such as docker, pipeline, Jenkins, etc., the deployment and use of these frameworks often require large server resources and a lot of time for system construction and employee operation training. For enterprises with limited resources or pursuing efficient deployment, the use of these frameworks is too high in cost, and may bring additional risks and challenges due to technical complexity.
[0006] In summary, the existing compilation method in the prior art has many shortcomings, including reliance on manual assistance, lack of intuitiveness and controllability, and high deployment and use costs. These shortcomings not only affect the compilation efficiency, but also restrict the rapid iteration of the project and the improvement of customer experience. Therefore, a new compilation method is needed to overcome these defects and improve the convenience, efficiency and security of software installation package compilation. SUMMARY
[0007] To solve at least one of the above problems, the present application provides the following technical solutions:
[0008] In order to solve at least one of the above problems, the present application provides the following technical solutions:
[0009] In a first aspect, the application provides an automatic compilation method based on webpage interaction, comprising:
[0010] A user performs identity authentication through a webpage interface, receives an identity authentication request of the user, verifies the identity authentication request according to a preset multi-factor authentication algorithm, obtains role information of the user if the verification is passed, performs project visibility hierarchical control according to the role information and a preset permission matrix model, determines a list of compilable projects within a user permission range, and enables the user to select a project through the list of compilable projects;
[0011] Receives a target project selected by the user from the list of compilable projects, retrieves a corresponding parameter configuration template from a preset project meta database according to a project type identifier of the target project, parses interface description information in the parameter configuration template, determines corresponding form controls and layout structures, merges preset user historical preference values and system recommended values in priority, determines corresponding default parameter values, performs parameter initialization on the form controls and the layout structures according to the default parameter values, determines a compilation parameter configuration interface, and enables the user to perform compilation parameter configuration according to the compilation parameter configuration interface;
[0012] Receives compilation parameters confirmed by the user, performs static verification of the compilation parameters according to a current role of the user, performs dynamic verification of the compilation parameters according to real-time system resource usage, obtains a candidate script set according to compilation parameters passing the static verification and the dynamic verification, performs matching degree scoring on a current compilation environment according to environment requirements and dependency conditions in meta data of the candidate script set, determines a final compilation script according to a script path with the highest score, executes the compilation script and captures compilation output in real time, and determines a corresponding compilation software installation package.
[0013] Further, receiving an identity authentication request of a user and verifying the identity authentication request according to a preset multi-factor authentication algorithm comprises:
[0014] Receives an identity authentication request of a user, performs PBKDF2 hash operation on user account data in the identity authentication request, and determines a corresponding first verification factor;
[0015] Verifies validity of a dynamic verification code in the identity authentication request within a time window, and determines a corresponding second verification factor;
[0016] Compares similarity of device fingerprints in the identity authentication request with pre-stored registration features, and determines a corresponding third verification factor;
[0017] output a verification pass signal when the weighted score of the first verification factor, the second verification factor, and the third verification factor exceeds an authentication threshold.
[0018] Further, the role information of the user is acquired, project visibility hierarchical control is performed according to the role information and a preset permission matrix model, a list of compilable projects within a corresponding user permission range is determined, and the list includes:
[0019] The role information of the user is acquired, wherein the role information includes user login credentials, device information, and environment information.
[0020] A corresponding role level, a project security level, and a network environment type are determined according to enterprise organization architecture data, a compilation project security level classification table, and a network access policy configuration file, and a three-dimensional permission matrix is established according to the role level, the project security level, and the network environment type.
[0021] Project visibility hierarchical control is performed on the role information and the three-dimensional permission matrix according to a preset visibility filtering algorithm, and a list of compilable projects within a corresponding user permission range is determined.
[0022] Further, the corresponding parameter configuration template is retrieved from the preset project meta database according to the project type identifier of the target project, and the corresponding parameter configuration template includes:
[0023] The project identifier of the target project is parsed, and project type, version number, and platform dependency information are extracted.
[0024] The parameter template set is retrieved from the preset project meta database according to the project type, and the parameter template set is filtered according to the version number and the platform dependency information, and the corresponding parameter configuration template is determined.
[0025] Further, the priority of the preset user historical preference value and the system recommended value is combined to determine the corresponding default parameter value, the form control and the layout structure are parameterized according to the default parameter value, and the corresponding compilation parameter configuration interface is determined, and the corresponding compilation parameter configuration interface includes:
[0026] The parameter setting records of the user's recent multiple similar projects are extracted from the user behavior log database to determine the corresponding user historical preference value, and the optimized parameter configuration recommended by the system for the target project is obtained from the project knowledge base to determine the corresponding system recommended value.
[0027] A three-level priority merging strategy is established, and it is judged whether there is a user recent setting value according to the priority merging strategy. If there is, a parameter initialization mapping table is generated by giving priority to the user recent setting value, the form controls and the layout structure are parameter initialized according to the default parameter values in the parameter initialization mapping table, and a corresponding compilation parameter configuration interface is determined.
[0028] If there is not, it is judged whether there is a user historical preference value. If there is, a parameter initialization mapping table is generated by giving priority to the user historical preference value, the form controls and the layout structure are parameter initialized according to the default parameter values in the parameter initialization mapping table, and a corresponding compilation parameter configuration interface is determined.
[0029] If there is not, a parameter initialization mapping table is generated by using a system recommended value, the form controls and the layout structure are parameter initialized according to the default parameter values in the parameter initialization mapping table, and a corresponding compilation parameter configuration interface is determined.
[0030] Further, the received user confirmed compilation parameters are subjected to static verification according to the current role of the user, dynamic verification according to real-time system resource usage, and a candidate script set is obtained according to the compilation parameters subjected to the static verification and the dynamic verification, including:
[0031] The user confirmed compilation parameters are received, a parameter constraint rule set corresponding to the current role of the user is obtained from a preset permission database, the compilation parameters are verified with the parameter constraint rule set, and a corresponding static verification result is determined, wherein the parameter constraint rule set includes a parameter range allowed to operate, a parameter combination prohibited to use, and an environment variable limit.
[0032] Real-time resource indicators of the current server are monitored, a resource parameter mapping model is established to perform parameter feasibility prediction on the real-time resource indicators, and a corresponding dynamic verification result is determined.
[0033] A candidate script set is obtained according to the parameter identifiers of the compilation parameters subjected to the static verification and the dynamic verification.
[0034] Further, the current compilation environment is matched and scored according to the environment requirements and dependency conditions in the metadata of the candidate script set, the final compilation script is determined according to the script path with the highest score, including:
[0035] A metadata file associated with each candidate script is parsed, an environment requirement field and a dependency condition field are extracted, the environment requirement field and the dependency condition field are subjected to standardized parsing, and a corresponding structured condition object is determined.
[0036] Detect the system parameters of the current compilation environment, differentially match the system parameters of the current compilation environment according to different condition types in the structured condition object, determine the corresponding environment matching score, and determine the final compilation script according to the script path with the highest score.
[0037] In a second aspect, the present application provides an automatic compilation device based on webpage interaction, comprising:
[0038] A compilable project list determination module is configured to perform identity authentication for a user through a webpage interface, receive an identity authentication request of the user, verify the identity authentication request according to a preset multi-factor authentication algorithm, obtain role information of the user if the verification is passed, perform project visibility hierarchical control according to the role information and a preset permission matrix model, determine a list of compilable projects within a user permission range, and enable the user to select a project through the list of compilable projects.
[0039] A compilation parameter configuration interface determination module is configured to receive a target project selected by the user from the list of compilable projects, retrieve a corresponding parameter configuration template from a preset project metadata database according to a project type identifier of the target project, parse interface description information in the parameter configuration template, determine corresponding form controls and layout structures, perform priority merging on preset user historical preference values and system recommended values, determine corresponding default parameter values, perform parameter initialization on the form controls and the layout structures according to the default parameter values, and determine a corresponding compilation parameter configuration interface, so that the user configures compilation parameters according to the compilation parameter configuration interface.
[0040] A compilation software installation package determination module is configured to receive compilation parameters confirmed by the user, perform static verification of the compilation parameters according to a current role of the user, perform dynamic verification of the compilation parameters according to real-time system resource usage, obtain a candidate script set according to compilation parameters that pass the static verification and the dynamic verification, perform matching degree scoring on a current compilation environment according to environment requirements and dependency conditions in metadata of the candidate script set, determine a final compilation script according to a script path with the highest score, execute the compilation script and capture compilation output in real time, and determine a corresponding compilation software installation package.
[0041] In a third aspect, the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the automatic compilation method based on webpage interaction when executing the program.
[0042] In a fourth aspect, the present application provides a computer readable storage medium having a computer program stored thereon, wherein the computer program is executable on a processor to implement the steps of the automatic compilation method based on webpage interaction.
[0043] In a fifth aspect, the present application provides a computer program product comprising computer programs / instructions which, when executed by a processor, implement the steps of the automatic compiling method based on webpage interaction.
[0044] According to the above technical solution, the present application provides an automatic compiling method and device based on webpage interaction. A user performs identity authentication through a webpage interface, an identity authentication request is verified according to a multi-factor authentication algorithm, project visibility classification is performed according to a permission model, a list of compilable projects within the user's permission range is obtained, a target project selected by the user from the list of compilable projects is received, a compilation parameter configuration interface of the target project is displayed according to a parameter value determined by a priority merging strategy, compilation parameters confirmed by the user are received, dynamic verification and static verification are performed on the compilation parameters, a candidate script set is obtained, and the candidate script set is scored according to environmental dependency matching degree. The final compilation script is determined according to the script path with the highest score, the compilation script is executed and the compilation output is captured in real time, and the corresponding compilation software installation package is determined. In this way, the convenience, efficiency and security of software installation package compilation can be improved. BRIEF DESCRIPTION OF DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiments or prior art description will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application, and other drawings can also be obtained by those skilled in the art without creative labor.
[0046] Figure 1 One of the flowcharts of the automatic compiling method based on webpage interaction in the embodiments of the present application;
[0047] Figure 2 The structural diagram of the automatic compiling device based on webpage interaction in the embodiments of the present application;
[0048] Figure 3 The structural diagram of the electronic device in the embodiments of the present application.
[0049] Reference signs:
[0050] Electronic device 9600, central processor 9100, memory 9140, communication module 9110, input unit 9120, audio processor 9130, display 9160, power supply 9170, buffer memory 9141, application / function storage unit 9142, data storage unit 9143, driver program storage unit 9144, antenna 9111, speaker 9131, microphone 9132. DETAILED DESCRIPTION
[0051] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the scope of protection of the present application.
[0052] The acquisition, storage, use, processing and the like of data in the technical solutions of the present application comply with relevant provisions of national laws and regulations.
[0053] In view of the fact that in the current technical environment, the compilation process of the company's internal software installation package mainly depends on the execution of a bat script, this process must be connected to the company's internal network and remotely access a specific server to find and execute the corresponding bat script. This compilation method exposes many inconveniences and limitations in actual operation. The present application provides an automatic compilation method and device based on web interaction, a user performs identity authentication through a web interface, verifies an identity authentication request according to a multi-factor authentication algorithm, performs project visibility classification according to a permission model, obtains a list of compilable projects within the user's permission range, receives a target project selected by the user from the list of compilable projects, displays a compilation parameter configuration interface of the target project according to a parameter value determined according to a priority merging strategy, receives the user's confirmed compilation parameters, dynamically verifies and statically verifies the compilation parameters, obtains a candidate script set, and performs environment dependency matching degree scoring on the candidate script set, determines the final compilation script according to the script path with the highest score, executes the compilation script and captures the compilation output in real time, and determines the corresponding compilation software installation package, thereby improving the convenience, efficiency and security of software installation package compilation.
[0054] In order to improve the convenience, efficiency and security of software installation package compilation, the present application provides an embodiment of an automatic compilation method based on web interaction, as shown in Figure 1 , the automatic compilation method based on web interaction specifically includes the following contents:
[0055] Step S101: a user performs identity authentication through a web interface, receives an identity authentication request of the user, verifies the identity authentication request according to a preset multi-factor authentication algorithm, if the verification is passed, obtains role information of the user, performs project visibility classification control according to the role information and a preset permission matrix model, determines a list of compilable projects within the corresponding user's permission range, so that the user can select a project through the list of compilable projects;
[0056] Optionally, in this embodiment, in order to solve the problem that the compilation process of internal software installation package can only be carried out in the company intranet, greatly increasing the limitations of employees on business trips, the scheme shifts the permission verification of the intranet to the webpage and performs a one-level security check to solve the above-mentioned problems.
[0057] Optionally, in this embodiment, the user performs identity authentication through the webpage interface, inputs identity authentication information including username, password, dynamic verification code, etc., and submits an identity authentication request. The system backend receives the identity authentication request submitted by the user and starts processing the request content.
[0058] Optionally, in this embodiment, the system verifies the identity authentication request according to a preset multi-factor authentication algorithm, combines the password, verification code and device information to ensure the authenticity of the user's identity.
[0059] Through the multi-factor authentication algorithm to verify the user's identity, compared with the traditional single password verification method, the security of identity authentication is greatly improved, and the risk of stolen account use is reduced.
[0060] Optionally, in this embodiment, if the user's identity authentication is passed, the system will further obtain the role information of the user. The role information refers to the role played by the user in the system, such as ordinary user, administrator, developer, etc. These roles determine the permission range that the user can access and operate in the system.
[0061] The system controls the project visibility classification according to the obtained role information and the preset permission matrix model. The permission matrix model is a tool for managing user permissions, which defines the access permissions of different roles in different projects. By combining the user's role information with the permission matrix model, the system can determine the project list that the user can access within the current permission range. According to the rules of the permission matrix model, the system filters out the projects that the user has the permission to compile and generates a list of compilable projects.
[0062] Using role information and permission matrix model to control project visibility classification can achieve fine-grained management of user permissions. Users with different roles can only see and operate the projects they are authorized to, avoiding misuse and misoperation, and ensuring the security and stability of the system.
[0063] Finally, the user can select a project through the list of compilable projects provided by the system and start subsequent operations. The system dynamically generates a list of compilable projects according to the user's permission range, so the user does not need to manually filter projects, improving the convenience and efficiency of operations and enhancing the user experience.
[0064] Step S102: receiving a target item selected by a user from the list of compilable items, retrieving a corresponding parameter configuration template from a preset item meta database according to an item type identifier of the target item, parsing interface description information in the parameter configuration template, determining corresponding form controls and a layout structure, performing priority merging on preset user historical preference values and system recommended values, determining corresponding default parameter values, performing parameter initialization on the form controls and the layout structure according to the default parameter values, and determining a corresponding compilation parameter configuration interface, so that the user performs compilation parameter configuration according to the compilation parameter configuration interface.
[0065] Optionally, in the embodiment, the user selects a specific item as a target item from the list of compilable items. The list of items contains a plurality of different types of software compilation items, each of which has unique attributes and configuration requirements.
[0066] When the user selects the target item from the list, the system receives the selection instruction of the user and records information of the target item selected by the user. The item type identifier is used to distinguish different item types and can explicitly indicate the category to which the item belongs.
[0067] The system will find a matching parameter configuration template from the item meta database according to the item type identifier of the target item selected by the user. For example, if the target item selected by the user is a software development item and the item type identifier is “SoftwareDevelopment”, the system will find a parameter configuration template corresponding to “SoftwareDevelopment” in the item meta database. The finding process is implemented through a database query operation, and the system will retrieve a corresponding parameter configuration template record in the database according to the item type identifier as a query condition.
[0068] The parameter configuration template retrieved contains not only specific information of parameters but also interface description information, which defines how to display the parameter configuration in the form of a user interface to the user, including the type of form controls, the layout structure, and the like.
[0069] The system will parse the interface description information in the retrieved parameter configuration template, extract the interface description information from the template, and obtain the form controls and the layout structure. For example, if the interface description information specifies that the form control of a certain parameter is a drop-down menu and needs to be placed in the upper left corner of the interface, the system will determine that the corresponding form control is a drop-down menu and the layout structure is placed in the upper left corner according to this information.
[0070] Optionally, in this embodiment, the specific parameters in the parameter configuration template, the system pre-stores the user's operation history information, including the user's parameter values set in the past similar projects, these parameter values are the user's historical preference values. At the same time, the system will also recommend an optimized parameter configuration for each project type according to the characteristics and best practices of the project, these recommended parameter configurations are system recommended values.
[0071] The system will consider which type of value as the default parameter value according to the priority strategy, for example:
[0072] In the priority merging process, the system will first check whether there is a user's recently set parameter value, if it exists, the user's recently set value is used as the default parameter value; if it does not exist, then check whether there is a user's historical preference value, if it exists, the user's historical preference value is used as the default parameter value; if the user's historical preference value also does not exist, finally the system recommended value is used as the default parameter value.
[0073] Finally, the system initializes the parameter according to the determined default parameter value, the form control and the layout structure.
[0074] Through parameter initialization, the system can generate a complete compilation parameter configuration interface, which contains all the form controls of the parameters that need to be configured, and the initial values of these form controls have been set according to the default parameter value.
[0075] After the above steps, the system finally determines the compilation parameter configuration interface. This interface is the entrance for the user to configure the compilation parameters, the user can view and modify the value of each parameter through this interface, and adjust and configure the parameters according to his own needs and the characteristics of the project.
[0076] By receiving the target project selected by the user, and retrieving the corresponding parameter configuration template according to the project type identifier, the system can provide the user with a compilation parameter configuration interface matched with the target project type. At the same time, the priority merging strategy can take into account the user's individual needs and the system's optimization suggestions in the setting of the default parameter value, improve the user's satisfaction with the system.
[0077] Analyzing the interface description information in the parameter configuration template, determining the form control and the layout structure, and initializing the parameter according to the default parameter value, can quickly generate the compilation parameter configuration interface. When the user opens the configuration interface, he can directly see the form controls that have been initialized according to the default parameter value, without setting the value of each parameter from scratch, thereby greatly improving the efficiency of the compilation parameter configuration, saving the user's time and effort.
[0078] Step S103: receiving user-confirmed compilation parameters, performing static verification of the compilation parameters according to the current role of the user, performing dynamic verification of the compilation parameters according to real-time system resource usage, obtaining a candidate script set according to the compilation parameters passing the static verification and the dynamic verification, performing matching degree scoring on the current compilation environment according to environment requirements and dependency conditions in metadata of the candidate script set, determining a final compilation script according to a script path with the highest score, executing the compilation script and capturing compilation output in real time, and determining a corresponding compilation software installation package.
[0079] Optionally, in this embodiment, the user submits compilation parameters (such as a target version, a dependent library version, and a compilation option) through a front-end interface, and the system receives and enters a verification process.
[0080] The static verification includes: obtaining a corresponding parameter constraint rule set from a preset permission database according to a role (such as a developer, a tester, or an administrator) of the user. It is checked whether the compilation parameters conform to a parameter range allowed for operation, a parameter combination prohibited from being used, and an environment variable limit. If the parameters exceed the permission range, execution is rejected and an error prompt is returned; otherwise, the dynamic verification stage is entered.
[0081] The dynamic verification includes: monitoring resource usage such as CPU, memory, disk I / O, and network bandwidth of a current server. It is evaluated whether the current resources meet the compilation requirements through a resource parameter mapping model (such as a prediction model based on historical data or a real-time load balancing strategy). If the resources are insufficient, the compilation parameters are adjusted (such as reducing the number of parallel compilation threads) or the user is prompted to wait; otherwise, the candidate script matching stage is entered.
[0082] According to the compilation parameters passing the static and dynamic verification, a candidate script set meeting the conditions is filtered out. The candidate scripts include compilation scripts of different versions, scripts of different optimization levels, or adaptation scripts for different environments.
[0083] Optionally, in this embodiment, metadata (such as environment requirements, dependent library versions, and hardware requirements) of the candidate scripts are parsed and matching degree calculation is performed with the current compilation environment.
[0084] Matching degree scoring factors include:
[0085] Operating system compatibility;
[0086] Dependency library version matching;
[0087] Hardware resource adaptability;
[0088] Historical compilation success rate;
[0089] Finally, a script path with the highest score is selected as a final executed compilation script.
[0090] The second permission verification ensures that the compilation parameters meet the user permissions and system resource limits, avoiding illegal operations or resource overload.
[0091] This example shows how the present embodiment ensures that users safely use the company intranet's compilation project scripts through web pages by twice security verification of permissions, and improves the convenience, efficiency and user experience of software compilation based on the priority merging strategy of the permission matrix and parameters.
[0092] From the above description, the automatic compilation method based on web interaction provided by the embodiments of the present application can enable users to perform identity authentication through a web interface, verify an identity authentication request according to a multi-factor authentication algorithm, perform project visibility classification according to a permission model, obtain a list of compilable projects within the user's permission range, receive a target project selected by the user from the list of compilable projects, display a compilation parameter configuration interface of the target project according to parameter values determined according to a priority merging strategy, receive compilation parameters confirmed by the user, perform dynamic verification and static verification on the compilation parameters, obtain a candidate script set, and perform environment dependency matching degree scoring on the candidate script set. According to the highest scoring script path, the final compilation script is determined, the compilation script is executed, and the compilation output is captured in real time, and the corresponding software installation package is determined. In this way, the convenience, efficiency and security of software installation package compilation can be improved.
[0093] In an embodiment of the automatic compilation method based on web interaction of the present application, the following content can also be specifically included:
[0094] Step S201: receiving an identity authentication request of a user, performing PBKDF2 hash operation on user account data in the identity authentication request, and determining a corresponding first verification factor;
[0095] Step S202: verifying the validity of a dynamic verification code in the identity authentication request within a time window, and determining a corresponding second verification factor;
[0096] Step S203: comparing the similarity of the device fingerprint in the identity authentication request with the pre-stored registration features, and determining a corresponding third verification factor;
[0097] Step S204: when the weighted score of the first verification factor, the second verification factor and the third verification factor exceeds an authentication threshold, outputting a verification pass signal.
[0098] Optionally, in this embodiment, the system receives the user-submitted account password information, uses the PBKDF2 (Password-Based Key Derivation Function 2) algorithm to hash the user password, and compares it with the pre-stored hash value. PBKDF2 enhances security through multiple iterations and salt mechanism to prevent rainbow table attacks.
[0099] This step ensures the security of user password storage and transmission, so that even if the database is leaked, attackers cannot directly restore the plaintext password. At the same time, the computational complexity of PBKDF2 can resist brute force attacks.
[0100] Optionally, in this embodiment, the system checks whether the dynamic verification code (such as SMS verification code, TOTP time-based dynamic token) submitted by the user is within the valid period and matches the expected value generated by the server. Dynamic verification codes usually have a short validity period (such as 60 seconds) and automatically expire after expiration.
[0101] This step prevents unauthorized access due to password leakage, ensures the second verification of user identity, and improves account security.
[0102] Optionally, in this embodiment, the system collects the fingerprint information (browser fingerprint, device ID, IP address, operating system features, etc.) of the user's device and performs similarity calculation (cosine similarity or Jaccard similarity) with the registered device features in the user's historical login records. If the matching degree exceeds the pre-set threshold, it is determined as a trusted device.
[0103] This step identifies abnormal login behavior (such as unfamiliar devices or geographic locations), reduces the risk of account theft, and reduces the interference of frequent verification for legitimate users.
[0104] Optionally, in this embodiment, the system assigns weights (such as 0.5, 0.3, 0.2) to the three verification factors (password hash, dynamic verification code, device fingerprint) and calculates the comprehensive score. If the total score exceeds the pre-set threshold (such as 0.8), it is determined that the authentication is passed, otherwise it is rejected or triggers additional verification (such as manual review).
[0105] The weighted score and authentication threshold can be flexibly adjusted according to different security requirements.
[0106] The adjustment embodiment of the weighted score can be to reduce the weight of the dynamic verification code on the trusted device, and to increase the weight of the device fingerprint in the high-risk environment.
[0107] By weighting and comprehensively judging multiple verification factors, the system can more comprehensively evaluate the authenticity of the user's identity. Compared with single-factor verification, multi-factor authentication can effectively prevent the risk of account theft and improve the security of the system.
[0108] Through step S204, the embodiment realizes flexible security policy through multi-factor authentication, balances security and user experience, and lays a foundation for subsequent user software installation package compilation based on secure access.
[0109] In an embodiment of the automatic compilation method based on webpage interaction provided in the present application, the following contents can also be included:
[0110] Step S301: Obtain the role information of the user, wherein the role information includes user login credentials, device information, and environment information.
[0111] Step S302: Determine the corresponding role level, project security level, and network environment type according to the enterprise organization structure data, the compilation project security level classification table, and the network access policy configuration file, and establish a three-dimensional permission matrix according to the role level, the project security level, and the network environment type.
[0112] Step S303: Perform project visibility hierarchical control on the role information and the three-dimensional permission matrix according to a preset visibility filtering algorithm, and determine a list of compilable projects within the user's permission range.
[0113] Optionally, in the embodiment, the system obtains the role information of the user after the user identity authentication is passed.
[0114] The role information includes:
[0115] User login credentials (such as employee ID, department number);
[0116] Device information (such as device type, network environment, browser type, IP address, MAC address, etc.);
[0117] Environment information (such as IP geographical location, access time, network type);
[0118] By obtaining the user login credentials, device information, and environment information, the system can comprehensively define the role of the user. This comprehensive role definition method not only considers the identity of the user, but also considers the device used by the user and the network environment in which the user is located, providing complete context data for subsequent permission hierarchy, and ensuring the accuracy and flexibility of access control.
[0119] Optionally, in the embodiment, the system establishes a permission matrix according to the following three types of data:
[0120] Enterprise organization structure data, including department structure, position level, and other information (such as role level: administrator / developer / visitor);
[0121] Compilation project security level classification table, which defines the sensitivity and security requirements of different projects (such as project sensitivity: high / medium / low);
[0122] Network access policy configuration file, which defines the security policy and access permission of different network environments (such as network environment type: intranet / Internet / VPN);
[0123] The system establishes a three-dimensional permission matrix according to the role level, project security level and network environment type obtained above. Each dimension intersection point of the matrix defines a visibility rule. For example, the rule can be defined as: "developer + high sensitivity project + Internet = invisible".
[0124] The three-dimensional permission matrix model can adapt to complex enterprise environments and meet the permission management needs of different departments, different projects and different network environments. It supports the enterprise to flexibly adjust the visibility rules according to the organizational structure and security policy. Through the above permission matrix, fine-grained permission control is realized to ensure that users can only access the compiled projects that meet their roles, project security levels and current network environments.
[0125] Finally, the system matches the user role information with the three-dimensional permission matrix and filters the projects through the following visibility filtering algorithm:
[0126] Role level: Administrators can see all projects, and developers can only see the projects of their own department.
[0127] Project security level: High sensitivity projects are only visible in intranet environment.
[0128] Network environment type: Automatically hide projects that need local compilation when accessing the Internet.
[0129] Finally, a list of compilable projects within the dynamically adapted user permission range is generated.
[0130] Avoid unauthorized access and sensitive information leakage, while reducing irrelevant options in the user interface and improving operational efficiency.
[0131] The system divides projects into two categories: visible and invisible, according to the user's permission range. Users can only see and operate the projects they have permission to access, and cannot see other projects. The automatic filtering mechanism ensures that users only see compilable projects, reducing the risk of misoperation.
[0132] Through step S303, the embodiment dynamically controls the visibility of projects through the visibility filtering algorithm and the three-dimensional permission matrix model, ensuring that users can only access and operate the projects they are authorized to access, and adding convenience, security and user experience to software compilation.
[0133] In an embodiment of the automatic compilation method based on web interaction in the present application, the following content can also be included:
[0134] Step S401: Analyze the project identifier of the target project, extract the project type, version number, and platform dependency information;
[0135] Step S402: Retrieve a matched parameter template set from the preset project meta database according to the project type, filter the parameter template set according to the version number and the platform dependency information, and determine the corresponding parameter configuration template.
[0136] Optionally, in the embodiment, the system structurally analyzes the target project identifier selected by the user, and decomposes the original project identification string into three core elements: project type, version number, and platform dependency information, through a predefined identifier format specification. The project type represents the technical classification of the project, the version number identifies the specific release version of the project, and the platform dependency information describes the operating system, hardware architecture, and other environmental requirements required for the project to run.
[0137] Optionally, in the embodiment, the system first retrieves all parameter template sets suitable for projects of the type from the project meta database according to the project type obtained by analysis. Then, based on the version number and the platform dependency information, secondary screening is performed:
[0138] Version number matching ensures that the parameter template is compatible with the specific version characteristics of the project;
[0139] Platform dependency matching ensures that the parameter configuration is adapted to the running environment of the project.
[0140] The screening process uses a multi-level matching algorithm, which first performs precise matching, and if there is no result, it performs fuzzy matching.
[0141] This hierarchical retrieval mechanism ensures the accurate adaptation of parameter templates and avoids configuration errors caused by version differences or platform incompatibility. At the same time, the fuzzy matching mechanism as a backup solution ensures that even if there is no completely matched template, the system can still provide the closest available parameter configuration solution, improving the fault tolerance of the system.
[0142] The extraction of the version number enables the system to support version management of projects. Different versions of projects may require different parameter configurations. By extracting the version number, the system can select the corresponding parameter configuration template according to the version number of the target project, thereby realizing differentiated configuration for different versions of projects. At the same time, the extraction of platform dependency information enables the system to support cross-platform adaptation of projects. The same project may require different parameter configurations on different platforms. By extracting the platform dependency information, the system can select the parameter configuration template suitable for the platform according to the platform on which the target project depends, ensuring that the project can normally compile and run on different platforms, improving the flexibility and universality of the system.
[0143] Through step S402, the embodiment successfully ensures accurate adaptation of the parameter template through standardized analysis and hierarchical retrieval of the project type, avoids configuration errors caused by project version differences or platform incompatibility, and lays a foundation for subsequent parameter configuration based on the parameter template.
[0144] In an embodiment of the automatic compiling method based on webpage interaction in the application, the following content can also be specifically included:
[0145] Step S501: extracting parameter setting records of the same type of project of the user in recent times from a user behavior log database, determining a corresponding user historical preference value, and obtaining an optimized parameter configuration recommended by the system for the target project from a project knowledge base, to determine a corresponding system recommended value;
[0146] Step S502: establishing a three-level priority merging strategy, judging whether there is a user recent setting value according to the priority merging strategy, if there is, preferentially generating a parameter initialization mapping table using the user recent setting value, parameter initializing the form control and the layout structure according to a default parameter value in the parameter initialization mapping table, and determining a corresponding compiling parameter configuration interface;
[0147] Step S503: if there is not, judging whether there is a user historical preference value, if there is, preferentially generating a parameter initialization mapping table using the user historical preference value, parameter initializing the form control and the layout structure according to a default parameter value in the parameter initialization mapping table, and determining a corresponding compiling parameter configuration interface;
[0148] Step S504: if there is not, generating a parameter initialization mapping table using the system recommended value, parameter initializing the form control and the layout structure according to a default parameter value in the parameter initialization mapping table, and determining a corresponding compiling parameter configuration interface.
[0149] Optionally, in the embodiment, the system obtains parameter default values from two dimensions.
[0150] The user dimension historical preference value is formed by analyzing user behavior logs, extracting parameter setting records of the same type of project of the user in recent times, and performing denoising and weighted calculation.
[0151] The system dimension recommended value is obtained from a project knowledge base, and these recommended values are generated based on the best practices of the project and performance optimization experience. Both values are organized according to a standardized parameter namespace, to ensure the comparability of parameter items.
[0152] The dual-source data acquisition mechanism respects the user's personal habits and preserves the system's professional recommendations. Through structured storage and standardized processing, parameter values from different sources can be compared and combined in the same framework, providing a reliable data foundation for subsequent priority decision-making.
[0153] Optionally, in this embodiment, the system performs a strict three-level decision-making process:
[0154] First, the user's recent setting value is checked, which is the most direct evidence of the user's current preferences;
[0155] If not, the historical preference value is checked, which represents the user's long-term habits;
[0156] Finally, the system recommendation value is used.
[0157] Each decision generates a parameter initialization mapping table, which not only contains the final parameter value used, but also retains the source marker of each parameter. Based on this mapping table, the system dynamically renders the form controls and fills the parameter values into the corresponding interface elements.
[0158] For example, if the default parameter value of a parameter in the parameter initialization mapping table is "10" and the form control corresponding to the parameter is a text box, the system will set the initial value of the text box to "10". If the default parameter value of a parameter is "Option A" and the form control corresponding to the parameter is a drop-down menu, the system will set the default selected item of the drop-down menu to "Option A".
[0159] This hierarchical merging strategy forms a clear decision-making path, ensuring that parameter initialization is both personalized and reasonable. The retention of the source marker provides a traceable basis for subsequent parameter adjustment. The entire process realizes efficient conversion from raw parameter requirements to a visual configuration interface, and the user obtains a parameter configuration starting point that meets both personal habits and system optimization, significantly reducing the amount of manual adjustment.
[0160] After parameter initialization, the system determines the corresponding compilation parameter configuration interface. This interface is the entry point for the user to configure compilation parameters, and the user can view and modify the values of each parameter through this interface.
[0161] Through the S504 step, this embodiment establishes a three-level priority merging strategy to ensure that the default parameter value in the compilation parameter configuration interface is consistent with the user's recent needs, allowing the user to feel the system's timely response and personalized service when configuring compilation parameters, improving user satisfaction and use experience.
[0162] In an embodiment of the automatic compilation method based on web interaction in the present application, the following content can also be included:
[0163] Step S601: receiving a user-confirmed compilation parameter, obtaining a parameter constraint rule set corresponding to the current role of the user from a preset permission database, verifying the compilation parameter with the parameter constraint rule set, and determining a corresponding static verification result, wherein the parameter constraint rule set includes a parameter range allowed to operate, a parameter combination prohibited to use, and an environment variable limit;
[0164] Step S602: monitoring real-time resource indicators of a current server, establishing a resource parameter mapping model to perform parameter feasibility prediction on the real-time resource indicators, and determining a corresponding dynamic verification result;
[0165] Step S603: obtaining a candidate script set according to a parameter identifier of the compilation parameter verified through the static verification and the dynamic verification.
[0166] Optionally, in the embodiment, the static verification includes receiving a user-confirmed compilation parameter, querying a permission database according to a role (such as development / test / administrator) of the user, and obtaining a corresponding parameter constraint rule.
[0167] For example, the rule can include:
[0168] a parameter range (such as an optional compiler version and a maximum thread number) allowed to operate;
[0169] a parameter combination (such as a debugging mode + a production environment flag) prohibited to use;
[0170] an environment variable limit (such as only allowing access to a specific path);
[0171] The user-submitted compilation parameter is compared with the rule set item by item to ensure compliance; if the parameter violates the rule, the process is terminated and an error message is returned; otherwise, dynamic verification is entered.
[0172] Through the static verification, it can be ensured that the parameter input by the user conforms to the permission range, and compilation errors or security problems caused by insufficient permissions can be avoided.
[0173] Optionally, in the embodiment, the dynamic verification includes that the system monitors resource usage of a current server in real time, including CPU usage, memory occupation, disk space, etc. Through establishment of a resource parameter mapping model, the system analyzes real-time resource indicators and predicts whether these resources can meet requirements of a user-input compilation parameter.
[0174] For example, based on historical data or a machine learning model, it is predicted whether current resources meet compilation requirements.
[0175] If memory occupation exceeds 80%, a compilation task with high memory consumption is prohibited to start.
[0176] If the CPU load is high, limit the number of parallel compilation threads.
[0177] The system will make resource predictions and dynamically verify and adjust resources:
[0178] If resources are insufficient, automatically adjust the compilation parameters (such as reducing concurrency) or prompt the user to wait;
[0179] If resources are sufficient, allow the next step.
[0180] This step avoids system crashes or compilation timeouts due to resource competition, improving system stability and reliability. When dynamic verification fails, the system will give specific resource shortage prompts to help users understand the current system resource status. Users can adjust the compilation parameters or wait for resource release before compiling.
[0181] Optionally, in this embodiment, the candidate scripts are filtered according to the verified compilation parameters. The system will obtain a candidate script set from the script library according to the unique identifier of these parameters for executing the compilation task. The candidate script set is the basis for subsequent compilation environment matching degree scoring.
[0182] Through step S603, this embodiment successfully narrows down the script selection range, improves matching efficiency, and ensures that the candidate scripts meet user needs and system restrictions.
[0183] In an embodiment of the automatic compilation method based on web interaction in the present application, the following content can also be included:
[0184] Step S701: Parse the metadata file associated with each candidate script, extract the environment requirement field and the dependency condition field, and perform standardized parsing on the environment requirement field and the dependency condition field to determine the corresponding structured condition object;
[0185] Step S702: Detect the system parameters of the current compilation environment, perform differential matching on the system parameters of the current compilation environment according to different condition types in the structured condition object, determine the corresponding environment matching degree score, and determine the final compilation script according to the script path with the highest score.
[0186] Optionally, in this embodiment, the system will parse the metadata file associated with each script in the candidate script set one by one. The metadata file is a description file associated with the script, which contains information such as environmental requirements and dependency conditions required for script execution. These metadata files are usually stored in a specific format (such as JSON, XML, etc.), and the system will use corresponding parsing tools or libraries to read the contents of these files.
[0187] The system will extract the environment requirements field and the dependency conditions field. The environment requirements field may include operating system version, hardware requirements (such as CPU architecture, memory size, etc.), system environment variables, etc.; the dependency conditions field may include software packages that need to be installed, library versions, toolchain versions, etc. These fields define the preconditions required for the script to run.
[0188] The system will standardize the parsing of these fields and convert them into unified structured condition objects. For example, parse key fields such as:
[0189] Operating system requirements (Windows / Linux / macOS)
[0190] Dependency library versions (such as GCC≥8.0, OpenCV=4.5)
[0191] Hardware requirements (such as GPU memory≥4GB)
[0192] Through standardized parsing, the system converts metadata fields of different formats and expressions into unified structured condition objects, facilitating subsequent environment matching score evaluation and improving system compatibility and scalability.
[0193] Optionally, in this embodiment, the system detects the system parameters of the current compilation environment, including operating system version, hardware configuration (such as CPU model, memory size, etc.), installed software packages and library versions, environment variables, etc.
[0194] According to different condition types defined in the structured condition object, the system parameters of the current compilation environment are matched differently. For example, calculate the matching degree according to different condition types:
[0195] Hard condition: not matching is directly eliminated;
[0196] Soft condition: partial matching is scored according to closeness;
[0197] Optimization condition: support is added;
[0198] According to the results of differential matching, the system will calculate an environment matching score for each candidate script. Considering the matching of all conditions, a comprehensive matching score is finally obtained. For example, if all key conditions of a script are completely matched, and some non-key conditions are partially matched, the matching score of the script will be higher.
[0199] The system will determine the final compilation script according to the script path with the highest environment matching score. It can maximize the success rate of the compilation task. The system will load and execute the compilation script, and capture the output information in real time during the compilation process, and finally generate the corresponding compilation software installation package.
[0200] Through the S702 step, the embodiment successfully improves the success rate of the compilation task through standardized analysis and differentiated environment matching degree scoring.
[0201] In order to improve the convenience, efficiency and security of software installation package compilation, an embodiment of a web-based automatic compilation device for implementing all or part of the contents of the web-based automatic compilation method is provided, see Figure 2 , which specifically includes the following contents:
[0202] The compilable project list determination module 10 is configured to perform identity authentication for a user through a web interface, receive an identity authentication request of the user, verify the identity authentication request according to a preset multi-factor authentication algorithm, if the verification is passed, obtain role information of the user, perform project visibility hierarchical control according to the role information and a preset permission matrix model, determine a list of compilable projects within a permission range of the corresponding user, and enable the user to select a project through the list of compilable projects.
[0203] The compilation parameter configuration interface determination module 20 is configured to receive a target project selected by the user from the list of compilable projects, retrieve a corresponding parameter configuration template from a preset project metadata database according to a project type identifier of the target project, parse interface description information in the parameter configuration template, determine corresponding form controls and layout structures, perform priority merging on preset user historical preference values and system recommended values, determine corresponding default parameter values, perform parameter initialization on the form controls and the layout structures according to the default parameter values, determine a corresponding compilation parameter configuration interface, and enable the user to configure compilation parameters according to the compilation parameter configuration interface.
[0204] The compilation software installation package determination module 30 is configured to receive compilation parameters confirmed by the user, perform static verification of the compilation parameters according to a current role of the user, perform dynamic verification of the compilation parameters according to real-time system resource usage, obtain a candidate script set according to the compilation parameters passing the static verification and the dynamic verification, perform matching degree scoring on a current compilation environment according to environment requirements and dependency conditions in metadata of the candidate script set, determine a final compilation script according to a script path with the highest score, execute the compilation script and capture compilation output in real time, and determine a corresponding compilation software installation package.
[0205] From the above description, the automatic compiling device based on web interaction provided by the embodiments of the present application can enable a user to perform identity authentication through a web interface, verify an identity authentication request according to a multi-factor authentication algorithm, perform project visibility classification according to a permission model, obtain a list of compilable projects within a user permission range, receive a target project selected by the user from the list of compilable projects, display a compilation parameter configuration interface of the target project according to a parameter value determined according to a priority merging strategy, receive a compilation parameter confirmed by the user, perform dynamic verification and static verification on the compilation parameter, obtain a candidate script set, perform environment dependency matching degree scoring on the candidate script set, determine a final compilation script according to a script path with the highest score, execute the compilation script and capture a compilation output in real time, and determine a corresponding software installation package, thereby improving the convenience, efficiency and security of software installation package compilation.
[0206] From the hardware level, in order to improve the convenience, efficiency and security of software installation package compilation, the present application provides an embodiment of an electronic device for implementing all or part of the contents of the automatic compiling method based on web interaction, which specifically includes the following contents:
[0207] a processor, a memory, a communications interface and a bus; wherein the processor, the memory and the communications interface complete communication with each other through the bus; the communications interface is used to realize information transmission between the automatic compiling method based on web interaction and related devices such as a core business system, a user terminal and a related database; the logic controller can be a desktop computer, a tablet computer and a mobile terminal, and the present embodiment is not limited thereto. In the present embodiment, the logic controller can be implemented by referring to the embodiments of the automatic compiling method based on web interaction and the embodiments of the automatic compiling method based on web interaction, the contents of which are incorporated herein, and repeated descriptions are omitted.
[0208] It can be understood that the user terminal can include a smart phone, a tablet electronic device, a network set-top box, a portable computer, a desktop computer, a personal digital assistant (PDA), a vehicle-mounted device, a smart wearable device, etc. The smart wearable device can include smart glasses, a smart watch, a smart bracelet, etc.
[0209] In actual application, part of the automatic compiling method based on webpage interaction can be executed on the electronic device as described above, or all operations can be completed in the client device. Specifically, the selection can be made according to the processing capability of the client device and the restriction of the user's use scenario, etc. The present application does not limit this. If all operations are completed in the client device, the client device can further include a processor.
[0210] The client device described above can have a communication module (i.e., a communication unit) and can be communicatively connected with a remote server to realize data transmission with the server. The server can include a server of a task scheduling center side, and can also include a server of an intermediate platform in other implementation scenarios, such as a server of a third-party server platform communicatively connected with the server of the task scheduling center. The server can include a single computer device, or can include a server cluster composed of multiple servers, or a server structure of a distributed device.
[0211] Figure 3 A schematic block diagram of a system configuration of the electronic device 9600 of an embodiment of the present application is shown in FIG. 9. As shown in FIG. 9, the electronic device 9600 can include a central processor 9100 and a memory 9140; the memory 9140 is coupled to the central processor 9100. It is worth noting that the structure shown in FIG. 9 is exemplary; other types of structures can also be used to supplement or replace the structure to realize telecommunication functions or other functions. Figure 3 Figure 3 The structure shown in FIG. 9 is exemplary; other types of structures can also be used to supplement or replace the structure to realize telecommunication functions or other functions.
[0212] In an embodiment, the automatic compiling method based on webpage interaction can be integrated into the central processor 9100. The central processor 9100 can be configured to perform the following control:
[0213] Step S101: The user performs identity authentication through a webpage interface, receives an identity authentication request of the user, verifies the identity authentication request according to a preset multi-factor authentication algorithm, if the verification is passed, acquires role information of the user, performs project visibility hierarchical control according to the role information and a preset permission matrix model, determines a list of compilable projects within a user permission range corresponding to the user, so that the user can select a project through the list of compilable projects;
[0214] Step S102: receiving a target item selected by a user from the list of compilable items, retrieving a corresponding parameter configuration template from a preset item metadata database according to an item type identifier of the target item, parsing interface description information in the parameter configuration template to determine corresponding form controls and a layout structure, performing priority merging on preset user historical preference values and system recommended values to determine corresponding default parameter values, performing parameter initialization on the form controls and the layout structure according to the default parameter values, and determining a compilation parameter configuration interface to enable the user to perform compilation parameter configuration according to the compilation parameter configuration interface.
[0215] Step S103: receiving compilation parameters confirmed by the user, performing static verification of the compilation parameters according to a current role of the user, performing dynamic verification of the compilation parameters according to real-time system resource usage, obtaining a candidate script set according to compilation parameters passing the static verification and the dynamic verification, performing matching degree scoring on a current compilation environment according to environment requirements and dependency conditions in metadata of the candidate script set, determining a final compilation script according to a script path with the highest score, executing the compilation script and capturing compilation output in real time, and determining a corresponding compilation software installation package.
[0216] As can be seen from the above description, the electronic device provided by the embodiments of the present application enables a user to perform identity authentication through a web interface, verifies an identity authentication request according to a multi-factor authentication algorithm, performs project visibility grading according to a permission model to obtain a list of compilable items within a user permission range, receives a target item selected by the user from the list of compilable items, displays a compilation parameter configuration interface of the target item according to parameter values determined according to a priority merging strategy, receives compilation parameters confirmed by the user, performs dynamic verification and static verification on the compilation parameters, obtains a candidate script set, performs environment dependency matching degree scoring on the candidate script set, determines a final compilation script according to a script path with the highest score, executes the compilation script and captures compilation output in real time, and determines a corresponding compilation software installation package. In this way, the convenience, efficiency and security of software installation package compilation can be improved.
[0217] In another embodiment, the automatic compilation method based on web interaction can be configured separately from the central processor 9100, for example, the automatic compilation method based on web interaction can be configured as a chip connected with the central processor 9100 to realize the function of the automatic compilation method based on web interaction through the control of the central processor.
[0218] As shown in Figure 3 The electronic device 9600 can also include a communication module 9110, an input unit 9120, an audio processor 9130, a display 9160, and a power supply 9170. It should be noted that the electronic device 9600 does not necessarily include all the components shown in Figure 3All the components shown in the electronic device 9600; in addition, the electronic device 9600 can further include Figure 3 components not shown in the electronic device 9600 can be referred to the prior art.
[0219] As shown in FIG. 9, the central processing unit 9100, which is sometimes also referred to as a controller or operation control, can include a microprocessor or other processor device and / or logic device, which receives input and controls the operation of the various components of the electronic device 9600. Figure 3
[0220] The memory 9140, for example, can be one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. Information relating to the failure described above can be stored, and in addition, a program for executing the information can be stored. The central processing unit 9100 can execute the program stored in the memory 9140 to achieve information storage or processing, etc.
[0221] The input unit 9120 provides input to the central processing unit 9100. The input unit 9120 is, for example, a key or a touch input device. The power supply 9170 is used to supply power to the electronic device 9600. The display 9160 is used to display display objects such as images and text. The display can be, for example, an LCD display, but is not limited thereto.
[0222] The memory 9140 can be a solid state memory such as a read only memory (ROM), a random access memory (RAM), a SIM card, etc. It can also be a memory that saves information even when power is off, can be selectively erased, and is provided with more data, and examples of such a memory are sometimes referred to as an EPROM, etc. The memory 9140 can also be some other type of device. The memory 9140 includes a buffer memory 9141 (sometimes referred to as a buffer). The memory 9140 can include an application / function storage section 9142 for storing application programs and function programs or for storing a flow for executing the operation of the electronic device 9600 by the central processing unit 9100.
[0223] The memory 9140 can further include a data storage section 9143 for storing data such as contacts, digital data, pictures, sounds, and / or any other data used by the electronic device. A driver storage section 9144 of the memory 9140 can include various drivers of the electronic device for communication functions and / or for executing other functions of the electronic device such as a messaging application, a contact application, etc.
[0224] The communication module 9110 is a transmitter / receiver that transmits and receives signals via the antenna 9111. The communication module 9110 is coupled to the central processor 9100 to provide input signals and receive output signals, as in the case of a conventional mobile communication terminal.
[0225] Based on different communication technologies, a plurality of communication modules 9110, such as a cellular network module, a Bluetooth module, and / or a wireless local area network module, can be provided in the same electronic device. The communication module 9110 is also coupled to the speaker 9131 and the microphone 9132 via the audio processor 9130 to provide audio output via the speaker 9131 and receive audio input from the microphone 9132, thereby implementing a conventional telecommunication function. The audio processor 9130 can include any suitable buffer, decoder, amplifier, etc. In addition, the audio processor 9130 is also coupled to the central processor 9100, thereby enabling recording on the local device via the microphone 9132 and playing stored sound on the local device via the speaker 9131.
[0226] The embodiments of the present application also provide a computer readable storage medium capable of implementing all steps of the automatic compiling method based on web interaction with the execution subject being a server or a client in the above-described embodiments, wherein the computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement all steps of the automatic compiling method based on web interaction with the execution subject being a server or a client in the above-described embodiments, for example, the steps of:
[0227] Step S101: a user performs identity authentication through a web interface, receives an identity authentication request of the user, verifies the identity authentication request according to a preset multi-factor authentication algorithm, if the verification is passed, acquires role information of the user, performs project visibility hierarchical control according to the role information and a preset permission matrix model, determines a list of compilable projects within a permission range of the user, and enables the user to select a project through the list of compilable projects;
[0228] Step S102: receiving a target project selected by the user from the list of compilable projects, retrieving a corresponding parameter configuration template from a preset project meta database according to a project type identifier of the target project, parsing interface description information in the parameter configuration template, determining corresponding form controls and layout structures, performing priority merging on preset user historical preference values and system recommended values, determining corresponding default parameter values, performing parameter initialization on the form controls and the layout structures according to the default parameter values, and determining a corresponding compilation parameter configuration interface, so that the user configures compilation parameters according to the compilation parameter configuration interface;
[0229] Step S103: receiving the user-confirmed compilation parameters, performing static verification of the compilation parameters according to the current role of the user, performing dynamic verification of the compilation parameters according to real-time system resource usage, obtaining a candidate script set according to the compilation parameters passing the static verification and the dynamic verification, performing matching degree scoring on the current compilation environment according to the environment requirements and dependency conditions in the metadata of the candidate script set, determining a final compilation script according to the script path with the highest score, executing the compilation script and capturing the compilation output in real time, and determining a corresponding compilation software installation package.
[0230] From the above description, it can be known that the computer readable storage medium provided by the embodiments of the present application can enable a user to perform identity authentication through a web interface, verify an identity authentication request according to a multi-factor authentication algorithm, perform project visibility classification according to a permission model, obtain a list of compilable projects within the user's permission range, receive a target project selected by the user from the list of compilable projects, display a compilation parameter configuration interface of the target project according to parameter values determined according to a priority merging strategy, receive user-confirmed compilation parameters, perform dynamic verification and static verification on the compilation parameters, obtain a candidate script set, perform environment dependency matching degree scoring on the candidate script set, determine a final compilation script according to the script path with the highest score, execute the compilation script and capture the compilation output in real time, and determine a corresponding compilation software installation package. In this way, the convenience, efficiency and security of software installation package compilation can be improved.
[0231] The embodiments of the present application also provide a computer program product capable of implementing all steps of the automatic compilation method based on web interaction with the execution subject being a server or a client in the above embodiments. The computer program / instruction is executed by a processor to implement the steps of the automatic compilation method based on web interaction, for example, the computer program / instruction implements the following steps:
[0232] Step S101: a user performs identity authentication through a web interface, receives an identity authentication request of the user, verifies the identity authentication request according to a preset multi-factor authentication algorithm, obtains role information of the user if the verification is passed, performs project visibility classification control according to the role information and a preset permission matrix model, and determines a list of compilable projects within the user's permission range, so that the user can select a project through the list of compilable projects.
[0233] Step S102: receiving a target item selected by a user from the list of compilable items, retrieving a corresponding parameter configuration template from a preset item metadata database according to an item type identifier of the target item, parsing interface description information in the parameter configuration template to determine corresponding form controls and a layout structure, performing priority merging on preset user historical preference values and system recommended values to determine corresponding default parameter values, performing parameter initialization on the form controls and the layout structure according to the default parameter values, and determining a compilation parameter configuration interface to enable the user to perform compilation parameter configuration according to the compilation parameter configuration interface.
[0234] Step S103: receiving compilation parameters confirmed by the user, performing static verification of the compilation parameters according to a current role of the user, performing dynamic verification of the compilation parameters according to real-time system resource usage, obtaining a candidate script set according to compilation parameters passing the static verification and the dynamic verification, performing matching degree scoring on a current compilation environment according to environment requirements and dependency conditions in metadata of the candidate script set, determining a final compilation script according to a script path with the highest score, executing the compilation script and capturing compilation output in real time, and determining a corresponding compilation software installation package.
[0235] As can be seen from the above description, the computer program product provided by the embodiment of the present application enables a user to perform identity authentication through a webpage interface, verifies an identity authentication request according to a multi-factor authentication algorithm, performs project visibility grading according to a permission model, obtains a list of compilable items within a user permission range, receives a target item selected by the user from the list of compilable items, displays a compilation parameter configuration interface of the target item according to parameter values determined according to a priority merging strategy, receives compilation parameters confirmed by the user, performs dynamic verification and static verification on the compilation parameters, obtains a candidate script set, performs environment dependency matching degree scoring on the candidate script set, determines a final compilation script according to a script path with the highest score, executes the compilation script and captures compilation output in real time, and determines a corresponding compilation software installation package. In this way, the convenience, efficiency, and security of software installation package compilation can be improved.
[0236] Those skilled in the art will understand that the embodiments of the present application can be provided as a method, device, or computer program product. Therefore, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROMs, optical storage, etc.) containing computer-usable program code.
[0237] The computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart Figure 1 one or more functions specified in the flowchart or multiple flows and / or blocks. Figure 1 one or more functions specified in the flowchart or multiple flows and / or blocks.
[0238] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device that implements the functions specified in the flowchart Figure 1 one or more functions specified in the flowchart or multiple flows and / or blocks. Figure 1 one or more functions specified in the flowchart or multiple flows and / or blocks.
[0239] These computer program instructions can also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart Figure 1 one or more functions specified in the flowchart or multiple flows and / or blocks. Figure 1 one or more functions specified in the flowchart or multiple flows and / or blocks.
[0240] The principles and implementation manners of the present application are described in the specific embodiments, and the above embodiment descriptions are only used to help understand the method of the present application and its core idea; meanwhile, for those skilled in the art, according to the idea of the present application, the specific implementation manners and application ranges can be changed, and the above description should not be understood as the limitation of the present application.
Claims
1. An automatic compiling method based on webpage interaction, characterized in that, The method comprises: The user performs identity authentication through a web interface, receives an identity authentication request of the user, verifies the identity authentication request according to a preset multi-factor authentication algorithm, obtains role information of the user if the verification is passed, performs project visibility hierarchical control according to the role information and a preset permission matrix model, determines a list of compilable projects within a user permission range, so that the user can select a project through the list of compilable projects; Receiving a target project selected by the user from the list of compilable projects, retrieving a corresponding parameter configuration template from a preset project metadata database according to a project type identifier of the target project, determining corresponding form controls and layout structures by analyzing interface description information in the parameter configuration template, merging priority of preset user historical preference values and system recommended values to determine corresponding default parameter values, parameter initializing the form controls and the layout structures according to the default parameter values, determining a compilation parameter configuration interface, so that the user configures compilation parameters according to the compilation parameter configuration interface; Receiving user-confirmed compilation parameters, performing static verification of the compilation parameters according to the current role of the user, performing dynamic verification of the compilation parameters according to real-time system resource usage, obtaining a candidate script set according to the compilation parameters that pass the static verification and the dynamic verification, matching a current compilation environment according to environment requirements and dependency conditions in metadata of the candidate script set, determining a final compilation script according to a script path with the highest score, executing the compilation script and capturing compilation output in real time, and determining a corresponding compilation software installation package.
2. The method of claim 1, wherein, The receiving of the identity authentication request of the user and the verification of the identity authentication request according to the preset multi-factor authentication algorithm comprises: Receiving an identity authentication request of the user, performing PBKDF2 hash operation on user account data in the identity authentication request to determine a first verification factor; Verifying validity of a dynamic verification code in the identity authentication request within a time window to determine a second verification factor; Comparing similarity of device fingerprints in the identity authentication request with pre-stored registered features to determine a third verification factor; When a weighted score of the first verification factor, the second verification factor and the third verification factor exceeds an authentication threshold, outputting a verification pass signal.
3. The method of claim 1, wherein, The obtaining of the role information of the user and the project visibility hierarchical control according to the role information and the preset permission matrix model to determine the list of compilable projects within the user permission range comprises: Obtaining role information of the user, wherein the role information comprises user login credentials, device information and environment information; Determining corresponding role levels, project security levels and network environment types according to enterprise organizational structure data, a compilation project security level classification table and a network access policy configuration file, and establishing a three-dimensional permission matrix according to the role levels, the project security levels and the network environment types. According to the preset visibility filtering algorithm, the role information and the three-dimensional permission matrix are subjected to project visibility hierarchical control, and a list of compilable projects within the scope of the corresponding user permission is determined.
4. The method of claim 1, wherein, The corresponding parameter configuration template is retrieved from the preset project meta database according to the project type identifier of the target project, including: The project identifier of the target project is parsed, and the project type, version number, and platform dependency information are extracted; According to the project type, a matching parameter template set is retrieved from the preset project meta database, and the parameter template set is filtered according to the version number and the platform dependency information to determine the corresponding parameter configuration template.
5. The method of claim 1, wherein, The priority of the preset user historical preference value and the system recommended value is combined to determine the corresponding default parameter value, and the form control and the layout structure are parameter initialized according to the default parameter value to determine the corresponding compilation parameter configuration interface, including: The parameter setting records of the user's recent multiple similar projects are extracted from the user behavior log database to determine the corresponding user historical preference value, and the optimized parameter configuration recommended by the system for the target project is obtained from the project knowledge base to determine the corresponding system recommended value; A three-level priority merging strategy is established, and whether there is a user's recent setting value is judged according to the priority merging strategy. If there is, the user's recent setting value is used to generate a parameter initialization mapping table, and the form control and the layout structure are parameter initialized according to the default parameter value in the parameter initialization mapping table to determine the corresponding compilation parameter configuration interface; If not, it is judged whether there is a user historical preference value. If there is, the user historical preference value is used to generate a parameter initialization mapping table, and the form control and the layout structure are parameter initialized according to the default parameter value in the parameter initialization mapping table to determine the corresponding compilation parameter configuration interface; If not, the system recommended value is used to generate a parameter initialization mapping table, and the form control and the layout structure are parameter initialized according to the default parameter value in the parameter initialization mapping table to determine the corresponding compilation parameter configuration interface.
6. The automatic compilation method based on webpage interaction according to claim 1, characterized in that, The user-confirmed compilation parameters are received, the static verification of the compilation parameters is performed according to the current role of the user, the dynamic verification of the compilation parameters is performed according to the real-time system resource usage, and the candidate script set is obtained according to the compilation parameters passing the static verification and the dynamic verification, including: The user-confirmed compilation parameters are received, the parameter constraint rule set corresponding to the current role of the user is obtained from the preset permission database, the compilation parameters are verified with the parameter constraint rule set to determine the corresponding static verification result, wherein the parameter constraint rule set includes the parameter range allowed to operate, the parameter combination prohibited to use, and the environment variable limit; The real-time resource indicators of the current server are monitored, the resource parameter mapping model is established to perform parameter feasibility prediction on the real-time resource indicators to determine the corresponding dynamic verification result; The candidate script set is obtained according to the parameter identifier of the compilation parameters passing the static verification and the dynamic verification.
7. The automatic compilation method based on webpage interaction according to claim 1, characterized in that, The matching degree scoring of the current compiling environment according to the environment requirements and the dependency conditions in the candidate script set metadata, the final compiling script is determined according to the script path with the highest score, comprising: The metadata file associated with each candidate script is parsed, the environment requirement field and the dependency condition field are extracted, the environment requirement field and the dependency condition field are standardized and parsed, and the corresponding structured condition object is determined; The system parameters of the current compiling environment are detected, the system parameters of the current compiling environment are differentially matched according to different condition types in the structured condition object, the corresponding environment matching degree score is determined, and the final compiling script is determined according to the script path with the highest score.
8. An apparatus for automatic compilation based on web page interaction, characterized by, The device comprises: The compilable project list determination module is used for user identity authentication through a web interface, receiving a user identity authentication request, verifying the identity authentication request according to a preset multi-factor authentication algorithm, if the verification is passed, obtaining the role information of the user, performing project visibility hierarchical control according to the role information and a preset permission matrix model, determining the list of compilable projects within the user permission range, so that the user can select projects through the list of compilable projects; The compiling parameter configuration interface determination module is used for receiving a target project selected by the user from the list of compilable projects, retrieving a corresponding parameter configuration template from a preset project metadata database according to the project type identifier of the target project, parsing the interface description information in the parameter configuration template, determining the form controls and the layout structure, merging the priority of the preset user historical preference value and the system recommended value, determining the default parameter value, parameter initializing the form controls and the layout structure according to the default parameter value, and determining the compiling parameter configuration interface, so that the user can configure the compiling parameters according to the compiling parameter configuration interface; The compiling software installation package determination module is used for receiving the compiling parameters confirmed by the user, performing static verification of the compiling parameters according to the current role of the user, performing dynamic verification of the compiling parameters according to the real-time system resource usage, obtaining a candidate script set according to the compiling parameters that pass the static verification and the dynamic verification, scoring the matching degree of the current compiling environment according to the environment requirements and the dependency conditions in the candidate script set metadata, determining the final compiling script according to the script path with the highest score, executing the compiling script and capturing the compiling output in real time, and determining the corresponding compiling software installation package.
9. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, The processor executes the program to realize the steps of the automatic compiling method based on web interaction in any one of claims 1 to 7.
10. A computer-readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to realize the steps of the automatic compiling method based on web interaction in any one of claims 1 to 7.