CN113220282A - Development processing method, device and storage medium for small program - Google Patents

Development processing method, device and storage medium for small program Download PDF

Info

Publication number
CN113220282A
CN113220282A CN202110492322.2A CN202110492322A CN113220282A CN 113220282 A CN113220282 A CN 113220282A CN 202110492322 A CN202110492322 A CN 202110492322A CN 113220282 A CN113220282 A CN 113220282A
Authority
CN
China
Prior art keywords
applet
project
working area
domain name
small program
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110492322.2A
Other languages
Chinese (zh)
Other versions
CN113220282B (en
Inventor
宋首明
张洪涛
马多
熊丽萍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110492322.2A priority Critical patent/CN113220282B/en
Publication of CN113220282A publication Critical patent/CN113220282A/en
Application granted granted Critical
Publication of CN113220282B publication Critical patent/CN113220282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

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

Abstract

The disclosure provides a development processing method, equipment and a storage medium of an applet, and relates to the technical field of applets, the technical field of cloud platforms and the like. The specific implementation scheme is as follows: in the process of developing the small program project, determining a working area of the small program project by combining an operation request sent by a browser client, acquiring a small program project file corresponding to an operation instruction from the working area, and executing the operation instruction on the small program project file to obtain an operation result; and sending the operation result to the browser client. Therefore, the applet development tool does not need to be installed in the applet development, the operation on the applet project can be completed through the browser client, the applet developer can conveniently develop the applet project, and the influence of the installation of the applet development tool in the terminal on the terminal performance is reduced.

Description

Development processing method, device and storage medium for small program
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to the field of applet technologies, cloud platform technologies, and the like, and in particular, to a development processing method, device, and storage medium for an applet.
Background
The small program is widely used and popular by users once being launched due to the characteristics of installation-free and easy use. Currently, in the process of developing an applet, a developer can download an applet developing tool from a network and install the applet developing tool in a terminal device so as to develop the applet through the applet developing tool in the terminal device.
Disclosure of Invention
The present disclosure provides a development processing method, apparatus, and storage medium for an applet.
According to an aspect of the present disclosure, there is provided a development processing method of an applet, including: receiving an operation request of a browser client, wherein the operation request comprises domain name information of an applet item and an operation instruction; acquiring a working area of the small program project according to the domain name information; acquiring an applet project file corresponding to the operation instruction from the working area; executing the operation instruction on the small program project file to obtain an operation result; and sending the operation result to the browser client.
According to another aspect of the present disclosure, there is provided a development processing apparatus of an applet, including: the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving an operation request of a browser client, and the operation request comprises domain name information and an operation instruction of an applet project; the first acquisition module is used for acquiring the working area of the small program project according to the domain name information; the second acquisition module is used for acquiring the applet project file corresponding to the operation instruction from the working area; the execution module is used for executing the operation instruction on the small program project file to obtain an operation result; and the sending module is used for sending the operation result to the browser client.
According to another aspect of the present disclosure, there is provided an electronic device including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the development processing method of the applet of the present disclosure.
According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute a development processing method of an applet disclosed in an embodiment of the present disclosure.
According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements a development processing method of an applet of the present disclosure.
One embodiment in the above application has the following advantages or benefits:
in the process of developing the small program project, determining a working area of the small program project by combining an operation request sent by a browser client, acquiring a small program project file corresponding to the operation instruction from the working area, and executing the operation instruction on the small program project file to obtain an operation result; and sending the operation result to the browser client. Therefore, the applet development tool does not need to be installed in the applet development, the operation on the applet project can be completed through the browser client, the applet developer can conveniently develop the applet project, and the influence of the installation of the applet development tool in the terminal on the terminal performance is reduced.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is a flowchart illustrating a development processing method of an applet according to an embodiment of the present disclosure;
fig. 2 is a flowchart illustrating a development processing method of an applet according to another embodiment of the present disclosure;
fig. 3 is a detailed flowchart of the manner of acquiring domain name information of an applet item;
FIG. 4 is a diagram of an example of interaction between a browser and a server;
FIG. 5 is a flowchart illustrating a development processing method for an applet according to another embodiment of the disclosure;
fig. 6 is a schematic structural diagram of an applet development processing apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an applet development processing apparatus according to another embodiment of the present disclosure;
fig. 8 is a block diagram of an electronic device for implementing a development processing method of an applet according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
A development processing method, an apparatus, and a storage medium of an applet of the embodiments of the present disclosure are described below with reference to the drawings.
Fig. 1 is a flowchart illustrating a development processing method of an applet according to an embodiment of the present disclosure.
As shown in fig. 1, the development processing method of the applet may include:
step 101, receiving an operation request of a browser client, wherein the operation request includes domain name information of an applet item and an operation instruction.
The main execution body of the development processing method of the applet is a development processing device of the applet, the development processing device of the applet can be realized in a software and/or hardware mode, the development processing device of the applet in the embodiment can be configured in an applet development platform, and the applet development platform is configured in a server.
And 102, acquiring a working area of the small program project according to the domain name information.
The working area refers to the operating environment corresponding to the small program project. It will be appreciated that a developer can complete the development of a corresponding applet project based on the workspace corresponding to the applet project.
It can be understood that the applet development platform in this embodiment includes a working area cluster, where the working area cluster includes a plurality of working areas, the working area cluster is a set of running environments of all the applet projects, and different working areas correspond to different applet projects.
And 103, acquiring the small program project file corresponding to the operation instruction from the working area.
And 104, executing an operation instruction on the small program project file to obtain an operation result.
And step 105, sending the operation result to the browser client.
In the development processing method of the applet of the embodiment of the disclosure, in the process of developing the applet project, a working area of the applet project is determined by combining an operation request sent by a browser client, an applet project file corresponding to an operation instruction is obtained from the working area, and the operation instruction is executed on the applet project file to obtain an operation result; and sending the operation result to the browser client. Therefore, the applet development tool does not need to be installed in the applet development, the operation on the applet project can be completed through the browser client, the applet developer can conveniently develop the applet project, and the influence of the installation of the applet development tool in the terminal on the terminal performance is reduced.
It should be noted that, in different application scenarios, the implementation manners of obtaining the working area of the applet project according to the domain name information are different, and the following exemplary descriptions are provided:
as an exemplary embodiment, the applet item identification information corresponding to the domain name information may be acquired, and the work area of the applet item may be acquired according to the applet item identification information.
As another exemplary embodiment, a work area address corresponding to the domain name information may be acquired, and a work area of the applet item may be acquired based on the work area address.
As an exemplary implementation manner, the work area address corresponding to the domain name information may be obtained through a mapping relationship between the domain name information and the work area address that is stored in advance.
As another exemplary embodiment, the domain name information may be converted through a preset rule to obtain a work area address corresponding to the applet item.
In this embodiment, the working area address of the working area of the applet item can be quickly determined through the domain name information, so that the efficiency of determining the working area of the applet item can be improved.
In an embodiment of the present disclosure, in order to avoid the developer without permission to operate the applet item, permission verification may be performed in combination with cookie information in the operation request, so that those skilled in the art may clearly understand the present application, the method of this embodiment is further described below in combination with fig. 2. As shown in fig. 2, the method may include:
step 201, receiving an operation request of a browser client, wherein the operation request includes cookie information, domain name information of an applet item, and an operation instruction.
Step 202, obtaining first user identification information from the cookie information.
In this embodiment, the first user identification information in the cookie information may be obtained by parsing the cookie information.
Step 203, obtaining second user identification information corresponding to the domain name information.
In this embodiment, a pre-stored correspondence may be queried according to the domain name information to obtain second user identification information corresponding to the domain name information. Wherein the corresponding relationship stores the corresponding relationship between the domain name information and the user identification information. In some implementations, the correspondence may also preserve a correspondence between domain name information, user identification information, and project identification information for the applet project.
Step 204, determining that the first user identification information is consistent with the second user identification information.
In this embodiment, when the first user identification information and the second user identification information are obtained, whether the first user identification information is consistent with the second user identification information or not may be determined, and if the first user identification information is consistent with the second user identification information, it is determined that the permission verification is successful. That is, the determination may be based on the operation request for subsequent processing. That is, it can be determined that the developer corresponding to the operation request has the right to operate the work area of the applet item.
It should be noted that, in the case that the first user identification information is inconsistent with the second user identification information, the prompt information may be sent to the browser client. And the prompt information is used for prompting the corresponding developer to operate the applet project without permission.
And step 205, acquiring a working area of the applet project according to the domain name information.
For specific description of obtaining the working area of the applet item according to the domain name information, reference may be made to the related description of the above embodiments, which is not described herein again.
And step 206, acquiring the applet project file corresponding to the operation instruction from the working area.
And step 207, executing the operation instruction on the applet project file to obtain an operation result.
The operation instruction may be any one of operation instructions required for developing an applet project.
In some embodiments, the operation instruction may be a save code instruction, and correspondingly, the applet code file corresponding to the save code instruction may be acquired from the working area, and according to the save code instruction, the applet code file is stored in the directory corresponding to the applet item in the file system, and a prompt message indicating that the file save is successful is returned to the browser client.
In other embodiments, the operation instruction may be a project compiling instruction, and correspondingly, the applet code file corresponding to the applet project may be obtained from the working area, and the applet code file may be compiled to obtain a compiling result of the applet code file, and the compiling result is sent to the browser client, and the browser client displays the compiling result. For example, the browser client may display the compilation results on an interactive page
In other embodiments, in order to enable a developer to view the effect of an applet page corresponding to an applet item, in the case that the operation instruction is a preview effect instruction, the program code file of the applet item is executed to obtain the applet page of the applet item, the applet page is used as an operation result, and the operation result is sent to the browser client.
In other embodiments, in order to facilitate the corresponding developer to submit the applet package, the operation instruction may be an instruction to submit the applet package, and correspondingly, the operation instruction may obtain a project code file of the applet item from the working area, generate the applet package of the applet item according to the project code file of the applet item, and provide the applet package of the applet item to the applet package service platform.
And step 208, sending the operation result to the browser client.
In the development processing method of the small program, in the process of developing the small program project, an operation request sent by a browser client is combined, and under the condition that a corresponding developer is determined to have authority to operate the small program project based on cookie information in the operation request, a working area of the small program project is determined based on domain name information in the operation request, a small program project file corresponding to an operation instruction is obtained from the working area, and the operation instruction is executed on the small program project file to obtain an operation result; and sending the operation result to the browser client. Therefore, the applet developer can complete the operation of the applet project through the browser client without installing an applet development tool, the development of the applet project by the applet developer is facilitated, and the influence of the installation of the applet development tool in the terminal on the terminal performance is reduced.
In one embodiment of the present disclosure, in order to enable a developer to conveniently create a working area of an applet project and facilitate the developer to complete development of the applet project based on the working area of the applet project, in some embodiments, the working area of the applet project is created in advance by: receiving a working area creating request of a browser client for an applet project; a workspace for the applet item is created. Therefore, the developer can complete the creation of the working area of the small program project through the browser client.
In other embodiments, the workspace for the applet may also be automatically created by the applet development device based on the applet creation request from the browser. Specifically, after receiving the applet item creation request, the applet item may be created according to the applet item creation request, and a corresponding work area may be automatically allocated for the applet item.
In this embodiment, a workspace may be allocated for the applet, wherein in some embodiments, the workspace has initialized the development environment for the applet. In other embodiments, the working area may be a working area of an empty service space, and in order to enable the development of the applet item based on the working area, the working area may be allocated to the applet item, and the backend service information required by the operating environment of the applet item may be acquired, and the working area may be initialized according to the backend service information.
The backend service information may include, but is not limited to, service information of project operation, editing, and debugging; storage service information of project files, project monitoring service information, and the like.
It is to be appreciated that upon initializing a workspace, a corresponding developer can operate on the workspace of the applet project based on the operation request to complete development of the applet project from the workspace.
In one embodiment of the disclosure, in order to facilitate a developer to quickly open an applet project created by the developer based on a browser client, in some embodiments, domain name information corresponding to the applet project may be provided for the developer, so that the developer can quickly access the applet project through the domain name information. In some embodiments, an obtaining manner of the domain name information of the applet item in this embodiment, as shown in fig. 3, may include:
step 301, allocating domain name information to the working area, and using the domain name information allocated to the working area as the domain name information of the applet project.
Step 302, user identification information and item identification information corresponding to the applet item are obtained.
Step 303, establishing an association relationship among the domain name information, the user identification information and the project identification information of the applet project.
Step 304, sending the domain name information of the applet item to the browser client.
In order to make the present application clear to those skilled in the art, the method in this embodiment is described below with reference to fig. 4 and 5. It should be noted that the execution subject of the method in this embodiment is the server side. As can be seen from fig. 4, the service end in this embodiment includes a management end, a container management end, a work area cluster, a file system, a gateway service cluster, an applet package service, and the like. And a network access layer is also arranged between the browser end and the service end.
In fig. 4, the functions of the management end, the container management end, the working area cluster, the file system, the gateway service cluster, the applet package and the network access layer are introduced as follows:
a network access layer: and the system is responsible for accessing and forwarding the flow and forwarding the request sent by the developer to a specific service end.
And the manager is responsible for creating projects for developing the applets, managing the projects and verifying requests, controlling the container management end to create a working area and corresponding domain name allocation, monitoring, health check, recovery and destruction and the like in the browser by a developer.
A container management end: and creating a working area, starting and operating the working area based on the instruction of the management terminal, and mounting a disk for the working area.
Workspace cluster (workspace _ pod): a workplace _ pod (a specific operating environment of an applet development project created by a developer), a workspace cluster is a set of operating environments of all projects.
File system filesystem: the file system provides project files and code persistent storage for a work area (workplace _ pod), and has the characteristics of super-large capacity, dynamic capacity expansion and high available environment satisfaction.
A gateway service cluster: gateway _ pod (receiving the traffic of the project domain name distributed by the manager requested by the developer and forwarding to the corresponding working area), the gateway service cluster is a set of all gateway _ pod machines and is responsible for forwarding all the traffic of the requested project domain name to the specific working area.
Applet package service: and after the development of the applet is finished, submitting the services of functions such as the applet package, the preview effect, the applet plug-in, the applet code block management and the like.
As shown in fig. 5, the development processing method of the applet project in this embodiment may include the following steps:
step 501, receiving domain name information of an online development tool sent by a browser client, and returning a page of the online development tool to the browser client.
Specifically, a developer opens a browser to request domain name information of the online development tool, and correspondingly returns an online development tool page to a browser client.
Step 502, adding an applet item or opening an established applet item according to the operation of the developer online development tool page.
Step 503, forwarding a work area creation request of the browser client for the applet project to a manager (a management end) through a network access layer, sending the work area creation request to a container management end by the management end, allocating specific domain name information for the applet project by the container management end according to the work area creation request, creating a work area, and mounting a disk.
One possible implementation manner for allocating specific domain name information to the applet item is as follows: and acquiring user identification information and project identification information of the small program project in the working area establishing request, and distributing specific domain name information for the small program project according to the user identification information and the project identification information.
Step 504, the container management end creates a working area, initializes the working area based on the back-end service information required by the operating environment of the applet item, and notifies the manager (management end) that the initialization of the working area is completed after detecting that the initialization of the working area is completed, and the manager (management end) returns the specific domain name of the allocated applet item to the browser client.
The domain name information of the applet item can be displayed on the interactive page corresponding to the browser client. Thus, the developer can know the domain name information of the small program project.
And 505, after opening the specific domain name allocated by the project, the developer calls the flow to a gateway cluster layer of the public cloud BCC.
Step 506, after receiving the traffic, the gateway cluster layer sends an operation request to a manager (management end) through a certain gateway after load balancing, wherein the operation request contains the domain name host allocated by the project and the Cookie information of the developer, performs authority verification and acquires a real work area address.
Step 507, forwarding the operation request to a working area corresponding to the working area address in the working area cluster.
Step 508, after receiving the operation request, the work area cluster (workplace _ pod) performs operations according to the specific behaviors of the user, such as saving files, coding to a disk, compiling projects, submitting small program packages, previewing package effects, and other specific operations of the small program development tool.
In step 509, the applet package service submits the operation of the associated applet package to the applet package service, thereby ensuring the specific development of the applet and forming a stable closed-loop operation.
In order to implement the foregoing embodiments, the embodiments of the present disclosure further provide a development processing apparatus for an applet.
Fig. 6 is a schematic structural diagram of a development processing apparatus for an applet according to an embodiment of the present disclosure.
As shown in fig. 6, the development processing apparatus 600 of the applet may include a first receiving module 601, a first obtaining module 602, a second obtaining module 603, an executing module 604, and a sending module 605, wherein:
the first receiving module 601 is configured to receive an operation request of a browser client, where the operation request includes domain name information of an applet item and an operation instruction.
The first obtaining module 602 is configured to obtain a working area of an applet project according to the domain name information.
A second obtaining module 603, configured to obtain an applet project file corresponding to the operation instruction from the working area.
The execution module 604 is configured to execute the operation instruction on the applet project file to obtain an operation result.
A sending module 605, configured to send the operation result to the browser client.
It should be noted that the explanation of the embodiment of the development processing method for applets is also applicable to this embodiment, and this implementation is not described again.
In the development processing device for the small program of the embodiment of the disclosure, in the process of developing the small program project, a working area of the small program project is determined by combining an operation request sent by a browser client, a small program project file corresponding to an operation instruction is obtained from the working area, and the operation instruction is executed on the small program project file to obtain an operation result; and sending the operation result to the browser client. Therefore, the applet development tool does not need to be installed in the applet development, the operation on the applet project can be completed through the browser client, the applet developer can conveniently develop the applet project, and the influence of the installation of the applet development tool in the terminal on the terminal performance is reduced.
In one embodiment of the present disclosure, as shown in fig. 7, the development processing device of the applet may include: a first receiving module 701, a first obtaining module 702, a second obtaining module 703, an executing module 704, a sending module 705, a third obtaining module 706, a fourth obtaining module 707, a determining module 708, a second receiving module 709, a creating module 710, a domain name allocating module 711, a fifth obtaining module 712, and an association relationship establishing module 713, where the first obtaining module 702 may include a first obtaining unit 7021 and a second obtaining unit 7022.
For detailed description of the first receiving module 701, the second obtaining module 703 and the executing module 704, please refer to the descriptions of the first receiving module 601, the second obtaining module 603 and the executing module 604 in the embodiment shown in fig. 6, which will not be described here.
A first obtaining module 702, comprising:
a first obtaining unit 7021, configured to obtain a work area address corresponding to the domain name information;
a second obtaining unit 7022 is configured to obtain the working area of the applet item according to the working area address.
In one embodiment of the present disclosure, the operation request further includes cookie information, and the apparatus may further include:
a third obtaining module 706, configured to obtain the first user identification information from the cookie information.
The fourth obtaining module 707 is configured to obtain second user identifier information corresponding to the domain name information.
A determining module 708 configured to determine that the first subscriber identity information is consistent with the second subscriber identity information.
In an embodiment of the present disclosure, the apparatus may further include:
a second receiving module 709, configured to receive a workspace establishment request of the browser client;
a creation module 710 for creating a workspace for the applet project.
The creating module 710 is specifically configured to: allocating a working area for the small program project; acquiring back-end service information required by the operating environment of the applet project; and initializing the working area according to the back-end service information.
In some embodiments of the present disclosure, the apparatus further comprises:
the domain name allocating module 711 is configured to allocate domain name information to the working area, and use the domain name information allocated to the working area as domain name information of the applet item.
A fifth obtaining module 712, configured to obtain user identification information and item identification information corresponding to the applet item.
An association relationship establishing module 713, configured to establish an association relationship among the domain name information, the user identification information, and the project identification information of the applet project.
The sending module 705 is further configured to send domain name information of the applet item to the browser client.
In an embodiment of the disclosure, the executing module 704 is specifically configured to:
and under the condition that the operation instruction is a preview effect instruction, operating the project code file of the small program project to obtain a small program page of the small program project, and taking the small program page as an operation result.
It should be noted that the foregoing explanation of the embodiment of the applet development processing method is also applicable to the applet development processing apparatus in this embodiment, and details are not repeated here.
The present disclosure also provides an electronic device and a readable storage medium and a computer program product according to embodiments of the present disclosure.
FIG. 8 illustrates a schematic block diagram of an example electronic device 800 that can be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 8, the apparatus 800 includes a computing unit 801 that can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)802 or a computer program loaded from a storage unit 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the device 800 can also be stored. The calculation unit 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to bus 804.
A number of components in the device 800 are connected to the I/O interface 805, including: an input unit 806, such as a keyboard, a mouse, or the like; an output unit 807 such as various types of displays, speakers, and the like; a storage unit 808, such as a magnetic disk, optical disk, or the like; and a communication unit 809 such as a network card, modem, wireless communication transceiver, etc. The communication unit 809 allows the device 800 to exchange information/data with other devices via a computer network such as the internet and/or various telecommunication networks.
Computing unit 801 may be a variety of general and/or special purpose processing components with processing and computing capabilities. Some examples of the computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 801 executes the respective methods and processes described above, such as the development processing method of the applet. For example, in some embodiments, the development processing method of an applet may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 808. In some embodiments, part or all of the computer program can be loaded and/or installed onto device 800 via ROM 802 and/or communications unit 809. When the computer program is loaded into the RAM 803 and executed by the computing unit 801, one or more steps of the development processing method of the applet described above may be performed. Alternatively, in other embodiments, the computing unit 801 may be configured to perform the development processing method of the applet in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), the internet, and blockchain networks.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present disclosure may be executed in parallel, sequentially, or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, and the present disclosure is not limited herein.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. A development processing method of an applet includes:
receiving an operation request of a browser client, wherein the operation request comprises domain name information of an applet item and an operation instruction;
acquiring a working area of the small program project according to the domain name information;
acquiring an applet project file corresponding to the operation instruction from the working area;
executing the operation instruction on the small program project file to obtain an operation result;
and sending the operation result to the browser client.
2. The method of claim 1, wherein the obtaining the work area of the applet project according to the domain name information comprises:
acquiring a working area address corresponding to the domain name information;
and acquiring the working area of the small program project according to the working area address.
3. The method of claim 1 or 2, wherein the operation request further comprises cookie information, and before the obtaining of the working area of the applet item according to the domain name information, the method further comprises:
acquiring first user identification information from the cookie information;
acquiring second user identification information corresponding to the domain name information;
determining that the first user identification information is consistent with the second user identification information.
4. The method of claim 1, wherein the workspace for the applet project is pre-created by:
receiving a working area creating request of a browser client for the small program project;
a workspace for the applet item is created.
5. The method of claim 4, wherein the creating a workspace for the applet item comprises:
allocating a working area for the applet project;
acquiring back-end service information required by the operating environment of the applet project;
and initializing the working area according to the back-end service information.
6. The method of claim 4, wherein the method further comprises:
distributing domain name information for the working area, and taking the domain name information distributed for the working area as the domain name information of the small program project;
acquiring user identification information and project identification information corresponding to the applet project;
establishing an association relation among the domain name information, the user identification information and the project identification information of the applet project;
and sending the domain name information of the applet item to the browser client.
7. The method of claim 1, wherein said executing the operation instructions on the applet project file to obtain an operation result comprises:
and under the condition that the operation instruction is a preview effect instruction, operating the project code file of the small program project to obtain a small program page of the small program project, and taking the small program page as the operation result.
8. An applet development processing apparatus comprising:
the system comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving an operation request of a browser client, and the operation request comprises domain name information and an operation instruction of an applet project;
the first acquisition module is used for acquiring the working area of the small program project according to the domain name information;
the second acquisition module is used for acquiring the applet project file corresponding to the operation instruction from the working area;
the execution module is used for executing the operation instruction on the small program project file to obtain an operation result;
and the sending module is used for sending the operation result to the browser client.
9. The apparatus of claim 8, wherein the first obtaining means comprises:
a first obtaining unit, configured to obtain a work area address corresponding to the domain name information;
and the second acquisition unit is used for acquiring the working area of the small program project according to the working area address.
10. The apparatus of claim 8 or 9, wherein the operation request further includes cookie information, the apparatus further comprising:
a third obtaining module, configured to obtain first user identification information from the cookie information;
a fourth obtaining module, configured to obtain second user identification information corresponding to the domain name information;
a determining module, configured to determine that the first user identification information is consistent with the second user identification information.
11. The apparatus of claim 8, wherein the apparatus further comprises:
the second receiving module is used for receiving a working area establishing request of the browser client;
and the creating module is used for creating a working area of the applet project.
12. The apparatus according to claim 11, wherein the creating module is specifically configured to:
allocating a working area for the applet project;
acquiring back-end service information required by the operating environment of the applet project;
and initializing the working area according to the back-end service information.
13. The apparatus of claim 11, wherein the apparatus further comprises:
the domain name distribution module is used for distributing domain name information for the working area and taking the domain name information distributed for the working area as the domain name information of the small program project;
a fifth obtaining module, configured to obtain user identification information and item identification information corresponding to the applet item;
the incidence relation establishing module is used for establishing incidence relation among the domain name information, the user identification information and the project identification information of the small program project;
the sending module is further configured to send the domain name information of the applet item to the browser client.
14. The apparatus of claim 8, wherein the execution module is specifically configured to:
and under the condition that the operation instruction is a preview effect instruction, operating the project code file of the small program project to obtain a small program page of the small program project, and taking the small program page as the operation result.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
17. A computer program product comprising a computer program which, when executed by a processor, implements the method of any one of claims 1-7.
CN202110492322.2A 2021-05-06 2021-05-06 Development processing method, device and storage medium for applet Active CN113220282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110492322.2A CN113220282B (en) 2021-05-06 2021-05-06 Development processing method, device and storage medium for applet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110492322.2A CN113220282B (en) 2021-05-06 2021-05-06 Development processing method, device and storage medium for applet

Publications (2)

Publication Number Publication Date
CN113220282A true CN113220282A (en) 2021-08-06
CN113220282B CN113220282B (en) 2023-07-18

Family

ID=77091244

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110492322.2A Active CN113220282B (en) 2021-05-06 2021-05-06 Development processing method, device and storage medium for applet

Country Status (1)

Country Link
CN (1) CN113220282B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020173984A1 (en) * 2000-05-22 2002-11-21 Robertson James A. Method and system for implementing improved containers in a global ecosystem of interrelated services
CN102968451A (en) * 2012-10-25 2013-03-13 北京奇虎科技有限公司 Method for loading website data in browser format page and browser client
CN111597114A (en) * 2020-05-18 2020-08-28 北京百度网讯科技有限公司 Method, device and equipment for verifying small program and storage medium
CN112148075A (en) * 2020-10-05 2020-12-29 衡阳斯巴克信息科技有限公司 Calculation formula applet development is with multi-functional demonstration board
CN112433788A (en) * 2020-11-23 2021-03-02 百度在线网络技术(北京)有限公司 Applet running method and device, electronic equipment and storage medium
KR20210042283A (en) * 2020-07-21 2021-04-19 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Data processing method, device, equipment and medium for applet

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020173984A1 (en) * 2000-05-22 2002-11-21 Robertson James A. Method and system for implementing improved containers in a global ecosystem of interrelated services
CN102968451A (en) * 2012-10-25 2013-03-13 北京奇虎科技有限公司 Method for loading website data in browser format page and browser client
CN111597114A (en) * 2020-05-18 2020-08-28 北京百度网讯科技有限公司 Method, device and equipment for verifying small program and storage medium
KR20210042283A (en) * 2020-07-21 2021-04-19 베이징 바이두 넷컴 사이언스 앤 테크놀로지 코., 엘티디. Data processing method, device, equipment and medium for applet
CN112148075A (en) * 2020-10-05 2020-12-29 衡阳斯巴克信息科技有限公司 Calculation formula applet development is with multi-functional demonstration board
CN112433788A (en) * 2020-11-23 2021-03-02 百度在线网络技术(北京)有限公司 Applet running method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
朱帅;朱轶蓉;郑新超;: "基于微信小程序的多语种跨文化UGC互动网络社区平台的设计与开发", 电脑知识与技术, no. 20 *

Also Published As

Publication number Publication date
CN113220282B (en) 2023-07-18

Similar Documents

Publication Publication Date Title
US10977062B2 (en) System for starting virtual machine using mirror image file stored in units of a distributed block storage system mapped to units of a logical volume
CN110289983B (en) Load balancing application creation method and device, computer equipment and storage medium
US20160162308A1 (en) Deploying a virtual machine in a computing environment
US9148426B2 (en) Securely identifying host systems
CN109995814B (en) Cloud host resource migration method and device, communication equipment and storage medium
US10461772B1 (en) Code conversion
CN106254471A (en) Resource United Dispatching method and system under a kind of isomery cloud environment
CN114418828B (en) Video memory management method, device, equipment, storage medium and program product
CN111787126A (en) Container creation method, server, and storage medium
CN111865629A (en) Method, apparatus and computer program product for configuring service instances
CN114915593A (en) Redis-based flow control method and device, electronic equipment and storage medium
CN113709151A (en) Method, apparatus, device, medium and product for logging in cloud application
CN116431282A (en) Cloud virtual host server management method, device, equipment and storage medium
CN114389969A (en) Client test method and device, electronic equipment and storage medium
US20200183751A1 (en) Handling expiration of resources allocated by a resource manager running a data integration job
CN113377381A (en) Method and device for distributing small program package, electronic equipment and medium
US11303587B2 (en) Chatbot information processing
CN113220282A (en) Development processing method, device and storage medium for small program
KR20220139407A (en) Task assignment method and apparatus, electronic device and computer readable medium
CN103051607B (en) Access method, equipment and system
CN113726881A (en) Communication connection establishment method, related device and computer program product
US20200073672A1 (en) Internationalization controller
US10884789B2 (en) Process tracking
CN114996169B (en) Device diagnosis method, device, electronic device, and storage medium
US20220398191A1 (en) Heap space management

Legal Events

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