CN113220282B - Development processing method, device and storage medium for applet - Google Patents

Development processing method, device and storage medium for applet Download PDF

Info

Publication number
CN113220282B
CN113220282B CN202110492322.2A CN202110492322A CN113220282B CN 113220282 B CN113220282 B CN 113220282B CN 202110492322 A CN202110492322 A CN 202110492322A CN 113220282 B CN113220282 B CN 113220282B
Authority
CN
China
Prior art keywords
applet
item
domain name
working area
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110492322.2A
Other languages
Chinese (zh)
Other versions
CN113220282A (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

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

Abstract

The present disclosure provides a development processing method, device and storage medium for an applet, and relates to the technical field of the applet, the technical field of a cloud platform, and the like. The specific implementation scheme is as follows: in the process of developing the applet project, determining a working area of the applet project by combining an operation request sent by a browser client, acquiring an applet project file corresponding to an operation instruction from the working area, and executing the operation instruction on the applet project file to obtain an operation result; and sending the operation result to the browser client. Therefore, the operation of the applet project can be completed through the browser client without installing an applet development tool in the applet development, the applet development of the applet project by the applet developer is facilitated, and the influence of the applet development tool installed in the terminal on the terminal performance is reduced.

Description

Development processing method, device and storage medium for applet
Technical Field
The disclosure relates to the technical field of computers, in particular to the technical field of applets, the technical field of cloud platforms and the like, and particularly relates to a development processing method, equipment and a storage medium of applets.
Background
Because of the characteristics of no installation and easy use, the applet is widely used and popular with users once being pushed out. Currently, in the process of developing the applet, a developer can download the applet development tool from the network and install the applet development tool in the terminal device, so as to develop the applet by the applet development tool in the terminal device, however, the method based on the applet development tool in the terminal device has larger resource consumption on the terminal and also has influence on the terminal performance.
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 applet item according to the domain name information; acquiring an applet item file corresponding to the operation instruction from the working area; executing the operation instruction on the applet 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 an applet development processing apparatus including: the first receiving module is used for receiving an operation request of the browser client, wherein the operation request comprises domain name information of an applet item and an operation instruction; the first acquisition module is used for acquiring the working area of the applet item 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 applet 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 methods of the applets 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 the 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 the development processing method of the applet of the present disclosure.
One embodiment of the above application has the following advantages or benefits:
in the process of developing the applet project, determining a working area of the applet project by combining an operation request sent by a browser client, acquiring an applet project file corresponding to the operation instruction from the working area, and executing the operation instruction on the applet project file to obtain an operation result; and sending the operation result to the browser client. Therefore, the operation of the applet project can be completed through the browser client without installing an applet development tool in the applet development, the applet development of the applet project by the applet developer is facilitated, and the influence of the applet development tool installed in the terminal on the terminal performance is reduced.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
FIG. 1 is a flow diagram of a development processing method for an applet, provided in accordance with one embodiment of the present disclosure;
FIG. 2 is a flow diagram of an applet development processing method provided in accordance with another embodiment of the present disclosure;
FIG. 3 is a detailed flow chart of a manner of acquiring domain name information for an applet item;
FIG. 4 is an exemplary diagram of interactions between a browser and a server;
FIG. 5 is a flow diagram of an applet development processing method provided in accordance with another embodiment of the present disclosure;
FIG. 6 is a schematic diagram of an applet development processing apparatus according to one embodiment of the present disclosure;
FIG. 7 is a schematic diagram of an applet development processing apparatus provided in accordance with another embodiment of the present disclosure;
fig. 8 is a block diagram of an electronic device for implementing the development processing method of the applet of the embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one 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.
Development processing methods, apparatuses, and storage media of the applet of the embodiments of the present disclosure are described below with reference to the accompanying drawings.
Fig. 1 is a flow chart of a development processing method of an applet according to one 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 comprises domain name information of an applet item and an operation instruction.
The execution main body of the development processing method of the applet is an applet development processing device, the applet development processing device can be implemented by software and/or hardware, and the applet development processing device in the embodiment can be configured in an applet development platform, and the applet development platform is configured in a server.
Step 102, according to the domain name information, the working area of the applet item is obtained.
The working area refers to an operation environment corresponding to the applet item. It is to be appreciated that a developer can complete development of an applet project based on a workspace corresponding to the applet project.
It can be understood that the applet development platform in this embodiment includes a workspace cluster, where the workspace cluster includes a plurality of workspaces, and the workspace cluster is a set of all applet project operating environments, and different workspaces correspond to different applet projects.
Step 103, acquiring the applet item file corresponding to the operation instruction from the work area.
Step 104, executing the operation instruction on the applet project file to obtain an operation result.
And step 105, transmitting the operation result to the browser client.
In the development processing method of the applet in the embodiment of the disclosure, in the process of developing the applet project, a working area of the applet project is determined in combination with 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 operation of the applet project can be completed through the browser client without installing an applet development tool in the applet development, the applet development of the applet project by the applet developer is facilitated, and the influence of the applet development tool installed in the terminal on the terminal performance is reduced.
In the application scenarios, the implementation manner of the working area for acquiring the applet item according to the domain name information is different, and the exemplary description is as follows:
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 workspace address corresponding to the domain name information may be obtained, and a workspace of the applet item may be obtained based on the workspace address.
As an exemplary embodiment, the workspace address corresponding to the domain name information may be obtained through a mapping relationship between the domain name information and the workspace address stored in advance.
As another exemplary embodiment, the domain name information may be converted by a preset rule to obtain a workspace address corresponding to the applet item.
In this embodiment, the address of the working area of the applet item can be quickly determined by the domain name information, so that the efficiency of determining the working area of the applet item can be improved.
In one embodiment of the present disclosure, to avoid having a developer without rights to operate on the applet item, rights verification may also be performed in conjunction with cookie information in the operation request, the method of which is further described below in conjunction with fig. 2, in order to make the application clear to those skilled in the art. As shown in fig. 2, the method may include:
in step 201, an operation request of the browser client is received, 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 cookie information may be parsed to obtain the first user identification information in the cookie information.
Step 203, obtaining second user identification information corresponding to the domain name information.
In this embodiment, the pre-stored correspondence may be queried according to the domain name information, so as to obtain the second user identification information corresponding to the domain name information. Wherein, the corresponding relation stores the corresponding relation between the domain name information and the user identification information. In some implementations, the correspondence may also store a correspondence between domain name information, user identification information, and item identification information for the applet item.
Step 204, determining that the first user identification information is consistent with the second user identification information.
In this embodiment, after 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, the authority verification is determined to be successful. That is, it is determined that the subsequent processing can be performed based on the operation request. That is, it may be determined that the developer to which the operation request corresponds has authority to operate on the workspace of the applet item.
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. The prompt information is used for prompting the corresponding developer to operate the applet item without permission.
Step 205, the working area of the applet item is obtained according to the domain name information.
For a specific description of the working area for acquiring the applet item according to the domain name information, reference may be made to the related description of the above embodiment, which is not repeated herein.
And 206, acquiring the applet project file corresponding to the operation instruction from the working area.
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 item.
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 obtained from the workspace, and according to the save code instruction, the applet code file is stored in a 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 an item compiling instruction, and correspondingly, the applet program code file corresponding to the applet item may be obtained from the work 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, where the browser client displays the compiling result. For example, the browser client may display the compiled results on the interactive page
In other embodiments, in order to enable a developer to view the effect of the applet page corresponding to the applet item, in the case that the operation instruction is a preview effect instruction, the item code file of the applet item is run to obtain the applet page of the applet item, and the applet page is used as an operation result, and the operation result is sent to the browser client.
In other embodiments, to facilitate submission of the applet package by the corresponding developer, the operation instructions may be a submit applet package instruction, and correspondingly, the program code file of the applet project may be obtained from the workspace, and the applet package of the applet project may be generated from the program code file of the applet project, and provided to the applet package service platform.
And step 208, sending the operation result to the browser client.
In the development processing method of the applet in the embodiment of the disclosure, in the process of developing the applet project, combining an operation request sent by a browser client, and under the condition that a corresponding developer is determined to have authority to operate the applet project based on cookie information in the operation request, determining a working area of the applet project based on domain name information in the operation request, acquiring an applet project file corresponding to an operation instruction from the working area, and executing the operation instruction on the applet project file to obtain an operation result; and sending the operation result to the browser client. Therefore, the operation of the applet project can be completed through the browser client without installing the applet development tool, the applet development of the applet project is facilitated for the applet developer, and the influence of the applet development tool installed in the terminal on the terminal performance is reduced.
In one embodiment of the present disclosure, in order for a developer to conveniently create a workspace of an applet item to facilitate the developer's completion of the development of the applet item based on the workspace of the applet item, in some embodiments, the workspace of the applet item is pre-created by: receiving a work area creation request of a browser client for an applet item; a workspace for the applet item is created. Therefore, a developer can complete the creation of the working area of the applet project through the browser client.
In other embodiments, the workspace of the applet item may also be automatically created by the applet development device based on the browser's applet item creation request. Specifically, after receiving the applet item creation request, the applet item may be created according to the applet item creation request and a corresponding workspace may be automatically allocated for the applet item.
In this embodiment, a workspace may be allocated for the applet item, wherein in some embodiments, the development environment for the applet item has been initialized in the workspace. In other embodiments, the workspace may be a workspace of an empty service space, so that the workspace may be allocated for the applet item in order to enable subsequent applet development based on the workspace, and back-end service information required by the execution environment of the applet item may be acquired, and the workspace may be initialized according to the back-end service information.
Wherein, the back-end service information can include, but is not limited to, project running, editing and debugging service information; storage service information of project files, project monitoring service information, and the like.
It will be appreciated that after initializing the workspace, the corresponding developer can operate on the workspace of the applet item based on the operation request to complete development of the applet item from the workspace.
In one embodiment of the present disclosure, to facilitate a developer to quickly open an applet item created by the developer based on a browser client, in some embodiments, domain name information corresponding to the applet item may be provided to the developer to facilitate the developer to quickly access the applet item through the domain name information. In some embodiments, one way to obtain domain name information of the applet item in this embodiment, as shown in fig. 3, may include:
step 301, assigning domain name information to the working area, and using the domain name information assigned to the working area as domain name information of the applet item.
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 item identification information of the applet item.
Step 304, domain name information of the applet item is sent to the browser client.
The method in this embodiment is described below in connection with fig. 4 and 5 in order to make the present application clear to a person skilled in the art. It should be noted that, the execution body 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 working area cluster, a file system, a gateway service cluster, a small package service, and the like. And a network access layer is also arranged between the browser end and the server 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 service, and the network access layer are described as follows:
network access layer: and the system is responsible for traffic access and forwarding, and forwards the request sent by the developer to a specific service end.
manager is responsible for creating items of development applet, managing the items and verification of request, controlling container manager to create work area and corresponding domain name assignment, monitoring, health check, recovery destruction, etc. in browser.
And the container management end: creating a working area, starting and running based on instructions of the management end, and mounting a disk for the working area.
Workspace_pod): a workspace_pod (developer created applet development project specific runtime environment) is a collection of all project runtime environments.
File system: a file system for providing project files and code persistence storage for a work space (workspace_pod) has the characteristics of super-large capacity and dynamic capacity expansion and meets the high-availability environment.
Gateway service cluster: gateway_pod (the traffic of the project domain name distributed by the manager receiving the request of the developer is forwarded to the corresponding working area), and the gateway service cluster is the set of all gateway_pod machines and is responsible for forwarding the traffic of all the requested project domain names to the specific working area.
The applet package service: and the service is responsible for submitting the functions of applet package, preview effect, applet plug-in, applet code block management and the like after the applet development is completed.
As shown in fig. 5, the development processing method of the applet project of the present embodiment may include the steps of:
step 501, receiving domain name information of an online development tool sent by a browser client, and returning the domain name information of the online development tool to the browser client.
Specifically, the developer opens the browser to request domain name information of the online development tool, and correspondingly returns the online development tool page to the browser client.
Step 502, add applet items or open created applet items, depending on the developer's operation on the online development tool page.
In step 503, the work area creation request of the browser client for the applet item is forwarded to a manager (management end) through the network access layer, the management end sends the work area creation request to the container management end, and the container management end allocates specific domain name information for the applet item according to the work area creation request, creates a work area and mounts a disk.
One possible implementation way of assigning specific domain name information to the applet item is: user identification information and item identification information of the applet item in the work area creation request are obtained, and specific domain name information is allocated to the applet item according to the user identification information and the item identification information.
In step 504, the container manager creates a workspace, initializes the workspace based on backend service information required by the runtime environment of the applet item, and after detecting that the workspace initialization is complete, notifies the manager that the initialization is complete, and the manager returns the assigned specific domain name of the applet item to the browser client.
Domain name information of the applet item can be displayed on an interaction page corresponding to the browser client. Thus, the developer is enabled to learn the domain name information of the applet item.
In step 505, after the developer opens the specific domain name allocated by the project, traffic is beaten to the gateway cluster layer of the public cloud BCC.
Step 506, after the gateway cluster layer receives the traffic, through load balancing, an operation request is sent to a manager (management end) through a certain gateway, the operation request contains domain name host and developer Cookie information allocated by a project, and authority verification is performed to obtain a real work area address.
And step 507, forwarding the operation request to a working area corresponding to the working area address in the working area cluster.
In step 508, after the workspace cluster (workspace_pod) receives the operation request, the operation is performed according to the specific behavior of the user, such as saving a file, code to disk, compiling a project, submitting a applet package, previewing a package effect, and the like.
In step 509, the applet service submits the operation of the related applet package to the applet package service, thereby ensuring specific development work of the applet and forming a stable closed loop operation.
In order to achieve the above embodiments, the embodiments of the present disclosure further provide an applet development processing apparatus.
Fig. 6 is a schematic structural view of an applet development processing apparatus according to one 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 acquiring module 602, a second acquiring module 603, an executing module 604, and a transmitting module 605, wherein:
the first receiving module 601 is configured to receive an operation request of the 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 the applet item according to the domain name information.
The second obtaining module 603 is configured to obtain, from the workspace, an applet item file corresponding to the operation instruction.
And the execution module 604 is used for executing operation instructions on the applet project file to obtain an operation result.
And the sending module 605 is used for sending the operation result to the browser client.
It should be noted that the foregoing explanation of the development processing method embodiment of the applet is also applicable to the present embodiment, and this embodiment will not be repeated.
In the development processing device of the applet in the embodiment of the disclosure, in the process of developing the applet project, a working area of the applet project is determined in combination with 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 operation of the applet project can be completed through the browser client without installing an applet development tool in the applet development, the applet development of the applet project by the applet developer is facilitated, and the influence of the applet development tool installed in the terminal on the terminal performance is reduced.
In one embodiment of the present disclosure, as shown in fig. 7, the development processing apparatus of the applet may include: the first acquisition module 702 may include a first acquisition unit 7021 and a second acquisition unit 7022, and a first receiving module 701, a first acquisition module 702, a second acquisition module 703, an executing module 704, a transmitting module 705, a third acquisition module 706, a fourth acquisition module 707, a determining module 708, a second receiving module 709, a creating module 710, a domain name assigning module 711, a fifth acquisition module 712, and an association relation establishing module 713.
For a detailed description of the first receiving module 701, the second acquiring module 703 and the executing module 704, refer to the description of the first receiving module 601, the second acquiring module 603 and the executing module 604 in the embodiment shown in fig. 6, which will not be described here.
The first acquisition module 702 includes:
a first acquiring unit 7021 configured to acquire a work area address corresponding to domain name information;
the second obtaining unit 7022 is configured to obtain a workspace of the applet item according to the workspace 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.
A fourth obtaining module 707 is configured to obtain second user identification information corresponding to the domain name information.
A determining module 708 is configured to determine that the first user identification information is consistent with the second user identification information.
In one embodiment of the present disclosure, the apparatus may further include:
a second receiving module 709, configured to receive a workspace creation request of the browser client;
a creation module 710 for creating a workspace for the applet item.
The creation module 710 is specifically configured to: assigning a workspace to the applet item; acquiring back-end service information required by the running environment of the applet project; and initializing a working area according to the back-end service information.
In some embodiments of the present disclosure, the apparatus further comprises:
the domain name assignment module 711 is configured to assign domain name information to the work area, and use the domain name information assigned to the work area as domain name information of the applet item.
And a fifth acquiring module 712, configured to acquire user identification information and item identification information corresponding to the applet item.
The association relationship establishing module 713 is configured to establish an association relationship between domain name information, user identification information, and item identification information of the applet item.
The sending module 705 is further configured to send domain name information of the applet item to the browser client.
In one embodiment of the disclosure, the execution module 704 is specifically configured to:
and under the condition that the operation instruction is a preview effect instruction, running the project code file of the applet project to obtain an applet page of the applet project, and taking the applet page as an operation result.
It should be noted that the explanation of the foregoing embodiments of the development processing method of the applet is also applicable to the development processing apparatus of the applet in this embodiment, and will not be repeated here.
According to embodiments of the present disclosure, the present disclosure also provides an electronic device and a readable storage medium and a computer program product.
Fig. 8 illustrates a schematic block diagram of an example electronic device 800 that may 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 telephones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary 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 computing 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 the bus 804.
Various components in device 800 are connected to I/O interface 805, including: an input unit 806 such as a keyboard, mouse, etc.; 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, etc.; and a communication unit 809, such as a network card, modem, wireless communication transceiver, or the like. 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.
The computing unit 801 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of computing unit 801 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 801 performs the respective methods and processes described above, for example, development processing methods of applets. For example, in some embodiments, the development processing method of the applet may be implemented as a computer software program tangibly embodied on a machine-readable medium, such as the storage unit 808. In some embodiments, part or all of the computer program may be loaded and/or installed onto device 800 via ROM 802 and/or communication unit 809. When a 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 can 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 circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On 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, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for carrying out methods of the present disclosure may be written in any combination of one or more programming languages. These program code 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 code, when executed by the processor or controller, causes the functions/operations specified in the flowchart and/or block diagram to be implemented. 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. The 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 pointing device (e.g., a mouse or 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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 a client and a server. The client and server are typically 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 that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service ("Virtual Private Server" or simply "VPS") are overcome. The server may also be a server of a distributed system or a server that incorporates a blockchain.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps recited in the present disclosure may be performed in parallel or sequentially or in a different order, provided that the desired results of the technical solutions of the present disclosure are achieved, and are not limited herein.
The above detailed description should not be taken as limiting the scope of the present disclosure. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present disclosure are intended to be included within the scope of the present disclosure.

Claims (8)

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 applet item according to the domain name information;
acquiring an applet item file corresponding to the operation instruction from the working area;
executing the operation instruction on the applet project file to obtain an operation result;
sending the operation result to the browser client;
the step of obtaining the working area of the applet item according to the domain name information comprises the following steps:
acquiring a working area address corresponding to the domain name information;
acquiring a working area of the applet item according to the working area address;
wherein the workspace of the applet item is pre-created by:
receiving a work area creation request of a browser client side aiming at the applet item;
creating a workspace for the applet item;
the creating a workspace for the applet item comprises:
assigning a workspace to the applet item;
acquiring back-end service information required by the running environment of the applet item;
initializing the working area according to the back-end service information;
the method further comprises the steps of:
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 applet item;
acquiring user identification information and item identification information corresponding to the applet item;
establishing an association relationship among domain name information, user identification information and item identification information of the applet item;
and sending the domain name information of the applet item to the browser client.
2. The method of claim 1, wherein the operation request further comprises cookie information, the method further comprising, prior to the retrieving the workspace for the applet item based on the domain name information:
acquiring first user identification information from the cookie information;
acquiring second user identification information corresponding to the domain name information;
and determining that the first user identification information is consistent with the second user identification information.
3. The method of claim 1, wherein the executing the operation instruction on the applet item file to obtain an operation result comprises:
and under the condition that the operation instruction is a preview effect instruction, operating an item code file of the small program item to obtain a small program page of the small program item, and taking the small program page as the operation result.
4. An applet development processing apparatus comprising:
the first receiving module is used for receiving an operation request of the browser client, wherein the operation request comprises domain name information of an applet item and an operation instruction;
the first acquisition module is used for acquiring the working area of the applet item 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 applet project file to obtain an operation result;
the sending module is used for sending the operation result to the browser client;
the first acquisition module includes:
the first acquisition unit is used for acquiring a working area address corresponding to the domain name information;
the second acquisition unit is used for acquiring the working area of the applet item according to the working area address;
the apparatus further comprises:
the second receiving module is used for receiving a work area creation request of the browser client;
the creation module is used for creating a working area of the applet item;
the creation module is specifically configured to:
assigning a workspace to the applet item;
acquiring back-end service information required by the running environment of the applet item;
initializing the working area according to the back-end service information;
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 applet item;
a fifth acquisition module, configured to acquire user identification information and item identification information corresponding to the applet item;
the association relation establishing module is used for establishing association relation among domain name information, user identification information and item identification information of the applet item;
and the sending module is also used for sending the domain name information of the applet item to the browser client.
5. The apparatus of claim 4, wherein the operation request further comprises 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;
and the determining module is used for determining that the first user identification information is consistent with the second user identification information.
6. The apparatus of claim 4, wherein the execution module is specifically configured to:
and under the condition that the operation instruction is a preview effect instruction, operating an item code file of the small program item to obtain a small program page of the small program item, and taking the small program page as the operation result.
7. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
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-3.
8. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-3.
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 CN113220282A (en) 2021-08-06
CN113220282B true 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 (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7401131B2 (en) * 2000-05-22 2008-07-15 Verizon Business Global Llc Method and system for implementing improved containers in a global ecosystem of interrelated services

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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互动网络社区平台的设计与开发;朱帅;朱轶蓉;郑新超;;电脑知识与技术(20);全文 *

Also Published As

Publication number Publication date
CN113220282A (en) 2021-08-06

Similar Documents

Publication Publication Date Title
EP2344953B1 (en) Provisioning virtual resources using name resolution
CN110083455B (en) Graph calculation processing method, graph calculation processing device, graph calculation processing medium and electronic equipment
WO2023109138A1 (en) Method and apparatus for starting android application in linux system, and electronic device
CN108287708B (en) Data processing method and device, server and computer readable storage medium
US10417248B2 (en) Field extension in database system
US10461772B1 (en) Code conversion
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
CN113377381B (en) Distribution method and device of small program package, electronic equipment and medium
CN113220282B (en) Development processing method, device and storage medium for applet
CN111767149A (en) Scheduling method, device, equipment and storage equipment
US20200382447A1 (en) Chatbot information processing
CN114389969A (en) Client test method and device, electronic equipment and storage medium
CN112231336B (en) Method and device for identifying user, storage medium and electronic equipment
CN113220367A (en) Applet running method and device, electronic equipment and storage medium
CN113691403A (en) Topological node configuration method, related device and computer program product
CN114924826B (en) Page fusion method, device and equipment based on different code platforms
CN114640652B (en) Information processing method and device
CN113220576B (en) Management method, device, equipment and storage medium of test environment
CN111046430B (en) Data processing method and device, storage medium and electronic equipment
CN116483262A (en) Disk sharing method and device, electronic equipment and storage medium
WO2021223178A1 (en) User interface processing method and related apparatus
CN115469887A (en) Method and device for issuing cloud native application, electronic equipment and storage medium
CN117827369A (en) Virtual machine decryption method and device, electronic equipment and storage medium
CN113535857A (en) Data synchronization method and device
CN116506165A (en) Cloud mobile phone identification method and device, electronic equipment and readable storage medium

Legal Events

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