Data processing method and device, equipment, storage medium and product
By automatically generating preview graphical code of application subroutines in the session page and automatically importing it into the target workspace, the inefficiency caused by frequent switching of branches and environments during application subroutine development is solved, and an efficient development and testing process is achieved.
Patent Information
- Application Number
- CN202410635157.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2025-11-21
AI Technical Summary
During the development of application subroutines, project personnel need to frequently switch branches and environments, resulting in low development efficiency.
By displaying graphical code application instructions on the session page, preview graphical codes for application subroutines are automatically generated and automatically imported into the target workspace based on configuration and project information to generate the first development code, thus decoupling the development and preview processes.
It improves the development efficiency of application subroutines, reduces manual intervention, and decouples the project development and testing processes.
Smart Images

Figure CN120994182A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to a data processing method, a data processing apparatus, a computer device, a computer-readable storage medium, and a data processing product. Background Technology
[0002] With advancements in technology, application subroutines (also known as mini-programs) are widely used in people's lives due to their installation-free nature. Research has found that application subroutines typically utilize multiple different configurations (such as different branches and environments) during development. When project personnel need to preview or test the application subroutine, developers must pause development, switch to the corresponding branch and environment to generate the necessary code, and then switch back to the original branch and environment. This process impacts the development schedule and leads to lower development efficiency for application subroutines. Summary of the Invention
[0003] This application provides a data processing method, apparatus, device, computer-readable storage medium, and product that can improve the development efficiency of application subroutines.
[0004] On one hand, embodiments of this application provide a data processing method, including:
[0005] When the session triggering conditions are detected, a graphic code application instruction is displayed on the session page. The graphic code application instruction is used to indicate how to apply for a preview graphic code for the application subroutine; the preview graphic code is used to preview the application subroutine.
[0006] In response to the session interaction information used to request a preview graphic code on the session page, the preview graphic code corresponding to the application subroutine is displayed on the session page.
[0007] In this embodiment, when the session triggering condition is detected, a graphic code application instruction is displayed on the session page. This instruction indicates how to apply for a preview graphic code for the application subroutine. The preview graphic code is used to preview the application subroutine. In response to the session interaction information for applying for the preview graphic code on the session page, the corresponding preview graphic code for the application subroutine is displayed on the session page. Therefore, by inputting session interaction information according to the graphic code application instruction, a preview graphic code for the application subroutine can be automatically generated, decoupling the application subroutine's project development process from its preview process, thereby improving the development efficiency of the application subroutine.
[0008] On one hand, embodiments of this application provide a data processing method, including:
[0009] Obtain the configuration information and project information of the application subroutine. The project information includes the workspace identifier of the application subroutine, and the configuration information is used to configure at least one branch and environment of the application subroutine.
[0010] The preset script is executed according to the configuration information and project information to obtain the first development code of the application subroutine. The first development code is obtained by configuring the code of the application subroutine based on the configuration information. The code of the application subroutine is stored in the target workspace, and the target workspace corresponds to the workspace identifier.
[0011] Output the preview graphical code of the application subroutine. The preview graphical code is used to preview the application subroutine generated based on the first development code.
[0012] In this embodiment, configuration information and project information of the application subroutine are obtained. The project information includes the workspace identifier of the application subroutine. A preset script is executed according to the configuration information and project information to obtain the first development code of the application subroutine. The first development code is obtained by configuring the application subroutine's code based on the configuration information. The application subroutine's code is stored in the target workspace, which corresponds to the workspace identifier. A preview graphical code of the application subroutine is output, which is used to preview the application subroutine generated based on the first development code. It can be seen that the application subroutine's code can be automatically imported into the target workspace through the project information, and the application subroutine's code in the target workspace can be configured based on the configuration information. This decouples the application subroutine's project development process and development code generation process, thereby improving the development efficiency of the application subroutine.
[0013] On one hand, embodiments of this application provide a data processing apparatus, which includes:
[0014] The display unit is used to display a graphic code application instruction information on the session page when the session triggering conditions are detected. The graphic code application instruction information is used to indicate the application subroutine's method of applying for a preview graphic code; the preview graphic code is used to preview the application subroutine.
[0015] And to display the preview graphic code corresponding to the application subroutine on the session page in response to session interaction information used to request a preview graphic code on the session page.
[0016] In one implementation, after displaying the preview graphic code corresponding to the application subroutine on the session page in response to session interaction information for requesting a preview graphic code on the session page, the display unit is further configured to:
[0017] When the preview image code is scanned, the preview page of the application subroutine is displayed.
[0018] In one implementation, the display unit is configured to, in response to session interaction information for requesting a preview graphic code on the session page, display a preview graphic code corresponding to the application subroutine on the session page, specifically configured to:
[0019] When the session interaction information in the session page carries valid configuration information, the preview graphic code corresponding to the application subroutine is displayed in the session page in response to the session interaction information.
[0020] In one implementation, the display unit is configured to, in response to session interaction information for requesting a preview graphic code on the session page, display a preview graphic code corresponding to the application subroutine on the session page, specifically configured to:
[0021] When the session interaction information in the session page carries invalid configuration information, the configuration control is displayed in the session page in response to the session interaction information;
[0022] In response to the selection operation of the configuration control, a preview graphic code corresponding to the application subroutine is displayed in the session page.
[0023] In one implementation, when the session interaction information in the session page carries invalid configuration information, the display unit is configured to, in response to the session interaction information, display configuration controls in the session page, specifically for:
[0024] When the session interaction information in the session page carries invalid configuration information, the branch configuration control is displayed in the session page in response to the session interaction information;
[0025] When a branch configuration control is selected, display the environment configuration control in the session page;
[0026] The display unit is used to, in response to the selection operation of the configuration control, display a preview graphic code corresponding to the application subroutine in the session page, specifically for:
[0027] When the environment configuration control is clicked, a preview graphic code corresponding to the application subroutine is displayed on the session page.
[0028] In one implementation, the display unit is configured to display the environment configuration control in the session page in response to the branch configuration control being selected, specifically for:
[0029] When the branch configuration control is selected, the branch configuration control displayed on the session page will be changed to a prompt message indicating that the branch has been selected;
[0030] Display environment configuration controls on the session page.
[0031] In one implementation, when the environment configuration control is clicked, the display unit is used to display a preview graphical code corresponding to the application subroutine in the session page, specifically for:
[0032] In response to the selection operation of the environment configuration control, display the configuration progress information of the selected branch and the selected environment;
[0033] Below the configuration progress information, preview graphic codes for the application subroutines are displayed.
[0034] In one implementation, after displaying the preview graphic code corresponding to the application subroutine on the session page in response to session interaction information for requesting a preview graphic code on the session page, the display unit is further configured to:
[0035] Below the preview image code, a time limit information is displayed.
[0036] On one hand, embodiments of this application provide a data processing apparatus, which includes:
[0037] The acquisition unit is used to acquire the configuration information and project information of the application subroutine. The project information includes the workspace identifier of the application subroutine, and the configuration information is used to configure at least one branch and environment of the application subroutine.
[0038] The processing unit is used to execute a preset script according to the configuration information and project information to obtain the first development code of the application subroutine. The first development code is obtained by configuring the code of the application subroutine based on the configuration information. The code of the application subroutine is stored in the target workspace, and the target workspace corresponds to the workspace identifier.
[0039] The output unit is used to output the preview graphical code of the application subroutine, which is used to preview the application subroutine generated based on the first development code.
[0040] In one implementation, the processing unit is configured to execute a preset script according to configuration information and project information to obtain the first development code of the application subroutine, specifically for:
[0041] If a target workspace corresponding to the workspace identifier exists, the application subroutine's code is configured based on the configuration information to obtain the application subroutine's first development code.
[0042] In one implementation, the configuration information includes a target branch and a target environment; the processing unit is configured to configure the application subroutine's code based on the configuration information to obtain the application subroutine's first development code, specifically for:
[0043] Switch the application subroutine's code to the target branch;
[0044] Configure the runtime environment of the code switched to the target branch to the target environment, and obtain the first development code of the application subroutine.
[0045] In one implementation, the project information also includes the address of the application subroutine's code; the processing unit is further configured to:
[0046] If no target work area exists corresponding to the work area identifier, then create the target work area corresponding to the work area identifier.
[0047] Based on the obtained address, the code of the application subroutine is pulled into the target workspace.
[0048] In one implementation, the processing unit is configured to obtain configuration information of the application subroutine, specifically for:
[0049] The message ciphertext and message signature are obtained. The message ciphertext is obtained by the sender of the message encrypting the plaintext parameters, which include the configuration information of the application subroutine. The message signature is generated by the sender of the message ciphertext based on the plaintext parameters and the symmetric key.
[0050] The ciphertext of the message is decrypted using a symmetric key to obtain the plaintext parameters;
[0051] Generate a verification signature based on plaintext parameters and a symmetric key;
[0052] If the verification signature matches the message signature, the plaintext parameter is considered valid.
[0053] In one implementation, all N components are database components, and the configuration information includes the target branch and the target environment; the processing unit is further configured to:
[0054] Get the branch list and environment list of the application subroutine. The branch list contains at least one candidate branch, and the environment list contains at least one candidate environment.
[0055] If the target branch is not included in the candidate branches, a branch list is output so that the recipient of the branch list can display the branch configuration control based on the branch list;
[0056] If the target environment is not included in the candidate environments, an environment list is output so that the recipient of the environment list can display the environment configuration control based on the environment list;
[0057] If the target branch is contained in the candidate branch and the target environment is contained in the candidate environment, then continue with the steps of configuring the application subroutine's code based on the configuration information.
[0058] In one implementation, if there is an incompletely generated second development code, the processing unit is further configured to:
[0059] Output a usage notification message to indicate that development code is currently being generated; or...
[0060] After the second development code is generated, the first development code of the application subroutine is obtained by executing a preset script according to the configuration information and project information.
[0061] In one implementation, the configuration information is extracted by the conversation tool from the conversation interaction information, and the workspace identifier of the application subroutine is the identifier of the social conversation to which the conversation interaction information belongs; the output unit is used to output the preview graphic code of the application subroutine, specifically for:
[0062] Return a preview graphical code of the application subroutine to the conversation tool so that the conversation tool can display the preview graphical code of the application subroutine in social conversations.
[0063] In one embodiment, the processing unit is further configured to:
[0064] Obtain the connection request sent by the conversation tool, which is embedded in the social conversation. The connection request includes the identity verification information of the conversation tool. The identity verification information includes at least one of the following: the identifier of the conversation tool, the identifier of the project associated with the conversation tool, and the identifier of the application subroutine associated with the conversation tool.
[0065] If the identity verification information of the session tool passes the identity verification, a connection is established with the session tool.
[0066] Accordingly, this application provides a computer device comprising:
[0067] Memory, which stores computer programs;
[0068] A processor is used to load computer programs to implement the above data processing methods.
[0069] Accordingly, this application provides a computer-readable storage medium storing a computer program adapted to be loaded by a processor and executed by the above-described data processing method.
[0070] Accordingly, this application provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned data processing method.
[0071] In this embodiment, the server obtains the configuration information and project information of the application subroutine. The project information includes the workspace identifier of the application subroutine. A preset script is executed according to the configuration information and project information to obtain the first development code of the application subroutine. The first development code is obtained by configuring the application subroutine's code based on the configuration information. The application subroutine's code is stored in the target workspace, which corresponds to the workspace identifier. A preview graphical code of the application subroutine is output to the terminal device so that the terminal device can display the preview graphical code on the session page. The preview graphical code is used to preview the application subroutine generated based on the first development code. It can be seen that the application subroutine's code can be automatically imported into the target workspace through the project information, and the application subroutine's code in the target workspace can be configured based on the configuration information, achieving the purpose of decoupling the application subroutine's project development process and project testing process. For the terminal device user, by entering session interaction information according to the graphical code application instructions, the preview graphical code of the application subroutine can be automatically generated, effectively improving the development efficiency of the application subroutine. Attached Figure Description
[0072] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0073] Figure 1 A data processing scenario diagram provided in an embodiment of this application;
[0074] Figure 2 A flowchart illustrating a data processing method provided in an embodiment of this application;
[0075] Figure 3 A flowchart illustrating another data processing method provided in this application embodiment;
[0076] Figure 4a A data processing architecture diagram provided for an embodiment of this application;
[0077] Figure 4b This is a schematic diagram of a data processing procedure provided in an embodiment of this application;
[0078] Figure 5 A flowchart illustrating another data processing method provided in this application embodiment;
[0079] Figure 6a A schematic diagram of session triggering provided in an embodiment of this application;
[0080] Figure 6bA schematic diagram of a session page provided for an embodiment of this application;
[0081] Figure 6c Another schematic diagram of a session page provided for an embodiment of this application;
[0082] Figure 6d Another schematic diagram of a session page provided for an embodiment of this application;
[0083] Figure 6e This application provides a schematic diagram of a configuration process.
[0084] Figure 7 This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application;
[0085] Figure 8 This is a schematic diagram of another data processing apparatus provided in an embodiment of this application;
[0086] Figure 9 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation
[0087] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0088] This application's embodiments relate to the processing of application subroutines. Here, an application subroutine can refer to an installation-free application, that is, an application that can be used without downloading and installing. Application subroutines are also commonly known as mini-programs, and they typically reside within a client application. A client application (also called an application client or APP client) refers to a program that is downloaded, installed, and runs on a terminal. Terminals can include various types of clients, including but not limited to: instant messaging (IM) clients, social networking services (SNS) clients, content service clients (such as news clients), image processing clients, search clients, etc.
[0089] Application subroutines are typically developed using application subroutine development tools. During development, if project personnel need to use the application subroutine's code, development must be paused, and (if the branch and environment corresponding to the code differ from the current branch and environment) the branch and environment must be switched as needed. Furthermore, after generating the application subroutine's code, the process must be repeated, switching back to the original application subroutine development branch and environment. This process impacts the development schedule and leads to low development efficiency for application subroutines.
[0090] This application provides a data processing scheme that can improve the development efficiency of application subroutines. Figure 1 A data processing scenario diagram provided for an embodiment of this application, such as Figure 1 As shown, the data processing scenario provided in this application includes a terminal device 101 and a server 102. The data processing solution provided in this application can be executed by either the terminal device 101 or the server 102. The terminal device may include, but is not limited to, devices capable of running application subroutines, such as smartphones (e.g., Android phones, iOS phones), tablets, portable personal computers, mobile internet devices (MIDs), smart voice interaction devices, smart home appliances, vehicle terminals, aircraft, and wearable devices. This application embodiment does not limit this. The server may be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms. This application embodiment does not limit this.
[0091] It should be noted that, Figure 1 The number of terminal devices and servers is for illustrative purposes only and does not constitute an actual limitation of this application. Terminal device 101 and server 102 can be connected via wired or wireless means, and this application does not impose any restrictions on this.
[0092] The general flow of the data processing solution provided in this application is as follows:
[0093] (1) When the session triggering conditions are detected, the terminal device 101 displays a graphic code application instruction on the session page; wherein, the graphic code application instruction is displayed in the social session on the session page, and the social session corresponds to the application subroutine; for example, social session 1 corresponds to application subroutine 1, and social session 2 corresponds to application subroutine 2. The social session can be participated in by at least one party, and the graphic code application instruction is used to indicate the application subroutine's preview graphic code application method (such as parameter format, input order, etc.). The session triggering conditions can be dynamically adjusted based on needs, and this application does not limit this; for example, the session triggering conditions may be detecting that the trigger button of the session tool (such as robot, group assistant, group system tool, etc.) is triggered, or detecting specific text used to trigger the session tool (such as @ robot) in the social session, or detecting a preset gesture, etc.
[0094] (2) Terminal device 101 obtains the configuration information input by the object and sends the configuration information to server 102. In one embodiment, after obtaining the configuration information input by the object, terminal device 101 can encrypt the configuration information to obtain message ciphertext and message signature; wherein, message ciphertext is obtained by encrypting plaintext parameters, and the plaintext parameters include the configuration information of the application subroutine; in addition, the plaintext parameters may also include the identity verification information of the conversation tool in the social conversation, and the identity verification information includes one or more of the following: the identifier of the conversation tool, the identifier of the project associated with the conversation tool, and the identifier of the application subroutine associated with the conversation tool. The message signature is generated by terminal device 101 based on the plaintext parameters and symmetric key (such as by hash calculation of the plaintext parameters and symmetric key).
[0095] (3) Server 102 obtains the configuration information and project information of the application subroutine. The project information includes the workspace identifier of the application subroutine. The project information can be pre-configured in server 102. The configuration information is used to configure at least one branch and environment of the application subroutine. In one embodiment, the configuration information of the application subroutine is contained in plaintext parameters. The plaintext parameters are obtained by decrypting the ciphertext of the message sent by terminal device 101. The plaintext parameters may also carry the identity verification information of the session tool. Server 102 can determine the corresponding project information based on the identity verification information. In another embodiment, the configuration information of the application subroutine is contained in plaintext parameters. The plaintext parameters are obtained by decrypting the ciphertext of the message sent by terminal device 101. The plaintext parameters may also carry project information. Server 102 can directly obtain the configuration information and project information of the application subroutine through the plaintext parameters.
[0096] (4) Server 102 executes a preset script according to the configuration information and project information to obtain the first development code of the application subroutine. The first development code is obtained by configuring the code of the application subroutine based on the configuration information. The first development code can be used to preview and test the application subroutine. For the same application subroutine, multiple development codes can be generated. These development codes can be obtained by configuring the code of the application subroutine based on the same configuration information or by configuring the code of the application subroutine based on different configuration information. The code of the application subroutine is stored in the target workspace, which corresponds to the workspace identifier. In one embodiment, the project information also includes the address for obtaining the code of the application subroutine. Server 102 determines whether there is a target workspace corresponding to the workspace identifier. If there is a target workspace corresponding to the workspace identifier, server 102 configures the code of the application subroutine based on the configuration information to obtain the first development code of the application subroutine. If there is no target workspace corresponding to the workspace identifier, server 102 creates a target workspace corresponding to the workspace identifier and pulls the code of the application subroutine into the target workspace according to the address.
[0097] (5) Server 102 sends a preview graphic code corresponding to the application subroutine to terminal device 101, so that terminal device 101 displays the preview graphic code corresponding to the application subroutine in the conversation page (social conversation). The preview graphic code is used to preview the application subroutine generated based on the first development code. It can be understood that during the preview process of the application subroutine, project personnel can test the page, functions, etc. of the application subroutine.
[0098] In this embodiment, the server obtains the configuration information and project information of the application subroutine. The project information includes the workspace identifier of the application subroutine. A preset script is executed according to the configuration information and project information to obtain the first development code of the application subroutine. The first development code is obtained by configuring the application subroutine's code based on the configuration information. The application subroutine's code is stored in the target workspace, which corresponds to the workspace identifier. A preview graphical code of the application subroutine is output to the terminal device so that the terminal device can display the preview graphical code on the session page. The preview graphical code is used to preview the application subroutine generated based on the first development code. It can be seen that the application subroutine's code can be automatically imported into the target workspace through the project information, and the application subroutine's code in the target workspace can be configured based on the configuration information, achieving the purpose of decoupling the application subroutine's project development process and project testing process. For the terminal device user, by entering session interaction information according to the graphical code application instructions, the preview graphical code of the application subroutine can be automatically generated, effectively improving the development efficiency of the application subroutine.
[0099] Based on the above data processing scheme, this application proposes a more detailed data processing method. The data processing method proposed in this application will be described in detail below with reference to the accompanying drawings.
[0100] Please see Figure 2 , Figure 2 A flowchart illustrating a data processing method provided in this application embodiment, which can be executed by a computer device; for example, by... Figure 1 The server 102 shown is executing.
[0101] like Figure 2 As shown, the data processing method may include the following steps S201-S203:
[0102] S201. Obtain the configuration information and project information of the application subroutine.
[0103] The configuration information of the application subroutine is used to configure at least one of the branches and environments of the application subroutine; for example, the configuration information includes branch 1, and the computer device can switch the application subroutine to branch 1 based on the configuration information; for another example, the configuration information includes environment 1, and the computer device can configure the runtime environment of the application subroutine to environment 1 based on the configuration information; for yet another example, the configuration information includes branch 1 and environment 1, and the computer device can configure the runtime environment of the application subroutine to environment 1 based on the configuration information and switch the application subroutine to branch 1.
[0104] Project information includes the workspace identifier for each application subroutine; each application subroutine has a unique workspace identifier. This means that when generating the development code for an application subroutine, each subroutine has an independent workspace that does not interfere with others. Each application subroutine's workspace can be used to execute scripts that generate its development code. In other words, after generating the development code for an application subroutine, one or more more development codes for that application subroutine can be generated using its workspace. For example, after generating development code 1 for application subroutine A by executing a script according to configuration information 1 in application subroutine A's workspace, it can continue to execute scripts according to configuration information 1 to generate development code 1 for application subroutine A, or it can execute scripts according to configuration information 2 to generate development code 2 for application subroutine A. The workspace for each application subroutine is independent of its development space and does not affect each other.
[0105] In one implementation, the computer device pre-stores one or more item information. The configuration information of the application subroutine is contained in plaintext parameters, which are obtained by decrypting the ciphertext of a message sent by the terminal device. The plaintext parameters may also include identification information such as the application subroutine identifier or item identifier. The computer device can determine the corresponding item information based on the identification information in the plaintext parameters; for example, if the plaintext parameters include an item identifier, the computer device determines the corresponding item information based on the item identifier.
[0106] In one embodiment, the step of a computer device obtaining plaintext parameters includes: the computer device obtaining the ciphertext of a message and a message signature sent by a terminal device (i.e., the sender of the ciphertext), wherein the ciphertext is obtained by the terminal device encrypting the plaintext parameters, and the message signature is generated by the terminal device based on the plaintext parameters and a symmetric key (e.g., the terminal device can perform a hash calculation on the plaintext parameters and the symmetric key to obtain the message signature). The computer device decrypts the ciphertext using the symmetric key (e.g., AESKey) to obtain the plaintext parameters. After obtaining the plaintext parameters, the computer device can generate a verification signature based on the plaintext parameters and the symmetric key, and verify the validity of the plaintext parameters by comparing the verification signature with the message signature. If the verification signature matches the message signature, the plaintext parameters are deemed valid; conversely, if the verification signature does not match the message signature, the plaintext parameters are deemed invalid.
[0107] In another implementation, the configuration information of the application subroutine is contained in plaintext parameters. The plaintext parameters are obtained by decrypting the ciphertext of the message sent by the terminal device. The plaintext parameters can directly carry project information, and the computer device can directly obtain the configuration information and project information of the application subroutine through the plaintext parameters.
[0108] S202. Execute the preset script according to the configuration information and project information to obtain the first development code of the application subroutine.
[0109] The first development code is obtained by configuring the application subroutine's code based on the configuration information. The first development code can be used to preview and test the application subroutine. Multiple development codes can be generated for the same application subroutine; these codes can be generated by configuring the application subroutine's code based on the same configuration information, or they can be generated by configuring the application subroutine's code based on different configuration information. The application subroutine's code is stored in the target workspace, which corresponds to a workspace identifier.
[0110] In one implementation, the computer device determines whether a target workspace corresponding to a workspace identifier exists. If a target workspace corresponding to a workspace identifier exists, the computer device configures the application subroutine code based on configuration information to obtain the first development code of the application subroutine. In one embodiment, the configuration information includes a target branch and a target environment. The computer device switches the application subroutine code to the target branch and configures the runtime environment of the code switched to the target branch as the target environment to obtain the first development code of the application subroutine.
[0111] In another implementation, the project information also includes the address for obtaining the application subroutine's code (such as the project's Git address), where the application subroutine's code can be pre-uploaded by the developer. The computer device determines whether a target workspace corresponding to the workspace identifier exists. If no target workspace corresponding to the workspace identifier exists, the computer device creates the target workspace corresponding to the workspace identifier and pulls the application subroutine's code into the target workspace according to the obtained address.
[0112] Understandably, by pre-uploading the application subroutine code to the target address, the project team can access the application subroutine code without impacting the developers' work. By pulling the application subroutine code to its corresponding workspace and configuring it according to the configuration information, manual intervention can be reduced, decoupling the application subroutine's development and testing processes, thereby improving development efficiency.
[0113] S203. Output the preview graphic code of the application subroutine.
[0114] The application subroutine preview graphical code is used to preview the application subroutine generated based on the first development code.
[0115] In one implementation, the configuration information is extracted by the conversation tool (installed on the terminal device) from the conversation interaction information on the conversation page, and the workspace identifier of the application subroutine can be the identifier of the social conversation to which the conversation interaction information belongs (such as a group ID). The computer device returns a preview graphical code of the application subroutine to the conversation tool, so that the conversation tool can display the preview graphical code of the application subroutine on the conversation page.
[0116] In this embodiment, configuration information and project information of the application subroutine are obtained. The project information includes the workspace identifier of the application subroutine. A preset script is executed according to the configuration information and project information to obtain the first development code of the application subroutine. The first development code is obtained by configuring the application subroutine's code based on the configuration information. The application subroutine's code is stored in the target workspace, which corresponds to the workspace identifier. A preview graphical code of the application subroutine is output, which is used to preview the application subroutine generated based on the first development code. It can be seen that the application subroutine's code can be automatically imported into the target workspace through the project information, and the application subroutine's code in the target workspace can be configured based on the configuration information. This decouples the application subroutine's project development process and the development code generation process, thereby improving the development efficiency of the application subroutine. In other words, when project personnel need to generate development code to preview or test the application subroutine, developers do not need to pause development or manually switch branches and environments to generate the corresponding development code.
[0117] Please see Figure 3 , Figure 3 A flowchart illustrating another data processing method provided in this application embodiment, which can be executed by a computer device; for example, by... Figure 1 The server 102 shown is executing.
[0118] like Figure 3 As shown, the data processing method may include the following steps S301-S309:
[0119] S301. Obtain the configuration information and project information of the application subroutine.
[0120] In one implementation, the computer device establishes a connection with the terminal device before obtaining the configuration information of the application subroutine. In one embodiment, the computer device can determine whether to establish a connection with the session tool by verifying the validity of the session tool's Uniform Resource Locator (URL); wherein the session tool is embedded in the terminal device's social session, and the session tool may specifically be a bot, a group assistant, or a system tool, etc. The computer device receives a connection request sent by the session tool, the connection request including the session tool's identity verification information. If the session tool's identity verification information passes authentication, the computer device establishes a connection with the session tool; wherein the session tool's identity verification information includes at least one of the following: the session tool's identifier, the project identifier associated with the session tool, and the identifier of the application subroutine associated with the session tool.
[0121] In one implementation, the authentication information of the session tool includes a message signature (msg_signature), a timestamp, a nonce, and an echo string (echostr). The nonce, along with the timestamp and message signature, constructs a parameter set used to verify the authenticity of the request. The nonce ensures that even if the timestamp and other parameters are captured and replayed, the signature will differ due to the randomness of the nonce, thus preventing replay attacks. If the computer device agrees to establish a connection with the session tool, it returns an echo string to prove that the computer device can correctly receive and respond to the session tool's requests. These four parameters guarantee that the communication between the computer device and the session tool is secure, reliable, and authentic.
[0122] For detailed instructions on how computer devices can obtain configuration and project information from application subroutines, please refer to [link / reference]. Figure 2 The implementation method of step S201 will not be described in detail here.
[0123] In one embodiment, the project information is shown in Table 1:
[0124] Table 1
[0125]
[0126]
[0127] As shown in Table 1, the project information includes: project identifier "projectId", application subroutine identifier "appid", session tool address "wxRobortUrl" (which can be used to receive messages returned by the server), project name "projectName", application subroutine code retrieval address "projectGitUrl", session tool symmetric key "EncodingAESKey", session tool token "token", and session tool name "robotName". The project information in Table 1 is for illustrative purposes only. In actual applications, parameters can be added or removed based on requirements; for example, removing the project name and adding the session identifier.
[0128] S302. Determine if there is currently any development code being generated.
[0129] After obtaining the configuration information of the application subroutine, the computer device determines whether development code is currently being generated. In one embodiment, the computer device determines whether an executing script exists in the target workspace corresponding to the workspace identifier. If an executing script exists in the target workspace, the computer device determines that development code is being generated and continues to execute step S303; if no executing script exists in the target workspace, the computer device determines that no development code is being generated and continues to execute step S304. It should be noted that if no target workspace corresponding to the workspace identifier exists, the computer device determines that no development code is being generated and continues to execute step S304.
[0130] In addition, computer devices can also determine whether there is currently any development code being generated through process detection and other methods, and this application does not impose any restrictions on this.
[0131] S303, Output occupancy notification information.
[0132] The occupation notification message is used to indicate that development code is currently being generated. In one implementation, the computer device returns the occupation notification message to the terminal device, so that the terminal device displays the occupation notification message.
[0133] Optionally, the computer device may wait for the currently generated development code to complete before continuing to execute step S304; for example, assuming there is currently an ungenerated second development code (i.e., the computer device is generating the second development code), the computer device waits for the second development code to complete before continuing to execute step S304 after the second development code is generated.
[0134] S304. Determine if the configuration information is valid.
[0135] In one implementation, the configuration information includes a target branch and a target environment. The computer device obtains a branch list and an environment list of the application subroutine. The branch list contains at least one candidate branch, and the environment list contains at least one candidate environment. The computer device can determine whether the configuration information is valid by judging whether the target branch is contained in a candidate branch and whether the target environment is contained in a candidate environment. If the computer device determines that the configuration information is invalid, it continues to execute step S305; if the computer device determines that the configuration information is valid (the target branch is contained in a candidate branch, and the target environment is contained in a candidate environment), it continues to execute step S306. It should be noted that when the configuration information contains multiple parameters, invalid configuration information means that at least one parameter is invalid, and valid configuration information means that all parameters are valid. For example, if the configuration information includes a branch and an environment, the configuration information is invalid when the branch in the configuration information is valid but the environment is invalid; the configuration information is valid only when both the branch and the environment in the configuration information are valid.
[0136] Optionally, in addition to branches and environments, configuration information may include other parameters that can be adjusted during application subroutine development.
[0137] S305, Output configuration list.
[0138] The configuration list may include a branch list and an environment list. The branch list includes at least one candidate branch of the application subroutine, and the environment list includes at least one candidate environment of the application subroutine.
[0139] In one implementation, the computer device returns a configuration list to the terminal device, enabling the terminal device to display a configuration control based on the configuration list. In one embodiment, the configuration control displays at least one candidate configuration (such as a candidate branch or candidate environment). The user of the terminal device can set the configuration information of the application subroutine by selecting a candidate configuration from the configuration control.
[0140] In one implementation, if the configuration information contains an invalid branch (e.g., the target branch is not included in the candidate branches), or if the configuration information does not contain a branch, the computer device returns a branch list to the terminal device, so that the terminal device can display the branch configuration control based on the branch list. Similarly, if the configuration information contains an invalid environment (e.g., the target environment is not included in the candidate environments), or if the configuration information does not contain an environment, the computer device returns an environment list to the terminal device, so that the terminal device can display the environment configuration control based on the environment list.
[0141] Optionally, the computer device can also output an invalid prompt message to the terminal device. The invalid prompt message is used to indicate that the configuration information is invalid. Specifically, if the configuration information contains an invalid branch (e.g., the target branch is not included in the candidate branches), or if the configuration information does not contain a branch, the computer device returns a first prompt message to the terminal device, indicating that the configuration information does not contain a valid branch. Similarly, if the configuration information contains an invalid environment (e.g., the target environment is not included in the candidate environments), or if the configuration information does not contain an environment, the computer device returns a second prompt message to the terminal device, indicating that the configuration information does not contain a valid environment.
[0142] S306. Determine whether a target work area exists that corresponds to the work area identifier.
[0143] In one implementation, the computer device detects whether a target workspace corresponding to a workspace identifier exists in the created workspaces. If a target workspace corresponding to a workspace identifier exists, the computer device continues to execute step S308; if no target workspace corresponding to a workspace identifier exists, the computer device continues to execute step S307.
[0144] S307. Create a target workspace that corresponds to the workspace identifier.
[0145] In one implementation, the project information also includes the address for retrieving the application subroutine's code. The computer device creates a target workspace corresponding to the workspace identifier and retrieves the application subroutine's code into the target workspace based on the retrieved address.
[0146] Optionally, the computer device can also download dependencies related to the application subroutine's code.
[0147] S308. Configure the application subroutine code based on the configuration information to obtain the first development code of the application subroutine.
[0148] Since a target workspace corresponding to the workspace identifier exists, and the application subroutine code is already stored in the target workspace, the computer device can configure the application subroutine code based on configuration information to obtain the first development code of the application subroutine. In one implementation, the configuration information includes a target branch and a target environment. The computer device switches the application subroutine code to the target branch and configures the runtime environment of the code switched to the target branch as the target environment to obtain the data to be compiled. The computer device uses an independent compilation module (such as miniprogram-ci) to compile the code switched to the target branch in the target environment to obtain the first development code of the application subroutine; wherein, miniprogram-ci is a compilation module for the application subroutine project code, which can independently perform code uploading, previewing, etc., without the application subroutine development tool.
[0149] Optionally, the project information also includes the address for obtaining the application subroutine's code. Before configuring the application subroutine's code based on the configuration information, the computer device can also check whether the application subroutine's code in the target environment matches the application subroutine's code in the obtained address by obtaining the address. If they do not match, the computer device updates the application subroutine's code in the target environment to the application subroutine's code in the obtained address; if they match, the computer device continues to execute the step of configuring the application subroutine's code based on the configuration information to obtain the first development code of the application subroutine.
[0150] It should be noted that, in the actual implementation process, the computer device can execute a shell script to complete steps S306-S308 according to the configuration information and project information. When starting the shell script, a child process can be started (created) using child_process, and the shell script can be executed in that child process.
[0151] Optionally, during the generation of the first development code for the application subroutine, the computer device may periodically (or when the current configuration progress reaches the notification condition) return configuration progress information to the terminal device so that the terminal device can display the configuration progress information.
[0152] S309. Output the preview graphic code of the application subroutine.
[0153] Figure 4a This is a data processing architecture diagram provided for an embodiment of this application. For example... Figure 4a As shown, the data processing method provided in this application mainly includes URL validity verification and code generation. URL validity verification is primarily performed when adding a session tool to the project. The session tool sends a connection request (such as a GET request). Upon receiving the connection request, the computer device performs encryption and decryption verification to determine whether to approve the connection using the session tool.
[0154] The process of verifying URL validity includes: the session tool triggers a binding service, which requests a connection to the computer device (server). The session tool sends a connection request to the computer device, which includes the session tool's identity verification information, including a message signature (msg_signature), a timestamp, a nonce string, and an echo string (echostr). The nonce string, along with the timestamp and message signature, constructs a parameter set used to verify the authenticity of the request. The nonce string ensures that even if the timestamp and other parameters are captured and replayed, the signature will differ due to the randomness of the nonce string, thus preventing replay attacks. Upon receiving the connection request from the session tool, the computer device obtains message signature verification information based on the timestamp, nonce string, echo string, and the session tool's token (see detailed implementation details for reference). Figure 4b If the message signature verification information matches the message signature, the computer device determines that the session tool has passed the validity verification. Furthermore, the computer device can decrypt the echo string using the session tool's symmetric key (such as AESKey) and return the echo string to the session tool to prove that the computer device can correctly receive and respond to the session tool's requests. At this point, the computer device and the session tool have established a connection.
[0155] The development code generation process primarily involves processing session interaction information. The computer device receives encrypted messages sent by the session tool and performs compliance checks on the session tool's behavior (such as permission checks). After passing the compliance check, the computer device parses the encrypted messages to obtain configuration information. The computer device verifies the validity of the configuration information. If the configuration information is valid, the computer device executes a script to switch the application subroutine's code to the target branch indicated by the configuration information and configures the runtime environment of the code switched to the target branch to the target environment indicated by the configuration information. Then, using an independent compilation module (such as miniprogram-ci), the code switched to the target branch in the target environment is compiled to obtain the development code for the application subroutine. Finally, through the session tool's address, a preview graphical code is sent to a designated social session. This preview graphical code is used to preview the application subroutine generated based on the development code. It is understandable that when multiple sets of different configuration information exist, multiple development codes will be generated, resulting in multiple preview graphical codes. Each preview graphical code corresponds one-to-one with a development code, and different preview graphical codes are used to preview application subroutines generated based on different development codes.
[0156] The code generation process includes: the computer device obtains the encrypted message sent by the session tool, decrypts the encrypted message to obtain configuration information, and checks whether the configuration information is valid. If the branch in the configuration information is invalid, a list of branches (including one or more candidate branches) is sent to the session tool so that the session tool can display the branch options; if the environment in the configuration information is invalid, a list of environments (including one or more candidate environments) is sent to the session tool so that the session tool can display the environment options. If the configuration information is valid, the script is executed; the specific process of executing the script includes: starting a child process through the built-in module (child_process). child_process is a built-in module of Node.js used to create new processes, execute external commands or scripts, and communicate with them. After starting the child process, the child process checks whether the application subroutine has a corresponding workspace. If the application subroutine does not have a corresponding workspace, a workspace corresponding to the application subroutine is created, and the application subroutine's code is pulled into the workspace; then, the dependencies related to the application subroutine's code are downloaded. At this point, the workspace corresponding to the application subroutine is created (subsequent steps are the same as when the application subroutine has a corresponding workspace). If the application subroutine has a corresponding workspace, branching and environment switching are performed according to the configuration information. After the script is executed, the computer device reads the code configured according to the configuration information through an independent compilation module, compiles the read code, and obtains the application subroutine's development code. Then, a preview graphical code of the application subroutine is sent to the session tool; this preview graphical code is used to preview the application subroutine generated based on the development code.
[0157] It should be noted that during the interaction between the computer device and the terminal device (equipped with a session tool), both parties will encrypt the interaction content (such as by using AES encryption). For example, the terminal device can POST messages (such as configuration information) to the computer device in Extensible Markup Language (XML) format, and the computer device can also return messages (such as preview graphic codes) to the terminal device in XML format.
[0158] Figure 4b This is a schematic diagram illustrating a data processing procedure provided in an embodiment of this application. Figure 4b As shown, the data processing includes validity verification, encryption, and decryption. The validity verification process includes: obtaining the session tool's token, timestamp, nonce, and echo string. These four parameters are sorted lexicographically, concatenated into a string, hashed (SHA1) using this string, and the result encoded into visible characters. The encoded visible characters are compared with the message signature. If they match, the validity verification is successful; otherwise, it fails. The encryption process includes: concatenating the message, ID, random number, and message length into a string, encrypting this string (e.g., AESKey encryption), and then encoding the encryption result (e.g., base64 encoding) to obtain the ciphertext. The decryption process includes: decoding the ciphertext, decrypting the decoded result, and then extracting the message from the decrypted result.
[0159] Optionally, the computer device can also generate a validity period reminder for the preview graphic code based on the generation time of the preview graphic code of the application subroutine. The validity period reminder is used to indicate the validity period of the preview graphic code.
[0160] In this embodiment, configuration information and project information of the application subroutine are obtained. The project information includes the workspace identifier of the application subroutine. A preset script is executed according to the configuration information and project information to obtain the first development code of the application subroutine. The first development code is obtained by configuring the application subroutine code based on the configuration information. The application subroutine code is stored in the target workspace, which corresponds to the workspace identifier. A preview graphical code is output, which is used to preview the application subroutine generated based on the first development code. It can be seen that the application subroutine code can be automatically imported into the target workspace through the project information, and the application subroutine code in the target workspace can be configured based on the configuration information. This decouples the project development process and the development code generation process of the application subroutine, thereby improving the development efficiency of the application subroutine. That is, when project personnel need to generate development code to preview or test the application subroutine, developers do not need to pause development or manually switch branches and environments to generate the corresponding development code. Furthermore, when the configuration information is invalid, outputting a candidate parameter list can improve the efficiency of object configuration parameters; validity verification and message encryption can improve data security.
[0161] Please see Figure 5 , Figure 5 This is a flowchart illustrating another data processing method provided in an embodiment of this application. This data processing method can be executed by a computer device; for example, by... Figure 1 The terminal device 101 shown executes this. (As...) Figure 5 As shown, the data processing method may include the following steps S501 and S502:
[0162] S501. When the session triggering conditions are detected, display the graphic code application instruction information on the session page.
[0163] The graphic code application instruction information indicates the application method for the preview graphic code of the application subroutine; the preview graphic code is used to preview the application subroutine. In one implementation, the graphic code application instruction information is displayed in the social sessions of the session page. Each social session corresponds to an application subroutine, and one application subroutine can correspond to one or more social sessions. For example, all project personnel for the application subroutine may be in the same social session; or, for another example, all project personnel for the application subroutine may be distributed across multiple different social sessions according to departmental, responsibility, or other divisional rules. It is understood that when one application subroutine corresponds to multiple social sessions, the process of generating the application subroutine's development code in different social sessions does not interfere with each other.
[0164] The session triggering conditions can be dynamically adjusted based on needs, and this application does not impose any restrictions on this. For example, the session triggering conditions may be detecting that the trigger button of the session tool (such as a robot, group assistant, group system tool, etc.) is triggered, or detecting specific text used to trigger the session tool (such as @ robot) in the social session, or detecting a preset gesture, etc.
[0165] Figure 6a This is a schematic diagram illustrating a session triggering method provided in an embodiment of this application. Figure 6a As shown, in the conversation page 601, the object triggers the conversation tool (robot) by sending a specific text 6011 in the social conversation. When the conversation triggering condition is detected, the graphic code application instruction information 6012 is displayed in the social conversation of the conversation page 601. The graphic code application instruction information 6012 is used to prompt the object (the user of the terminal device) to enter the configuration parameters in the format of "@robot branch, environment".
[0166] Optionally, if a preview graphic code is being generated in the current social conversation (such as the preview graphic code corresponding to the second development code), the computer device can display a waiting prompt. The waiting prompt indicates that a development code is currently being generated, and you should wait for the development code to be generated before applying to generate a preview graphic code.
[0167] S502, In response to the session interaction information used to request a preview graphic code in the session page, display the preview graphic code corresponding to the application subroutine in the session page.
[0168] The session interaction information carries configuration information for the application subroutine, which is used to configure at least one branch and environment of the application subroutine. The preview graphical code is used to preview the application subroutine generated based on the first development code. The first development code is obtained by the server configuring the application subroutine's code according to the configuration information. The application subroutine's code is stored in the target workspace, which is determined based on the application subroutine's workspace identifier, which is included in the project information. The process of obtaining the application subroutine's first development code based on the acquired application subroutine's configuration information is executed by the server; for specific implementation details, please refer to [reference needed]. Figure 3 The implementation methods in steps S301-S309 will not be described in detail here.
[0169] In one implementation, before displaying the preview graphical code corresponding to the application subroutine on the session page, the computer device may also display progress information indicating the generation progress of the preview graphical code. The computer device displays configuration progress information for the selected branch and the selected environment, and below the configuration progress information, displays the preview graphical code corresponding to the application subroutine.
[0170] In another implementation, after displaying the preview graphic code corresponding to the application subroutine on the session page, the computer device can also display a validity period reminder, which indicates the validity duration of the preview graphic code. The computer device can display the validity period reminder below the preview graphic code.
[0171] Optionally, before outputting the preview graphic code corresponding to the application subroutine, the computer device may also display configuration prompt information. The configuration prompt information includes the configuration information of the application subroutine entered (or selected) by the object. In one embodiment, the configuration prompt information can be used to confirm the configuration information of the application subroutine entered by the object. In response to the confirmation of the configuration prompt information (such as confirmation of the object's input, or the object not canceling the configuration information within a preset time), the computer device outputs the preview graphic code corresponding to the application subroutine.
[0172] Furthermore, after displaying the preview graphic code corresponding to the application subroutine on the session page, when the preview graphic code is scanned, the computer device displays a preview page of the application subroutine, which is obtained based on the corresponding development code, which is obtained based on the configuration information.
[0173] In another implementation, when the session interaction information in the session page carries valid configuration information, the computer device displays a preview graphical code corresponding to the application subroutine in response to the session interaction information. When the configuration information includes multiple parameters, valid configuration information means that all parameters are valid; correspondingly, invalid configuration information means that at least one parameter is invalid.
[0174] Figure 6b This is a schematic diagram of a session page provided as an embodiment of this application. Figure 6b As shown, after the object inputs the session interaction information 6021 according to the graphical code application instruction information, in response to the valid configuration information of the application subroutine carried in the acquired session interaction information 6021, the robot (session tool) displays the preview graphical code 6022 corresponding to the application subroutine on the session page 602. The object can preview the application subroutine generated based on the configuration information in the session interaction information 6021 by scanning the preview graphical code 6022. Furthermore, before outputting the preview graphical code 6022 corresponding to the application subroutine, the computer device can also display progress prompt information 6023, which indicates the generation progress of the first development code; for example, progress prompt information 1 indicates that branch B is being switched, and progress prompt information 2 indicates that environment B is being configured. Further, after outputting the preview graphical code 6022 corresponding to the application subroutine, the computer device can also display timeout prompt information 6024, which indicates the valid duration of the preview graphical code 6022.
[0175] In another implementation, when the session interaction information on the session page carries invalid configuration information, the computer device displays configuration controls on the session page in response to the session interaction information. In response to a selection operation on the configuration controls, the computer device displays a preview graphical code corresponding to the application subroutine on the session page.
[0176] In one embodiment, the session interaction information on the session page carries invalid configuration information, including an invalid branch (the environment configuration is valid). In response to the session interaction information, the computer device displays a branch configuration control on the session page. When the branch configuration control is selected, a branch hint is displayed on the session page to indicate the selected branch. Figure 6c This is another schematic diagram of a session page provided for an embodiment of this application. For example... Figure 6c As shown, if "Branch H" in the configuration information is not included in the candidate branches of the application subroutine, the computer device outputs an invalid prompt message 6031 (to indicate that the configuration information does not carry a valid branch) on the session page 603, and displays a branch configuration control 6032. The branch configuration control 6032 can be a list, a drop-down option bar, etc. In one implementation, the branch configuration control 6032 includes at least one candidate branch of the application subroutine. Optionally, either the invalid prompt message 6031 or the branch configuration control 6032 can carry a candidate branch entry 6033 (for entering the candidate branch page to view all available branches). Further, in response to "Branch A" (candidate branch) being selected in the branch configuration control 6032, the computer device can display a branch prompt message 6034 (for displaying the selected candidate branch) on the session page 603, and the branch prompt message 6034 includes the selected branch A.
[0177] In another embodiment, the session interaction information in the session page carries invalid configuration information, including an invalid environment (branch configuration valid). In response to the session interaction information, the computer device displays an environment configuration control in the session page. In response to the environment configuration control being selected, an environment prompt is displayed in the session page to indicate the selected environment. Figure 6d This is another schematic diagram of a session page provided as an embodiment of this application. For example... Figure 6dAs shown, if "Environment H" in the configuration information is not included in the candidate environments of the application subroutine, the computer device outputs an invalid prompt message 6041 (to indicate that the configuration information does not carry a valid environment) on the session page 604, and displays an environment configuration control 6042. The environment configuration control 6042 can be a list, drop-down option bar, etc. In one implementation, the environment configuration control 6042 includes at least one candidate environment of the application subroutine. Optionally, either the invalid prompt message 6041 or the environment configuration control 6042 can carry a candidate environment entry 6043 (for entering the candidate environment page to view all available environments). Further, in response to "Environment C" (candidate environment) being selected in the environment configuration control 6042, the computer device can display an environment prompt message 6044 (to display the selected candidate environment) on the session page 604, and the environment prompt message 6044 includes the selected environment C.
[0178] In another embodiment, the session interaction information in the session page carries invalid configuration information, including invalid branches and invalid environments. In response to the session interaction information, the computer device displays a branch configuration control in the session page. In response to the branch configuration control being selected, the computer device displays an environment configuration control in the session page. Further, when the environment configuration control is clicked, a preview graphical code corresponding to the application subroutine is displayed in the session page.
[0179] In one implementation, in response to the selection of a branch configuration control, the computer device changes the branch configuration control displayed on the session page to a prompt indicating that a branch has been selected; for example, first, a list of candidate branches is displayed in the branch configuration control, and when a candidate branch in the list is selected, the selected branch is displayed in the branch configuration control. Next, the computer device displays an environment configuration control on the session page. Further, when the environment configuration control is clicked, the environment configuration control displayed on the session page is changed to a prompt indicating that an environment has been selected, and then a preview graphical code corresponding to the application subroutine is displayed on the session page.
[0180] In another implementation, in response to the selection of a branch configuration control, the computer device displays configuration prompts (such as branch prompts or environment prompts) below the branch configuration control, indicating the selected branch. Then, the computer device displays an environment configuration control below the configuration prompts. Further, when the environment configuration control is clicked, a preview graphical code corresponding to the application subroutine is displayed on the session page. Further, when the environment configuration control is clicked, configuration prompts are displayed below the environment configuration control, indicating the selected environment. And a preview graphical code corresponding to the application subroutine is displayed below the configuration prompts.
[0181] Figure 6e This is a schematic diagram illustrating a configuration process provided in an embodiment of this application. For example... Figure 6e As shown, "Branch H" in the configuration information is not included in the candidate branches of the application subroutine, and "Environment G" is not included in the candidate environments of the application subroutine. The computer device outputs an invalid prompt message 6051 (used to indicate that the session interaction information carries invalid configuration information of the application subroutine) on session page 605 and displays the branch configuration control 6052. Further, in response to "Branch A" being selected in the branch configuration control 6052, the computer device can display branch prompt message 6053 on session page 605, which includes the selected branch A. Next, the computer device displays the environment configuration control 6054. Further, in response to "Environment C" being selected in the environment configuration control 6054, the computer device can display environment prompt message 6055 on session page 605, which includes the selected environment C. Subsequent steps can be found in [reference needed]. Figure 6b This will not be elaborated further here. It is understood that, in the absence of a logical order in the configuration of branches and environments, the display order of the branch configuration control 6052 and the environment configuration control 6054 is only for illustrative purposes. The branch configuration control 6052 and the environment configuration control 6054 may also be displayed simultaneously, or the environment configuration control 6054 may be displayed before the branch configuration control 6052. This application does not impose any restrictions on this.
[0182] Optionally, when the session interaction information in the session page carries invalid configuration information, the computer device outputs an invalid prompt message in response to the session interaction information. The invalid prompt message is used to indicate that the session interaction information carries invalid configuration information of the application subroutine.
[0183] In this embodiment, when the session triggering condition is detected, a graphic code application instruction is displayed on the session page. This instruction indicates how to apply for a preview graphic code for the application subroutine. The preview graphic code is used to preview the application subroutine. In response to the session interaction information for applying for the preview graphic code on the session page, the corresponding preview graphic code for the application subroutine is displayed on the session page. Therefore, by inputting session interaction information according to the graphic code application instruction, a preview graphic code for the application subroutine can be automatically generated, decoupling the application subroutine's project development process from its preview process, thereby improving the development efficiency of the application subroutine.
[0184] The methods of the embodiments of this application have been described in detail above. In order to facilitate better implementation of the above solutions of the embodiments of this application, the apparatus of the embodiments of this application is provided below.
[0185] Please see Figure 7 , Figure 7This is a schematic diagram of the structure of a data processing device provided in an embodiment of this application. Figure 7 The data processing device shown can be mounted in a computer device, which can specifically be a terminal device or a server. Figure 7 The data processing apparatus shown can be used to perform the above. Figure 2 and Figure 3 Some or all of the functionality described in the method embodiments. Please refer to [link / reference]. Figure 7 The data processing device includes:
[0186] The acquisition unit 701 is used to acquire the configuration information and project information of the application subroutine. The project information includes the workspace identifier of the application subroutine, and the configuration information is used to configure at least one branch and environment of the application subroutine.
[0187] Processing unit 702 is used to execute a preset script according to configuration information and project information to obtain the first development code of the application subroutine. The first development code is obtained by configuring the code of the application subroutine based on the configuration information. The code of the application subroutine is stored in the target workspace, and the target workspace corresponds to the workspace identifier.
[0188] Output unit 703 is used to output preview graphic code of application subroutine, which is used to preview application subroutine generated based on first development code.
[0189] In one embodiment, the processing unit 702 is configured to execute a preset script according to configuration information and project information to obtain the first development code of the application subroutine, specifically for:
[0190] If a target workspace corresponding to the workspace identifier exists, the application subroutine's code is configured based on the configuration information to obtain the application subroutine's first development code.
[0191] In one implementation, the configuration information includes a target branch and a target environment; the processing unit 702 is configured to configure the application subroutine's code based on the configuration information to obtain the application subroutine's first development code, specifically for:
[0192] Switch the application subroutine's code to the target branch;
[0193] Configure the runtime environment of the code switched to the target branch to the target environment, and obtain the first development code of the application subroutine.
[0194] In one implementation, the project information also includes the address for obtaining the code of the application subroutine; the processing unit 702 is further configured to:
[0195] If no target work area exists corresponding to the work area identifier, then create the target work area corresponding to the work area identifier.
[0196] Based on the obtained address, the code of the application subroutine is pulled into the target workspace.
[0197] In one implementation, the processing unit 702 is configured to obtain configuration information of the application subroutine, specifically for:
[0198] The message ciphertext and message signature are obtained. The message ciphertext is obtained by the sender of the message encrypting the plaintext parameters, which include the configuration information of the application subroutine. The message signature is generated by the sender of the message ciphertext based on the plaintext parameters and the symmetric key.
[0199] The ciphertext of the message is decrypted using a symmetric key to obtain the plaintext parameters;
[0200] Generate a verification signature based on plaintext parameters and a symmetric key;
[0201] If the verification signature matches the message signature, the plaintext parameter is considered valid.
[0202] In one implementation, all N components are database components, and the configuration information includes the target branch and the target environment; the processing unit 702 is further configured to:
[0203] Get the branch list and environment list of the application subroutine. The branch list contains at least one candidate branch, and the environment list contains at least one candidate environment.
[0204] If the target branch is not included in the candidate branches, a branch list is output so that the recipient of the branch list can display the branch configuration control based on the branch list;
[0205] If the target environment is not included in the candidate environments, an environment list is output so that the recipient of the environment list can display the environment configuration control based on the environment list;
[0206] If the target branch is contained in the candidate branch and the target environment is contained in the candidate environment, then continue with the steps of configuring the application subroutine's code based on the configuration information.
[0207] In one implementation, if there is an incompletely generated second development code, the processing unit 702 is further configured to:
[0208] Output a usage notification message to indicate that development code is currently being generated; or...
[0209] After the second development code is generated, the first development code of the application subroutine is obtained by executing a preset script according to the configuration information and project information.
[0210] In one implementation, the configuration information is extracted by the conversation tool from the conversation interaction information, and the workspace identifier of the application subroutine is the identifier of the social conversation to which the conversation interaction information belongs; the output unit 703 is used to output the preview graphic code of the application subroutine, specifically for:
[0211] Return a preview graphical code of the application subroutine to the conversation tool so that the conversation tool can display the preview graphical code of the application subroutine in social conversations.
[0212] In one embodiment, the processing unit 702 is further configured to:
[0213] Obtain the connection request sent by the conversation tool, which is embedded in the social conversation. The connection request includes the identity verification information of the conversation tool. The identity verification information includes at least one of the following: the identifier of the conversation tool, the identifier of the project associated with the conversation tool, and the identifier of the application subroutine associated with the conversation tool.
[0214] If the identity verification information of the session tool passes the identity verification, a connection is established with the session tool.
[0215] According to one embodiment of this application, Figure 2 and Figure 3 The data processing method shown may involve some steps that can be derived from... Figure 7 The data processing apparatus shown is executed by each unit within it. For example, Figure 2 Step S201 shown can be performed by Figure 7 The acquisition unit 701 shown is executed, and step S202 can be performed by... Figure 7 The processing unit 702 shown executes the step S203, which can be performed by... Figure 7 The output unit 703 shown is executed; Figure 3 Step S301 shown can be performed by Figure 7 The acquisition unit 701 shown is executed, and steps S302, S304, and S306-S308 can be performed by... Figure 7 The processing unit 702 shown executes steps S303, S305, and S309, which can be performed by... Figure 7 The output unit 703 shown is executed. Figure 7The data processing apparatus shown can be constructed by combining each unit individually or entirely into one or more other units, or one or more of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of this application. The above-mentioned units are based on logical function division. In practical applications, the function of one unit can be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the data processing apparatus may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.
[0216] According to another embodiment of this application, a general-purpose computing device, such as a computer device including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), can perform operations such as... Figure 2 and Figure 3 The computer program (including program code) for each step involved in the corresponding method shown, to construct such... Figure 7 The data processing apparatus shown herein, and the data processing method for implementing the embodiments of this application, are described. A computer program may be recorded on, for example, a computer-readable recording medium, loaded onto the aforementioned computing device via the computer-readable recording medium, and executed therein.
[0217] Based on the same inventive concept, the principle and beneficial effects of the data processing device provided in the embodiments of this application in solving the problem are similar to the principle and beneficial effects of the data processing method in the embodiments of this application in solving the problem. For the sake of brevity, the principle and beneficial effects of the method implementation can be referred to.
[0218] Please see Figure 8 , Figure 8 This is a schematic diagram of another data processing apparatus provided in an embodiment of this application. Figure 8 The data processing device shown can be mounted in a computer device, which can specifically be a terminal device or a server. Figure 8 The data processing apparatus shown can be used to perform the above. Figure 5 Some or all of the functionality described in the method embodiments. Please refer to [link / reference]. Figure 8 The data processing device includes:
[0219] Display unit 801 is used to display graphic code application instruction information on the session page when the session triggering condition is detected. The graphic code application instruction information is used to indicate the application method for the preview graphic code of the application subroutine. The preview graphic code is used to preview the application subroutine.
[0220] And to display the preview graphic code corresponding to the application subroutine on the session page in response to session interaction information used to request a preview graphic code on the session page.
[0221] In one implementation, after displaying the preview graphic code corresponding to the application subroutine on the session page in response to session interaction information for requesting a preview graphic code on the session page, the display unit 801 is further configured to:
[0222] When the preview image code is scanned, the preview page of the application subroutine is displayed.
[0223] In one embodiment, the display unit 801 is configured to, in response to session interaction information for requesting a preview graphic code in the session page, display a preview graphic code corresponding to the application subroutine on the session page, specifically configured to:
[0224] When the session interaction information in the session page carries valid configuration information, the preview graphic code corresponding to the application subroutine is displayed in the session page in response to the session interaction information.
[0225] In one embodiment, the display unit 801 is configured to, in response to session interaction information for requesting a preview graphic code in the session page, display a preview graphic code corresponding to the application subroutine on the session page, specifically configured to:
[0226] When the session interaction information in the session page carries invalid configuration information, the configuration control is displayed in the session page in response to the session interaction information;
[0227] In response to the selection operation of the configuration control, a preview graphic code corresponding to the application subroutine is displayed in the session page.
[0228] In one implementation, when the session interaction information in the session page carries invalid configuration information, the display unit 801 is configured to, in response to the session interaction information, display configuration controls in the session page, specifically for:
[0229] When the session interaction information in the session page carries invalid configuration information, the branch configuration control is displayed in the session page in response to the session interaction information;
[0230] When a branch configuration control is selected, display the environment configuration control in the session page;
[0231] Display unit 801 is used to display a preview graphic code corresponding to the application subroutine in the session page in response to the selection operation of the configuration control, specifically for:
[0232] When the environment configuration control is clicked, a preview graphic code corresponding to the application subroutine is displayed on the session page.
[0233] In one embodiment, the display unit 801 is configured to display the environment configuration control in the session page in response to the branch configuration control being selected, specifically for:
[0234] When the branch configuration control is selected, the branch configuration control displayed on the session page will be changed to a prompt message indicating that the branch has been selected;
[0235] Display environment configuration controls on the session page.
[0236] In one implementation, when the environment configuration control is clicked, the display unit 801 is used to display a preview graphic code corresponding to the application subroutine in the session page, specifically for:
[0237] In response to the selection operation of the environment configuration control, display the configuration progress information of the selected branch and the selected environment;
[0238] Below the configuration progress information, preview graphic codes for the application subroutines are displayed.
[0239] In one implementation, after displaying the preview graphic code corresponding to the application subroutine on the session page in response to session interaction information for requesting a preview graphic code on the session page, the display unit 801 is further configured to:
[0240] Below the preview image code, a time limit information is displayed.
[0241] According to one embodiment of this application, Figure 5 The data processing method shown may involve some steps that can be derived from... Figure 8 The data processing apparatus shown is executed by each unit within it. For example, Figure 5 Steps S501 and S502 shown can be derived from... Figure 8 The display unit 801 shown is executed. Figure 8 The data processing apparatus shown can be constructed by combining each unit individually or entirely into one or more other units, or one or more of the units can be further divided into multiple functionally smaller units. This achieves the same operation without affecting the technical effects of the embodiments of this application. The above-mentioned units are based on logical function division. In practical applications, the function of one unit can be implemented by multiple units, or the function of multiple units can be implemented by one unit. In other embodiments of this application, the data processing apparatus may also include other units. In practical applications, these functions can also be implemented with the assistance of other units, and can be implemented collaboratively by multiple units.
[0242] According to another embodiment of this application, a general-purpose computing device, such as a computer device including processing elements and storage elements such as a central processing unit (CPU), random access memory (RAM), and read-only memory (ROM), can perform operations such as... Figure 5 The computer program (including program code) for each step involved in the corresponding method shown, to construct such... Figure 8 The data processing apparatus shown herein, and the data processing method for implementing the embodiments of this application, are described. A computer program may be recorded on, for example, a computer-readable recording medium, loaded onto the aforementioned computing device via the computer-readable recording medium, and executed therein.
[0243] Based on the same inventive concept, the principle and beneficial effects of the data processing device provided in the embodiments of this application in solving the problem are similar to the principle and beneficial effects of the data processing method in the embodiments of this application in solving the problem. For the sake of brevity, the principle and beneficial effects of the method implementation can be referred to.
[0244] Please see Figure 9 , Figure 9 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device may be a terminal device or a server. Figure 9 As shown, the computer device includes at least a processor 901, a communication interface 902, and a memory 903. The processor 901, communication interface 902, and memory 903 can be connected via a bus or other means. The processor 901 (or Central Processing Unit, CPU) is the computing and control core of the computer device. It can parse various instructions within the computer device and process various data. For example, the CPU can parse power-on / off commands issued by objects to the computer device and control the computer device to perform power-on / off operations; it can also transmit various interactive data between internal structures of the computer device, and so on. The communication interface 902 may optionally include a standard wired interface or a wireless interface (such as Wi-Fi, mobile communication interface, etc.), and under the control of the processor 901, it can be used to send and receive data; the communication interface 902 can also be used for data transmission and interaction within the computer device. The memory 903 is the storage device in the computer device, used to store programs and data. It can be understood that the memory 903 here can include the computer device's built-in memory, or it can include extended memory supported by the computer device. The memory 903 provides storage space for storing the operating system of the computer device, which may include, but is not limited to, Android, iOS, Windows Phone, etc. This application does not limit this.
[0245] This application embodiment also provides a computer-readable storage medium (Memory), which is a memory device in a computer device used to store programs and data. It is understood that the computer-readable storage medium here can include both built-in storage media in the computer device and extended storage media supported by the computer device. The computer-readable storage medium provides storage space that stores the processing system of the computer device. Furthermore, the storage space also stores computer programs suitable for loading and execution by the processor 901. It should be noted that the computer-readable storage medium here can be high-speed RAM memory or non-volatile memory, such as at least one disk storage device; optionally, it can also be at least one computer-readable storage medium located remotely from the aforementioned processor.
[0246] In one embodiment, processor 901 performs the following operations by running a computer program stored in memory 903:
[0247] Obtain the configuration information and project information of the application subroutine. The project information includes the workspace identifier of the application subroutine, and the configuration information is used to configure at least one branch and environment of the application subroutine.
[0248] The preset script is executed according to the configuration information and project information to obtain the first development code of the application subroutine. The first development code is obtained by configuring the code of the application subroutine based on the configuration information. The code of the application subroutine is stored in the target workspace, and the target workspace corresponds to the workspace identifier.
[0249] Output the preview graphical code of the application subroutine. The preview graphical code is used to preview the application subroutine generated based on the first development code.
[0250] As an optional embodiment, the processor 901 executes a preset script according to configuration information and project information to obtain the first development code of the application subroutine. A specific embodiment of this is as follows:
[0251] If a target workspace corresponding to the workspace identifier exists, the application subroutine's code is configured based on the configuration information to obtain the application subroutine's first development code.
[0252] As an optional embodiment, the configuration information includes the target branch and the target environment; the processor 901 configures the application subroutine code based on the configuration information to obtain the first development code of the application subroutine. A specific embodiment of this is as follows:
[0253] Switch the application subroutine's code to the target branch;
[0254] Configure the runtime environment of the code switched to the target branch to the target environment, and obtain the first development code of the application subroutine.
[0255] As an optional embodiment, the project information also includes the address of the application subroutine code; the processor 901, by running the computer program in the memory 903, also performs the following operations:
[0256] If no target work area exists corresponding to the work area identifier, then create the target work area corresponding to the work area identifier.
[0257] Based on the obtained address, the code of the application subroutine is pulled into the target workspace.
[0258] As an optional embodiment, the specific embodiment in which the processor 901 obtains the configuration information of the application subroutine is as follows:
[0259] The message ciphertext and message signature are obtained. The message ciphertext is obtained by the sender of the message encrypting the plaintext parameters, which include the configuration information of the application subroutine. The message signature is generated by the sender of the message ciphertext based on the plaintext parameters and the symmetric key.
[0260] The ciphertext of the message is decrypted using a symmetric key to obtain the plaintext parameters;
[0261] Generate a verification signature based on plaintext parameters and a symmetric key;
[0262] If the verification signature matches the message signature, the plaintext parameter is considered valid.
[0263] As an optional embodiment, the configuration information includes the target branch and the target environment; the processor 901 also performs the following operations by running the computer program in the memory 903:
[0264] Get the branch list and environment list of the application subroutine. The branch list contains at least one candidate branch, and the environment list contains at least one candidate environment.
[0265] If the target branch is not included in the candidate branches, output the branch list;
[0266] If the target environment is not included in the candidate environments, output a list of environments;
[0267] If the target branch is contained in the candidate branch and the target environment is contained in the candidate environment, then continue with the steps of configuring the application subroutine's code based on the configuration information.
[0268] As an optional embodiment, if there is an incomplete second development code, the processor 901, by running the computer program in the memory 903, also performs the following operations:
[0269] Output a usage notification message to indicate that development code is currently being generated; or...
[0270] After the second development code is generated, the first development code of the application subroutine is obtained by executing a preset script according to the configuration information and project information.
[0271] As an optional embodiment, the configuration information is extracted by the conversation tool from the conversation interaction information, and the workspace identifier of the application subroutine is the identifier of the social conversation to which the conversation interaction information belongs; a specific embodiment of the processor 901 outputting the preview graphical code of the application subroutine is as follows:
[0272] Return a preview graphical code of the application subroutine to the conversation tool so that the conversation tool can display the preview graphical code of the application subroutine in social conversations.
[0273] As an optional embodiment, the processor 901, by running a computer program in the memory 903, also performs the following operations:
[0274] Obtain the connection request sent by the conversation tool, which is embedded in the social conversation. The connection request includes the identity verification information of the conversation tool. The identity verification information includes at least one of the following: the identifier of the conversation tool, the identifier of the project associated with the conversation tool, and the identifier of the application subroutine associated with the conversation tool.
[0275] If the identity verification information of the session tool passes the identity verification, a connection is established with the session tool.
[0276] In another embodiment, processor 901 performs the following operations by running a computer program stored in memory 903:
[0277] When the session triggering conditions are detected, a graphic code application instruction is displayed on the session page. The graphic code application instruction is used to indicate how to apply for a preview graphic code for the application subroutine; the preview graphic code is used to preview the application subroutine.
[0278] In response to the session interaction information used to request a preview graphic code on the session page, the preview graphic code corresponding to the application subroutine is displayed on the session page.
[0279] As an optional embodiment, in response to session interaction information for requesting a preview graphic code in the session page, after displaying the preview graphic code corresponding to the application subroutine in the session page, the processor 901 further performs the following operations by running the computer program in the memory 903:
[0280] When the preview image code is scanned, the preview page of the application subroutine is displayed.
[0281] As an optional embodiment, the processor 901 displays the preview graphic code corresponding to the application subroutine in the session page in response to session interaction information for requesting a preview graphic code in the session page. A specific embodiment of this is as follows:
[0282] When the session interaction information in the session page carries valid configuration information, the preview graphic code corresponding to the application subroutine is displayed in the session page in response to the session interaction information.
[0283] As an optional embodiment, the processor 901 displays the preview graphic code corresponding to the application subroutine in the session page in response to session interaction information for requesting a preview graphic code in the session page. A specific embodiment of this is as follows:
[0284] When the session interaction information in the session page carries invalid configuration information, the configuration control is displayed in the session page in response to the session interaction information;
[0285] In response to the selection operation of the configuration control, a preview graphic code corresponding to the application subroutine is displayed in the session page.
[0286] As an optional embodiment, when the session interaction information in the session page carries invalid configuration information, the processor 901 displays the configuration control in the session page in response to the session interaction information. A specific embodiment of this is as follows:
[0287] When the session interaction information in the session page carries invalid configuration information, the branch configuration control is displayed in the session page in response to the session interaction information;
[0288] When a branch configuration control is selected, display the environment configuration control in the session page;
[0289] In response to a selection operation by the configuration control, the processor 901 displays a preview graphical code corresponding to the application subroutine in the session page. A specific example of this implementation is as follows:
[0290] When the environment configuration control is clicked, a preview graphic code corresponding to the application subroutine is displayed on the session page.
[0291] As an optional embodiment, the processor 901 displays the environment configuration control in the session page in response to the branch configuration control being selected. A specific embodiment of this is as follows:
[0292] When the branch configuration control is selected, the branch configuration control displayed on the session page will be changed to a prompt message indicating that the branch has been selected;
[0293] Display environment configuration controls on the session page.
[0294] As an optional embodiment, when the environment configuration control is clicked, the processor 901 displays a preview graphic code corresponding to the application subroutine in the session page.
[0295] In response to the selection operation of the environment configuration control, display the configuration progress information of the selected branch and the selected environment;
[0296] Below the configuration progress information, preview graphic codes for the application subroutines are displayed.
[0297] As an optional embodiment, in response to session interaction information for requesting a preview graphic code in the session page, after displaying the preview graphic code corresponding to the application subroutine in the session page, the processor 901 further performs the following operations by running the computer program in the memory 903:
[0298] Below the preview image code, a time limit information is displayed.
[0299] Based on the same inventive concept, the principle and beneficial effects of the computer device provided in the embodiments of this application in solving the problem are similar to the principle and beneficial effects of the data processing method in the embodiments of this application in solving the problem. Please refer to the principle and beneficial effects of the method implementation. For the sake of brevity, they will not be repeated here.
[0300] This application also provides a computer-readable storage medium storing a computer program adapted to be loaded by a processor and to execute the data processing method described in the above method embodiments.
[0301] This application also provides a computer program product or computer program that includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the data processing method described above.
[0302] The steps in the method of this application embodiment can be adjusted, combined, or deleted according to actual needs.
[0303] The modules in the device of this application embodiment can be merged, divided, and deleted according to actual needs.
[0304] In the embodiments of this application, the term "module" or "unit" refers to a computer program or part of a computer program with a predetermined function, which works together with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.
[0305] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: flash drive, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.
[0306] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Those skilled in the art will understand that all or part of the processes for implementing the above embodiments and equivalent variations made in accordance with the claims of this application are still within the scope of this application.
Claims
1. A data processing method, characterized in that, The method includes: When the session triggering conditions are detected, a graphic code application instruction is displayed on the session page. The graphic code application instruction is used to indicate the application subroutine's method of applying for a preview graphic code; the preview graphic code is used to preview the application subroutine. In response to the session interaction information used to request a preview graphic code on the session page, the preview graphic code corresponding to the application subroutine is displayed on the session page.
2. The method as described in claim 1, characterized in that, The response to the session interaction information used to request a preview graphic code on the session page, after displaying the preview graphic code corresponding to the application subroutine on the session page, further includes: When the preview graphic code is scanned, the preview page of the application subroutine is displayed.
3. The method as described in claim 1, characterized in that, The step of responding to the session interaction information used to request a preview graphic code on the session page, and displaying the preview graphic code corresponding to the application subroutine on the session page, includes: When the session interaction information in the session page carries valid configuration information, in response to the session interaction information, a preview graphic code corresponding to the application subroutine is displayed in the session page.
4. The method as described in claim 1, characterized in that, The step of responding to the session interaction information used to request a preview graphic code on the session page, and displaying the preview graphic code corresponding to the application subroutine on the session page, includes: When the session interaction information in the session page carries invalid configuration information, in response to the session interaction information, a configuration control is displayed on the session page; In response to the selection operation of the configuration control, a preview graphic code corresponding to the application subroutine is displayed on the session page.
5. The method as described in claim 4, characterized in that, When the session interaction information in the session page carries invalid configuration information, in response to the session interaction information, a configuration control is displayed on the session page, including: When the session interaction information in the session page carries invalid configuration information, in response to the session interaction information, a branch configuration control is displayed on the session page; When the branch configuration control is selected, an environment configuration control is displayed on the session page; The step of displaying a preview graphic code corresponding to the application subroutine in the session page in response to a selection operation of the configuration control includes: When the environment configuration control is clicked, a preview graphic code corresponding to the application subroutine is displayed on the session page.
6. The method as described in claim 5, characterized in that, The step of displaying an environment configuration control on the session page in response to the selection of the branch configuration control includes: In response to the selection of the branch configuration control, the branch configuration control displayed on the session page is changed to a prompt message indicating that a branch has been selected; Environment configuration controls are displayed on the session page.
7. The method as described in claim 5, characterized in that, When the environment configuration control is clicked, displaying a preview graphic code corresponding to the application subroutine on the session page includes: In response to the selection operation of the environment configuration control, the configuration progress information of the selected branch and the selected environment is displayed; Below the configuration progress information, a preview graphic code corresponding to the application subroutine is displayed.
8. The method as described in claim 1, characterized in that, The response to the session interaction information used to request a preview graphic code on the session page, after displaying the preview graphic code corresponding to the application subroutine on the session page, further includes: Below the preview graphic code, a timeliness reminder message for the preview graphic code is displayed.
9. A data processing method, characterized in that, The method includes: Obtain the configuration information and project information of the application subroutine. The project information includes the workspace identifier of the application subroutine. The configuration information is used to configure at least one branch and environment of the application subroutine. According to the configuration information and the project information, a preset script is executed to obtain the first development code of the application subroutine. The first development code is obtained by configuring the code of the application subroutine based on the configuration information. The code of the application subroutine is stored in the target workspace, and the target workspace corresponds to the workspace identifier. Output the preview graphical code of the application subroutine, which is used to preview the application subroutine generated based on the first development code.
10. The method as described in claim 9, characterized in that, The step of executing a preset script according to the configuration information and the project information to obtain the first development code of the application subroutine includes: If a target workspace corresponding to the workspace identifier exists, the code of the application subroutine is configured based on the configuration information to obtain the first development code of the application subroutine.
11. The method as described in claim 10, characterized in that, The configuration information includes the target branch and the target environment; configuring the application subroutine's code based on the configuration information to obtain the application subroutine's first development code includes: Switch the code of the application subroutine to the target branch; Configure the runtime environment of the code switched to the target branch to the target environment to obtain the first development code of the application subroutine.
12. The method as described in claim 10, characterized in that, The project information also includes the address for obtaining the code of the application subroutine; the method further includes: If no target work area exists corresponding to the work area identifier, then create a target work area corresponding to the work area identifier. Based on the obtained address, the code of the application subroutine is pulled into the target workspace.
13. The method as described in claim 9, characterized in that, The process of obtaining the configuration information of the application subroutine includes: Obtain the ciphertext and message signature. The ciphertext is obtained by the sender of the ciphertext by encrypting plaintext parameters, and the plaintext parameters include the configuration information of the application subroutine. The message signature is generated by the sender of the ciphertext based on the plaintext parameters and a symmetric key. The ciphertext of the message is decrypted using the symmetric key to obtain the plaintext parameters; Generate a verification signature based on the plaintext parameters and the symmetric key; If the verification signature matches the message signature, then the plaintext parameter is deemed valid.
14. The method as described in claim 9, characterized in that, The configuration information includes the target branch and the target environment; the method further includes: Obtain the branch list and environment list of the application subroutine, wherein the branch list contains at least one candidate branch and the environment list includes at least one candidate environment; If the target branch is not included in the candidate branches, the branch list is output so that the recipient of the branch list can display the branch configuration control based on the branch list; If the target environment is not included in the candidate environments, the environment list is output so that the recipient of the environment list can display the environment configuration control based on the environment list; If the target branch is contained in the candidate branch and the target environment is contained in the candidate environment, then continue to execute the step of configuring the application subroutine code based on the configuration information.
15. The method as described in claim 9, characterized in that, If there is an incomplete second development code, the method further includes: Output a usage notification message, which indicates that development code is currently being generated; or... After the second development code is generated, the step of executing a preset script according to the configuration information and the project information to obtain the first development code of the application subroutine is performed.
16. The method as described in claim 9, characterized in that, The configuration information is extracted by the conversation tool from the conversation interaction information, and the workspace identifier of the application subroutine is the identifier of the social conversation to which the conversation interaction information belongs; The step of outputting the preview graphical code of the application subroutine includes: Return a preview graphical code of the application subroutine to the conversation tool so that the conversation tool can display the preview graphical code of the application subroutine in the social conversation.
17. The method as described in claim 9, characterized in that, The method further includes: The system obtains a connection request sent by a conversation tool, which is embedded in a social conversation. The connection request includes the identity verification information of the conversation tool. The identity verification information includes at least one of the following: the identifier of the conversation tool, the identifier of the project associated with the conversation tool, and the identifier of the application subroutine associated with the conversation tool. If the identity verification information of the session tool passes the identity verification, a connection is established with the session tool.
18. A data processing apparatus, characterized in that, The data processing device includes: The display unit is used to display a graphic code application instruction information on the session page when the session triggering condition is detected. The graphic code application instruction information is used to indicate the application method for the preview graphic code of the application subroutine. The preview graphic code is used to preview the application subroutine. And in response to session interaction information for requesting a preview graphic code on the session page, displaying the preview graphic code corresponding to the application subroutine on the session page.
19. A data processing apparatus, characterized in that, The data processing device includes: The acquisition unit is used to acquire configuration information and project information of the application subroutine. The project information includes the workspace identifier of the application subroutine, and the configuration information is used to configure at least one branch and environment of the application subroutine. The processing unit is configured to execute a preset script according to the configuration information and the project information to obtain the first development code of the application subroutine. The first development code is obtained by configuring the code of the application subroutine based on the configuration information. The code of the application subroutine is stored in a target workspace, and the target workspace corresponds to the workspace identifier. The output unit is used to output a preview graphic code of the application subroutine, which is used to preview the application subroutine generated based on the first development code.
20. A computer device, characterized in that, include: A memory, wherein a computer program is stored; A processor is configured to load the computer program to implement the data processing method as described in any one of claims 1-8; or to load the computer program to implement the data processing method as described in any one of claims 9-17.