CN113986256A - Method and device for issuing application program, electronic equipment and storage medium - Google Patents

Method and device for issuing application program, electronic equipment and storage medium Download PDF

Info

Publication number
CN113986256A
CN113986256A CN202111315524.6A CN202111315524A CN113986256A CN 113986256 A CN113986256 A CN 113986256A CN 202111315524 A CN202111315524 A CN 202111315524A CN 113986256 A CN113986256 A CN 113986256A
Authority
CN
China
Prior art keywords
application program
issued
program
server
issuing
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.)
Pending
Application number
CN202111315524.6A
Other languages
Chinese (zh)
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.)
Zhongdian Jinxin Software Co Ltd
Original Assignee
Zhongdian Jinxin Software 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 Zhongdian Jinxin Software Co Ltd filed Critical Zhongdian Jinxin Software Co Ltd
Priority to CN202111315524.6A priority Critical patent/CN113986256A/en
Publication of CN113986256A publication Critical patent/CN113986256A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/447Target code generation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The application provides a method and a device for issuing an application program, electronic equipment and a storage medium. The method comprises the following steps: receiving a request for issuing an application program to be issued; the request includes a program identification; when the version number corresponding to the version number of the application program to be released does not exist, the application program to be released is released to a server corresponding to the function type of the application program to be released; when a version number corresponding to the version number of the application program to be released exists, determining a target application program from the plurality of application programs according to the program identifier; and according to the code identification in the code corresponding to the target application program, acquiring a code segment for describing the display mode of the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program. The method and the device for publishing the program greatly improve the publishing efficiency of the program to be published.

Description

Method and device for issuing application program, electronic equipment and storage medium
Technical Field
The present application relates to the field of software development technologies, and in particular, to a method and an apparatus for issuing an application program, an electronic device, and a storage medium.
Background
An applet is an application that can be used without downloading or installing, and the user can open the application by scanning or searching. It is this convenience of applets that has led to widespread use of applets.
A Mobile Application Development Platform (madp) is an applet container that can run in an Application (APP) of a Mobile banking, a developer of the madp applet develops the applet through an HBuilderX (HBuilderX is a professional front-end IDE Development tool, such as a commonly used VSCode, IDEA, etc., by DCloud corporation), and after the Development is completed, the applet needs to be released, so that a user using the APP of the Mobile banking can use the madp applet in the APP.
For the release of the madp applet, in the prior art, after the development of a developer is completed, codes are compiled, and after the compilation is completed, the codes are packed to generate a zip code compression packet, then a compression packet mail is sent to a platform administrator, the administrator uploads the zip code compression packet to a server through an SFTP tool, and when the madp applet is started, the code compression packet can be downloaded and a page is loaded.
Therefore, in the prior art, in the process of issuing the small programs, a plurality of steps need to be manually operated by developers, and the issuing efficiency is low.
Disclosure of Invention
An embodiment of the present application provides a method, an apparatus, an electronic device, and a storage medium for publishing an application, so as to solve a problem in the prior art that an applet is low in publishing efficiency.
In a first aspect, an embodiment of the present application provides a method for publishing an application, where the method includes: receiving a request for issuing an application program to be issued; the request comprises a program identifier of the application program to be issued; when the version number corresponding to the version number of the application program to be issued does not exist, issuing the application program to be issued to a server corresponding to the function type of the application program to be issued; when a version number corresponding to the version number of the application program to be issued exists, determining a target application program from a plurality of application programs according to the program identifier; and acquiring a code segment for describing the display mode of the target application program according to a code identifier in a code corresponding to the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program.
According to the method and the device, the corresponding application program to be published is obtained according to the request, corresponding publishing operation is carried out according to whether the application program to be published exists in the server or not, manual participation is not needed, and the publishing efficiency of the application program to be published is greatly improved.
In any embodiment, the issuing the application program to be issued to the server corresponding to the function type to which the application program to be issued belongs includes: when the function type is a function supporting the mobile phone banking application program, taking a server comprising the mobile phone banking application program as an initial server; and taking the initial server which has a preset mutual trust relationship with the application program to be issued as the server. According to the method and the device, the initial server which has a mutual trust relationship with the application program to be issued and executes the function of the bank application program is used as the server for receiving the application program to be issued, so that the safety of the application program to be issued is ensured.
In any embodiment, the request further includes a function identifier that uniquely identifies the function; according to a code identifier in a code corresponding to the target application program, acquiring a code segment describing a display mode of the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program, wherein the method comprises the following steps: acquiring a function module corresponding to the function identifier from the target application program; and acquiring a code segment of the display mode of the functional module according to the code identifier corresponding to the functional module, compiling the functional module according to the code segment, replacing the original functional module of the application program to be issued with the compiled functional module, and issuing the application program to be issued with the replacement operation as the compiled application program to be issued to the server. For the condition that part of functional modules in the existing application program in the server need to be updated, the embodiment of the application reduces the workload of program developers by replacing the functional modules in the original application program with the functional modules needing to be updated.
In any embodiment, the receiving a request to publish an application to be published includes: and receiving the request generated by the user after triggering the visualized applet publishing menu provided in the applet development tool. The method and the device for sending the request realize the sending of the request through the visual small program issuing menu, and are simple and convenient to operate.
In any embodiment, the method further comprises: displaying a dialog box on an interface, wherein the dialog box is used for prompting the developer to input a program version number and a program version description corresponding to the application program to be issued; and the terminal used by the developer sends the received program version number, the received program version description and the application program to be released. According to the method and the device, the user can conveniently know the relevant information of the application program when using the application program to be released for the first time through the program version number, the program version description and the application program to be released.
In a second aspect, an embodiment of the present application provides an apparatus for issuing an application, including: the receiving module is used for receiving a request for issuing an application program to be issued; the request comprises a program identifier of the application program to be issued; the first publishing module is used for publishing the application program to be published to a server corresponding to the function type of the application program to be published when the version number corresponding to the version number of the application program to be published does not exist; the second issuing module is used for determining a target application program from the plurality of application programs according to the program identifier when the version number corresponding to the version number of the application program to be issued exists; and acquiring a code segment for describing the display mode of the target application program according to a code identifier in a code corresponding to the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program.
In a third aspect, an embodiment of the present application provides an electronic device, including: the system comprises a processor, a memory and a bus, wherein the processor and the memory are communicated with each other through the bus; the memory stores program instructions executable by the processor, the processor being capable of performing the method of the first aspect when invoked by the program instructions.
In a fourth aspect, an embodiment of the present application provides a non-transitory computer-readable storage medium, including: the non-transitory computer readable storage medium stores computer instructions that cause the computer to perform the method of the first aspect.
Additional features and advantages of the present application will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by the practice of the embodiments of the present application. The objectives and other advantages of the application may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic flowchart of a method for publishing an application according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of a plug-in generation method according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an apparatus for issuing an application according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
In order to solve the problem that in the process of program release, developers need to manually operate operations such as code compiling, compressing and uploading to a server, and the release efficiency is low, the embodiment of the application provides a program release method, the method judges whether an application program to be released is sent to the server for the first time or updates and upgrades the application program in the server according to a program identifier in a request, and then corresponding automatic release is given, and in the process of release, the developers do not need to manually operate operations such as code compiling, compressing and uploading to the server, and therefore the efficiency of program release is improved.
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application.
Fig. 1 is a schematic flow chart of a program publishing method provided in an embodiment of the present application, and as shown in fig. 1, the method is applied to a terminal running an applet development tool, where a publishing plug-in is installed in the applet development tool, it can be understood that the applet development tool may be HBuilderX, or may be another development tool, and this is not specifically limited in this embodiment of the present application, and the method includes:
step 101: receiving a request for issuing a program to be issued; wherein the request comprises the program identification of the application program to be issued.
The program to be released is a code of an application program written in advance by a developer. For example: the program to be released can be a code corresponding to a takeout applet for the user to take out at the point in the mobile phone bank APP. The publishing request refers to a request for deploying the program to be published on the corresponding server. It can be understood that, for an application program to be issued for an applet in a mobile banking APP, after the application program to be issued is issued on a server, a user can enter a corresponding applet in a code searching or scanning manner on the mobile banking APP. The program identifier is used for identifying the uniqueness of the application program, and different application programs to be issued correspond to different program identifiers.
Step 102: and when the version number corresponding to the version number of the application program to be issued does not exist, issuing the application program to be issued to a server corresponding to the function type of the application program to be issued.
It can be understood that the absence of a version number corresponding to the version number of the application program to be released in the terminal means that the application program to be released is a brand new application program that has not been released. The function type of the application program to be released can be take-out, express delivery, mini-games and the like. The servers corresponding to different function types are different, for example: and if the application program to be issued is the takeout applet, issuing the application program to be issued to a server corresponding to the takeout applet.
Step 103: when a version number corresponding to the version number of the application program to be issued exists, determining a target application program from a plurality of application programs according to the program identifier; and acquiring a code segment for describing the display mode of the target application program according to a code identifier in a code corresponding to the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program.
The terminal stores application programs corresponding to a plurality of applications, and each application program corresponds to one program identifier for distinguishing the application programs. And if the application program to be released is the released application program, storing a version number which is the same as the version number of the application program to be released in the terminal. Therefore, the target application program can be determined from the plurality of application programs according to the program identification.
The codes of the application program can be divided into front-end codes and back-end codes, and the front-end codes and the back-end codes are distinguished by adopting code identification. In addition, the front-end code and the back-end code respectively comprise codes corresponding to a plurality of functional modules, and the codes corresponding to each functional module are distinguished by one code identifier. Therefore, the code segment of the exhibition mode, namely the front-end code, can be obtained from the code of the target application program according to the code identification. And selecting a code segment to be compiled which is the same as the code segment in the target application program from the application program to be published, compiling the code segment to be compiled in the application program to be published to obtain the compiled application program to be published, and sending the compiled application program to be published to a server which is the same as the target application program.
According to the method and the device, the corresponding application program to be published is obtained according to the request, corresponding publishing operation is carried out according to whether the application program to be published exists in the server or not, manual participation is not needed, and the publishing efficiency of the application program to be published is greatly improved.
On the basis of the foregoing embodiment, the issuing the application program to be issued to the server corresponding to the function type to which the application program to be issued belongs includes:
when the function type is a function supporting the mobile phone banking application program, taking a server comprising the mobile phone banking application program as an initial server;
and taking the initial server which has a preset mutual trust relationship with the application program to be issued as the server.
In a specific embodiment, the function type supporting the APP function of the mobile phone bank may be a transfer function, an account inquiry function, a fund function, and the like of a certain mobile phone bank. And taking the server corresponding to the mobile phone bank as an initial server.
It should be noted that all the applications that can run on the mobile banking APP establish a mutual trust relationship with the mobile banking APP, that is, the server corresponding to the mobile banking APP authorizes the application. And if the server of the mobile banking APP does not establish mutual trust with the application program to be issued, the application program to be issued cannot be issued to the server. Therefore, after the initial server is determined, whether the initial server is the server for receiving the application program to be published can be determined according to whether the application program to be published establishes a mutual trust relationship with the initial server.
According to the method and the device, the initial server which has a mutual trust relationship with the application program to be issued and executes the function of the bank application program is used as the server for receiving the application program to be issued, so that the safety of the application program to be issued is ensured.
On the basis of the above embodiment, the request further includes a function identifier that uniquely identifies the function; acquiring a code segment describing a display mode of the target application program according to a code identifier in a code corresponding to the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program, wherein the method comprises the following steps:
acquiring a function module corresponding to the function identifier from the target application program;
and acquiring a code segment of the display mode of the functional module according to the code identifier corresponding to the functional module, compiling the functional module according to the code segment, replacing the original functional module of the application program to be issued with the compiled functional module, and issuing the application program to be issued with the replacement operation as the compiled application program to be issued to the server.
On the basis of the above-described embodiments, one application can implement a plurality of functions, such as: a takeaway program which can realize a home page display function, a search function, a gourmet function, a medicine delivery function, and the like. Each function corresponds to a functional module formed by codes, and in order to distinguish the functional modules, a function identifier can be adopted, and different functional modules correspond to different function identifiers.
And for the condition that a certain functional module in the released application program needs to be updated, after the target application program is determined, acquiring the corresponding functional module from the target application program according to the function identifier. Because each functional module corresponds to one functional code, the code segment of the display mode of the functional module, namely the front-end code corresponding to the functional module, can be obtained according to the code identifier corresponding to the functional module. After the code segment is obtained, compiling the code segment to obtain a compiled code, replacing the corresponding code in the application program to be issued with the compiled code, taking the replaced application program to be issued as the compiled application program to be issued, and then issuing the compiled application program to be issued to a corresponding server.
For the condition that part of functional modules in the existing application program in the server need to be updated, the embodiment of the application reduces the workload of program developers by replacing the functional modules in the original application program with the functional modules needing to be updated.
On the basis of the foregoing embodiment, the receiving a request for issuing an application to be issued includes:
and receiving the request generated by the user after triggering the visualized applet publishing menu provided in the applet development tool.
In a specific implementation process, the applet development tool is provided with a visual applet publishing menu, and when a user needs to publish a program to be published to a server, the applet publishing menu only needs to be triggered. And after the terminal learns that the issuing menu is triggered, generating a corresponding issuing request, and issuing the program to be issued according to the issuing request. It is to be understood that the publishing operation of the program to be published may refer to the foregoing embodiments, and is not described herein again.
The method and the device for issuing the small program provide visual small program issuing menus for developers, the developers can generate issuing requests only by clicking the small program issuing menus, and operation is simple.
On the basis of the above embodiment, the method further includes:
displaying a dialog box on an interface, wherein the dialog box is used for prompting the developer to input a program version number and a program version description corresponding to the application program to be issued;
and the terminal used by the developer sends the received program version number, the received program version description and the application program to be released.
In a specific implementation process, a developer may develop a new applet and publish the new applet to a server, or upgrade an already published applet, that is, perform a version update. When the application program to be released is a newly developed applet, the terminal displays a dialog box on an interface when the application program to be released is released to the server, the content in the dialog box comprises a text box of a program version number and a text box of a program version description, the text box is used for indicating a developer to input the version number of the application program to be released in the text box of the program version number, and data in the text box of the program version description describes the function description of the application program to be released of the version.
And after the developer finishes inputting in the dialog box and clicks a submit button, the terminal receives the program version number and the program version description input by the developer, and sends the program version number and the program version description together with the program to be released to the server.
According to the method and the device, the user can conveniently know the relevant information of the application program when using the application program to be released for the first time through the program version number, the program version description and the application program to be released.
In another embodiment, before the application program to be published is published to the server, operations such as compiling, compressing, uploading and the like of the application program to be published are required, so that the embodiment of the application further provides a publishing plug-in which functions of compiling, compressing and uploading the application program to be published to the server are integrated, so that when the application program to be published is published, the publishing plug-in can be called, and automatic publishing is realized.
The method for generating the release plug-in will be described in detail as follows:
fig. 2 is a schematic flow chart of a plug-in generation method provided in an embodiment of the present application, and as shown in fig. 2, the method includes:
step 201: and receiving a new plug-in request, wherein the new plug-in request is triggered in the applet development tool by a user.
The small program development tool is provided with an inlet for plug-in development, namely, a developer can initiate a new plug-in request through a button of a new plug-in arranged on a front page of the small program development tool.
Step 202: and requesting a new plug-in project according to the new plug-in.
The applet development tool is provided with a standard plug-in project, which can be understood as a framework of plug-ins under which developers can customize the required functionality.
Step 203: registering a function in the plug-in item, the function including a compile command, a compress command, and an upload command.
And the terminal receives a function (function) registered by the developer in the plug-in item. And expanding the compilation command, the compression command and the upload command through the commands based on the function. It is understood that other commands may also be extended, which may be specifically extended according to actual requirements, and this is not specifically limited in this embodiment of the present application.
The code of the extended command is as follows:
Figure BDA0003343521170000101
when the issue plug-in is used, the above-stated command can be implemented by an apihx.
Figure BDA0003343521170000102
The function can call all commands in the node.js tool library, and when the program is issued, the node.js tool library can be adopted to complete the issuing of the program. It can be understood that the tool library includes a compiling command, a compression command and an uploading command, compiling of the program to be issued is achieved by calling the npm run build compiling command, the compiled program is compressed by calling npm the compression command to obtain a compression packet, a keep request is sent to the server by calling the http uploading command, a request interface for sending the http request is provided by the applet development tool, and the compression packet of the program to be issued can be issued to the server.
Step 204: registering a publishing menu in the plug-in item, and associating the publishing menu with the function to generate a publishing plug-in; the function menu is used for providing visual function buttons for a user, so that the user can realize the functions corresponding to the plug-in items by triggering the function buttons.
In a specific implementation process, the terminal registers the publishing menu in the plug-in project, and the purpose of registering the publishing menu is to provide an entry for a developer to initiate a request for publishing a program on a front-end page of the applet development tool. That is, the developer may initiate a request for publication of the program to be published by triggering a publication menu on the applet development tool page. After the release menu is registered, the release menu needs to be associated with the corresponding function, so that after the release menu is triggered by a developer, the corresponding function can be called, and then the program can be released.
According to the method and the device, the function is registered in the newly-built plug-in project, the release menu is registered, and the function is associated with the release menu, so that the generated release plug-in can be used for realizing the automation of program release, and the efficiency of program release is improved.
In another embodiment, after the release plug-in is generated, the release plug-in needs to be loaded into the applet development tool, and the specific method is as follows:
sending a plug-in inquiry request to a plug-in server so that the plug-in server returns a release plug-in to the terminal according to the plug-in inquiry request;
and receiving the release plug-in returned by the plug-in server, and importing the release plug-in into an applet development tool of the terminal.
In a specific implementation process, before issuing the publishing program, it is required to ensure that the publishing plug-in is installed in the applet development tool running on the terminal. If the issuing plug-in is not installed in the applet development tool running on the terminal, a plug-in query request needs to be sent to the plug-in server, wherein the plug-in query request may include a plug-in name or other parameters for representing plug-in information. And after receiving the release plug-in, the terminal imports the release plug-in into the small program development tool. After the program is imported, the small program development tool can use the publishing plug-in to publish the program to be published.
According to the method and the device, the pre-packaged release plug-in is installed in the small program development tool and used for automatically releasing the program, and the program release efficiency is improved.
After the publishing plug-in is loaded, publishing the application program to be published to a server corresponding to the function type to which the application program to be published belongs, specifically comprising:
and calling a compiling command of the functional function in the issuing plug-in, compiling the program to be issued and obtaining a compiled program. After the terminal acquires the program to be issued, a compiling command provided by a function in the issuing plug-in is called, and the compiling command can be used for compiling the program to be issued and acquiring the compiled program. It will be appreciated that the compiled program is a binary language that can be recognized by a computer.
And calling a compression command in the functional function, and compressing the compiled program to obtain a compression packet. After the terminal obtains the compiled program, a compression command in the function is called to compress the compiled program. It can be understood that the purpose of compressing the compiled program is to compress the compiled program, the purpose is to reduce the volume of the upload package, improve the upload efficiency, the compression package is convenient for encryption and hash value digest calculation, and the security is improved. After compression, a compression packet corresponding to the compiled program can be obtained, and the compression packet can be in the form of a ZIP.
And calling an uploading command in the function, and sending the compressed packet to the server to finish issuing the program to be issued. The function of the upload command is to upload the compressed packet to a specific location in a specific server, that is, a path in which the compressed packet is stored in the server may be specified in advance. After the terminal obtains the compressed packet, an uploading command in the function is called, and the compressed packet is uploaded to the server, so that the program to be issued is issued.
According to the method and the device, the program to be published is compiled, compressed and uploaded to the server by using the pre-packaged publishing plug-in, so that manual participation is not needed in the operation, and the publishing efficiency of the program to be published is greatly improved.
Fig. 3 is a schematic structural diagram of an apparatus for issuing an application according to an embodiment of the present application, where the apparatus may be a module, a program segment, or code on an electronic device. It should be understood that the apparatus corresponds to the above-mentioned embodiment of the method of fig. 1, and can perform various steps related to the embodiment of the method of fig. 1, and the specific functions of the apparatus can be referred to the description above, and the detailed description is appropriately omitted here to avoid redundancy. The device comprises: a receiving module 301, a first publishing module 302 and a second publishing module 303, wherein:
the receiving module 301 is configured to receive a request for issuing an application to be issued; the request comprises a program identifier of the application program to be issued;
the first publishing module 302 is configured to, when a version number corresponding to the version number of the application program to be published does not exist, publish the application program to be published to a server corresponding to a function type to which the application program to be published belongs;
the second publishing module 303 is configured to determine, when a version number corresponding to the version number of the application program to be published exists, a target application program from the plurality of application programs according to the program identifier; and acquiring a code segment for describing the display mode of the target application program according to a code identifier in a code corresponding to the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program.
On the basis of the foregoing embodiment, the first publishing module 302 is specifically configured to:
when the function type is a function supporting the mobile phone banking application program, taking a server comprising the mobile phone banking application program as an initial server;
and taking the initial server which has a preset mutual trust relationship with the application program to be issued as the server.
On the basis of the above embodiment, the request further includes a function identifier that uniquely identifies the function; the second issuing module 303 is specifically configured to:
acquiring a function module corresponding to the function identifier from the target application program;
and acquiring a code segment of the display mode of the functional module according to the code identifier corresponding to the functional module, compiling the functional module according to the code segment, replacing the original functional module of the application program to be issued with the compiled functional module, and issuing the application program to be issued with the replacement operation as the compiled application program to be issued to the server.
On the basis of the foregoing embodiment, the receiving module 301 is specifically configured to:
and receiving the request generated by the user after triggering the visualized applet publishing menu provided in the applet development tool.
On the basis of the above embodiment, the apparatus further includes a version description module configured to:
displaying a dialog box on an interface, wherein the dialog box is used for prompting the developer to input a program version number and a program version description corresponding to the application program to be issued;
and the terminal used by the developer sends the received program version number, the received program version description and the application program to be released.
Fig. 4 is a schematic structural diagram of an entity of an electronic device provided in an embodiment of the present application, and as shown in fig. 4, the electronic device includes: a processor (processor)401, a memory (memory)402, and a bus 403; wherein the content of the first and second substances,
the processor 401 and the memory 402 complete communication with each other through the bus 403;
the processor 401 is configured to call the program instructions in the memory 402 to execute the methods provided by the above-mentioned method embodiments, for example, including: receiving a request for issuing an application program to be issued; the request comprises a program identifier of the application program to be issued; when the version number corresponding to the version number of the application program to be issued does not exist, issuing the application program to be issued to a server corresponding to the function type of the application program to be issued; when a version number corresponding to the version number of the application program to be issued exists, determining a target application program from a plurality of application programs according to the program identifier; and acquiring a code segment for describing the display mode of the target application program according to a code identifier in a code corresponding to the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program.
The processor 401 may be an integrated circuit chip having signal processing capabilities. The Processor 401 may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. Which may implement or perform the various methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The Memory 402 may include, but is not limited to, Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read Only Memory (PROM), Erasable Read Only Memory (EPROM), Electrically Erasable Read Only Memory (EEPROM), and the like.
The present embodiment discloses a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, enable the computer to perform the method provided by the above-mentioned method embodiments, for example, comprising: receiving a request for issuing an application program to be issued; the request comprises a program identifier of the application program to be issued; when the version number corresponding to the version number of the application program to be issued does not exist, issuing the application program to be issued to a server corresponding to the function type of the application program to be issued; when a version number corresponding to the version number of the application program to be issued exists, determining a target application program from a plurality of application programs according to the program identifier; and acquiring a code segment for describing the display mode of the target application program according to a code identifier in a code corresponding to the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the above method embodiments, for example, including: receiving a request for issuing an application program to be issued; the request comprises a program identifier of the application program to be issued; when the version number corresponding to the version number of the application program to be issued does not exist, issuing the application program to be issued to a server corresponding to the function type of the application program to be issued; when a version number corresponding to the version number of the application program to be issued exists, determining a target application program from a plurality of application programs according to the program identifier; and acquiring a code segment for describing the display mode of the target application program according to a code identifier in a code corresponding to the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form.
In addition, units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Furthermore, the functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A method for publishing an application, the method comprising:
receiving a request for issuing an application program to be issued; the request comprises a program identifier of the application program to be issued;
when the version number corresponding to the version number of the application program to be issued does not exist, issuing the application program to be issued to a server corresponding to the function type of the application program to be issued;
when a version number corresponding to the version number of the application program to be issued exists, determining a target application program from a plurality of application programs according to the program identifier; and acquiring a code segment for describing the display mode of the target application program according to a code identifier in a code corresponding to the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program.
2. The method according to claim 1, wherein the publishing the application program to be published to the server corresponding to the function type to which the application program to be published belongs comprises:
when the function type is a function supporting the mobile phone banking application program, taking a server comprising the mobile phone banking application program as an initial server;
and taking the initial server which has a preset mutual trust relationship with the application program to be issued as the server.
3. The method of claim 1, wherein the request further includes a function identifier that uniquely identifies the function; acquiring a code segment describing a display mode of the target application program according to a code identifier in a code corresponding to the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program, wherein the method comprises the following steps:
acquiring a function module corresponding to the function identifier from the target application program;
and acquiring a code segment of the display mode of the functional module according to the code identifier corresponding to the functional module, compiling the functional module according to the code segment, replacing the original functional module of the application program to be issued with the compiled functional module, and issuing the application program to be issued with the replacement operation as the compiled application program to be issued to the server.
4. The method of claim 1, wherein receiving a request to publish an application to be published comprises:
and receiving the request generated by the user after triggering the visualized applet publishing menu provided in the applet development tool.
5. The method of claim 1, further comprising:
displaying a dialog box on an interface, wherein the dialog box is used for prompting a developer to input a program version number and a program version description corresponding to the application program to be issued;
and the terminal used by the developer sends the received program version number, the received program version description and the application program to be released.
6. An apparatus for publishing an application, comprising:
the receiving module is used for receiving a request for issuing an application program to be issued; the request comprises a program identifier of the application program to be issued;
the first publishing module is used for publishing the application program to be published to a server corresponding to the function type of the application program to be published when the version number corresponding to the version number of the application program to be published does not exist;
the second issuing module is used for determining a target application program from the plurality of application programs according to the program identifier when the version number corresponding to the version number of the application program to be issued exists; and acquiring a code segment for describing the display mode of the target application program according to a code identifier in a code corresponding to the target application program, compiling the application program to be issued according to the code segment, and issuing the compiled application program to be issued to a server corresponding to the target application program.
7. The apparatus of claim 6, wherein the first distribution module is specifically configured to:
when the function type is a function supporting the mobile phone banking application program, taking a server comprising the mobile phone banking application program as an initial server;
and taking the initial server which has a preset mutual trust relationship with the application program to be issued as the server.
8. The apparatus of claim 6, wherein the request further comprises a function identifier uniquely identifying the function; the second publishing module is specifically configured to:
acquiring a function module corresponding to the function identifier from the target application program;
and acquiring a code segment of the display mode of the functional module according to the code identifier corresponding to the functional module, compiling the functional module according to the code segment, replacing the original functional module of the application program to be issued with the compiled functional module, and issuing the application program to be issued with the replacement operation as the compiled application program to be issued to the server.
9. An electronic device, comprising: a processor, a memory, and a bus, wherein,
the processor and the memory are communicated with each other through the bus;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any one of claims 1-5.
10. A non-transitory computer-readable storage medium storing computer instructions which, when executed by a computer, cause the computer to perform the method of any one of claims 1-5.
CN202111315524.6A 2021-11-08 2021-11-08 Method and device for issuing application program, electronic equipment and storage medium Pending CN113986256A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111315524.6A CN113986256A (en) 2021-11-08 2021-11-08 Method and device for issuing application program, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111315524.6A CN113986256A (en) 2021-11-08 2021-11-08 Method and device for issuing application program, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113986256A true CN113986256A (en) 2022-01-28

Family

ID=79747208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111315524.6A Pending CN113986256A (en) 2021-11-08 2021-11-08 Method and device for issuing application program, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113986256A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115756483A (en) * 2022-11-16 2023-03-07 中电金信软件有限公司 Compiling method, compiling apparatus, computer device, and storage medium
CN116382775A (en) * 2023-03-15 2023-07-04 中电金信软件有限公司 Hbuilderx plug-in based multi-platform program package generation method
CN116431122A (en) * 2023-03-07 2023-07-14 中电金信软件有限公司 Compiling method, displaying method and device for development effect and readable storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115756483A (en) * 2022-11-16 2023-03-07 中电金信软件有限公司 Compiling method, compiling apparatus, computer device, and storage medium
CN116431122A (en) * 2023-03-07 2023-07-14 中电金信软件有限公司 Compiling method, displaying method and device for development effect and readable storage medium
CN116431122B (en) * 2023-03-07 2024-05-07 中电金信软件有限公司 Compiling method and device for development effect and readable storage medium
CN116382775A (en) * 2023-03-15 2023-07-04 中电金信软件有限公司 Hbuilderx plug-in based multi-platform program package generation method

Similar Documents

Publication Publication Date Title
CN107391114B (en) Page visual rendering method and device
CN113986256A (en) Method and device for issuing application program, electronic equipment and storage medium
CN104252342B (en) Embedded application implementation method and device capable of configuring parameters
US7702959B2 (en) Error management system and method of using the same
KR102281052B1 (en) Mobile terminal application update method and apparatus
CN112333239B (en) Business audit notification method, gateway, electronic equipment and readable medium
CN112488855B (en) Business verification method and device based on rule template
CN111414407A (en) Data query method and device of database, computer equipment and storage medium
US9535666B2 (en) Dynamic agent delivery
CN106897153B (en) Method and system for calling application programming interface
CN111428132B (en) Data verification method and device, computer storage medium and electronic equipment
CN111343181B (en) Message processing method and system, data pool and computer readable storage medium
CN111752587B (en) Batch processing method and device for small programs, electronic equipment and readable storage medium
CN110928548A (en) Data processing method and equipment
CN112966308A (en) Software delivery method, processing device and storage medium
CN111367531A (en) Code processing method and device
CN114139161A (en) Method, device, electronic equipment and medium for batch vulnerability detection
CN111722994A (en) Task request response method and device
CN112925589B (en) Calling method and device of expansion interface
CN112732547B (en) Service testing method and device, storage medium and electronic equipment
CN112181822A (en) Test method and test method for starting time consumption of application program
CN111801696A (en) Payment page management method, payment page management device, payment system and storage medium
JP7230951B2 (en) Mobile terminal, information processing system, control method, and program
CN114116866A (en) Data acquisition method and device, terminal equipment and storage medium
CN111488286A (en) Method and device for independently developing Android module

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