CN104683308B - The method and apparatus executed instruction - Google Patents
The method and apparatus executed instruction Download PDFInfo
- Publication number
- CN104683308B CN104683308B CN201310634274.1A CN201310634274A CN104683308B CN 104683308 B CN104683308 B CN 104683308B CN 201310634274 A CN201310634274 A CN 201310634274A CN 104683308 B CN104683308 B CN 104683308B
- Authority
- CN
- China
- Prior art keywords
- interface
- file
- realizes
- spare
- client
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Abstract
The invention discloses a kind of method and apparatus executed instruction, belong to technical field of cloud.Client has spare interface, the interface of the spare interface realizes that file is stored in server, the described method includes: receiving operational order, the operational order is used to indicate the specified operation of the client executing, and the operational order carries the corresponding spare interface of the specified operation;Judge whether the client preserves the interface realization file of the spare interface;If so, running the interface realizes file, to execute the specified operation;If not, ignoring the operational order.The present invention passes through client reserves interface, and the interface of spare interface realization file is stored in server, when the client receives operational order, interface realization file could be run by currently preserving in the client when interface realizes file, so that attacker is difficult to find that interface realizes file, it ensure that interface realizes the concealment of file, improve the security performance of system.
Description
Technical field
The present invention relates to technical field of cloud, in particular to a kind of method and apparatus executed instruction.
Background technique
With the development of cloud technology, cloud server can send cloud instruction to mobile device, to indicate mobile device
Operation is executed, in the process, mobile device saves the interface run needed for realizing multiple operations and realizes file, so that when movement
When equipment receives cloud instruction, runs the indicated interface of cloud instruction and realize file, to realize the operation.
In the implementation of the present invention, the inventor finds that the existing technology has at least the following problems: being protected by mobile device
Deposit interface realize file, then attacker be very easy to find these interfaces realize file, and dock cause for gossip show file progress decompiling,
The operation such as static debugging or dynamic debugging, safety are poor.
Summary of the invention
In order to solve problems in the prior art, the embodiment of the invention provides a kind of method and apparatus executed instruction.Institute
It is as follows to state technical solution:
In a first aspect, providing a kind of method executed instruction, client has spare interface, and the spare interface connects
Cause for gossip shows file and is stored in server, which comprises
Operational order is received, the operational order is used to indicate the specified operation of the client executing, the operational order
Carry the corresponding spare interface of the specified operation;
Judge whether the client preserves the interface realization file of the spare interface from the server;
When preserving the interface realization file, runs the interface and realize file, to execute the specified operation;
Or, ignoring the operational order when not saving the interface realization file.
Second aspect provides a kind of method executed instruction, which comprises
The interface for receiving client realizes file request, and the interface realizes that file request carries spare interface information;
Judge in preset task information whether to include the spare interface information, the preset task information includes multiple need
The interface to be called;
When the preset task information includes the spare interface information, realized in file from multiple interfaces of preservation,
The interface for obtaining the spare interface realizes file;
To the client transmission interface configuration information, the interface that the interface configuration information includes at least the acquisition is real
Existing file, so that the client runs the interface and realizes file.
The third aspect, provides a kind of device executed instruction, and local terminal has spare interface, the interface of the spare interface
Realize that file is stored in server, described device includes:
Command reception module, for receiving operational order, the operational order is used to indicate the local terminal and executes specified behaviour
Make, the operational order carries the corresponding spare interface of the specified operation;
Judgment module, for judging whether the local terminal preserves the interface of the spare interface from the server
Realize file;
Operation executing module, for running the interface and realizing file, to hold when preserving the interface realization file
The row specified operation;
Or, operation executing module is also used to ignore the operational order when not saving the interface realization file.
Fourth aspect, provides a kind of device executed instruction, and described device includes:
Request receiving module, the interface for receiving client realize file request, and the interface realizes that file request is taken
Band spare interface information;
Judgment module, for judging in preset task information whether to include the spare interface information, the preset task
Information includes multiple interfaces for needing to call;
File acquisition module, for when the preset task information includes the spare interface information, from the more of preservation
A interface realizes in file that the interface for obtaining the spare interface realizes file;
Configuration information sending module, for the client transmission interface configuration information, the interface configuration information to be extremely
The interface including the acquisition realizes file less, so that the client runs the interface and realizes file.
Technical solution provided in an embodiment of the present invention has the benefit that
Method and apparatus provided in an embodiment of the present invention, by client reserves interface, and by the interface of the spare interface
It realizes that file saves in the server, realizes text since the client might not preserve the interface from the server
Part currently preserves the corresponding spare interface of the operational order in the client when the client receives operational order
Interface could run the interface and realize file when realizing file, and do not save when the interface realizes file in the client and then cannot
It runs the interface and realizes file, so that attacker is difficult to find that the interface realizes file, ensure that interface realizes the hidden of file
Property, improve the security performance of system.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for
For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is a kind of flow chart of method executed instruction provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of method executed instruction provided in an embodiment of the present invention;
Fig. 3 is a kind of flow chart of method executed instruction provided in an embodiment of the present invention;
Fig. 4 is a kind of apparatus structure schematic diagram executed instruction provided in an embodiment of the present invention;
Fig. 5 is a kind of apparatus structure schematic diagram executed instruction provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts
Example, shall fall within the protection scope of the present invention.
Fig. 1 is a kind of flow chart of method executed instruction provided in an embodiment of the present invention.The execution of the inventive embodiments
Main body is client, and client has spare interface, and the interface of the spare interface realizes that file is stored in server, referring to figure
1, which comprises
101, operational order is received, which is used to indicate the specified operation of the client executing, which takes
The corresponding spare interface of operation is specified with this.
102, judge whether the client preserves the interface realization file of the spare interface from the server, if
It is to execute step 103, if not, executing step 104.
103, it runs the interface and realizes file, to execute the specified operation.
104, ignore the operational order.
Method provided in an embodiment of the present invention realizes text by client reserves interface, and by the interface of the spare interface
Part saves in the server, file is realized since the client might not preserve the interface from the server, when this
When client receives operational order, realized in the interface that the client currently preserves the corresponding spare interface of the operational order
The interface could be run when file and realizes file, and cannot then be run this when the client does not save interface realization file and be connect
Cause for gossip shows file, so that attacker is difficult to find that the interface realizes file, ensure that interface realizes the concealment of file, improves
The security performance of system.
Optionally, this method further include:
According to interface requests condition, interface configuration information is obtained from the server, which includes at least and connect
Cause for gossip shows file;
The interface is realized that file correspondence is stored in the spare interface mapped address.
Optionally, interface realization file is corresponded to after being stored in the spare interface mapped address, this method
Further include:
It runs the interface and realizes file.
Optionally, which includes predetermined time and/or predetermined registration operation.
Optionally, this method further include:
When the interface configuration information include the interface realize file deletion mark when, run the interface realize file it
Afterwards, it deletes the interface and realizes file.
Optionally, which includes that the interface realizes that the corresponding default reservation duration of file, this method are also wrapped
It includes:
When the duration retained after receiving the interface and realizing file reaches the default reservation duration, interface reality is deleted
Existing file.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer
It repeats one by one.
Fig. 2 is a kind of flow chart of method executed instruction provided in an embodiment of the present invention.The execution of the inventive embodiments
Main body is server, referring to fig. 2, which comprises
201, the interface for receiving client realizes file request, which realizes that file request carries spare interface information.
202, judge in preset task information whether to include the spare interface information, which includes multiple need
The interface to be called.
203, it when the preset task information includes the spare interface information, is realized in file from multiple interfaces of preservation,
The interface for obtaining the spare interface realizes file.
204, to the client transmission interface configuration information, the interface which includes at least the acquisition is realized
File, so that the client runs the interface and realizes file.
Method provided in an embodiment of the present invention realizes text by client reserves interface, and by the interface of the spare interface
Part saves in the server, file is realized since the client might not preserve the interface from the server, when this
When client receives operational order, realized in the interface that the client currently preserves the corresponding spare interface of the operational order
When file, the interface could be run and realize file, and this cannot then be run by not saving when the interface realizes file in the client
Interface realizes file, so that attacker is difficult to find that the interface realizes file, ensure that interface realizes the concealment of file, improves
The security performance of system.
Optionally, when the interface of the spare interface realizes that file has deletion mark, the interface configuration information is also
It is identified including the deletion, so that the client is deleted after the interface for running the spare interface realizes file according to described
Except mark, deletes the interface and realize file.
Optionally, which includes multiple corresponding default reservation durations of interface for needing to call, correspondingly,
The interface configuration information includes that the interface realizes that file and the interface realize the corresponding default reservation duration of file, so that the visitor
Family end when the duration that retains after running the interface and realizing file reaches the interface and realizes the corresponding default reservation duration of file,
It deletes the interface and realizes file.
All the above alternatives can form alternative embodiment of the invention using any combination, herein no longer
It repeats one by one.
Fig. 3 is a kind of flow chart of method executed instruction provided in an embodiment of the present invention.The execution of the inventive embodiments
Main body is client, which has spare interface, and the interface of the spare interface realizes that file is stored in server, referring to figure
3, which comprises
301, when reaching predetermined time, which obtains interface configuration information, the interface configuration information from server
File is realized including at least interface.
Wherein, which has one or more spare interfaces, and each spare interface is corresponding with interface and realizes file, in advance
Staying interface can be API(Application Programming Interface, application programming interface), the interface is real
Existing file can be so file, jar(Java Archive, Java archive file) file or dex file etc..It should by operation
The interface of one or more spare interfaces realizes file, and operation corresponding to the one or more spare interface may be implemented.This
Inventive embodiments are only illustrated by taking a spare interface as an example, and the process of multiple spare interfaces is similar, no longer superfluous herein
It states.
Wherein, which can correspond to a specific operation, and the interface for running the spare interface realizes file i.e.
The specific operation can be achieved.Such as, the corresponding operation of spare interface A is deletes file a, then reserved connects when the client runs this
When the interface of mouth A realizes file, file a can be deleted.The spare interface can also correspond to a generic operation, then the client can be with
According to the operation object carried in the operational order received, the interface for running the spare interface realizes file, to realize one
Specific operation.Such as, the corresponding operation of spare interface A is deletes file operation, then when the client receives, carrying is reserved to be connect
Mouthful A and when the operational order of operation object " file b ", the interface for running spare interface A to operation object " file b " realizes text
Part can delete file b.
In embodiments of the present invention, which can preset specified operation, and be the preset specified behaviour
Make spare interface, the interface of the spare interface is realized that file is stored in the server, and this is specified except operation
Operation, the client can not spare interface, and by these operation interface realize file be stored in the client.Wherein,
The specified operation and the spare interface can be set by technical staff in exploitation, can also according to current network conditions or
The business demand of the server is set, and it is not limited in the embodiment of the present invention.
Specifically, when reaching predetermined time, which realizes file request, the interface to the server transmission interface
Realize that file request can carry spare interface information.The server presets preset task information, the preset task information
Including multiple interfaces for needing to call, when the server, which receives the interface, realizes file request, judge that the preset task is believed
Whether include the spare interface information in breath, when the preset task information includes the spare interface information, shows that this is reserved and connect
Mouth needs to call, then the server is realized in file from multiple interfaces of preservation, and the interface for obtaining the spare interface realizes file,
And to the client transmission interface configuration information, the interface which includes at least the spare interface realizes file,
It can also include the default reservation duration etc. that the interface realizes file., certainly, which realizes that file request can also be and is used for
The request for accessing server network address, when the network address is accessed, server returns to interface to client and realizes file.
It should be noted that the client realizes that file is asked in transmission interface for multiple spare interfaces of the client
When asking, all spare interface information can be once carried, so that the server returns to one or more interfaces and realizes file, or
Person's client successively sends corresponding interface according to the priority of multiple spare interface and realizes file request or the client
End is that multiple spare interface sets different interface requests conditions, and according to the different interface requests condition, sending respectively should
The corresponding interface of multiple spare interfaces realizes file request, and it is not limited in the embodiment of the present invention.
In embodiments of the present invention, which can preset the preset task information, which uses
The interface called is needed in instruction, it can think, the interface which includes is required to the client call, should
Preset task information interface not to be covered does not need the client call.The server is determined according to the preset task information
The no interface for returning to the spare interface realizes file, when the server determines that the preset task information includes the spare interface,
The interface of the spare interface is realized that file is sent to the client by the server.And in another reality provided in an embodiment of the present invention
It applies in example, when the server determines that the preset task information does not include the spare interface, shows that the spare interface does not need to adjust
With then the server sends refuse information to the client, and the interface of the spare interface is realized that file is sent to the visitor by refusal
Family end.
Such as, it is assumed that the predetermined time is daily 8:00, and the preset task information includes closing the task of specified process, phase
It answers, which includes the interface realization file for executing the required by task for closing specified process, then reaches when daily
When 8:00, which realizes file request to the server transmission interface, which realizes that file request carries to close and specify
The spare interface of process, then the server is determining that the preset task information includes executing the required by task for closing specified process
Interface realizes file, that is, returns to the interface and realize file, so that the client is when receiving interface realization file, operation should
Interface realizes file, to close specified process.And pass is executed when task management personnel delete in the preset task information
When the task and corresponding interface for closing specified process realize file, which sends the interface in 8:00 again and realizes file
When request, it includes the interface realization text for executing the required by task for closing specified process which, which determines the preset task information not,
Part, then the server sends refuse information to the client.
Wherein, which can also include client identification, and the client identification is for distinguishing different visitors
The mission bit stream at family end, that is to say, for different clients, which includes that each client needs call
Interface and each client need the interface of calling interface to realize file.The client sends interface reality to the server
When existing file request, which realizes that file request carries the client identification, realizes text when the server receives the interface
When part is requested, according to the client identification, the interface that the client needs to call is determined, and then determination needs to return to the client
The interface at end realizes file.Calling corresponding to the interface that the preset task information can also need to call including multiple client
Period etc. can be preset by technical staff, or be set according to the business demand of current Network status and server
Fixed, it is not limited in the embodiment of the present invention.
Such as, the preset task information of the server is the installation program of client of Pekinese's client Uninstaller A, Shanghai
B, then when the server receive the client interface realize file request, and according to the interface realize file request carry
Client identification determines the position of client installation at Beijing, and it is real to send the corresponding interface of Uninstaller A to the client
Existing file, alternatively, realizing that file is asked when the interface that the server receives the client realizes file request, and according to the interface
It is corresponding to send installation procedure B to the client at Shanghai for the position for asking the client identification of carrying to determine client installation
Interface realize file.
In practical applications, which can preset interface requests condition, ask when the client meets the interface
When seeking condition, file request is realized to the server transmission interface.Wherein, the interface requests condition include predetermined time and/or
Predetermined registration operation.The embodiment of the present invention is with when reaching predetermined time, which realizes that file is asked to the server transmission interface
It is illustrated for asking, and in another embodiment provided in an embodiment of the present invention, which can be by following steps generation
It replaces: when the client detects the predetermined registration operation, file request is realized to the server transmission interface, alternatively, working as the client
File request is realized when the predetermined time detects the predetermined registration operation, to the server transmission interface in end.
Wherein, which can be operation, operation for connecting network etc. of the unlatching client, the embodiment of the present invention
It does not limit this.
302, the interface is realized that file correspondence is stored in the spare interface mapped address by the client.
In embodiments of the present invention, each spare interface maps an address, which is getting the spare interface
Interface when realizing file, which is realized in the corresponding address for being stored in spare interface mapping of file, so that the client
The subsequent address that can be mapped according to the spare interface is held, the interface is run and realizes file.
After the step 302, this method further include: run the interface and realize file.It in embodiments of the present invention, can be with
Default setting is to run after interface realization file is stored in the spare interface mapped address by the client
The interface realizes file.Certainly, interface realization file is stored in the spare interface mapped address in the client
When, the interface can not be run and realize file, but when receiving corresponding operation instruction, the interface that reruns realizes text
Part.
It should be noted that the client realizes text to the server transmission interface in the step 301 and step 302
Part request, the server return to interface and realize file.And in practical applications, which can also believe according to the preset task
Breath initiatively sends the interface for needing to run to the client and realizes file, so that the client runs the interface and realizes file,
Thereby executing the task of server distribution.
303, the client receives operational order, which is used to indicate the specified operation of the client executing, the behaviour
Making instruction carrying, this specifies the corresponding spare interface of operation.
Wherein, which can be triggered by user, the server other than the server triggers or the server touches
Hair, it is not limited in the embodiment of the present invention.The specified operation can be picture processing operation, the operation of deletion file, display
The operation of information, the operation of installation procedure, the operation of Uninstaller or the operation for closing process etc., the embodiment of the present invention is to this
Without limitation.
In embodiments of the present invention, which can be one of predetermined registration operation, may not be predetermined registration operation.
When the specified operation is predetermined registration operation, which executes step 301, when receiving the operational order to request this pre-
The interface of interface is stayed to realize file;When the specified operation is not predetermined registration operation, and the client receive the operational order when
When quarter is not the predetermined time, which can't realize file request to the server transmission interface, but execute step
304。
304, judge whether the client preserves the interface realization file of the spare interface from the server, if
It is to execute step 305, if not, terminating.
In embodiments of the present invention, attacker has found that the interface of the spare interface realizes file, the client in order to prevent
The interface that the server is sent before may needing to delete realizes file, then receives the operational order in the client, need
First judge whether the current client also preserves the interface and realize file.
Specifically, which maps an address, and the address of spare interface mapping is for saving the spare interface
Interface realize file, the client query spare interface mapping address, when determine the spare interface mapping address not
When for address blank, it can determine that the client preserves the interface and realizes file, when the address for determining spare interface mapping is
When address blank, it can determine that the client does not save the interface and realizes file.
305, it when the client, which preserves the interface, realizes file, runs the interface and realizes file, it is specified to execute this
Operation.
Those skilled in the art can know that interface realizes that file is in fact the code for executing certain functions,
Client can run the corresponding interface of the interface and realize file by calling interface.
In embodiments of the present invention, when the client, which preserves the interface, realizes file, the spare interface is called, according to
The address of spare interface mapping runs the interface and realizes file, to realize the specified operation.
In another embodiment provided in an embodiment of the present invention, which can be replaced by following steps: as the client
When end does not save interface realization file, ignore the operational order.
306, when the interface configuration information includes the deletion mark that the interface realizes file, text is realized running the interface
After part, deletes the interface and realize file.
Wherein, which includes multiple interfaces for needing to call, when the server determines either interface needs
It can be that mark is deleted in interface addition, deletion mark be used to indicate the client, and in operation, this is connect when deleting after operation
The interface of mouth deletes interface realization file after realizing file.Needing to add the interface deleted and identified can be set by technical staff
It is fixed, or set according to the demand for security of interface, it is not limited in the embodiment of the present invention.
In embodiments of the present invention, when the spare interface carries deletion mark, which is sent to the client
Interface configuration information also include the spare interface deletion mark so that the client run the interface realize file it
Afterwards, it deletes the interface and realizes file.
Wherein, which can delete the interface at once and realize file after running the interface and realizing file, can also
It the interface is deleted after preset duration again realizes file to wait.The preset duration can be determined by the server, and be added to this
It deletes in mark, can also be determined by the client, it is not limited in the embodiment of the present invention.
It should be noted that whether the step 306 includes that the interface is realized according to the interface configuration information with the client
The deletion of file identifies, it is determined whether needs to carry out for deleting interface realization file after running the interface and realizing file
Explanation.And in fact, can also realize that file configuration allows the client to save by the interface that the server is the spare interface
The interface realizes the duration of file, that is to say that default reservation duration should that is, in another embodiment provided in an embodiment of the present invention
Preset task information includes multiple corresponding default reservation durations of interface for needing to call, which includes the interface
Realize that file and the interface realize the corresponding default reservation duration of file, correspondingly, the step 306 includes: when the client
It receives the interface and realizes that the duration retained after file reaches that this is default when retaining duration, deletes the interface and realizes file.
Different from the preset duration, which refers to that the client is protected after receiving the interface configuration information
The duration stayed that is to say that receiving the interface realizes the duration retained after file.The client is receiving interface realization text
When part, start timing, when timing time reaches the default reservation duration, no matter whether the client ran interface realization
The interface will be realized that file is deleted by file, the client.
Wherein, which can be preset by technical staff, or the peace of file is realized according to the interface
Full demand setting, it is not limited in the embodiment of the present invention.
Method provided in an embodiment of the present invention realizes text by client reserves interface, and by the interface of the spare interface
Part saves in the server, file is realized since the client might not preserve the interface from the server, when this
When client receives operational order, realized in the interface that the client currently preserves the corresponding spare interface of the operational order
When file, the interface could be run and realize file, and this cannot then be run by not saving when the interface realizes file in the client
Interface realizes file, so that attacker is difficult to find that the interface realizes file, ensure that interface realizes the concealment of file, improves
The security performance of system.
Fig. 4 is a kind of apparatus structure schematic diagram executed instruction provided in an embodiment of the present invention, and local terminal has spare interface,
The interface of the spare interface realizes that file is stored in server, referring to fig. 4, described device include: command reception module 401,
Judgment module 402, operation executing module 403,
Wherein, for command reception module 401 for receiving operational order, it is specified which is used to indicate local terminal execution
Operation, the operational order carry this and specify the corresponding spare interface of operation;Judgment module 402 is connect with command reception module 401,
For judging whether the local terminal preserves the interface realization file of the spare interface from the server;Operation executing module
403 connect with judgment module 402, for running the interface and realizing file, be somebody's turn to do with executing when preserving interface realization file
Specified operation;Or, operation executing module 403 is also used to ignore the operational order when not saving interface realization file.
Optionally, which includes:
Configuration information obtains module, for obtaining interface configuration information from the server, this connects according to interface requests condition
Mouth configuration information includes at least interface and realizes file;
Preserving module, for the interface to be realized that file correspondence is stored in the spare interface mapped address.
Optionally, which includes:
Module is run, for after the interface being realized to, file correspondence is stored in the spare interface mapped address
It runs the interface and realizes file.
Optionally, which includes predetermined time and/or predetermined registration operation.
Optionally, which includes:
First removing module, for transporting when the interface configuration information includes the deletion mark that the interface realizes file
After the row interface realizes file, deletes the interface and realize file.
Optionally, which includes that the interface realizes the corresponding default reservation duration of file, which includes:
Second removing module, when the duration for retaining after receiving the interface and realizing file reaches the default reservation
When long, delete the interface and realize file.
Device provided in an embodiment of the present invention realizes text by client reserves interface, and by the interface of the spare interface
Part saves in the server, file is realized since the client might not preserve the interface from the server, when this
When client receives operational order, realized in the interface that the client currently preserves the corresponding spare interface of the operational order
The interface could be run when file and realizes file, and cannot then be run this when the client does not save interface realization file and be connect
Cause for gossip shows file, so that attacker is difficult to find that the interface realizes file, ensure that interface realizes the concealment of file, improves
The security performance of system.
Fig. 5 is a kind of apparatus structure schematic diagram executed instruction provided in an embodiment of the present invention, referring to Fig. 5, described device
It include: request receiving module 501, judgment module 502, file acquisition module 503, configuration information sending module 504,
Wherein, the interface that request receiving module 501 is used to receive client realizes file request, which realizes that file is asked
It asks and carries spare interface information;Judgment module 502 is connect with request receiving module 501, is in preset task information for judging
No includes the spare interface information, which includes multiple interfaces for needing to call;File acquisition module 503 with sentence
Disconnected module 502 connects, for realizing text from multiple interfaces of preservation when the preset task information includes the spare interface information
In part, the interface for obtaining the spare interface realizes file;Configuration information sending module 504 is connect with file acquisition module 503, is used
In to the client transmission interface configuration information, the interface which includes at least the acquisition realizes file, so that
The client runs the interface and realizes file.
Optionally, when the interface of the spare interface realizes that file has deletion mark, which further includes
Deletion mark, so that the client identifies after the interface for running the spare interface realizes file according to the deletion, deleting should
Interface realizes file.
Optionally, which includes multiple corresponding default reservation durations of interface for needing to call, correspondingly,
The interface configuration information includes that the interface realizes that file and the interface realize the corresponding default reservation duration of file, so that the visitor
Family end when the duration that retains after running the interface and realizing file reaches the interface and realizes the corresponding default reservation duration of file,
It deletes the interface and realizes file.
Device provided in an embodiment of the present invention realizes text by client reserves interface, and by the interface of the spare interface
Part saves in the server, file is realized since the client might not preserve the interface from the server, when this
When client receives operational order, realized in the interface that the client currently preserves the corresponding spare interface of the operational order
The interface could be run when file and realizes file, and cannot then be run this when the client does not save interface realization file and be connect
Cause for gossip shows file, so that attacker is difficult to find that the interface realizes file, ensure that interface realizes the concealment of file, improves
The security performance of system.
It should be understood that the device provided by the above embodiment executed instruction is when executing instruction, only with above-mentioned each function
Can module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different functions
Module is completed, i.e., the internal structure of client is divided into different functional modules, to complete whole described above or portion
Divide function.In addition, the device provided by the above embodiment executed instruction and the embodiment of the method executed instruction belong to same design,
Its specific implementation process is detailed in embodiment of the method, and which is not described herein again.
Those of ordinary skill in the art will appreciate that realizing that all or part of the steps of above-described embodiment can pass through hardware
It completes, relevant hardware can also be instructed to complete by program, the program can store in a kind of computer-readable
In storage medium, storage medium mentioned above can be read-only memory, disk or CD etc..
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (8)
1. a kind of method executed instruction, which is characterized in that client has spare interface, and the interface of the spare interface is realized
File is stored in server, which comprises
According to interface requests condition, interface configuration information is obtained from the server, the interface configuration information is included at least and connect
Cause for gossip shows file;The interface is realized that file correspondence is stored in spare interface mapped address;
Operational order is received, the operational order is used to indicate the specified operation of the client executing, and the operational order carries
The corresponding spare interface of the specified operation;Judge whether the client is preserved described reserve from the server and connect
The interface of mouth realizes file;
When preserving the interface and realizing file, the spare interface is called, according to spare interface mapped address,
It runs the interface and realizes file, to execute the specified operation;Or, ignoring institute when not saving the interface realization file
State operational order;
When the interface configuration information includes the deletion mark that the interface realizes file, file is realized running the interface
Later, it deletes the interface and realizes file, the deletions mark is determining that the interface realizes that file needs transporting by server
File addition is realized when deleting after row for the interface;Alternatively, the interface configuration information includes that the interface realizes file
Corresponding default reservation duration, the duration retained after receiving the interface and realizing file reach the default reservation duration
When, it deletes the interface and realizes file.
2. the method according to claim 1, wherein the interface, which is realized that file is corresponding, is stored in described reserve
After in interface mapped address, the method also includes:
It runs the interface and realizes file.
3. the method according to claim 1, wherein the interface requests condition includes predetermined time and/or pre-
If operation.
4. a kind of method executed instruction, which is characterized in that the described method includes:
The interface for receiving client realizes file request, and the interface realizes that file request carries spare interface information;Judgement is pre-
Whether if including the spare interface information in mission bit stream, the preset task information includes multiple interfaces for needing to call;
It when the preset task information includes the spare interface information, realizes in file, obtains from multiple interfaces of preservation
The interface of the spare interface realizes file;
To the client transmission interface configuration information, the interface that the interface configuration information includes at least the acquisition realizes text
Part, so that it is real to run the interface according to spare interface mapped address for spare interface described in the client call
Existing file;The client is also used to when receiving the interface configuration information, and the interface is realized that file is corresponding and is saved
In spare interface mapped address;
When the interface of the spare interface realizes that file has deletion mark, the interface configuration information further includes the deletion
Mark deletes institute so that the client identifies after the interface for running the spare interface realizes file according to the deletion
It states interface and realizes file, the deletion mark is when determining that the interface realizes that file needs to delete after operation by server
The interface realizes file addition;Alternatively,
The preset task information includes multiple corresponding default reservation durations of interface for needing to call, correspondingly, the interface
Configuration information includes that the interface realizes that file and the interface realize the corresponding default reservation duration of file, so that the visitor
The duration that family end retains after receiving the interface realization file reaches the interface and realizes the corresponding default reservation of file
When duration, deletes the interface and realize file.
5. a kind of device executed instruction, which is characterized in that local terminal has spare interface, and the interface of the spare interface realizes text
Part is stored in server, and described device includes:
Configuration information obtains module, described to connect for obtaining interface configuration information from the server according to interface requests condition
Mouth configuration information includes at least interface and realizes file;
Preserving module, for the interface to be realized that file correspondence is stored in spare interface mapped address;
Command reception module, for receiving operational order, the operational order is used to indicate the local terminal and executes specified operation, institute
It states operational order and carries the corresponding spare interface of the specified operation;
Judgment module, for judging whether the local terminal preserves the interface realization of the spare interface from the server
File;
Operation executing module, for calling the spare interface when preserving the interface realization file, according to described reserved
Interface mapped address runs the interface and realizes file, to execute the specified operation;Or, operation executing module is also used
In when not saving the interface realization file, ignore the operational order;
Described device further includes the first removing module or the second removing module:
First removing module, when the deletion for including the interface realization file when the interface configuration information identifies,
After running the interface and realizing file, deletes the interface and realize file, the deletion mark is by server determining
Interface is stated to realize when file needs to delete after operation as interface realization file addition;
The interface configuration information includes that the interface realizes the corresponding default reservation duration of file, second removing module,
When duration for retaining after receiving the interface and realizing file reaches the default reservation duration, the interface is deleted
Realize file.
6. device according to claim 5, which is characterized in that described device includes:
Module is run, for after the interface being realized to, file correspondence is stored in spare interface mapped address
It runs the interface and realizes file.
7. device according to claim 5, which is characterized in that the interface requests condition includes predetermined time and/or pre-
If operation.
8. a kind of device executed instruction, which is characterized in that described device includes:
Request receiving module, the interface for receiving client realize file request, and it is pre- that the interface realizes that file request carries
Stay interface message;
Judgment module, for judging in preset task information whether to include the spare interface information, the preset task information
Including multiple interfaces for needing to call;
File acquisition module, for when the preset task information includes the spare interface information, multiple from preservation to be connect
Cause for gossip shows in file, and the interface for obtaining the spare interface realizes file;
Configuration information sending module, for the client transmission interface configuration information, the interface configuration information at least to be wrapped
The interface for including the acquisition realizes file, so that spare interface described in the client call, is reflected according to the spare interface
The address penetrated runs the interface and realizes file;
The client is also used to when receiving the interface configuration information, and the interface is realized that file correspondence is stored in institute
It states in spare interface mapped address;
When the interface of the spare interface realizes that file has deletion mark, the interface configuration information further includes the deletion
Mark deletes institute so that the client identifies after the interface for running the spare interface realizes file according to the deletion
It states interface and realizes file, the deletion mark is when determining that the interface realizes that file needs to delete after operation by server
The interface realizes file addition;Alternatively,
The preset task information includes multiple corresponding default reservation durations of interface for needing to call, correspondingly, the interface
Configuration information includes that the interface realizes that file and the interface realize the corresponding default reservation duration of file, so that the visitor
The duration that family end retains after receiving the interface realization file reaches the interface and realizes the corresponding default reservation of file
When duration, deletes the interface and realize file.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310634274.1A CN104683308B (en) | 2013-12-02 | 2013-12-02 | The method and apparatus executed instruction |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310634274.1A CN104683308B (en) | 2013-12-02 | 2013-12-02 | The method and apparatus executed instruction |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104683308A CN104683308A (en) | 2015-06-03 |
CN104683308B true CN104683308B (en) | 2019-04-05 |
Family
ID=53317911
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310634274.1A Active CN104683308B (en) | 2013-12-02 | 2013-12-02 | The method and apparatus executed instruction |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104683308B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111026563B (en) * | 2019-11-18 | 2024-03-15 | 北京飞赛克科技有限公司 | Interface calling method and device, storage medium and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222505A (en) * | 2008-01-24 | 2008-07-16 | 中国海洋大学 | Method for implementing client terminal local disposition |
CN101814084A (en) * | 2010-01-11 | 2010-08-25 | 北京世纪高通科技有限公司 | API (Application Programming Interface) management method and system |
CN103177003A (en) * | 2011-12-21 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Browser instruction processing method and browser |
Family Cites Families (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100389572C (en) * | 2005-04-11 | 2008-05-21 | 华为技术有限公司 | System and method for long-distance calling communication assembly |
CN101499002A (en) * | 2008-02-02 | 2009-08-05 | 阿里巴巴集团控股有限公司 | Method, system and apparatus for generating interface document |
US8621598B2 (en) * | 2008-03-12 | 2013-12-31 | Intuit Inc. | Method and apparatus for securely invoking a rest API |
CN101339500B (en) * | 2008-05-22 | 2010-06-09 | 清华大学 | Data binding application program interface creation method based on XML mode |
CN102546806A (en) * | 2012-01-16 | 2012-07-04 | 合众思壮北斗导航有限公司 | Method and system for controlling terminal unit |
CN103379149A (en) * | 2012-04-19 | 2013-10-30 | 北京智慧风云科技有限公司 | Cloud service system providing function of processing files according to received commands |
-
2013
- 2013-12-02 CN CN201310634274.1A patent/CN104683308B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101222505A (en) * | 2008-01-24 | 2008-07-16 | 中国海洋大学 | Method for implementing client terminal local disposition |
CN101814084A (en) * | 2010-01-11 | 2010-08-25 | 北京世纪高通科技有限公司 | API (Application Programming Interface) management method and system |
CN103177003A (en) * | 2011-12-21 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Browser instruction processing method and browser |
Also Published As
Publication number | Publication date |
---|---|
CN104683308A (en) | 2015-06-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104573611B (en) | A kind of distributed recognition of face group system | |
CN102426594B (en) | Method and system for operating database | |
CN105224255B (en) | A kind of storage file management method and device | |
CN104219316A (en) | Method and device for processing call request in distributed system | |
CN107491320A (en) | Loading method and device based on mixed mode Mobile solution | |
US10708364B2 (en) | Internet of things information system | |
CN110069454A (en) | A kind of network file management method, terminal and computer readable storage medium | |
CN105468989A (en) | Cloud storage quota management method based on Linux kernel monitoring | |
CN103327005B (en) | Equipment cut-in method based on virtual desktop and device | |
CN102098233B (en) | Method and system for controlling communication window in instant messenger | |
CN104424225B (en) | Document handling method based on document transmission process and device | |
CN105718307B (en) | Process management method and management of process device | |
CN107451236A (en) | Data cache method, device and computer-processing equipment | |
CN109508273A (en) | A kind of electric automobile charging station monitoring system and data capture method based on Web | |
CN104683308B (en) | The method and apparatus executed instruction | |
CN113691627B (en) | Control method, device, equipment and medium for SOAR linkage equipment | |
CN115002099A (en) | Man-machine interactive file processing method and device for realizing IA (Internet of things) based on RPA (resilient packet Access) and AI (Artificial Intelligence) | |
CN105791552B (en) | A kind of SMS processing method, device and mobile terminal | |
CN106357631A (en) | Key information management method and cloud server | |
CN106254448A (en) | A kind of information getting method and device | |
CN105471967A (en) | Video monitoring system and front-end storage centralized management method | |
CN106375455B (en) | A kind of data transmission method and device | |
CN108270876A (en) | The implementation method of proxy server in a kind of signal system | |
CN104731684B (en) | A kind of living document based on driving filtering technique is monitored and protection system | |
US20040267754A1 (en) | Access to shared disk device on storage area network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190731 Address after: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403 Co-patentee after: Tencent cloud computing (Beijing) limited liability company Patentee after: Tencent Technology (Shenzhen) Co., Ltd. Address before: Shenzhen Futian District City, Guangdong province 518000 Zhenxing Road, SEG Science Park 2 East Room 403 Patentee before: Tencent Technology (Shenzhen) Co., Ltd. |