CN109634636A - Application processing method, device, equipment and medium - Google Patents

Application processing method, device, equipment and medium Download PDF

Info

Publication number
CN109634636A
CN109634636A CN201811541484.5A CN201811541484A CN109634636A CN 109634636 A CN109634636 A CN 109634636A CN 201811541484 A CN201811541484 A CN 201811541484A CN 109634636 A CN109634636 A CN 109634636A
Authority
CN
China
Prior art keywords
target class
class
current version
target
calling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201811541484.5A
Other languages
Chinese (zh)
Other versions
CN109634636B (en
Inventor
梁泽华
李升起
包宇津
赵洪飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811541484.5A priority Critical patent/CN109634636B/en
Publication of CN109634636A publication Critical patent/CN109634636A/en
Application granted granted Critical
Publication of CN109634636B publication Critical patent/CN109634636B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Abstract

The embodiment of the invention discloses a kind of application processing method, device, equipment and media, are related to application program technical field.This method comprises: receiving the current version information of target class in destination application after the modification that application server is sent;The calling of the old version of target class in the destination application of user terminal installation is identified and is deleted;It is identified according to the calling of the old version of target class, the current version of invocation target class, wherein the calling mark of the current version of the target class is identical as the calling mark of the old version of the target class.The embodiment of the invention provides a kind of application processing method, device, equipment and medium, the update without sending out version again, to application is realized.

Description

Application processing method, device, equipment and medium
Technical field
The present embodiments relate to application program technical field more particularly to a kind of application processing method, device, equipment and Medium.
Background technique
With the raising of the intelligent movable equipment importance of figure in daily life, to intelligent movable equipment development The requirement of personnel is higher and higher.The height that only some basic functions operation of realization mobile terminal is no longer satisfied user experience is wanted It asks.Therefore, in order to quickly position and solve the problems, such as that user encounters in use, development efficiency is promoted, by dividing The journal file of mobile device is analysed, and assessment is made to related function module and has obtained more and more extensive approval.
However, some problems may unavoidably be had by extracting strategy due to log, or needing through new day Will is extracted under the demand that strategy generates new log, needs to extract tactful carry out from the log of media APP in intelligent movable equipment It updates.
The way of the prior art is to modify log extracting method, generates the installation kit of new installation version, installation kit is pushed It to user terminal, is reinstalled for user, to achieve the purpose that modify log extracting method.For example, with reference to Fig. 1, target application Version 1.0 is online, the user installation version;If finding in target application use process, log has redundancy, needs new log Strategy is extracted, then repairs redundant logs and extracts strategy replacement new strategy;New version 1.1 is generated, by user after version 1.1 is online Downloading installation, to realize the update for extracting strategy to constitution.
But there are the following problems for the above method:
(1) needing to send out version again just can solve problem, and the software version for sending out version again needs restocking again to audit, time-consuming Arduously;
(2) there are version leftover problems, i.e., some users refuse more new version.
Summary of the invention
The embodiment of the present invention provides a kind of application processing method, device, equipment and medium, to realize without sending out version again In the case where, the update to application.
In a first aspect, it is applied to user terminal the embodiment of the invention provides a kind of application processing method, this method comprises:
Receive the current version information of target class in destination application after the modification that application server is sent;
The calling of the old version of target class in user terminal is identified and is deleted;
It is identified according to the calling of the old version of target class, the current version of invocation target class, wherein the target class The calling mark of current version is identical as the calling mark of the old version of the target class.
Second aspect, the embodiment of the invention also provides a kind of application processing methods, are applied to server, this method packet It includes:
The target class in destination application is modified, to obtain the current version information of the target class, wherein the mesh The calling mark for marking the current version of class is identical as the calling mark of the old version of the target class;
The target class more new command of the current version information including the target class is sent to user terminal, wherein the mesh It is as follows that mark class more new command is used to indicate user terminal execution: receiving the current version letter for the target class that application server is sent Breath;The calling of the old version of target class in user terminal is identified and is deleted;It is identified, is adjusted according to the calling of the old version of target class With the current version of target class.
The third aspect applies processing unit the embodiment of the invention also provides a kind of, is applied to user terminal, the device packet It includes:
Information receiving module, after the modification for receiving application server transmission in destination application target class it is current Version information;
Mark removing module is called, is deleted for identifying the calling of the old version of target class in user terminal;
Current version calling module, for being identified according to the calling of the old version of target class, invocation target class it is current Version, wherein the calling mark of the current version of the target class is identical as the calling mark of the old version of the target class.
Fourth aspect applies processing unit the embodiment of the invention also provides a kind of, is applied to server, this method packet It includes:
Modification of program module, for modifying the target class in destination application, to obtain the current version of the target class This information, wherein the calling mark of the current version of the target class and the calling of the old version of the target class identify phase Together;
Update instruction module, the target class for sending the current version information including the target class to user terminal update Instruction, wherein it is as follows that the target class more new command is used to indicate user terminal execution: the mesh that application server is sent is received Mark the current version information of class;The calling of the old version of target class in user terminal is identified and is deleted;According to the history of target class The calling of version identifies, the current version of invocation target class.
5th aspect, the embodiment of the invention also provides a kind of equipment, the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processing Device realizes the application processing method as described in any in the embodiment of the present invention.
6th aspect, the embodiment of the invention also provides a kind of computer readable storage mediums, are stored thereon with computer Program realizes the application processing method as described in any in the embodiment of the present invention when program is executed by processor.
The embodiment of the present invention by user terminal delete target class old version calling mark so that user terminal according to It is identified according to the calling that the calling with target class old version identifies identical target class current version, the current version of invocation target class This.And then realize without sending out version again, target class is updated.
Detailed description of the invention
Fig. 1 is the flow chart that log extracting method updates in the prior art;
Fig. 2 is a kind of flow chart for application processing method that the embodiment of the present invention one provides;
Fig. 3 is a kind of flow chart of application processing method provided by Embodiment 2 of the present invention;
Fig. 4 is a kind of flow chart for application processing method that the embodiment of the present invention three provides;
Fig. 5 is a kind of flow chart for application processing method that this part inventive embodiments four provide;
Fig. 6 is a kind of flow chart for application processing method that the embodiment of the present invention five provides;
Fig. 7 is a kind of process flow for the modification for having existed method in target class that the embodiment of the present invention five provides Figure;
Fig. 8 is that a kind of current version for target class that the embodiment of the present invention five provides and the mapping relations of old version are illustrated Figure;
Fig. 9 is the stream that log extracting method is updated in a kind of pair of destination application of the offer of the embodiment of the present invention five Cheng Tu;
Figure 10 is a kind of bandwagon effect schematic diagram for log statistic result that the embodiment of the present invention five provides;
Figure 11 is a kind of bandwagon effect schematic diagram for log path statistical result that the embodiment of the present invention five provides;
Figure 12 is a kind of structural schematic diagram using processing unit that the embodiment of the present invention six provides;
Figure 13 is a kind of structural schematic diagram using processing unit that the present embodiment seven provides;
Figure 14 is a kind of structural schematic diagram for equipment that the embodiment of the present invention eight provides.
Specific embodiment
The present invention is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining the present invention rather than limiting the invention.It also should be noted that in order to just Only the parts related to the present invention are shown in description, attached drawing rather than entire infrastructure.
Embodiment one
Fig. 2 is a kind of flow chart for application processing method that the embodiment of the present invention one provides.The present embodiment is applicable to pair The case where application program in user terminal is updated.Typically, the present embodiment is applicable to class in user terminal application program The case where increase or deletion of interior method.This method can be executed by a kind of application processing unit, which can be by software And/or the mode of hardware is realized.Typically, which can be user terminal.Referring to fig. 2, at application provided in this embodiment Reason method, comprising:
S110, the current version information for receiving target class in destination application after the modification that application server is sent.
Destination application can be any application, typically can be from media class application program.
Target class is class to be updated (class), and class herein is the concept in Object-Oriented Programming Languages.Its table Show to the abstract of the things with common trait a kind of in actual life, is the basis of Object-Oriented Programming.
Target class can be any class in application program, typically, the target class be include that at least one log mentions The log of method is taken to extract class.
The current version information of target class includes the calling mark of each method and target class after modifying in target class.It is optional , it can also include the other information, such as the title of class etc. of target class in the current version information of target class.
It calls mark to refer to the unique identification for invocation target class, can be the mark of any unique identification target class, The entry address that specifically can be target class, is also possible to the class name of target class.
Modification to target class in destination application includes: to increase method in target class, have in delete target class Method and at least one of modify to having method in target class.
Specifically, the current version information of target class in destination application after the modification that application server is sent is received, Include:
Receive the service packs for the current version information including the target class that application server is sent, wherein the benefit Fourth packet is generated by application server according to the current version information of target class;
The current version information of the target class is obtained from service packs.
S120, the calling of the old version of target class in user terminal is identified and is deleted.
The old version of target class is the program code for being installed on the target class of user terminal in destination application.
Specifically, by the calling mark deletion of the old version of target class in the destination application of user terminal installation Before, further includes:
The old version information of target class is determined from user terminal according to the mark of target class.
Wherein, the mark of target class can be the arbitrary unique identification of target class, typically, can be the name of target class Claim.
S130, it is identified according to the calling of the old version of target class, the current version of invocation target class.
Wherein, the calling mark of the current version of the target class and the calling of the old version of the target class identify phase Together.
Specifically, the event for responding performance objective class identifies, invocation target class according to the calling of the old version of target class Current version.Because the calling mark of the old version of target class in the destination application of user terminal installation is deleted It removes, so may be implemented by the calling mark of the old version of target class to the tune for calling mark with the old version of target class With the calling for the current version for identifying identical target class.
In other words, destination application may be implemented according to the calling of target class mark to mesh when user terminal is executed The calling of the current version of class is marked, because the calling mark of the old version of target class has been deleted, according to target class Call mark that can not find the old version of target class, to also can not just be called to the old version of target class.
It can be seen that the present embodiment is modified without the execution to destination application in user terminal.
Typically, above-mentioned steps S110 and S120 can be executed to realize and be updated to the silence of target class on backstage.
The technical solution of the embodiment of the present invention, by the calling mark in user terminal delete target class old version, thus So that user terminal is identified according to the calling that the calling with target class old version identifies identical target class current version, mesh is called Mark the current version of class.And then realize without sending out version again, target class is updated.
Embodiment two
Fig. 3 is a kind of flow chart of application processing method provided by Embodiment 2 of the present invention.The present embodiment is in above-mentioned reality Apply a kind of optinal plan proposed on the basis of example.Referring to Fig. 3, application processing method provided in this embodiment includes:
S210, the current version information for receiving target class in destination application after the modification that application server is sent.
If being S220, the modification to goal approach in target class, basis to the modification of target class in destination application The mark of target class determines the old version information of target class from user terminal.
Goal approach can be any one method in target class.
S230, the mark according to goal approach determine the old version of goal approach from the old version of target class.
The mark of goal approach can be any unique information for indicating goal approach.
S240, the old version event for responding performance objective method, goal approach works as in performance objective class current version Preceding version.
The above method can be described as in practical applications: the service packs that server is sent be received, wherein the service packs By server according to the comparing result of the class load document of new installation kit and the class load document of the history installation kit of target application It generates, the new installation kit is generated by server according to the current version of modified goal approach;
The current version of goal approach after reading patch class name and modification in service packs, wherein the patch class name is mesh The title of mark method affiliated class in history installation kit;
According to the current version of goal approach after the patch class name of reading and modification, user terminal mesh is determined based on Classloader Mark the old version of the goal approach in application program;
The execution event of goal approach in response system application program is based on hook system mechanism, finger when modification is run Needle variable makes pointer variable be directed toward the current version of goal approach.
The essence of the embodiment of the present invention is: the modification of target class is to target side in target class in destination application When the modification of method, the method that executes the present embodiment;The modification of target class is increase or delete target in destination application In class when method, the method for execution embodiment one.
The technical solution of the present embodiment passes through, and determines different more new strategies according to the different modification modes to target class, To improve update efficiency.
Embodiment three
Fig. 4 is a kind of flow chart for application processing method that the embodiment of the present invention three provides.The present embodiment be suitable for The case where installed application program in family end is updated.Typically, the present embodiment is applicable to user terminal application program In middle class the case where the increase or deletion of method.This method can be executed by a kind of application processing unit.The device can be by The mode of software and/or hardware is realized.Typically, which can be application server.Referring to fig. 4, provided in this embodiment Application processing method includes:
Target class in S310, modification destination application, to obtain the current version information of the target class, wherein institute The calling mark for stating the current version of target class is identical as the calling mark of the old version of the target class.
Wherein, target class, the current version of target class and calling identify identical as the description of above-described embodiment, this reality It applies example and this is repeated no more.
It is also identical as the description in above-described embodiment to the modification mode of target class in destination application.
Further, the target class includes at least one log extracting method.Also i.e. by the application scenarios of the above method It is limited to the more new scene to log extracting method.
S320, the target class more new command that the current version information including the target class is sent to user terminal.
Wherein, it is as follows to be used to indicate user terminal execution for the target class more new command: receiving the institute that application server is sent State the current version information of target class;By the calling mark of the old version of target class in the destination application of user terminal installation Know and deletes;It is identified according to the calling of the old version of target class, the current version of invocation target class is according to the history version of target class This calling mark, the current version of invocation target class.
The technical solution of the present embodiment generates the tune for calling mark with the old version of target class by modifying target class With the current version for identifying identical target class, the current version of target class is handed down to user terminal, for user terminal in response mesh When marking the execution event of application, the current version of performance objective class.To realize without sending out version again, to user The update of target class in end.
Example IV
Fig. 5 is a kind of flow chart for application processing method that this part inventive embodiments four provide.The present embodiment is above-mentioned A kind of optinal plan proposed on the basis of embodiment with the implementation based on service packs.It is provided in this embodiment referring to Fig. 5 Application processing method includes:
Target class in S410, modification destination application.
S420, new installation kit is generated based on modified destination application.
The class load document of the history installation kit of S430, the class load document of the new installation kit of comparison and destination application, Determine difference category information.
Wherein, class load document is specifically to can be classes.dex file based on the class file of load mechanism load. Difference class is the class having differences, and the difference class in the present embodiment is above-mentioned target class.
S440, the service packs that the current version information including the target class is generated according to the difference category information.
The generating mode of service packs can be any generating mode in the prior art, and the present embodiment is to this and without appointing What is limited.
S450, the target class more new command including the service packs is sent to user terminal.
Wherein, it is as follows to be used to indicate user terminal execution for the target class more new command: receiving the benefit that application server is sent Fourth packet;The old version information of target class is determined from user terminal according to the mark of target class in service packs;By going through for target class The calling of history version, which identifies, deletes;According in service packs the current version of target class calling mark, invocation target class it is current Version.
The technical solution of the embodiment of the present invention, will be under the current version of the target class of modification by way of based on service packs It is sent to user terminal, carries out the update of target class based on the current version of target class in service packs for user terminal.
Embodiment five
Fig. 6 is a kind of flow chart for application processing method that the embodiment of the present invention five provides.The present embodiment is in above-mentioned reality Apply a kind of optinal plan proposed in target class for the modification of log extracting method on the basis of example.Referring to Fig. 6, this reality Applying the application processing method that example provides includes:
Application server modifies the target class in destination application, generates the current version information of target class;
Application server generates new installation kit according to modified destination application;
Old installation kit (namely history installation kit in above-described embodiment) of the application server based on destination application and The new installation kit generated generate include target class current version information service packs, and service packs is handed down to user terminal, by with Family end executes as follows: during executing the operation logic of old installation kit, responding in the execution event or target class of target class The execution event of target journaling extracting method executes modified mesh in the current version or target class of the target class in service packs The current version of log extracting method is marked, to realize the function in new installation kit without installation.
Referring to Fig. 7, user terminal executes following content after receiving service packs:
If the modification to target class is the modification to target journaling extracting method already existing in target class, from patch The new version information of patch class name and modified target journaling extracting method is read in packet, wherein patch class name is that target class exists Class name in old installation kit;
According to the new version information of patch class name and modified target journaling extracting method, target is determined from user terminal The legacy version of target journaling extracting method in class;
Specifically, it according to the new version information of patch class name and modified target journaling extracting method, is loaded based on class Device (classLoader), finds the legacy version of target journaling extracting method in target class.
Based on hook system mechanism, dynamic modifies pointer variable when operation, it is made to be directed toward target journaling extracting method New version, to realize the update of target journaling extracting method.
Wherein, hook system mechanism can be described as: after carrying out hook to specific system event, once occur Hook event just will receive the notice of system to the program that the event carries out hook, and at this moment program can be in first time to this Event responds.
By the above method, the update to log extracting method can be realized in the case where user's unaware.And the mistake Cheng Wuxu reinstalls the installation kit of new version.
Inventor has found during stating method in realization, by hook system mechanism, is loading on user terminal Target class legacy version in change pointer variable, replace the legacy version of target journaling extracting method, realize to target journaling The update of method.However, this part operation is the pointer modified carried out on the basis of the legacy version of target class, target class it is old The each method for including in version is corresponding with a pointer variable.If increasing by a log extracting method in the new version of target class, Then there is no increased log extracting method in the legacy version of the target class of user terminal load, without increased log extraction side yet The pointer variable of method.Therefore, it is impossible to realize and extracted to increased log based on the pointer variable in the legacy version for changing target class The load of method.Similarly, it also cannot achieve the deletion to method in target class, otherwise can destroy the knot of target class legacy version Structure.
Therefore, user terminal also executes following content after receiving service packs:
If the modification to target class is to increase the log extracting method in target class or the log extraction in delete target class Method then receives the current version information of target class in destination application after the modification of application server transmission;
Referring to Fig. 8, the calling of the old version of target class in the destination application of user terminal installation is identified and is deleted;
It is identified according to the calling of the old version of target class, the current version of invocation target class.
Wherein, the calling mark of the current version of target class is identical as the calling mark of the old version of target class.Because The calling of the old version of target class is identified and is deleted, so system is identified in the calling of the old version of target class to target class When being called, the current version that identical target class is identified with the calling of target class old version can be called.
The above method compares the target class occurred in service packs, to the tune of target class in old installation kit in the dimension of class It is deleted with mark.So that the target class in old installation kit can't be loaded.The original class of system is utilized in the above method Load mechanism, in the case where increasing in target class or delete target journaling extracting method, not to the old installation kit of system into The destructive reconstruct of row.
Fig. 9 is the process of the present embodiment description being updated to log extracting method in destination application.Specifically may be used With description are as follows: the version 1.0 of target application is online, the user installation version;If finding log in target application use process There is redundancy, new log is needed to extract strategy, then repairs redundant logs and extract strategy replacement new strategy;Generate includes repairing redundancy The service packs of strategy is extracted in log afterwards, carries out the update that strategy is extracted in log according to service packs for user terminal.
Figure 10 is the visual presentation to log statistic result.Abscissa is the log recording time, and ordinate is log system Count number;Figure 11 is that the visual page of log path statistical result is shown.It can be seen that from Figure 10 and Figure 11 by this implementation Modification of the example to log extracting method, may be implemented the comprehensively and effectively extraction to log.
The technical solution of the embodiment of the present invention, because reducing human cost and time cost, significantly without sending out version again Product evolution speed is accelerated, is increased productivity.The problem of leaving without version simultaneously, realizes user's unaware the case where Under update to log extracting method.
By repairing the loophole of log extracting method, redundant logs are filtered out, user has been reduced to the full extent and sets Standby storage pressure, reduces data traffic consumption.
It should be noted that by the technical teaching of the present embodiment, those skilled in the art have motivation by above-described embodiment Described in any embodiment carry out the combination of scheme, to realize the update to destination application.
Embodiment six
Figure 12 is a kind of structural schematic diagram using processing unit that the embodiment of the present invention six provides.Referring to Figure 12, this reality The application processing unit for applying example offer includes: information receiving module 10, mark removing module 20 and current version is called to call mould Block 30.
Wherein, information receiving module 10, target in destination application after the modification for receiving application server transmission The current version information of class;
Mark removing module 20 is called, is deleted for identifying the calling of the old version of target class in user terminal;
Current version calling module 30, the calling for the old version according to target class identify, and invocation target class is worked as Preceding version, wherein the calling mark of the current version of the target class and the calling of the old version of the target class identify phase Together.
The technical solution of the embodiment of the present invention, by the calling mark in user terminal delete target class old version, thus So that user terminal is identified according to the calling that the calling with target class old version identifies identical target class current version, mesh is called Mark the current version of class.And then realize without sending out version again, target class is updated.
Further, information receiving module, comprising: patch receiving unit and information acquisition unit.
Wherein, patch receiving unit, for receiving the current version letter including the target class of application server transmission The service packs of breath, wherein the service packs is generated by application server according to the current version information of target class;
Information acquisition unit, for obtaining the current version information of the target class from service packs.
Further, described device further include: update method determining module, method determining module and method execution module.
Wherein, update method determining module, mesh in destination application after the modification for receiving application server transmission After the current version information for marking class, if to the modification of target class in destination application being repaired to goal approach in target class Change, then determines the old version information of target class from user terminal according to the mark of target class;
Method determining module determines goal approach for the mark according to goal approach from the old version of target class Old version;
Method execution module, for responding the old version event of performance objective method, in performance objective class current version The current version of goal approach.
Further, the target class includes at least one log extracting method.
Embodiment seven
Figure 13 is a kind of structural schematic diagram using processing unit that the present embodiment seven provides.Referring to Figure 13, the present embodiment The application processing unit of offer includes: modification of program module 40 and update instruction module 50.
Wherein, modification of program module 40, for modifying the target class in destination application, to obtain the target class Current version information, wherein the calling mark of the calling mark and the old version of the target class of the current version of the target class It is sensible same;
Update instruction module 50, for sending the target class of the current version information including the target class to user terminal more New command, wherein it is as follows that the target class more new command is used to indicate user terminal execution: the described of application server transmission is received The current version information of target class;The calling of the old version of target class in user terminal is identified and is deleted;According to going through for target class The calling of history version identifies, the current version of invocation target class.
The technical solution of the present embodiment generates the tune for calling mark with the old version of target class by modifying target class With the current version for identifying identical target class, the current version of target class is handed down to user terminal, for user terminal in response mesh When marking the execution event of application, the current version of performance objective class.To realize without sending out version again, to user The update of target class in end.
Further, described program modified module, comprising: new installation kit generation unit, difference class determination unit and patch Generation unit.
Wherein, new installation kit generation unit, for generating new installation kit based on modified destination application;
Difference class determination unit, for comparing the class load document of new installation kit and the history installation kit of destination application Class load document, determine difference category information;
Patch generation unit, for generating the current version information including the target class according to the difference category information Service packs;
Correspondingly, update instruction module, comprising: update instruction unit.
Wherein, update instruction unit, for sending the target class more new command including the service packs to user terminal, In, it is as follows that the target class more new command is used to indicate user terminal execution: receiving the service packs that application server is sent;According to benefit The mark of target class determines the old version information of target class from user terminal in fourth packet;By the calling of the old version of target class Mark is deleted;According to the calling mark of the current version of target class in service packs, the current version of invocation target class.
It can be performed at application provided by any embodiment of the invention provided by the embodiment of the present invention using processing unit Reason method has the corresponding functional module of execution method and beneficial effect.
Embodiment eight
Figure 14 is a kind of structural schematic diagram for equipment that the embodiment of the present invention eight provides.Figure 14, which is shown, to be suitable for being used to realizing The block diagram of the example devices 12 of embodiment of the present invention.The equipment 12 that Figure 14 is shown is only an example, should not be to this hair The function and use scope of bright embodiment bring any restrictions.
As shown in figure 14, equipment 12 is showed in the form of universal computing device.The component of equipment 12 may include but unlimited In one or more processor or processing unit 16, system storage 28, connecting different system components, (including system is deposited Reservoir 28 and processing unit 16) bus 18.
Bus 18 indicates one of a few class bus structures or a variety of, including memory bus or Memory Controller, Peripheral bus, graphics acceleration port, processor or the local bus using any bus structures in a variety of bus structures.It lifts For example, these architectures include but is not limited to industry standard architecture (ISA) bus, microchannel architecture (MAC) Bus, enhanced isa bus, Video Electronics Standards Association (VESA) local bus and peripheral component interconnection (PCI) bus.
Equipment 12 typically comprises a variety of computer system readable media.These media can be it is any can be by equipment 12 The usable medium of access, including volatile and non-volatile media, moveable and immovable medium.
System storage 28 may include the computer system readable media of form of volatile memory, such as arbitrary access Memory (RAM) 30 and/or cache memory 32.Equipment 12 may further include it is other it is removable/nonremovable, Volatile/non-volatile computer system storage medium.Only as an example, storage system 34 can be used for reading and writing irremovable , non-volatile magnetic media (Figure 14 do not show, commonly referred to as " hard disk drive ").Although being not shown in Figure 14, can provide Disc driver for being read and write to removable non-volatile magnetic disk (such as " floppy disk "), and to removable anonvolatile optical disk The CD drive of (such as CD-ROM, DVD-ROM or other optical mediums) read-write.In these cases, each driver can To be connected by one or more data media interfaces with bus 18.Memory 28 may include at least one program product, The program product has one group of (for example, at least one) program module, these program modules are configured to perform each implementation of the invention The function of example.
Program/utility 40 with one group of (at least one) program module 42 can store in such as memory 28 In, such program module 42 include but is not limited to operating system, one or more application program, other program modules and It may include the realization of network environment in program data, each of these examples or certain combination.Program module 42 is usual Execute the function and/or method in embodiment described in the invention.
Equipment 12 can also be communicated with one or more external equipments 14 (such as keyboard, sensing equipment, display 24 etc.), Can also be enabled a user to one or more equipment interacted with the equipment 12 communication, and/or with enable the equipment 12 with One or more of the other any equipment (such as network interface card, modem etc.) communication for calculating equipment and being communicated.It is this logical Letter can be carried out by input/output (I/O) interface 22.Also, equipment 12 can also by network adapter 20 and one or The multiple networks of person (such as local area network (LAN), wide area network (WAN) and/or public network, such as internet) communication.As shown, Network adapter 20 is communicated by bus 18 with other modules of equipment 12.It should be understood that although not shown in the drawings, can combine Equipment 12 use other hardware and/or software module, including but not limited to: microcode, device driver, redundant processing unit, External disk drive array, RAID system, tape drive and data backup storage system etc..
Processing unit 16 by the program that is stored in system storage 28 of operation, thereby executing various function application and Data processing, such as realize application processing method provided by the embodiment of the present invention.
Embodiment nine
The embodiment of the present invention nine additionally provides a kind of computer readable storage medium, is stored thereon with computer program, should The application processing method as described in any in the embodiment of the present invention is realized when program is executed by processor, this method comprises:
Receive the current version information of target class in destination application after the modification that application server is sent;
The calling of the old version of target class in the destination application of user terminal installation is identified and is deleted;
It is identified according to the calling of the old version of target class, the current version of invocation target class, wherein the target class The calling mark of current version is identical as the calling mark of the old version of the target class.
The computer storage medium of the embodiment of the present invention, can be using any of one or more computer-readable media Combination.Computer-readable medium can be computer-readable signal media or computer readable storage medium.It is computer-readable Storage medium for example may be-but not limited to-the system of electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor, device or Device, or any above combination.The more specific example (non exhaustive list) of computer readable storage medium includes: tool There are electrical connection, the portable computer diskette, hard disk, random access memory (RAM), read-only memory of one or more conducting wires (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD- ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.In this document, computer-readable storage Medium can be any tangible medium for including or store program, which can be commanded execution system, device or device Using or it is in connection.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.
The program code for including on computer-readable medium can transmit with any suitable medium, including --- but it is unlimited In wireless, electric wire, optical cable, RF etc. or above-mentioned any appropriate combination.
The computer for executing operation of the present invention can be write with one or more programming languages or combinations thereof Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Further include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with It fully executes, partly execute on the user computer on the user computer, being executed as an independent software package, portion Divide and partially executes or executed on a remote computer or server completely on the remote computer on the user computer.? Be related in the situation of remote computer, remote computer can pass through the network of any kind --- including local area network (LAN) or Wide area network (WAN)-be connected to subscriber computer, or, it may be connected to outer computer (such as mentioned using Internet service It is connected for quotient by internet).
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (14)

1. a kind of application processing method is applied to user terminal characterized by comprising
Receive the current version information of target class in destination application after the modification that application server is sent;
It is deleted being identified with the calling of the old version of target class in end;
It is identified according to the calling of the old version of target class, the current version of invocation target class, wherein the target class is current The calling mark of version is identical as the calling mark of the old version of the target class.
2. the method according to claim 1, wherein receiving target application journey after the modification that application server is sent The current version information of target class in sequence, comprising:
Receive the service packs for the current version information including the target class that application server is sent, wherein the service packs It is generated by application server according to the current version information of target class;
The current version information of the target class is obtained from service packs.
3. the method according to claim 1, wherein receiving target application journey after the modification that application server is sent In sequence after the current version information of target class, further includes:
If the modification to target class in destination application is the modification to goal approach in target class, according to the mark of target class Know the old version information that target class is determined from user terminal;
According to the mark of goal approach, the old version of goal approach is determined from the old version of target class;
The old version event of performance objective method is responded, the current version of goal approach in performance objective class current version.
4. the method according to claim 1, wherein the target class includes at least one log extracting method.
5. a kind of application processing method is applied to server characterized by comprising
The target class in destination application is modified, to obtain the current version information of the target class, wherein the target class Current version calling mark it is identical as the calling mark of the old version of the target class;
The target class more new command of the current version information including the target class is sent to user terminal, wherein the target class It is as follows that more new command is used to indicate user terminal execution: receiving the current version information for the target class that application server is sent; The calling of the old version of target class in user terminal is identified and is deleted;It is identified, is called according to the calling of the old version of target class The current version of target class.
6. according to the method described in claim 5, it is characterized in that, the determination of the current version information of the target class includes:
New installation kit is generated based on modified destination application;
The class load document for comparing the class load document of new installation kit and the history installation kit of destination application, determines difference class Information;
The service packs of the current version information including the target class is generated according to the difference category information;
Correspondingly, the target class more new command of the current version information including the target class is sent to user terminal, comprising:
The target class more new command including the service packs is sent to user terminal, wherein the target class more new command is for referring to It is as follows to show that user terminal executes: receiving the service packs that application server is sent;According to the mark of target class in service packs from user terminal The old version information of middle determining target class;The calling of the old version of target class is identified and is deleted;According to the history of target class The calling of version identifies, and calls the current version of target class in service packs.
7. according to the method described in claim 5, it is characterized in that, the target class includes at least one log extracting method.
8. a kind of apply processing unit, it is applied to user terminal characterized by comprising
Information receiving module, after the modification for receiving application server transmission in destination application target class current version Information;
Mark removing module is called, is deleted for identifying the calling of the old version of target class in user terminal;
Current version calling module, the calling for the old version according to target class identify, the current version of invocation target class, Wherein the calling mark of the current version of the target class is identical as the calling mark of the old version of the target class.
9. device according to claim 8, which is characterized in that information receiving module, comprising:
Patch receiving unit, the patch of the current version information including the target class for receiving application server transmission Packet, wherein the service packs is generated by application server according to the current version information of target class;
Information acquisition unit, for obtaining the current version information of the target class from service packs.
10. device according to claim 8, which is characterized in that further include:
Update method determining module, after the modification for receiving application server transmission in destination application target class it is current After version information, if being the modification to goal approach in target class, basis to the modification of target class in destination application The mark of target class determines the old version information of target class from user terminal;
Method determining module determines going through for goal approach for the mark according to goal approach from the old version of target class History version;
Method execution module, for responding the old version event of performance objective method, target in performance objective class current version The current version of method.
11. a kind of apply processing unit, it is applied to server characterized by comprising
Modification of program module, for modifying the target class in destination application, to obtain the current version letter of the target class Breath, wherein the calling mark of the current version of the target class is identical as the calling mark of the old version of the target class;
Update instruction module, the target class update for sending the current version information including the target class to user terminal refer to It enables, wherein it is as follows that the target class more new command is used to indicate user terminal execution: receiving the target that application server is sent The current version information of class;The calling of the old version of target class in user terminal is identified and is deleted;According to the history version of target class This calling mark, the current version of invocation target class.
12. device according to claim 11, which is characterized in that described program modified module, comprising:
New installation kit generation unit, for generating new installation kit based on modified destination application;
Difference class determination unit, for comparing the class of the class load document of new installation kit and the history installation kit of destination application Load document determines difference category information;
Patch generation unit, for generating the patch of the current version information including the target class according to the difference category information Packet;
Correspondingly, update instruction module, comprising:
Update instruction unit, for sending the target class more new command including the service packs to user terminal, wherein the target It is as follows that class more new command is used to indicate user terminal execution: receiving the service packs that application server is sent;According to target in service packs The mark of class determines the old version information of target class from user terminal;The calling of the old version of target class is identified and is deleted; It is identified according to the calling of the old version of target class, calls the current version of target class in service packs.
13. a kind of equipment, which is characterized in that the equipment includes:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now application processing method as described in any in claim 1-4 or 5-7.
14. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is by processor The application processing method as described in any in claim 1-4 or 5-7 is realized when execution.
CN201811541484.5A 2018-12-17 2018-12-17 Application processing method, device, equipment and medium Active CN109634636B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811541484.5A CN109634636B (en) 2018-12-17 2018-12-17 Application processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811541484.5A CN109634636B (en) 2018-12-17 2018-12-17 Application processing method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN109634636A true CN109634636A (en) 2019-04-16
CN109634636B CN109634636B (en) 2022-05-17

Family

ID=66074397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811541484.5A Active CN109634636B (en) 2018-12-17 2018-12-17 Application processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN109634636B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158716A (en) * 2019-12-20 2020-05-15 中国平安财产保险股份有限公司 Version upgrade calling method and device, computer system and readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002086702A1 (en) * 2001-04-23 2002-10-31 Nokia Corporation Handling different service versions in a server
US20070127377A1 (en) * 2005-11-16 2007-06-07 Thomson Licensing Method for updating a data record and device for carrying out the method
CN101008901A (en) * 2007-01-31 2007-08-01 华为技术有限公司 Method and system for implementing dynamic upgrade of application system
CN102622241A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Software upgrading method and software upgrading device
CN103677903A (en) * 2013-11-26 2014-03-26 小米科技有限责任公司 Mobile terminal intelligent upgrade method and device, and electronic equipment
CN104035772A (en) * 2014-06-09 2014-09-10 中国科学院软件研究所 Static analysis based source code multi-versionfunction call relation difference identification method
CN105446722A (en) * 2014-08-29 2016-03-30 优视科技有限公司 Serialization method and device and deserialization method and device
CN105677415A (en) * 2016-01-06 2016-06-15 网易(杭州)网络有限公司 Hot updating method and device
CN106201606A (en) * 2016-07-04 2016-12-07 上海优刻得信息科技有限公司 software distribution method and system
CN106815049A (en) * 2016-12-29 2017-06-09 杭州迪普科技股份有限公司 The method and device of feature database upgrading
CN108255502A (en) * 2016-12-27 2018-07-06 杭州海康威视数字技术股份有限公司 A kind of update in library, upload, management method, device and base management system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002086702A1 (en) * 2001-04-23 2002-10-31 Nokia Corporation Handling different service versions in a server
US20070127377A1 (en) * 2005-11-16 2007-06-07 Thomson Licensing Method for updating a data record and device for carrying out the method
CN101008901A (en) * 2007-01-31 2007-08-01 华为技术有限公司 Method and system for implementing dynamic upgrade of application system
CN102622241A (en) * 2011-01-26 2012-08-01 腾讯科技(深圳)有限公司 Software upgrading method and software upgrading device
CN103677903A (en) * 2013-11-26 2014-03-26 小米科技有限责任公司 Mobile terminal intelligent upgrade method and device, and electronic equipment
CN104035772A (en) * 2014-06-09 2014-09-10 中国科学院软件研究所 Static analysis based source code multi-versionfunction call relation difference identification method
CN105446722A (en) * 2014-08-29 2016-03-30 优视科技有限公司 Serialization method and device and deserialization method and device
CN105677415A (en) * 2016-01-06 2016-06-15 网易(杭州)网络有限公司 Hot updating method and device
CN106201606A (en) * 2016-07-04 2016-12-07 上海优刻得信息科技有限公司 software distribution method and system
CN108255502A (en) * 2016-12-27 2018-07-06 杭州海康威视数字技术股份有限公司 A kind of update in library, upload, management method, device and base management system
CN106815049A (en) * 2016-12-29 2017-06-09 杭州迪普科技股份有限公司 The method and device of feature database upgrading

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
佚名: "How to reinstall and update packages", 《HTTPS://DOCS.MICROSOFT.COM/EN-US/NUGET/CONSUME-PACKAGES-REINSTALLING-AND-UPDATING-PACKAGES》 *
空白_回忆: "app接口设计之不同版本统一处理", 《HTTPS//BLOG.CSDN.NET/QQ_26291823/ARTICLE/DETAILS/60133908》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111158716A (en) * 2019-12-20 2020-05-15 中国平安财产保险股份有限公司 Version upgrade calling method and device, computer system and readable storage medium

Also Published As

Publication number Publication date
CN109634636B (en) 2022-05-17

Similar Documents

Publication Publication Date Title
CN107632842B (en) Rule configuration and release method, system, equipment and storage medium
CN107807982B (en) Consistency checking method and device for heterogeneous database
CN109241772B (en) Invoice block chain recording method, invoice block chain recording device, block chain gateway server and invoice block chain recording medium
CN111090628B (en) Data processing method and device, storage medium and electronic equipment
CN109213611B (en) Cross-process communication method, device, terminal and storage medium
CN108833131A (en) System, method, equipment and the computer storage medium of distributed data base cloud service
CN110008045A (en) Polymerization, device, equipment and the storage medium of micro services
CN109002510A (en) A kind of dialog process method, apparatus, equipment and medium
CN110069358A (en) Call chain trace analysis method, apparatus, electronic equipment and storage medium
CN110333875A (en) A kind of service routine update method, device, server and storage medium
CN107506145B (en) Physical storage scheduling method and cloud host creation method
CN107666493B (en) Database configuration method and equipment thereof
CN110737680A (en) Cache data management method and device, storage medium and electronic equipment
CN110516981A (en) A kind of government affairs examination processing method, device, equipment and medium based on block chain
CN109446202A (en) Identifier allocation method, device, server and storage medium
CN115048254B (en) Simulation test method, system, equipment and readable medium for data distribution strategy
CN107463492A (en) Application failure localization method and device
CN112416775A (en) Software automation testing method and device based on artificial intelligence and electronic equipment
CN112162925A (en) Test method and system based on service virtualization
CN110502345A (en) A kind of overload protection method, device, computer equipment and storage medium
CN109634636A (en) Application processing method, device, equipment and medium
CN112650449B (en) Method and system for releasing cache space, electronic device and storage medium
CN109165712A (en) Distributed generation method, device and computer storage medium by stages number
CN109284108A (en) Date storage method, device, electronic equipment and storage medium
CN108399128A (en) A kind of generation method of user data, device, server and storage medium

Legal Events

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