CN110308917B - Applet issuing method, device, equipment and computer storage medium - Google Patents

Applet issuing method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN110308917B
CN110308917B CN201910565822.7A CN201910565822A CN110308917B CN 110308917 B CN110308917 B CN 110308917B CN 201910565822 A CN201910565822 A CN 201910565822A CN 110308917 B CN110308917 B CN 110308917B
Authority
CN
China
Prior art keywords
applet
data
task
version
content
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910565822.7A
Other languages
Chinese (zh)
Other versions
CN110308917A (en
Inventor
卓燕坤
陈杰
邓翔
马征
申宁贝妮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN201910565822.7A priority Critical patent/CN110308917B/en
Publication of CN110308917A publication Critical patent/CN110308917A/en
Application granted granted Critical
Publication of CN110308917B publication Critical patent/CN110308917B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/76Adapting program code to run in a different environment; Porting
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention relates to the technical field of financial science (Fintech), and discloses an applet issuing method, which comprises the following steps: when an applet to be updated is detected, acquiring a task event preset in the applet, and carrying out data update on content data in the applet based on the task event to obtain an applet experience version; when a preview instruction based on the small program experience version is received, displaying a preview picture corresponding to the small program experience version, acquiring a first environment parameter in the preview picture, and determining whether the content data of the small program experience version needs to be modified or not based on the first environment parameter; if not, the task event is transferred to the formal version of the applet. The invention also discloses an applet issuing device, equipment and a computer storage medium. The invention improves the portability of the small program content release flow.

Description

Applet issuing method, device, equipment and computer storage medium
Technical Field
The present invention relates to the technical field of financial technology (Fintech), and in particular, to an applet issuing method, apparatus, device, and computer storage medium.
Background
With the development of computer technology, more and more technologies (big data, distributed, blockchain, artificial intelligence, etc.) are applied in the financial field, and the traditional financial industry is gradually changing to the financial technology (Fintech), but due to the requirements of security and real-time performance of the financial industry, higher requirements are also put forward on the technologies. In the current financial and technological field, there are various technologies for updating and publishing program contents, for example, updating the applet contents, there is a content management platform for editing and updating the applet contents, and when an operator clicks and publishes, the updated contents can be accessed through the applet. However, since the purpose of publishing is to update the content of the target area and the data types are diversified, the implementation of each system technical scheme is also diversified, and the coupling between the general publishing operation and the content to be published is serious, and when the data types are changed, the publishing process often needs to be adjusted, so that the portability of the publishing processes of different systems is poor. Therefore, how to improve portability of the applet content distribution process is a technical problem to be solved.
Disclosure of Invention
The invention mainly aims to provide an applet publishing method, device, equipment and computer storage medium, aiming at improving portability of an applet content publishing process.
In order to achieve the above object, the present invention provides an applet publishing method comprising the steps of:
when an applet to be updated is detected, acquiring a task event preset in the applet, and carrying out data update on content data in the applet based on the task event to obtain an applet experience version;
when a preview instruction based on the small program experience version is received, displaying a preview picture corresponding to the small program experience version, acquiring a first environment parameter in the preview picture, and determining whether a task event needs to be modified or not based on the first environment parameter;
and if not, transmitting the task event to an applet formal version corresponding to the applet experience version.
Optionally, the step of acquiring a task event preset in the applet and updating the content data based on the task event includes:
acquiring CDN content and a preset data processing task of a content delivery network in the applet, and determining whether to update the CDN content;
If yes, updating the CDN content according to the data type of the content data to obtain a CDN release task, and updating the data of the content data by taking the data processing task and the CDN release task as preset task events.
Optionally, the step of displaying the preview screen corresponding to the applet experience version includes:
and detecting whether repeated tasks exist in the task event, if so, deleting the repeated tasks in the task event to obtain a new task event, and displaying a preview picture corresponding to the applet experience version based on the new task event.
Optionally, the step of displaying the preview screen corresponding to the applet experience version based on the new task event includes:
acquiring an input operation instruction and determining whether the operation instruction is an update instruction;
and if the operation instruction is an update instruction, acquiring a resource data table corresponding to the new task event, and displaying a preview picture corresponding to the applet experience version according to the resource data table.
Optionally, the resource data table includes a pre-list, and the step of obtaining the resource data table corresponding to the new task event includes:
Acquiring a data processing task in the new task event, synchronizing dynamic data in the applet to a preview table corresponding to the new task event based on the data processing task in the new task event, and acquiring a preview table with the dynamic data;
optionally, the resource data table includes a CDN content storage directory, and the step of obtaining the resource data table corresponding to the new task event includes:
acquiring a CDN release task in the new task event, uploading the static resource in the applet to the CDN content storage directory based on the CDN release task in the new task event, and acquiring the CDN content storage directory with the static resource.
Optionally, the step of transferring the task event to an applet formal version corresponding to the applet experience version includes:
and transmitting the task event to an applet formal version corresponding to the applet experience version, detecting whether the operation type received by the applet formal version is updated, and transmitting dynamic data and static resources in the resource data table to the resource data table in the applet formal version if the operation type is updated, wherein the applet formal version detects the production table according to a second environment parameter in the applet formal version, and if the detection is qualified, the content data in the applet formal version is not modified.
In addition, in order to achieve the above object, the present invention also provides an applet issuing apparatus including:
the acquisition module is used for acquiring a preset task event in the applet when the applet to be updated is detected, and carrying out data update on the content data in the applet based on the task event so as to obtain an applet experience version;
the determining module is used for displaying a preview picture corresponding to the small program experience version when receiving a preview instruction based on the small program experience version, acquiring a first environment parameter in the preview picture, and determining whether the content data of the small program experience version needs to be modified or not based on the first environment parameter;
and the transmission module is used for transmitting the task event to the applet formal version corresponding to the applet experience version if not.
In addition, in order to achieve the above object, the present invention also provides an applet issuing apparatus comprising: the system comprises a memory, a processor and an applet issuing program stored on the memory and capable of running on the processor, wherein the applet issuing program realizes the steps of the applet issuing method when being executed by the processor.
In addition, in order to achieve the above object, the present invention also provides a computer storage medium having stored thereon an applet distribution program which, when executed by a processor, implements the steps of the applet distribution method as described above.
When an applet to be updated is detected, acquiring a task event preset in the applet, and carrying out data update on content data in the applet based on the task event to obtain an applet experience version; when a preview instruction based on the small program experience version is received, displaying a preview picture corresponding to the small program experience version, acquiring a first environment parameter in the preview picture, and determining whether the content data of the small program experience version needs to be modified or not based on the first environment parameter; and if not, transmitting the task event to an applet formal version corresponding to the applet experience version. By updating the content data in the applet to be updated and then acquiring the updated preview picture, whether the content data to be modified meets the preset requirement or not can be timely known, the phenomenon that the newly added data content can influence typesetting display of a certain page of the applet and cannot be timely found in the process of data updating in the prior art due to lack of a preview mechanism is avoided, the new content data meets the requirement and is sent to the applet formal edition, so that the accuracy of applet release is further improved, modification of the applet release content and release of the applet release content are carried out at different positions, the problem that release operation and content to be released are seriously coupled in the prior art is avoided, the phenomenon that release flow needs to be frequently adjusted in the process of data type change is avoided, and the portability of the applet release flow is improved.
Drawings
FIG. 1 is a schematic diagram of a device architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a first embodiment of an applet publishing method according to the present invention;
FIG. 3 is a schematic diagram of a device module of the applet issuing device according to the present invention;
FIG. 4 is a schematic flow chart of the procedure for updating the content of the applet in the applet publishing method of the present invention;
FIG. 5 is a flow chart of publishing previews in the applet publishing method of the present invention;
FIG. 6 is a schematic diagram of a process flow of release production in the applet release method of the present invention;
FIG. 7 is a timing diagram of a release strategy in the applet release method according to the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic device structure of a hardware running environment according to an embodiment of the present invention.
The applet issuing device in the embodiment of the invention can be a PC or a server device, and a Java virtual machine is operated on the applet issuing device.
As shown in fig. 1, the applet issuing apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
It will be appreciated by those skilled in the art that the device structure shown in fig. 1 is not limiting of the device and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and an applet distribution program may be included in a memory 1005 as one type of computer storage medium.
In the device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server, and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to call an applet issuing program stored in the memory 1005 and perform operations in an applet issuing method described below.
Based on the hardware structure, the embodiment of the applet issuing method is provided.
Referring to fig. 2, fig. 2 is a flowchart of a first embodiment of an applet publishing method according to the present invention, the method includes:
step S10, when an applet to be updated is detected, acquiring a preset task event in the applet, and carrying out data update on content data in the applet based on the task event to obtain an applet experience version;
In this embodiment, the applet may be an application that can be used without downloading and installing, which implements the dream that the application tentacles to, and the user can open the application by swiping or searching. The applet includes a release process and data, wherein the data content decoupling is to program general task events in advance, when an operator updates the applet content, static resources and dynamic data in the applet are updated according to the task events, and the release process is to update the applet content by the operator through the task events, complete the content update, and release the task events after checking. The applet is provided with a data structure 'task event' defined by a user to describe operation type, data type, source data information (belonging table, data main key, file address, etc.), target data information (service address, target data table, file address, etc.), etc., and generally describes various related release operations, file uploading, file deleting, data synchronizing, data deleting, file copying, etc. The data types needing to be released are used as the series of task events, the task events are asynchronously and sequentially recorded in a database, and a background system acquires the task events when the release is triggered, so that the execution is identified. The task event is identified and executed by the system, and is a task to be executed of the background abstract of the operator operation data.
When an operator is detected to enter an internal management platform to edit corresponding applet content, namely when the content data in the applet database to be updated is detected to be updated, a preset task event in the applet is required to be acquired, then the data type of the content data is determined according to the task event, the data update of the content data in the applet is determined according to the data attribute, the operation actions (new addition, deletion and modification) and the like, and the applet after the data update is acquired as an applet experience version. To assist the understanding of the operator's understanding of the applet content updates, an example is provided below.
For example, as shown in fig. 4, the program content is composed of data stored in a database and static resources stored in a CDN (Content Delivery Network ), and when an operator updates the applet content, that is, performs data update, when DB (database) is updated, a data processing task is added (the operation type of the data processing task is deletion or update, the task state is information of table to be pre-delivered, data main key, target table, etc.), and it is determined whether the CDN (Content Delivery Network ) content needs to be updated. If it is judged that the CDN content needs to be updated, CDN delivery tasks are added according to the data types of the content data (the operation types of the CDN delivery tasks are uploading or deleting, the task states are information such as CDN service addresses to be pre-delivered, target file addresses, tables, data main keys, source file addresses and the like).
Step S20, when a preview instruction based on the small program experience version is received, displaying a preview picture corresponding to the small program experience version, acquiring a first environment parameter in the preview picture, and determining whether to modify content data of the small program experience version based on the first environment parameter;
the first environment parameter may be an environment parameter that the applet requests to obtain through the API interface. The preview instructions may be instructions entered by the user to expose applet experience version content data. And receiving a preview instruction input by an operator in the applet experience edition, and displaying a preview picture with content data of the applet experience edition according to the preview instruction so that the operator can check according to the preview picture. The header parameter evn=pre, that is, the first environment parameter, is added in the preview screen through the API interface request, and the content data of the applet experience version is detected through the first environment parameter, so as to determine whether the content data of the applet experience version needs to be modified. If the content data of the applet experience version does not need to be modified, the task event can be transmitted to the applet formal version, if the content data of the applet experience version needs to be modified, the content data of the applet experience version is modified, and after the modification is completed, the content data of the applet experience version is detected again through the first environment parameter until the content data of the applet experience version does not need to be modified. To assist in understanding the process that the applet manages the background operation after the operator clicks on the release preview, an example is described below.
For example, as shown in fig. 5, the task events include a data processing task and a CDN delivery task, when an operator clicks a delivery preview on an internal management platform in the applet, the data processing task to be pre-delivered is obtained, repeated tasks are filtered, an operation type input by the operator is determined, when the operation type is updated, data is synchronized from { table } to pre + { table } table, and the status of the task is updated to be the production status to be delivered; and when the operation type is deleting, deleting pre+ { table } table data, and updating the task state to be the production to be issued. Meanwhile, the CDN pre-release task is required to be acquired, repeated tasks are filtered, whether the content is deleted or updated is determined, if the content in the applet is updated, a multimedia file is acquired according to task information, a data json file is uploaded to a CDN pre-release catalog, and then the release task state is updated to be produced. And if the content is deleted, deleting the file corresponding to the CDN pre-release task, and updating the release task state to be the production to be released.
And step S30, if not, transmitting the task event to an applet formal version corresponding to the applet experience version.
Further, the applet formal edition determines whether to modify the content data in the applet formal edition according to the second environment parameters in the applet formal edition, if so, the applet formal edition outputs prompt information for modifying the content data in the applet.
It should be noted that, in this embodiment, in the applet experience version, an operator updates data of the applet to be updated in the applet experience version, after the update is completed and the applet experience version is checked to be qualified, a task event is sent to the applet formal version, and the administrator detects the task event, if the task event is qualified, the task event is issued, and if the task event is not qualified, notification information is output, so that the operator modifies the applet content again. The method comprises the steps of updating content data in an applet experience edition, and detecting produced and released data content in the applet formal edition.
For example, as shown in fig. 6, in a content management platform of a financial institution such as a bank, a task event includes a data processing task and a CDN delivery task, when a user (such as an administrator) clicks to click on production delivery in a formal version of an applet, the data processing task of the production to be delivered is acquired, and repeated tasks are filtered, an operation type of the task is determined, when the operation type is update, data is synchronized from pre + { table } to pro + { table } table, and the task record state is DONE (finalized), and when the operation type is delete, the pro + { table } table data is deleted, and the task record state is DONE. Meanwhile, the CDN delivery production task is also required to be acquired, repeated records are filtered, whether the content in the applet is deleted or updated is determined, if the content is updated, the CDN service is informed to copy the file from the pre-directory to the pro-directory, and the task state is updated as DONE. If the content is deleted, the CDN service is informed to delete the corresponding file corresponding to the content, and the task state is updated to DONE.
It should be further noted that, in this embodiment, the content accessed by the applet may be divided into static resources and dynamic data. Static resources (multimedia files, content json files and the like) are stored in CDN service, and have pre and pro access directories, data accessed by the applet experience edition are in the pre directory, and the production applet accesses the pro directory data. Dynamic data (data of which the content is frequently changed and is unsuitable for generating file content) is stored in a database, data information stored in an operation is stored in a table { table Name }, the data is stored in a preview table pre_ { table Name }, the data is stored in a production table pro { table Name }, and a applet accesses different data table contents by increasing a header parameter evn= { pre/pro } through an API interface.
In addition, to assist in understanding the principles of distributing applet content, an example is described below.
For example, as shown in fig. 7, three steps are required for the user to issue the applet, i.e., the user, the manager service, the applet, the CND service, the applet background, and the DB (database), and in the first step, the user edits the content, updates/deletes the content by the manager service, updates the content, newly adds a task to the DB, and the DB returns the result for the user to view. And entering a step two, after clicking release preview by a user, acquiring a task of data to be synchronized in the DB, and synchronizing the data to a preview table. Acquiring a CDN task to be released from a DB, uploading a pre-directory or deleting a file through CDN service according to the CDN task to be released, accessing an applet experience edition, loading pre-directory content to a database in a static resource, and checking data in a pre-list through an API interface request of the applet, namely, environment parameter env=pre operation pre-list data on a header, if the result is qualified, entering a step III. And carrying out release production, acquiring a task to be synchronized with data, synchronizing the data in the pre-list table to the production table, acquiring a CDN task to be released in the DB, and carrying out file copying or deleting files through CND service according to the CDN task to be released. Accessing the applet formal edition, loading the content file of the pro path in the static resource, and then accessing the data in the production table through the API interface request in the applet formal edition, namely the environment parameter env=pro on the header band, namely the data in the production table is checked, and if the data is qualified, the data in the production table is confirmed to have no problem. The method realizes the small program release process of financial institutions such as banks, and the like, and has higher accuracy and portability, thereby ensuring the normal development of businesses (deposit businesses, loan businesses, and the like).
In this embodiment, when an applet to be updated is detected, a task event preset in the applet is acquired, and data update is performed on content data in the applet based on the task event, so as to obtain an applet experience version; when a preset instruction based on the small program experience version is received, displaying a preview picture corresponding to the small program experience version, acquiring a first environment parameter in the preview picture, and determining whether the content data of the small program experience version needs to be modified or not based on the first environment parameter; and if not, transmitting the task event to an applet formal version corresponding to the applet experience version. By updating the content data in the applet to be updated and then acquiring the updated preview picture, whether the content data to be modified meets the preset requirement or not can be timely known, the phenomenon that the newly added data content can influence typesetting display of a certain page of the applet and cannot be timely found in the process of data updating in the prior art due to lack of a preview mechanism is avoided, the new content data meets the requirement and is sent to the applet formal edition, so that the accuracy of applet release is further improved, modification of the applet release content and release of the applet release content are carried out at different positions, the problem that release operation and content to be released are seriously coupled in the prior art is avoided, the phenomenon that release flow needs to be frequently adjusted in the process of data type change is avoided, and the portability of the applet release flow is improved.
Further, based on the first embodiment of the applet publishing method of the present invention, a second embodiment of the applet publishing method of the present invention is presented. The present embodiment is a step S10 of the first embodiment of the present invention, which is a refinement of the step of obtaining a task event preset in the applet and performing data update on the content data based on the task event, and includes:
step a, acquiring CDN content and a preset data processing task of a content delivery network in the applet, and determining whether to update the CDN content;
the CDN is a content distribution network constructed on the network, and by means of the edge servers deployed in various places, a user can obtain required content nearby through load balancing, content distribution, scheduling and other functional modules of the center platform, network congestion is reduced, and user response speed and hit rate are improved. And acquiring a preset data processing task and CDN content in the applet, determining whether the CDN content needs to be updated, and executing different operations based on a determination result.
And b, if so, updating the CDN content according to the data type of the content data to acquire a CDN delivery task, and updating the data of the content data by taking the data processing task and the CDN delivery task as preset task events.
When the CDN content is judged to be required to be updated, the data type of the content data is obtained, then CDN delivery tasks are added according to the data type, namely the CDN content is updated, the CDN delivery tasks are obtained, and at the moment, the data processing tasks and the CDN delivery tasks can be used as preset task events to update the data of the content data. However, when it is judged that the content of the CDN is not required to be updated, the data processing task may be directly used as a task event to update the content data.
In this embodiment, by determining whether to update the CDN content and taking the CDN delivery task and the data processing task as preset task events when determining to update the CDN content, accuracy of the acquired task events is ensured.
Further, on the basis of any one of the first to second embodiments of the applet publishing method of the present invention, a third embodiment of the applet publishing method of the present invention is provided. The embodiment is step S20 of the first embodiment of the present invention, which shows refinement of the step of the preview screen corresponding to the applet experience edition.
And c, detecting whether repeated tasks exist in the task event, if so, deleting the repeated tasks in the task event to obtain a new task event, and displaying a preview picture corresponding to the applet experience version based on the new task event.
Detecting whether repeated tasks exist in a data processing task to be released and a CDN pre-release task in a task event, if so, deleting the repeated tasks in the task event, namely deleting the repeated tasks in the data processing task, if so, deleting the repeated tasks in the CDN pre-release task, taking the task event after deleting the repeated tasks as a new task event, and displaying a preview picture with the content data of the applet experience version according to the new task event.
In the embodiment, whether the repeated task exists in the task event is detected, and if the repeated task exists, the repeated task is deleted, so that the accuracy of the acquired task event is ensured.
Specifically, the step of displaying the preview picture corresponding to the applet experience version based on the new task event includes:
step c1, acquiring an input operation instruction and determining whether the operation instruction is an update instruction;
the method comprises the steps of acquiring an input operation instruction (which can be an operation instruction input by a user or an operation instruction transmitted by other terminals), determining whether the operation instruction is an update instruction, and executing different operations based on different operation instructions.
And c2, if the operation instruction is an update instruction, acquiring a resource data table corresponding to the new task event, and displaying a preview picture corresponding to the applet experience version according to the resource data table.
When the operation instruction is judged to be an update instruction, the content data in the applet is required to be synchronized into the resource data table, the data in the resource data table is called, and the preview picture corresponding to the data is displayed according to the data in the resource data table. It should be noted that the operation instruction may be a delete instruction, a add instruction, a modify instruction, or the like, and may execute different operations according to different types of operation instructions. The resource data table may include a preview table in which dynamic data of the applet is placed and a database table in which static resources of the applet are placed.
In the embodiment, by judging whether the acquired operation instruction is an update instruction or not and displaying the preview picture corresponding to the applet experience version according to the resource data table when the operation instruction is the update instruction, the effect of timely checking the content data after data update is ensured.
Further, the step of obtaining the resource data table corresponding to the new task event includes:
And d, acquiring a data processing task in the new task event, synchronizing dynamic data in the applet to a preview table corresponding to the new task event based on the data processing task in the new task event, and acquiring a preview table with the dynamic data.
In this embodiment, the resource data table includes a list. And acquiring a data processing task in the new task event, synchronizing dynamic data in the applet database into a preview table corresponding to the new task event when the received operation instruction is an update instruction, and acquiring a preview table with the dynamic data. When the operation instruction is a delete instruction, the data in the list is deleted. The dynamic data may be data whose contents change frequently and are unsuitable for generating file contents.
In this embodiment, the dynamic data is uploaded to the preview table, so that the integrity of the data in the preview table can be ensured, and a user can intuitively know which data needs to be detected.
Further, the step of obtaining the resource data table corresponding to the new task event includes:
step e, acquiring a CDN release task in the new task event, uploading the static resource in the applet to the CDN content storage directory based on the CDN release task in the new task event, and acquiring the CDN content storage directory with the static resource.
Note that, in this embodiment, the resource data table includes a CDN content storage directory.
And acquiring a CDN release task in the new task event, and uploading the static resources in the applet database to a CDN content storage directory when the received operation instruction is an update instruction. Wherein, the static resource can be a multimedia file, a content json file, etc. After the resource data table is determined to acquire the static resources and the dynamic data, the resource data table is acquired so as to place the resource data table with the static resources and the dynamic data in a preview picture for display.
In this embodiment, the static resources are uploaded to the CDN content storage directory, so that the integrity of the data in the preview table can be ensured, and a user can intuitively know which data needs to be detected.
Specifically, the step of transferring the task event to an applet official version corresponding to the applet experience version comprises:
and f, transmitting the task event to an applet formal version corresponding to the applet experience version, detecting whether the operation type received by the applet formal version is updated, and transmitting dynamic data and static resources in the resource data table to the resource data table in the applet formal version if the operation type is updated, wherein the applet formal version detects the production table according to a second environment parameter in the applet formal version, and if the detection is qualified, the content data in the applet formal version is not modified.
When the task event is transferred to the applet main edition corresponding to the applet experience edition, detecting the operation type received by the applet main edition, and when the operation type is updated, transferring the acquired resource data table to the resource data table in the applet main edition, namely transferring the dynamic data and the static resource in the pre-list to the applet main edition, detecting the data in the production table by the applet main edition according to the second environment parameter received by the applet main edition, determining whether the data are unqualified, and if the data are not unqualified, notifying the experience edition that the content data in the applet are not required to be modified. However, when the operation type is delete, the data in the production table is deleted, and the CDN service is notified to delete the corresponding file.
In this embodiment, when the task event is transferred to the applet formal version and the operation type is updated, the dynamic data and the static resources in the pre-list are transferred to the production list, so that the accuracy of the data acquired by the production list is ensured.
The present invention also provides an applet issuing apparatus, referring to fig. 3, comprising:
The acquisition module is used for acquiring a preset task event in the applet when the applet to be updated is detected, and carrying out data update on the content data in the applet based on the task event so as to obtain an applet experience version;
the determining module is used for displaying a preview picture corresponding to the small program experience version when receiving a preview instruction based on the small program experience version, acquiring a first environment parameter in the preview picture, and determining whether the content data of the small program experience version needs to be modified or not based on the first environment parameter;
and the transmission module is used for transmitting the task event to the applet formal version corresponding to the applet experience version if not.
Optionally, the acquiring module is further configured to:
acquiring CDN content and a preset data processing task of a content delivery network in the applet, and determining whether to update the CDN content;
if yes, updating the CDN content according to the data type of the content data to obtain a CDN release task, and updating the data of the content data by taking the data processing task and the CDN release task as preset task events.
Optionally, the determining module is further configured to:
and detecting whether repeated tasks exist in the task event, if so, deleting the repeated tasks in the task event to obtain a new task event, and displaying a preview picture corresponding to the applet experience version based on the new task event.
Optionally, the determining module is further configured to:
acquiring an input operation instruction and determining whether the operation instruction is an update instruction;
and if the operation instruction is an update instruction, acquiring a resource data table corresponding to the new task event, and displaying a preview picture corresponding to the applet experience version according to the resource data table.
Optionally, the resource data table includes a pre-list, and the determining module is further configured to:
and acquiring a data processing task in the new task event, synchronizing dynamic data in the applet to a preview table corresponding to the new task event based on the data processing task in the new task event, and acquiring a preview table with the dynamic data.
Optionally, the resource data table includes a CDN content storage directory, and the determining module is further configured to:
acquiring a CDN release task in the new task event, uploading the static resource in the applet to the CDN content storage directory based on the CDN release task in the new task event, and acquiring the CDN content storage directory with the static resource.
Optionally, the determining module is further configured to:
and transmitting the task event to an applet formal version corresponding to the applet experience version, detecting whether the operation type received by the applet formal version is updated, and transmitting dynamic data and static resources in the resource data table to the resource data table in the applet formal version if the operation type is updated, wherein the applet formal version detects the production table according to a second environment parameter in the applet formal version, and if the detection is qualified, the content data in the applet formal version is not modified.
The method executed by each program module may refer to each embodiment of the applet publishing method according to the present invention, and will not be described herein.
The invention also provides a computer storage medium.
The computer storage medium of the present invention stores thereon an applet distribution program which, when executed by a processor, implements the steps of the applet distribution method as described above.
The method implemented when the applet issuing program running on the processor is executed may refer to various embodiments of the applet issuing method of the present invention, which are not described herein.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (6)

1. An applet issuing method, characterized in that the applet issuing method comprises the steps of:
when an applet to be updated is detected, acquiring a task event preset in the applet, and carrying out data update on content data in the applet based on the task event to obtain an applet experience version;
when a preview instruction based on the small program experience version is received, displaying a preview picture corresponding to the small program experience version, acquiring a first environment parameter in the preview picture, and determining whether the content data of the small program experience version needs to be modified or not based on the first environment parameter;
if not, transmitting the task event to an applet formal version corresponding to the applet experience version;
the step of acquiring the task event preset in the applet and updating the data of the content data based on the task event comprises the following steps:
Acquiring CDN content and a preset data processing task of a content delivery network in the applet, and determining whether to update the CDN content;
if yes, updating the CDN content according to the data type of the content data to obtain a CDN release task, and updating the data of the content data by taking the data processing task and the CDN release task as preset task events;
the step of displaying the preview picture corresponding to the applet experience version comprises the following steps:
detecting whether a repeated task exists in the task event, if so, deleting the repeated task in the task event to obtain a new task event, and displaying a preview picture corresponding to the applet experience version based on the new task event;
the step of displaying the preview picture corresponding to the applet experience version based on the new task event comprises the following steps:
acquiring an input operation instruction and determining whether the operation instruction is an update instruction;
if the operation instruction is an update instruction, acquiring a resource data table corresponding to the new task event, and displaying a preview picture corresponding to the applet experience version according to the resource data table;
The step of transferring the task event to the applet formal version corresponding to the applet experience version comprises the following steps:
and transmitting the task event to an applet formal version corresponding to the applet experience version, detecting whether the operation type received by the applet formal version is updated, and transmitting dynamic data and static resources in the resource data table to the resource data table in the applet formal version if the operation type is updated, wherein the applet formal version detects a production table according to a second environment parameter in the applet formal version, and if the detection is qualified, the content data in the applet formal version is not modified.
2. The applet distribution method according to claim 1, wherein the resource data table comprises a list, and the step of obtaining the resource data table corresponding to the new task event comprises:
and acquiring a data processing task in the new task event, synchronizing dynamic data in the applet to a preview table corresponding to the new task event based on the data processing task in the new task event, and acquiring a preview table with the dynamic data.
3. The applet distribution method according to claim 1, wherein the resource data table comprises a CDN content storage directory, and the step of obtaining the resource data table corresponding to the new task event comprises:
acquiring a CDN release task in the new task event, uploading the static resource in the applet to the CDN content storage directory based on the CDN release task in the new task event, and acquiring the CDN content storage directory with the static resource.
4. An applet issuing apparatus, characterized in that the applet issuing apparatus comprises:
the acquisition module is used for acquiring a preset task event in the applet when the applet to be updated is detected, and carrying out data update on the content data in the applet based on the task event so as to obtain an applet experience version;
the determining module is used for displaying a preview picture corresponding to the small program experience version when receiving a preview instruction based on the small program experience version, acquiring a first environment parameter in the preview picture, and determining whether the content data of the small program experience version needs to be modified or not based on the first environment parameter;
The transmission module is used for transmitting the task event to an applet formal version corresponding to the applet experience version if not;
the step of acquiring the task event preset in the applet and updating the data of the content data based on the task event comprises the following steps:
acquiring CDN content and a preset data processing task of a content delivery network in the applet, and determining whether to update the CDN content;
if yes, updating the CDN content according to the data type of the content data to obtain a CDN release task, and updating the data of the content data by taking the data processing task and the CDN release task as preset task events;
the step of displaying the preview picture corresponding to the applet experience version comprises the following steps:
detecting whether a repeated task exists in the task event, if so, deleting the repeated task in the task event to obtain a new task event, and displaying a preview picture corresponding to the applet experience version based on the new task event;
the step of displaying the preview picture corresponding to the applet experience version based on the new task event comprises the following steps:
Acquiring an input operation instruction and determining whether the operation instruction is an update instruction;
if the operation instruction is an update instruction, acquiring a resource data table corresponding to the new task event, and displaying a preview picture corresponding to the applet experience version according to the resource data table;
the step of transferring the task event to the applet formal version corresponding to the applet experience version comprises the following steps:
and transmitting the task event to an applet formal version corresponding to the applet experience version, detecting whether the operation type received by the applet formal version is updated, and transmitting dynamic data and static resources in the resource data table to the resource data table in the applet formal version if the operation type is updated, wherein the applet formal version detects a production table according to a second environment parameter in the applet formal version, and if the detection is qualified, the content data in the applet formal version is not modified.
5. An applet issuing apparatus, characterized in that the applet issuing apparatus comprises: a memory, a processor and an applet distribution program stored on the memory and executable on the processor, the applet distribution program when executed by the processor implementing the steps of the applet distribution method according to any one of claims 1 to 3.
6. A computer storage medium, characterized in that it has stored thereon an applet distribution program which, when executed by a processor, implements the steps of the applet distribution method according to one of claims 1 to 3.
CN201910565822.7A 2019-06-26 2019-06-26 Applet issuing method, device, equipment and computer storage medium Active CN110308917B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910565822.7A CN110308917B (en) 2019-06-26 2019-06-26 Applet issuing method, device, equipment and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910565822.7A CN110308917B (en) 2019-06-26 2019-06-26 Applet issuing method, device, equipment and computer storage medium

Publications (2)

Publication Number Publication Date
CN110308917A CN110308917A (en) 2019-10-08
CN110308917B true CN110308917B (en) 2024-02-23

Family

ID=68077529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910565822.7A Active CN110308917B (en) 2019-06-26 2019-06-26 Applet issuing method, device, equipment and computer storage medium

Country Status (1)

Country Link
CN (1) CN110308917B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806870B (en) * 2019-10-09 2023-07-18 北京字节跳动网络技术有限公司 Shortcut application implementation method and device, electronic equipment, server and storage medium
CN111752587A (en) * 2020-06-28 2020-10-09 北京百度网讯科技有限公司 Batch processing method and device of small programs, electronic equipment and readable storage medium
CN112035161B (en) * 2020-08-31 2023-05-12 上海识装信息科技有限公司 Applet release verification method and parallel release method
CN112328235A (en) * 2020-11-06 2021-02-05 广州朗国电子科技有限公司 Method for quickly customizing software application interactive logic
CN112579092B (en) * 2020-12-07 2022-04-08 广东亿润网络技术有限公司 Multifunctional small program multi-end updating and publishing system
CN112631654A (en) * 2020-12-28 2021-04-09 厦门市美亚柏科信息股份有限公司 Program linkage method and system based on evidence obtaining platform
CN113553095A (en) * 2021-07-16 2021-10-26 北京奇艺世纪科技有限公司 Method and device for issuing small program, electronic device and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481635A (en) * 2000-10-26 2004-03-10 普里斯梅迪亚网络有限公司 Method and appts. for large payload distribution in network
CN102282804A (en) * 2008-11-24 2011-12-14 瞻博网络公司 adaptive network content delivery system
CN105324779A (en) * 2013-04-15 2016-02-10 亚马逊技术有限公司 Host recovery using a secure store
CN105493099A (en) * 2013-07-01 2016-04-13 亚马逊技术有限公司 Cryptographically attested resources for hosting virtual machines
CN107038085A (en) * 2016-02-03 2017-08-11 阿里巴巴集团控股有限公司 A kind of restorative procedure of client application, apparatus and system
CN108319483A (en) * 2018-01-30 2018-07-24 腾讯科技(深圳)有限公司 Web page processing method, device, terminal and storage medium
CN109299709A (en) * 2018-12-04 2019-02-01 中山大学 Data recommendation method, device, server end and client based on recognition of face
CN109313655A (en) * 2016-06-11 2019-02-05 苹果公司 Configure the user interface specific to context
CN109460279A (en) * 2018-12-14 2019-03-12 平安城市建设科技(深圳)有限公司 Forms pages development approach, device, equipment and storage medium based on small routine

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8356074B1 (en) * 2012-08-09 2013-01-15 Limelight Networks, Inc. Inter point of presence split architecture
US10042626B2 (en) * 2015-06-29 2018-08-07 Verizon Patent And Licensing Inc. Software updates using client self-reporting and a hierarchical data structure

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1481635A (en) * 2000-10-26 2004-03-10 普里斯梅迪亚网络有限公司 Method and appts. for large payload distribution in network
CN102282804A (en) * 2008-11-24 2011-12-14 瞻博网络公司 adaptive network content delivery system
CN105324779A (en) * 2013-04-15 2016-02-10 亚马逊技术有限公司 Host recovery using a secure store
CN105493099A (en) * 2013-07-01 2016-04-13 亚马逊技术有限公司 Cryptographically attested resources for hosting virtual machines
CN107038085A (en) * 2016-02-03 2017-08-11 阿里巴巴集团控股有限公司 A kind of restorative procedure of client application, apparatus and system
CN109313655A (en) * 2016-06-11 2019-02-05 苹果公司 Configure the user interface specific to context
CN108319483A (en) * 2018-01-30 2018-07-24 腾讯科技(深圳)有限公司 Web page processing method, device, terminal and storage medium
CN109299709A (en) * 2018-12-04 2019-02-01 中山大学 Data recommendation method, device, server end and client based on recognition of face
CN109460279A (en) * 2018-12-14 2019-03-12 平安城市建设科技(深圳)有限公司 Forms pages development approach, device, equipment and storage medium based on small routine

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
Distributed Caching Algorithms for Content Distribution Networks;S. Borst 等;《2010 Proceedings IEEE INFOCOM》;132-138 *
微信小程序在图书馆移动服务中的应用实践——以排架游戏为例;朱玉强 等;《图书馆论坛》;第37卷(第07期);132-138 *

Also Published As

Publication number Publication date
CN110308917A (en) 2019-10-08

Similar Documents

Publication Publication Date Title
CN110308917B (en) Applet issuing method, device, equipment and computer storage medium
US11799984B2 (en) Installable web applications
US10909064B2 (en) Application architecture supporting multiple services and caching
EP3296862B1 (en) Version control machine
EP2122561B1 (en) Web data usage platform
KR101643022B1 (en) Catalog-based software component management
US7934191B2 (en) Method and modules for generating client-server applications
US11593102B1 (en) Managing sharable cell-based analytical notebooks
US20070143393A1 (en) Systems and methods for enhanced message support using a generic client proxy
US20110191453A1 (en) Applicability detection using third party target state
US10210172B1 (en) File system integration and synchronization between client and server
CN109739815A (en) Document handling method, system, device, equipment and storage medium
US11811851B2 (en) Method and system for enforcing governance across multiple content repositories using a content broker
US20200097266A1 (en) Saving a snippet of visual programming logic for reuse amongst programs created using an automation building tool
US20200175172A1 (en) Orchestration of vulnerability scanning and issue tracking for version control technology
CN116595047A (en) Rights management method, rights management device, electronic device and computer-readable storage medium
US20110055816A1 (en) Method to derive software use and software data object use characteristics by analyzing attributes of related files
US20240111601A1 (en) Enhanced migration of objects among computing environments
CN111078211A (en) Method, device, equipment and storage medium for creating data processing tool
CN114896493A (en) Group creation method, apparatus, electronic device, storage medium, and computer program product
JP4628551B2 (en) Dynamic installation method and computer system
CN112764735A (en) Visual component access method, system, electronic device and storage medium

Legal Events

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