CN108132990B - Method and device for replacing APP built-in picture and storage medium - Google Patents

Method and device for replacing APP built-in picture and storage medium Download PDF

Info

Publication number
CN108132990B
CN108132990B CN201711374513.9A CN201711374513A CN108132990B CN 108132990 B CN108132990 B CN 108132990B CN 201711374513 A CN201711374513 A CN 201711374513A CN 108132990 B CN108132990 B CN 108132990B
Authority
CN
China
Prior art keywords
picture
name
new
original
app
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711374513.9A
Other languages
Chinese (zh)
Other versions
CN108132990A (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.)
58tongcheng Information Technology 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 CN201711374513.9A priority Critical patent/CN108132990B/en
Publication of CN108132990A publication Critical patent/CN108132990A/en
Application granted granted Critical
Publication of CN108132990B publication Critical patent/CN108132990B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information

Abstract

The invention discloses a method, a device and a storage medium for replacing an APP built-in picture, wherein the method comprises the following steps: acquiring a picture name of a new UI picture to be replaced in the APP; detecting whether an original picture name matched with the picture name of the new UI picture exists in the prestored original picture names, wherein the original picture names are picture names respectively corresponding to all built-in pictures set in the APP; and in the case that the original picture name matched with the picture name of the new UI picture exists, replacing the new UI picture to the position of the original picture corresponding to the original picture name in the APP. The method has high replacement accuracy, does not need manual operation of engineering personnel in the process of searching the original picture to be replaced through the picture name, has short time consumption in the replacement process, can quickly finish the replacement of the APP built-in picture even if a large number of new UI pictures exist, and has high processing efficiency and good user experience.

Description

Method and device for replacing APP built-in picture and storage medium
Technical Field
The invention relates to the field of intelligent terminals, in particular to a method and a device for replacing an APP built-in picture and a storage medium.
Background
With the rapid development of mobile phone applications, the functional coverage of APPs (applications) is also increasingly wide, many APPs have multiple service scenes, and in order to improve user experience, pictures under common pages are locally built in. When a service is changed or a new picture needs to be displayed, the built-in picture needs to be replaced. Generally, the process of replacing pictures is that a User Interface (UI) person gives pictures, the pictures are named by the names of chinese in different service situations, and then a developer finds corresponding pictures in a project, modifies the file names of the pictures given by the UI person according to the original names, and replaces the pictures. This method is not only time-consuming, but also is very error-prone due to human operation, which results in the picture not being displayed correctly and affects the user experience.
Disclosure of Invention
The embodiment of the invention provides a method, a device and a storage medium for replacing an APP built-in picture, which are used for solving the following problems in the prior art: the existing intra-APP picture replacement mode is time-consuming, and due to manual operation, errors are easy to occur, so that pictures cannot be displayed correctly, and user experience is influenced.
To solve the foregoing technical problem, an embodiment of the present invention provides a method for replacing an APP built-in picture, including: acquiring a picture name of a new UI picture to be replaced in the APP; detecting whether an original picture name matched with the picture name of the new UI picture exists in prestored original picture names, wherein the original picture names are picture names respectively corresponding to all built-in pictures set in the APP; and under the condition that an original picture name matched with the picture name of the new UI picture exists, replacing the new UI picture to the position of the original picture corresponding to the original picture name in the APP.
Optionally, after detecting whether an original picture name matching the picture name of the new UI picture exists in the pre-stored original picture names, the method further includes: and sending prompt information for modifying the picture name of the new UI picture under the condition that the original picture name matched with the picture name of the new UI picture does not exist.
Optionally, before obtaining the picture name of the new UI picture to be replaced in the APP, the method further includes: setting original picture names of all built-in pictures set in the APP according to a first preset naming rule; and storing each original picture name.
Optionally, before obtaining the picture name of the new UI picture to be replaced in the APP, the method further includes: detecting whether the received picture name of the new UI picture meets a second preset naming rule or not; and sending prompt information for modifying the picture name of the new UI picture under the condition that the picture name of the new UI picture does not accord with the second preset naming rule.
Optionally, replacing the new UI picture to the position of the original picture corresponding to the original picture name in the APP, including: modifying the picture name of the new UI picture into an original picture name matched with the picture name of the new UI picture; searching the position of the original picture corresponding to the original picture name in the APP; and replacing the new UI picture with the modified picture name to the position of the original picture.
On the other hand, an embodiment of the present invention further provides a device for replacing an APP built-in picture, including: the acquisition module is used for acquiring the picture name of a new UI picture to be replaced in the APP; the matching module is used for detecting whether an original picture name matched with the picture name of the new UI picture exists in the prestored original picture names, wherein the original picture names are picture names respectively corresponding to all built-in pictures set in the APP; and the replacing module is used for replacing the new UI picture to the position of the original picture corresponding to the original picture name in the APP under the condition that the original picture name matched with the picture name of the new UI picture exists.
Optionally, the method further includes: and the first sending module is used for sending prompt information for modifying the picture name of the new UI picture under the condition that the original picture name matched with the picture name of the new UI picture does not exist.
Optionally, the method further includes: and the setting module is used for setting the original picture names of all built-in pictures set in the APP according to a first preset naming rule and storing all the original picture names.
Optionally, the method further includes: the detection module is used for detecting whether the received picture name of the new UI picture meets a second preset naming rule or not; and the second sending module is used for sending prompt information for modifying the picture name of the new UI picture under the condition that the picture name of the new UI picture does not accord with the second preset naming rule.
Optionally, the replacement module is specifically configured to: modifying the picture name of the new UI picture into an original picture name matched with the picture name of the new UI picture; searching the position of the original picture corresponding to the original picture name in the APP; and replacing the new UI picture with the modified picture name to the position of the original picture.
On the other hand, an embodiment of the present invention further provides a storage medium, which stores a computer program, and when the computer program is executed by a processor, the steps of the method for replacing the APP built-in picture are implemented.
This embodiment can the automatic search through the picture name of new UI picture need the original picture of replacement to accomplish the replacement automatically after searching original picture, the accuracy of replacement is higher, this process of looking for the original picture that needs the replacement through the picture name does not need the engineer manual operation, the replacement process is consuming time shorter, even when there is big new UI picture in batches, also can accomplish the replacement of the built-in picture of APP fast, the treatment effeciency is higher, user experience is better, the following problem of prior art has been solved: the existing intra-APP picture replacement mode is time-consuming, and due to manual operation, errors are easy to occur, so that pictures cannot be displayed correctly, and user experience is influenced.
Drawings
Fig. 1 is a flowchart of a method for replacing an APP built-in picture according to a first embodiment of the present invention;
FIG. 2 is a flowchart of a method for replacing an APP built-in picture in a second embodiment of the present invention;
FIG. 3 is a flowchart of a method for replacing an APP built-in picture in a third embodiment of the present invention;
FIG. 4 is a flowchart of a method for replacing an APP built-in picture in a fourth embodiment of the present invention;
FIG. 5 is a schematic structural diagram of an apparatus for replacing an APP built-in picture in a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram of an apparatus for replacing an APP built-in picture in a sixth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus for replacing an APP built-in picture according to a seventh embodiment of the present invention.
Detailed Description
In order to solve the following problems in the prior art: the conventional intra-APP-picture replacing mode is time-consuming, and due to manual operation, errors are easy to occur, so that pictures cannot be displayed correctly, and user experience is influenced; the present invention provides a method, an apparatus, and a storage medium for replacing an APP built-in picture, which are described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
A first embodiment of the present invention provides a method for replacing an APP built-in picture, where the flow of the method is shown in fig. 1, and the method includes steps S101 to S103:
s101, acquiring a picture name of a new UI picture to be replaced in the APP.
The picture name of the new UI picture in the embodiment of the present invention may be in various forms, for example, a chinese name, or a simple name of a picture built in an APP, and the like, and is not limited herein.
S102, detecting whether an original picture name matched with the picture name of the new UI picture exists in the prestored original picture names, wherein the original picture names are picture names respectively corresponding to all built-in pictures set in the APP.
In the process of matching the picture name of the new UI picture with the original picture name, the process of determining whether the picture name of the new UI picture matches with the original picture name may be embodied by a matching degree, and the matching degree may be set according to actual requirements, for example, the matching degree is determined when the matching degree reaches 90%, or the matching degree is determined when the matching degree reaches 60%, or the matching degree is determined when the matching degree reaches 100%.
When the picture name of the new UI picture is set by using the Chinese name, a comparison table can be set for the original picture name stored in advance, and the Chinese name in the comparison table corresponds to the picture name in a naming mode which is usually preferred by an engineer giving pictures. For example, if the original picture name is "house _ detail _ config _ inexistent _ jicun.png", then "house _ detail _ config _ inexistent _ jicun.png" may be set, and the chinese name in the lookup table is "home takeout. png"; if the picture name of the new UI picture is "home export. png", the original picture to be replaced may be determined to be "house _ detail _ config _ inexistent _ jun. In the concrete implementation, if the picture name of the new UI picture set by the UI personnel is 'first take-out' png ', the matching degree at the moment can play a role, namely when the set matching degree is more than 75%, the picture is considered to be matched, and the original picture corresponding to the picture name' first take-out 'png' can be found.
If the picture name of the new UI picture is set using the english name, it can be directly matched with the original picture name. For example, the original picture name is "house _ detail _ config _ existence _ association _ association.png", and if the picture name of the new UI picture is "jun.png", it may be determined that the original picture to be replaced is "house _ detail _ config _ existence _ association.png". Of course, the picture name of the new UI picture set by using the english name may also be set by using the matching degree, which is not described herein again.
And S103, under the condition that the original picture name matched with the picture name of the new UI picture exists, replacing the new UI picture to the position of the original picture corresponding to the original picture name in the APP.
The embodiment of the invention prestores the respective picture names of all built-in pictures arranged in the APP, takes the picture names as original picture names, acquires the picture names of new UI pictures when the current built-in pictures in the APP need to be replaced, searches the original picture names matched with the picture names of the new UI pictures in the prestored original picture names, and can determine which picture needs to be replaced when the original picture names are found, so that a certain original built-in picture in the APP can be directly replaced by the new UI picture.
This embodiment can the automatic search through the picture name of new UI picture need the original picture of replacement to accomplish the replacement automatically after searching original picture, the accuracy of replacement is higher, this process of looking for the original picture that needs the replacement through the picture name does not need the engineer manual operation, the replacement process is consuming time shorter, even when there is big new UI picture in batches, also can accomplish the replacement of the built-in picture of APP fast, the treatment effeciency is higher, user experience is better, the following problem of prior art has been solved: the existing intra-APP picture replacement mode is time-consuming, and due to manual operation, errors are easy to occur, so that pictures cannot be displayed correctly, and user experience is influenced.
A second embodiment of the present invention provides a method for replacing an APP built-in picture, where the flow of the method is shown in fig. 2, and the method includes steps S201 to S204:
s201, acquiring a picture name of a new UI picture to be replaced in the APP.
The picture name of the new UI picture in the embodiment of the present invention may be in various forms, for example, a chinese name, or a simple name of a picture built in an APP, and the like, and is not limited herein.
S202, detecting whether an original picture name matched with the picture name of the new UI picture exists in the prestored original picture names, wherein the original picture names are picture names corresponding to all built-in pictures set in the APP. If so, S203 is executed, otherwise, S204 is executed.
In the process of matching the picture name of the new UI picture with the original picture name, the process of determining whether the picture name of the new UI picture matches with the original picture name may be embodied by the matching degree, and the matching degree may be set according to actual requirements, for example, the matching degree is determined when the matching degree reaches 90%, or the matching degree is determined when the matching degree reaches 60%, or the matching degree is determined when the matching degree reaches 100%.
When the picture name of the new UI picture is set by using the Chinese name, a comparison table can be set for the original picture name stored in advance, and the Chinese name in the comparison table corresponds to the picture name which is usually liked by an engineer giving the picture. For example, if the original picture name is "house _ detail _ config _ inexistent _ jicun.png", then "house _ detail _ config _ inexistent _ jicun.png" may be set, and the chinese name in the lookup table is "home takeout. png"; if the picture name of the new UI picture is "home export. png", the original picture to be replaced may be determined to be "house _ detail _ config _ inexistent _ jun. In the concrete implementation, if the picture name of the new UI picture set by the UI personnel is 'first take-out' png ', the matching degree at the moment can play a role, namely when the set matching degree is more than 75%, the picture is considered to be matched, and the original picture corresponding to the picture name' first take-out 'png' can be found.
If the picture name of the new UI picture is set using the english name, it can be directly matched with the original picture name. For example, the original picture name is "house _ detail _ config _ existence _ association _ association.png", and if the picture name of the new UI picture is "jun.png", it may be determined that the original picture to be replaced is "house _ detail _ config _ existence _ association.png". Of course, the picture name of the new UI picture set by using the english name may also be set by using the matching degree, which is not described herein again.
And S203, under the condition that the original picture name matched with the picture name of the new UI picture exists, replacing the new UI picture to the position of the original picture corresponding to the original picture name in the APP.
And S204, sending prompt information for modifying the picture name of the new UI picture under the condition that the original picture name matched with the picture name of the new UI picture does not exist.
During specific implementation, if the provider of the new UI picture and the engineer replacing the picture are users in the same system, prompt information can be sent to the provider of the new UI picture; if the provider of the new UI picture is not a user within the same system as the engineer replacing the picture, a prompt may be sent to the engineer replacing the picture.
This embodiment can the automatic search through the picture name of new UI picture need the original picture of replacement to accomplish the replacement automatically after searching original picture, the accuracy of replacement is higher, this process of looking for the original picture that needs the replacement through the picture name does not need the engineer manual operation, the replacement process is consuming time shorter, even when there is big new UI picture in batches, also can accomplish the replacement of the built-in picture of APP fast, the treatment effeciency is higher, user experience is better, the following problem of prior art has been solved: the existing intra-APP picture replacement mode is time-consuming, and due to manual operation, errors are easy to occur, so that pictures cannot be displayed correctly, and user experience is influenced.
A third embodiment of the present invention provides a method for replacing an APP built-in picture, where a flow of the method is shown in fig. 3, and the method includes steps S301 to S306:
s301, setting the original picture names of all built-in pictures set in the APP according to a first preset naming rule, and storing all the original picture names.
S302, detecting whether the picture name of the received new UI picture meets a second preset naming rule. And executing S306 under the condition that the picture name of the new UI picture does not accord with the second preset naming rule, otherwise, executing S303.
In a specific implementation, the first preset naming rule may be the same as the second preset naming rule, and certainly, may also be different. If the first preset naming convention can be different from the second preset naming convention, a lookup table for matching can be set according to the naming convention.
S303, acquiring the picture name of the new UI picture to be replaced in the APP.
The picture name of the new UI picture in the embodiment of the present invention may be in various forms, for example, a chinese name, or a simple name of a picture built in an APP, and the like, and is not limited herein.
S304, whether an original picture name matched with the picture name of the new UI picture exists or not is detected in the prestored original picture names, wherein the original picture names are picture names respectively corresponding to all built-in pictures set in the APP. In case there is an original picture name matching the picture name of the new UI picture, S305 is performed, otherwise S306 is performed.
In the process of matching the picture name of the new UI picture with the original picture name, the process of determining whether the picture name of the new UI picture matches with the original picture name may be embodied by a matching degree, and the matching degree may be set according to actual requirements, for example, the matching degree is determined when the matching degree reaches 90%, or the matching degree is determined when the matching degree reaches 60%, or the matching degree is determined when the matching degree reaches 100%.
When the picture name of the new UI picture is set by using the Chinese name, a comparison table can be set for the original picture name stored in advance, and the Chinese name in the comparison table corresponds to the picture name which is usually liked by an engineer giving the picture. For example, if the original picture name is "house _ detail _ config _ inexistent _ jicun.png", then "house _ detail _ config _ inexistent _ jicun.png" may be set, and the chinese name in the lookup table is "home takeout. png"; if the picture name of the new UI picture is "home export. png", the original picture to be replaced may be determined to be "house _ detail _ config _ inexistent _ jun. In the concrete implementation, if the picture name of the new UI picture set by the UI personnel is 'first take-out' png ', the matching degree at the moment can play a role, namely when the set matching degree is more than 75%, the picture is considered to be matched, and the original picture corresponding to the picture name' first take-out 'png' can be found.
If the picture name of the new UI picture is set using the english name, it can be directly matched with the original picture name. For example, the original picture name is "house _ detail _ config _ existence _ association _ association.png", and if the picture name of the new UI picture is "jun.png", it may be determined that the original picture to be replaced is "house _ detail _ config _ existence _ association.png". Of course, the picture name of the new UI picture set by using the english name may also be set by using the matching degree, which is not described herein again.
S305, replacing the new UI picture to the position of the original picture corresponding to the original picture name in the APP.
S306, sending prompt information for modifying the picture name of the new UI picture.
In specific implementation, if the provider of the new UI picture and the engineer replacing the picture are users in the same system, prompt information can be sent to the provider of the new UI picture; if the provider of the new UI picture is not a user within the same system as the engineer replacing the picture, a prompt may be sent to the engineer replacing the picture.
This embodiment can the automatic search through the picture name of new UI picture need the original picture of replacement to accomplish the replacement automatically after searching original picture, the accuracy of replacement is higher, this process of looking for the original picture that needs the replacement through the picture name does not need the engineer manual operation, the replacement process is consuming time shorter, even when there is big new UI picture in batches, also can accomplish the replacement of the built-in picture of APP fast, the treatment effeciency is higher, user experience is better, the following problem of prior art has been solved: the existing intra-APP picture replacement mode is time-consuming, and due to manual operation, errors are easy to occur, so that pictures cannot be displayed correctly, and user experience is influenced.
A fourth embodiment of the present invention provides a method for replacing an APP built-in picture, where the flow of the method is shown in fig. 4, and the method includes steps S401 to S406:
s401, acquiring a picture name of a new UI picture to be replaced in the APP.
The picture name of the new UI picture in the embodiment of the present invention may be in various forms, for example, a chinese name, or a simple name of a picture built in an APP, and the like, and is not limited herein.
S402, detecting whether an original picture name matched with the picture name of the new UI picture exists in the prestored original picture names, wherein the original picture names are picture names respectively corresponding to all built-in pictures set in the APP. If so, S403 is performed, otherwise S406 is performed.
In the process of matching the picture name of the new UI picture with the original picture name, the process of determining whether the picture name of the new UI picture matches with the original picture name may be embodied by the matching degree, and the matching degree may be set according to actual requirements, for example, the matching degree is determined when the matching degree reaches 90%, or the matching degree is determined when the matching degree reaches 60%, or the matching degree is determined when the matching degree reaches 100%.
When the picture name of the new UI picture is set by using the Chinese name, a comparison table can be set for the original picture name stored in advance, and the Chinese name in the comparison table corresponds to the picture name which is usually liked by an engineer giving the picture. For example, if the original picture name is "house _ detail _ config _ inexistent _ jicun.png", then "house _ detail _ config _ inexistent _ jicun.png" may be set, and the chinese name in the lookup table is "home takeout. png"; if the picture name of the new UI picture is "home export. png", the original picture to be replaced may be determined to be "house _ detail _ config _ inexistent _ jun. In the concrete implementation, if the picture name of the new UI picture set by the UI personnel is 'first take-out' png ', the matching degree at the moment can play a role, namely when the set matching degree is more than 75%, the picture is considered to be matched, and the original picture corresponding to the picture name' first take-out 'png' can be found.
If the picture name of the new UI picture is set using the english name, it can be directly matched with the original picture name. For example, the original picture name is "house _ detail _ config _ inexistent _ jun.png", and if the picture name of the new UI picture is "jun.png", it may be determined that the original picture to be replaced is "house _ detail _ config _ inexistent _ jun.png". Of course, the matching degree may also be set by setting the picture name of the new UI picture using the english name, which is not described herein again.
And S403, modifying the picture name of the new UI picture into the original picture name matched with the picture name of the new UI picture.
S404, the position of the original picture corresponding to the original picture name is searched in the APP.
S405, replacing the new UI picture with the modified picture name to the position of the original picture.
Through the process, the original picture in the APP can be replaced by the new UI picture directly, and the replacement process is more accurate.
S406, sending prompt information for modifying the picture name of the new UI picture.
During specific implementation, if the provider of the new UI picture and the engineer replacing the picture are users in the same system, prompt information can be sent to the provider of the new UI picture; if the provider of the new UI picture is not a user within the same system as the engineer replacing the picture, a prompt may be sent to the engineer replacing the picture.
This embodiment can the automatic search through the picture name of new UI picture need the original picture of replacement, and accomplish the replacement automatically after searching original picture, the accuracy of replacement is higher, should not need the engineer manual operation through the process of the original picture of picture name searching for needs replacement, the replacement process is consuming time shorter, even when there is big new UI picture in batches, also can accomplish the replacement of APP built-in picture fast, the treatment effeciency is higher, user experience is better, the following problem of prior art has been solved: the existing intra-APP picture replacement mode is time-consuming, and due to manual operation, errors are easy to occur, so that pictures cannot be displayed correctly, and user experience is influenced.
A fifth embodiment of the present invention provides an apparatus for replacing an APP built-in picture, where a structural schematic of the apparatus is shown in fig. 5, and the apparatus includes:
the obtaining module 10 is configured to obtain a picture name of a new UI picture to be replaced in the APP; the matching module 11 is coupled to the obtaining module 10, and configured to detect whether an original picture name matching the picture name of the new UI picture exists in pre-stored original picture names, where the original picture name is a picture name corresponding to each built-in picture set in the APP; and a replacing module 12, coupled to the matching module 11, for replacing the new UI picture to a position of the original picture in the APP corresponding to the original picture name in the case that there is the original picture name matching the picture name of the new UI picture.
In specific implementation, the picture name of the new UI picture in the embodiment of the present invention may be in various forms, for example, a chinese name, or a simple name of a picture built in an APP, which is not limited herein. In the process of matching the picture name of the new UI picture with the original picture name by the matching module, the process of determining whether the picture name of the new UI picture matches with the original picture name may be embodied by a matching degree, and the matching degree may be set according to actual requirements, for example, the matching degree is determined when the matching degree reaches 90%, or the matching degree is determined when the matching degree reaches 60%, or the matching degree is determined when the matching degree reaches 100%.
In order to further increase the accuracy of the picture replacement, the replacement module may specifically be configured to: modifying the picture name of the new UI picture into an original picture name matched with the picture name of the new UI picture; searching the position of an original picture corresponding to the original picture name in the APP; and replacing the new UI picture with the modified picture name to the position of the original picture.
The embodiment of the invention prestores the respective picture names of the built-in pictures arranged in the APP, takes the picture names as the original picture names, acquires the picture names of the new UI pictures when the current built-in pictures in the APP need to be replaced, searches the original picture names matched with the picture names of the new UI pictures in the prestored original picture names, can determine which picture needs to be replaced when the original picture names are found, and can directly replace a certain original built-in picture in the APP by using the new UI picture.
This embodiment can the automatic search through the picture name of new UI picture need the original picture of replacement to accomplish the replacement automatically after searching original picture, the accuracy of replacement is higher, this process of looking for the original picture that needs the replacement through the picture name does not need the engineer manual operation, the replacement process is consuming time shorter, even when there is big new UI picture in batches, also can accomplish the replacement of the built-in picture of APP fast, the treatment effeciency is higher, user experience is better, the following problem of prior art has been solved: the existing intra-APP picture replacement mode is time-consuming, and due to manual operation, errors are easy to occur, so that pictures cannot be displayed correctly, and user experience is influenced.
A sixth embodiment of the present invention provides a device for replacing an APP built-in picture, where a structural schematic of the device is shown in fig. 6, and the device includes:
the obtaining module 20 is configured to obtain a picture name of a new UI picture to be replaced in the APP; a matching module 21, coupled to the obtaining module 20, configured to detect whether an original picture name matching the picture name of the new UI picture exists in pre-stored original picture names, where the original picture name is a picture name corresponding to each built-in picture set in the APP; a replacing module 22, coupled to the matching module 21, for replacing the new UI picture to a position of the original picture in the APP corresponding to the original picture name in the case that there is the original picture name matching the picture name of the new UI picture; and a first sending module 23, coupled to the matching module 21, configured to send prompt information for modifying the picture name of the new UI picture in the case that there is no original picture name matching the picture name of the new UI picture.
In a specific implementation, the picture name of the new UI picture in the embodiment of the present invention may be in various forms, for example, a chinese name, or a simple name of a picture built in an APP, and is not limited herein. In the process of matching the picture name of the new UI picture with the original picture name by the matching module, the process of determining whether the picture name of the new UI picture matches with the original picture name may be embodied by a matching degree, and the matching degree may be set according to actual requirements, for example, the matching degree is determined when the matching degree reaches 90%, or the matching degree is determined when the matching degree reaches 60%, or the matching degree is determined when the matching degree reaches 100%.
If the provider of the new UI picture and the engineer replacing the picture are users in the same system, the first sending module can send prompt information to the provider of the new UI picture; the first sending module may send a prompt message to the engineer who replaces the picture if the provider of the new UI picture and the engineer who replaces the picture are not users within the same system.
The embodiment of the invention prestores the respective picture names of all built-in pictures arranged in the APP, takes the picture names as original picture names, acquires the picture names of new UI pictures when the current built-in pictures in the APP need to be replaced, searches the original picture names matched with the picture names of the new UI pictures in the prestored original picture names, and can determine which picture needs to be replaced when the original picture names are found, so that a certain original built-in picture in the APP can be directly replaced by the new UI picture.
This embodiment can the automatic search through the picture name of new UI picture need the original picture of replacement to accomplish the replacement automatically after searching original picture, the accuracy of replacement is higher, this process of looking for the original picture that needs the replacement through the picture name does not need the engineer manual operation, the replacement process is consuming time shorter, even when there is big new UI picture in batches, also can accomplish the replacement of the built-in picture of APP fast, the treatment effeciency is higher, user experience is better, the following problem of prior art has been solved: the existing intra-APP picture replacement mode is time-consuming, and due to manual operation, errors are easy to occur, so that pictures cannot be displayed correctly, and user experience is influenced.
A seventh embodiment of the present invention provides a device for replacing an APP built-in picture, where a structural schematic of the device is shown in fig. 7, and the device includes:
the setting module 30 is configured to set original picture names of the built-in pictures set in the APP according to a first preset naming rule, and store the original picture names; the detection module 31 is configured to detect whether the picture name of the received new UI picture meets a second preset naming rule; a second sending module 32, coupled to the detecting module 31, configured to send a prompt message for modifying the picture name of the new UI picture when the picture name of the new UI picture does not conform to the second preset naming rule; the obtaining module 33 is coupled to the detecting module 31, and configured to obtain a picture name of a new UI picture to be replaced in the APP; a matching module 34, coupled to the setting module 30 and the obtaining module 33, configured to detect whether an original picture name matching the picture name of the new UI picture exists in pre-stored original picture names, where the original picture name is a picture name corresponding to each built-in picture set in the APP; a replacing module 35, coupled to the matching module 34, for replacing the new UI picture to a position of the original picture in the APP corresponding to the original picture name in the case that there is the original picture name matching the picture name of the new UI picture; a first sending module 36, coupled to the matching module 34, for sending a prompt message for modifying the picture name of the new UI picture in case there is no original picture name matching the picture name of the new UI picture.
Preferably, the first preset naming rule and the second preset naming rule may be the same, or of course, may be different. If the first preset naming convention can be different from the second preset naming convention, a lookup table for matching can be set according to the naming convention.
In a specific implementation, the picture name of the new UI picture in the embodiment of the present invention may be in various forms, for example, a chinese name, or a simple name of a picture built in an APP, and is not limited herein. In the process of matching the picture name of the new UI picture with the original picture name by the matching module, the process of determining whether the picture name of the new UI picture matches with the original picture name may be embodied by a matching degree, and the matching degree may be set according to actual requirements, for example, the matching degree is determined when the matching degree reaches 90%, or the matching degree is determined when the matching degree reaches 60%, or the matching degree is determined when the matching degree reaches 100%.
If the provider of the new UI picture and the engineer replacing the picture are users in the same system, the first sending module can send prompt information to the provider of the new UI picture; the first sending module may send a prompt message to the engineer who replaces the picture if the provider of the new UI picture and the engineer who replaces the picture are not users within the same system.
The embodiment of the invention prestores the respective picture names of all built-in pictures arranged in the APP, takes the picture names as original picture names, acquires the picture names of new UI pictures when the current built-in pictures in the APP need to be replaced, searches the original picture names matched with the picture names of the new UI pictures in the prestored original picture names, and can determine which picture needs to be replaced when the original picture names are found, so that a certain original built-in picture in the APP can be directly replaced by the new UI picture.
This embodiment can the automatic search through the picture name of new UI picture need the original picture of replacement to accomplish the replacement automatically after searching original picture, the accuracy of replacement is higher, this process of looking for the original picture that needs the replacement through the picture name does not need the engineer manual operation, the replacement process is consuming time shorter, even when there is big new UI picture in batches, also can accomplish the replacement of the built-in picture of APP fast, the treatment effeciency is higher, user experience is better, the following problem of prior art has been solved: the existing intra-APP picture replacement mode is time-consuming, and due to manual operation, errors are easy to occur, so that pictures cannot be displayed correctly, and user experience is influenced.
An eighth embodiment of the present invention provides a storage medium storing a computer program, which when executed by a processor, performs the steps of:
and S1, acquiring the picture name of the new UI picture to be replaced in the APP.
And S2, detecting whether an original picture name matched with the picture name of the new UI picture exists in the prestored original picture names, wherein the original picture names are picture names respectively corresponding to all built-in pictures set in the APP.
And S3, in the case that the original picture name matched with the picture name of the new UI picture exists, replacing the new UI picture to the position of the original picture corresponding to the original picture name in the APP.
When being executed by a processor, the method can be executed by the processor as follows: modifying the picture name of the new UI picture into an original picture name matched with the picture name of the new UI picture; searching the position of an original picture corresponding to the original picture name in the APP; and replacing the new UI picture with the modified picture name to the position of the original picture.
S4, in case there is no original picture name matching the picture name of the new UI picture, sending a prompt message to modify the picture name of the new UI picture.
Before the computer program is executed by the processor to obtain the picture name of the new UI picture to be replaced into the APP, the following setting steps may also be executed by the processor: and setting original picture names of all built-in pictures set in the APP according to a first preset naming rule, and storing all the original picture names. In specific implementation, if the corresponding APP data in the server is json data, a specified field may be added to the json data to store an original picture name of the APP built-in picture.
For example, a pic _ name field is added to json data, and the picture name of the corresponding built-in picture is stored; then, the value of the pic _ name field in the json data can be extracted in batch subsequently, and then the value is summarized into a picture name comparison table of the built-in picture for use in subsequently replacing the built-in picture.
Before the computer program is executed by the processor to obtain the picture name of the new UI picture to be replaced into the APP, the following detection steps may also be executed by the processor: detecting whether the picture name of the received new UI picture meets a second preset naming rule or not; and sending prompt information for modifying the picture name of the new UI picture under the condition that the picture name of the new UI picture does not accord with the second preset naming rule.
The setting step and the detecting step may be present simultaneously; the first preset naming rule can be the same as the second preset naming rule so as to carry out unified specification on the picture names; if the first preset naming convention can be different from the second preset naming convention, a lookup table for matching can be set according to the naming convention.
Since the processes are all implemented by computer program codes, one or more scripts can be set, and the functions corresponding to the steps can be implemented by running one or more scripts.
The embodiment of the invention can be applied to the APP of the mobile terminal, the naming mode of the built-in pictures in the APP is unified and standardized, the appointed field is added in the requested data to store the picture name of the built-in pictures, and the pictures to be replaced are automatically matched by using the script to complete the replacement action, so that the functions of running the script once and completing the replacement of the built-in pictures are achieved, the problem of picture errors caused by manual operation errors is avoided, and the user experience is improved.
Optionally, in this embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes. Optionally, in this embodiment, the processor executes the method steps described in the above embodiments according to the program code stored in the storage medium. Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation manners, and this embodiment is not described herein again. It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
Although the preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and the scope of the invention should not be limited to the embodiments described above.

Claims (11)

1. A method for replacing an APP built-in picture is characterized by comprising the following steps:
acquiring a picture name of a new user interface UI picture to be replaced in an application software APP;
detecting whether an original picture name matched with the picture name of the new UI picture exists in prestored original picture names, wherein the original picture names are picture names respectively corresponding to all built-in pictures set in the APP; setting a comparison table for the pre-stored original picture name under the condition that the picture name of the new user interface UI picture is the Chinese name, so as to detect whether the matched original picture name exists or not through the Chinese name corresponding to the original name in the comparison table; the naming rule of the picture name of the new UI picture is different from the naming rule of the original picture name;
under the condition that an original picture name matched with the picture name of the new UI picture exists, replacing the new UI picture to the position of the original picture corresponding to the original picture name in the APP;
wherein the detecting whether an original picture name matching the picture name of the new UI picture exists in the pre-stored original picture names includes:
and determining whether the picture name of the new UI picture is matched with the original picture name or not through the matching degree, wherein the matching degree is set according to actual requirements.
2. The replacement method according to claim 1, wherein after detecting whether there is an original picture name matching the picture name of the new UI picture among the pre-stored original picture names, further comprising:
and sending prompt information for modifying the picture name of the new UI picture under the condition that the original picture name matched with the picture name of the new UI picture does not exist.
3. The replacing method according to claim 1, wherein before obtaining the picture name of the new UI picture to be replaced into the application APP, the method further comprises:
setting original picture names of all built-in pictures set in the APP according to a first preset naming rule;
and storing each original picture name.
4. The replacing method according to claim 1, wherein before obtaining the picture name of the new UI picture to be replaced into the application APP, the method further comprises:
detecting whether the received picture name of the new UI picture meets a second preset naming rule or not;
and sending prompt information for modifying the picture name of the new UI picture under the condition that the picture name of the new UI picture does not accord with the second preset naming rule.
5. The replacement method according to any one of claims 1 to 4, wherein replacing the new UI picture to the position of the original picture corresponding to the original picture name in the APP comprises:
modifying the picture name of the new UI picture into an original picture name matched with the picture name of the new UI picture;
searching the position of the original picture corresponding to the original picture name in the APP;
and replacing the new UI picture with the modified picture name to the position of the original picture.
6. The utility model provides a replacement device of built-in picture of APP which characterized in that includes:
the acquisition module is used for acquiring the picture name of a new user interface UI picture to be replaced in the application software APP;
the matching module is used for detecting whether an original picture name matched with the picture name of the new UI picture exists in the prestored original picture names, wherein the original picture names are picture names respectively corresponding to all built-in pictures set in the APP; setting a comparison table for the original picture name stored in advance under the condition that the picture name of the new user interface UI picture is a Chinese name, and detecting whether the matched original picture name exists or not according to the Chinese name corresponding to the original name in the comparison table; the naming rule of the picture name of the new UI picture is different from the naming rule of the original picture name;
the replacing module is used for replacing the new UI picture to the position of the original picture corresponding to the original picture name in the APP under the condition that the original picture name matched with the picture name of the new UI picture exists;
the matching module is specifically configured to determine whether the picture name of the new UI picture matches the original picture name according to a matching degree, where the matching degree is set according to an actual requirement.
7. The replacement device of claim 6, further comprising:
and the first sending module is used for sending prompt information for modifying the picture name of the new UI picture under the condition that the original picture name matched with the picture name of the new UI picture does not exist.
8. The replacement device of claim 6, further comprising:
and the setting module is used for setting the original picture names of all built-in pictures set in the APP according to a first preset naming rule and storing all the original picture names.
9. The replacement device of claim 6, further comprising:
the detection module is used for detecting whether the received picture name of the new UI picture meets a second preset naming rule or not;
and the second sending module is used for sending prompt information for modifying the picture name of the new UI picture under the condition that the picture name of the new UI picture does not accord with the second preset naming rule.
10. The replacement device according to any one of claims 6 to 9, wherein the replacement module is specifically configured to:
modifying the picture name of the new UI picture into an original picture name matched with the picture name of the new UI picture; searching the position of the original picture corresponding to the original picture name in the APP; and replacing the new UI picture with the picture name modified to the position of the original picture.
11. A storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of the method for replacing an APP built-in picture of any one of claims 1 to 5.
CN201711374513.9A 2017-12-19 2017-12-19 Method and device for replacing APP built-in picture and storage medium Active CN108132990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711374513.9A CN108132990B (en) 2017-12-19 2017-12-19 Method and device for replacing APP built-in picture and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711374513.9A CN108132990B (en) 2017-12-19 2017-12-19 Method and device for replacing APP built-in picture and storage medium

Publications (2)

Publication Number Publication Date
CN108132990A CN108132990A (en) 2018-06-08
CN108132990B true CN108132990B (en) 2022-05-31

Family

ID=62390812

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711374513.9A Active CN108132990B (en) 2017-12-19 2017-12-19 Method and device for replacing APP built-in picture and storage medium

Country Status (1)

Country Link
CN (1) CN108132990B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102810060A (en) * 2011-06-01 2012-12-05 腾讯科技(深圳)有限公司 Method and device for configuring Android picture resource
CN103269452A (en) * 2013-05-27 2013-08-28 河南有线电视网络集团有限公司 Advertisement content renewing method and device
US8676066B2 (en) * 2010-10-22 2014-03-18 Oki Data Corporation Image forming apparatus having control unit
CN104092726A (en) * 2014-06-09 2014-10-08 乐视网信息技术(北京)股份有限公司 Automatic replacing method and apparatus of same-name file
CN106201482A (en) * 2016-06-30 2016-12-07 努比亚技术有限公司 A kind of data processing method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8676066B2 (en) * 2010-10-22 2014-03-18 Oki Data Corporation Image forming apparatus having control unit
CN102810060A (en) * 2011-06-01 2012-12-05 腾讯科技(深圳)有限公司 Method and device for configuring Android picture resource
CN103269452A (en) * 2013-05-27 2013-08-28 河南有线电视网络集团有限公司 Advertisement content renewing method and device
CN104092726A (en) * 2014-06-09 2014-10-08 乐视网信息技术(北京)股份有限公司 Automatic replacing method and apparatus of same-name file
CN106201482A (en) * 2016-06-30 2016-12-07 努比亚技术有限公司 A kind of data processing method and electronic equipment

Also Published As

Publication number Publication date
CN108132990A (en) 2018-06-08

Similar Documents

Publication Publication Date Title
CN108255653B (en) Product testing method and terminal thereof
CN107800565B (en) Inspection method, inspection device, inspection system, computer equipment and storage medium
US20190327105A1 (en) Method and apparatus for pushing information
CN112988317B (en) Multi-mode cloud desktop management and control method and device
US20170177316A1 (en) Mobile application deployment for distributed computing environments
CN109002305B (en) Method and system for updating equipment program
CN112434278A (en) Bare computer authentication method, apparatus, device and medium
CN110688305B (en) Test environment synchronization method, device, medium and electronic equipment
CN107844597B (en) Game application management method, electronic device and computer readable medium
CN111984293B (en) Information processing method, device and storage medium
CN109948332A (en) A kind of physical machine login password remapping method and device
CN111385613B (en) Television system repairing method, storage medium and application server
CN108132990B (en) Method and device for replacing APP built-in picture and storage medium
CN107888772B (en) Method, device and storage medium for determining configuration information
CN107632864B (en) Method for establishing UEFI Boot Order of specific ordering
CN106855816B (en) Resource file loading method and device of application program in terminal
CN109005469A (en) A kind of conversion method of message format, device, storage medium and android terminal
CN114650211A (en) Fault repairing method, device, electronic equipment and computer readable storage medium
US20170171320A1 (en) Method, terminal and domain name server for connecting terminal to server
CN109788054B (en) Configuration method, server and medium for distributed application coordination service node
CN107302605B (en) Configuration method and device of television proxy server, television and storage medium
CN107094297B (en) Equipment identification method and device
US20200351179A1 (en) Methods, Network Function Entities and Computer Readable Media for Providing IoT Services
CN116881001B (en) Method, device, equipment and medium for managing and controlling cloud platform of multiple DPU hosts
CN111901185B (en) Account number management method and device for VoIP phone automatic test system

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
TR01 Transfer of patent right

Effective date of registration: 20230930

Address after: Room 210-03, 2nd floor, block C, office building, Nangang Industrial Zone, Tianjin Binhai New Area Economic and Technological Development Zone, 300450

Patentee after: 58Tongcheng Information Technology Co.,Ltd.

Address before: Room 210-03, 2nd floor, block C, office building, Nangang Industrial Zone, Tianjin Binhai New Area Economic and Technological Development Zone, 300450

Patentee before: 58 Co.,Ltd.

TR01 Transfer of patent right