CN108664342A - Extend method, system and storage medium based on WEB specification small routine operational capabilities - Google Patents

Extend method, system and storage medium based on WEB specification small routine operational capabilities Download PDF

Info

Publication number
CN108664342A
CN108664342A CN201810403402.4A CN201810403402A CN108664342A CN 108664342 A CN108664342 A CN 108664342A CN 201810403402 A CN201810403402 A CN 201810403402A CN 108664342 A CN108664342 A CN 108664342A
Authority
CN
China
Prior art keywords
server
terminal
active task
processor active
resource file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810403402.4A
Other languages
Chinese (zh)
Inventor
安立君
侯立江
姜健华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Baiguoyuan Information Technology Co Ltd
Original Assignee
Guangzhou Baiguoyuan Information 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 Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN201810403402.4A priority Critical patent/CN108664342A/en
Publication of CN108664342A publication Critical patent/CN108664342A/en
Pending legal-status Critical Current

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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/547Remote procedure calls [RPC]; Web services
    • 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/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present invention relates to software fields, and in particular to a kind of method, apparatus, system, storage medium and terminal of the extension based on WEB specification small routine operational capabilities, the method be applied to include first terminal, server and servo terminal system, including:Operation of the first terminal in response to user in the small routine generates processor active task and uploads onto the server;The processor active task includes pending resource file and the processing mode to the resource file;The server receives the processor active task distributing the processor active task to servo terminal;The servo terminal obtains the processor active task from the server, obtain the resource file and the processing mode to the resource file, start local specified application and handle the resource file generation file destination according to the processing mode, the file destination is uploaded to the server;The file destination is back to the first terminal by the server.The present invention extends the operational capability of small routine.

Description

Extend method, system and storage medium based on WEB specification small routine operational capabilities
Technical field
The present invention relates to software application fields, and in particular to a kind of side of the extension based on WEB specification small routine operational capabilities Method, device, system, storage medium and terminal.
Background technology
Small routine is a kind of " program " for being finished to walk, exempting from installation risen along with mobile Internet, and application at present is most Wide small routine is the wechat small routine of Tencent's publication, and wechat small routine is the application development frame of Tencent's publication Small routine is placed in wechat and runs by frame, using javascript language developments, is finished and walks, and exempts to install, easy to use. But the deficiency of such small routine is, because its exploitation is to be based on WEB specifications, one built using HTML, CSS and JS etc. Frame is covered, is developed using javascript language, it, should due to being to use javascript language developments Class small routine just cannot directly use the operating system SDK of mobile terminal, allow the function that some native applications programs possess cannot It is realized in small routine, thus the operational capability of current small routine is relatively low, can not provide the function as native applications program, therefore There is an urgent need for a kind of lower solutions of solution small routine operational capability at present.
Invention content
To overcome, the small routine operational capability of the above technical problem, the especially prior art based on WEB specifications is relatively low, function Limited problem, spy propose following technical scheme:
In a first aspect, the present invention provides a kind of method of the extension based on WEB specification small routine operational capabilities, it is applied to packet The system for including first terminal, server and servo terminal, including:
Operation of the first terminal in response to user in the small routine generates processor active task and uploads onto the server; The processor active task includes pending resource file and the processing mode to the resource file;
The server receives the processor active task distributing the processor active task to servo terminal;
The servo terminal obtains the processor active task from the server, obtains the resource file and to the resource The processing mode of file starts local specified application and handles the resource file generation target according to the processing mode The file destination is uploaded to the server by file;
The file destination is back to the first terminal by the server..
Further, the small routine is associated with the specified application, described to start the specified using journey of local Sequence handles the resource file according to the processing mode and generates file destination, including:
Servo terminal start local in the associated specified application of the small routine;
It parses the processor active task and obtains the resource file and the processing mode to the resource file;
The specified application is controlled using the operating system SDK of servo terminal according to described in processing mode processing Resource file generates file destination.
Further, after the server receives the processor active task, further include:The processor active task is sorted, it is raw At the processor active task with serial number;
The servo terminal obtains the processor active task from the server, including:
The processor active task of server described in the servo terminal polling;
Receive the processor active task that server issues successively according to the serial number of processor active task;
Or,
The processor active task is pushed to each servo terminal by the server successively according to the serial number of processor active task, described to watch It takes terminal and the small routine offer operational capability is provided.
Further, the processor active task includes task feature, and the server receives the processor active task with will be described Processor active task is distributed to servo terminal, including:
The server obtains the task feature of each processor active task;
The task feature that servo terminal can be handled is obtained, the corresponding operation of servo terminal coupling is characterized as according to the task Task.
Further, the server receives the processor active task distributing the processor active task to servo terminal, packet It includes:
Server calculates the operand according to the processor active task;
Obtain the operational capability of servo terminal;
It is the corresponding processor active task of servo terminal coupling according to the operand and the operational capability.
Second aspect, the present invention provide a kind of extend from the angle of first terminal and are based on WEB specification small routine operational capabilities Method, including:
Operation of the first terminal in response to user in the small routine generates processor active task and uploads onto the server;It is described Processor active task includes pending resource file and the processing mode to the resource file;
First terminal receives the file destination that server returns, and the file destination starts local finger by servo terminal Determine to be uploaded to the server, the servo terminal after application program handles the resource file generation according to the processing mode The processor active task is obtained from the server to obtain the resource file and to the processing mode of the resource file.
The third aspect, the present invention provide a kind of system of the extension based on WEB specification small routine operational capabilities, including the first end End, server and servo terminal, it is characterised in that:
The first terminal generates processor active task and uploads to clothes for the operation in response to user in the small routine Business device;The processor active task includes pending resource file and the processing mode to the resource file;
The server, for receiving the processor active task distributing the processor active task to servo terminal;
The servo terminal obtains the resource file and to institute for obtaining the processor active task from the server The processing mode for stating resource file starts local specified application and handles the resource file life according to the processing mode At file destination, the file destination is uploaded to the server;
The server is additionally operable to the file destination being back to the first terminal.
Fourth aspect, the present invention also provides a kind of device of the extension based on WEB specification small routine operational capabilities, feature exists In, including:
Respond module:For the operation in response to user in the small routine, generates processor active task and upload onto the server; The processor active task includes pending resource file and the processing mode to the resource file;
Receiving module:File destination for receiving server return, the file destination start this by servo terminal The specified application on ground handles after the resource file generates according to the processing mode and is uploaded to the server, described to watch It takes terminal and from the server obtains the processor active task to obtain the resource file and to the processing side of the resource file Formula.
5th aspect, the present invention also provides a kind of computer readable storage medium, the computer readable storage medium On be stored with computer program, the program realized when being executed by processor above-mentioned extension be based on WEB specification small routine operation energy The method of power.
6th aspect, the present invention also provides a kind of terminal, the terminal include one or more processors, memory, One or more application program, wherein one or more of application programs be stored in the memory and be configured as by One or more of processors execute, and one or more of programs are configured to carry out above-mentioned extension and are based on WEB specifications The method of small routine operational capability.
Compared with prior art, the present invention having the advantages that:
The small routine based on WEB specifications that the present invention provides a kind of from first terminal initiates processor active task, passes through clothes Wu Qi intermediaries, by processor active task entrust to servo terminal native applications program complete calculation process, and return handling result to First terminal allows the small routine on first terminal that can be extended small indirectly using the function of native applications program in servo terminal The operational capability of program, the limitation of operating system SDK can not be used by having broken small routine, and more functions are added for small routine, In conjunction with the operational capability easy to use and servo terminal of small routine, the user experience using small routine is improved, and be not required to Application program in servo terminal is rewritten in server end, it also need not be by the application program small routine in servo terminal SDK is rewritten, and can the function of native applications be quickly supplied to small routine.
It is also possible to which capable of flexibly being handled according to the task feature of processor active task, servo terminal for task is special Sign is servo terminal coupling processor active task appropriate, and the processor active task of different task feature is distributed to different servo terminals, It allows servo terminal that can handle corresponding processor active task according to the condition of itself, selection, can also be nonidentity operation characteristic matching Different reward values, reward provide the servo terminal of operational capability.
It is also possible to be flexibly that servo is whole according to the operational capability of the operand of processor active task, servo terminal End matches processor active task appropriate, allows the higher servo terminal processes of performance are complicated to spend higher processor active task, makes performance relatively low The lower processor active task of the complicated degree of servo terminal processes, improve the treatment effeciency of processor active task, while it is better to give user Usage experience will not wait for too long of time or processing failure because the too low servo terminal of performance is matched to.
The additional aspect of the present invention and advantage will be set forth in part in the description, these will become from the following description Obviously, or practice through the invention is recognized.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Obviously and it is readily appreciated that, wherein:
Fig. 1 is an embodiment flow diagram of method of the present invention extension based on WEB specification small routine operational capabilities;
Fig. 2 is an embodiment schematic diagram of system of the present invention extension based on WEB specification small routine operational capabilities;
Fig. 3 is an application scenarios embodiment schematic diagram of the present invention extension based on WEB specification small routine operational capabilities;
Fig. 4 is another embodiment schematic diagram of method of the present invention extension based on WEB specification small routine operational capabilities
Fig. 5 is an embodiment schematic diagram of device of the present invention extension based on WEB specification small routine operational capabilities;
Fig. 6 is an example structure schematic diagram of terminal of the present invention.
Specific implementation mode
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singulative " one " used herein, " one It is a ", " described " and "the" may also comprise plural form.It is to be further understood that is used in the specification of the present invention arranges Diction " comprising " refer to there are the feature, integer, step, operation, but it is not excluded that presence or addition it is one or more other Feature, integer, step, operation.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, all terms used herein (including technology Term and scientific terminology), there is meaning identical with the general understanding of the those of ordinary skill in fields of the present invention.Also answer It should be appreciated that those terms such as defined in the general dictionary, it should be understood that have in the context of the prior art The consistent meaning of meaning otherwise will not containing with idealization or too formal and unless by specific definitions as here Justice is explained.
It will be understood by those skilled in the art that the concepts such as server used herein above, high in the clouds, remote network devices, tool There is effects equivalent comprising but it is not limited to computer, network host, single network server, multiple network server collection or more The cloud that a server is constituted.Here, cloud is by being based on a large amount of computers or network server of cloud computing (Cloud Computing) It constitutes, wherein cloud computing is one kind of Distributed Calculation, and one be made of the computer collection of a group loose couplings is super virtual Computer.In the embodiment of the present invention, any communication party can be passed through between remote network devices, terminal device and WNS servers Formula realizes communication, including but not limited to, the mobile communication based on 3GPP, LTE, WIMAX, the meter based on TCP/IP, udp protocol The network communication of calculation machine and low coverage wireless transmission method based on bluetooth, Infrared Transmission standard.
It will be appreciated by those skilled in the art that so-called " application " of the invention, " application program ", " application software " and class It is the same concept well known to those skilled in the art like the concept of statement, refers to being instructed by series of computation machine and related data The computer software for being suitable for electronics operation of the organic construction of resource.Unless specified, this name itself is not by programming language Type, rank, the operating system of operation of also not rely by it or platform are limited.In the nature of things, this genus also not by appoint The terminal of what form is limited.
In one embodiment, the present invention provides a kind of method of the extension based on WEB specification small routine operational capabilities, application In the system including first terminal 21, server 22 and servo terminal 23 as shown in Figure 2, which does not mean that objective generation The equipment that can be seen in boundary, and refer to that the realization of the program is constituted by first terminal 21, server 22 with servo terminal 23 System, on first terminal 21 operation have small routine develop based on WEB specifications, be equipped in servo terminal 23 specified using journey Sequence, the servo terminal are preferably mobile phone, and tablet computer class mobile terminal, server 22 is as first terminal 21 and servo end The intermediary communicated between end 23.In the present invention, what the small routine based on the exploitation of WEB specifications was issued with current Tencent It is illustrated for wechat small routine.As shown in Figure 1, the method for the extension based on WEB specification small routine operational capabilities includes Following steps:
S100:Operation of the first terminal in response to user in the small routine generates processor active task and uploads to clothes Business device;The processor active task includes pending resource file and the processing mode to the resource file.
User operates in small routine, at this time operation of the first terminal in response to user in the small routine, raw It uploads onto the server at processor active task, or for operation request, the processor active task is comprising pending resource file and to institute The processing mode of resource file is stated, such as user will carry out a photo P in small routine the processing of " addition A filters ", shine Piece P is the pending resource file, and addition A filters are the processing mode to the resource file.
S200:The server receives the processor active task distributing the processor active task to servo terminal.
After the server receives the processor active task, it is stored in server storage system, and generates an operation and appoints Business is put into waiting list distributing the processor active task to servo terminal, and more preferably, the queue serial number for returning to processor active task supplies The small routine of first terminal is for future reference.
S300:The servo terminal obtains the processor active task from the server, obtains the resource file and to institute The processing mode for stating resource file starts local specified application and handles the resource file life according to the processing mode At file destination, the file destination is uploaded to the server.
In the present embodiment, operational capability is provided for the small routine of first terminal by servo terminal, handles first terminal The processor active task that small routine generates is appointed specifically, servo terminal obtains the processor active task from the server from the operation Pending resource file and the processing mode to the resource file can be got in business, are then started the specified of local and are answered The resource file is handled according to the processing mode with program and generate file destination, complete user and needed in small routine to money The file destination is uploaded to the server by the handling result of source file after generating file destination.
Specifically, described start local specified application according to the processing mode processing resource file generation File destination, including:
Servo terminal start local in the associated specified application of the small routine;
It parses the processor active task and obtains the resource file and the processing mode to the resource file;
The specified application is controlled using the operating system SDK of servo terminal according to described in processing mode processing Resource file generates file destination.
In one embodiment, the servo terminal is Android mobile terminal, and operating system is Android systems System, the API provided by Android AccessibilityService start the specified application in local automatically; It parses the processor active task and obtains the resource file and the processing mode to the resource file;Described specify is automatically controlled to answer The resource file is handled according to the processing mode generate file destination with program using the operating system SDK of servo terminal, It is realized using operating system SDK such as servo terminal and picture addition filter is handled;Finally the file destination is uploaded to described Server.In another embodiment, the operating system of the servo terminal is IOS systems, by XCUITest or UIAutomation frames start the specified application in local automatically;It parses the processor active task and obtains the resource file And the processing mode to the resource file;Automatically control the operating system SDK that the specified application uses servo terminal The resource file, which is handled, according to the processing mode generates file destination;The file destination is finally uploaded to the service Device.
S400:The file destination is back to the first terminal by the server.
After server receives the file destination of first terminal return, identifies the processor active task and complete, by the target File returns to first terminal, and user can view in first terminal obtained by oneself operation on small routine to resource file The result arrived.Preferably, file destination is returned to the small routine on first terminal by server, and user can be in small routine On be immediately seen the file destination, and user, which will not obviously experience the function on small routine, to be completed using servo terminal, It gives user preferably to experience, such as user can be immediately seen the knot for oneself adding picture P A filters on small routine Fruit.In the present embodiment, file destination can also be back to first terminal by server otherwise, such as can be deposit Network storage, cloud storage send Email, send short message, return to the modes such as user's hyperlink, the present invention does not limit this It is fixed.
The present embodiment proposes that a kind of small routine based on WEB specifications from first terminal initiates processor active task, passes through clothes Wu Qi intermediaries, by processor active task entrust to servo terminal native applications program complete calculation process, and return handling result to First terminal allows the small routine on first terminal that can be extended small indirectly using the function of native applications program in servo terminal The operational capability of program, the limitation of operating system SDK can not be used by having broken small routine, and more functions are added for small routine, In conjunction with the operational capability easy to use and servo terminal of small routine, the user experience using small routine is improved, and be not required to Application program in servo terminal is rewritten in server end, it also need not be by the application program small routine in servo terminal SDK is rewritten, and can the function of native applications be quickly supplied to small routine.
In above-described embodiment, after the server receives the processor active task, further include:
Server sorts the processor active task, generates the processor active task with serial number;
The servo terminal obtains the processor active task from the server, including:
The processor active task of server described in the servo terminal polling;
Receive the processor active task that server issues successively according to the serial number of processor active task;
Or,
The processor active task is pushed to each servo terminal by the server successively according to the serial number of processor active task, described to watch It takes terminal and the small routine offer operational capability is provided.
In the embodiment of the present invention, the first terminal not only refers to a terminal, and refers to all being able to carry out this hair The terminal of bright function, when the quantity of first terminal is on the increase, thing followed processor active task is also on the increase, server It after receiving processor active task, needs to be ranked up each processor active task, generates the processor active task with serial number with preferably The processor active task is distributed to servo terminal.
Also, a kind of mode that the servo terminal obtains processor active task from server is:The servo terminal polling institute State the processor active task of server;The processor active task that server issues successively according to the serial number of processor active task is received, servo terminal is not Break to whether server poll has a processor active task, server receives after the poll of servo terminal then by processor active task according to serial number It is handed down to servo terminal successively, the serial number of the processor active task is ranked up according to the submission time of processor active task, to reach first The effect first handled is submitted, the stand-by period of first terminal user is reduced, it is unofficial specified which, which is suitable for servo terminal, Terminal, the terminal of specified application as described in being equipped with can be used as processor active task as described in servo terminal to server poll. Further, after the completion of servo terminal to server obtains the processor active task simultaneously, corresponding reward can be obtained, to encourage More unofficial designated terminals provide operational capability as servo terminal for the small routine.
The servo terminal from server obtain processor active task another way be:The server is according to processor active task Serial number the processor active task is pushed into each servo terminal successively;Server is watched to multiple successively according to the serial number of processor active task Terminal push processor active task is taken, it is official's designated terminal that the method, which is suitable for servo terminal, and the servo terminal is configured as institute It states small routine and operational capability is provided.
Specifically, a kind of embodiment of the present invention, the processor active task includes task feature, described in the server reception Processor active task distributing the processor active task to servo terminal, including:
The server obtains the task feature of each processor active task;
The task feature that servo terminal can be handled is obtained, the corresponding operation of servo terminal coupling is characterized as according to the task Task.
In the present embodiment, each processor active task includes certain task feature, and the servo terminal will be handled Task feature upload onto the server, the server gets the task feature that servo terminal can be handled, according to the spy Sign is the corresponding processor active task of servo terminal coupling.For example, providing a variety of work(such as picture processing, video processing on small routine Can, the processor active task of picture processing has corresponded to a kind of task feature, and the processor active task of video processing has corresponded to another task spy Sign, and servo terminal C1 only provides a picture to server statement and handles a corresponding task feature, servo terminal C1 is to server Shen Bright offer video handles corresponding task feature and obtains the operation then after server receives the processor active task of first terminal The task of task is characterized in picture processing, then servo terminal C1 is given by the processor active task is to be allocated, when server receives the After the processor active task of one terminal, the obtaining the processor active task of the task is characterized in video processing, then the processor active task is to be allocated Give servo terminal C2.Further, the different size of reward value of each task characteristic matching, when servo terminal is completed to correspond to After the processor active task of task feature, the corresponding reward value of task feature can be obtained.
Further, a kind of embodiment of the invention, the server receive the processor active task to appoint the operation Business is distributed to servo terminal, including:
Server calculates the operand according to the processor active task;
Obtain the operational capability of servo terminal;
It is the corresponding processor active task of servo terminal coupling according to the operand and the operational capability.
Different user is different for complicated degree of the operation in small routine, when complicated degree is higher, the operation of generation The operand of required by task is bigger, and the present embodiment calculates the operand of each processor active task in server, and obtains each The operational capability of a servo terminal, or be operation power, then the operand is that servo terminal coupling is corresponding with operational capability Processor active task, allow the higher processor active task of the complicated degree of the higher servo terminal processes of performance, allow the lower servo terminal of performance Complicated lower processor active task of degree is handled, improves the treatment effeciency of processor active task, while giving the better usage experience of user, no Too long of time or processing failure can be waited for because the too low servo terminal of performance is matched to.
Following application scenarios for elaborating the embodiment of the present invention again, as shown in figure 3, the present invention apply it is small in such as wechat In the resource files such as applet process picture, audio and video, word that program etc. is developed based on WEB specifications, for handling picture It illustrates, for example, user starts small routine " sweet potato animation camera " on first terminal, utilizes small routine " sweet potato animation phase The filter function provided on machine " is added picture P the processing of A filters, and the small routine of first terminal " will carry out picture P Addition A filters processing " generates processor active task and is sent to server (flow in Fig. 3 representated by 1);Server receives the fortune After calculation task, when servo terminal (the servo mobile phone in Fig. 3) obtains processor active task (in Fig. 3 by way of poll to server Flow representated by 2), the processor active task is handed down to servo terminal (flow in Fig. 3 representated by 3) by server;Servo is whole End obtains resource file and the processing mode to the resource file described in processor active task, then starts local and little Cheng automatically Sequence " sweet potato animation camera " associated application program " sweet potato animation camera " controls the specified application and uses servo terminal Operating system SDK handle the resource file according to the processing mode and generate the file destination (stream in Fig. 3 representated by 4 Journey), then file destination is uploaded to server (flow in Fig. 3 representated by 5), file destination is returned to by last server One terminal (flow in Fig. 3 representated by 6) is completed to be added the processing of A filters to picture P on small routine.The present embodiment with For processing picture, it is illustrated how handle picture using remote application, the method can also be used to processing video style and move Shifting, character translation etc. are various to need the file of terminal local application processing or information, those skilled in the art can be according to this hair It is bright to replace the application program of servo terminal local as needed in fact, by rewriting the automatic control program of servo terminal, come The file or information for realizing other types such as processing audio and video, word, extend the operational capability based on WEB specification small routines.
As shown in Fig. 2, the embodiment of the present invention provides a kind of system of the extension based on WEB specification small routine operational capabilities, packet First terminal, server and servo terminal are included, the first terminal is used for the operation in response to user in the small routine, Processor active task is generated to upload onto the server;Comprising pending resource file and to the resource file in the processor active task Processing mode;The server, for receiving the processor active task distributing the distribution task to servo terminal;It is described to watch Terminal is taken, for obtaining the processor active task from the server, obtains the resource file and the place to the resource file Reason mode starts local specified application and handles the resource file generation file destination according to the processing mode, will The file destination is uploaded to the server;The server is additionally operable to the file destination being back to first terminal.
From the first terminal angle of user's operation, in one embodiment, as shown in figure 4, the present invention provides one Method of the kind extension based on WEB specification small routine operational capabilities, includes the following steps:
S10:Operation of the first terminal in response to user in the small routine generates processor active task and uploads onto the server; Include pending resource file and the processing mode to the resource file in the processor active task;
S20:First terminal receives the file destination that server returns, and the file destination is started local by servo terminal Specified application handled after the resource file generates according to the processing mode and be uploaded to the server, the servo Terminal from the server obtains the processor active task to obtain the resource file and to the processing mode of the resource file.
For example, user starts small routine " sweet potato animation camera " on first terminal, small routine " sweet potato animation phase is utilized The filter function provided on machine " is added picture P the processing of A filters, and the small routine of first terminal " will carry out picture P Addition A filters processing " generates processor active task and is sent to server;After server receives the processor active task, when servo terminal Processor active task is obtained to server by way of poll, the processor active task is handed down to servo terminal by server;Servo is whole End obtains resource file and the processing mode to the resource file described in processor active task, then starts local and little Cheng automatically Sequence " sweet potato animation camera " associated application program " sweet potato animation camera " controls the specified application and uses servo terminal Operating system SDK handle the resource file according to the processing mode and generate file destination, then file destination is uploaded to File destination is returned to first terminal by server, last server, and completion is added A filters on small routine to picture P Processing.The present embodiment is for handling picture, it is illustrated how handles picture using remote application, the method can also be used to The various files or information for needing terminal local application processing such as processing video Style Transfer, character translation, people in the art Member according to the present invention can replace the application program of servo terminal local as needed in fact, by rewriting servo terminal Automatic control program, to realize that the file or information of other types such as processing audio and video, word, extension are based on WEB specifications little Cheng The operational capability of sequence.
As shown in figure 5, in another embodiment, the present invention provides a kind of extensions to be based on WEB specification small routine operations The device of ability, which is characterized in that including:
Respond module 10:For the operation in response to user in the small routine, generates processor active task and upload to service Device;Include pending resource file and the processing mode to the resource file in the processor active task
Receiving module 20:File destination for receiving server return, the file destination are started by servo terminal Local specified application handles after the resource file generates according to the processing mode and is uploaded to the server, described Servo terminal obtains the processor active task to obtain the resource file and the processing to the resource file from the server Mode.
In another embodiment, the present invention provides a kind of computer readable storage medium, computer-readable storage mediums Computer program is stored in matter, which realizes the method for processing video frequency described in above-described embodiment when being executed by processor.Its In, the computer readable storage medium include but not limited to any kind of disk (including floppy disk, hard disk, CD, CD-ROM, And magneto-optic disk), ROM (Read-Only Memory, read-only memory), (Random AcceSS Memory, store RAM immediately Device), EPROM (EraSable Programmable Read-Only Memory, Erarable Programmable Read only Memory), (Electrically EraSable Programmable Read-Only Memory, electric erazable programmable is read-only to be deposited EEPROM Reservoir), flash memory, magnetic card or light card.It is, storage device includes by equipment (for example, computer, mobile phone) with energy Any medium for the form storage or transmission information enough read can be read-only memory, disk or CD etc..
A kind of computer readable storage medium provided in an embodiment of the present invention, above-mentioned first terminal, server, servo is whole The achieved function in end be stored in same storage medium, it can be achieved that first terminal in response to user in the small routine Operation, generate processor active task upload onto the server;The processor active task is comprising pending resource file and to the resource The processing mode of file;Server receives the processor active task distributing the processor active task to servo terminal;The servo Terminal obtains the processor active task from the server, obtains the resource file and the processing mode to the resource file, Start local specified application and handle the resource file generation file destination according to the processing mode, by the target File is uploaded to the server;The file destination is back to the first terminal by the server.
On the other hand, a kind of computer readable storage medium provided in an embodiment of the present invention will be achieved by first terminal Function is stored in same storage medium the operation, it can be achieved that in response to user in the small routine, generates on processor active task Pass to server;The processor active task includes pending resource file and the processing mode to the resource file;Receive clothes The file destination that business device returns, the file destination start local specified application according to the processing by servo terminal Mode, which is handled, is uploaded to the server after the resource file generates, the servo terminal obtains the fortune from the server Calculation task is to obtain the resource file and to the processing mode of the resource file.It is a kind of from first terminal by providing Small routine based on WEB specifications initiates processor active task and processor active task is entrusted to the primary of servo terminal by server intermediary Application program completes calculation process, and returns to handling result to first terminal, and the small routine on first terminal can be used indirectly The function of native applications program in servo terminal, extends the operational capability of small routine, and operation can not be used by having broken small routine The limitation of system SDK adds more functions, in conjunction with the operation energy easy to use and servo terminal of small routine for small routine Power improves the user experience using small routine, and need not rewrite the application program in servo terminal in server end, Application program in servo terminal small routine SDK need not be rewritten, can the function of native applications be quickly supplied to little Cheng Sequence.In addition, computer readable storage medium provided by the invention can also be achieved flexibly task feature, the servo according to processor active task The task that terminal can be handled is characterized as servo terminal coupling processor active task appropriate, by the processor active task of different task feature point The different servo terminal of dispensing allows servo terminal that can handle corresponding processor active task according to itself condition, selection, can be with For the different reward value of nonidentity operation characteristic matching, reward provides the servo terminal of operational capability.In addition, meter provided by the invention Calculation machine readable storage medium storing program for executing can also be achieved the flexible operand according to processor active task, the operational capability of servo terminal is servo terminal Processor active task appropriate is matched, allows the higher servo terminal processes of performance are complicated to spend higher processor active task, makes performance lower The complicated lower processor active task of degree of servo terminal processes, improves the treatment effeciency of processor active task, while giving user preferably to make With experience, too long of time or processing failure will not be waited for because the too low servo terminal of performance is matched to.
Computer readable storage medium provided in an embodiment of the present invention may be implemented above-mentioned extension and be based on WEB specifications little Cheng The embodiment of the method for sequence operational capability, concrete function realize the explanation referred in embodiment of the method, and details are not described herein.
In addition, in another embodiment, the present invention also provides a kind of terminals, as shown in fig. 6, the terminal may include One or more than one processor 601 further include memory 602, WiFi (wireless fidelity, Wireless Fidelity) It is circuit 603, RF (Radio Frequency, radio frequency) circuit 604, voicefrequency circuit 605, sensor 606, output equipment 607, defeated Enter equipment 608, power supply 609, processor 601 is the control centre of terminal, utilizes various interfaces and the above each section of connection. It will be understood by those skilled in the art that the restriction of terminal structure shown in Fig. 6 not structure paired terminal, may include than diagram More or fewer components either combine certain components or different components arrangement.
WiFi circuitry 603 can provide WLAN or internet access to the user;It may include antenna, WiFi module Deng.RF circuits 604 can receive and send messages, or signal sends and receivees in communication process;It may include antenna, at least one puts Big device, tuner, one or more oscillators, coupler, duplexer etc..The audio data that voicefrequency circuit 605 can will receive It is converted into electric signal, is transferred to loud speaker, also the voice signal that microphone is collected audio data can be converted to, issue processor 601 processing;Loud speaker, microphone, earphone interface etc. can be arranged in it.Sensor 606 can be used for incuding outer signals, and issue place Device 601 is managed to handle;It may include motion sensor, optical sensor etc..Output equipment 607 can be used for showing various signals;It can For using LCD (Liquid Crystal Display, liquid crystal display), OLED (Organic Light-Emitting Diode, Organic Light Emitting Diode) etc. forms configure display panel.Input equipment 604 can be used for inputting the letters such as number and character Breath;It can be physical button, touch panel etc..Power supply 609 can be that terminal each section is powered, and pass through power-supply management system and processing 609 logical connection of device;It may include one or more direct current or AC power, charging system, power supply status indicator Equal components.Memory 602 can be used for storing software program and module;It can be computer readable storage medium, be specifically Hard disk, flash memory etc..Processor is the control centre of terminal, by running or executing the software program being stored in memory 602 And/or module, and the data for being stored in memory 602 are called, execute terminal various functions, processing terminal data.
As one embodiment, terminal includes:One or more processors 601, memory 602, one or more application Program, wherein one or more of application programs are stored in memory 602 and are configured as by one or more of Processor 601 executes, and one or more of programs are configured to carry out the extension WEB specification small routines described in above example The method of operational capability.One or more processors 603 shown in Fig. 6 are able to carry out, realize and respond mould shown in Fig. 5 The function of block 10, receiving module 20.
A kind of terminal provided in an embodiment of the present invention generates, it can be achieved that operation in response to user in the small routine Processor active task is uploaded onto the server;The processor active task includes pending resource file and the processing side to the resource file Formula;The file destination that server returns is received, the file destination starts local specified application by servo terminal and presses It is uploaded to the server after being generated according to the processing mode processing resource file, the servo terminal is from the server The processor active task is obtained to obtain the resource file and to the processing mode of the resource file.It is a kind of from the by providing The small routine based on WEB specifications in one terminal initiates processor active task and processor active task is entrusted to servo by server intermediary The native applications program of terminal completes calculation process, and returns to handling result to first terminal, allows small routine on first terminal Can indirectly use servo terminal on native applications program function, extend the operational capability of small routine, broken small routine without Method uses the limitation of operating system SDK, more functions is added for small routine, in conjunction with the easy to use and servo of small routine The operational capability of terminal improves the user experience using small routine, and need not take the application program in servo terminal Business device end is rewritten, and need not also be rewritten the small routine SDK of the application program in servo terminal, can be quickly by native applications Function is supplied to small routine.In addition, terminal provided by the invention can also be achieved flexibly task feature, the servo according to processor active task The task that terminal can be handled is characterized as servo terminal coupling processor active task appropriate, by the processor active task of different task feature point The different servo terminal of dispensing allows servo terminal that can handle corresponding processor active task according to itself condition, selection, can be with For the different reward value of nonidentity operation characteristic matching, reward provides the servo terminal of operational capability.In addition, end provided by the invention End can also be achieved the flexible operand according to processor active task, the operational capability of servo terminal is the operation appropriate of servo terminal coupling Task allows the higher servo terminal processes of performance are complicated to spend higher processor active task, makes the lower servo terminal processes of performance numerous The lower processor active task of miscellaneous degree, improves the treatment effeciency of processor active task, while giving the better usage experience of user, will not be because of It is matched to the too low servo terminal of performance and waits for too long of time or processing failure.
The side of the extension WEB specification small routine operational capabilities of above-mentioned offer may be implemented in terminal provided in an embodiment of the present invention The embodiment of method, concrete function realize the explanation referred in embodiment of the method, and details are not described herein.
The above is only some embodiments of the present invention, it is noted that for the ordinary skill people of the art For member, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also answered It is considered as protection scope of the present invention.

Claims (10)

1. a kind of method of the extension based on WEB specification small routine operational capabilities is applied to include first terminal, server and servo The system of terminal, it is characterised in that:
Operation of the first terminal in response to user in the small routine generates processor active task and uploads onto the server;It is described Processor active task includes pending resource file and the processing mode to the resource file;
The server receives the processor active task distributing the processor active task to servo terminal;
The servo terminal obtains the processor active task from the server, obtains the resource file and to the resource file Processing mode, start local specified application and handle the resource file according to the processing mode and generate target text The file destination is uploaded to the server by part;
The file destination is back to the first terminal by the server.
2. according to the method described in claim 1, it is characterized in that, the small routine is associated with the specified application, It is described to start local specified application according to the processing mode processing resource file generation file destination, including:
Servo terminal start local in the associated specified application of the small routine;
It parses the processor active task and obtains the resource file and the processing mode to the resource file;
It controls the specified application and handles the resource according to the processing mode using the operating system SDK of servo terminal File generated file destination.
3. according to the method described in claim 1, it is characterized in that, after the server reception processor active task, also wrap It includes:The processor active task is sorted, the processor active task with serial number is generated;
The servo terminal obtains the processor active task from the server, including:
The processor active task of server described in the servo terminal polling;
Receive the processor active task that server issues successively according to the serial number of processor active task;
Or,
The processor active task is pushed to each servo terminal by the server successively according to the serial number of processor active task, and the servo is whole End is configured as the small routine and provides operational capability.
4. according to the method described in claim 1, it is characterized in that, the processor active task includes task feature, the server The processor active task is received distributing the processor active task to servo terminal, including:
The server obtains the task feature of each processor active task;
The task feature that servo terminal can be handled is obtained, is characterized as that the corresponding operation of servo terminal coupling is appointed according to the task Business.
5. according to the method described in claim 1, it is characterized in that, the server receives the processor active task with by the fortune Calculation task is distributed to servo terminal, including:
Server calculates the operand according to the processor active task;
Obtain the operational capability of servo terminal;
It is the corresponding processor active task of servo terminal coupling according to the operand and the operational capability.
6. a kind of method of the extension based on WEB specification small routine operational capabilities, which is characterized in that including:
Operation of the first terminal in response to user in the small routine generates processor active task and uploads onto the server;The operation Task includes pending resource file and the processing mode to the resource file;
First terminal receives the file destination that server returns, and the file destination starts the specified of local by servo terminal and answers It is handled according to the processing mode with program and is uploaded to the server after the resource file generates, the servo terminal is from institute It states server and obtains the processor active task to obtain the resource file and to the processing mode of the resource file.
7. a kind of system of the extension based on WEB specification small routine operational capabilities, including first terminal, server and servo terminal, It is characterized in that:
The first terminal generates processor active task and uploads onto the server for the operation in response to user in the small routine; The processor active task includes pending resource file and the processing mode to the resource file;
The server, for receiving the processor active task distributing the processor active task to servo terminal;
The servo terminal obtains the resource file and to the money for obtaining the processor active task from the server The processing mode of source file starts local specified application and handles the resource file generation mesh according to the processing mode File is marked, the file destination is uploaded to the server;
The server is additionally operable to the file destination being back to the first terminal.
8. a kind of device of the extension based on WEB specification small routine operational capabilities, which is characterized in that including:
Respond module:For the operation in response to user in the small routine, generates processor active task and upload onto the server;It is described Processor active task includes pending resource file and the processing mode to the resource file;
Receiving module:File destination for receiving server return, the file destination start local by servo terminal Specified application handles according to the processing mode and is uploaded to the server after the resource file generates, and the servo is whole End from the server obtains the processor active task to obtain the resource file and to the processing mode of the resource file.
9. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium Program realizes that the extension described in claim 1-5 or 6 any one is based on WEB specifications little Cheng when the program is executed by processor The method of sequence operational capability.
10. a kind of terminal, which is characterized in that including:
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured To be executed by one or more of processors, one or more of application programs are configured to carry out according to claim 6 Method of the extension based on WEB specification small routine operational capabilities.
CN201810403402.4A 2018-04-28 2018-04-28 Extend method, system and storage medium based on WEB specification small routine operational capabilities Pending CN108664342A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810403402.4A CN108664342A (en) 2018-04-28 2018-04-28 Extend method, system and storage medium based on WEB specification small routine operational capabilities

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810403402.4A CN108664342A (en) 2018-04-28 2018-04-28 Extend method, system and storage medium based on WEB specification small routine operational capabilities

Publications (1)

Publication Number Publication Date
CN108664342A true CN108664342A (en) 2018-10-16

Family

ID=63781529

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810403402.4A Pending CN108664342A (en) 2018-04-28 2018-04-28 Extend method, system and storage medium based on WEB specification small routine operational capabilities

Country Status (1)

Country Link
CN (1) CN108664342A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865855A (en) * 2019-11-18 2020-03-06 百度在线网络技术(北京)有限公司 Applet processing method and related device
CN111339031A (en) * 2020-02-25 2020-06-26 广州拉卡拉信息技术有限公司 Task processing method and device, electronic equipment and computer readable storage medium
CN111815291A (en) * 2020-07-20 2020-10-23 上海上咨工程造价咨询有限公司 Cloud computing-based engineering cost multi-calculation management method and system and storage medium thereof
CN112217711A (en) * 2020-09-14 2021-01-12 武汉理工大学 Method and system for calling local function by WeChat client

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010044819A1 (en) * 1997-11-07 2001-11-22 International Business Machines Corporation Relay server for unsigned applets
US6747754B1 (en) * 1999-07-22 2004-06-08 Panasonic Communications Co., Ltd. Image processing apparatus and its status information notifying method
CN101557551A (en) * 2009-05-11 2009-10-14 成都市华为赛门铁克科技有限公司 Cloud service accessing method, device and communication system thereof for mobile terminal
CN103607431A (en) * 2013-10-31 2014-02-26 小米科技有限责任公司 Mobile terminal resource processing method, apparatus and equipment thereof
CN103995748A (en) * 2014-05-15 2014-08-20 乐视致新电子科技(天津)有限公司 Intelligent terminal task processing method and system
CN107045508A (en) * 2016-02-05 2017-08-15 腾讯科技(深圳)有限公司 The treating method and apparatus of application program

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010044819A1 (en) * 1997-11-07 2001-11-22 International Business Machines Corporation Relay server for unsigned applets
US6747754B1 (en) * 1999-07-22 2004-06-08 Panasonic Communications Co., Ltd. Image processing apparatus and its status information notifying method
CN101557551A (en) * 2009-05-11 2009-10-14 成都市华为赛门铁克科技有限公司 Cloud service accessing method, device and communication system thereof for mobile terminal
CN103607431A (en) * 2013-10-31 2014-02-26 小米科技有限责任公司 Mobile terminal resource processing method, apparatus and equipment thereof
CN103995748A (en) * 2014-05-15 2014-08-20 乐视致新电子科技(天津)有限公司 Intelligent terminal task processing method and system
CN107045508A (en) * 2016-02-05 2017-08-15 腾讯科技(深圳)有限公司 The treating method and apparatus of application program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110865855A (en) * 2019-11-18 2020-03-06 百度在线网络技术(北京)有限公司 Applet processing method and related device
CN110865855B (en) * 2019-11-18 2023-10-27 百度在线网络技术(北京)有限公司 Applet processing method and related equipment
CN111339031A (en) * 2020-02-25 2020-06-26 广州拉卡拉信息技术有限公司 Task processing method and device, electronic equipment and computer readable storage medium
CN111815291A (en) * 2020-07-20 2020-10-23 上海上咨工程造价咨询有限公司 Cloud computing-based engineering cost multi-calculation management method and system and storage medium thereof
CN111815291B (en) * 2020-07-20 2024-05-31 上海上咨工程造价咨询有限公司 Project cost multi-calculation management method and system based on cloud computing and storage medium thereof
CN112217711A (en) * 2020-09-14 2021-01-12 武汉理工大学 Method and system for calling local function by WeChat client

Similar Documents

Publication Publication Date Title
CN108664342A (en) Extend method, system and storage medium based on WEB specification small routine operational capabilities
CN104067257B (en) Automate event management system, management event method and event management system
US20110214115A1 (en) Method and appartus for providing a high level mobile virtual machine
CN109395395A (en) Game running method and Related product
CN106598678A (en) Method and device for supplying application installation packages to terminal equipment
CN107688538A (en) A kind of script execution, device and computing device
JP2022518127A (en) Resource scheduling methods and equipment, electronic devices and recording media
US9213638B1 (en) Runtime memory management using multiple memory managers
CN109729519A (en) The method and relevant apparatus of data downloading
CN112579048A (en) Applet integration method, device, electronic equipment and storage medium
EP3570567B1 (en) Method and device for operating instance resources
CN108404416A (en) Game matching interactive approach, device and readable storage medium storing program for executing
CN113849302A (en) Task execution method and device, storage medium and electronic device
CN112506584A (en) Resource file loading method, device, equipment, storage medium and product
US20110167405A1 (en) Application building system, method and computer-readable medium
CN114327349B (en) Smart card determining method and device, storage medium and electronic device
CN105137750A (en) Method realizing data transmission of intelligent watch, device and intelligent watch
CN110941634A (en) Data processing method and device, storage medium and electronic device
CN109032693A (en) Method and device for loading display information, electronic equipment and readable storage medium
CN108170383A (en) A kind of method and relevant apparatus that printing is realized based on terminal device
CN103631621A (en) Method and device for prompting information
CN109285028A (en) Business data processing method and device, storage medium and electronic equipment
US9661491B1 (en) Communicating information about an update of an application
CN109766489A (en) Data processing method, client, server and computer readable storage medium
CN105653290B (en) Data interactive method and system

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