CN110046000A - Small routine operation method and device - Google Patents

Small routine operation method and device Download PDF

Info

Publication number
CN110046000A
CN110046000A CN201910331999.0A CN201910331999A CN110046000A CN 110046000 A CN110046000 A CN 110046000A CN 201910331999 A CN201910331999 A CN 201910331999A CN 110046000 A CN110046000 A CN 110046000A
Authority
CN
China
Prior art keywords
data
small routine
under
catalogue
target small
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
CN201910331999.0A
Other languages
Chinese (zh)
Other versions
CN110046000B (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.)
Shanghai Lianshang Network Technology Co Ltd
Original Assignee
Shanghai Lianshang Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Lianshang Network Technology Co Ltd filed Critical Shanghai Lianshang Network Technology Co Ltd
Priority to CN201910331999.0A priority Critical patent/CN110046000B/en
Publication of CN110046000A publication Critical patent/CN110046000A/en
Application granted granted Critical
Publication of CN110046000B publication Critical patent/CN110046000B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • G06F9/44526Plug-ins; Add-ons

Abstract

The embodiment of the present application discloses small routine operation method and device.One specific embodiment of this method includes: to establish operation catalogue and at least one data directory to first host application;In response to detecting to the user-initiated actions for the target small routine for being integrated in first host application, the target small routine is run, the operation data generated in operational process is stored under the operation catalogue;In response to detecting user's shutoff operation to the target small routine, the operation data under the operation catalogue is copied under the corresponding data directory of target small routine.Scheme provided by the embodiments of the present application is by being separately provided data directory to each small routine, so that the data between different small routines are mutually isolated.

Description

Small routine operation method and device
Technical field
The invention relates to field of computer technology, and in particular to Internet technical field more particularly to small routine Operation method and device.
Background technique
In an operating system, the data that host applies are often under the same catalogue.If multiple small routines are integrated in together One host's application, each small routine can use the data under the corresponding catalogue of other small routines.
In this way, the information being integrated between the small routine of same host application is intercommunication, cannot achieve small routine it Between data isolation.
Summary of the invention
The embodiment of the present application proposes small routine operation method and device.
In a first aspect, the embodiment of the present application provides a kind of small routine operation method, it is applied to terminal device, terminal device At least one host application including the first host application is installed;Method includes: to establish operation catalogue to the first host application With at least one data directory, wherein different data directories is used to store the different small routines that the first host application integrates Data, for operation catalogue for storing operation data, operation data includes user behavior data;In response to detecting to being integrated in The user-initiated actions of the target small routine of first host application, operational objective small routine, the operation that will be generated in operational process Data are stored under operation catalogue;In response to detecting user's shutoff operation to target small routine, the fortune under catalogue will be run Row data copy under the corresponding data directory of target small routine.
Second aspect, the embodiment of the present application provide a kind of small routine running gear, are applied to terminal device, terminal device At least one host application including the first host application is installed;Device includes: to establish unit, is configured to the first host Catalogue and at least one data directory are run using establishing, wherein different data directories applies institute for storing the first host The data of integrated different small routines, for operation catalogue for storing operation data, operation data includes user behavior data;Operation Unit is configured in response to detect the user-initiated actions to the target small routine for being integrated in the first host application, operation The operation data generated in operational process is stored under operation catalogue by target small routine;Copied cells are configured in response to Detect user's shutoff operation to target small routine, it is corresponding that the operation data run under catalogue is copied to target small routine Under data directory.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, comprising: one or more processors;Storage dress It sets, for storing one or more programs, when one or more programs are executed by one or more processors, so that one or more A processor realizes the method such as any embodiment in small routine operation method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, are stored thereon with computer journey Sequence realizes the method such as any embodiment in small routine operation method when the program is executed by processor.
Small routine operating scheme provided by the embodiments of the present application, firstly, to the first host application foundation operation catalogue and extremely A few data directory, wherein different data directories is used to store the number for the different small routines that the first host application integrates According to for operation catalogue for storing operation data, operation data includes user behavior data.Later, in response to detecting to integrated In the user-initiated actions of the target small routine of the first host application, operational objective small routine, the fortune that will be generated in operational process Row data are stored under operation catalogue.Finally, catalogue will be run in response to detecting to user's shutoff operation of target small routine Under operation data copy under the corresponding data directory of target small routine.Scheme provided by the embodiments of the present application passes through to each Data directory is separately provided in small routine, so that the data between different small routines are mutually isolated.And the embodiment of the present application is to operation In small routine setting operation catalogue realize permission isolation in order to be set using permission to currently running operation data.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the small routine operation method of the application;
Fig. 3 is the schematic diagram according to host's application scenarios of the small routine operation method of the application;
Fig. 4 is the flow chart according to another embodiment of the small routine operation method of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the small routine running gear of the application;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of the embodiment of the present application.
Specific embodiment
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be with host using the small routine operation method of the application or the embodiment of small routine running gear Exemplary system architecture 100.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105. Network 104 between terminal device 101,102,103 and server 105 to provide the medium of communication link.Network 104 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 101,102,103 and be interacted by network 104 with server 105, to receive or send out Send message etc..Various telecommunication customer end host applications, such as small routine operation can be installed on terminal device 101,102,103 Host's application, video class host application, live streaming host's application, instant messaging tools, mailbox client, social platform software etc..
Here terminal device 101,102,103 can be hardware, be also possible to software.When terminal device 101,102, 103 be hardware when, can be the various electronic equipments with display screen, including but not limited to smart phone, tablet computer, electronics Book reader, pocket computer on knee and desktop computer etc..It, can be with when terminal device 101,102,103 is software It is mounted in above-mentioned cited electronic equipment.Multiple softwares or software module may be implemented into (such as providing distribution in it The multiple softwares or software module of formula service), single software or software module also may be implemented into.It is not specifically limited herein.
Server 105 can be to provide the server of various services, such as provide support to terminal device 101,102,103 Background server.Background server can carry out the data such as the user's history behavioral data received the processing such as analyzing, and Processing result is fed back into terminal device.
It should be noted that small routine operation method provided by the embodiment of the present application generally by terminal device 101,102, 103 execute, and correspondingly, small routine running gear can be set in terminal device 101,102,103.
It should be understood that the number of terminal device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, the process 200 of one embodiment of the small routine operation method according to the application is shown.It should Small routine operation method, comprising the following steps:
Step 201, operation catalogue and at least one data directory are established to the first host application, wherein different data Catalogue is used to store the data for the different small routines that the first host application integrates, and operation catalogue is transported for storing operation data Row data include user behavior data.
In the present embodiment, the executing subject (such as terminal device shown in FIG. 1) of small routine operation method can be to Operation catalogue and data directory are established in one host application.In this way, convenient for permission individually is arranged to operation catalogue, so that above-mentioned hold The operation data run under catalogue can not be applied to the small routine for not having permission by row main body or server.First host answers It is applied with any one host for being integrated with small routine that can be installing terminal equipment.User behavior data refers to user about small Data caused by the behavior of program.For example, user behavior data may include the time that user accesses webpage by small routine With the network address of webpage.Data under above-mentioned data directory may include user behavior data.The data of different target small routines It can store under different data directories, in order to which the data under different data catalogue are isolated.Specifically, data mesh There can be file under record and under operation catalogue, can store data in file.Host's application refers to that there are small routines The application of operation platform.Small routine operation platform is used to provide running environment in host's application for small routine, is small routine energy Enough necessary conditions started and run in host's application.Small routine operation platform can provide interface to be shown to small routine Template, browser and for different hosts application or different operating system personalized service.
Step 202, in response to detecting the user-initiated actions to the target small routine for being integrated in the first host application, fortune The operation data generated in operational process is stored under operation catalogue by row target small routine.
In the present embodiment, above-mentioned executing subject can be applied in response to detecting user to above-mentioned first host is integrated in Target small routine user-initiated actions, start and run above-mentioned target small routine.Also, above-mentioned executing subject can will transport The operation data generated during row is stored under above-mentioned operation catalogue.User-initiated actions are the operations of user, are used to indicate Start above-mentioned target small routine.
In some optional implementations of the present embodiment, step 202 includes: in response to detecting to being integrated in the first place The user-initiated actions of the target small routine of main application judge under the corresponding data directory of target small routine with the presence or absence of operation number According to;If it exists, the operation data decryption that will be present is stored under operation catalogue, based on the operation data under operation catalogue, operation Target small routine;If it does not exist, operational objective small routine.
In these optional implementations, above-mentioned executing subject can be in response to detecting user to target small routine User-initiated actions judge under data directory with the presence or absence of operation data.In this way, above-mentioned executing subject can be according to judging result Execute subsequent step.
Operation data under data directory can be stored in by above-mentioned executing subject there are operation data It states under operation catalogue, then, above-mentioned executing subject can run above-mentioned target small routine based on operation data therein.If sentenced Break the result is that operation data is not present under the corresponding data directory of target small routine, then above-mentioned executing subject can directly be run Above-mentioned target small routine.
In practice, above-mentioned executing subject can be based on operation data operational objective small routine using various ways.Citing For, operation data can be uploaded to the server of target small routine by above-mentioned executing subject, so that the server is determined to use The object that family is liked.For example, the object of hobby can be video type, type of merchandize etc..Then, which can be to The target small routine of above-mentioned executing subject pushes relevant video, commodity or advertisement etc..In this way, above-mentioned executing subject can be broadcast The content pushed out.In addition, if target small routine has instruction instruction user to read certain webpage, as long as then in operation data There is user to record the browsing of the webpage, then above-mentioned executing subject can determine that user has read.
These implementations can be directed to the user of terminal device using operation data there are operation data Preferably operational objective small routine.
Step 203, in response to detecting user's shutoff operation to target small routine, the operation data under catalogue will be run It copies under the corresponding data directory of target small routine.
In the present embodiment, above-mentioned executing subject can be in response to detecting that user closes behaviour to the user of target small routine Make, the operation data run under catalogue is copied under the corresponding data directory of target small routine.Specifically, user's shutoff operation For the operation of user, it is used to indicate and closes above-mentioned target small routine.
In some optional implementations of the present embodiment, the different small routines that the first host application integrates are corresponding The code key of data directory is different.
In these optional implementations, code key can be arranged to data directory in above-mentioned executing subject or server, Set code key and small routine is identified with one-to-one relationship.Thus, the data directory where the data of different small routines Between code key it is different.In this way, the data between each small routine can be isolated, preferably to prevent the data of small routine random Ground is utilized.
In some optional implementations of the present embodiment, after step 203, the above method can also include:
To under the corresponding data directory of target small routine, the operation data of this operation of target small routine is encrypted.
In these optional implementations, above-mentioned executing subject can under the corresponding data directory of target small routine, Operation data caused by above-mentioned target small routine is run as this to be encrypted.Here encrypted data include being replicated Data.In addition, it can include other data, such as the data being periodically cached under operation catalogue under data directory.Here Code key used by encrypting is only used for the corresponding data directory of target small routine.
These implementations can encrypt the operation data under data directory, to realize to each data directory Under data be isolated.
In some optional implementations of the present embodiment, after step 203, the above method further include:
Empty the data under operation catalogue.
In these optional implementations, above-mentioned executing subject can be copied to by the operation data run under catalogue After data directory, the data under operation catalogue are emptied, in order to which operation data is stored in wherein by other small routines.
In some optional implementations of the present embodiment, runs the operation data under catalogue and be only used for executing and be integrated in the One host application and the corresponding instruction of small routine in operation.
In these optional implementations, above-mentioned executing subject can will run the operation data under catalogue and be applied to collection At the currently running small routine applied in above-mentioned first host, and can not will run catalogue under operation data be applied to it is non- In operation or small routine that non-integration is applied in the first host.Specifically, the corresponding instruction of small routine can be various, For example instruction can indicate for operation data to be sent to the corresponding server of small routine, in order to which server carries out data analysis, Or convenient for server to terminal device advertisement.
These optional implementations can be isolated the data under operation catalogue by limiting access right, with Convenient for preferably protecting to data therein, avoid above-mentioned executing subject by data application therein in other small routines.
With continued reference to the signal that Fig. 3, Fig. 3 are according to host's application scenarios of the small routine operation method of the present embodiment Figure.In host's application scenarios of Fig. 3, terminal device 301 is equipped with 5 hosts application including instant messaging host application. Terminal device 301 can establish operation catalogue and 3 data directories 302 to above-mentioned instant messaging host application, wherein 3 numbers It is used to store the data for 3 different small routines that instant messaging host application integrates according to catalogue, operation catalogue is for storing fortune Row data, operation data include user behavior data.Terminal device 301 is answered in response to detecting to being integrated in instant messaging host The user-initiated actions of game small routine run above-mentioned game small routine, the operation data 303 that will be generated in operational process It is stored in operation catalogue.Terminal device 301, will be under operation catalogue in response to detecting user's shutoff operation to game small routine Operation data 303 copy under the corresponding data directory 304 of game small routine.
The method provided by the above embodiment of the application is by being separately provided data directory to each small routine, so that different Data between small routine are mutually isolated.And operation catalogue is arranged to running small routine in the present embodiment, in order to current The operation data of operation is set using permission, realizes permission isolation.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of small routine operation method.The small routine The process 400 of operation method, comprising the following steps:
Step 401, operation catalogue and at least one data directory are established to the first host application, wherein different data Catalogue is used to store the data for the different small routines that the first host application integrates, and operation catalogue is transported for storing operation data Row data include user behavior data.
In the present embodiment, the executing subject (such as terminal device shown in FIG. 1) of small routine operation method can be to Operation catalogue and data directory are established in one host application.In this way, convenient for permission individually is arranged to operation catalogue, so that above-mentioned hold The operation data run under catalogue can not be applied to the small routine for not having permission by row main body or server.First host answers It is applied with any one host for being integrated with small routine that can be installing terminal equipment.User behavior data refers to what user carried out Data caused by behavior about small routine.
Step 402, in response to detecting the user-initiated actions to the target small routine for being integrated in the first host application, fortune The operation data generated in operational process is stored under operation catalogue by row target small routine.
In the present embodiment, above-mentioned executing subject can be applied in response to detecting user to above-mentioned first host is integrated in Target small routine user-initiated actions, run above-mentioned target small routine, and the operation data generated in operational process is deposited It is stored under above-mentioned operation catalogue.User-initiated actions are the operations of user, are used to indicate starting target small routine.
Step 403, by the operation data timed backup generated in the case where running catalogue to the corresponding data mesh of target small routine Under record.
In the present embodiment, above-mentioned executing subject can be periodically by the operation data generated under operational objective in target It is backed up under the corresponding data directory of small routine.For example storage can be compressed under data directory, to be backed up.In addition, every After secondary backup, the data backed up can also be encrypted, to ensure that backed-up data is not used arbitrarily in time.
Step 404, in response to detecting user's shutoff operation to target small routine, the operation data under catalogue will be run It copies under the corresponding data directory of target small routine.
In the present embodiment, above-mentioned executing subject can be in response to detecting that user closes behaviour to the user of target small routine Make, the operation data run under catalogue is copied under the corresponding data directory of target small routine.Specifically, user's shutoff operation For the operation of user, it is used to indicate and closes above-mentioned target small routine.
In some optional implementations of the present embodiment, step 404 includes: that will run under catalogue, in last time Increased operation data copies under the corresponding data directory of target small routine after timed backup operation data.
In these optional implementations, the reproduction process of above-mentioned executing subject be can be to the data under operation catalogue In, the data being not backed up under data directory are replicated, and the data being had backed up under data directory before then may not be used It repeats under storage to data directory.This way it is possible to avoid the repetition of operation data stores, the storage efficiency of data is improved.
In some optional host's application scenarios of these implementations, after step 404, the above method can be with Include: under the corresponding data directory of target small routine, by the operation data of timed backup and the operation data replicated into Row encryption.
In these optional host's application scenarios, above-mentioned executing subject can will be stored from operation catalogue to data directory Under operation data encrypted.Specifically, here encrypted data may include timed backup data and duplication Data.The code key of encryption is code key set by the data directory for above-mentioned target small routine.
After these host's application scenarios can be in the case where that will run the operation data under catalogue and all store to data directory, The data of storage are encrypted again, in this way, performance issue will not be caused because of excessively frequent encryption, so that it is guaranteed that small routine Operation it is smooth.
The present embodiment is timed backup to operation data, may bring to avoid storage unified after small routine end of run Storage time excessively concentrate the performance issue for leading to terminal device occur.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of operations of small routine One embodiment of device, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which specifically can be applied to In various electronic equipments.
As shown in figure 5, the small routine running gear 500 of the present embodiment includes: to establish unit 501, running unit 502 and answer Unit 503 processed.Wherein, unit 501 is established, is configured to establish operation catalogue and at least one data mesh to the first host application Record, wherein different data directories is used to store the data for the different small routines that the first host application integrates, and operation catalogue is used In storage operation data, operation data includes user behavior data;Running unit 502 is configured in response to detect to collection At the user-initiated actions for the target small routine applied in the first host, operational objective small routine, by what is generated in operational process Operation data is stored in operation catalogue;Copied cells 503 are configured in response to detect user's closing to target small routine Operation copies to the operation data run under catalogue under the corresponding data directory of target small routine.
In some embodiments, the unit 501 of establishing of small routine running gear 500 can be to the first host application foundation fortune Column catalogue and data directory.In this way, convenient for permission individually is arranged to operation catalogue, so that above-mentioned executing subject or server The operation data run under catalogue can not be applied to the small routine for not having permission.First host application can be terminal device Any one of installation is integrated with host's application of small routine.
In some embodiments, running unit 502 can be answered in response to detecting user above-mentioned first host is integrated in The user-initiated actions of target small routine start and run above-mentioned target small routine.Also, above-mentioned executing subject can incite somebody to action The operation data generated in operational process is stored under above-mentioned operation catalogue.
In some embodiments, copied cells 503 can be in response to detecting that user closes the user of target small routine Operation copies to the operation data run under catalogue under the corresponding data directory of target small routine.Specifically, user closes behaviour As the operation of user, it is used to indicate and closes above-mentioned target small routine.
In some optional implementations of the present embodiment, the different small routines that the first host application integrates are corresponding Data directory code key it is different.
In some optional implementations of the present embodiment, running unit is further configured to as follows It executes in response to detecting the user-initiated actions to the target small routine for being integrated in the first host application, operational objective little Cheng Sequence: in response to detecting to the user-initiated actions for the target small routine for being integrated in the first host application, judge target small routine It whether there is operation data under corresponding data directory;If it exists, the operation data decryption that will be present is stored under operation catalogue, Based on the operation data under operation catalogue, operational objective small routine;If it does not exist, operational objective small routine.
In some optional implementations of the present embodiment, device further include: encryption unit is configured to small to target Under the corresponding data directory of program, the operation data of this operation of target small routine is encrypted.
In some optional implementations of the present embodiment, device further include: backup units are configured to run Under the operation data timed backup generated under catalogue to the corresponding data directory of target small routine.
In some optional implementations of the present embodiment, copied cells are further configured to as follows It executes and copies to the operation data run under catalogue under the corresponding data directory of target small routine: will run under catalogue, most Increased operation data copies under the corresponding data directory of target small routine after a timed backup operation data afterwards.
In some optional implementations of the present embodiment, device further include: execution unit is configured to small in target Under the corresponding data directory of program, the operation data of timed backup and the operation data replicated are encrypted.
In some optional implementations of the present embodiment, device further include: empty unit, be configured to empty operation Data under catalogue.
In some optional implementations of the present embodiment, the operation data under operation catalogue is only used for executing and be integrated in First host application and the corresponding instruction of small routine in operation.
As shown in fig. 6, electronic equipment 600 may include processing unit (such as central processing unit, graphics processor etc.) 601, random access can be loaded into according to the program being stored in read-only memory (ROM) 602 or from storage device 608 Program in memory (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with electronic equipment Various programs and data needed for 600 operations.Processing unit 601, ROM 602 and RAM603 are connected with each other by bus 604. Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 606 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 607 of dynamic device etc.;Storage device 608;And communication device 609.Communication device 609 can permit electronic equipment 600 are wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 6 shows the electronic equipment with various devices 600, it should be understood that being not required for implementing or having all devices shown.It can alternatively implement or have more Or less device.Each box shown in Fig. 6 can represent a device, also can according to need and represent multiple devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608 It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the implementation of the disclosure is executed The above-mentioned function of being limited in the method for example.It should be noted that the computer-readable medium of embodiment of the disclosure can be meter Calculation machine readable signal medium or computer readable storage medium either the two any combination.Computer-readable storage Medium for example may be-but not limited to-system, device or the device of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, Or any above combination.The more specific example of computer readable storage medium can include but is not limited to: have one Or the electrical connections of multiple conducting wires, portable computer diskette, hard disk, random access storage device (RAM), read-only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light Memory device, magnetic memory device or above-mentioned any appropriate combination.In embodiment of the disclosure, computer-readable to deposit Storage media can be any tangible medium for including or store program, which can be commanded execution system, device or device Part use or in connection.And in embodiment of the disclosure, computer-readable signal media may include in base band In or as carrier wave a part propagate data-signal, wherein carrying computer-readable program code.This propagation Data-signal can take various forms, including but not limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Meter Calculation machine readable signal medium can also be any computer-readable medium other than computer readable storage medium, which can Read signal medium can be sent, propagated or be transmitted for being used by instruction execution system, device or device or being tied with it Close the program used.The program code for including on computer-readable medium can transmit with any suitable medium, including but not It is limited to: electric wire, optical cable, RF (radio frequency) etc. or above-mentioned any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the application, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard The mode of part is realized.Described unit also can be set in the processor, for example, can be described as: a kind of processor packet It includes and establishes unit, running unit and copied cells.Wherein, the title of these units is not constituted under certain conditions to the unit The restriction of itself is also described as " establishing operation catalogue and at least one number to the first host application for example, establishing unit According to the unit of catalogue ".
As on the other hand, present invention also provides a kind of computer-readable medium, which be can be Included in device described in above-described embodiment;It is also possible to individualism, and without in the supplying device.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the device, so that should Device: operation catalogue and at least one data directory are established to the first host application, wherein different data directories is for storing The data for the different small routines that first host application integrates, operation catalogue include using for storing operation data, operation data Family behavioral data;In response to detecting to the user-initiated actions for the target small routine for being integrated in the first host application, mesh is run Small routine is marked, the operation data generated in operational process is stored in operation catalogue;In response to detecting to target small routine User's shutoff operation copies to the operation data run under catalogue under the corresponding data directory of target small routine.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from foregoing invention design, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed herein Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (11)

1. a kind of small routine operation method, is applied to terminal device, the installing terminal equipment has including the first host application At least one host application;The described method includes:
Operation catalogue and at least one data directory are established to first host application, wherein different data directories are used for The data for the different small routines that the first host application integrates are stored, the operation catalogue is transported for storing operation data Row data include user behavior data;
In response to detecting to the user-initiated actions for the target small routine for being integrated in the first host application, the mesh is run Small routine is marked, the operation data generated in operational process is stored under the operation catalogue;
In response to detecting user's shutoff operation to the target small routine, the operation data under the operation catalogue is replicated To under the corresponding data directory of the target small routine.
2. according to the method described in claim 1, wherein,
The code key for the corresponding data directory of different small routines that the first host application integrates is different.
3. according to the method described in claim 1, wherein, in response to detecting to the target for being integrated in the first host application The user-initiated actions of small routine run the target small routine, comprising:
In response to detecting to the user-initiated actions for the target small routine for being integrated in the first host application, the mesh is judged Marking whether there is operation data under the corresponding data directory of small routine;
If it exists, the operation data decryption that will be present is stored under the operation catalogue, based on the operation under the operation catalogue Data run the target small routine;
If it does not exist, the target small routine is run.
4. according to the method described in claim 1, wherein, being copied in the operation data by under the operation catalogue described After under the corresponding data directory of target small routine, the method also includes:
To under the corresponding data directory of the target small routine, the operation data of this operation of the target small routine is added It is close.
5. according to the method described in claim 1, wherein, being stored in the operation data that will be generated in operational process described After running under catalogue, the method also includes:
It will be under the operation data timed backup to the corresponding data directory of the target small routine that generated under the operation catalogue.
6. according to the method described in claim 5, wherein, the operation data by under the operation catalogue copies to the mesh It marks under the corresponding data directory of small routine, comprising:
By under the operation catalogue, increased operation data copies to the mesh after last time timed backup operation data It marks under the corresponding data directory of small routine.
7. according to the method described in claim 6, wherein, being copied in the operation data by under the operation catalogue described After under the corresponding data directory of target small routine, the method also includes:
It is described under the corresponding data directory of the target small routine, by the operation data of timed backup and the operation replicated Data are encrypted.
8. method described in one of -5 according to claim 1, wherein replicated in the operation data by under the operation catalogue After under to the corresponding data directory of the target small routine, the method also includes:
Empty the data under the operation catalogue.
9. method described in one of -5 according to claim 1, wherein the operation data under the operation catalogue is only used for executing collection The application of first host described in Cheng Yu and the corresponding instruction of small routine in operation.
10. a kind of electronic equipment, comprising:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-9.
11. a kind of computer readable storage medium, is stored thereon with computer program, wherein when the program is executed by processor Realize the method as described in any in claim 1-9.
CN201910331999.0A 2019-04-24 2019-04-24 Applet running method and device Active CN110046000B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910331999.0A CN110046000B (en) 2019-04-24 2019-04-24 Applet running method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910331999.0A CN110046000B (en) 2019-04-24 2019-04-24 Applet running method and device

Publications (2)

Publication Number Publication Date
CN110046000A true CN110046000A (en) 2019-07-23
CN110046000B CN110046000B (en) 2022-03-11

Family

ID=67278913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910331999.0A Active CN110046000B (en) 2019-04-24 2019-04-24 Applet running method and device

Country Status (1)

Country Link
CN (1) CN110046000B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688124A (en) * 2019-08-23 2020-01-14 北京奇艺世纪科技有限公司 Applet processing method, device, electronic equipment and computer readable storage medium
CN111338542A (en) * 2020-02-19 2020-06-26 北京字节跳动网络技术有限公司 Shortcut generation method and device and computer readable storage medium
CN112559980A (en) * 2020-11-24 2021-03-26 珠海凡泰极客科技有限责任公司 Applet operation capable of embedding numerous arbitrary APPs

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853181A (en) * 2010-05-11 2010-10-06 中达电通股份有限公司 Subprogram mutual calling method used in embedded system
CN103473091A (en) * 2011-01-21 2013-12-25 北京奇虎科技有限公司 Method and system for software migration and installation for computing equipment
CN104063284A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Method and device operating application program
CN104965723A (en) * 2014-10-09 2015-10-07 腾讯科技(深圳)有限公司 Application program operation method and apparatus
CN107220528A (en) * 2017-07-21 2017-09-29 北京深思数盾科技股份有限公司 The protection of java applet and operation method, device and terminal
CN109542530A (en) * 2018-10-26 2019-03-29 深圳点猫科技有限公司 A kind of hierarchical loading method and device based on small routine framework

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101853181A (en) * 2010-05-11 2010-10-06 中达电通股份有限公司 Subprogram mutual calling method used in embedded system
CN103473091A (en) * 2011-01-21 2013-12-25 北京奇虎科技有限公司 Method and system for software migration and installation for computing equipment
CN104063284A (en) * 2013-03-18 2014-09-24 腾讯科技(深圳)有限公司 Method and device operating application program
CN104965723A (en) * 2014-10-09 2015-10-07 腾讯科技(深圳)有限公司 Application program operation method and apparatus
CN107220528A (en) * 2017-07-21 2017-09-29 北京深思数盾科技股份有限公司 The protection of java applet and operation method, device and terminal
CN109542530A (en) * 2018-10-26 2019-03-29 深圳点猫科技有限公司 A kind of hierarchical loading method and device based on small routine framework

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
微信开发者: "小程序.小故事(19)——文件系统能力", 《小程序.小故事(19)——文件系统能力,HTTPS://WWW.QIANYXCX.COM/ARTICLE/36.HTML》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688124A (en) * 2019-08-23 2020-01-14 北京奇艺世纪科技有限公司 Applet processing method, device, electronic equipment and computer readable storage medium
CN110688124B (en) * 2019-08-23 2023-03-17 北京奇艺世纪科技有限公司 Applet processing method, apparatus, electronic device and computer readable storage medium
CN111338542A (en) * 2020-02-19 2020-06-26 北京字节跳动网络技术有限公司 Shortcut generation method and device and computer readable storage medium
CN112559980A (en) * 2020-11-24 2021-03-26 珠海凡泰极客科技有限责任公司 Applet operation capable of embedding numerous arbitrary APPs
CN112559980B (en) * 2020-11-24 2023-05-05 深圳凡泰极客科技有限责任公司 Applet runtime capable of embedding a plurality of random APP

Also Published As

Publication number Publication date
CN110046000B (en) 2022-03-11

Similar Documents

Publication Publication Date Title
CN110266480B (en) Data transmission method, device and storage medium
CN109391509A (en) A kind of method, system and the application server of more new application
CN105516246B (en) A kind of method and server of anti-application program downloading abduction
CN109995877A (en) Information-pushing method and device
CN109582873B (en) Method and device for pushing information
US20170371625A1 (en) Content delivery method
CN110046000A (en) Small routine operation method and device
CN108112060A (en) For obtaining the method and apparatus of wireless access point information
CN104158908B (en) Method and system based on WiFi equipment transmission file
CN110377440B (en) Information processing method and device
WO2020216204A1 (en) Information acquisition method and apparatus
CN110266505A (en) A kind of method and apparatus managing session group
CN110321738A (en) Information processing method and device
CN109154968A (en) The system and method for the safety in organizing and efficiently communicated
CN108880812A (en) The method and system of data encryption
CN110007936A (en) Data processing method and device
CN107251480A (en) Data storing device, data update system, data processing method and data processor
CN109542862A (en) For controlling the methods, devices and systems of the carry of file system
CN110705985B (en) Method and apparatus for storing information
US20230388120A1 (en) Client-Side Device Bloom Filter Mapping
CN105302617A (en) Method and sever for downloading application program
CN109271224A (en) Method and apparatus for determining position
CN105306455A (en) Data processing method and terminal device
CN111163156A (en) Data processing method, device and storage medium based on block chain
CN110113416A (en) Method and apparatus for showing information

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