CN108536467A - Location processing method, device, terminal device and the storage medium of code - Google Patents

Location processing method, device, terminal device and the storage medium of code Download PDF

Info

Publication number
CN108536467A
CN108536467A CN201810307291.7A CN201810307291A CN108536467A CN 108536467 A CN108536467 A CN 108536467A CN 201810307291 A CN201810307291 A CN 201810307291A CN 108536467 A CN108536467 A CN 108536467A
Authority
CN
China
Prior art keywords
code
new version
identification code
layer identification
information
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
CN201810307291.7A
Other languages
Chinese (zh)
Other versions
CN108536467B (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201810307291.7A priority Critical patent/CN108536467B/en
Publication of CN108536467A publication Critical patent/CN108536467A/en
Application granted granted Critical
Publication of CN108536467B publication Critical patent/CN108536467B/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/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/72Code refactoring

Landscapes

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

Abstract

The application provides a kind of location processing method of code, device, terminal device and storage medium, this method:Obtain the new version information and legacy version information of intended application, new version information includes new version interface image and the corresponding new version front end of new version interface image shows that layer identification code, legacy version information include that the corresponding legacy version interface image of intended application and the corresponding legacy version front end of legacy version interface image show layer identification code;According to new version information and legacy version information, determine that the first distinctive information of new version interface image and legacy version interface image and new version front end show that layer identification code shows the second distinctive information of layer identification code with legacy version front end;According to the first distinctive information and the second distinctive information, layer identification code, which carries out localization process, to be shown to new version front end.Developer can be made to be quickly found out new version front end and show the part that layer identification code shows that layer identification code is changed with respect to legacy version front end, the development efficiency of developer is improved, effectively save cost.

Description

Location processing method, device, terminal device and the storage medium of code
Technical field
This application involves Internet technical field more particularly to a kind of location processing method of code, device, terminal devices And storage medium.
Background technology
With the rapid development of Internet technology, various applications become the basis for meeting people's network demand, and with people Demand continuous variation, the function of application is also required to continuously improve, this just needs developer to carry out code revision to complete The exploitation of new version.
In new version development process, for legacy version, certain functions may be increased newly, delete certain functions or Person changes certain functions, after new version exploitation is completed, it may be necessary to further these functions are improved, if at this time by New developer is improved, and takes a long time to be familiar with code skeleton, especially faces software iterative development, each function The corresponding code of content is also relatively more and more scattered, and new developer is caused to be not easily found corresponding function corresponding generation Code.
In the prior art, typically developer finds the function code of modification by searching line by line, time cost and Human cost is higher, causes development efficiency relatively low.Therefore, how effectively to search the corresponding code of application function becomes urgent need to resolve The technical issues of.
Invention content
The application provides a kind of location processing method of code, device, terminal device and storage medium, to solve existing skill The defects of art is manually searched line by line changes code, and efficiency is low, time cost is high.
The application the first aspect provides a kind of location processing method of code, including:
The new version information and legacy version information of intended application are obtained, the new version information includes new version interface image New version front end corresponding with the new version interface image shows layer identification code, and the legacy version information includes the intended application Corresponding legacy version interface image and the corresponding legacy version front end of the legacy version interface image show layer identification code;
According to the new version information and the legacy version information, the new version interface image and the legacy version are determined First distinctive information of interface image and the new version front end show that layer identification code shows layer identification code with the legacy version front end The second distinctive information;
According to first distinctive information and second distinctive information, layer identification code, which carries out, to be shown to the new version front end Localization process.
Further aspect of the application provides a kind of positioning treatment apparatus of code, including:
Acquisition module, the new version information for obtaining intended application and legacy version information, the new version information include New version interface image and the corresponding new version front end of the new version interface image show layer identification code, the legacy version packet It includes the corresponding legacy version interface image of the intended application and the corresponding legacy version front end of the legacy version interface image is shown Layer identification code;
Determining module, for according to the new version information and the legacy version information, determining the new version surface chart As showing layer identification code and the legacy version with the first distinctive information of the legacy version interface image and the new version front end Front end shows the second distinctive information of layer identification code;
Processing module is used for according to first distinctive information and second distinctive information, to the new version front end Show that layer identification code carries out localization process.
Another aspect of the application provides a kind of terminal device, including:At least one processor and memory;
The memory stores computer program;At least one processor executes the computer of the memory storage Program, to realize method as described above.
The another aspect of the application provides a kind of computer readable storage medium, is deposited in the computer readable storage medium Computer program is contained, the computer program, which is performed, realizes method as described above..
Location processing method, device, terminal device and the storage medium of code provided by the present application, according to new version interface Image shows layer identification code and legacy version front end display layer with the first distinctive information of legacy version interface image and new version front end Second distinctive information of code shows that layer identification code carries out localization process, so that developer is quickly found out newly to new version front end Version front end shows the part that layer identification code shows that layer identification code is changed with respect to legacy version front end, improves the exploitation effect of developer Rate effectively saves human cost and time cost.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is this Shen Some embodiments please for those of ordinary skill in the art without having to pay creative labor, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is the flow diagram of the location processing method for the code that one embodiment of the application provides;
Fig. 2 is the flow diagram of the location processing method for the code that another embodiment of the application provides;
Fig. 3 is the new and old edition interface image contrast schematic diagram that one embodiment of the application provides;
Fig. 4 is the correspondence schematic diagram that one embodiment of the application provides;
Fig. 5 is the structural schematic diagram of the positioning treatment apparatus for the code that one embodiment of the application provides;
Fig. 6 is the structural schematic diagram for the terminal device that one embodiment of the application provides.
Through the above attached drawings, it has been shown that the specific embodiment of the application will be hereinafter described in more detail.These attached drawings It is not intended to limit the scope of this disclosure concept by any means with verbal description, but is by referring to specific embodiments Those skilled in the art illustrate the concept of the application.
Specific implementation mode
To keep the purpose, technical scheme and advantage of the embodiment of the present application clearer, below in conjunction with the embodiment of the present application In attached drawing, technical solutions in the embodiments of the present application is clearly and completely described, it is clear that described embodiment is Some embodiments of the present application, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art The every other embodiment obtained without creative efforts, shall fall in the protection scope of this application.
The noun involved by the application is explained first:
Using:Refer to installable client application on the intelligent terminals such as mobile phone, tablet computer, desktop computer, uses In showing certain interface to user, and can realize with the interaction of user, to realize the functions such as communication, amusement, payment, such as micro- Letter, QQ, Alipay etc..
Front end shows layer identification code:It refer to the code that each display function of display interface is generated after executing.
Interface image:Refer to being obtained by modes such as screenshotss, using the image of display interface.
Code segment:Refer to being made of a line or lines of code, and be encapsulated as a small entirety, for defining or describing boundary The code of the attribute of the block shown on face, such as by a top code segment of the keywords such as struct, model encapsulation, it is inner Face includes the attributes such as the definition code of the attribute of top to be shown, such as position, size, length and width of the top on display interface.
In addition, term " first ", " second " etc. are used for description purposes only, it is not understood to indicate or imply relatively important Property or implicitly indicate the quantity of indicated technical characteristic.In the description of following embodiment, the meaning of " plurality " is two More than a, unless otherwise specifically defined.
These specific embodiments can be combined with each other below, may be at certain for same or analogous concept or process It is repeated no more in a little embodiments.Below in conjunction with attached drawing, the embodiment of the present invention is described.
Embodiment one
The present embodiment provides a kind of location processing methods of code, for providing Code location for developer, in order to Developer is quickly found out the code changed.The executive agent of the present embodiment is the positioning treatment apparatus of code, which can To be arranged in terminal device, terminal device can be, but not limited to include desktop computer, laptop, tablet computer.
As shown in Figure 1, the flow diagram of the location processing method for code provided in this embodiment, this method include:
Step 101, the new version information and legacy version information of intended application are obtained, new version information includes new version interface Image and the corresponding new version front end of new version interface image show layer identification code, and legacy version information includes that intended application is corresponding old Version interface image and the corresponding legacy version front end of legacy version interface image show layer identification code.
Specifically, when the development project of certain application is newly added in certain developer, and the function of the application is preceding opened Hair personnel carried out certain improvement on the basis of legacy version, the developer it should be understood that preceding developer to legacy version before When end shows which modification layer identification code made, it is fixed into line code that the positioning treatment apparatus of code provided by the present application may be used Position.The device can be blended in the frame of exploration project, and entrance is provided for developer, can also be independently of exploration project. The device can be provided with the interface interacted with developer, can be by target when developer needs to carry out Code location The new version information and legacy version information input of application upload to the device, which can then obtain the new edition of intended application This information and legacy version information.Wherein, new version information includes that new version interface image and new version interface image are corresponding new Version front end shows layer identification code, and legacy version information includes the corresponding legacy version interface image of intended application and legacy version surface chart As corresponding legacy version front end shows layer identification code.Specifically, the new edition of intended application can be obtained by mobile phone or computer screenshotss This interface image and legacy version interface image, new version front end show that layer identification code and legacy version front end show that layer identification code can be with text This format uploads to the device, which obtains corresponding code from text.
Step 102, according to new version information and legacy version information, new version interface image and legacy version interface image are determined The first distinctive information and new version front end show that layer identification code and legacy version front end show the second distinctive information of layer identification code.
Specifically, after the new version information and legacy version information for getting intended application, then can be believed according to new version It ceases with legacy version information, before the first distinctive information and new version that determine new version interface image and legacy version interface image End shows that layer identification code shows the second distinctive information of layer identification code with legacy version front end, that is, determines new version interface image and legacy version Interface image is compared, and is increased which part, is deleted which part or have modified which part, and before determining new version End shows which code segment layer identification code compared with legacy version front end shows layer identification code, increases, deletes which code segment or repair Which code segment changed.
Step 103, according to the first distinctive information and the second distinctive information, layer identification code, which positions, to be shown to new version front end Processing.
Specifically, after the first distinctive information and the second distinctive information is determined, then can according to the first distinctive information and Second distinctive information shows that layer identification code carries out localization process to new version front end.Determine increased, deleting or modification generation Position of the code section in new version front end shows layer identification code, and relevant information is provided or is shown to developer.
The location processing method of code provided in this embodiment, according to new version interface image and legacy version interface image First distinctive information and new version front end show that layer identification code shows the second distinctive information of layer identification code with legacy version front end, right New version front end shows that layer identification code carries out localization process, so that developer is quickly found out new version front end and shows that layer identification code is opposite Legacy version front end shows the part changed of layer identification code, improves the development efficiency of developer, effectively save human cost and when Between cost.
Embodiment two
The present embodiment does further supplementary explanation to the location processing method for the code that embodiment one provides.
As shown in Fig. 2, the flow diagram of the location processing method for code provided in this embodiment.
As a kind of enforceable mode, on the basis of the above embodiment 1, optionally, step 102 specifically includes:
Step 1021, using image recognition algorithm, comparison new version interface image and legacy version interface image, new edition is determined First distinctive information of this interface image and legacy version interface image.
Specifically, after the new version interface image and legacy version interface image for getting intended application, known using image Other algorithm, comparison new version interface image and legacy version interface image, determine new version interface image and legacy version interface image It compares, increases which part, deletes which part or have modified which part.Wherein, image recognition algorithm can be Arbitrary enforceable algorithm in the prior art, can be specifically SIFT (Scale-invariant feature transform, Scale invariant features transform) algorithm, (Speeded Up Robust Features, accelerate the spy with robustness of version to SURF Sign) algorithm, BRIEF (Binary Robust Independent Elementary Features, the independence of binary robust Essential characteristic) algorithm, ORB (Oriented FAST and Rotated BRIEF, the calculation based on FAST and Rotated BRIEF Method) algorithm etc., it does not limit herein.
Illustratively, as shown in figure 3, being new and old edition interface image contrast schematic diagram provided in this embodiment.New version Interface image increases advertisement module compared with legacy version interface image, for showing advertising information.
Step 1022, new version front end is shown that layer identification code shows that layer identification code is compared line by line with legacy version front end, really Determine new version front end and shows that layer identification code shows the second distinctive information of layer identification code with legacy version front end.
Specifically, showing that layer identification code shows layer identification code with legacy version front end in the new version front end for getting intended application Afterwards, then new version front end being shown to, layer identification code shows that layer identification code is compared line by line with legacy version front end, determines new version Front end show layer identification code with legacy version front end show layer identification code compared with, increase which code segment, delete which code segment or Which code segment had modified.In comparison, the starting and end of code segment can be judged according to preset rules, such as in advance First by commonly the keyword of one code segment of expression or title (such as struct, model, top, bar) are collected in code It is key word library to arrange, and certain starting judgment rule is arranged and terminates judgment rule, when meeting starting judgment rule, indicates The beginning of one code segment indicates the end of a code segment, a code is determined with this when meeting end judgment rule Section, and as unit of code segment, determine that new version front end display layer code is different from the code that legacy version front end shows layer identification code Section.
It should be noted that step 1021 is step arranged side by side with step 1022, without sequencing.
As another enforceable mode, on the basis of the above embodiment 1, optionally, step 103 specifically includes:
Step 1031, according to preset rules, the correspondence of the first distinctive information and the second distinctive information is determined.
Specifically, after the first distinctive information and the second distinctive information is determined, first can be determined according to preset rules It is corresponding to determine that new and old edition interface image difference is distinguished with code segment for the correspondence of distinctive information and the second distinctive information Relationship.First distinctive information illustrates variation of the new version interface with respect to the display function at legacy version interface, the second distinctive information Indicate that the code segment just because of these differences results in the variation of display function.
Step 1032, according to the correspondence of the first distinctive information and the second distinctive information, to new version front end display layer Code carries out localization process.
Specifically, after the correspondence that the first distinctive information and the second distinctive information is determined, then it can be according to first The correspondence of distinctive information and the second distinctive information determines increased, deleting or modification code segment in new version front end It shows the position in layer identification code, and relevant information is provided or is shown to developer.
Optionally, step 1031 can specifically include:
If the first distinctive information includes the first image block, the second distinctive information includes one or more code segments, then first Image block is corresponding with one or more code segments.
If the first distinctive information includes one or more image blocks, the second distinctive information includes first code section, then one Or multiple images block, it is corresponding with first code section.
If the first distinctive information includes multiple images block, and the second distinctive information includes multiple code segments, then retains successively New version front end shows a code segment in layer identification code, other code segments are transformed into and show layer identification code phase with legacy version front end Together, corresponding first interface image is obtained, and obtains the second image block that the first interface image is different from legacy version interface image; Then the second image block is corresponding with the code segment of reservation.
Specifically, if the first distinctive information includes the first image block, the second distinctive information includes one or more code segments, It indicates that the change of the one or more code segment results in the change of the first image block, namely indicates preceding developer in legacy version Front end show layer identification code on the basis of, have modified the one or more code segment, so as to cause generation new version interface with it is old Compare the difference for producing the first image block in version interface.Can be first image block setting first mark, and by this first The corresponding the one or more code segment for leading to the variation of mark.
Similarly, if the first distinctive information includes one or more image blocks, the second distinctive information includes first code section, table Show that the change of first code section results in the change of one or more image blocks on interface image, second identifier can be set, it should Second identifier corresponds to one or more image blocks and first code section.
If the first distinctive information includes multiple images block, and the second distinctive information includes multiple code segments, indicates new version It is more relative to legacy version modification place, then it can retain a code segment in new version front end display layer identification code successively, it will Other code segments are transformed into shows that layer identification code is identical with legacy version front end, obtains corresponding first interface image, and obtain first Interface image is different from the second image block of legacy version interface image, and the second image block should be a multiple images image in the block Block;Then second image block is corresponding with the code segment of reservation.A code segment is changed again to retain, is repeated the above process, and according to this, is determined The correspondence of each image block and each code segment, and carry out corresponding mark.
Alternatively it is also possible to be the code segment successively shown new version front end in multiple code segments of layer identification code (such as third code segment) is changing into shows that layer identification code is identical with legacy version front end, retains other different code segments, acquisition pair The second contact surface image answered, and second contact surface image is obtained compared with new version interface image, which image in multiple images block Block changes, for example is that third image block changes, then it represents that third code segment is corresponding with third image block.That is third code segment Variation lead to the variation of third image block.
Illustratively, as shown in figure 4, being correspondence schematic diagram provided in this embodiment.Wherein, situation one, if the There was only image block X in one distinctive information, there was only code segment Y in the second distinctive information, then X is by this code segment of Y in interface Caused by variation.Situation two has code segment Y1, Y2 if there was only image block X in the first distinctive information in the second distinctive information, Variation X so in interface is caused by two code segments of Y1, Y2.Situation three, if having image block in the first distinctive information X1, X2, only code segment Y in the second distinctive information, then X1, X2 in interface are to be changed to lead by Y this code segment It causes.Situation four has code segment Y1, Y2 if having image block X1, X2 in the first distinctive information in the second distinctive information, then Y1 is transformed to it is identical as legacy version, only retain Y2 code segments, see which has occurred relative to new version interface image by X1 and X2 Variation, if X1 is changed, caused by the code segment Y1 that changed X1 has as been converted, and X2 is then another Y2 It is caused.Situation five, if there is multiple change points such as image block Xi, Xj ... Xn in the first distinctive information, in the second distinctive information There are multiple and different points such as code segment Yi, Yj ... Ym, then aforesaid way can be used, retains unique different code segment or transformation is unique Identical code segment, to search the image block of corresponding interface image variation.Interface image change point can be looked into automatically in this way Find the code segment of corresponding variation.
Optionally, step 1032 can specifically include:
By the corresponding code segment of each image block to be different from the aobvious of other code segments in new version front end shows layer identification code The mode of showing is shown;Believe alternatively, obtaining position of the corresponding code segment of each image block in new version front end shows layer identification code Breath, and shown.
Specifically, after the correspondence of the code segment of image block and variation that variation is determined, then it can be in new version Front end is shown in layer identification code and is shown with the display mode for being different from other code segments, for example the code segment of variation is highlighted and is shown Show, can also show its corresponding image block identification while the code segment to variation is highlighted according to correspondence, or Directly display the image of corresponding image block.Alternatively, locating documents can also be generated, by the image block image of difference and corresponding It identifies, in the location information of the corresponding code segment of image block record such as locating documents, developer can open positioning text Shelves are checked.Wherein, the location information of code segment can be where the code segment is shown in new version front end in layer identification code Initial row and end line can also be that, directly by entire code segment, developer can be quick according to the location information of code segment It is shown in layer identification code from new version front end and finds the code segment.
It should be noted that each enforceable mode can individually be implemented in the present embodiment, it can also be in the feelings not conflicted It is not limited in conjunction with implementation the application in any combination under condition.
The location processing method of code provided in this embodiment, according to new version interface image and legacy version interface image First distinctive information and new version front end show that layer identification code shows the second distinctive information of layer identification code with legacy version front end, right New version front end shows that layer identification code carries out localization process, so that developer is quickly found out new version front end and shows that layer identification code is opposite Legacy version front end shows the part changed of layer identification code, improves the development efficiency of developer, effectively save human cost and when Between cost.
Embodiment three
The present embodiment provides a kind of positioning treatment apparatus of code, at the positioning of the code for executing above-described embodiment one Reason method.
As shown in figure 5, the structural schematic diagram of the positioning treatment apparatus for code provided in this embodiment.The positioning of the code Processing unit 30 includes acquisition module 31, determining module 32 and processing module 33.
Wherein, acquisition module 31 is used to obtain the new version information and legacy version information of intended application, new version packet It includes new version interface image and the corresponding new version front end of new version interface image shows layer identification code, legacy version information includes target Layer identification code is shown using corresponding legacy version interface image and the corresponding legacy version front end of legacy version interface image;Determining module 32 for according to new version information and legacy version information, determining first difference of the new version interface image with legacy version interface image Information and new version front end show that layer identification code shows the second distinctive information of layer identification code with legacy version front end;Processing module 33 For according to the first distinctive information and the second distinctive information, showing that layer identification code carries out localization process to new version front end.
Device in this present embodiment is closed, wherein modules execute the concrete mode of operation in related this method It is described in detail in embodiment, explanation will be not set forth in detail herein.
According to the positioning treatment apparatus of code provided in this embodiment, according to new version interface image and legacy version surface chart First distinctive information of picture and new version front end show that layer identification code shows that the second difference of layer identification code is believed with legacy version front end Breath shows that layer identification code carries out localization process, so that developer is quickly found out new version front end display layer generation to new version front end The opposite legacy version front end of code shows the part that layer identification code is changed, and improves the development efficiency of developer, effectively save manpower at Sheet and time cost.
Example IV
The present embodiment does further supplementary explanation to the positioning treatment apparatus for the code that above-described embodiment three provides.
As a kind of enforceable mode, on the basis of above-described embodiment three, optionally it is determined that module, is specifically used for:
Using image recognition algorithm, comparison new version interface image and legacy version interface image determine new version surface chart As the first distinctive information with legacy version interface image;New version front end is shown that layer identification code shows layer identification code with legacy version front end It is compared line by line, determines that new version front end shows that layer identification code shows the second distinctive information of layer identification code with legacy version front end.
As another enforceable mode, on the basis of above-described embodiment three, optionally, processing module is specific to use In:
According to preset rules, the correspondence of the first distinctive information and the second distinctive information is determined;Believed according to the first difference The correspondence of breath and the second distinctive information shows that layer identification code carries out localization process to new version front end.
Optionally, processing module is specifically used for:
If the first distinctive information includes the first image block, the second distinctive information includes one or more code segments, then first Image block is corresponding with one or more code segments;If the first distinctive information includes one or more image blocks, the second distinctive information Including first code section, then one or more image blocks, corresponding with first code section;If the first distinctive information includes multiple images Block, and the second distinctive information includes multiple code segments, then retains a code segment in new version front end display layer identification code successively, Other code segments are transformed into and show that layer identification code is identical with legacy version front end, obtain corresponding first interface image, and obtain the One interface image is different from the second image block of legacy version interface image;Then the second image block is corresponding with the code segment of reservation.
Optionally, processing module is specifically used for:
By the corresponding code segment of each image block to be different from the aobvious of other code segments in new version front end shows layer identification code The mode of showing is shown;Believe alternatively, obtaining position of the corresponding code segment of each image block in new version front end shows layer identification code Breath, and shown.
Device in this present embodiment is closed, wherein modules execute the concrete mode of operation in related this method It is described in detail in embodiment, explanation will be not set forth in detail herein.
It should be noted that each enforceable mode can individually be implemented in the present embodiment, it can also be in the feelings not conflicted It is not limited in conjunction with implementation the application in any combination under condition.
According to the positioning treatment apparatus of the code of the present embodiment, according to new version interface image and legacy version interface image First distinctive information and new version front end show that layer identification code shows the second distinctive information of layer identification code with legacy version front end, right New version front end shows that layer identification code carries out localization process, so that developer is quickly found out new version front end and shows that layer identification code is opposite Legacy version front end shows the part changed of layer identification code, improves the development efficiency of developer, effectively save human cost and when Between cost.
Embodiment five
The present embodiment provides a kind of terminal devices, the location processing method of the code for executing above-described embodiment offer.
As shown in fig. 6, for the structural schematic diagram of terminal device provided in this embodiment.The terminal device 50 includes:At least One processor 51 and memory 52;
Memory stores computer program;At least one processor executes the computer program of memory storage, to realize The payment process method that above-described embodiment provides.
According to the terminal device of the present embodiment, believed according to the first difference of new version interface image and legacy version interface image Breath and new version front end show that layer identification code shows the second distinctive information of layer identification code with legacy version front end, to new version front end Show that layer identification code carries out localization process, so that developer is quickly found out new version front end and shows layer identification code with respect to legacy version front end The part that display layer identification code is changed, improves the development efficiency of developer, effectively saves human cost and time cost.
Embodiment six
The present embodiment provides a kind of computer readable storage medium, computer is stored in the computer readable storage medium Program, computer program are performed the method for realizing that any of the above-described embodiment provides.
According to the computer readable storage medium of the present embodiment, according to new version interface image and legacy version interface image First distinctive information and new version front end show that layer identification code shows the second distinctive information of layer identification code with legacy version front end, right New version front end shows that layer identification code carries out localization process, so that developer is quickly found out new version front end and shows that layer identification code is opposite Legacy version front end shows the part changed of layer identification code, improves the development efficiency of developer, effectively save human cost and when Between cost.
In several embodiments provided herein, it should be understood that disclosed device and method can pass through it Its mode is realized.For example, the apparatus embodiments described above are merely exemplary, for example, the division of the unit, only Only a kind of division of logic function, formula that in actual implementation, there may be another division manner, such as multiple units or component can be tied Another system is closed or is desirably integrated into, or some features can be ignored or not executed.Another point, it is shown or discussed Mutual coupling, direct-coupling or communication connection can be the INDIRECT COUPLING or logical by some interfaces, device or unit Letter connection can be electrical, machinery or other forms.
The unit illustrated as separating component may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, you can be located at a place, or may be distributed over multiple In network element.Some or all of unit therein can be selected according to the actual needs to realize the mesh of this embodiment scheme 's.
In addition, each functional unit in each embodiment of the application can be integrated in a processing unit, it can also It is that each unit physically exists alone, it can also be during two or more units be integrated in one unit.Above-mentioned integrated list The form that hardware had both may be used in member is realized, can also be realized in the form of hardware adds SFU software functional unit.
The above-mentioned integrated unit being realized in the form of SFU software functional unit can be stored in one and computer-readable deposit In storage media.Above-mentioned SFU software functional unit is stored in a storage medium, including some instructions are used so that a computer It is each that equipment (can be personal computer, server or the network equipment etc.) or processor (processor) execute the application The part steps of embodiment the method.And storage medium above-mentioned includes:USB flash disk, mobile hard disk, read-only memory (Read- Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CD etc. it is various The medium of program code can be stored.
Those skilled in the art can be understood that, for convenience and simplicity of description, only with above-mentioned each function module Division progress for example, in practical application, can be complete by different function modules by above-mentioned function distribution as needed At the internal structure of device being divided into different function modules, to complete all or part of the functions described above.On The specific work process for stating the device of description, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
Finally it should be noted that:The above various embodiments is only to illustrate the technical solution of the application, rather than its limitations;To the greatest extent Pipe is described in detail the application with reference to foregoing embodiments, it will be understood by those of ordinary skill in the art that:Its according to So can with technical scheme described in the above embodiments is modified, either to which part or all technical features into Row equivalent replacement;And these modifications or replacements, each embodiment technology of the application that it does not separate the essence of the corresponding technical solution The range of scheme.

Claims (12)

1. a kind of location processing method of code, which is characterized in that including:
The new version information and legacy version information of intended application are obtained, the new version information includes new version interface image and institute It states the corresponding new version front end of new version interface image and shows that layer identification code, the legacy version information include that the intended application corresponds to Legacy version interface image and the corresponding legacy version front end of the legacy version interface image show layer identification code;
According to the new version information and the legacy version information, the new version interface image and the legacy version interface are determined First distinctive information of image and the new version front end show that layer identification code and the legacy version front end show the of layer identification code Two distinctive informations;
According to first distinctive information and second distinctive information, layer identification code, which positions, to be shown to the new version front end Processing.
2. according to the method described in claim 1, it is characterized in that, according to the new version information and the legacy version information, Determine that the first distinctive information and the new version front end of the new version interface image and the legacy version interface image are aobvious Show that layer identification code shows the second distinctive information of layer identification code with the legacy version front end, including:
Using image recognition algorithm, the new version interface image and the legacy version interface image are compared, determines the new edition First distinctive information of this interface image and the legacy version interface image;
The new version front end is shown that layer identification code and the legacy version front end show that layer identification code is compared line by line, described in determination New version front end shows that layer identification code shows the second distinctive information of layer identification code with the legacy version front end.
3. method according to claim 1 or 2, which is characterized in that described according to first distinctive information and described Two distinctive informations show that layer identification code carries out localization process to the new version front end, including:
According to preset rules, the correspondence of first distinctive information and second distinctive information is determined;
According to the correspondence of first distinctive information and second distinctive information, to the new version front end display layer generation Code carries out localization process.
4. according to the method described in claim 3, it is characterized in that, described according to preset rules, the first difference letter is determined The correspondence of breath and second distinctive information, including:
If first distinctive information includes the first image block, second distinctive information includes one or more code segments, then Described first image block is corresponding with one or more of code segments;
If first distinctive information includes one or more image blocks, second distinctive information includes first code section, then One or more of image blocks, it is corresponding with the first code section;
If first distinctive information includes multiple images block, and second distinctive information includes multiple code segments, then successively Retain a code segment in the new version front end display layer identification code, other code segments are transformed into and are shown with legacy version front end Layer identification code is identical, obtains corresponding first interface image, and obtains the first interface image and be different from the legacy version interface image The second image block;Then second image block is corresponding with the code segment of reservation.
5. according to the method described in claim 4, it is characterized in that, described according to first distinctive information and secondth area The correspondence of other information shows that layer identification code carries out localization process to the new version front end, including:
By the corresponding code segment of each image block to be different from the aobvious of other code segments in the new version front end shows layer identification code The mode of showing is shown;Alternatively,
Location information of the corresponding code segment of each image block in the new version front end shows layer identification code is obtained, and is shown Show.
6. a kind of positioning treatment apparatus of code, which is characterized in that including:
Acquisition module, the new version information for obtaining intended application and legacy version information, the new version information includes new edition This interface image new version front end corresponding with the new version interface image shows layer identification code, and the legacy version information includes institute State the corresponding legacy version interface image of intended application and the legacy version interface image corresponding legacy version front end display layer generation Code;
Determining module, for according to the new version information and the legacy version information, determine the new version interface image with First distinctive information of the legacy version interface image and the new version front end show layer identification code and the legacy version front end Show the second distinctive information of layer identification code;
Processing module, for according to first distinctive information and second distinctive information, being shown to the new version front end Layer identification code carries out localization process.
7. device according to claim 6, which is characterized in that the determining module is specifically used for:
Using image recognition algorithm, the new version interface image and the legacy version interface image are compared, determines the new edition First distinctive information of this interface image and the legacy version interface image;
The new version front end is shown that layer identification code and the legacy version front end show that layer identification code is compared line by line, described in determination New version front end shows that layer identification code shows the second distinctive information of layer identification code with the legacy version front end.
8. the device described according to claim 6 or 7, which is characterized in that the processing module is specifically used for:
According to preset rules, the correspondence of first distinctive information and second distinctive information is determined;
According to the correspondence of first distinctive information and second distinctive information, to the new version front end display layer generation Code carries out localization process.
9. device according to claim 8, which is characterized in that the processing module is specifically used for:
If first distinctive information includes the first image block, second distinctive information includes one or more code segments, then Described first image block is corresponding with one or more of code segments;
If first distinctive information includes one or more image blocks, second distinctive information includes first code section, then One or more of image blocks, it is corresponding with the first code section;
If first distinctive information includes multiple images block, and second distinctive information includes multiple code segments, then successively Retain a code segment in the new version front end display layer identification code, other code segments are transformed into and are shown with legacy version front end Layer identification code is identical, obtains corresponding first interface image, and obtains the first interface image and be different from the legacy version interface image The second image block;Then second image block is corresponding with the code segment of reservation.
10. device according to claim 9, which is characterized in that the processing module is specifically used for:
By the corresponding code segment of each image block to be different from the aobvious of other code segments in the new version front end shows layer identification code The mode of showing is shown;Alternatively,
Location information of the corresponding code segment of each image block in the new version front end shows layer identification code is obtained, and is shown Show.
11. a kind of terminal device, which is characterized in that including:At least one processor and memory;
The memory stores computer program;At least one processor executes the computer journey of the memory storage Sequence, to realize the method described in any one of claim 1-5.
12. a kind of computer readable storage medium, which is characterized in that be stored with computer journey in the computer readable storage medium Sequence, the computer program are performed the method realized described in any one of claim 1-5.
CN201810307291.7A 2018-04-08 2018-04-08 Code positioning processing method and device, terminal equipment and storage medium Active CN108536467B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810307291.7A CN108536467B (en) 2018-04-08 2018-04-08 Code positioning processing method and device, terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810307291.7A CN108536467B (en) 2018-04-08 2018-04-08 Code positioning processing method and device, terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN108536467A true CN108536467A (en) 2018-09-14
CN108536467B CN108536467B (en) 2021-11-02

Family

ID=63483289

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810307291.7A Active CN108536467B (en) 2018-04-08 2018-04-08 Code positioning processing method and device, terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN108536467B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871205A (en) * 2018-12-15 2019-06-11 中国平安人寿保险股份有限公司 GUI code method of adjustment, device, computer installation and storage medium
CN111147608A (en) * 2020-01-17 2020-05-12 南通大学 Laboratory simulation system combining virtuality and reality and working method thereof
CN111638903A (en) * 2020-05-08 2020-09-08 北京达佳互联信息技术有限公司 Method and device for generating difference information of different software versions
CN111831279A (en) * 2019-04-22 2020-10-27 华为技术有限公司 Interface code generation method and device
CN112650483A (en) * 2020-12-28 2021-04-13 京东数字科技控股股份有限公司 Method and device for restoring design draft, computer equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101799752A (en) * 2009-12-31 2010-08-11 深圳联友科技有限公司 Method and system for positioning HTML page control variations
US8336030B1 (en) * 2009-09-11 2012-12-18 The Mathworks, Inc. System and method for coding standard testing
CN103207874A (en) * 2012-01-17 2013-07-17 腾讯科技(深圳)有限公司 Updated webpage content prompting method and system
US20130229666A1 (en) * 2012-03-05 2013-09-05 Canon Kabushiki Kaisha Information processing apparatus and information processing method
CN103365967A (en) * 2013-06-21 2013-10-23 百度在线网络技术(北京)有限公司 Automatic difference detection method and device based on crawler
CN103544213A (en) * 2013-09-16 2014-01-29 青岛英网资讯股份有限公司 Network content upgrading detection assessment method and system
CN104516633A (en) * 2014-11-19 2015-04-15 微梦创科网络科技(中国)有限公司 User interface element management method and device
CN104615787A (en) * 2015-03-06 2015-05-13 中国建设银行股份有限公司 Method and device for updating interface display
CN106021103A (en) * 2016-05-16 2016-10-12 南京大学 Code change-based mobile application test script automatic maintenance method
CN106919431A (en) * 2015-12-25 2017-07-04 航天信息股份有限公司 Code comparison method, equipment and system in continuous integrating
CN107436846A (en) * 2017-08-04 2017-12-05 网易(杭州)网络有限公司 Method of testing, device, calculate readable storage medium storing program for executing and computing device

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8336030B1 (en) * 2009-09-11 2012-12-18 The Mathworks, Inc. System and method for coding standard testing
CN101799752A (en) * 2009-12-31 2010-08-11 深圳联友科技有限公司 Method and system for positioning HTML page control variations
CN103207874A (en) * 2012-01-17 2013-07-17 腾讯科技(深圳)有限公司 Updated webpage content prompting method and system
US20130229666A1 (en) * 2012-03-05 2013-09-05 Canon Kabushiki Kaisha Information processing apparatus and information processing method
CN103365967A (en) * 2013-06-21 2013-10-23 百度在线网络技术(北京)有限公司 Automatic difference detection method and device based on crawler
CN103544213A (en) * 2013-09-16 2014-01-29 青岛英网资讯股份有限公司 Network content upgrading detection assessment method and system
CN104516633A (en) * 2014-11-19 2015-04-15 微梦创科网络科技(中国)有限公司 User interface element management method and device
CN104615787A (en) * 2015-03-06 2015-05-13 中国建设银行股份有限公司 Method and device for updating interface display
CN106919431A (en) * 2015-12-25 2017-07-04 航天信息股份有限公司 Code comparison method, equipment and system in continuous integrating
CN106021103A (en) * 2016-05-16 2016-10-12 南京大学 Code change-based mobile application test script automatic maintenance method
CN107436846A (en) * 2017-08-04 2017-12-05 网易(杭州)网络有限公司 Method of testing, device, calculate readable storage medium storing program for executing and computing device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZHANG XU 等: "Novel No-search Fractal Image Compression Method on Texture Feature", 《IN PROCEEDING OF THE 2013 INTERNATIONAL CONFERENCE ON MECHATRONIC SCIENCES, ELECTRIC ENGINEERING AND COMPUTER》 *
韩晓光: "恶意代码检测关键技术研究", 《中国优秀博士学位论文全文数据库信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109871205A (en) * 2018-12-15 2019-06-11 中国平安人寿保险股份有限公司 GUI code method of adjustment, device, computer installation and storage medium
CN109871205B (en) * 2018-12-15 2023-07-18 中国平安人寿保险股份有限公司 Interface code adjustment method, device, computer device and storage medium
CN111831279A (en) * 2019-04-22 2020-10-27 华为技术有限公司 Interface code generation method and device
CN111147608A (en) * 2020-01-17 2020-05-12 南通大学 Laboratory simulation system combining virtuality and reality and working method thereof
CN111638903A (en) * 2020-05-08 2020-09-08 北京达佳互联信息技术有限公司 Method and device for generating difference information of different software versions
CN111638903B (en) * 2020-05-08 2023-05-30 北京达佳互联信息技术有限公司 Method and device for generating difference information of different software versions
CN112650483A (en) * 2020-12-28 2021-04-13 京东数字科技控股股份有限公司 Method and device for restoring design draft, computer equipment and storage medium

Also Published As

Publication number Publication date
CN108536467B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
CN108536467A (en) Location processing method, device, terminal device and the storage medium of code
US20210173530A1 (en) Hierarchical, Zoomable Presentations Of Media Sets
US20210295114A1 (en) Method and apparatus for extracting structured data from image, and device
CN106294798A (en) A kind of images share method based on thumbnail and terminal
CN103608826B (en) Annotated using product in the video of Web information mining
US20150170333A1 (en) Grouping And Presenting Images
CN111325245B (en) Repeated image recognition method, device, electronic equipment and computer readable storage medium
CN104462590A (en) Information searching method and device
CN107832440A (en) A kind of data digging method, device, server and computer-readable recording medium
CN112084342A (en) Test question generation method and device, computer equipment and storage medium
Laramee et al. Challenges and unsolved problems
CN112422754A (en) Intelligent voice configuration method and device, terminal equipment and storage medium
CN108268488A (en) The recognition methods of webpage master map and device
Kuhn et al. The VAT: enhanced video analysis
CN113873025B (en) Data processing method and device, storage medium and electronic equipment
CN116303657A (en) Group image generation method, group image generation device, computer device, and storage medium
WO2022105120A1 (en) Text detection method and apparatus from image, computer device and storage medium
Luo et al. Texture Browser: Feature‐based Texture Exploration
CN113742485A (en) Method and device for processing text
CN107977381A (en) Data configuration method, index managing method, relevant apparatus and computing device
CN111782309A (en) Method and device for displaying information and computer readable storage medium
Rafiq et al. Secure and dynamic model for book searching on cloud computing as mobile augmented reality
Su et al. Mining and applications of repeating patterns
CN115604000B (en) Override detection method, device, equipment and storage medium
Cheung et al. A shape-based searching system for industrial components

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