CN108182074A - Functionally inserting method, device, mobile terminal and the storage medium of application - Google Patents

Functionally inserting method, device, mobile terminal and the storage medium of application Download PDF

Info

Publication number
CN108182074A
CN108182074A CN201711486396.5A CN201711486396A CN108182074A CN 108182074 A CN108182074 A CN 108182074A CN 201711486396 A CN201711486396 A CN 201711486396A CN 108182074 A CN108182074 A CN 108182074A
Authority
CN
China
Prior art keywords
condition
function
reaching
standard grade
configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201711486396.5A
Other languages
Chinese (zh)
Inventor
刘孟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuba Co Ltd
Original Assignee
Wuba 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 Wuba Co Ltd filed Critical Wuba Co Ltd
Priority to CN201711486396.5A priority Critical patent/CN108182074A/en
Publication of CN108182074A publication Critical patent/CN108182074A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses functionally inserting method, device, mobile terminal and the storage mediums of a kind of application.The method includes:The condition configuration of function is obtained from application;Judge whether the condition configuration meets preset condition of reaching the standard grade;If reaching the standard grade condition described in the condition configuration satisfaction, the function is performed;If the condition configuration is unsatisfactory for the condition of reaching the standard grade, the offline function.The each embodiment of the present invention when there is program bug in function, can quick offline function, and then effectively solve the problem of that application in the prior art occurs that repairing efficiency is long during program bug, and it is possible to prevente effectively from CRASH phenomenons, and then raising user experience.

Description

Functionally inserting method, device, mobile terminal and the storage medium of application
Technical field
The present invention relates to application software technology field, more particularly to the functionally inserting method, device, shifting of a kind of application Dynamic terminal and storage medium.
Background technology
With the development of science and technology, APP (Application, using) continue to introduce new.It is frequently present of in APP BUG (program bug).At present, it is remote thermal reparation for the mainstream restorative procedure of BUG:Using correct program code as patch File is simultaneously reached the standard grade, to repair the BUG by patch file.
But line process is complicated on existing patch file, so as to cause repairing efficiency it is long the problems such as, and be easy to cause APP CRASH (situations such as delay machine or host, program stopped work) phenomenon occurs, results even in the problem of can not repairing.Such as:
1st, during reaching the standard grade, server side is needed to audit, therefore repair process is complicated;If audit does not pass through, just It can not reach the standard grade, and then lead to not repair BUG.
2nd, server side audit generally requires one day to more than ten days audit time not etc., long so as to cause repairing efficiency.
3rd, if due to BUG cause APP start during just generation CRASH phenomenons, also resulting in can not repair BUG。
If the 4, fruit can not repair BUG for a long time, user experience can be seriously reduced.
Invention content
In order to overcome drawbacks described above, the technical problem to be solved in the present invention is to provide a kind of functionally offline sides of application Method, device, mobile terminal and storage medium, repairing efficiency is long when there is program bug at least to solve the problem of to apply.
In order to solve the above technical problems, a kind of functionally inserting method of application in the embodiment of the present invention, including:
The condition configuration of function is obtained from application;
Judge whether the condition configuration meets preset condition of reaching the standard grade;
If reaching the standard grade condition described in the condition configuration satisfaction, the function is performed;
If the condition configuration is unsatisfactory for the condition of reaching the standard grade, the offline function.
Optionally, the condition is configured to functional switch;Before the condition configuration that function is obtained from application, packet It includes:
Receive the configuration-direct of server;
According to the configuration-direct, the functional switch is updated.
Optionally, the state of the functional switch includes opening and closed state;It is described to judge the condition configuration Whether preset reach the standard grade condition is met, including:
If the functional switch is in opening, condition of reaching the standard grade described in the condition configuration satisfaction is judged;
If the functional switch is closed, judge that the condition configuration is unsatisfactory for the condition of reaching the standard grade.
Optionally, before the condition configuration that function is obtained from application, including:
In the integrated branch of the application, functional switch is set to the upgrade function of the integrated branch.
Optionally, the function of the integrated branch is Elementary Function;If the condition configuration meets the upper lines Part performs the function;If condition configuration is unsatisfactory for the condition of reaching the standard grade, the offline function, including:
If reaching the standard grade condition described in the condition configuration satisfaction, the upgrade function is performed;
If the condition configuration is unsatisfactory for the condition of reaching the standard grade, the Elementary Function is performed.
Optionally, it is described in the integrated branch of the application, the upgrade function setting function of the integrated branch is opened Before pass, including:
The upgrade function is fused in the integrated branch.
Optionally, the function of the integrated branch is Elementary Function;It is described in the integrated branch of the application, to described The upgrade function setting functional switch of integrated branch, including:
Compare the upgrade function and difference of the Elementary Function on program code;
Determine the program code of difference;
According to the functional switch, the program code of the difference is fused to the program code of the Elementary Function.
Optionally, it is described according to the functional switch, the program code of the difference is fused to the Elementary Function Program code, including:
According to the functional switch, the execution condition of the program code of the difference is configured;
The program code for the difference that execution condition is configured is fused to the program code of the Elementary Function.
In order to solve the above technical problems, a kind of functionally coil inserting apparatus of application in the embodiment of the present invention, including:
Acquisition module, for obtaining the condition configuration of function from application;
Judgment module, for judging whether the condition configuration meets preset condition of reaching the standard grade;
Execution module if for condition of reaching the standard grade described in condition configuration satisfaction, performs the function;If the condition is matched It puts and is unsatisfactory for the condition of reaching the standard grade, the offline function.
In order to solve the above technical problems, a kind of mobile terminal in the embodiment of the present invention includes memory and processor;Institute The functionally offline computer program that memory is stored with application is stated, the processor performs the computer program, to realize As above the step of any one the method.
In order to solve the above technical problems, a kind of computer readable storage medium in the embodiment of the present invention, is stored with application Functionally offline computer program, when the computer program is performed by least one processor, with realize it is as above any one The step of item the method.
The present invention has the beneficial effect that:
Each embodiment, can quickly offline function, and then effectively when program bug occurs in function in the present invention Solve the problem of that application occurs that repairing efficiency is long during program bug in the prior art, and it is possible to prevente effectively from CRASH phenomenons, into And improve user experience.
Description of the drawings
Fig. 1 is the functionally flow chart of inserting method in the embodiment of the present invention one;
Fig. 2 is the allocative effect schematic diagram of functional switch in the embodiment of the present invention;
Fig. 3 is the functionally flow chart of inserting method in the embodiment of the present invention two;
Fig. 4 is the functionally flow chart of inserting method in the embodiment of the present invention three;
Fig. 5 is the functionally flow chart of inserting method in the embodiment of the present invention four;
Fig. 6 is application and development flow chart in the embodiment of the present invention five;
Fig. 7 is using hair version flow chart in the embodiment of the present invention five;
Fig. 8 is that user uses the flow chart of application in the embodiment of the present invention five;
Fig. 9 is a kind of structure diagram of the functionally coil inserting apparatus of application in the embodiment of the present invention.
Specific embodiment
In order to solve problem of the prior art, the present invention provides the functionally inserting methods, device, movement of a kind of application Terminal and storage medium, below in conjunction with attached drawing and embodiment, the present invention will be described in further detail.It should be appreciated that this Locate described specific embodiment only to explain the present invention, do not limit the present invention.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix Ground uses.
Using for distinguish the prefixes such as " first " of element, " second " only for be conducive to the present invention explanation, Itself is without specific meaning.
Mobile terminal can be mobile phone, tablet computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable media player (Portable Media Player, PMP), navigation device, Wearable device, Intelligent bracelet, pedometer etc..
Embodiment one
The embodiment of the present invention provides a kind of functionally inserting method of application, as shown in Figure 1, the method includes:
S101 obtains the condition configuration of function from application;
S102, judges whether the condition configuration meets preset condition of reaching the standard grade;
S103 if reaching the standard grade condition described in condition configuration satisfaction, performs the function;
S104, if condition configuration is unsatisfactory for the condition of reaching the standard grade, the offline function.
One or more function setting conditions can be configured in the embodiment of the present invention.
Method can be performed in mobile terminal side in the embodiment of the present invention.
The embodiment of the present invention is configured by the condition of the detection function from application, and function is carried out according to condition configuration Line or offline processing, can quickly offline function, and then effectively solve existing so as to when program bug occurs in function Have in technology using when there is program bug, the problem of repairing efficiency is long, and it is possible to prevente effectively from CRASH phenomenons, and then improve User experience.
In detail, in the specific implementation, programmer (developer) is answering the embodiment of the present invention after the completion of application and development Before hair version, condition can be set to be configured in the application, and be configured according to condition, condition judgment, Ran Houtong are increased to function It crosses server interface and issues configuration-direct, control whether this condition opens by configuration-direct.
For example, when function is pinpointed the problems, server issues new condition configuration, then the function directly rolls back to previous version This state is equivalent to the function of not reaching the standard grade, to achieve the purpose that most to repair problem soon when pinpointing the problems.
Embodiment two
Inserting method in a kind of function of application is provided in the embodiment of the present invention, optionally, the embodiment of the present invention is being implemented One kind on the basis of example one is provided, configuration-direct is sent to application program by server, so that using can be according to configuration-direct Update condition is configured.
In the embodiment of the present invention, the state of functional switch can include opening ON and closed state OFF.
In the embodiment of the present invention, can in APP build-in function on off state, can also function be issued by server and opened The state of pass can also pass through server update functional switch state.Built-in is because after APP startups, may be come not yet And the functional switch state that request server issues, it is possible to the value of this functional switch is used, so APP needs need before reaching the standard grade It is built-in.According to circumstances built-in functional switch state can be ON or OFF.As shown in Fig. 2, exist using XXX 7.10.0 version has been reached the standard grade some functions, wherein three functions shown in Fig. 2, which go wrong, can add function than more serious Switch.
Such as:A), under normal circumstances function be tested personnel check and accept pass through, can in be set to ON.When something goes wrong Server is needed to issue the state of OFF.
B), function, which is checked and accepted, passes through, but the server interface that APP is relied on be when can not reach the standard grade in time, can in be set to OFF.After server interface is normally reached the standard grade, server can issue the state of ON.At this moment APP can just show new work(to user Energy.
In the embodiment of the present invention, optionally, the condition is configured to functional switch.
As shown in figure 3, method can include in the embodiment of the present invention:
S201 receives the configuration-direct of server;
S202 according to the configuration-direct, updates the functional switch.Wherein, the state of the functional switch includes opening Open state and closed state;For example, the status information that carrying function switchs in configuration-direct, the state of functional switch is configured Into the status information accordance with carrying;
S203, the condition configuration of detection function from application;
S204, judges whether the condition configuration meets preset condition of reaching the standard grade;
S205 if reaching the standard grade condition described in condition configuration satisfaction, performs the function;
S206, if condition configuration is unsatisfactory for the condition of reaching the standard grade, the offline function.
Judge whether the condition configuration meets preset condition of reaching the standard grade for example, described, including:
If the functional switch is in opening, condition of reaching the standard grade described in the condition configuration satisfaction is judged;
If the functional switch is closed, judge that the condition configuration is unsatisfactory for the condition of reaching the standard grade.
In the embodiment of the present invention, for having sent out the APP of version, when encountering CRUSH or more serious BUG, Ke Yijie Server configuration-direct is received, the offline function of going wrong is lost or experienced with user caused by reduction.
Embodiment three
The embodiment of the present invention provides a kind of functionally inserting method of application, optionally, function in embodiments of the present invention Generally refer to upgrade function.For example, will apply from first version be upgraded to the second edition when, the second edition is relative to first version In increased function be upgrade function.
In the embodiment of the present invention, optionally, the condition is configured to functional switch.
As shown in figure 4, method can include in the embodiment of the present invention:
In the integrated branch of the application, functional switch is set to the upgrade function of the integrated branch by S301;
S302, the condition configuration of detection function from application;
S303, judges whether the condition configuration meets preset condition of reaching the standard grade;
S304 if reaching the standard grade condition described in condition configuration satisfaction, performs the function;
S305, if condition configuration is unsatisfactory for the condition of reaching the standard grade, the offline function.
In embodiments of the present invention, optionally, the function of integrating in branch can also be referred to as Elementary Function, if the institute Condition of reaching the standard grade described in condition configuration satisfaction is stated, performs the function;If the condition configuration is unsatisfactory for the condition of reaching the standard grade, offline The function, including:
If reaching the standard grade condition described in the condition configuration satisfaction, the upgrade function is performed;
If the condition configuration is unsatisfactory for the condition of reaching the standard grade, the Elementary Function of the integrated branch is performed.
Certainly, method can also be including each step in embodiment two in the embodiment of the present invention.
In the embodiment of the present invention, exploitation branch can also be referred to as functional branch.General APP is in exploitation, by QA (Quality Assurance, quality guarantee) tester tests APP, and BUG, developer's modification are found in QA testers BUG.Since the function of developer's exploitation is unstable, so can generally hew out a new functional branch, independent face To a function.
Integrated branch is referred to as main split.After the function of developer's exploitation is checked and accepted by QA testers to be passed through, It can be by the function merge (fusion) of exploitation to integrated branch;Then QA testers check and accept merge to the institute of integrated branch again It is functional, it is ensured that change and influence each other while without because of multiple people, and generate new BUG.Integrated branch can finally beat Packet is mentioned using shop.
Integrated branch may be considered the integrated branch in first version in the embodiment of the present invention.
For the embodiment of the present invention in specific implementation, can write one in advance can obtain all functions of needing to configure The class of switch, such program code are as follows:
@interface WBFeatureControl:NSOject
@property (nonatomic, strong) NSMutableDictionary*allFeatureSwitch;
+(WBFeatureControl*)sharedInstance;
@end
Wherein, WBFeatureControl is the name of class, function control class;SharedInstance is a function, The instance objects of this class can be got by this function;AllFeatureSwitch is for preserving all need to configure The switch of the function of switch, as shown in Figure 2.
Example IV
The embodiment of the present invention provides a kind of functionally inserting method of application, optionally, function in embodiments of the present invention Generally refer to upgrade function.In the embodiment of the present invention, optionally, the condition is configured to functional switch.
As shown in figure 5, method includes in the embodiment of the present invention:
S401 is fused to the upgrade function in the integrated branch;
In the integrated branch of the application, functional switch is set to the upgrade function of the integrated branch by S402;
S403, the condition configuration of detection function from application;
S404, judges whether the condition configuration meets preset condition of reaching the standard grade;
S405 if reaching the standard grade condition described in condition configuration satisfaction, performs the function;
S406, if condition configuration is unsatisfactory for the condition of reaching the standard grade, the offline function.
For example, in specific implementation, can functional branch be created according to the upgrade requirement of the integrated branch of the application, Then according to the functional branch, upgrade function is developed, finally upgrade function is fused in integrated branch.
It is optionally, described by the upgrade function in the embodiment of the present invention, it is fused in the integrated branch, including:
Compare the upgrade function and difference of the Elementary Function on program code;
Determine the program code of difference;
According to the functional switch, the program code of the difference is fused to the program code of the Elementary Function.
It is optionally, described according to the functional switch in the embodiment of the present invention, the program code of the difference is fused to The program code of the Elementary Function, including:
According to the functional switch, the execution condition of the program code of the difference is configured;
The program code for the difference that execution condition is configured is fused to the program code of the Elementary Function.
For example, can program be checked by tool by before upgrade function merge to integrated branch in the embodiment of the present invention Code.Wherein, the function of integrating in branch can be referred to as Elementary Function.
It is compared, is distinguished using the condition of execution (such as conditional statement if/else) integrated before upgrading according to program code The program code of branch and the program code of upgrade function, for example a condition can be increased in the program code of integrated branch Judge:
if([[WBFeatureControl sharedInstance].allFeatureSwitch[@"XXX_7.10.0_ search_optimize"]isEqual:@"on"])。
Program code inside wherein if judgements is the program code of the modified upgrade function of developer, and inside else Program code be upgrading before Elementary Function in integrated branch program code.
When meeting if conditions, i.e. when the on off state of this function of XXX_7.10.0_search_optimize is ON, then The program code inside if is performed, otherwise can perform else internal processes codes;And then it can realize that mono- function of APP be to make Control is made with new function (upgrade function) or old function (Elementary Function).
Certainly, method can also be including each step in above-mentioned each embodiment in the embodiment of the present invention.
Embodiment five
The embodiment of the present invention provides a kind of functionally inserting method of application, and the embodiment of the present invention provides one and specifically should Use-case, the flow that the functionally inserting method to describe application is used from exploitation to user, the flow include application and development, answer With hair version and user for the use of using three.
First, the exploitation of application upgrade function, as shown in fig. 6, including:
S501 according to the new version demand of application, creates functional branch;
S502 in functional branch, develops new function;New function can also be referred to as upgrade function;
S503, QA, which test new function and check and accept, to be passed through;
S504, developer check the difference for comparing the program code sum aggregate of new function into the program code of branch;
S505 increases if/else condition judgments in the program code of integrated branch, the program code distinguished is merged Into the program code of integrated branch.Wherein, it is the program code of new function in if respective branches, is in the corresponding branches of else The program code of Elementary Function in integrated branch;
S506, by the program code merge of difference to integrated branch.
2nd, using hair version, as shown in fig. 7, comprises:
S601 is applied after the completion of exploitation, in the application build-in function on off state, to control the work(of application execution Energy;
S602 will be applied and will be published to using shop;
S603 waits the audit of the auditor in shop to be applied;
S604, after the approval application are reached the standard grade.
3rd, user uses application, as shown in figure 8, including:
Using situation is abnormal, configuration-direct is issued by server by S701;
S702, using reception configuration-direct;
S703 using upon actuation, reads the configuration that configuration-direct issues;
S704, using the program code performed according to the configuration selection issued in if or else.
Embodiment six
The embodiment of the present invention provides a kind of functionally coil inserting apparatus of application, as shown in figure 9, described device includes:
Acquisition module 10, for obtaining the condition configuration of function from application;
Judgment module 12, for judging whether the condition configuration meets preset condition of reaching the standard grade;
Execution module 14 if for condition of reaching the standard grade described in condition configuration satisfaction, performs the function;If the condition Configuration is unsatisfactory for the condition of reaching the standard grade, the offline function.
In embodiments of the present invention, optionally, described device further includes:
Update module, for receiving the configuration-direct of server;According to the configuration-direct, the functional switch is updated.
In embodiments of the present invention, optionally, the state of the functional switch includes opening and closed state;It is described Judge whether the condition configuration meets preset condition of reaching the standard grade, including:
If the functional switch is in opening, condition of reaching the standard grade described in the condition configuration satisfaction is judged;
If the functional switch is closed, judge that the condition configuration is unsatisfactory for the condition of reaching the standard grade.
In embodiments of the present invention, optionally, described device further includes:
Configuration module, in the integrated branch of the application, function to be set to the upgrade function of the integrated branch Switch.
In embodiments of the present invention, optionally, the function of the integrated branch is Elementary Function;If the condition is matched Condition of reaching the standard grade described in satisfaction is put, performs the function;If the condition configuration is unsatisfactory for the condition of reaching the standard grade, the offline work( Can, including:
If reaching the standard grade condition described in the condition configuration satisfaction, the upgrade function is performed;
If the condition configuration is unsatisfactory for the condition of reaching the standard grade, the Elementary Function is performed.
In embodiments of the present invention, optionally, the configuration module is additionally operable to the upgrade function, is fused to described In integrated branch.
In embodiments of the present invention, optionally, the function in the integrated branch is Elementary Function;It is described by the upgrading Function is fused in the integrated branch, including:
Compare the upgrade function and difference of the Elementary Function on program code;
Determine the program code of difference;
According to the functional switch, the program code of the difference is fused to the program code of the Elementary Function.
In embodiments of the present invention, optionally, it is described according to the functional switch, the program code of the difference is merged To the program code of the Elementary Function, including:
According to the functional switch, the execution condition of the program code of the difference is configured;
The program code for the difference that execution condition is configured is fused to the program code of the Elementary Function.
The embodiment of the present invention can also refer to above-mentioned each embodiment, have corresponding technique effect in specific implementation.
Embodiment seven
The embodiment of the present invention provides a kind of mobile terminal, which is characterized in that the mobile terminal includes memory and processing Device;The memory is stored with the functionally offline computer program of application, and the processor performs the computer program, with The step of realizing any one the method in such as embodiment one to embodiment five.
In detail, the processor performs the computer program, to realize following steps:
The condition configuration of function is obtained from application;
Judge whether the condition configuration meets preset condition of reaching the standard grade;
If reaching the standard grade condition described in the condition configuration satisfaction, the function is performed;
If the condition configuration is unsatisfactory for the condition of reaching the standard grade, the offline function.
In embodiments of the present invention, optionally, the condition is configured to functional switch;It is described that function is obtained from application Before condition configuration, including:
Receive the configuration-direct of server;
According to the configuration-direct, the functional switch is updated.
In embodiments of the present invention, optionally, the state of the functional switch includes opening and closed state;It is described Judge whether the condition configuration meets preset condition of reaching the standard grade, including:
If the functional switch is in opening, condition of reaching the standard grade described in the condition configuration satisfaction is judged;
If the functional switch is closed, judge that the condition configuration is unsatisfactory for the condition of reaching the standard grade.
In embodiments of the present invention, optionally, before the condition configuration that function is obtained from application, including:
In the integrated branch of the application, functional switch is set to the upgrade function of the integrated branch.
In embodiments of the present invention, optionally, the function of the integrated branch is Elementary Function;If the condition is matched Condition of reaching the standard grade described in satisfaction is put, performs the function;If the condition configuration is unsatisfactory for the condition of reaching the standard grade, the offline work( Can, including:
If reaching the standard grade condition described in the condition configuration satisfaction, the upgrade function is performed;
If the condition configuration is unsatisfactory for the condition of reaching the standard grade, the Elementary Function is performed.
In embodiments of the present invention, optionally, it is described in the integrated branch of the application, to the liter of the integrated branch Before grade function setting functional switch, including:
The upgrade function is fused in the integrated branch.
In embodiments of the present invention, optionally, the function in the integrated branch is Elementary Function;It is described by the upgrading Function is fused in the integrated branch, including:
Compare the upgrade function and difference of the Elementary Function on program code;
Determine the program code of difference;
According to the functional switch, the program code of the difference is fused to the program code of the Elementary Function.
In embodiments of the present invention, optionally, it is described according to the functional switch, the program code of the difference is merged To the program code of the Elementary Function, including:
According to the functional switch, the execution condition of the program code of the difference is configured;
The program code for the difference that execution condition is configured is fused to the program code of the Elementary Function.
The embodiment of the present invention can also refer to above-mentioned each embodiment, have corresponding technique effect in specific implementation.
Embodiment eight
The embodiment of the present invention provides a kind of computer readable storage medium, it is characterised in that the storage medium is stored with should Functionally offline computer program, when the computer program is performed by least one processor, to realize such as embodiment One in embodiment five the step of any one the method.
The embodiment of the present invention can refer to above-mentioned each embodiment, have corresponding technique effect in specific implementation.
Computer of embodiment of the present invention readable storage medium storing program for executing can be RAM memory, flash memory, ROM memory, EPROM Memory, eeprom memory, register, hard disk, mobile hard disk, CD-ROM or any other form known in the art Storage medium.A kind of storage medium lotus root can be connected to processor, so as to enable a processor to from the read information, And information can be written to the storage medium;Or the storage medium can be the component part of processor.Processor and storage are situated between Matter can be located in application-specific integrated circuit.
Above-described specific embodiment has carried out the purpose of the present invention, technical solution and advantageous effect further It is described in detail, it should be understood that the foregoing is merely the specific embodiment of the present invention, is not intended to limit the present invention Protection domain, all within the spirits and principles of the present invention, any modification, equivalent substitution, improvement and etc. done should all include Within protection scope of the present invention.

Claims (11)

1. a kind of functionally inserting method of application, which is characterized in that the method includes:
The condition configuration of function is obtained from application;
Judge whether the condition configuration meets preset condition of reaching the standard grade;
If reaching the standard grade condition described in the condition configuration satisfaction, the function is performed;
If the condition configuration is unsatisfactory for the condition of reaching the standard grade, the offline function.
2. the method as described in claim 1, which is characterized in that the condition is configured to functional switch;It is described to be obtained from application Before taking the condition configuration of function, including:
Receive the configuration-direct of server;
According to the configuration-direct, the functional switch is updated.
3. method as claimed in claim 2, which is characterized in that the state of the functional switch includes opening and closes shape State;It is described to judge whether the condition configuration meets preset condition of reaching the standard grade, including:
If the functional switch is in opening, condition of reaching the standard grade described in the condition configuration satisfaction is judged;
If the functional switch is closed, judge that the condition configuration is unsatisfactory for the condition of reaching the standard grade.
4. method as claimed in claim 2, which is characterized in that before the condition configuration that function is obtained from application, packet It includes:
In the integrated branch of the application, functional switch is set to the upgrade function of the integrated branch.
5. method as claimed in claim 4, which is characterized in that the function of the integrated branch is Elementary Function;If the institute Condition of reaching the standard grade described in condition configuration satisfaction is stated, performs the function;If the condition configuration is unsatisfactory for the condition of reaching the standard grade, offline The function, including:
If reaching the standard grade condition described in the condition configuration satisfaction, the upgrade function is performed;
If the condition configuration is unsatisfactory for the condition of reaching the standard grade, the Elementary Function is performed.
6. method as claimed in claim 4, which is characterized in that it is described in the integrated branch of the application, to described integrated Before the upgrade function setting functional switch of branch, including:
The upgrade function is fused in the integrated branch.
7. method as claimed in claim 6, which is characterized in that the function in the integrated branch is Elementary Function;It is described to incite somebody to action The upgrade function is fused in the integrated branch, including:
Compare the upgrade function and difference of the Elementary Function on program code;
Determine the program code of difference;
According to the functional switch, the program code of the difference is fused to the program code of the Elementary Function.
8. the method for claim 7, which is characterized in that it is described according to the functional switch, by the program of the difference Code is fused to the program code of the Elementary Function, including:
According to the functional switch, the execution condition of the program code of the difference is configured;
The program code for the difference that execution condition is configured is fused to the program code of the Elementary Function.
9. the functionally coil inserting apparatus of a kind of application, which is characterized in that described device includes:
Acquisition module, for obtaining the condition configuration of function from application;
Judgment module, for judging whether the condition configuration meets preset condition of reaching the standard grade;
Execution module if for condition of reaching the standard grade described in condition configuration satisfaction, performs the function;If the condition configuration is not It reaches the standard grade described in satisfaction condition, the offline function.
10. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory and processor;The memory storage There is the functionally offline computer program of application, the processor performs the computer program, to realize such as claim 1-8 The step of middle any one the method.
11. a kind of computer readable storage medium, which is characterized in that the storage medium is stored with the functionally offline meter of application Calculation machine program, when the computer program is performed by least one processor, to realize such as any one institute in claim 1-8 The step of stating method.
CN201711486396.5A 2017-12-29 2017-12-29 Functionally inserting method, device, mobile terminal and the storage medium of application Pending CN108182074A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711486396.5A CN108182074A (en) 2017-12-29 2017-12-29 Functionally inserting method, device, mobile terminal and the storage medium of application

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711486396.5A CN108182074A (en) 2017-12-29 2017-12-29 Functionally inserting method, device, mobile terminal and the storage medium of application

Publications (1)

Publication Number Publication Date
CN108182074A true CN108182074A (en) 2018-06-19

Family

ID=62549466

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711486396.5A Pending CN108182074A (en) 2017-12-29 2017-12-29 Functionally inserting method, device, mobile terminal and the storage medium of application

Country Status (1)

Country Link
CN (1) CN108182074A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110275701A (en) * 2019-06-19 2019-09-24 网易传媒科技(北京)有限公司 Data processing method, device, medium and calculating equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929661A (en) * 2012-10-09 2013-02-13 北京奇虎科技有限公司 Method and device for processing functional component, and server
CN103150193A (en) * 2013-04-10 2013-06-12 天津三星光电子有限公司 Software upgrading method for mobile terminal
CN106020882A (en) * 2016-05-18 2016-10-12 青岛海信电器股份有限公司 Application upgrading method, intelligent terminal and upgrading system
CN106970805A (en) * 2016-01-14 2017-07-21 平安科技(深圳)有限公司 Function configuration method and system
US20170262277A1 (en) * 2016-03-14 2017-09-14 Toyota Jidosha Kabushiki Kaisha Software management system for vehicle, management server, and vehicle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102929661A (en) * 2012-10-09 2013-02-13 北京奇虎科技有限公司 Method and device for processing functional component, and server
CN103150193A (en) * 2013-04-10 2013-06-12 天津三星光电子有限公司 Software upgrading method for mobile terminal
CN106970805A (en) * 2016-01-14 2017-07-21 平安科技(深圳)有限公司 Function configuration method and system
US20170262277A1 (en) * 2016-03-14 2017-09-14 Toyota Jidosha Kabushiki Kaisha Software management system for vehicle, management server, and vehicle
CN106020882A (en) * 2016-05-18 2016-10-12 青岛海信电器股份有限公司 Application upgrading method, intelligent terminal and upgrading system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110275701A (en) * 2019-06-19 2019-09-24 网易传媒科技(北京)有限公司 Data processing method, device, medium and calculating equipment

Similar Documents

Publication Publication Date Title
CN109739766B (en) System and method for rapidly building FPGA digital simulation model
CN108090567B (en) Fault diagnosis method and device for power communication system
US20170337116A1 (en) Application testing on different device types
CN104090839B (en) Abnormal scene analog detection method and device
CN110377462B (en) Interface testing method and device and terminal equipment
CN111858296B (en) Interface testing method, device, equipment and storage medium
CN109376993A (en) Flow verification method, apparatus, computer equipment and storage medium
CN105680960A (en) Automatic test method for Bluetooth card reader, test upper computer and test system
US11232020B2 (en) Fault detection using breakpoint value-based fingerprints of failing regression test cases
CN105404536B (en) Method for updating terminal software and terminal software upgrading device
CN109473093A (en) Audio recognition method, device, computer equipment and storage medium
US8595680B1 (en) Constrained random error injection for functional verification
CN108536597A (en) A kind of terminal test method, device, terminal device and storage medium
CN113342669B (en) Verification method and device for shortening convergence time of chip code coverage rate
CN107193747B (en) Code testing method and device and computer equipment
US20220405063A1 (en) Source code correction assistance apparatus and source code correction assistance method
CN113254284A (en) Chip testing method, device, equipment, storage medium and program product
CN108182074A (en) Functionally inserting method, device, mobile terminal and the storage medium of application
CN106201790B (en) A kind of adjustment method and debugging system based on DSDT table
CN107066864A (en) A kind of application icon display methods and its equipment
CN115470125B (en) Log file-based debugging method, device and storage medium
KR101563494B1 (en) Real-time source code security weaknesses detection apparatus and method according to the file changes
CN104090845B (en) Automatic game testing method and system and related device
CN116431468A (en) Test method, test device, test processing equipment and storage medium
CN115618777A (en) File generation method, device, equipment 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180619

RJ01 Rejection of invention patent application after publication