Method and device for running application program, equipment and storage medium
By building application images and containers on the server, the problem of users needing to manually download and install applications is solved, and the function of running applications without downloading and installing is realized, simplifying the operation process and improving efficiency.
Patent Information
- Application Number
- CN202311415419.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-27
- Publication Date
- 2025-04-29
AI Technical Summary
In the prior art, users need to manually download and install applications, resulting in cumbersome operational steps, time-consuming and low operational efficiency.
By building a mirror of the target application and setting up a container on the server, receiving application startup requests from the terminal, installing and running system programs and applications, assigning port numbers, and sending the application interface image to the terminal.
Users do not need to download and install applications on the terminal to run, which simplifies the operation process and improves the user's operation efficiency.
Smart Images

Figure CN119902813A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, apparatus, device and storage medium for running an application. Background Art
[0002] With the development of computer technology, computer devices can realize more and more functions. In order to divide the functions of computer devices, application programs have emerged. Running different application programs can realize specific functions, such as social interaction, entertainment, etc.
[0003] If a user wants to run an application, he needs to first obtain the installation package of the application, then download the application, and finally install the application.
[0004] This method will consume a lot of user time, and the operation steps are relatively complicated and the operation efficiency is low. Summary of the invention
[0005] The embodiments of the present disclosure provide a method, apparatus, device and storage medium for running an application program, which can solve the technical problems existing in the related technologies. The technical solutions are as follows:
[0006] In a first aspect, an embodiment of the present disclosure provides a method for running an application, the method comprising:
[0007] Building an image of a target application, wherein the image of the target application includes a system program and the target application;
[0008] Receiving a first application start request sent by a first terminal, wherein the first application start request includes identification information of the target application program;
[0009] Based on the image of the target application, installing and running the system program and the target application in a first container built by the server, and assigning a first port number to the first container;
[0010] Sending a first startup success message to the first terminal, wherein the first startup success message includes the first port number;
[0011] receiving a first desktop display request sent by the first terminal, wherein the first desktop display request includes the first port number;
[0012] The first container corresponding to the first port number is determined, and an interface image of the target application running in the first container is sent to the first terminal.
[0013] In a possible implementation, the image further includes at least one related application corresponding to the target application;
[0014] After receiving the first application start request sent by the first terminal, the method further includes:
[0015] Based on the image of the target application, the related application is installed and run in the first container.
[0016] In a possible implementation manner, after sending the interface image of the target application running in the first container to the first terminal, the method further includes:
[0017] receiving an operation request sent by the first terminal, wherein the operation request includes operation information and the first port number;
[0018] The first container corresponding to the first port number is determined, and the operation information is processed through the system program and the target application program running in the first container.
[0019] In a possible implementation, the method further includes:
[0020] Receiving an application closing request sent by the first terminal, wherein the application closing request includes identification information of the target application and the first port number;
[0021] Determine the first container corresponding to the identification information of the first port number, and close the target application in the first container.
[0022] In a possible implementation, the method further includes:
[0023] When it is detected that the running time of the target application in the first container is greater than a time threshold, the target application in the first container is closed.
[0024] In a possible implementation manner, after closing the target application in the first container, the method further includes: recycling the first container.
[0025] In a possible implementation, the method further includes:
[0026] Receiving a second application start request sent by a second terminal, wherein the second application start request includes identification information of the target application program;
[0027] Based on the image of the target application, installing and running the system program and the target application in a second container built by the server, and allocating a second port number to the second container;
[0028] Sending a second startup success message to the second terminal, wherein the second startup success message includes the second port number;
[0029] receiving a second desktop display request sent by the second terminal, wherein the second desktop display request includes the second port number;
[0030] The second container corresponding to the second port number is determined, and an interface image of the target application running in the second container is sent to the second terminal.
[0031] In a second aspect, an embodiment of the present disclosure provides a device for running an application program, the device being applied to a server, and the device comprising:
[0032] A building module, used to build an image of a target application, wherein the image of the target application includes a system program and the target application;
[0033] A receiving module, configured to receive a first application startup request sent by a first terminal, wherein the first application startup request includes identification information of the target application program;
[0034] A running module, configured to install and run the system program and the target application in a first container built by the server based on the image of the target application, and to allocate a first port number to the first container;
[0035] A sending module, configured to send a first startup success message to the first terminal, wherein the first startup success message includes the first port number;
[0036] The receiving module is further configured to receive a first desktop display request sent by the first terminal, wherein the first desktop display request includes the first port number;
[0037] The sending module is further configured to determine the first container corresponding to the first port number, and send the interface image of the target application running in the first container to the first terminal.
[0038] In a third aspect, a computer device is provided, the computer device comprising a memory and a processor, the memory being used to store computer instructions;
[0039] The processor executes the computer instructions stored in the memory to enable the computer device to perform the method of the first aspect and possible implementations thereof.
[0040] In a fourth aspect, a computer-readable storage medium is provided, characterized in that the computer-readable storage medium stores computer program code, and when the computer program code is executed by a computer device, the computer device executes the method of the first aspect and its possible implementation methods.
[0041] In a fifth aspect, a computer program product is provided. The computer program product includes a computer program code. When the computer program code is executed by a computer device, the computer device executes the method of the first aspect and possible implementations thereof.
[0042] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.
[0043] In the disclosed embodiment, if a user wants to run an application, the terminal only needs to send the user's request to the server. After receiving the request, the server starts the application and sends the interface image of the application to the terminal for display. In this way, the user can run the application without downloading and installing the application on the terminal, which simplifies the user's operation process and improves the user's operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0045] Figure 1 is a structural schematic diagram of a computer device provided by an embodiment of the present disclosure;
[0046] Figure 2 is a schematic diagram of a process of running an application provided by an embodiment of the present disclosure;
[0047] Figure 3 It is a structural diagram of a device for running an application provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0048] The disclosed embodiment provides a method for running an application program. The execution subject of the method may be a computer device, which may be a server. The computer device may be a single server or a server group. If it is a single server, the server may be responsible for all the processing in the following scheme. If it is a server group, different servers in the server group may be responsible for different processing in the following scheme. The specific processing allocation may be arbitrarily set by the technician according to actual needs, which will not be described in detail here. The disclosed embodiment takes the example of a computer device being responsible for providing the user with the operation of an application program as an example to explain the scheme in detail. Other situations are similar and will not be described in detail.
[0049] like Figure 1 As shown, the computer device may include a processor 110, a memory 120, a communication component 130, a display component 140, and the like.
[0050] The processor 110 may include any one or more processors such as a central processing unit (CPU), a graphics processing unit (GPU), a microprocessor (MP) or a digital signal processor (DSP). The processor may be used to execute various program instructions. For example, the processor may be used to install and run an application.
[0051] The memory 120 may include various volatile memories or non-volatile memories, such as a solid state disk (SSD), a dynamic random access memory (DRAM), etc. The memory 120 may be used to store initial data, intermediate data, and result data used in the process of determining physical property parameters, for example, to store application images, etc.
[0052] The communication component 130 may be a wired network connector, ultra wide band (UWB), wireless fidelity (WiFi) module, Bluetooth module, cellular network communication module, etc. The communication component 130 may be used to transmit data with other devices, which may be servers or terminals, etc. For example, receiving a user's application startup request, desktop display request, application shutdown request, and operation request, etc.
[0053] The display component 140 can be an independent screen, or a screen integrated with the terminal body, a projector, etc. The screen can be a touch screen or a non-touch screen (which can be remotely written on). The display component 140 is used to display the system interface, application interface, etc. For example, the display component 140 can display the operating status of the server, etc.
[0054] Generally, before running an application, the user needs to download and install the application, and can only run the application after successful installation. The disclosed embodiment provides a method for running an application, where the user does not need to download and install the application on the terminal, but can directly run the application by entering a request in the browser address bar of the terminal, thereby simplifying the user's operation process and saving the user's time. Figure 2 The processing flow of the method is shown, which may include the following steps:
[0055] Step 201, building an image of a target application.
[0056] Among them, the image of the target application includes a system program, a target application and at least one application that the target application depends on to start. The system program is the environment required for the normal operation of the target application, including an operating system and various basic software, etc. The operating system can be centOS7, and various basic software can include secure shell (secureshell, SSH), terminal emulation (xterm), open secure sockets layer (openssl), extended version C shell (tenex c shell, TCSH) and X form common desktop environment (x forms commonenvironment, XFCE), etc. Various basic software have corresponding different functions, which will not be introduced one by one here. The target application is the application specified by the user to run. The application that the target application depends on to start can be a virtual network console (virtual network console, VNC), cancel virtual network console (no virtualnetwork console, noVNC), etc., wherein noVNC can obtain the interface image of the target application.
[0057] The image of the target application also includes the startup script of the target application, which can run containers. One image can correspond to multiple containers, and each container can run a target application. In this way, the target application in the image can be run in multiple containers at the same time. Each container is independent of each other, that is, the operation of the target application in each container is independent and is not affected by the running status of the target application in other containers.
[0058] There are many methods for building a mirror image of a target application. The embodiment of the present disclosure takes the use of Docker software to build a target application as an example to explain the solution in detail. Using Docker software, users can easily create and use containers.
[0059] First, you need to download and install the docker software. There are many ways to download and install the docker software. For example, you can use the modified yellow dog updater (YUM) to download and install it. YUM can be understood as an online installation manager. You can download, install and start the software by entering the command line. The command line corresponding to downloading and installing the docker software is "yuminstall-y docker-ce", the command line corresponding to starting the docker software is "systemctl start docker", and the command line corresponding to setting the docker software to automatically start when the server is turned on is "systemctl enabledocker". Through the above command line operations, the docker software is successfully downloaded and installed, and the status of the docker software is set to automatically start when the server is turned on.
[0060] Then use docker software to build the image of the target application. You can use the docker file (dockerfile) in the docker software to build the image of the target application. The dockerfile is actually a text file, and the content of the text file is a series of instructions for building the image. Build the image of the target application through the create (build) command line in the docker software. The command line is "docker build-t appimage-f dockerfile_path", where "docker build" is a fixed field of the command line, indicating the establishment of an image based on dockerfile, "-t" is used to extract the name of the image, "appimage" is a parameter field, indicating the name of the image, "-f" is used to extract the address of the dockerfile, and "dockerfile_path" is a parameter field, indicating the path of the dockerfile corresponding to the image. When the dockerfile is stored in the same folder as the docker software, that is, in the same path, the "-fdockerfile_path" field in the command line can be omitted, and the command line becomes "docker build-t appimage".
[0061] Step 202: Receive a first application start request sent by a first terminal.
[0062] The format of the first application startup request is a uniform resource locator (URL) format, including the identification information of the target application. The format of the first application startup request can be "serverip:serverport / app?name=appname", wherein "serverip" is the server IP, and "serverport" is a port number of the server. The port number can be directly allocated by the server. The server specifies an idle and unused port number as the "serverport", such as "8000". After the server allocates the port number, it will announce the allocated port number to the user. There are many ways to announce it. It can be pre-stored in a certain website, and the user logs in to the website to obtain the port number. Alternatively, a group can be established for the user in advance, and the technician announces "serverport" in the group. "appname" is the identification information of the target application, that is, the name of the target application. "serverip:serverport" can also be replaced with the domain name of the server. The domain name resolution server will replace the domain name in the request with "serverip:serverport" and then forward it to the server.
[0063] The user inputs a first application start request in the browser address bar of the first terminal, and the server may receive the first application start request from the terminal.
[0064] Step 203: Based on the image of the target application, install and run the system program and the target application in the first container built by the server, and allocate a first server port number to the first container.
[0065] The server builds a first container for the user, and installs and runs a system program, a target application, and at least one application that the target program depends on to start in the first container. The system program, the target application, and at least one application that the target program depends on to start are the same as the system program, the target application, and at least one application that the target program depends on to start when building the image in step 201 above.
[0066] The server assigns a first server port number to the first container, that is, the server first assigns a first container port number to the first container, and then generates a first server port number corresponding to the first container port number (the first server port number is the first port number in the claim, and in the embodiment of the present disclosure, the first server port number is used to describe the scheme in detail). The first container port number can be randomly generated by the server, or it can be generated based on time, for example, the current moment is used as the first container port number, or it can be generated according to a certain sequence, for example, the container port number assigned to the first container is 18001, and the container port number assigned to the second container is 18002, and so on. There are many methods for generating container port numbers, which are not listed here one by one. In addition to the first container port number, the server also generates a first server port number corresponding to the first container port number. The first server port number can be equal to the first container port number, or it can be unequal to the first container port number, and can be set by the technician according to actual needs. At the same time, the server maps the first container port number to the first server port number. The purpose of this is to enable subsequent users to directly access the container corresponding to the first container port number when entering "Server IP: First Server Port Number" in the terminal browser address bar.
[0067] The server also maintains a container port number-server port number mapping table. After the first container is built and a container port number is assigned to the first container, the mapping relationship between the first container port number and the first server port number is added to the container port number-server port number mapping table. Every time the server builds a new container and assigns a container port number to the container, the mapping relationship between the container port number and the currently generated server port number must be added to the mapping table.
[0068] The above operation is performed through the run command line in the docker software, that is, running the target application in the first container and mapping the first container port number to the first server port number. The command line is "docker run -hostport:containerport appimage startapp appname", where "docker run" is a fixed field of the command line, "-p" is used for port number mapping, "hostport:containerport" means mapping containerport to hostport, "containerport" is the first container port number, "hostport" is the first server port number, "appimage" is the name of the image of the target application, "startapp" is the name of the startup script, and "appname" is the identification information of the target application, that is, the name of the target application.
[0069] Step 204: Send a first startup success message to the first terminal.
[0070] The first successful startup message includes information such as the server IP, the first server port number, the noVNC password, and the startup status. The format of the first successful startup message can be flexibly set according to the needs. For example, the format of the first successful startup message can be {"IP": serverip, "port": hostport, "vncpasswd": passwd, "state": state}, where "serverip" is the server IP, "hostport" is the first server port number, "passwd" is the noVNC password, and "state" is the container startup status. When "state" is "ok", it means that the first container is successfully started and the next step can be performed. When "state" is "false", it means that the first container fails to start and subsequent operations cannot be performed.
[0071] Step 205: Receive a first desktop display request sent by a first terminal.
[0072] The format of the first desktop display request is a URL format, including a server IP and a first server port number. The server IP is the same as the server IP of the first application startup request, and the first server port number is the first server port number generated in step 203. The format of the first desktop display request is "serverip:hostport", where "serverip" is the server IP and "hostport" is the first server port number.
[0073] The user inputs a first desktop display request in the browser address bar of the first terminal, and the server can receive the first desktop display request from the terminal.
[0074] Step 206: determine the first container port number corresponding to the first server port number, determine the first container corresponding to the first container port number, and send the interface image of the target application running in the first container to the first terminal.
[0075] The mapping table of container port number and server port number records the mapping relationship between container port number and server port number. The first container port number corresponding to the first server port number is searched in the table to determine the first container corresponding to the first container port number. The first container runs not only the system program and the target application, but also noVNC. noVNC can obtain the interface image of the target application. After the server obtains the interface image, it sends the interface image to the first terminal.
[0076] Step 207: receiving an operation request sent by the first terminal.
[0077] The user can see the interface image of the target application on the first terminal and can then perform operations on the image. The user's operations may vary depending on the terminal. For example, the operation may be a touch operation or a click operation using a mouse.
[0078] The first terminal sends the user's operation information and the first server port number to the server, and the server receives the operation information and the first server port number.
[0079] Step 208: determine the first container port number corresponding to the first server port number, determine the first container corresponding to the first container port number, and process the operation information through the system program and the target application running in the first container.
[0080] The server determines the first container port number corresponding to the first server port number by searching the container port number-server port number mapping table, and then determines the first container corresponding to the first container port number, and then processes the operation information in the target application running in the first container, and sends the processed interface image of the target application to the first terminal.
[0081] The above operation is to run the target application. When the target application is finished, the server can also receive the application closing request sent by the first terminal, and then determine the first container port number corresponding to the first server port number, determine the first container corresponding to the first container port number, close the target application in the first container, and close the first container. The following is a detailed description:
[0082] The format of the application shutdown request is a URL format, the identification information of the target application and the first server port number. The format of the application shutdown request is "serverip:serverport / app?name=kill appnamehostport", where "serverip" is the server IP, "serverport" is a port number of the server, which is the same as the "serverport" in the first application startup request, "appname" is the identification information of the target application, that is, the name of the target application, and "hostport" is the first server port number.
[0083] The server determines the first container port number based on the first server port number, determines the first container corresponding to the first container port number, closes the target application in the first container, and closes the container. At the same time, the mapping relationship between the first container port number and the first server port number is deleted from the container port number-server port number mapping table.
[0084] The operation of shutting down the container is performed through the run (kill) command line in the docker software. The command line is "docker kill appcontainername", where "docker kill" is a fixed field of the command line and "appcontainername" is the identification information of the container, that is, the name of the container.
[0085] Optionally, the trigger condition for closing the target application in the container and closing the container may also be to pre-set a duration threshold, and when it is detected that the target application in the container has been running for a duration greater than the duration threshold, the operation of closing the container is triggered; or after the container is established and the target application software is run in the container, when no desktop display request is received for a period greater than the duration threshold, the operation of closing the container is triggered; or after the container is established and the target application software is run in the container, when no operation request is received for a period greater than the duration threshold after receiving a desktop display request, the operation of closing the container is triggered.
[0086] Optionally, one image can run multiple containers, so different users can send application startup requests at the same time to run the target application in the image. The server only needs to assign different container port numbers and server port numbers to different users, and map the container port number to the user-specified server port number to achieve the above-mentioned series of operations such as running the target application and closing the target application.
[0087] In the disclosed embodiment, if a user wants to run an application, the terminal only needs to send the user's request to the server. After receiving the request, the server starts the application and sends the interface image of the application to the terminal for display. In this way, the user can run the application without downloading and installing the application on the terminal, which simplifies the user's operation process and improves the user's operation efficiency.
[0088] Based on the same technical concept, the embodiment of the present disclosure provides a device for running an application program, which can be applied to the server in the above embodiment. Figure 3 As shown, the device comprises:
[0089] A construction module 310, configured to construct an image of a target application, wherein the image of the target application includes a system program and the target application;
[0090] The receiving module 320 is configured to receive a first application startup request sent by the first terminal, wherein the first application startup request includes identification information of the target application program;
[0091] An operation module 330 is used to install and run the system program and the target application in a first container built by the server based on the image of the target application, and allocate a first port number to the first container;
[0092] A sending module 340 is configured to send a first startup success message to the first terminal, wherein the first startup success message includes the first port number;
[0093] The receiving module 330 is further configured to receive a first desktop display request sent by the first terminal, wherein the first desktop display request includes the first port number;
[0094] The sending module 340 is further configured to determine the first container corresponding to the first port number, and send the interface image of the target application running in the first container to the first terminal.
[0095] It should be noted that the above-mentioned construction module 310, receiving module 320, operation module 330 and sending module 340 can be implemented by a processor, or by a processor and a memory.
[0096] In the disclosed embodiment, if a user wants to run an application, the terminal only needs to send the user's request to the server. After receiving the request, the server starts the application and sends the interface image of the application to the terminal for display. In this way, the user can run the application without downloading and installing the application on the terminal, which simplifies the user's operation process and improves the user's operation efficiency.
[0097] It should be noted that: the device for running an application provided in the above embodiment only uses the division of the above functional modules as an example when executing the process of running an application. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device for positioning the device provided in the above embodiment and the method embodiment for positioning the device belong to the same concept. The specific implementation process is detailed in the method embodiment and will not be repeated here.
[0098] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on the device, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that can be accessed by the device or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, and a tape, etc.), or an optical medium (e.g., a digital video disk (digital video disk, DVD), etc.), or a semiconductor medium (e.g., a solid-state hard disk, etc.).
[0099] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0100] The above description is only one embodiment of the present disclosure and is not intended to limit the present disclosure. Any modification, equivalent substitution, improvement, etc. made within the principles of the present disclosure shall be included in the protection scope of the present disclosure.
Claims
1. A method for running an application, characterized in that: The method is applied to a server, and the method comprises: Building an image of a target application, wherein the image of the target application includes a system program and the target application; Receiving a first application start request sent by a first terminal, wherein the first application start request includes identification information of the target application program; Based on the image of the target application, installing and running the system program and the target application in a first container built by the server, and assigning a first port number to the first container; Sending a first startup success message to the first terminal, wherein the first startup success message includes the first port number; receiving a first desktop display request sent by the first terminal, wherein the first desktop display request includes the first port number; The first container corresponding to the first port number is determined, and an interface image of the target application running in the first container is sent to the first terminal.
2. The method according to claim 1, characterized in that The image also includes at least one related application corresponding to the target application; After receiving the first application start request sent by the first terminal, the method further includes: Based on the image of the target application, the related application is installed and run in the first container.
3. The method according to claim 1, characterized in that After sending the interface image of the target application running in the first container to the first terminal, the method further includes: receiving an operation request sent by the first terminal, wherein the operation request includes operation information and the first port number; The first container corresponding to the first port number is determined, and the operation information is processed through the system program and the target application program running in the first container.
4. The method according to claims 1-3, characterized in that: The method further comprises: Receiving an application closing request sent by the first terminal, wherein the application closing request includes identification information of the target application and the first port number; Determine the first container corresponding to the identification information of the first port number, and close the target application in the first container.
5. The method according to claims 1-3, characterized in that: The method further comprises: When it is detected that the running time of the target application in the first container is greater than a time threshold, the target application in the first container is closed.
6. The method according to claim 4 or 5, characterized in that: After closing the target application in the first container, the method further includes: The first container is recovered.
7. The method according to claims 1-6, characterized in that: The method further comprises: Receiving a second application start request sent by a second terminal, wherein the second application start request includes identification information of the target application program; Based on the image of the target application, installing and running the system program and the target application in a second container built by the server, and allocating a second port number to the second container; Sending a second startup success message to the second terminal, wherein the second startup success message includes the second port number; receiving a second desktop display request sent by the second terminal, wherein the second desktop display request includes the second port number; The second container corresponding to the second port number is determined, and an interface image of the target application running in the second container is sent to the second terminal.
8. A device for running an application, characterized in that: The device is applied to a server, and comprises: A building module, used to build an image of a target application, wherein the image of the target application includes a system program and the target application; A receiving module, configured to receive a first application startup request sent by a first terminal, wherein the first application startup request includes identification information of the target application program; A running module, configured to install and run the system program and the target application in a first container built by the server based on the image of the target application, and to allocate a first port number to the first container; A sending module, configured to send a first startup success message to the first terminal, wherein the first startup success message includes the first port number; The receiving module is further configured to receive a first desktop display request sent by the first terminal, wherein the first desktop display request includes the first port number; The sending module is further configured to determine the first container corresponding to the first port number, and send the interface image of the target application running in the first container to the first terminal.
9. A computer device, characterized in that: The computer device comprises a memory and a processor, wherein the memory is used to store computer instructions; The processor executes the computer instructions stored in the memory to enable the computer device to perform the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program codes. When the computer program codes are executed by a computer device, the computer device executes the method according to any one of claims 1 to 7.