Summary of the invention
Embodiment of the invention technical matters to be solved is, a kind of realization application program automatic on-line method for updating and device are provided, and automatically information such as the version number of application programs and link information are changed, and can adapt to no language format.
In order to solve the problems of the technologies described above, the embodiment of the invention provides a kind of realization application program automatic on-line method for updating, comprising:
The current needs of decompress(ion) upgrade the source program bag of application program;
Automatically resolve the modification demand webpage that agent customer's end is submitted to, obtain the agent customer and hold the lastest imformation that specific field upgrades in the application programs, and the positional information of said specific field;
According to the positional information of said specific field, be said lastest imformation with the information change of the field of appointment in the said application program;
Said application program after the change completion is compressed into the packet of predetermined format.
Wherein, further comprise:
Agent customer's end is submitted modification demand webpage to apps server; Indicate the lastest imformation that at least one specific field upgrades in the application programs with predetermined format in the said demand webpage, said each specific field chain is connected to its positional information in the source program of said application program.
Wherein, lastest imformation is the expandable mark language XML form in the modification demand webpage submitted to of said agent customer end.
Wherein, said positional information according to said specific field is that said lastest imformation further comprises with the information change of the field of appointment in the said application program:
Calling multi-lingual bag, according to the language format of said application program, is the lastest imformation of corresponding language form with the information change of the field of appointment in the said application program.
Wherein, said lastest imformation comprises version number's lastest imformation and/or link lastest imformation.
Correspondingly, a kind of device of realizing that the application program automatic on-line upgrades is provided, this device comprises:
Decompression module is used for the source program bag that the current needs of decompress(ion) upgrade application program;
The lastest imformation acquisition module; Be used for resolving automatically the modification demand webpage that agent customer's end is submitted to; Obtain the agent customer and hold the lastest imformation that specific field upgrades in the application programs, and the positional information of said specific field in the application program source program;
The change module, the information change that is used for the field of said application program appointment is said lastest imformation;
Compression module, the said application program after being used for change accomplished is compressed into the packet of predetermined format.
Wherein, said lastest imformation acquisition module comprises:
Parsing module is used to resolve the modification demand webpage that agent customer's end is submitted to, obtains the agent customer and holds the lastest imformation that at least one specific field upgrades in the application programs;
The position acquiring unit is used for the link according to said each specific field of modification demand webpage, obtains the positional information of said each specific field in said application program source program.
Wherein, said change module comprises:
Search the unit, be used for finding the corresponding field in the application program in the positional information of said application program source program according to each each specific field;
The replacement unit is used for the lastest imformation that said finger field is corresponding and is inserted into said field of searching the appointment that the unit finds, the raw information of replacing specific field in the said application program.
Wherein, said change module further comprises:
The language format adaptation unit is used to call multi-lingual bag, according to the language format of said application program, is the lastest imformation of corresponding language form with the information change of the field of appointment in the said application program.
Embodiment of the present invention embodiment has following beneficial effect:
Hold the modification demand webpage of being submitted to through automatic parsing agent customer; Obtain the lastest imformation that the information in the specific field that the agent customer holds application programs is changed; Automatically the respective field that finds application program then changes to said lastest imformation with the prime information under this field; Realize the automatic renewal of the information such as version number and link information of application program simply and easily, avoided the research staff manually to change the problem of easy error, reduced research staff's workload; Improved the change efficient of information such as version number and link information in the application program; Satisfied user's robotization, intelligentized demand, and the present invention supports multi-lingual form, be convenient to the application program of disposable all language formats of renewal.
Embodiment
To combine the accompanying drawing in the embodiment of the invention below, the technical scheme in the embodiment of the invention is carried out clear, intactly description, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Seeing also Fig. 1, is that the structure of the device that upgrades of the realization application program automatic on-line of the embodiment of the invention is formed synoptic diagram, and this device can upgrade the application program in the MAC platform automatically; Particularly; This device is arranged on the server end of application program, and is concrete, and this device comprises: decompression module 1; Lastest imformation acquisition module 2, change module 3 and compression module 4.
Said decompression module 1 is used for the source program bag of the application program that the current needs of decompress(ion) upgrade;
Said lastest imformation acquisition module 2; Be used for resolving automatically the modification demand webpage that agent customer's end is submitted to; Obtain the agent customer and hold the lastest imformation that specific field upgrades in the application programs, and the positional information of this specific field in the application program source program;
Said change module 3, the information change that is used for the field of said application program appointment is said lastest imformation.Said change module 3 mainly replaces with the lastest imformation that said lastest imformation acquisition module 2 obtains through the information with the field of appointment in the said application program and gets final product, and " version number 1.0 " that for example will be used for the program field replaces with new " version number 2.0 ".Concrete, said change module 3 can be at first according to the field of lastest imformation acquisition module 2 acquisitions needs renewal in the application source code position, and then to the information and executing replacement operation of this field.
Said compression module 4, the said application program after being used for change accomplished is compressed into the packet of predetermined format.
Wherein, the modification demand webpage that agent customer's end is submitted to need be held generation the agent customer, and it can submit to the modification demand to generate through access application server end (MAC platform) in practical application.For example, it can be in the mode through form, and selection needs the specific field of modification, and fills out the content of preparing renewal.A field in the said application program behind the corresponding decompress(ion) of each difference in this form; When the user need be to the prime information of the specific field of a certain application program when for example master this shop or link information etc. are changed; Can in the corresponding list item of form, import lastest imformation like the version number that upgrades or link information etc.; Wherein, wherein each specific field in advance chain be connected to its positional information in the source program of said application program.When realizing that device that the application program automatic on-line upgrades receives after the agent customer holds the modification demand information of submission, promptly trigger the source program bag of the current application program that needs to upgrade of decompression module 1 decompress(ion).
Further, see also Fig. 1 again, in the device that realization application program automatic on-line of the present invention upgrades, said lastest imformation acquisition module 2 specifically can comprise:
Parsing module 11; Be used to resolve the modification demand webpage that agent customer's end is submitted to; Obtain the agent customer and hold the lastest imformation that at least one specific field upgrades in the application programs, particularly, can be from above-mentioned modification demand webpage; Obtain the title that the agent customer holds the concrete specific field of selection, the pairing update content of each specific field.
Position acquiring unit 12 is used for the link according to each specific field of the demand of modification webpage, obtains the positional information of each specific field in the application program source program.
Further, see also Fig. 1 again, the device that realization application program automatic on-line of the present invention upgrades also comprises:
Format converting module 5; Be used for the lastest imformation that said parsing module 11 is obtained is arranged to expandable mark language XML (eXtensible Markup Language; Extending mark language) form, with further make things convenient for this device in application program to reading and writing data in the specific field.
Further, see also Fig. 1 again, in the device that realization application program automatic on-line of the present invention upgrades, said change module 3 specifically can comprise:
Search unit 21, each specific field that is used for being obtained according to position acquiring unit 12 finds the corresponding field in the application program in the positional information of said application program source program;
Replacement unit 22, the corresponding lastest imformation of said finger field that is used for that said parsing module 11 is obtained are inserted into said field of searching the appointment that unit 21 finds, and replace the raw information of the field of appointment in the said application program.
Said search unit 21 and find the field of appointment after, said replacement unit 22 promptly carries out replacement operation, has automatically realized the renewal like information such as version number, link informations.
Further, this change module 3 can comprise a language format adaptation unit 23, is used to call multi-lingual bag, according to the language format of current application program, is the lastest imformation of corresponding language form with the information change of the field of appointment in the current application program.
Wherein, the above-mentioned lastest imformation of mentioning includes but not limited to version number's lastest imformation and/or link lastest imformation.
Embodiment of the present invention embodiment has following beneficial effect:
Hold the modification demand webpage of being submitted to through automatic parsing agent customer; Obtain the lastest imformation that the information in the specific field that the agent customer holds application programs is changed; Automatically the respective field that finds application program then changes to said lastest imformation with the prime information under this field; Realize the automatic renewal of the information such as version number and link information of application program simply and easily, avoided the research staff manually to change the problem of easy error, reduced research staff's workload; Improve the change efficient of information such as version number and link information in the application program, satisfied user's robotization, intelligentized demand.And the present invention supports multi-lingual form, is convenient to the application program of disposable all language formats of renewal.
Be described in detail in the face of a kind of realization application program automatic on-line method for updating of the present invention down.
Seeing also Fig. 2, is the first embodiment schematic flow sheet of realization application program automatic on-line method for updating of the present invention, and the realization application program automatic on-line method for updating in the present embodiment specifically comprises:
Step S201: the source program bag that upgrades application program at the current needs of apps server end (MAC platform) decompress(ion).
Step S202: resolve the modification demand webpage that agent customer's end is submitted to automatically, obtain the agent customer and hold the lastest imformation that specific field upgrades in the application programs, and the positional information in the source program of this application program of said specific field.
Wherein, Agent customer's end is submitted modification demand webpage to apps server; Indicate the lastest imformation that at least one specific field upgrades in the application programs with predetermined format in this demand webpage, wherein each specific field chain is connected to its positional information in the source program of application program.In practical application, agent customer's end can submit to the modification demand to generate through access application server end (MAC platform).For example, it can be in the mode through form, and selection needs the specific field of modification, and fills out the content of preparing renewal.A field in the said application program behind the corresponding decompress(ion) of each difference in this form; Need be to the prime information of the specific field of a certain application program when for example master this shop or link information etc. are changed as the user, can in the corresponding list item of form, import lastest imformation like the version number that upgrades or link information etc.
The apps server end is resolved through the modification demand webpage that agent customer's end is submitted to; Can obtain the agent customer holds and has what specific fields to revise in the application programs; The title of these specific fields, and the corresponding lastest imformation of each specific field; And the link according to each specific field in the demand of the modification webpage obtains the positional information of this each specific field in this application program source program.
In addition, after getting access to the lastest imformation of agent customer's end, can this lastest imformation be converted to the data of XML form, so that more easily read and write data in the application program respective field to specific field.
Step S203: with the information change of the field of appointment in the said application program is said lastest imformation.
Said step S203 mainly replaces with the lastest imformation that said step S202 obtains through the information with the field of appointment in the said application program and gets final product, and " version number 1.0 " that for example will be used for the program field replaces with new " version number 2.0 ".Concrete, said step S203 can at first find the corresponding field in the application program according to the positional information of each specific field in said application program source program; To refer to that then the corresponding lastest imformation of field is inserted in the aforementioned specific field that finds, the raw information of this specific field in the replacement application program.
Step S204: will change the packet that said application program after accomplishing is compressed into predetermined format.Said application program after being about to replace is compressed into the packet of predetermined format, is compressed into the routine package of the needed form of user.
Description through the foregoing description can know that the present invention has the following advantages:
Automatically resolve the modification demand webpage that agent customer's end is submitted to; Obtain the lastest imformation that the information in the specific field that the agent customer holds application programs is changed; Automatically the respective field that finds application program then changes to said lastest imformation with the prime information under this field; Realize the automatic renewal of the information such as version number and link information of application program simply and easily, avoided the research staff manually to change the problem of easy error, reduced research staff's workload; Improve the change efficient of information such as version number and link information in the application program, satisfied user's robotization, intelligentized demand.And the present invention supports multi-lingual form, is convenient to the application program of disposable all language formats of renewal.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in the foregoing description method; Be to instruct relevant hardware to accomplish through computer program; Described program can be stored in the computer read/write memory medium; This program can comprise the flow process like the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
Above disclosedly be merely preferred embodiment of the present invention, can not limit the present invention's interest field certainly with this, the equivalent variations of therefore doing according to claim of the present invention still belongs to the scope that invention is contained.