CN110308917A - Small routine dissemination method, device, equipment and computer storage medium - Google Patents

Small routine dissemination method, device, equipment and computer storage medium Download PDF

Info

Publication number
CN110308917A
CN110308917A CN201910565822.7A CN201910565822A CN110308917A CN 110308917 A CN110308917 A CN 110308917A CN 201910565822 A CN201910565822 A CN 201910565822A CN 110308917 A CN110308917 A CN 110308917A
Authority
CN
China
Prior art keywords
small routine
data
version
content
task
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.)
Granted
Application number
CN201910565822.7A
Other languages
Chinese (zh)
Other versions
CN110308917B (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

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Stored Programmes (AREA)

Abstract

The present invention relates to financial technology (Fintech) technical fields, and disclose a kind of small routine dissemination method, this method comprises: when detecting small routine to be updated, obtain preset task events in the small routine, and data update is carried out to the content-data in the small routine based on the task events, to obtain small routine experience version;When receiving the instruction for previewing based on small routine experience version, show the corresponding preview screen of the small routine experience version, and first environment parameter is obtained in the preview screen, the content-data for determining the need for experiencing the small routine version based on the first environment parameter is modified;If it is not, then task events are transmitted in the formal version of small routine.The invention also discloses a kind of small routine distributing device, equipment and a kind of computer storage mediums.The present invention improves the portability of small routine content publication process.

Description

Small routine dissemination method, device, equipment and computer storage medium
Technical field
The present invention relates to financial technology (Fintech) technical field more particularly to small routine dissemination method, device, equipment And computer storage medium.
Background technique
With the development of computer technology, more and more technology (big data, distribution, block chain Blockchain, people Work intelligence etc.) it applies in financial field, traditional financial industry gradually changes to financial technology (Fintech), but due to finance The safety of industry, requirement of real-time, also to technology, more stringent requirements are proposed.In current financial technology field, have various Contents of program updates the technology of publication, for example, the update to small routine content, currently, a Content Management Platform is had, to small Contents of program is editted and updated, and when operator, which clicks, to issue, these more new contents can be accessed by small routine.But It is, since the purpose of publication is to be updated to the content of target area, and data type is diversified, each systems technology Scheme realize be also it is diversified, general publication operation and content to be released coupling are serious, when data type changes, issue process It is frequently necessary to be adjusted, the portability so as to cause not homologous ray publication process is very poor.Therefore, how to improve in small routine The portability for holding publication process becomes a technical problem to be solved urgently.
Summary of the invention
It is a primary object of the present invention to propose a kind of small routine dissemination method, device, equipment and computer storage medium, It is intended to improve the portability to small routine content publication process.
To achieve the above object, the present invention provides a kind of small routine dissemination method, and the small routine dissemination method includes such as Lower step:
When detecting small routine to be updated, preset task events in the small routine are obtained, and appoint based on described Business event carries out data update to the content-data in the small routine, to obtain small routine experience version;
When receiving the instruction for previewing based on small routine experience version, show that the small routine experience version is corresponding pre- It lookes at picture, and obtains first environment parameter in the preview screen, determined the need for pair based on the first environment parameter Task events are modified;
If it is not, then the task events are transmitted in the formal version of small routine corresponding with small routine experience version.
Optionally, described to obtain preset task events in the small routine, and based on the task events to described interior Hold the step of data carry out data update, comprising:
The content distributing network CDN content in the small routine and preset data processing task are obtained, and is determined whether The CDN content is updated;
If so, being updated according to the data type of the content-data to the CDN content, to obtain CDN publication Task, and using the data processing task and the CDN release tasks as preset task events to the content-data into Row data update.
Optionally, described the step of showing small routine experience version corresponding preview screen, comprising:
It detects with the presence or absence of iterative task in the task events, iterative task, then delete the task events if it exists In iterative task, to obtain new task event, and show that the small routine experience version is corresponding based on the new task event Preview screen.
Optionally, the step that the corresponding preview screen of the small routine experience version is shown based on the new task event Suddenly, comprising:
The operational order of input is obtained, and determines whether the operational order is more new command;
If the operational order is more new command, the corresponding resource data table of the new task event is obtained, and according to The resource data table shows the corresponding preview screen of the small routine experience version.
Optionally, the resource data table includes preview table, described to obtain the corresponding resource data of the new task event The step of table, comprising:
The data processing task in the new task event is obtained, and is appointed based on the data processing in the new task event Business obtains the dynamic data synchronization in the small routine to the corresponding preview table of new task event with the dynamic data Preview table;
Optionally, the resource data table includes CDN content storage catalogue, and the acquisition new task event is corresponding The step of resource data table, comprising:
The CDN release tasks in the new task event are obtained, and based on the CDN release tasks in the new task event Static resource in the small routine is uploaded to the CDN content storage catalogue, and obtains the CDN with the static resource Content storage catalogue.
Optionally, described that the task events are transmitted in the formal version of small routine corresponding with small routine experience version The step of, comprising:
The task events are transmitted in the formal version of small routine corresponding with small routine experience version, and described in detection Whether the action type that the formal version of small routine receives is update, if the action type is to update, by the resource data Dynamic data and static resource in table are transferred to the resource data table in the formal version of the small routine, wherein the small routine Formal version detects the production table according to the second environment parameter in the formal version of the small routine, if detection is qualified, Content-data in the formal version of small routine is without modification.
In addition, to achieve the above object, the present invention also provides a kind of small routine distributing device, the small routine distributing device Include:
Module is obtained, for when detecting small routine to be updated, obtaining preset task events in the small routine, And data update is carried out to the content-data in the small routine based on the task events, to obtain small routine experience version;
Determining module, for showing the small routine when receiving the instruction for previewing based on small routine experience version The corresponding preview screen of version is experienced, and obtains first environment parameter in the preview screen, is based on the first environment parameter The content-data for determining the need for experiencing the small routine version is modified;
Transfer module, for if it is not, the task events are then transmitted to little Cheng corresponding with small routine experience version In the formal version of sequence.
In addition, to achieve the above object, the present invention also provides a kind of small routine distribution apparatus, the small routine distribution apparatus Include: memory, processor and be stored in the small routine release process that can be run on the memory and on the processor, The step of small routine release process realizes small routine dissemination method as described above when being executed by the processor.
In addition, to achieve the above object, the present invention also provides a kind of computer storage medium, the computer storage medium On be stored with small routine release process, the small routine release process realizes small routine hair as described above when being executed by processor The step of cloth method.
The present invention by when detecting small routine to be updated, obtaining preset task events in the small routine, and Data update is carried out to the content-data in the small routine based on the task events, to obtain small routine experience version;When connecing When receiving the instruction for previewing based on small routine experience version, the corresponding preview screen of small routine experience version is shown, and First environment parameter is obtained in the preview screen, is determined the need for based on the first environment parameter to the small routine body The content-data for testing version is modified;If it is not, then the task events are transmitted to corresponding small with small routine experience version In the formal version of program.It is drawn by after being updated to the content-data in small routine to be updated, obtaining updated preview Face, so as to timely know whether the content-data modified meets preset requirement, avoid in the prior art due to Lack preview mechanism, when carrying out data update, newly-increased data content may will affect the typesetting exhibition of some page of small routine The phenomenon that showing and cannot finding in time, and after new content meets the requirements, it retransmits to the formal version of small routine, thus The accuracy of small routine publication is further increased, and the modification of content is issued to small routine and content is issued to small routine Publication be to be carried out in different positions, therefore also avoid issuing operation in the prior art and content to be released coupling is tight Weight, when data type changes, publication requirements of process the phenomenon that often adjusting, improve small routine content publication process can Transplantability.
Detailed description of the invention
Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of small routine dissemination method first embodiment of the present invention;
Fig. 3 is the apparatus module schematic diagram of small routine distributing device of the present invention;
Fig. 4 is the flow diagram that small contents of program updates in small routine dissemination method of the present invention;
Fig. 5 is the flow diagram that preview is issued in small routine dissemination method of the present invention;
Fig. 6 is the flow diagram that production is issued in small routine dissemination method of the present invention;
Fig. 7 is the time diagram of publishing policy in small routine dissemination method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
As shown in Figure 1, Fig. 1 is the device structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
Small routine distribution apparatus of the embodiment of the present invention can be PC machine or server apparatus, and operation has Java virtual thereon Machine.
As shown in Figure 1, the small routine distribution apparatus may include: processor 1001, such as CPU, network interface 1004 is used Family interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing the company between these components Connect letter.User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), can be selected Family interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include standard Wireline interface, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable deposit Reservoir (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned place Manage the storage device of device 1001.
It will be understood by those skilled in the art that device structure shown in Fig. 1 does not constitute the restriction to equipment, can wrap It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium Believe module, Subscriber Interface Module SIM and small routine release process.
In equipment shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server Data communication;User interface 1003 is mainly used for connecting client (user terminal), carries out data communication with client;And processor 1001 can be used for calling the small routine release process stored in memory 1005, and execute in following small routine dissemination methods Operation.
Based on above-mentioned hardware configuration, small routine dissemination method embodiment of the present invention is proposed.
It is the flow diagram of small routine dissemination method first embodiment of the present invention referring to Fig. 2, Fig. 2, which comprises
Step S10 obtains preset task events in the small routine, and base when detecting small routine to be updated Data update is carried out to the content-data in the small routine in the task events, to obtain small routine experience version;
In the present embodiment, small routine can be one kind and not need the i.e. workable application of downloading installation, it, which is realized, answers With dream within reach, user sweeps or searches i.e. openable application.It include to issue process and data in small routine, (wherein, data content decoupling is the good general task events of planning in advance, updates small routine in operator for data content decoupling When content, according to task events in small routine static resource and dynamic data be updated, realize data decoupler.), and send out Cloth process, which is operator, carries out content update to small routine by task events, and completes in content update, and check it is errorless after, Task events are issued.A customized data structure " task events " in the small routine, to describe action type, data Type, source data information (affiliated table, data major key, file address etc.), target data information (address of service, purpose tables of data, File address etc.) etc. information, the publications operation that universal description is various to be related to, file upload, file is deleted, data are synchronous, data Deletion, file duplication etc..The data type that needs are issued, it is asynchronous to be sequentially recorded in number as this sequence of tasks event According in library, background system obtains these task events when triggering is issued, and identification executes.Task events are that system identification executes, It is a kind of abstract pending task in operator's operation data backstage.
When detecting that operator enters internal control platform and edits to corresponding small routine content, that is, detect When carrying out data update to the content-data in small routine database to be updated, need first to obtain preset task in small routine Event, determines the data type of content-data further according to task events, data attribute, operation movement (increase newly, delete, repairing Change) etc. come determine in small routine content-data carry out data update, and obtain carry out the updated small routine of data, by it Version is experienced as small routine.In order to assist understanding the understanding that operator carries out small routine content update, carry out illustrating below It is bright.
For example, as shown in figure 4, contents of program is by being stored in the data of database and being stored in CDN (Content Delivery Network, content distributing network) static resource composition, operator update small routine content when, that is, carry out Data update, and when updating DB (database), (action type of data processing task is for deletion or more for addition data processing task Newly, task status is the affiliated table table, data major key, the information such as target table to issue in advance), and determine the need for more New CDN (Content Delivery Network, content distributing network) content.If needing to update in CDN by judgement discovery Hold, then according to the data type of content-data, adding CDN release tasks, (action type of CDN release tasks is to upload or delete It removes, task status is the CDN service address to issue in advance, target file address, affiliated table, data major key, source file address Etc. information).
Step S20 shows the small routine experience version when receiving the instruction for previewing based on small routine experience version Corresponding preview screen, and first environment parameter is obtained in the preview screen, it is based on the first environment parameter determination It is no that the content-data to small routine experience version is needed to modify;
First environment parameter can be the environmental parameter that small routine is arrived by api interface request.Instruction for previewing can be with It is the instruction for showing small routine experience version content data of user's input.The pre- of operator's input is received in small routine experience version It lookes at instruction, and the preview screen of the content-data of version will be experienced according to instruction for previewing with small routine, so that operator is according to pre- Picture of looking at is checked.Increase header (header) parameter evn=pre by api interface request in preview screen, i.e., One environmental parameter, and detected by the content-data that first environment parameter experiences version to small routine, determine whether to need with this The content-data to experience version to small routine is modified.If the content-data for not needing to experience small routine version is modified, Task events can be then transmitted in the formal version of small routine, if desired be modified to the content-data of small routine experience version, It then modifies to the content-data of small routine experience version, and after the completion of modification, is examined again by first environment parameter It surveys, until small routine experience version content data are without modifying.After assisting understanding that operator clicks publication preview, little Cheng The process of sequence management backstage operation, is exemplified below.
For example, as described in Figure 5, task events include data processing task and CDN release tasks, when operator is in small routine In internal control platform click publication preview after, obtain to pre-release data processing task, and filter iterative task, determine The action type of operator's input, when action type is to update, data are synchronized to pre+ { table } table from { table }, then more New task state is production status to be released;When action type is to delete, pre+ { table } table data are deleted, and more newly appointed Business state is production to be released.At the same time, it is also necessary to obtain the pre- release tasks of CDN, and filter iterative task, it is determined whether is right Content is deleted or is updated, if being updated to the content in small routine, obtains multimedia file according to mission bit stream, Data json file, and upload files to CDN and issue in catalogue in advance, then updating release tasks state is production to be released.If right Content is deleted, then deletes the pre- release tasks respective file of CDN, and updating release tasks state is production to be released.
Step S30, if it is not, it is formal that the task events are then transmitted to small routine corresponding with small routine experience version In version.
Further, the formal version of the small routine determines whether according to the second environment parameter in the formal version of the small routine Modify to the content-data in the formal version of the small routine, if so, output to the content-data in the small routine into The prompt information of row modification.
It should be noted that in the present embodiment, small routine to be updated is in small routine experience version, and operator is in little Cheng Sequence is experienced in version and carries out data update to small routine to be updated, after updating completion and passed examination, can send task events It into the formal version of small routine, is detected by administrator, if qualified, task events is issued, if unqualified, exported Notification information allows operator to modify small routine content again.Namely in small routine experience version in small routine Hold data and carry out data update, the data content for having produced publication is detected in the formal version of small routine.
For example, as shown in fig. 6, task events include that data processing is appointed in the Content Management Platform of bank and other financial mechanism Business and CDN release tasks obtain to be released after user (such as administrator), which clicks in the formal version of small routine, clicks production publication The data processing task of production, and iterative task is filtered, determine the action type of task, when action type is to update, data It is synchronized to pro+ { table } table from pre+ { table }, and updating task record state is DONE (finishing), when action type is When deletion, pro+ { table } table data are deleted, and updating task record state is DONE.At the same time, it is also necessary to obtain CDN Production task is issued, and filters repetition record, it is determined whether the content in small routine is deleted or updated, if to content It is updated, then notifies CDN service that file is copied to pro catalogue from pre catalogue, and updating task status is DONE.If right Content is deleted, then CDN service is notified to delete respective file corresponding with content, and updating task status is DONE.
It should also be noted that, static resource and dynamic number can be divided into the content of small routine access in the present embodiment According to.Static resource (multimedia file, content json file etc.) is stored in CDN service, there is two access catalogues of pre, pro, Small routine experiences the data of version access in pre catalogue, produces small routine and accesses pro catalogue data.(content changes frequency to dynamic data It is numerous, be not suitable for the data for generating file content) store in the database, the data information memory of preservation is operated in table { table Name }, carrying out publication preview is that data are stored in preview table pre_ { table Name }, and data are stored in production when publication produces Table pro { table Name }, small routine increase header parameter evn={ pre/pro } by api interface and access different data table Content.
The principle that assistant's solution issues small routine content supplemented by addition, is exemplified below.
For example, as shown in fig. 7, user, management console service, small routine, CND service, small routine backstage, DB (database), User's progress small routine, which is issued, needs to carry out three steps, step 1, content of edit, and user is updated/deleted by management console service Except content, and more new content, newly-increased task is returned the result to DB, DB allows user to check.And entering step 2, user clicks After issuing preview, data task to be synchronized is obtained in DB, and synchrodata is to preview table.CDN to be released is obtained in DB to appoint Business, and file is carried out by CDN service according to CDN task to be released and uploads pre catalogue or deletion file, access small routine body Version is tested, and loads pre directory content to database in static resource, then is requested by the api interface of small routine, i.e. header The data in environmental parameter env=pre operation preview table are taken, i.e., the data in preview table are checked, if qualified, into Enter step 3.Publication production is carried out, obtains pending data synchronous task, and the data in synchronous preview table are gone back simultaneously to production table It needs to obtain CDN task to be released in DB, and is serviced according to CDN task to be released by CND and carry out file duplication or delete Except file.The formal version of small routine is accessed, and loads the content file in the path pro in static resource, then is formal by small routine Api interface request i.e. header in version takes the data in environmental parameter env=pro access production table, i.e., in production table Data checked that, if qualified, there is no problem for the data for confirming in production table.Realize the little Cheng of bank and other financial mechanism Sequence issuing process, accuracy and portability are higher, to ensure that the just normally opened of business (deposit business, loan transaction etc.) Exhibition.
In the present embodiment, by when detecting small routine to be updated, obtaining preset task in the small routine Event, and data update is carried out to the content-data in the small routine based on the task events, to obtain small routine experience Version;When receiving the preset instructions based on small routine experience version, show that the corresponding preview of the small routine experience version is drawn Face, and first environment parameter is obtained in the preview screen, it is determined the need for based on the first environment parameter to described The content-data of small routine experience version is modified;Version is experienced with the small routine if it is not, being then transmitted to the task events In the corresponding formal version of small routine.By obtaining after updating after being updated to the content-data in small routine to be updated Preview screen avoid existing skill so as to timely know whether the content-data modified meets preset requirement Due to lacking preview mechanism in art, when carrying out data update, newly-increased data content may will affect some page of small routine Typesetting show the phenomenon that cannot find in time, and after new content meets the requirements, retransmit to small routine just Formula version, thus further increase small routine publication accuracy, and to small routine publication content modification and to little Cheng The publication of sequence publication content be is carried out in different positions, therefore also avoid issuing in the prior art operation with it is to be released interior It is serious to hold coupling, when data type changes, issues the phenomenon that requirements of process often adjusts, improves the publication of small routine content The portability of process.
Further, it is based on small routine dissemination method first embodiment of the present invention, proposes small routine dissemination method of the present invention Second embodiment.The present embodiment is the step S10 of first embodiment of the invention, obtains preset task thing in the small routine Part, and the refinement for the step of data update is carried out to the content-data based on the task events, comprising:
Step a obtains the content distributing network CDN content in the small routine and preset data processing task, and really It is fixed whether the CDN content to be updated;
CDN is that the content distributing network constructed on network by the Edge Server for being deployed in various regions passes through center The functional modules such as load balancing, content distribution, the scheduling of platform, content needed for obtaining user nearby reduce network congestion, mention High user reponding time and hit rate.Preset data processing task and CDN content in small routine are obtained, and is determined the need for CDN content is updated, different operations is executed based on definitive result.
Step b, if so, being updated according to the data type of the content-data to the CDN content, to obtain CDN release tasks, and using the data processing task and the CDN release tasks as preset task events to the content Data carry out data update.
When needing to be updated CDN content by judgement discovery, then the data type of content-data is obtained, further according to Data type adds CDN release tasks, i.e., is updated to CDN content, obtains CDN release tasks, at this time can be by number Data update is carried out to content-data as preset task events according to processing task and CDN release tasks.But when by sentencing It is disconnected when finding no need for being updated CDN content, then it can be directly using data processing task as task events to content number According to being updated.
In the present embodiment, by determining whether to be updated CDN content, and CDN content is updated in determination When, using CDN release tasks and data processing task as preset task events, to ensure the task events got Accuracy.
Further, it based on the basis of any one embodiment of small routine dissemination method the first to the second of the present invention, mentions Small routine dissemination method 3rd embodiment of the present invention out.The present embodiment is the step S20 of first embodiment of the invention, described in displaying Small routine experiences the refinement of the step of version corresponding preview screen.
Step c is detected with the presence or absence of iterative task in the task events, and iterative task, then delete described appoint if it exists Iterative task in business event to obtain new task event, and shows that the small routine experiences version based on the new task event Corresponding preview screen.
Appoint in the pre- release tasks of data processing task and CDN to be released in Detection task event with the presence or absence of repetition Business, iterative task, then need to delete the iterative task in task events if it exists, exists even in data processing task and repeats to appoint Business, then delete the iterative task in data processing task, if there are iterative tasks in the pre- release tasks of CDN, delete CDN and send out in advance Iterative task in cloth task, and using the task events after deletion iterative task as new task event, further according to new task thing Part experiences the preview screen of version content data to show with small routine.
In the present embodiment, by whether there is iterative task, if it exists when iterative task, counterweight in Detection task event Multiple task is deleted, to ensure the accuracy of the task events got.
Specifically, the step of preview screen corresponding based on the new task event displaying small routine experience version, packet It includes:
Step c1 obtains the operational order of input, and determines whether the operational order is more new command;
The operational order for obtaining input (can be the operational order of user's input, be also possible to other terminals and pass over Operational order), and determine whether operational order is more new command, and different operations is executed based on different operational orders.
Step c2 obtains the corresponding resource data table of the new task event if the operational order is more new command, And the corresponding preview screen of the small routine experience version is shown according to the resource data table.
When being more new command by judgement discovery operational order, then need the content-data in small routine being synchronized to resource In tables of data, and the data in resource data table are called, is shown according to the data in resource data table corresponding with the data Preview screen.It should be noted that operational order can also be deletion instruction, instruction and modification instruction etc. are increased newly, and can basis The different type of operational order executes different operations.Resource data table may include preview table and database table, in preview table The dynamic data of small routine is placed, database table places the static resource of small routine.
It in the present embodiment, by judging whether the operational order got is more new command, and is more in operational order When new command, the corresponding preview screen of small routine experience version is shown according to resource data table, to ensure that user can be in time It checks and the updated effect of data is carried out to content-data.
Further, the step of obtaining the new task event corresponding resource data table, comprising:
Step d obtains the data processing task in the new task event, and based on the data in the new task event Processing task obtains the dynamic data synchronization in the small routine to the corresponding preview table of new task event with described dynamic The preview table of state data.
It should be noted that in the present embodiment, resource data table includes preview table.Obtain the data in new task event Processing task, and when the operational order received is more new command, by the dynamic data synchronization in small routine database to newly In the corresponding preview table of task events, and obtain the preview table with dynamic data.It should be noted that when operational order is to delete When except instruction, then it will be deleted the data in preview table.Wherein, dynamic data can be content and change frequently, be not suitable for generating text The data of part content.
In the present embodiment, by the way that dynamic data to be uploaded in preview table, so as to ensure data in preview table Integrality can allow user more intuitively to know and need to detect which data.
Further, the step of obtaining the new task event corresponding resource data table, comprising:
Step e obtains the CDN release tasks in the new task event, and based on the CDN hair in the new task event Static resource in the small routine is uploaded to the CDN content storage catalogue by cloth task, and obtaining, there is the static state to provide The CDN content storage catalogue in source.
It should be noted that in the present embodiment, resource data table includes CDN content storage catalogue.
The CDN release tasks in new task event are obtained, and when the operational order received is more new command, by little Cheng Static resource in sequence database is uploaded in CDN content storage catalogue.Wherein, static resource can be multimedia file, interior Hold json file etc..After determining that resource data table has obtained static resource and dynamic data, obtained, it is quiet to have The resource data table of state resource and dynamic data, which is placed in preview screen, to be shown.
In the present embodiment, by the way that static resource to be uploaded in CDN content storage catalogue, so as to ensure preview table The integrality of middle data can allow user more intuitively to know and need to detect which data.
Specifically, the step task events being transmitted in the formal version of small routine corresponding with small routine experience version Suddenly, comprising:
The task events are transmitted in the formal version of small routine corresponding with small routine experience version, and examine by step f Survey whether the action type that the formal version of the small routine receives is update, if the action type is to update, by the money Dynamic data and static resource in source data table are transferred to the resource data table in the formal version of the small routine, wherein described The formal version of small routine detects the production table according to the second environment parameter in the formal version of the small routine, if detection is closed Lattice, then the content-data in the formal version of the small routine is without modification.
When being transferred to task events in the formal version of small routine corresponding with small routine experience version, small routine can detected just The action type that formula version receives, and when action type is to update, the resource data table that will acquire is also transmitted to small routine In resource data table in formal version, i.e., by preview table dynamic data and static resource be transferred to the formal version of small routine In, and the formal version of small routine can according to the second environment parameter received in the formal version of small routine to the data in production table into Row detection, it is determined whether there are the underproof data of detection, detect underproof data if it does not exist, then can notify experience version Without modifying to the content-data in small routine.But when action type is to delete, then it will be deleted the number in production table According to, and CDN service is notified to delete respective file.
In the present embodiment, by being transferred to the formal version of small routine in task events, and action type is then will when updating Dynamic data and static resource in preview table are transferred to production table, to ensure the accurate of the data that production table is got Property.
The present invention also provides a kind of small routine distributing devices, and referring to Fig. 3, the small routine distributing device includes:
Module is obtained, for when detecting small routine to be updated, obtaining preset task events in the small routine, And data update is carried out to the content-data in the small routine based on the task events, to obtain small routine experience version;
Determining module, for showing the small routine when receiving the instruction for previewing based on small routine experience version The corresponding preview screen of version is experienced, and obtains first environment parameter in the preview screen, is based on the first environment parameter The content-data for determining the need for experiencing the small routine version is modified;
Transfer module, for if it is not, the task events are then transmitted to little Cheng corresponding with small routine experience version In the formal version of sequence.
Optionally, the acquisition module, is also used to:
The content distributing network CDN content in the small routine and preset data processing task are obtained, and is determined whether The CDN content is updated;
If so, being updated according to the data type of the content-data to the CDN content, to obtain CDN publication Task, and using the data processing task and the CDN release tasks as preset task events to the content-data into Row data update.
Optionally, the determining module, is also used to:
It detects with the presence or absence of iterative task in the task events, iterative task, then delete the task events if it exists In iterative task, to obtain new task event, and show that the small routine experience version is corresponding based on the new task event Preview screen.
Optionally, the determining module, is also used to:
The operational order of input is obtained, and determines whether the operational order is more new command;
If the operational order is more new command, the corresponding resource data table of the new task event is obtained, and according to The resource data table shows the corresponding preview screen of the small routine experience version.
Optionally, the resource data table includes preview table, and the determining module is also used to:
The data processing task in the new task event is obtained, and is appointed based on the data processing in the new task event Business obtains the dynamic data synchronization in the small routine to the corresponding preview table of new task event with the dynamic data Preview table.
Optionally, the resource data table includes CDN content storage catalogue, and the determining module is also used to:
The CDN release tasks in the new task event are obtained, and based on the CDN release tasks in the new task event Static resource in the small routine is uploaded to the CDN content storage catalogue, and obtains the CDN with the static resource Content storage catalogue.
Optionally, the determining module, is also used to:
The task events are transmitted in the formal version of small routine corresponding with small routine experience version, and described in detection Whether the action type that the formal version of small routine receives is update, if the action type is to update, by the resource data Dynamic data and static resource in table are transferred to the resource data table in the formal version of the small routine, wherein the small routine Formal version detects the production table according to the second environment parameter in the formal version of the small routine, if detection is qualified, Content-data in the formal version of small routine is without modification.
Method performed by above-mentioned each program module can refer to each embodiment of small routine dissemination method of the present invention, herein not It repeats again.
The present invention also provides a kind of computer storage mediums.
Small routine release process is stored in computer storage medium of the present invention, the small routine release process is by processor The step of small routine dissemination method as described above is realized when execution.
Wherein, the small routine release process run on the processor, which is performed realized method, can refer to this hair The bright each embodiment of small routine dissemination method, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of small routine dissemination method, which is characterized in that the small routine dissemination method includes the following steps:
When detecting small routine to be updated, preset task events in the small routine are obtained, and be based on the task thing Part carries out data update to the content-data in the small routine, to obtain small routine experience version;
When receiving the instruction for previewing based on small routine experience version, show that the corresponding preview of the small routine experience version is drawn Face, and first environment parameter is obtained in the preview screen, it is determined the need for based on the first environment parameter to described The content-data of small routine experience version is modified;
If it is not, then the task events are transmitted in the formal version of small routine corresponding with small routine experience version.
2. small routine dissemination method as described in claim 1, which is characterized in that described to obtain in the small routine preset Business event, and the step of data update is carried out to the content-data based on the task events, comprising:
The content distributing network CDN content in the small routine and preset data processing task are obtained, and is determined whether to institute CDN content is stated to be updated;
If so, the CDN content is updated according to the data type of the content-data, to obtain CDN release tasks, And data are carried out to the content-data using the data processing task and the CDN release tasks as preset task events It updates.
3. small routine dissemination method as claimed in claim 1 or 2, which is characterized in that described to show that the small routine experiences version The step of corresponding preview screen, comprising:
It detects with the presence or absence of iterative task in the task events, iterative task, then delete in the task events if it exists Iterative task to obtain new task event, and shows the corresponding preview of the small routine experience version based on the new task event Picture.
4. small routine dissemination method as claimed in claim 3, which is characterized in that described to show institute based on the new task event The step of stating small routine experience version corresponding preview screen, comprising:
The operational order of input is obtained, and determines whether the operational order is more new command;
If the operational order is more new command, the corresponding resource data table of the new task event is obtained, and according to described Resource data table shows the corresponding preview screen of the small routine experience version.
5. small routine dissemination method as claimed in claim 4, which is characterized in that the resource data table includes preview table, institute State the step of obtaining the new task event corresponding resource data table, comprising:
The data processing task in the new task event is obtained, and will based on the data processing task in the new task event Dynamic data synchronization in the small routine is obtained pre- with the dynamic data to the corresponding preview table of new task event Look at table.
6. small routine dissemination method as claimed in claim 4, which is characterized in that the resource data table includes that CDN content is deposited Store up catalogue, described the step of obtaining the new task event corresponding resource data table, comprising:
Obtain the CDN release tasks in the new task event, and based on the CDN release tasks in the new task event by institute It states the static resource in small routine and is uploaded to the CDN content storage catalogue, and obtain the CDN content with the static resource Storage catalogue.
7. small routine dissemination method as claimed in claim 4, which is characterized in that described to be transmitted to the task events and institute State the step in the corresponding formal version of small routine of small routine experience version, comprising:
The task events are transmitted in the formal version of small routine corresponding with small routine experience version, and detect the little Cheng Whether the action type that the formal version of sequence receives is update, will be in the resource data table if the action type is to update Dynamic data and static resource be transferred to the resource data table in the formal version of the small routine, wherein the small routine is formal Version detects the production table according to the second environment parameter in the formal version of the small routine, described if detection is qualified Content-data in the formal version of small routine is without modification.
8. a kind of small routine distributing device, which is characterized in that the small routine distributing device includes:
Module is obtained, for when detecting small routine to be updated, obtaining preset task events in the small routine, and base Data update is carried out to the content-data in the small routine in the task events, to obtain small routine experience version;
Determining module, for showing the small routine experience when receiving the instruction for previewing based on small routine experience version The corresponding preview screen of version, and first environment parameter is obtained in the preview screen, it is determined based on the first environment parameter The content-data for experiencing version to the small routine whether is needed to modify;
Transfer module, for if it is not, the task events are then being transmitted to small routine corresponding with small routine experience version just In formula version.
9. a kind of small routine distribution apparatus, which is characterized in that the small routine distribution apparatus includes: memory, processor and deposits The small routine release process that can be run on the memory and on the processor is stored up, the small routine release process is by institute State the step of realizing the small routine dissemination method as described in any one of claims 1 to 7 when processor executes.
10. a kind of computer storage medium, which is characterized in that be stored with small routine publication journey in the computer storage medium Sequence realizes the small routine publication as described in any one of claims 1 to 7 when the small routine release process is executed by processor The step of method.
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 true CN110308917A (en) 2019-10-08
CN110308917B 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)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806870A (en) * 2019-10-09 2020-02-18 北京字节跳动网络技术有限公司 Shortcut application implementation method and device, electronic equipment, server and storage medium
CN112035161A (en) * 2020-08-31 2020-12-04 上海识装信息科技有限公司 Method for verifying small program release and method for parallel release
CN112328235A (en) * 2020-11-06 2021-02-05 广州朗国电子科技有限公司 Method for quickly customizing software application interactive logic
CN112579092A (en) * 2020-12-07 2021-03-30 广东亿润网络技术有限公司 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
WO2022000869A1 (en) * 2020-06-28 2022-01-06 北京百度网讯科技有限公司 Batch processing method and apparatus for mini programs, and electronic device and readable storage medium
US12014170B2 (en) 2020-06-28 2024-06-18 Beijing Baidu Netcom Science And Technology Co., Ltd. Mini program batch processing method and apparatus, electronic device, and readable storage medium

Citations (11)

* 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
US20140047061A1 (en) * 2012-08-09 2014-02-13 Limelight Networks, Inc. Inter point of presence split architecture
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
US20160378454A1 (en) * 2015-06-29 2016-12-29 Verizon Patent And Licensing Inc. Software updates using client self-reporting and a hierarchical data structure
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

Patent Citations (11)

* 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
US20140047061A1 (en) * 2012-08-09 2014-02-13 Limelight Networks, Inc. Inter point of presence split architecture
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
US20160378454A1 (en) * 2015-06-29 2016-12-29 Verizon Patent And Licensing Inc. Software updates using client self-reporting and a hierarchical data structure
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
S. BORST 等: "Distributed Caching Algorithms for Content Distribution Networks", 《2010 PROCEEDINGS IEEE INFOCOM》, pages 132 - 138 *
朱玉强 等: "微信小程序在图书馆移动服务中的应用实践——以排架游戏为例", 《图书馆论坛》, vol. 37, no. 07, pages 132 - 138 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110806870A (en) * 2019-10-09 2020-02-18 北京字节跳动网络技术有限公司 Shortcut application implementation method and device, electronic equipment, server and storage medium
CN110806870B (en) * 2019-10-09 2023-07-18 北京字节跳动网络技术有限公司 Shortcut application implementation method and device, electronic equipment, server and storage medium
WO2022000869A1 (en) * 2020-06-28 2022-01-06 北京百度网讯科技有限公司 Batch processing method and apparatus for mini programs, and electronic device and readable storage medium
US12014170B2 (en) 2020-06-28 2024-06-18 Beijing Baidu Netcom Science And Technology Co., Ltd. Mini program batch processing method and apparatus, electronic device, and readable storage medium
CN112035161A (en) * 2020-08-31 2020-12-04 上海识装信息科技有限公司 Method for verifying small program release and method for parallel release
CN112328235A (en) * 2020-11-06 2021-02-05 广州朗国电子科技有限公司 Method for quickly customizing software application interactive logic
CN112579092A (en) * 2020-12-07 2021-03-30 广东亿润网络技术有限公司 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

Also Published As

Publication number Publication date
CN110308917B (en) 2024-02-23

Similar Documents

Publication Publication Date Title
CN110308917A (en) Small routine dissemination method, device, equipment and computer storage medium
US10530854B2 (en) Synchronization of permissioned content in cloud-based environments
US9275069B1 (en) Managing disconnected investigations
US9015248B2 (en) Managing updates at clients used by a user to access a cloud-based collaboration service
US9235636B2 (en) Presenting data in response to an incomplete query
US20130014034A1 (en) Managing multiple virtual world accounts from a single virtual lobby interface
US9128964B2 (en) Selective mapping of integrated data
US20110055927A1 (en) Updating assets rendered in a virtual world environment based on detected user interactions in another world
US7778801B2 (en) Automated test script for communications server
CN109074362A (en) Fractionation and moving range in distributed system
US20110252124A1 (en) Data replication tracing
CN105487922A (en) Event-triggered server-side macros
CN106254466B (en) HDFS distributed file sharing method based on local area network
CN109408751A (en) A kind of data processing method, terminal, server and storage medium
CN110032886A (en) The method and apparatus of access authorization for resource management
US20090234902A1 (en) System, method and apparatus for making content available over multiple devices
US10963842B1 (en) Communication platform for email management
US12019684B2 (en) Application programming interface arranged to interface with a plurality of data sources
US20080148234A1 (en) Data Synchronization Mechanism for Change-Request-Management Repository Interoperation
US9569070B1 (en) Assisting in deconflicting concurrency conflicts
CN107977469A (en) To the method, apparatus and terminal being managed recently using file
CN115185967A (en) Data processing method and device, electronic equipment and storage medium
Schümmer GAMA: A Pattern Language for Computer Supported Dynamic Collaboration.
CN105844171B (en) Method and device for file synchronization control
CN111753141B (en) Data management method and related equipment

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