CN112748926A - Applet publishing method, device, equipment and computer readable storage medium - Google Patents

Applet publishing method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN112748926A
CN112748926A CN202011623331.2A CN202011623331A CN112748926A CN 112748926 A CN112748926 A CN 112748926A CN 202011623331 A CN202011623331 A CN 202011623331A CN 112748926 A CN112748926 A CN 112748926A
Authority
CN
China
Prior art keywords
target
small program
applet
issuing
program code
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
CN202011623331.2A
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.)
Shanghai Weimeng Enterprise Development Co ltd
Original Assignee
Shanghai Weimeng Enterprise Development 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 Shanghai Weimeng Enterprise Development Co ltd filed Critical Shanghai Weimeng Enterprise Development Co ltd
Priority to CN202011623331.2A priority Critical patent/CN112748926A/en
Publication of CN112748926A publication Critical patent/CN112748926A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis
    • G06F8/427Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/44Encoding
    • G06F8/443Optimisation
    • G06F8/4434Reducing the memory space required by the program code
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation

Abstract

The invention discloses a small program issuing method, which comprises the following steps: analyzing the received small program issuing request to obtain each target preset logic module corresponding to the target issuing packet to be issued; acquiring target small program code files corresponding to the target preset logic modules respectively; uniformly packaging the target small program code files to obtain a target distribution package; and issuing the target issuing package. By applying the small program issuing method provided by the invention, the small program issuing operation is carried out according to the actual requirement of the user, the individual requirement of the user is met, and the probability of issuing failure caused by overlarge bag body is reduced. The invention also discloses an applet release device, equipment and a storage medium, and has corresponding technical effects.

Description

Applet publishing method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for issuing an applet.
Background
The existing method for issuing the small program by the small program issuing platform mainly uses a template small program of a third party to upload and issue small program codes of all users bound under the small program issuing platform. By the method, the number of the templates is limited, the whole package can be integrally issued during issuing, all the small programs issued by the users have the same functions, personalization of the functions of the users is not supported, requirements of various merchants are different, and therefore the small program package can contain a plurality of unnecessary functions of the users, the package body is too large, the user loading and application are slow, and the small program issuing platform has size limitation on the package body of a single package, and the package body is too large, so that issuing failure is caused.
In summary, how to effectively solve the problems that the user function personalization is not supported by using the applet template to publish the applet, the inclusion is too large, the publishing failure is easily caused, and the like, is a problem that needs to be solved by technical personnel in the field at present.
Disclosure of Invention
The invention aims to provide a small program publishing method, which meets the individual requirements of users and reduces the probability of publishing failure caused by overlarge bag body; another object of the present invention is to provide an applet distributing apparatus, device and computer readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
an applet publishing method comprising:
analyzing the received small program issuing request to obtain each target preset logic module corresponding to the target issuing packet to be issued;
acquiring target small program code files corresponding to the target preset logic modules respectively;
uniformly packaging each target small program code file to obtain a target publishing packet;
and issuing the target issuing package.
In a specific embodiment of the present invention, after obtaining the target distribution package, before performing a distribution operation on the target distribution package, the method further includes:
calculating the size of a target inclusion of the target publishing packet;
acquiring a preset total packet size threshold;
judging whether the size of the target bag body exceeds the preset total bag size threshold value or not;
and if not, executing the step of issuing the target issuing package.
In a specific embodiment of the present invention, acquiring a target applet code file corresponding to each of the target preset logic modules includes:
receiving target small program code files corresponding to the target preset logic modules uploaded by a small program uploading tool;
calculating the size of the target inclusion of the target publishing packet, including:
acquiring the sizes of pre-stored and uploaded files corresponding to the target small program code files respectively;
and calculating the size of the target bag body of the target distribution bag according to the size of each pre-stored and uploaded file.
In a specific embodiment of the present invention, the process of setting the size of each pre-stored uploaded file includes:
receiving each small program code file uploaded by the small program development terminal through the small program uploading tool; each small program code file is obtained by obtaining a small program full function code for a small program development end and splitting the small program full function code according to each preset logic module;
and calculating the size of the uploaded file of each small program code file, and storing the size of each uploaded file.
In one embodiment of the present invention, the method further comprises:
receiving the hash value of each small program code file uploaded by the small program development end;
recording each hash value;
when receiving each small program code file corresponding to a new version small program uploaded by the small program development end, acquiring hash values corresponding to the small program code files respectively;
judging whether each hash value has an unrecorded hash value;
and if so, carrying out uploading file size calculation and storage operation on the small program code file corresponding to the unrecorded hash value.
In a specific embodiment of the present invention, after receiving each applet code file uploaded by an applet development end through the applet upload tool, the method further includes:
and performing dependent package configuration operation on each small program code file.
In a specific embodiment of the present invention, parsing a received applet publishing request to obtain each target preset logic module corresponding to a target publishing packet to be published includes:
receiving the applet issuing request;
judging whether the applet issuing request contains logical module checking information or not;
if yes, determining each target preset logic module corresponding to the target publishing packet to be published according to the logic module checking information;
and if not, acquiring each preset default logic module, and determining each preset default logic module as each target preset logic module corresponding to the target distribution packet to be distributed.
An applet distributing apparatus comprising:
the logic module obtaining module is used for analyzing the received small program issuing request to obtain each target preset logic module corresponding to the target issuing packet to be issued;
a code file obtaining module, configured to obtain a target applet code file corresponding to each target preset logic module;
the issuing package obtaining module is used for carrying out uniform packaging operation on the target small program code files to obtain the target issuing packages;
and the issuing package issuing module is used for issuing the target issuing package.
An applet distributing apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the applet distribution method as described above when executing the computer program.
A computer-readable storage medium having stored thereon a computer program which, when executed by a processor, carries out the steps of the applet distributing method as described above.
The small program issuing method provided by the invention analyzes the received small program issuing request to obtain each target preset logic module corresponding to the target issuing packet to be issued; acquiring target small program code files corresponding to the target preset logic modules respectively; uniformly packaging the target small program code files to obtain a target distribution package; and issuing the target issuing package.
According to the technical scheme, the logic module is preset, the corresponding relation between each preset logic module and each small program code file is set, when each target preset logic module corresponding to the target distribution package to be distributed is obtained through analysis, each target small program code file corresponding to each target preset logic module is directly obtained, and only each target small program code file is packaged and distributed.
Correspondingly, the invention also provides an applet distributing device, equipment and a computer readable storage medium corresponding to the applet distributing method, which have the technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of an implementation of an applet publishing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of another implementation of an applet publishing method according to an embodiment of the present invention;
FIG. 3 is a block diagram of an applet distributing apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of an applet publishing device in an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart of an implementation of an applet publishing method in an embodiment of the present invention, where the method includes the following steps:
s101: and analyzing the received small program issuing request to obtain each target preset logic module corresponding to the target issuing packet to be issued.
When a user needs to issue the small program, sending a small program issuing request to the small program issuing platform, wherein the small program issuing request comprises each target preset logic module corresponding to a target issuing package to be issued. And the small program issuing platform receives the small program issuing request, analyzes the received small program issuing request and obtains each target preset logic module corresponding to the target issuing packet to be issued.
The applet issuing request may specifically be a wechat applet issuing request.
S102: and acquiring target small program code files corresponding to the target preset logic modules respectively.
Each preset logic module has a small program code file corresponding to the preset logic module, the corresponding relation between each preset logic module and each small program code file is preset, and after each target preset logic module is obtained through analysis, the target small program code file corresponding to each target preset logic module is obtained.
S103: and carrying out uniform packaging operation on the target small program code files to obtain a target publishing packet.
And after the target small program code files corresponding to the target preset logic modules are obtained, uniformly packaging the target small program code files to obtain a target distribution package.
S104: and issuing the target issuing package.
And after the target small program code files are subjected to uniform packaging operation to obtain a target issuing package, issuing the target issuing package. By adopting modular development on each function and modular processing on the small program, the small program development end finally releases the target release package only containing the functions required by the user, thereby obviously reducing the size of the package body, accelerating the development process and improving the small program opening speed of the user terminal.
According to the technical scheme, the logic module is preset, the corresponding relation between each preset logic module and each small program code file is set, when each target preset logic module corresponding to the target publishing packet to be published is obtained through analysis, each target small program code file corresponding to each target preset logic module is directly obtained, and only each target small program code file is packaged and published.
It should be noted that, based on the first embodiment, the embodiment of the present invention further provides a corresponding improvement scheme. In the following embodiments, steps that are the same as or correspond to those in the first embodiment may be referred to each other, and corresponding advantageous effects may also be referred to each other, which are not described in detail in the following modified embodiments.
Example two:
referring to fig. 2, fig. 2 is a flowchart of another implementation of an applet publishing method in an embodiment of the present invention, where the method may include the following steps:
s201: and receiving each applet code file uploaded by the applet development end through the applet uploading tool.
And the small program code files are obtained by splitting the small program full function codes according to the preset logic modules by acquiring the small program full function codes for the small program development terminals.
When the small program development end develops the small program, the whole function codes of the small program are obtained, splitting operation is carried out on the whole function codes of the small program according to each preset logic module to obtain each small program code file, and each small program code file is uploaded to the small program publishing platform through the small program uploading tool. And the small program release platform receives each small program code file uploaded by the small program development end through the small program uploading tool.
Since the total package size of the applet may be larger than the maximum limit of the applet, which may cause the uploading failure and fail to obtain the calculation result, a batch calculation mode is adopted, for example, the total package size of the applet is limited to 16M, and the single package size is limited to 2M, so that a maximum of 8 modules are uploaded in a single batch, and the total package size does not exceed the maximum value for uploading.
S202: and performing dependent package configuration operation on each small program code file.
And after the small program release platform receives the small program code files uploaded by the small program development end through the small program uploading tool, performing dependent package configuration operation on the small program code files. Such as small program category, name, plug-in application, server domain name setting, service domain name setting, base library version setting, internal examination and the like.
S203: and receiving the hash value of each applet code file uploaded by the applet development end.
After the applet development end splits the full function codes of the applets to obtain the applet code files, the hash (hash) value of each applet code file is calculated, and the hash value of each applet code file is uploaded to the applet release platform. And the applet publishing platform receives the hash value of each applet code file uploaded by the applet development end.
S204: and recording each hash value.
And after receiving the hash value of each applet code file uploaded by the applet development end, the applet release platform performs recording operation on each hash value.
S205: and calculating the size of the uploaded file of each small program code file, and storing the size of each uploaded file.
Since there may be a file size change after each applet code file is uploaded to the applet publishing platform from the applet developing terminal, the applet publishing platform calculates the size of the uploaded file of each applet code file after receiving each applet code file uploaded by the applet developing terminal, and performs a storage operation on each uploaded file size.
S206: and when receiving each applet code file corresponding to the new version applet uploaded by the applet development end, acquiring the hash value corresponding to each applet code file.
And the applet can have version updating, and when the applet publishing platform receives each applet code file corresponding to the new version applet uploaded by the applet publishing end, the hash value corresponding to each applet code file is obtained.
S207: and judging whether the unrecorded hash values exist in the hash values, if so, executing the step S208, and if not, not processing.
After the applet publishing platform obtains the hash values corresponding to the applet code files, whether unrecorded hash values exist in the hash values is judged, if yes, the fact that the applet code files corresponding to the unrecorded hash values are updated compared with the version before updating is shown, step S208 is executed, and if not, the fact that the applet code files are the same as the version before updating is shown, and processing is not conducted.
S208: and carrying out uploading file size calculation and storage operation on the applet code file corresponding to the unrecorded hash value.
And when the unrecorded hash value exists in the hash values, performing uploading file size calculation and storage operation on the small program code file corresponding to the unrecorded hash value.
And (3) filtering the packets (namely the small program code files) in a hash value comparison mode:
let needCalculatePackages=[];
for package in packages{
hash not in database {// If this packet was previously computed, add the list that does not need to be computed
needCalculatePackages.push(package)
}
}
Slice (0, 6)// intercepting the contents of a single-commit packet
let sizes ═ upload (ultimate package)// upload package and get package size
for(let size of sizes){
saveSize2Database (size)// store the calculated results into the Database
}
S209: an applet issuance request is received.
S210: and judging whether the applet issuing request contains logic module checking information, if so, executing step S211, and if not, executing step S212.
After receiving the applet publishing request, the applet publishing platform determines whether the applet publishing request includes logic module checking information, if so, it indicates that the user has selected the applet function, and executes step S211, and if not, it indicates that the user has not selected the applet function, and executes step S212.
S211: and determining each target preset logic module corresponding to the target publishing packet to be published according to the logic module checking information.
And when the fact that the logic module checking information is contained in the applet publishing request is determined, the fact that the user selects the applet function is explained, and each target preset logic module corresponding to the target publishing packet to be published is determined according to the logic module checking information. Therefore, the user can select the corresponding logic module to issue the small program according to the self requirement.
S212: and acquiring each preset default logic module, and determining each preset default logic module as each target preset logic module corresponding to the target publishing packet to be published.
And presetting default logic modules, when the fact that the applet issuing request does not contain logic module checking information is determined, indicating that a user does not select the applet function, acquiring each preset default logic module, and determining each preset default logic module as each target preset logic module corresponding to the target issuing package to be issued.
S213: and receiving target applet code files corresponding to the target preset logic modules uploaded by the applet uploading tool.
And after determining each target preset logic module corresponding to the target publishing packet to be published, receiving a target small program code file corresponding to each target preset logic module uploaded by the small program uploading tool.
S214: and carrying out uniform packaging operation on the target small program code files to obtain a target publishing packet.
It should be noted that, regardless of whether the target publishing packet is obtained by packaging according to the checking information of the logic module or the default logic module, the target publishing packet includes a main packet required for issuing the applet.
S215: and acquiring the sizes of pre-stored and uploaded files corresponding to the target small program code files respectively.
The sizes of uploaded files corresponding to the small program code files are stored in advance. And after receiving each target small program code file, acquiring the size of the pre-stored and uploaded file corresponding to each target small program code file.
S216: and calculating the size of the target inclusion of the target distribution packet according to the size of each pre-stored uploaded file.
And after the sizes of the pre-stored uploaded files corresponding to the target small program code files are obtained, calculating the target bag body size of the target distribution bag according to the sizes of the pre-stored uploaded files.
S217: and acquiring a preset total packet size threshold.
The small program issuing platform issues the small program limited by the size of the small program, and the total packet size threshold is preset to obtain the preset total packet size threshold.
S218: and judging whether the size of the target bag body exceeds a preset total bag size threshold value, if so, executing step S219, and if not, executing step S220.
After the target packet body size of the target distribution packet to be issued is obtained through calculation, and the preset total packet size threshold is obtained, whether the target packet body size exceeds the preset total packet size threshold is judged, if yes, the target distribution packet is subject to issuing limitation, step S219 is executed, if not, the target distribution packet can be normally issued, and step S220 is executed.
S219: and outputting prompt information of the bag body being too large.
When the size of the target bag body exceeds the preset total bag size threshold, the target issuing bag is indicated to be limited by issuing, and prompt information that the bag body is too large is output.
S220: and issuing the target issuing package.
When the size of the target package body is determined not to exceed the preset total package size threshold, the target distribution package can be normally distributed, and the target distribution package is distributed.
The present embodiment is different from the first embodiment corresponding to the technical solution claimed in independent claim 1, and the technical solutions claimed in the dependent claims 2 to 7 are added, and of course, according to different practical situations and requirements, the technical solutions claimed in the dependent claims can be flexibly combined on the basis of not affecting the completeness of the solutions, so as to better meet the requirements of different use scenarios.
Corresponding to the above method embodiment, the present invention also provides an applet distributing apparatus, and the applet distributing apparatus described below and the applet distributing method described above may be referred to in correspondence.
Referring to fig. 3, fig. 3 is a block diagram of an applet publishing apparatus in an embodiment of the present invention, where the apparatus may include:
a logic module obtaining unit 31, configured to analyze the received applet issuing request to obtain each target preset logic module corresponding to the target issuing package to be issued;
a code file obtaining unit 32, configured to obtain a target applet code file corresponding to each target preset logic module;
a distribution package obtaining unit 33, configured to perform a uniform packaging operation on each target applet code file to obtain a target distribution package;
and the issuing packet issuing unit 34 is used for issuing the target issuing packet.
According to the technical scheme, the logic module is preset, the corresponding relation between each preset logic module and each small program code file is set, when each target preset logic module corresponding to the target distribution package to be distributed is obtained through analysis, each target small program code file corresponding to each target preset logic module is directly obtained, and only each target small program code file is packaged and distributed.
In one embodiment of the present invention, the apparatus may further include:
the bag body size calculating unit is used for calculating the target bag body size of the target publishing bag after the target publishing bag is obtained and before the target publishing bag is published;
a threshold value obtaining unit, configured to obtain a preset total packet size threshold value;
the judging unit is used for judging whether the size of the target bag body exceeds a preset total bag size threshold value or not;
the publishing packet publishing unit 34 is specifically a unit that performs a publishing operation on the target publishing packet when it is determined that the size of the target packet body exceeds the preset total packet size threshold.
In a specific embodiment of the present invention, the code file obtaining unit 32 is specifically a unit that receives target applet code files corresponding to the target preset logic modules uploaded by the applet uploading tool;
the bag body size calculation unit comprises:
the file size acquisition subunit is used for acquiring the sizes of pre-stored and uploaded files corresponding to the target small program code files respectively;
and the bag body size calculating subunit is used for calculating the target bag body size of the target distribution bag according to the sizes of the prestored uploaded files.
In an embodiment of the present invention, the apparatus includes a file size pre-storing unit, and the file size pre-storing unit includes:
the file receiving subunit is used for receiving each small program code file uploaded by the small program development end through the small program uploading tool; each small program code file is obtained by splitting the small program full function codes according to each preset logic module by acquiring the small program full function codes for the small program development end;
and the file size pre-storing subunit is used for calculating the sizes of the uploaded files of the small program code files and storing the sizes of the uploaded files.
In an embodiment of the present invention, the file size pre-storing unit further includes:
the hash value receiving subunit is used for receiving the hash value of each applet code file uploaded by the applet development end;
the hash value recording subunit is used for recording each hash value;
the hash value acquisition subunit is used for acquiring hash values respectively corresponding to all the applet code files when receiving all the applet code files corresponding to the new version applet uploaded by the applet development end;
the first judgment subunit is used for judging whether the unrecorded hash values exist in the hash values;
and the file size pre-storing subunit is used for performing uploaded file size calculation and storage operation on the small program code file corresponding to the unrecorded hash value when the unrecorded hash value exists in each hash value.
In one embodiment of the present invention, the apparatus may further include:
and the dependency package configuration unit is used for performing dependency package configuration operation on each small program code file after receiving each small program code file uploaded by the small program development end through the small program uploading tool.
In one embodiment of the present invention, the logic module obtaining unit 31 includes:
the request receiving subunit is used for receiving an applet issuing request;
the second judgment subunit is used for judging whether the applet issuing request contains logical module checking information or not;
the first logic module determining subunit is used for determining each target preset logic module corresponding to the target issuing package to be issued according to the logic module checking information when the applet issuing request contains the logic module checking information;
and the second logic module determining subunit is used for acquiring each preset default logic module when the small program publishing request does not contain logic module checking information, and determining each preset default logic module as each target preset logic module corresponding to the target publishing packet to be published.
Corresponding to the above method embodiment, referring to fig. 4, fig. 4 is a schematic diagram of an applet publishing device provided in the present invention, where the device may include:
a memory 41 for storing a computer program;
the processor 42, when executing the computer program stored in the memory 41, may implement the following steps:
analyzing the received small program issuing request to obtain each target preset logic module corresponding to the target issuing packet to be issued; acquiring target small program code files corresponding to the target preset logic modules respectively; uniformly packaging the target small program code files to obtain a target distribution package; and issuing the target issuing package.
For the introduction of the device provided by the present invention, please refer to the above method embodiment, which is not described herein again.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
analyzing the received small program issuing request to obtain each target preset logic module corresponding to the target issuing packet to be issued; acquiring target small program code files corresponding to the target preset logic modules respectively; uniformly packaging the target small program code files to obtain a target distribution package; and issuing the target issuing package.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
The principle and the implementation of the present invention are explained in the present application by using specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. An applet publishing method, comprising:
analyzing the received small program issuing request to obtain each target preset logic module corresponding to the target issuing packet to be issued;
acquiring target small program code files corresponding to the target preset logic modules respectively;
uniformly packaging each target small program code file to obtain a target publishing packet;
and issuing the target issuing package.
2. The applet publishing method according to claim 1, wherein after obtaining the target publishing package and before performing publishing operation on the target publishing package, further comprising:
calculating the size of a target inclusion of the target publishing packet;
acquiring a preset total packet size threshold;
judging whether the size of the target bag body exceeds the preset total bag size threshold value or not;
and if not, executing the step of issuing the target issuing package.
3. The applet distributing method according to claim 2, wherein obtaining the target applet code file corresponding to each of the target preset logic modules comprises:
receiving target small program code files corresponding to the target preset logic modules uploaded by a small program uploading tool;
calculating the size of the target inclusion of the target publishing packet, including:
acquiring the sizes of pre-stored and uploaded files corresponding to the target small program code files respectively;
and calculating the size of the target bag body of the target distribution bag according to the size of each pre-stored and uploaded file.
4. The applet distributing method according to claim 3, wherein the setting process of the sizes of the pre-stored uploaded files comprises:
receiving each small program code file uploaded by the small program development terminal through the small program uploading tool; each small program code file is obtained by obtaining a small program full function code for a small program development end and splitting the small program full function code according to each preset logic module;
and calculating the size of the uploaded file of each small program code file, and storing the size of each uploaded file.
5. The applet distributing method according to claim 4, further comprising:
receiving the hash value of each small program code file uploaded by the small program development end;
recording each hash value;
when receiving each small program code file corresponding to a new version small program uploaded by the small program development end, acquiring hash values corresponding to the small program code files respectively;
judging whether each hash value has an unrecorded hash value;
and if so, carrying out uploading file size calculation and storage operation on the small program code file corresponding to the unrecorded hash value.
6. The applet distributing method according to claim 4, further comprising, after receiving each applet code file uploaded by the applet developing terminal through the applet uploading tool:
and performing dependent package configuration operation on each small program code file.
7. The applet distributing method according to any one of claims 1 to 6, wherein parsing the received applet distributing request to obtain each target preset logic module corresponding to the target distribution package to be distributed includes:
receiving the applet issuing request;
judging whether the applet issuing request contains logical module checking information or not;
if yes, determining each target preset logic module corresponding to the target publishing packet to be published according to the logic module checking information;
and if not, acquiring each preset default logic module, and determining each preset default logic module as each target preset logic module corresponding to the target distribution packet to be distributed.
8. An applet distributing apparatus comprising:
the logic module obtaining module is used for analyzing the received small program issuing request to obtain each target preset logic module corresponding to the target issuing packet to be issued;
a code file obtaining module, configured to obtain a target applet code file corresponding to each target preset logic module;
the issuing package obtaining module is used for carrying out uniform packaging operation on the target small program code files to obtain the target issuing packages;
and the issuing package issuing module is used for issuing the target issuing package.
9. An applet distributing apparatus comprising:
a memory for storing a computer program;
a processor for implementing the steps of the applet distribution method as claimed in any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the applet distribution method as claimed in any one of the claims 1 to 7.
CN202011623331.2A 2020-12-30 2020-12-30 Applet publishing method, device, equipment and computer readable storage medium Pending CN112748926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011623331.2A CN112748926A (en) 2020-12-30 2020-12-30 Applet publishing method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011623331.2A CN112748926A (en) 2020-12-30 2020-12-30 Applet publishing method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112748926A true CN112748926A (en) 2021-05-04

Family

ID=75650382

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011623331.2A Pending CN112748926A (en) 2020-12-30 2020-12-30 Applet publishing method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112748926A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023082365A1 (en) * 2021-11-10 2023-05-19 同程网络科技股份有限公司 Wechat mini program packaging platform and method, and device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109558202A (en) * 2018-12-14 2019-04-02 平安城市建设科技(深圳)有限公司 Original list development approach, device, equipment and storage medium based on small routine
CN109814853A (en) * 2019-01-18 2019-05-28 宜创(北京)科技有限公司 Based on visual multi-platform data creation method, device, equipment and medium
CN110502245A (en) * 2018-05-16 2019-11-26 华为技术有限公司 Data processing method, terminal, server and application and development equipment
CN110874236A (en) * 2019-11-13 2020-03-10 中国建设银行股份有限公司 Cross-platform application device, terminal and storage medium
CN111708528A (en) * 2020-06-15 2020-09-25 中国建设银行股份有限公司 Method, device and equipment for generating small program and storage medium
CN111708990A (en) * 2020-05-15 2020-09-25 支付宝(杭州)信息技术有限公司 Applet starting method, signature method, device, server and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110502245A (en) * 2018-05-16 2019-11-26 华为技术有限公司 Data processing method, terminal, server and application and development equipment
CN109558202A (en) * 2018-12-14 2019-04-02 平安城市建设科技(深圳)有限公司 Original list development approach, device, equipment and storage medium based on small routine
CN109814853A (en) * 2019-01-18 2019-05-28 宜创(北京)科技有限公司 Based on visual multi-platform data creation method, device, equipment and medium
CN110874236A (en) * 2019-11-13 2020-03-10 中国建设银行股份有限公司 Cross-platform application device, terminal and storage medium
CN111708990A (en) * 2020-05-15 2020-09-25 支付宝(杭州)信息技术有限公司 Applet starting method, signature method, device, server and medium
CN111708528A (en) * 2020-06-15 2020-09-25 中国建设银行股份有限公司 Method, device and equipment for generating small program and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
沈顺天: "微信小程序项目开发实战", 机械工业出版社, pages: 289 - 290 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023082365A1 (en) * 2021-11-10 2023-05-19 同程网络科技股份有限公司 Wechat mini program packaging platform and method, and device and storage medium

Similar Documents

Publication Publication Date Title
CN111177005B (en) Service application testing method, device, server and storage medium
CN112181804A (en) Parameter checking method, equipment and storage medium
CN110543427B (en) Test case storage method and device, electronic equipment and storage medium
CN109828780B (en) Open source software identification method and device
CN110569159A (en) Baffle generation method, device, equipment and computer storage medium
CN107798064A (en) Page processing method, electronic equipment and computer-readable recording medium
CN112748926A (en) Applet publishing method, device, equipment and computer readable storage medium
CN111338716A (en) Data processing method and device based on rule engine and terminal equipment
CN110647415A (en) Database detection method, device and equipment and computer readable storage medium
CN111193631B (en) Information processing method, system, and computer-readable storage medium
CN111338644A (en) Task script deployment method and system
CN112631577B (en) Model scheduling method, model scheduler and model safety test platform
CN113111281A (en) DWG drawing preview service method, system and storage medium
CN113961334B (en) Task processing method, device, equipment and storage medium
CN115688160A (en) Data desensitization method, device, equipment and storage medium
CN111756594A (en) Control method of pressure test, computer device and computer readable storage medium
CN111371699B (en) Resource current limiting method and device, electronic equipment and storage medium
CN114896161A (en) File construction method and device based on artificial intelligence, computer equipment and medium
CN112131025A (en) Component transmission method and device, computer equipment and storage medium
CN113127327A (en) Test method and device for performance test
CN112035650A (en) Information processing method and device, computer readable storage medium and electronic equipment
CN111562928A (en) Resource providing method and device and resource downloading method and device
CN113377672B (en) Test method, device and equipment
CN113282541B (en) File calling method and device and electronic equipment
US10726109B2 (en) Method and system for identifying whether an application is genuine by means of digital watermarks

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