Search

EP-3353648-B1 - METHODS AND SYSTEMS FOR UPLOADING A PROGRAM BASED ON A TARGET NETWORK PLATFORM

EP3353648B1EP 3353648 B1EP3353648 B1EP 3353648B1EP-3353648-B1

Inventors

  • ZHANG, YANG

Dates

Publication Date
20260513
Application Date
20160923

Claims (15)

  1. A method for uploading a target program based on a target network platform among multiple network platforms, wherein the target network platform is an interaction platform that provides information and application services through the Internet, comprising: sending (101), by at least one processor of a server, to a client, a target program architecture file corresponding to the target program and applicable to the target network platform; receiving (102), by the at least one processor of the server, from the client, program basic code edited for the target program architecture file; and constructing (103), by the at least one processor of the server, a program executable file of the target program by combining the target program architecture file and the received program basic code, and uploading the program executable file to the target network platform.
  2. The method of claim 1, wherein sending, to a client, a target program architecture file corresponding to a target program and applicable to the target network platform further comprises: updating (201), in accordance with a program requirement document on the target network platform, a basic program architecture file corresponding to the target program and applicable to the multiple network platforms to obtain the target program architecture file applicable to the target network platform; and sending (202) the target program architecture file to the client when a request from the client for editing the target program is received.
  3. The method of claim 1 or claim 2, further comprising: displaying (203), on a program editing page, editing areas of multiple functional components of the target program divided in accordance with the target program architecture file; and providing code editing portals corresponding to the multiple functional components in the editing areas; wherein receiving, from the client, program basic code edited for the target program architecture file further comprises receiving the program basic code for the multiple functional components submitted on the program editing page of the client.
  4. The method of any of claims 1-3, further comprising: generating (302) a program test file of the target program in accordance with a preset testing process document of the target program; and sending the program test file to the client.
  5. The method of claim 4, further comprising testing the received program basic code of the target program in accordance with the program test file.
  6. The method of claim 3 or claim 4, further comprising: generating (304) a directory structure for indexing the multiple functional components; sending the directory structure to the client; and displaying the directory structure.
  7. The method of any of claims 1-6, wherein constructing a program executable file of the target program by combining the target program architecture file and the received program basic code further comprises: extracting (205), from a database of common function code, common function code relied upon by the target program in accordance with a configuration file preset for the target program; embedding (206) the received program basic code received from the client and the extracted common function code at a corresponding location in the target program architecture file; and compiling (207) and packaging the target program architecture file to generate the program executable file of the target program.
  8. The method of any of claims 1-7, further comprising: detecting (306) whether the received program basic code comprises malicious code; and upon detecting that the received program basic code comprises malicious code, sending a corresponding prompt to the client.
  9. The method of any of claims 1-8, before constructing a program executable file of the target program by combining the target program architecture file and the received program basic code, further comprising: adding, to a task list, to-be-processed tasks of constructing the program executable file and uploading the program executable file for the received program basic code; querying and executing the to-be-processed tasks in the task list; and updating the task list in accordance with an execution status of the to-be-processed tasks.
  10. The method of claim 9, further comprising: sending the execution status of the to-be-processed tasks to the client.
  11. The method of claim 9, further comprising: receiving a request from the client for querying the task list, and sending a corresponding execution status.
  12. The method of any of claims 1-11, wherein constructing a program executable file of the target program by combining the target program architecture file and the received program basic code further comprises: searching for and extracting corresponding common function code from a database of common function code when the received program basic code comprises an identifier for the corresponding common function code.
  13. The method of any of claims 1-11, wherein constructing a program executable file of the target program by combining the target program architecture file and the received program basic code further comprises: extracting the corresponding common function code from the database of common function code in accordance with a request from the client, and sending the corresponding common function code to the client.
  14. A system for uploading a program based on a target network platform among multiple network platforms, comprising: at least one processor; and a memory storing a set of instructions which that is executable by the at least one processor to cause the system to perform the method of any of the preceding claims.
  15. A computer readable medium that stores a set of instructions that is executable by at least one processor of a server to cause the server to perform the method of any of claims 1 to 13.

Description

Cross-reference to Related Application This application claims priority to and benefits of Chinese Patent Application Serial No. 201510618350.9, filed with the State Intellectual Property Office of P. R. China on September 24, 2015. Technical Field The invention is defined by the appended claims. The present disclosure relates to the field of Internet technologies, and more particularly to methods and systems for uploading program code based on a target network platform. Background With the rapid development of services, applications, and delivery methods on the Internet, network platforms are becoming widely applied. For example, Platform as a Service (PaaS), a network platform can be used as a basic platform that provides a software development environment. The platform provides a database and application services. Further, a software provider may develop software in accordance with the requirement of a user and upload the software to the platform, allowing for providing customized software or software customization service to the user. Generally, a software provider may first develop software by performing different tasks, such as coding and debugging, in a local development environment. To make the software applicable to run on the network platform, various operations, such as configuration, packaging, and compiling, need to be performed on the program code written for the software in accordance with a program requirement document provided by the network platform. The program code compiled in accordance with the operations may then be configured and deployed in accordance with execution conditions of the network platform in a development environment of the network platform, thereby allowing for implementing, launching, and/or running of the software on the network platform. Currently, during the development of software for a network platform, in addition to coding and debugging in a local development environment, a user, e.g., a software developer, also needs to perform many complex operations in the development environment of the network platform, such as configuration, uploading, and deployment. These operations are irrelevant to the service development on the network platform. For the user, first, this may take the user a lot of time and energy to perform the complex configurations, uploading, and deployment in the development environment of the network platform. Second, the user may easily make mistakes when performing the complex and cumbersome configurations, which may further cause a failure of running the software on the network platform. Moreover, the separate development environments (e.g., the user's local development environment and the development environment of the network platform) may easily cause program incompatibility, and software whose program code have been successfully debugged locally may fail to run normally on the network platform. Further, for the network platform, if the user is allowed to directly upload compiled software, it is inconvenient to review the program code of the software. When the software includes a malicious program, it may affect the security of the network platform. US 2013/0326487 A1 relates to techniques for emulating cloud functioning of applications locally, allowing developers to test and validate applications in a local development environment using a software development kit (SDK) that provides local implementations of cloud services. US 2015/0186193 A1 relates to techniques for generating a client-side application programming interface (API) by analyzing source code related to an API of a service provide and/or content that describes the source code and. or the API of the service provider. Summary _ Embodiments of the present disclosure provide methods and systems for uploading a program based on a target network platform, to solve the problems described above and other technical problems. The claimed invention is defined by the appended independent claims. In one aspect, the present disclosure provides a method for for uploading a program based on a target network platform. The method may include sending, to a client, a target program architecture file corresponding to a target program and applicable to the target network platform, receiving, from the client, program basic code edited for the target program architecture file, and constructing a program executable file of the target program by combining the target program architecture file and the received program basic code, and uploading the program executable file to the target network platform. In another aspect, the present disclosure provides a system for uploading a program based on a target network platform. The system may include a first sending module that sends, to a client, a target program architecture file corresponding to a target program and applicable to the target network platform, a receiving module that receives, from the client, program basic code edited for the target program ar