Resource management method and device, storage medium, and electronic device
Through blacklist configuration and resource inspection of UI resources, the problem of increasing and difficult to grasp relationships in UI resource management is solved, automated management and resource quality improvement are realized, development speed is dynamically controlled, and player gaming experience is optimized.
Patent Information
- Application Number
- CN202111107601.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-22
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2041-09-22
AI Technical Summary
Existing technology cannot effectively manage and control the increase of UI resources, causing players to frequently download and re-download UI resources, and cannot clearly view or grasp the relationship between resources, resulting in resource confusion, accidental deletion and missing deletion, which affects game development. efficiency.
By obtaining original interface resources and interface picture resources, blacklist configuration is performed, invalid resources are eliminated, resource inspection and compliance updates are performed, resource generation and submission are dynamically controlled, to avoid accidental deletion and omission, and clearly grasp resource relationships.
Effectively control the size of target interface resources, automatically manage discarded resources, avoid accidental and missed deletions, improve resource quality and development efficiency, dynamically control development speed, and optimize player gaming experience.
Smart Images

Figure CN113694539B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a resource management method and device, a computer-readable storage medium, and an electronic device. Background Art
[0002] In order to improve the core competitiveness of various game manufacturers, constantly enriching game content has become a technical means and trend. UI (User Interface) plays an important role as a content display and interaction tool in the game. As the game version advances, UI resources also need to be frequently iterated. At present, most project teams using the Messiah engine exclude ui.local as a resource whitelist. However, as the game content becomes richer, the UI resources will increase rapidly, including the unreleased version content and the content of other different servers. This will increase the size of the patch that players need to download, and the subsequent version will cause the modification of related UI resources, which will cause players to re-download this part of the content.
[0003] Currently, through easy-to-collaborate version management or special naming, it is forbidden to submit UI resources that are not part of this week's version, and resources from different servers are named with flags. For example, national server resources are named with "_cn_" characters. Then, the deletion of resources is determined by artists to be discarded and manually deleted. This kind of easy-to-collaborate version management still cannot avoid the problem of UI resource confusion, nor can it solve the problem of resource stacking of old versions. It is also impossible to clearly view or grasp the relationship between UI resources, so it is impossible to promptly remind and conveniently modify non-compliant resources. Moreover, by distinguishing resources from different servers through special naming, there will be omissions in naming or incorrect naming. In addition, artists independently judge the deletion of discarded or shelved resources, which will lead to problems of accidental or missed deletions, and it is impossible to achieve development effects on different branches.
[0004] In view of this, there is an urgent need in the art to develop a new resource management method and device.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The purpose of the present disclosure is to provide a resource management method, a resource management device, a computer-readable storage medium and an electronic device, thereby overcoming the technical problem of poor resource management effect caused by the limitations of related technologies at least to a certain extent.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to a first aspect of an embodiment of the present invention, a resource management method is provided, the method comprising:
[0009] Acquire an original interface resource and an interface image resource corresponding to the original interface resource, and perform blacklist configuration on the original interface resource and the interface image resource to obtain a blacklist resource;
[0010] According to the removal identifier of the blacklist resource, the original interface resource is subjected to resource removal processing to obtain a valid interface resource;
[0011] An interface resource check is performed on the valid interface resource to obtain a resource check result, and a resource export process is performed on the valid interface resource according to the resource check result to obtain a target interface resource.
[0012] In an exemplary embodiment of the present invention, the acquiring of the original interface resource and the interface image resource corresponding to the original interface resource includes:
[0013] Obtaining original image resources and reference resource files in the original interface resources, and performing regular expression parsing on the reference resource files to obtain reference image resources;
[0014] A scanned image resource is obtained, and the original image resource, the referenced image resource, and the scanned image resource are determined to be interface image resources corresponding to the original interface resource.
[0015] In an exemplary embodiment of the present invention, the removal flag of the blacklist resource includes: a single removal flag and an invalid removal flag.
[0016] In an exemplary embodiment of the present invention, the performing an interface resource check on the valid interface resource to obtain a resource check result includes:
[0017] Performing a compliance check on the valid interface resource to obtain a compliance check result;
[0018] Based on the compliance check result, a resource size check is performed on the valid interface resource to obtain a resource check result.
[0019] In an exemplary embodiment of the present invention, the step of performing a compliance check on the valid interface resource to obtain a compliance check result includes:
[0020] Performing regular search processing on the valid interface resources to obtain regular search results;
[0021] Based on the regular search result, the valid interface resource is subjected to a combination condition judgment to obtain a compliance check result.
[0022] In an exemplary embodiment of the present invention, the performing resource size check on the valid interface resource based on the compliance check result to obtain a resource check result includes:
[0023] When the regular search result is that the valid interface resource fails to pass the regular search process, or the compliance check result is that the valid interface resource fails to pass the combined image condition judgment, a compliance update process is performed on the valid interface resource to obtain a compliant interface resource;
[0024] A resource size check is performed on the compliant interface resource to obtain a resource check result.
[0025] In an exemplary embodiment of the present invention, the step of performing compliance update processing on the valid interface resource to obtain the compliant interface resource includes:
[0026] If the valid interface resource that has not passed the regular search process or the combined image condition is a valid image resource, determining image resource data according to the valid interface resource;
[0027] A picture resource file is generated according to the picture resource data, and a compliance update process is performed on the picture resource file using a compliance picture name corresponding to the valid interface resource to obtain a compliance interface resource.
[0028] In an exemplary embodiment of the present invention, the step of performing compliance update processing on the valid interface resource to obtain the compliant interface resource includes:
[0029] If the valid interface resource that fails to pass the regular search process or the combined image condition judgment is a valid text resource, determining the image resource data according to the valid interface resource;
[0030] A picture resource file is generated according to the picture resource data, and compliance updating processing is performed on the picture resource file using compliance text information corresponding to the valid interface resource to obtain a compliance interface resource.
[0031] In an exemplary embodiment of the present invention, the method further comprises:
[0032] If the regular search result is that the valid interface resource fails to pass the regular search process, or the compliance check result is that the valid interface resource fails to pass the combination condition judgment, a check reminder message is generated.
[0033] In an exemplary embodiment of the present invention, the method further comprises:
[0034] If the resource check result is that the valid interface resource or the compliant interface resource fails the resource size check, a check reminder message is generated.
[0035] According to a second aspect of an embodiment of the present invention, there is provided a resource management device, including:
[0036] A list configuration module is configured to obtain an original interface resource and an interface image resource corresponding to the original interface resource, and perform a blacklist configuration on the original interface resource and the interface image resource to obtain a blacklist resource;
[0037] A resource elimination module is configured to perform resource elimination processing on the original interface resource according to the elimination identifier of the blacklist resource to obtain a valid interface resource;
[0038] The inspection management module is configured to perform an interface resource inspection on the effective interface resource to obtain a resource inspection result, and perform resource export processing on the effective interface resource according to the resource inspection result to obtain a target interface resource.
[0039] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor and a memory; wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the resource management method in any of the above exemplary embodiments is implemented.
[0040] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the resource management method in any of the above exemplary embodiments is implemented.
[0041] It can be seen from the above technical solutions that the resource management method, resource management device, computer storage medium and electronic device in the exemplary embodiments of the present disclosure have at least the following advantages and positive effects:
[0042] In the method and device provided by the exemplary embodiment of the present disclosure, the blacklist resources configured in the blacklist are processed for resource elimination, the size of the target interface resources is effectively controlled, and the discarded resources or shelved resources are automatically and intelligently deleted, avoiding the occurrence of accidental or missed deletions, and the development speed of different branches can also be dynamically controlled. Furthermore, interface resource checks are performed on effective interface resources, the association relationship of interface resources is clearly grasped, the generation and submission of interface resources are monitored in real time, the generation of target interface resources is flexibly controlled, and the quality of the generated target interface resources is improved.
[0043] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0045] Figure 1 A schematic diagram schematically illustrates a flow chart of a resource management method in an exemplary embodiment of the present disclosure;
[0046] Figure 2 A schematic diagram schematically illustrates a flow chart of a method for acquiring original interface resources and interface image resources in an exemplary embodiment of the present disclosure;
[0047] Figure 3 Schematically showing the atlas corresponding to the csd file and the relationship diagram with the leaf nodes in the exemplary embodiment of the present disclosure;
[0048] Figure 4 A schematic diagram schematically illustrates an interface of a blacklist resource determined in an exemplary embodiment of the present disclosure;
[0049] Figure 5 An interface diagram schematically illustrating a storage path of a blacklist resource in an exemplary embodiment of the present disclosure;
[0050] Figure 6 An interface schematic diagram schematically showing resource removal processing of original interface resources in an exemplary embodiment of the present disclosure;
[0051] Figure 7 A schematic diagram schematically illustrates a flow chart of a method for checking interface resources in an exemplary embodiment of the present disclosure;
[0052] Figure 8 A flowchart schematically illustrating a method for compliance checking in an exemplary embodiment of the present disclosure;
[0053] Fig. 9 A flowchart schematically illustrates a method for performing resource size checking according to compliance checking results in an exemplary embodiment of the present disclosure;
[0054] Fig.10 A flowchart schematically illustrates a method for compliance update processing in an exemplary embodiment of the present disclosure;
[0055] Fig.11 A flowchart schematically illustrates another method for compliance update processing in an exemplary embodiment of the present disclosure;
[0056] Fig.12A schematic diagram of an interface for generating inspection reminder information in an exemplary embodiment of the present disclosure is schematically shown;
[0057] Fig.13 Schematically showing another interface diagram for generating inspection reminder information in an exemplary embodiment of the present disclosure;
[0058] Fig.14 Schematically showing an interface diagram of automatically modifying a valid interface resource that does not meet the interface resource check in an exemplary embodiment of the present disclosure;
[0059] Fig.15 A schematic diagram schematically illustrates a flow chart of a resource management method in an application scenario in an exemplary embodiment of the present disclosure;
[0060] Fig.16 A schematic diagram schematically illustrates an interface of a method for scanning a project directory in an application scenario in an exemplary embodiment of the present disclosure;
[0061] Fig.17 A schematic diagram of an interface schematically showing a method for resource elimination processing in an application scenario in an exemplary embodiment of the present disclosure;
[0062] Fig.18 A schematic diagram schematically illustrates an interface of a method for compliance checking in an application scenario in an exemplary embodiment of the present disclosure;
[0063] Fig.19 A schematic diagram of an interface schematically illustrating a method for compliance update processing in an application scenario in an exemplary embodiment of the present disclosure;
[0064] Fig. 20 A schematic diagram schematically illustrates an interface of a method for checking resource size in an application scenario in an exemplary embodiment of the present disclosure;
[0065] Fig.21 A schematic diagram schematically illustrates an interface of a method for resource export processing in an application scenario in an exemplary embodiment of the present disclosure;
[0066] Fig. 22 A schematic diagram of an interface showing the completion of resource export processing in an application scenario in an exemplary embodiment of the present disclosure is schematically shown;
[0067] Fig.23 A schematic diagram schematically shows the structure of a resource management device in an exemplary embodiment of the present disclosure;
[0068] Fig.24 An electronic device for implementing a resource management method in an exemplary embodiment of the present disclosure is schematically shown;
[0069] Fig.25 A computer-readable storage medium for implementing a resource management method in an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0070] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0071] The terms "a", "an", "the" and "said" are used in this specification to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express an open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first" and "second" etc. are used only as labels and are not intended to limit the quantity of their objects.
[0072] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities.
[0073] In order to improve the core competitiveness of various game producers, constantly enriching game content has become a technical means and trend. UI plays an important role as a content display and interaction tool in the game. As the game version advances, UI resources also need to be frequently iterated. At present, most project teams using the Messiah engine exclude ui.local as a resource whitelist. However, as the game content becomes richer, the UI resources will increase rapidly, including the unreleased version content and the content of other different servers. This will increase the size of the patch that players need to download, and the subsequent version will cause the modification of related UI resources, which will cause players to re-download this part of the content.
[0074] Currently, through easy-to-collaborate version management or special naming, it is forbidden to submit UI resources that are not part of this week's version, and resources from different servers are named with flags. For example, national server resources are named with "_cn_" characters. Then, the deletion of resources is determined by artists to be discarded and manually deleted. This kind of easy-to-collaborate version management still cannot avoid the problem of UI resource confusion, nor can it solve the problem of resource stacking of old versions. It is also impossible to clearly view or grasp the relationship between UI resources, so it is impossible to promptly remind and conveniently modify non-compliant resources. Moreover, by distinguishing resources from different servers through special naming, there will be omissions in naming or incorrect naming. In addition, artists independently judge the deletion of discarded or shelved resources, which will lead to problems of accidental or missed deletions, and it is impossible to achieve development effects on different branches.
[0075] In view of the problems existing in the related technologies, the present disclosure proposes a resource management method. Figure 1 A flow chart of a resource management method is shown, such as Figure 1 As shown, the resource management method includes at least the following steps:
[0076] Step S110: Acquire original interface resources and interface image resources corresponding to the original interface resources, and perform blacklist configuration on the original interface resources and the interface image resources to obtain blacklist resources.
[0077] Step S120: Perform resource elimination processing on the original interface resources according to the elimination identifier of the blacklist resource to obtain a valid interface resource.
[0078] Step S130: Perform an interface resource check on the valid interface resources to obtain a resource check result, and perform resource export processing on the valid interface resources according to the resource check result to obtain a target interface resource.
[0079] In the exemplary embodiment of the present disclosure, resource removal is performed according to the blacklist resources configured in the blacklist, the size of the target interface resources is effectively controlled, and the discarded resources or shelved resources are automatically and intelligently deleted, avoiding the occurrence of accidental or missed deletions, and the development speed of different branches can be dynamically controlled. Furthermore, interface resource inspection is performed on the effective interface resources, the association relationship of the interface resources is clearly grasped, the generation and submission of the interface resources are monitored in real time, the generation of the target interface resources is flexibly controlled, and the quality of the generated target interface resources is improved.
[0080] The following is a detailed description of each step of the resource management method.
[0081] In step S110, original interface resources and interface image resources corresponding to the original interface resources are obtained, and blacklist configuration is performed on the original interface resources and the interface image resources to obtain blacklist resources.
[0082] In an exemplary embodiment of the present disclosure, the original interface resource may be a UI resource based on a Messiah file system. In addition, the original interface resource may also be other interface resources, which is not specifically limited in the exemplary embodiment.
[0083] Among them, the Messiah engine was developed by NetEase in 2013. After absorbing the experience of high-quality products such as the "Frostbite Engine" and the "Naughty Dog" engine dedicated to Naughty Dog Studio, it was finally officially put into game development in mid-2016.
[0084] In an alternative embodiment, Figure 2 A flow chart showing a method for obtaining original interface resources and interface image resources is shown, such as Figure 2 As shown, the method includes at least the following steps: In step S210, original image resources and reference resource files in the original interface resources are obtained, and the reference resource files are subjected to regular expression parsing to obtain reference image resources.
[0085] All original UI resources, i.e. original interface resources, can be obtained by scanning the project directory. Moreover, the original interface resources may include plist resources, i.e. reference resource files, and png images, i.e. original image resources. In addition, the original interface resources may also include csd resources or other resources, which are not specifically limited in this exemplary embodiment.
[0086] The plist file is essentially an XML (Extensible Markup Language) file. The files with the suffix plist that you see on iPhone are usually of this type. There are two forms of this file, one is the plain text XML form, and the other is the binary form file. The plist form can be said to be everywhere. It is used to send various commands through iTunes and is also used to store databases. In addition, the two forms of plist resources can be converted to each other through iTunes's export function.
[0087] PNG is a bitmap format that uses a lossless compression algorithm. It is designed to replace GIF and TIFF file formats, while adding some features that GIF file formats do not have. PNG uses a lossless data compression algorithm derived from LZ77 and is generally used in JAVA programs and web pages or S60 programs because PNG images have a high compression ratio and generate small files.
[0088] The csd file has a PropertyGroup attribute, in which the type attribute indicates whether it is a root node or a leaf node, and the FileDat attribute indicates which png images or plist files the csd file references.
[0089] Figure 3 The diagram shows the atlas corresponding to the csd file and its relationship with the leaf nodes, as shown in Figure 3 As shown, by recursively parsing each csd file, the relationship between the leaf nodes and the root nodes in the current directory can be obtained, and the png picture corresponding to each csd can be obtained and saved as a csv file.
[0090] Among them, CSV (Comma-Separated Values, comma-separated value file format, sometimes also called character-separated values, because the separator character can also be other than a comma), its file stores tabular data (numbers and text) in plain text form. Plain text means that the file is a sequence of characters and does not contain data that must be interpreted like binary numbers. CSV files consist of any number of records, separated by some kind of line break; each record consists of fields, and the separator between fields is other characters or strings, the most common of which are commas or tabs.
[0091] Usually, all records have exactly the same sequence of fields. Usually they are plain text files. It is recommended to use WORDPAD or Notepad to open them. Another method is to save a new file and then open it with EXCEL. CSV is a common and relatively simple file format that is widely used by users, businesses, and science.
[0092] Find the referenced plist file from each leaf node and root node, and then parse the referenced plist file from the ExportJson file to obtain all the used plist files.
[0093] The plist file contains a key containing "textureFileName" that corresponds to the referenced texture file. Based on these plist files used, the regular expression method is used to parse and find the referenced png images, that is, the referenced image resources.
[0094] In step S220, the scanned image resources are acquired, and the original image resources, the referenced image resources, and the scanned image resources are determined to be interface image resources corresponding to the original interface resources.
[0095] Specifically, by scanning the png images referenced in the program script, that is, scanning the image resources, all the used png images can be obtained. In addition, the original image resources, the referenced image resources and the scanned image resources can be used to determine the interface image resources corresponding to the original interface resources, that is, the sources of the interface image resources are three aspects.
[0096] In this exemplary embodiment, interface image resources from three sources can be obtained through scanning and regular analysis processing, so that artists can clearly understand the current UI resource situation and provide a complete and accurate data basis for interface resource management.
[0097] After obtaining the interface image resources, a blacklist configuration may be performed on the original interface resources and the interface image resources to obtain corresponding blacklist resources.
[0098] According to the relationship between all original interface resources and used interface image resources, the abandoned and shelved resources, i.e., blacklist resources, can be determined. Specifically, all original interface resources can be used to subtract the used interface image resources to obtain the corresponding blacklist resources.
[0099] Figure 4 The following is a schematic diagram of the interface of the determined blacklist resources: Figure 4 As shown, all unused UI resources are recorded. Further combined with the png image information corresponding to the csd file, it is clear which resources cannot be played externally, and these UI resources are determined to form a corresponding blacklist directory to include blacklist resources.
[0100] Figure 5 The schematic diagram of the interface showing the storage path of the blacklist resource is shown as follows: Figure 5 As shown, the png_path column records the storage path corresponding to the blacklist resource pag_name.
[0101] In step S120, the original interface resources are subjected to resource elimination processing according to the elimination identifier of the blacklist resource to obtain the valid interface resources.
[0102] In an exemplary embodiment of the present disclosure, in order not to affect the development of the trunk branch, the original interface resources may be processed for resource elimination through a skip method.
[0103] The trunk branch is used for the main development and forward progress. The development of a new module is placed in the trunk. When the module is developed, the branch is used for modification. The branch is used for parallel development, and the parallel here refers to comparison with the trunk.
[0104] In an optional embodiment, the removal flag of the blacklist resource includes: a single removal flag and an invalid removal flag.
[0105] For example, the single-piece deletion mark may be 2, and the invalid rejection mark may be 1. In addition, the single-piece rejection mark and the invalid rejection mark may also be other mark forms, which are not particularly limited in this exemplary embodiment.
[0106] Specifically, when skip is 1, both the trunk branch and the release branch will remove the blacklisted resources from the original interface resources; and when skip is 2, only the blacklisted resources from the original interface resources will be removed on the release branch. This prevents these resources from entering the final patch, and thus achieves the purpose of dynamically controlling version development.
[0107] After the developer has transferred all functions to the test, a release branch will be created. After completion, the tester will revoke the permission to create the branch (by setting the release branch as a protection branch). From then on, every time the developer needs to submit content to the release branch, he needs to apply to the tester, and the tester will give the developer temporary permission (remove the release branch from the protection branch). After the developer submits the content, the tester will revoke the permission again, and then submit the content of the code to ensure that there is no smuggling problem.
[0108] Figure 6 A schematic diagram of an interface for removing resources from the original interface resources is shown. Figure 6 As shown, you can select a single resource file in this interface as a blacklist resource to be removed, or you can determine the entire file directory as a blacklist resource for batch removal.
[0109] Therefore, after the corresponding branches of the blacklist resources in the original interface resources are removed, the valid interface resources can be obtained.
[0110] In step S130, an interface resource check is performed on the valid interface resources to obtain a resource check result, and a resource export process is performed on the valid interface resources according to the resource check result to obtain a target interface resource.
[0111] In an exemplary embodiment of the present disclosure, after obtaining the valid interface resource, an interface resource check may be performed on the valid interface resource.
[0112] In an alternative embodiment, Figure 7 A flow chart of the method for checking interface resources is shown, as Figure 7As shown, the method at least includes the following steps: In step S710, a compliance check is performed on the valid interface resources to obtain a compliance check result.
[0113] In an alternative embodiment, Figure 8 A flow chart showing a method of compliance checking is shown as follows: Figure 8 As shown, the method at least includes the following steps: In step S810, a regular search process is performed on the valid interface resources to obtain a regular search result.
[0114] Use the Svn Hook mechanism to monitor the UI project directory, so as to further check the uploaded UI resources. When checking the compliance of the UI atlas corresponding to the csd file, you can first use the regular method to find all the used png images in the csd file to determine whether the png images in the valid interface resources exist.
[0115] Among them, the hook mechanism of Svn is that when the user is managing the data warehouse, when a specific event occurs, the corresponding hook will be called. The hook is actually equivalent to the processing function of the specific event.
[0116] In step S820, based on the regular search result, the valid interface resources are subjected to a combination condition judgment to obtain a compliance check result.
[0117] When the regular search result shows that the png images in the valid interface resources exist, it can be further determined whether the paths of these png images meet the conditions for forming a combined image. Specifically, it is determined whether the paths of the png images exist in the specified compliance directory to obtain the compliance check result.
[0118] In this exemplary embodiment, by monitoring and judging the effective interface resources, corresponding compliance check results can be obtained as a prerequisite for resource size checking, or as a basis for updating non-compliant images, thereby ensuring the quality of effective interface resources.
[0119] In step S720, based on the compliance check result, a resource size check is performed on the valid interface resources to obtain a resource check result.
[0120] When the compliance check result is that the valid interface resources meet the conditions for forming a combined graph, the resource size check can be directly performed on the valid interface resources.
[0121] However, when the compliance check result is that the valid interface resource does not meet the conditions for forming a combined image, the valid interface resource can be updated for compliance to obtain a compliant interface resource that meets the resource size check. In addition, when the previous regular search result is that the valid interface resource does not pass the regular search process, the valid interface resource can also be updated for compliance.
[0122] In an alternative embodiment, Fig. 9 A flow chart of a method for checking resource size according to compliance check results is shown, Fig. 9 As shown, the method includes at least the following steps: in step S910, when the regular search result is that the valid interface resource fails the regular search processing, or the compliance check result is that the valid interface resource fails the combined image condition judgment, the valid interface resource is subjected to compliance update processing to obtain a compliant interface resource.
[0123] Regardless of whether the previous regular search result is that the valid interface resource fails the regular search processing, or the current compliance check result is that the valid interface resource fails the combined image condition judgment, the valid interface resource can be updated for compliance.
[0124] In an alternative embodiment, Fig.10 A flow chart of a method for compliance update processing is shown, such as Fig.10 As shown, the method at least includes the following steps: in step S1010, if the valid interface resource that has not passed the regular search processing or the combined image condition judgment is a valid image resource, the image resource data is determined according to the valid interface resource.
[0125] When a valid interface resource that has not passed the regular search process or the combined image condition judgment is a valid image resource, the name of the child node can be recursively searched in the csd file until the location of the png image is found, and the non-compliant atlas and corresponding nodes in the csd file, that is, the image resource data, are obtained.
[0126] In step S1020, a picture resource file is generated according to the picture resource data, and a compliance update process is performed on the picture resource file using a compliance picture name corresponding to a valid interface resource to obtain a compliance interface resource.
[0127] Furthermore, a picture resource file may be generated according to the picture resource data. For example, the generated picture resource file may be a csv file.
[0128] Then, you can notify the artist who uploaded the file to make manual modifications. Alternatively, you can also fill in the correct png name in the csv file, that is, the name of the compliant image, and then according to the csd path and the path of the child node, you can automatically replace the correct png image and get the corresponding compliant interface resources.
[0129] In this exemplary embodiment, an automated and intelligent compliance update processing method is provided for valid image resources that fail regular search processing or image combination condition judgment, thereby achieving the effect of quickly modifying image resources to further improve the quality of UI resources.
[0130] In an alternative embodiment, Fig.11 A flowchart of another method for compliance update processing is shown. Fig.11 As shown, the method includes at least the following steps: in step S1110, if the valid interface resource that has not passed the regular search processing or the combined image condition judgment is a valid text resource, the image resource data is determined according to the valid interface resource.
[0131] When the valid interface resource that fails to pass the regular search processing or the combined image condition judgment is a valid text resource, since the valid text resource is also a text resource displayed in the png image, the name of the child node can also be recursively searched in the csd file until the location of the png image is found, and the non-compliant atlas and corresponding nodes in the csd file, that is, the image resource data, are obtained.
[0132] In step S1120, a picture resource file is generated according to the picture resource data, and the picture resource file is updated in compliance with the compliance text information corresponding to the valid interface resource to obtain the compliance interface resource.
[0133] Furthermore, a picture resource file may be generated according to the picture resource data, for example, a csv file may be generated.
[0134] Then, the artist who uploaded the file can be notified to make manual modifications. Or, for non-compliant text, the correct text information, that is, compliant text information, can be filled in, and all csd files containing the non-compliant text can be recursively replaced.
[0135] In this exemplary embodiment, an automated and intelligent compliance update processing method is provided for valid text resources that fail regular search processing or image combination condition judgment, thereby achieving the effect of quickly modifying image resources to further improve the quality of UI resources.
[0136] In step S920, a resource size check is performed on the compliant interface resource to obtain a resource check result.
[0137] Based on the compliance interface resources, you can determine whether the size of the uploaded png image is abnormal and get the resource inspection result.
[0138] Specifically, since all files stored in the computer follow the binary system, the XML file corresponding to the png image in ui.local is parsed to determine whether the width and height are too large and whether they comply with the power of two principle, that is, whether they follow the binary system.
[0139] In this exemplary embodiment, corresponding resource inspection results can be obtained by monitoring effective interface resources, which provides a data basis for the export of effective interface resources and can also clearly grasp the usage and compliance of each UI resource, thereby improving the quality of UI resources.
[0140] It is worth mentioning that when the resource size check is continued directly on the valid interface resources, since the files stored in the computer all follow the binary system, the XML file corresponding to the png image in ui.local is parsed to determine whether the width and height are too large and whether they comply with the power of two principle, that is, whether they follow the binary system.
[0141] Among them, XML file is a markup language used to mark electronic files to make them structured.
[0142] In electronic computers, tags refer to information symbols that can be understood by computers. Through such tags, computers can process various information such as articles. XML files can be used to mark data and define data types. It is a source language that allows users to define their own markup language. XML files are very suitable for World Wide Web transmission, providing a unified method to describe and exchange structured data that is independent of applications or vendors. XML files are cross-platform, content-dependent technologies in the Internet environment, and are also an effective tool for processing distributed structured information today. As early as 1998, W3C released the XML1.0 specification to simplify the transmission of document information on the Internet.
[0143] In an optional embodiment, if the regular search result is that the valid interface resource fails the regular search process, or the compliance check result is that the valid interface resource fails the combined image condition judgment, a check reminder message is generated.
[0144] Fig.12 A schematic diagram of an interface for generating inspection reminder information is shown, such as Fig.12 As shown, when the regular search result is that the effective interface resource does not pass the regular search processing, or the compliance check result is that the effective interface resource does not pass the combined image condition judgment, that is, it does not meet the requirements of the regular search processing or combined image condition judgment, a corresponding message reminder can be issued to prohibit the submission of the resource. In addition, the error path and the person who submitted the error can also be included in the inspection reminder information for the user to view.
[0145] In an optional embodiment, if the resource check result is that the valid interface resource or the compliant interface resource fails the resource size check, a check reminder message is generated.
[0146] Fig.13 Another schematic diagram of the interface for generating inspection reminder information is shown. Fig.13As shown, the check reminder information is generated when the valid interface resources or compliant interface resources do not meet the power-of-two principle, reminding all images with a size exceeding 1024 to prohibit submission of the resource. This way of monitoring UI resources can further improve the effect of UI resources.
[0147] When the resource check result is obtained and the resource check result is that the valid interface resource passes the interface resource check, the corresponding valid interface resource can be exported. Or when the valid interface resource does not meet a certain interface resource check, the corresponding valid interface resource can be automatically corrected to export the corrected valid interface resource.
[0148] Fig.14 A schematic diagram of an interface for automatically modifying a valid interface resource that does not meet the interface resource check is shown, such as Fig.14 As shown, all valid text resources that are not in compliance can be automatically corrected through compliance update processing.
[0149] Specifically, the effective interface resources can be exported into a csb file as the target interface resource for local rapid verification and other applications.
[0150] The resource management method in the embodiment of the present disclosure is described in detail below in conjunction with an application scenario.
[0151] Fig.15 A schematic diagram of the resource management method in an application scenario is shown, such as Fig.15 As shown, in step S1510, the UI project directory is scanned.
[0152] in, Fig.16 The following is a schematic diagram of the interface of the method of scanning the project directory in the application scenario, such as Fig.16 As shown, the warehouse resources are all the original resources in the original project directory. The warehouse resources can include the resources currently used in the game, as well as abandoned or stranded resources, so a tool is needed to automatically count them.
[0153] Get the original image resources and reference resource files in the original interface resources, and perform regular expression parsing on the reference resource files to obtain the reference image resources.
[0154] All original UI resources, i.e. original interface resources, can be obtained by scanning the project directory. Specifically, by analyzing the csd file, it can be found which png images and plist files are referenced. That is, the original interface resources can include plist resources, i.e. reference resource files, and png images, i.e. original image resources. In addition, the original interface resources can also include csd resources or other resources, which are not specifically limited in this exemplary embodiment.
[0155] In step S1520, the association relationship and usage status of each UI resource are obtained.
[0156] The csd file has a PropertyGroup attribute, the type attribute indicates whether it is a root node or a leaf node, and the FileDat attribute indicates which png images or plist files the csd file references.
[0157] By recursively parsing each csd file, you can get the relationship between the leaf nodes and the root nodes in the current directory, get the png image corresponding to each csd, and save it as a csv file.
[0158] Find the referenced plist file from each leaf node and root node, and then parse the referenced plist file from the ExportJson file to obtain all the used plist files.
[0159] The plist file contains a key containing "textureFileName" that corresponds to the referenced texture file. Based on these plist files used, the regular expression method is used to parse and find the referenced png images, that is, the referenced image resources.
[0160] Scan the png images referenced in the program script, that is, scan the image resources, and you can get all the used png images. In addition, the original image resources, referenced image resources, and scanned image resources can be used to determine the interface image resources corresponding to the original interface resources, that is, the sources of the interface image resources are three aspects. In this way, you can get the relationship between all UI resources in the UI project directory and the used UI resources, as well as the relationship between the root and leaf nodes corresponding to the csd resources.
[0161] In step S1530, the blacklist mechanism controls the incoming packets of UI resources.
[0162] After obtaining the interface image resources, a blacklist configuration may be performed on the original interface resources and the interface image resources to obtain corresponding blacklist resources.
[0163] According to the relationship between all original interface resources and used interface image resources, the abandoned and shelved resources, i.e., blacklist resources, can be determined. Specifically, all original interface resources can be used to subtract the used interface image resources to obtain the corresponding blacklist resources.
[0164] Among them, all unused UI resources can be recorded. Further combined with the png image information corresponding to the csd file, it can be clear which resources cannot be played externally, and these UI resources are determined to form a corresponding blacklist directory to include the blacklist resources.
[0165] The original interface resources are processed for resource elimination according to the elimination identifier of the blacklist resource to obtain the valid interface resources.
[0166] Fig.17 The following is a schematic diagram showing an interface of a method for resource removal processing in an application scenario, such as Fig.17 As shown, after obtaining the blacklist resource including the list of discarded resources, the artist can choose which ones to keep and which ones to discard, so as to generate corresponding controllable discarding marks for the blacklist resources.
[0167] In order not to affect the development of the trunk branch, the original interface resources can be removed through the skip method.
[0168] Specifically, the removal flags of the blacklist resources may include: a single removal flag and an invalid removal flag.
[0169] For example, the single-piece deletion mark may be 2, and the invalid rejection mark may be 1. In addition, the single-piece rejection mark and the invalid rejection mark may also be other mark forms, which are not particularly limited in this exemplary embodiment.
[0170] Specifically, when skip is 1, it means that the blacklist resource in the original interface resource will be removed from both the trunk branch and the release branch; and when skip is 2, it means that the blacklist resource in the original interface resource will only be removed on the release branch, so as to achieve the purpose of dynamic version control development. In this interface, you can select a single resource file as a blacklist resource to be removed, or you can determine the entire file directory as a blacklist resource for batch removal.
[0171] Therefore, after the corresponding branches of the blacklist resources in the original interface resources are removed, the valid interface resources can be obtained.
[0172] In step S1540 , the submitted UI resources are monitored.
[0173] Fig.18 The following is a schematic diagram of the interface of the compliance checking method in the application scenario, such as Fig.18 As shown in the figure, the compliance check will analyze the non-compliant nodes of the csd file in the current project for modification. At the same time, it will also monitor the newly uploaded resources and remind you when they are non-compliant.
[0174] An interface resource check is performed on the valid interface resources to obtain a resource check result, and a resource export process is performed on the valid interface resources according to the resource check result to obtain a target interface resource.
[0175] Use the Svn Hook mechanism to monitor the UI project directory, so as to further check the uploaded UI resources. When checking the compliance of the UI atlas corresponding to the csd file, you can first use the regular method to find all the used png images in the csd file to determine whether the png images in the valid interface resources exist.
[0176] When the regular search result shows that the png images in the valid interface resources exist, it can be further determined whether the paths of these png images meet the conditions for forming a combined image. Specifically, it is determined whether the paths of the png images exist in the specified compliance directory to obtain the compliance check result.
[0177] When the compliance check result is that the valid interface resources meet the conditions for forming a combined graph, the resource size check can be directly performed on the valid interface resources.
[0178] In step S1550 , non-compliant UI resources are dynamically modified.
[0179] When the compliance check result is that the valid interface resource does not meet the conditions for forming a combined image, the valid interface resource can be updated for compliance to obtain a compliant interface resource that meets the resource size check. In addition, when the previous regular search result is that the valid interface resource does not pass the regular search process, the valid interface resource can also be updated for compliance.
[0180] When the regular search result is that the valid interface resource fails the regular search processing, or the compliance check result is that the valid interface resource fails the combined image condition judgment, the valid interface resource is updated for compliance processing to obtain a compliant interface resource.
[0181] Regardless of whether the previous regular search result is that the valid interface resource fails the regular search processing, or the current compliance check result is that the valid interface resource fails the combined image condition judgment, the valid interface resource can be updated for compliance.
[0182] If the valid interface resource that fails to pass the regular search process or the combined image condition judgment is a valid image resource, the image resource data is determined based on the valid interface resource.
[0183] When a valid interface resource that has not passed the regular search process or the combined image condition judgment is a valid image resource, the name of the child node can be recursively searched in the csd file until the location of the png image is found, and the non-compliant atlas and corresponding nodes in the csd file, that is, the image resource data, are obtained.
[0184] Generate a picture resource file according to the picture resource data, and perform compliance update processing on the picture resource file using the compliance picture name corresponding to the valid interface resource to obtain the compliance interface resource.
[0185] Furthermore, a picture resource file may be generated according to the picture resource data, for example, a csv file may be generated.
[0186] Then, you can notify the artist who uploaded the file to make manual modifications. Alternatively, you can also fill in the correct png name in the csv file, that is, the name of the compliant image, and then according to the csd path and the path of the child node, you can automatically replace the correct png image and get the corresponding compliant interface resources.
[0187] If the valid interface resource that fails to pass the regular search process or the combined image condition judgment is a valid text resource, the image resource data is determined based on the valid interface resource.
[0188] When the valid interface resource that fails to pass the regular search processing or the combined image condition judgment is a valid text resource, since the valid text resource is also a text resource displayed in the png image, the name of the child node can also be recursively searched in the csd file until the location of the png image is found, and the non-compliant atlas and corresponding nodes in the csd file, that is, the image resource data, are obtained.
[0189] A picture resource file is generated according to the picture resource data, and the picture resource file is updated in compliance with the compliance text information corresponding to the valid interface resource to obtain the compliance interface resource.
[0190] Fig.19 The following is a schematic diagram showing an interface of a method for processing compliance updates in an application scenario, such as Fig.19 As shown, the information of the root and leaf nodes can be obtained in the csd resource, and then each root and leaf node has a corresponding csd file. Each csd file will reference some png images and tell which nodes are referencing them.
[0191] These png images may be referenced by multiple csd files. If they are modified manually, omissions may occur. Therefore, using this tool, you only need to enter the text that needs to be changed, and it will be automatically replaced. It is convenient and quick. Furthermore, you can also generate image resource files based on the image resource data. For example, you can generate csv files.
[0192] Then, the artist who uploaded the file can be notified to make manual modifications. Or, for non-compliant text, the correct text information, that is, compliant text information, can be filled in, and all csd files containing the non-compliant text can be recursively replaced.
[0193] Fig. 20 The following is a schematic diagram showing an interface of a method for checking resource size in an application scenario. Fig. 20 As shown, the resource size check can be to retrieve the UI textures that already exist in the current warehouse to view information such as size and style.
[0194] The resource size is checked for the compliant interface resources to obtain the resource check result.
[0195] Based on the compliance interface resources, you can determine whether the size of the uploaded png image is abnormal and get the resource inspection result.
[0196] Specifically, since all files stored in the computer follow the binary system, the XML file corresponding to the png image in ui.local is parsed to determine whether the width and height are too large and whether they comply with the power of two principle, that is, whether they follow the binary system.
[0197] When the resource size check is continued directly for the valid interface resources, specifically, since the files stored in the computer all follow the binary system, the XML file corresponding to the png image in ui.local is parsed to determine whether the width and height are too large and whether they comply with the power of two principle, that is, whether they follow the binary system.
[0198] When the regular search result is that the effective interface resource fails to pass the regular search process, or the compliance check result is that the effective interface resource fails to pass the combined image condition judgment, that is, it does not meet the requirements of the regular search process or the combined image condition judgment, a corresponding message reminder can be issued. In addition, the error path and the person who submitted the error can also be included in the inspection reminder information for the user to view.
[0199] If the resource check result is that the valid interface resource or the compliant interface resource fails the resource size check, a check reminder message may also be generated.
[0200] This check reminder is generated when the valid interface resources or compliant interface resources do not meet the power-of-two principle, reminding all images that exceed the size requirement of 1024. This way of monitoring UI resources can further improve the effect of UI resources.
[0201] When the resource check result is obtained and the resource check result is that the valid interface resource passes the interface resource check, the corresponding valid interface resource can be exported. Or when the valid interface resource does not meet a certain interface resource check, the corresponding valid interface resource can be automatically corrected to export the corrected valid interface resource.
[0202] Fig.21 The following is a schematic diagram showing an interface of a method for resource export processing in an application scenario. Fig.21 As shown, in order to quickly verify the effect of the replacement or the modified csd file, you can click the local import UI, and the modified csd file will be quickly exported to a csb file.
[0203] Fig. 22 The following is a schematic diagram of the interface after resource export processing is completed in the application scenario. Fig. 22 As shown in the figure, when the modified csd file is exported to a csb file, the effect can be viewed in the game client. In addition, a reminder message "Local UI export successful, please enter the game to view the effect" will be generated to remind the user.
[0204] In step S1560, dynamic patch control is implemented.
[0205] The UI resource management method using steps S1510-S1550 can obtain a clear UI resource relationship. By searching for abandoned resources and shelved resources and setting a blacklist mechanism, the quality of UI resources can be flexibly controlled, thereby improving the quality of UI resources without affecting the development rhythm of the trunk branch. In addition, non-compliant resources can be separated out through the normal patching process, effectively reducing the size of the patch and further optimizing the player's gaming experience.
[0206] In the exemplary embodiment of the present disclosure, the resource management method performs resource elimination processing according to the blacklist resources configured in the blacklist, effectively controls the size of the target interface resources, automatically and intelligently deletes the abandoned resources or shelved resources, avoids the occurrence of accidental deletion or omission, and can also dynamically control the development speed of different branches. Furthermore, the interface resource check is performed on the effective interface resources, the association relationship of the interface resources is clearly grasped, the generation and submission of the interface resources are monitored in real time, the generation of the target interface resources is flexibly controlled, and the quality of the generated target interface resources is improved.
[0207] In addition, in an exemplary embodiment of the present disclosure, a resource management device is also provided. Fig.23 A schematic diagram of the structure of the resource management device is shown in FIG. Fig.23As shown, the resource management device 2300 may include: a list configuration module 2310, a resource elimination module 2320 and a check management module 2330. Among them:
[0208] The list configuration module 2310 is configured to obtain the original interface resources and the interface image resources corresponding to the original interface resources, and perform blacklist configuration on the original interface resources and the interface image resources to obtain the blacklist resources; the resource elimination module 2320 is configured to perform resource elimination processing on the original interface resources according to the elimination identifier of the blacklist resources to obtain the valid interface resources; the inspection management module 2330 is configured to perform interface resource inspection on the valid interface resources to obtain the resource inspection results, and perform resource export processing on the valid interface resources according to the resource inspection results to obtain the target interface resources.
[0209] In an exemplary embodiment of the present invention, the acquiring of the original interface resource and the interface image resource corresponding to the original interface resource includes:
[0210] Obtaining original image resources and reference resource files in the original interface resources, and performing regular expression parsing on the reference resource files to obtain reference image resources;
[0211] A scanned image resource is obtained, and the original image resource, the referenced image resource, and the scanned image resource are determined to be interface image resources corresponding to the original interface resource.
[0212] In an exemplary embodiment of the present invention, the removal flag of the blacklist resource includes: a single removal flag and an invalid removal flag.
[0213] In an exemplary embodiment of the present invention, the performing an interface resource check on the valid interface resource to obtain a resource check result includes:
[0214] Performing a compliance check on the valid interface resource to obtain a compliance check result;
[0215] Based on the compliance check result, a resource size check is performed on the valid interface resource to obtain a resource check result.
[0216] In an exemplary embodiment of the present invention, the step of performing a compliance check on the valid interface resource to obtain a compliance check result includes:
[0217] Performing regular search processing on the valid interface resources to obtain regular search results;
[0218] Based on the regular search result, the valid interface resource is subjected to a combination condition judgment to obtain a compliance check result.
[0219] In an exemplary embodiment of the present invention, the performing resource size check on the valid interface resource based on the compliance check result to obtain a resource check result includes:
[0220] When the regular search result is that the valid interface resource fails to pass the regular search process, or the compliance check result is that the valid interface resource fails to pass the combined image condition judgment, a compliance update process is performed on the valid interface resource to obtain a compliant interface resource;
[0221] A resource size check is performed on the compliant interface resource to obtain a resource check result.
[0222] In an exemplary embodiment of the present invention, the step of performing compliance update processing on the valid interface resource to obtain the compliant interface resource includes:
[0223] If the valid interface resource that has not passed the regular search process or the combined image condition is a valid image resource, determining image resource data according to the valid interface resource;
[0224] A picture resource file is generated according to the picture resource data, and a compliance update process is performed on the picture resource file using a compliance picture name corresponding to the valid interface resource to obtain a compliance interface resource.
[0225] In an exemplary embodiment of the present invention, the step of performing compliance update processing on the valid interface resource to obtain the compliant interface resource includes:
[0226] If the valid interface resource that fails to pass the regular search process or the combined image condition judgment is a valid text resource, determining the image resource data according to the valid interface resource;
[0227] A picture resource file is generated according to the picture resource data, and compliance updating processing is performed on the picture resource file using compliance text information corresponding to the valid interface resource to obtain a compliance interface resource.
[0228] In an exemplary embodiment of the present invention, the device further comprises:
[0229] If the regular search result is that the valid interface resource fails to pass the regular search process, or the compliance check result is that the valid interface resource fails to pass the combination condition judgment, a check reminder message is generated.
[0230] In an exemplary embodiment of the present invention, the device further comprises:
[0231] If the resource check result is that the valid interface resource or the compliant interface resource fails the resource size check, a check reminder message is generated.
[0232] The specific details of the above-mentioned resource management device 2300 have been described in detail in the corresponding resource management method, so they will not be repeated here.
[0233] It should be noted that, although several modules or units of the resource management device 2300 are mentioned in the above detailed description, such division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0234] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0235] Refer to the following Fig.24 2400 according to this embodiment of the present invention is described. Fig.24 The electronic device 2400 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0236] like Fig.24 As shown, the electronic device 2400 is in the form of a general computing device. The components of the electronic device 2400 may include, but are not limited to: the at least one processing unit 2410, the at least one storage unit 2420, a bus 2430 connecting different system components (including the storage unit 2420 and the processing unit 2410), and a display unit 2440.
[0237] The storage unit stores program codes, which can be executed by the processing unit 2410, so that the processing unit 2410 executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0238] The storage unit 2420 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 2421 and / or a cache storage unit 2422 , and may further include a read-only storage unit (ROM) 2423 .
[0239] The storage unit 2420 may also include a program / utility 2424 having a set (at least one) of program modules 2425, such program modules 2425 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0240] Bus 2430 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0241] The electronic device 2400 may also communicate with one or more external devices 2600 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 2400, and / or communicate with any device that enables the electronic device 2400 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 2450. In addition, the electronic device 2400 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 2460. As shown, the network adapter 2440 communicates with other modules of the electronic device 2400 via a bus 2430. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 2400, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0242] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0243] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0244] refer to Fig.25As shown, a program product 2500 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0245] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0246] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0247] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0248] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0249] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
Claims
1. A resource management method, characterized in that: The method comprises: Acquire an original interface resource and an interface image resource corresponding to the original interface resource, and perform blacklist configuration on the original interface resource and the interface image resource to obtain a blacklist resource; Perform resource elimination processing on the original interface resource according to the elimination identifier of the blacklist resource to obtain a valid interface resource; Performing an interface resource check on the valid interface resource to obtain a resource check result, and performing resource export processing on the valid interface resource according to the resource check result to obtain a target interface resource; The obtaining of the original interface resource and the interface image resource corresponding to the original interface resource comprises: obtaining the original image resource and the reference resource file in the original interface resource, and performing regular expression parsing on the reference resource file to obtain the reference image resource; obtaining the scanned image resource, and determining that the original image resource, the reference image resource and the scanned image resource are the interface image resources corresponding to the original interface resource; Among them, the performing an interface resource check on the valid interface resources to obtain a resource check result includes: performing a compliance check on the valid interface resources to obtain a compliance check result; and based on the compliance check result, performing a resource size check on the valid interface resources to obtain a resource check result.
2. The resource management method according to claim 1, characterized in that: The removal flags of the blacklist resources include: a single removal flag and an invalid removal flag.
3. The resource management method according to claim 1, characterized in that: The performing compliance check on the valid interface resource to obtain a compliance check result includes: Performing regular search processing on the valid interface resources to obtain regular search results; Based on the regular search result, the valid interface resource is subjected to a combination condition judgment to obtain a compliance check result.
4. The resource management method according to claim 3, characterized in that: The performing resource size check on the valid interface resource based on the compliance check result to obtain a resource check result includes: When the regular search result is that the valid interface resource fails to pass the regular search process, or the compliance check result is that the valid interface resource fails to pass the combined image condition judgment, a compliance update process is performed on the valid interface resource to obtain a compliant interface resource; A resource size check is performed on the compliant interface resource to obtain a resource check result.
5. The resource management method according to claim 4, characterized in that: The step of performing compliance updating processing on the valid interface resource to obtain the compliance interface resource includes: If the valid interface resource that has not passed the regular search process or the combined image condition is a valid image resource, determining image resource data according to the valid interface resource; A picture resource file is generated according to the picture resource data, and a compliance update process is performed on the picture resource file using a compliance picture name corresponding to the valid interface resource to obtain a compliance interface resource.
6. The resource management method according to claim 4, characterized in that: The step of performing compliance updating processing on the valid interface resource to obtain the compliance interface resource includes: If the valid interface resource that fails to pass the regular search process or the combined image condition judgment is a valid text resource, determining the image resource data according to the valid interface resource; A picture resource file is generated according to the picture resource data, and compliance updating processing is performed on the picture resource file using compliance text information corresponding to the valid interface resource to obtain a compliance interface resource.
7. The resource management method according to claim 4, characterized in that: The method further comprises: If the regular search result is that the valid interface resource fails to pass the regular search process, or the compliance check result is that the valid interface resource fails to pass the combination condition judgment, a check reminder message is generated.
8. The resource management method according to claim 4, characterized in that: The method further comprises: If the resource check result is that the valid interface resource or the compliant interface resource fails the resource size check, a check reminder message is generated.
9. A resource management device, characterized in that: include: A list configuration module is configured to obtain an original interface resource and an interface image resource corresponding to the original interface resource, and perform a blacklist configuration on the original interface resource and the interface image resource to obtain a blacklist resource; A resource elimination module is configured to perform resource elimination processing on the original interface resource according to the elimination identifier of the blacklist resource to obtain a valid interface resource; The inspection management module is configured to perform an interface resource inspection on the valid interface resource to obtain a resource inspection result, and perform resource export processing on the valid interface resource according to the resource inspection result to obtain a target interface resource; The obtaining of the original interface resource and the interface image resource corresponding to the original interface resource comprises: obtaining the original image resource and the reference resource file in the original interface resource, and performing regular expression parsing on the reference resource file to obtain the reference image resource; obtaining the scanned image resource, and determining that the original image resource, the reference image resource and the scanned image resource are the interface image resources corresponding to the original interface resource; Among them, the performing an interface resource check on the valid interface resources to obtain a resource check result includes: performing a compliance check on the valid interface resources to obtain a compliance check result; and based on the compliance check result, performing a resource size check on the valid interface resources to obtain a resource check result.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the resource management method described in any one of claims 1 to 8 is implemented.
11. An electronic device, characterized in that: include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to execute the resource management method according to any one of claims 1 to 8 by executing the executable instructions.
Citation Information
Patent Citations
Block chain-based blacklist sharing method, device and equipment and storage medium
CN109669986A
Resource management system of IAM platform
CN111966977A
Resource management method and device, storage medium and electronic equipment
CN112870724A
Method and device for processing graphical interface resources, electronic equipment and storage medium
CN113144618A
Prefix Domain Matching for Anti-Phishing Pattern Matching
US20100154055A1
