Resource file updating method and apparatus, storage medium, and terminal device

By analyzing, judging, and locking abnormal directories before resource file updates, the problem of product update interruption and crash caused by abnormal resource files was solved, and the stability of the development process and accountability were achieved.

CN114594979BActive Publication Date: 2025-11-21NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210239502.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-11
Publication Date
2025-11-21
Estimated Expiration
2042-03-11

AI Technical Summary

Technical Problem

In internet development projects, abnormal resource files can cause product update operations to be interrupted or crash. Existing technologies are unable to effectively handle abnormal resource files, affecting the development pace and product stability.

Method used

By analyzing and identifying abnormal directories before resource file updates, locking down abnormal directories and skipping their update operations, we ensure that normal resource files are updated to the latest version and avoid the impact of abnormal directories.

Benefits of technology

This effectively prevents product crashes caused by abnormal resource files, maintains the stability and efficiency of the development process, and promptly identifies the responsible party and reminds them to fix the abnormal issues.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114594979B_ABST
    Figure CN114594979B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a resource file updating method and device, a storage medium and a terminal device. The method comprises: obtaining an updating resource file used for updating a target system; if there is an abnormal file in the updating resource file, determining an abnormal directory in the abnormal file; searching for a target directory corresponding to the abnormal directory in an original resource file currently used by the target system; and performing a resource file updating operation on the original resource file based on the updating resource file, while skipping the resource file updating operation on the resource file under the target directory. Embodiments of the present application analyze the minimum range of the current abnormal resource, and lock the minimum range in the current correct version on the basis of normally updating the latest resource, and the remaining normal resource can be updated to the latest version.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of electronic communication, in particular to the technical field of data updating, and particularly relates to a resource file updating method and device, a storage medium and a terminal device. BACKGROUND

[0002] In the process of Internet development project, the support of resource files is indispensable. Resource files are the core content of product display and performance. Small to a button map, large to a grand 3D game scene, all belong to resource files. Once the resource files have non-standard conditions in the production process, it will bring certain negative impact to the development project. Small impact may cause product error, and large impact may even cause product crash. Therefore, the standardization of resource files is one of the most important factors in the project development process. In order to ensure the standardization of resources, project developers usually perform resource checking on resource files. The checking rules are summarized through experience accumulation in the project development process. Through checking, it can be found whether there is an abnormal problem in the resource file and a warning is given to notify the project developer to handle and repair the problem in time, so as to avoid negative impact and slow down or even block the project development rhythm.

[0003] However, in the actual team development process, it is difficult to avoid the production problems of resource files. Generally, when a product obtains a resource update data package of a certain version to update the product, the product will update the original resource files in order according to the predetermined order. If there is no abnormal problem in the files in the resource update data package, the product update operation will proceed smoothly. If there is an abnormal problem in a file in the resource update data package, the product update operation will be interrupted and an error will be reported, which will affect the subsequent file update. However, if the abnormal file is insisted to be updated, the product will crash. That is, it is not advisable to stop updating the resource or to insist on updating the error resource. SUMMARY

[0004] The embodiment of the present application provides a resource file updating method, device, medium and equipment, which analyzes and judges the updating resource file in advance before updating the target system, determines whether the new updating resource file is abnormal in advance, finds out the abnormal directory causing the abnormal updating resource file, finds and locks the target directory corresponding to the abnormal directory in the original resource file currently used by the target system, and skips the resource file updating operation under the target directory when the original resource file is updated based on the updating resource file. That is, the minimum range of the current abnormal resource is analyzed, and on the basis of normally updating the latest resource, the minimum range is locked in the current correct version, and the remaining normal resource can be updated to the latest version.

[0005] The embodiment of the present application provides a resource file updating method, device, medium and equipment, which analyzes and judges the updating resource file in advance before updating the target system, determines whether the new updating resource file is abnormal in advance, finds out the abnormal directory causing the abnormal updating resource file, finds and locks the target directory corresponding to the abnormal directory in the original resource file currently used by the target system, and skips the resource file updating operation under the target directory when the original resource file is updated based on the updating resource file. That is, the minimum range of the current abnormal resource is analyzed, and on the basis of normally updating the latest resource, the minimum range is locked in the current correct version, and the remaining normal resource can be updated to the latest version.

[0006] Obtains the updating resource file used for updating the target system;

[0007] If the updating resource file has an abnormal file, the abnormal directory in the abnormal file is determined.

[0008] The target directory corresponding to the abnormal directory is found in the original resource file currently used by the target system.

[0009] The original resource file is updated based on the updating resource file, and the resource file updating operation under the target directory is skipped.

[0010] In the resource file updating method provided by the embodiment of the present application, the updating resource file comprises version information, target resource data and directory attribute information contained in the target resource data.

[0011] The version information is used to indicate the version number of the updating resource file and whether the updating resource file has an abnormal file.

[0012] The target resource data is used to provide resources required by data updating operation.

[0013] The directory attribute information is used to indicate whether the directory contained in the target resource data is abnormal.

[0014] In the resource file updating method provided by the embodiment of the present application, the method further comprises:

[0015] The directory attribute information is used to indicate whether the directory contained in the target resource data is abnormal.

[0016] In the resource file updating method provided by the embodiment of the present application, the method further comprises:

[0017] receiving a file submission request, obtaining target resource data carried by the file submission request;

[0018] analyzing and judging the eligibility of the target resource data, and adding corresponding version information to each of the target resource data according to the judgment result.

[0019] In the resource file updating method provided in the embodiments of the present application, after the analysis and judgment of the eligibility of the target resource data, the method further comprises:

[0020] when the judgment result corresponding to the target resource data is that the target resource data contains an abnormal file, obtaining a file submitter corresponding to the target resource data;

[0021] determining the number of occurrences of the same abnormal file from the file submission record, and taking the file submitter corresponding to the first occurrence of the abnormal file in the file submission process as a target submitter;

[0022] generating a reminder information containing the target submitter;

[0023] recording the reminder information to a database.

[0024] In the resource file updating method provided in the embodiments of the present application, after the judgment result corresponding to the target resource data is that the target resource data contains an abnormal file, the method further comprises:

[0025] obtaining a first directory in the target resource data, the first directory being used to indicate a directory directly causing the abnormality of the updated resource file;

[0026] The determination of the abnormal directory in the abnormal file comprises:

[0027] determining the first directory as the abnormal directory.

[0028] In the resource file updating method provided in the embodiments of the present application, after the judgment result corresponding to the target resource data is that the target resource data contains an abnormal file, the method further comprises:

[0029] judging whether a second directory having an association relationship exists in the context of the first directory;

[0030] when the second directory exists in the context of the first directory, determining the first directory and the second directory as the abnormal directory.

[0031] Correspondingly, the embodiments of the present application also provide a resource file updating device, which comprises:

[0032] a first obtaining module, configured to obtain an updated resource file used for updating a target system;

[0033] an exception determination module configured to determine an exception directory in the exception file if the exception file exists in the update resource file;

[0034] a target searching module configured to search for a target directory corresponding to the exception directory in an original resource file currently used by the target system;

[0035] a resource updating module configured to perform a resource file updating operation on the original resource file based on the update resource file, while skipping the resource file updating operation on the resource file under the target directory.

[0036] Correspondingly, another aspect of the present application also provides a computer readable storage medium, which stores a plurality of instructions, and the instructions are suitable for being loaded by a processor to execute the resource file updating method.

[0037] Correspondingly, another aspect of the present application also provides a terminal device, which comprises a processor and a memory, and the memory stores a plurality of instructions, and the processor loads the instructions to execute the resource file updating method.

[0038] The present application provides a resource file updating method, device, storage medium and terminal device. The method comprises the following steps: acquiring an update resource file used for updating a target system; determining an exception directory in an exception file if the exception file exists in the update resource file; searching for a target directory corresponding to the exception directory in an original resource file currently used by the target system; and performing a resource file updating operation on the original resource file based on the update resource file, while skipping the resource file updating operation on the resource file under the target directory. The present application determines whether the update resource file is abnormal in advance by analyzing and judging the update resource file before performing the resource file updating operation on the target system, finds out the exception directory causing the abnormality of the update resource file, searches for the target directory corresponding to the exception directory in the original resource file currently used by the target system and locks the target directory, so that the resource file updating operation on the original resource file based on the update resource file skips the resource file updating operation on the resource file under the target directory. That is, the smallest range of the current abnormal resource is analyzed, and on the basis of normally updating the latest resource, the smallest range is locked in the current correct version, and the remaining normal resource can be updated to the latest version. BRIEF DESCRIPTION OF DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained from these drawings without creative labor.

[0040] Figure 1 The flowchart of the resource file updating method provided by the embodiments of the present application is shown.

[0041] Figure 2 Another flowchart of the resource file updating method provided by the embodiments of the present application is shown.

[0042] Figure 3 Another flowchart of the resource file updating method provided by the embodiments of the present application is shown.

[0043] Figure 4 Another flowchart of the resource file updating method provided by the embodiments of the present application is shown.

[0044] Figure 5 Another flowchart of the resource file updating method provided by the embodiments of the present application is shown.

[0045] Figure 6 The structural diagram of the resource file updating device provided by the embodiments of the present application is shown.

[0046] Figure 7 Another structural diagram of the resource file updating device provided by the embodiments of the present application is shown.

[0047] Figure 8 The structural diagram of the terminal device provided by the embodiments of the present application is shown. DETAILED DESCRIPTION

[0048] The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only some embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor are within the protection scope of the present application.

[0049] The embodiments of the present application provide a resource file updating method, which can be applied to a terminal device. The terminal device can be a smart phone, a tablet computer or the like.

[0050] Since it is difficult to avoid the problem of resource file production in the actual team development process, when a product obtains a version of resource update data packet to update the product, the product will update the original resource file in order according to the predetermined order. If there is no abnormal problem in the files in the resource update data packet, the product update operation will proceed smoothly. If there is an abnormal problem in a file in the resource update data packet, an error will be reported in the product update, the product update operation will be interrupted, the subsequent file update will be affected, and the product will be crashed if the abnormal file is still updated. Stopping updating the resource or still updating the error resource is not desirable behavior.

[0051] To solve the above technical problems, the embodiment of the present application provides a resource file updating method. By using the resource file updating method provided by the embodiment of the present application, the updating resource file can be analyzed and judged in advance before updating the target system, it is determined in advance whether the updating resource file is abnormal, the abnormal directory causing the abnormal updating resource file is found out, the target directory corresponding to the abnormal directory in the original resource file currently used by the target system is found out and locked, and the resource file updating operation based on the updating resource file on the original resource file is skipped. That is, the minimum range of the current abnormal resource is analyzed, and on the basis of normally updating the latest resource, the minimum range is locked in the current correct version, and the remaining normal resource can be updated to the latest version.

[0052] Please refer to Figure 1 , Figure 1 The flowchart of the resource file updating method provided by the embodiment of the present application is shown. The resource file updating method is applied in a terminal device, and the method can include the following steps:

[0053] Step 101, obtaining an updating resource file used for updating a target system.

[0054] It should be noted that the support of resource files is indispensable in the process of Internet development project, and the resource files are the core content of the entire product display and performance. Small to a button map, large to a grand 3D game scene, all belong to resource files. Once the resource files have non-standard conditions in the production process, it will bring certain negative impact to the development project. Small impact may cause product error, and large impact may even cause product crash. Therefore, the standardization of resource files is one of the most important factors in the project development process. In order to ensure the standardization of resources, the project developers usually check the resource files. The checking rules are summarized through experience accumulation in the project development process. Through checking, it can be found whether there is an abnormal problem in the resource files and give an early warning to notify the project developers to handle and repair the problem in time, so as to avoid negative impact and slow down the project development pace or even block the project development.

[0055] However, in the actual team development process, it is difficult to avoid the production problems of resource files. Generally, when a product obtains a resource update data packet of a certain version to update the product, it will update the original resource files in use in order according to the predetermined order. If there is no abnormal problem in the files in the resource update data packet, the product update operation will proceed smoothly. If there is an abnormal problem in a file in the resource update data packet, the product update operation will be interrupted, the subsequent file update will be affected, and the product will be crashed if the abnormal file is insisted to be updated. That is, it is not desirable to stop updating resources or insist on updating error resources.

[0056] In order to solve the above problems, the present scheme analyzes and judges the update resource files in advance before updating the resource files of the target system, determines whether the update resource files have abnormalities in advance, finds out the abnormal directories that cause the update resource files to be abnormal, and locks the target directories corresponding to the abnormal directories in the original resource files currently used by the target system. When the resource file updating operation is performed on the original resource files based on the update resource files, the resource file updating operation on the resource files under the target directories is skipped. That is, the minimum range of the current abnormal resource is analyzed, and on the basis of normally updating the latest resource, the minimum range is locked in the current correct version, and the remaining normal resources can be updated to the latest version.

[0057] In the embodiment, based on the method provided by the present scheme, the abnormal resource files are analyzed and the abnormal resource files are locked in the correct version, so that the subsequent resource files can be updated to the latest version, and the problem of the product being crashed due to the abnormal resource files is solved. Figure 2As shown, the user can issue a resource update request from the database storing the updated resource file through a preset control on the terminal device, the development team will uniformly put the resource into the server (remote) warehouse for maintenance and management, the resource maker submits to the warehouse, and the resource user pulls from the warehouse, wherein the pulling process can be simply referred to as resource updating.

[0058] After the terminal device receives the data acquisition request issued by the user, it can confirm whether the acquirer has the data acquisition permission according to the permission, and send the latest version of the updated resource file pre-stored in the database to the terminal device where the user is located after confirming that the acquirer has the data acquisition permission.

[0059] It should be noted that the updated resource file mentioned in the present scheme specifically includes version information, target resource data, and directory attribute information contained in the target resource data.

[0060] The version information is used to indicate the version number of the updated resource file and whether there is an abnormal file in the updated resource file; for example, when the updated resource file passes the check, the version number of this submission is stored in the database, which is temporarily recorded as Vn; when the updated resource file does not pass the check, the version number of this submission and the path error information output by the check are also stored in the database, which is temporarily recorded as the version number Vwn.

[0061] The target resource data is used to provide resources required for data update operation, which is not limited here.

[0062] The directory attribute information W is used to indicate whether the directory contained in the target resource data is abnormal, which can be distinguished by text identification or other forms.

[0063] It should be noted that the updated resource file stored in the above database is saved in the database by the development personnel at regular intervals, and when the terminal device receives the file submission request, the target resource data carried by the file submission request is first acquired, the eligibility of the target resource data is analyzed and judged, and corresponding version information is added to each target resource data according to the judgment result. The target resource data triggers the resource check after being submitted, which belongs to an automatic process, which can be triggered by the hook function of version management or the schedule (table) function of regular check, so as to ensure that the check can intervene in the first time and ensure the timeliness of the subsequent process.

[0064] The hook function is also called hook function. Before the system calls the function, the hook program captures the message first, and the hook function gets the control right first. At this time, the hook function can process (change) the execution behavior of the function, and can also forcibly end the transmission of the message. Simply put, it is to pull out the program of the system and become our own code fragment.

[0065] Resource check: to ensure the correctness of the resource, to summarize the relevant rules, to apply rules to resources one by one using scripts or external tools, and to obtain the conclusion of whether the resource meets the rules. The whole process can be called resource check.

[0066] In some embodiments, after the analysis determines the eligibility of the target resource data, the method further comprises:

[0067] When the judgment result corresponding to the target resource data is that it contains an abnormal file, the file submitter corresponding to the target resource data is obtained;

[0068] The number of occurrences of the same abnormal file is determined from the file submission record, and the file submitter corresponding to the first occurrence of the abnormal file in the file submission process is taken as the target submitter;

[0069] Generate a reminder message containing the target submitter;

[0070] Record the reminder message to the database.

[0071] In this embodiment, the above-mentioned update resource file production problem is a common situation in daily production process. Through the above measures, the update of the project development resource file can be maintained in a relatively smooth state, but the subsequent problem update resource file repair is also an important content. The core content of problem resource repair is efficient and accurate. The production level of resource author is an influencing factor, but it is not related to the present scheme, so it is not described in detail. The remaining factors can be improved through system and process.

[0072] Under normal circumstances, if an update resource file problem occurs after submission, the file submitter A can be taken as the responsible person to urge him to repair the problem, but in actual production process, the submission frequency is uncontrollable, and multiple submissions may occur in a short time. If these submission actions all have update resource file abnormal problems, and the abnormal contents overlap, it is difficult to locate the responsible person. Generally, the problem responsible person can be located according to the submitter, but if multiple people submit and the errors appear similar or even cross combination, it is difficult to clearly locate the problem responsible person, which will delay the problem repair progress.

[0073] The present scheme can decouple the error content (i.e. abnormal directory) by introducing an error content analysis link, and correspond to the submitter one by one. The specific implementation also depends on the directory attribute information recorded in the database.

[0074] The analysis method mainly depends on the classification and comparison of directory attribute information, such as Figure 3As shown, the directory attribute information after each resource check is recorded in the format of (submitter: error text 1, error text 2, …), and when the next update resource file check fails, all previously recorded file submitters and directory attribute information are traversed and compared with the current directory attribute information. Only the newly generated directory attribute information will be attributed to the current submitter, and the record will be cleared and reset after the resource check is passed.

[0075] Through the above analysis process, the main responsible person (i.e., the target submitter) for all update resource file abnormal problems can be accurately located, that is, the responsibility for the abnormal directory appearing in the submitted target resource data is attributed to the submitter who first submitted the abnormal directory, and immediate feedback reminders (using immediate chat tools or email notification mechanisms, etc.) are given to ensure the progress of repair. Moreover, in the case where the problem has not been effectively repaired after multiple reminders, an additional alarm mechanism, such as feedback to the superior supervisor, can be added to enable the production link of the project team to efficiently iterate and advance.

[0076] In step 102, if the update resource file contains an abnormal file, the abnormal directory in the abnormal file is determined.

[0077] In this embodiment, whether the update resource file contains an abnormal file can be determined according to the directory attribute information.

[0078] In some embodiments, when the judgment result corresponding to the target resource data is that it contains an abnormal file, the method further includes:

[0079] The first directory in the target resource data is obtained, and the first directory is used to indicate the directory that directly causes the update resource file to be abnormal. At this time, the first directory is an abnormal directory.

[0080] In another embodiment, since the update result of a resource file under a certain abnormal directory in the normal resource update process may affect the resource file under another directory, if the above situation is ignored and only the directory that directly causes the update resource file to be abnormal is marked as an abnormal directory, it may also cause the target system to report an error or crash in the future.

[0081] To avoid the above situation, as shown, Figure 4 The present scheme determines the first directory and a second directory as abnormal directories when the second directory exists in the context of the first directory. For example, after a certain submission, an abnormal directory B2 appears, and B2 is referenced by directory C1, and it also references directory C3. At this time, directories C1 / B2 / C3 all belong to abnormal directories.

[0082] Step 103, finding the target directory corresponding to the abnormal directory in the original resource file currently used by the target system.

[0083] In the embodiment, the target directory corresponding to the abnormal directory is found and locked in the original resource file currently used by the target system according to the found abnormal directory.

[0084] Step 104, performing resource file updating operation on the original resource file based on the update resource file, while skipping the resource file updating operation on the resource file under the target directory.

[0085] In the embodiment, as shown in the figure, Figure 5 when performing resource file updating operation on the original resource file based on the update resource file, the resource file updating operation on the resource file under the target directory is skipped. That is, the minimum range of the current abnormal resource is analyzed, and on the basis of normally updating the latest resource, the minimum range is locked in the current correct version, and the remaining normal resource can be updated to the latest version.

[0086] All the optional technical solutions described above can be combined to form optional embodiments of the present application, which will not be repeated here.

[0087] In the implementation, the present application is not limited by the execution order of each step, and some steps can be performed in other order or simultaneously without conflict.

[0088] As can be seen from the above, the resource file updating method provided by the embodiment of the present application comprises the following steps: acquiring an update resource file used for updating a target system; if there is an abnormal file in the update resource file, determining an abnormal directory in the abnormal file; finding a target directory corresponding to the abnormal directory in an original resource file currently used by the target system; and performing resource file updating operation on the original resource file based on the update resource file, while skipping the resource file updating operation on the resource file under the target directory. The embodiment of the present application determines whether the update resource file is abnormal in advance by analyzing and judging the update resource file before performing resource file updating operation on the target system, finds out the abnormal directory causing the abnormality of the update resource file, finds the target directory corresponding to the found abnormal directory in the original resource file currently used by the target system and locks it, so that when performing resource file updating operation on the original resource file based on the update resource file, the resource file updating operation on the resource file under the target directory is skipped. That is, the minimum range of the current abnormal resource is analyzed, and on the basis of normally updating the latest resource, the minimum range is locked in the current correct version, and the remaining normal resource can be updated to the latest version.

[0089] The embodiment of the present application further provides a resource file updating device, which can be integrated in a terminal device. The terminal device can be a smart phone, a tablet computer or the like.

[0090] Please refer to Figure 6 , Figure 6 A structure diagram of the resource file updating device provided by the embodiment of the present application is shown in FIG. 1. The resource file updating device 30 can include:

[0091] A first obtaining module 31 is configured to obtain an updating resource file used for updating a target system;

[0092] An abnormality determining module 32 is configured to determine an abnormal directory in an abnormal file in the updating resource file if the abnormal file exists in the updating resource file;

[0093] A target searching module 33 is configured to search for a target directory corresponding to the abnormal directory in an original resource file currently used by the target system;

[0094] A resource updating module 34 is configured to perform a resource file updating operation on the original resource file based on the updating resource file, and skip a resource file updating operation under the target directory.

[0095] In some embodiments, the updating resource file includes version information, target resource data and directory attribute information contained in the target resource data; the version information is used to indicate a version number of the updating resource file and whether there is an abnormal file in the updating resource file; the target resource data is used to provide resources required by a data updating operation; and the directory attribute information is used to indicate whether a directory contained in the target resource data is abnormal.

[0096] In some embodiments, the device further includes a first judging module configured to judge whether there is the abnormal file in the updating resource file according to the directory attribute information.

[0097] In some embodiments, the device further includes an information adding module configured to receive a file submission request, obtain target resource data carried by the file submission request, analyze and judge the eligibility of the target resource data, and add corresponding version information to each of the target resource data according to a judgment result.

[0098] In some embodiments, the apparatus further includes an accountability module, configured to: when the judgment result corresponding to the target resource data is that it contains an abnormal file; obtain the file submitter corresponding to the target resource data; determine the number of times the same abnormal file appears from the file submission record; take the file submitter corresponding to the first occurrence of the abnormal file in the file submission process as the target submitter; generate a reminder message containing the target submitter; and record the reminder message in a database.

[0099] In some embodiments, the apparatus further includes a second acquisition module for acquiring a first directory in the target resource data, the first directory being used to indicate the directory that directly causes the updated resource file to malfunction.

[0100] In some embodiments, the anomaly determination module 32 is used to determine the first directory as the anomaly directory.

[0101] In some embodiments, the apparatus further includes a second determination module, configured to determine whether there is a related second directory in the context of the first directory; when it is determined that the second directory exists in the context of the first directory, the first directory and the second directory are identified as the abnormal directories.

[0102] In practice, the above modules can be implemented as independent entities or combined in any way to be implemented as the same or several entities.

[0103] As can be seen from the above, the resource file updating device 30 provided in this application embodiment obtains the updated resource file for updating the target system through the first acquisition module 31; if the anomaly determination module 32 finds an abnormal directory in the abnormal file if there is an abnormal file in the updated resource file; the target search module 33 searches for the target directory corresponding to the abnormal directory in the original resource file currently used by the target system; the resource update module 34 performs resource file update operation on the original resource file based on the updated resource file, while skipping the resource file update operation under the target directory.

[0104] Please see Figure 7 , Figure 7 This is another schematic diagram of the resource file updating device provided in this application embodiment. The resource file updating device 30 includes a memory 120, one or more processors 180, and one or more application programs, wherein the one or more application programs are stored in the memory 120 and configured to be executed by the processors 180; the processors 180 may include a first acquisition module 31, an anomaly determination module 32, a target search module 33, and a resource update module 34. For example, the structure and connection relationship of the above components can be as follows:

[0105] The memory 120 can be used to store applications and data. The applications stored in the memory 120 include executable codes. The applications can constitute various functional modules. The processor 180 executes various functional applications and data processing by running the applications stored in the memory 120. In addition, the memory 120 can include a high-speed random access memory, and can also include a non-volatile memory such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state memory device. Accordingly, the memory 120 can also include a memory controller to provide the processor 180 with access to the memory 120.

[0106] The processor 180 is the control center of the device, which connects all parts of the terminal through various interfaces and lines, executes various functions of the device and processes data by running or executing the applications stored in the memory 120 and calling the data stored in the memory 120, and thus monitors the whole device. Optionally, the processor 180 can include one or more processing cores; preferably, the processor 180 can integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and applications.

[0107] In particular in the embodiment, the processor 180 loads the executable code corresponding to the process of one or more applications into the memory 120 according to the following instructions, and runs the applications stored in the memory 120 by the processor 180, so as to realize various functions:

[0108] The first acquisition module 31 is configured to acquire an update resource file used for updating a target system;

[0109] The exception determination module 32 is configured to determine an exception directory in an exception file in the update resource file if the exception file exists in the update resource file.

[0110] The target searching module 33 is configured to search for a target directory corresponding to the exception directory in an original resource file currently used by the target system.

[0111] The resource updating module 34 is configured to perform a resource file updating operation on the original resource file based on the update resource file, and skip a resource file updating operation on a resource file under the target directory.

[0112] In some embodiments, the update resource file includes version information, target resource data, and directory attribute information contained in the target resource data; the version information is used to indicate a version number of the update resource file and whether there is an exception file in the update resource file; the target resource data is used to provide resources required for a data updating operation; and the directory attribute information is used to indicate whether a directory contained in the target resource data is abnormal.

[0113] In some embodiments, the apparatus further includes a first determination module, configured to determine whether the abnormal file exists in the updated resource file based on the directory attribute information.

[0114] In some embodiments, the device further includes an information adding module, configured to receive a file submission request, obtain target resource data carried in the file submission request, analyze and determine the qualification of the target resource data, and add corresponding version information to each target resource data according to the determination result.

[0115] In some embodiments, the apparatus further includes an accountability module, configured to: when the judgment result corresponding to the target resource data is that it contains an abnormal file; obtain the file submitter corresponding to the target resource data; determine the number of times the same abnormal file appears from the file submission record; take the file submitter corresponding to the first occurrence of the abnormal file in the file submission process as the target submitter; generate a reminder message containing the target submitter; and record the reminder message in a database.

[0116] In some embodiments, the apparatus further includes a second acquisition module for acquiring a first directory in the target resource data, the first directory being used to indicate the directory that directly causes the updated resource file to malfunction.

[0117] In some embodiments, the anomaly determination module 32 is used to determine the first directory as the anomaly directory.

[0118] In some embodiments, the apparatus further includes a second determination module, configured to determine whether there is a related second directory in the context of the first directory; when it is determined that the second directory exists in the context of the first directory, the first directory and the second directory are identified as the abnormal directories.

[0119] This application also provides a terminal device. The terminal device may be a smartphone, computer, tablet computer, or other similar device.

[0120] Please see Figure 8 , Figure 8 A schematic diagram of a terminal device provided in an embodiment of this application is shown. This terminal device can be used to implement the resource file update method provided in the above embodiments. The terminal device 1200 can be a smartphone or a tablet computer.

[0121] like Figure 8As shown, the terminal device 1200 can include RF (Radio Frequency) circuit 110, memory 120 including one or more (only one is shown in the figure) computer readable storage media, input unit 130, display unit 140, sensor 150, audio circuit 160, transmission module 170, processor 180 including one or more (only one is shown in the figure) processing cores, and power supply 190, etc. Those skilled in the art can understand that Figure 8 The structure of the terminal device 1200 shown in the figure does not constitute a limitation on the terminal device 1200, and can include more or fewer components than shown, or combine certain components, or different component arrangements. Among them:

[0122] The RF circuit 110 is used to receive and send electromagnetic waves, and realize the mutual conversion between electromagnetic waves and electrical signals, so as to communicate with a communication network or other devices. The RF circuit 110 can include various existing circuit elements for performing these functions, such as an antenna, a radio frequency transceiver, a digital signal processor, an encryption / decryption chip, a subscriber identity module (SIM) card, a memory, and the like. The RF circuit 110 can communicate with various networks such as the Internet, an intranet, a wireless network, or communicate with other devices through a wireless network.

[0123] The memory 120 can be used to store software programs and modules, such as the program instructions / modules corresponding to the resource file updating method described above. The processor 180 executes various function applications and data processing by running the software programs and modules stored in the memory 120, and can automatically select a vibration reminder mode for data updating according to the current scene of the terminal device, which can ensure that the conference and other scenes are not disturbed, and the user can perceive the incoming call, thereby improving the intelligence of the terminal device. The memory 120 can include a high-speed random access memory, and can also include a non-volatile memory such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some examples, the memory 120 can further include a memory remotely arranged with respect to the processor 180, which can be connected to the terminal device 1200 through a network. Examples of the above network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0124] The input unit 130 can be configured to receive input digital or character information, and to generate a key signal, a mouse signal, a lever signal, an optical or a track ball signal related to a user's setting and function control. Specifically, the input unit 130 can include a touch sensitive surface 131 and other input devices 132. The touch sensitive surface 131, also called a touch display screen or a touch pad, can collect a user's touch operation (e.g., the user's operation on or near the touch sensitive surface 131 using a finger, a stylus, or any suitable object or accessory) and drive a corresponding connection device according to a pre-set program. Optionally, the touch sensitive surface 131 can include two parts, a touch detection device and a touch controller. The touch detection device detects a user's touch position and detects a signal caused by a touch operation, and transmits the signal to the touch controller. The touch controller receives the touch information from the touch detection device, converts it into touch coordinates, and sends it to the processor 180, and can receive a command from the processor 180 and execute it. In addition, the touch sensitive surface 131 can be implemented in various types such as a resistive type, a capacitive type, an infrared type, and a surface acoustic wave type. In addition to the touch sensitive surface 131, the input unit 130 can include other input devices 132. Specifically, the other input devices 132 can include one or more of a physical keyboard, a function key (e.g., a volume control button, an on / off button, etc.), a trackball, a mouse, a lever, etc.

[0125] The display unit 140 can be configured to display information input by a user or information provided to the user, and various graphical user interfaces of the terminal device 1200, which can be composed of graphics, text, icons, video, and any combination thereof. The display unit 140 can include a display panel 141, which can be configured in the form of an LCD (Liquid Crystal Display), an OLED (Organic Light-Emitting Diode), etc. Further, the touch sensitive surface 131 can cover the display panel 141, and when the touch sensitive surface 131 detects a touch operation thereon or near thereto, it transmits the same to the processor 180 to determine the type of touch event, and then the processor 180 provides a corresponding visual output on the display panel 141 according to the type of touch event. Although in the above description, the touch sensitive surface 131 and the display panel 141 are implemented as two independent components to achieve input and output functions, in some embodiments, the touch sensitive surface 131 and the display panel 141 can be integrated to achieve input and output functions. Figure 8

[0126] ​The terminal device 1200 can also include at least one sensor 150, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor can include an ambient light sensor that can adjust the brightness of the display panel 141 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 141 and / or the backlight when the terminal device 1200 is moved to the ear. As one of the motion sensors, the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and when at rest, can detect the magnitude and direction of gravity, and can be used for identifying the posture of the mobile phone (such as switching between landscape and portrait screens, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometers, taps), and the like. As for other sensors that the terminal device 1200 can also be configured, such as a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, and the like, will not be described here.

[0127] The audio circuit 160, the speaker 161, and the microphone 162 can provide an audio interface between the user and the terminal device 1200. The audio circuit 160 can convert received audio data into an electrical signal, transmit the electrical signal to the speaker 161, and convert the electrical signal into a sound signal output by the speaker 161. On the other hand, the microphone 162 converts a sound signal collected into an electrical signal, which is received by the audio circuit 160 and converted into audio data. The audio data is output to the processor 180 for processing, and then transmitted to another terminal via the RF circuit 110, or output to the memory 120 for further processing. The audio circuit 160 can also include a jack for providing communication between an external earphone and the terminal device 1200.

[0128] The terminal device 1200 can help the user to send and receive emails, browse web pages, and access streaming media, etc. through the transmission module 170 (such as a Wi-Fi module), which provides the user with wireless broadband Internet access. Although Figure 8 The transmission module 170 is shown, but it is understood that it does not belong to the essential components of the terminal device 1200, and can be omitted as needed without changing the essence of the application.

[0129] The processor 180 is the control center of the terminal device 1200, connects all parts of the mobile phone through various interfaces and lines, performs various functions of the terminal device 1200 and processes data by running or executing software programs and / or modules stored in the memory 120 and calling data stored in the memory 120, thereby monitoring the mobile phone as a whole. Optionally, the processor 180 can include one or more processing cores; in some embodiments, the processor 180 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communication. It can be understood that the above-mentioned modem processor can also not be integrated into the processor 180.

[0130] The terminal device 1200 further includes a power supply 190 for supplying power to various components, and in some embodiments, the power supply can be logically connected to the processor 180 through a power management system, so as to realize functions such as power discharge management and power consumption management through the power management system. The power supply 190 can also include one or more than one direct or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power state indicator, and any other components.

[0131] Although not shown, the terminal device 1200 can also include a camera (such as a front camera or a rear camera), a Bluetooth module, and the like, which will not be described here. In this embodiment, the display unit 140 of the terminal device 1200 is a touch screen display, and the terminal device 1200 further includes a memory 120 and one or more programs stored in the memory 120 and configured to be executed by one or more processors 180, wherein the one or more programs include instructions for:

[0132] The first acquisition instruction is used to acquire an update resource file used for updating a target system;

[0133] The exception determination instruction is used to determine an exception directory in an exception file in the update resource file if the exception file exists in the update resource file;

[0134] The target finding instruction is used to find a target directory corresponding to the exception directory in an original resource file currently used by the target system;

[0135] The resource updating instruction is used to perform a resource file updating operation on the original resource file based on the update resource file, and skip a resource file updating operation under the target directory.

[0136] In some embodiments, the updated resource file comprises version information, target resource data, and directory attribute information contained in the target resource data; the version information is used to indicate a version number of the updated resource file and whether there is an abnormal file in the updated resource file; the target resource data is used to provide resources required by a data updating operation; and the directory attribute information is used to indicate whether a directory contained in the target resource data is abnormal.

[0137] In some embodiments, the program further comprises first judging instructions for judging, according to the directory attribute information, whether there is an abnormal file in the updated resource file.

[0138] In some embodiments, the program further comprises information adding instructions for receiving a file submission request, obtaining target resource data carried by the file submission request, analyzing and judging the eligibility of the target resource data, and adding corresponding version information to each target resource data according to a judgment result.

[0139] In some embodiments, the program further comprises accountability instructions for, when a judgment result corresponding to the target resource data is that the target resource data contains an abnormal file, obtaining a file submitter corresponding to the target resource data, determining, from a file submission record, a number of occurrences of the same abnormal file, taking a file submitter corresponding to a first occurrence of the abnormal file in a file submission process as a target submitter, generating alert information containing the target submitter, and recording the alert information to a database.

[0140] In some embodiments, the program further comprises second obtaining instructions for obtaining a first directory in the target resource data, the first directory being used to indicate a directory directly causing the updated resource file to be abnormal.

[0141] In some embodiments, the abnormality determining instructions are used to determine the first directory as the abnormal directory.

[0142] In some embodiments, the program further comprises second judging instructions for judging whether there is a second directory having an association relationship in a context of the first directory; and when it is judged that there is the second directory in the context of the first directory, determining the first directory and the second directory as the abnormal directory.

[0143] Embodiments of the present application also provide a terminal device. The terminal device can be a smart phone, a tablet computer, or the like.

[0144] From the above, the embodiment of the present application provides a terminal device 1200, which performs the following steps: obtaining an update resource file for updating a target system; if there is an abnormal file in the update resource file, determining an abnormal directory in the abnormal file; searching for a target directory corresponding to the abnormal directory in an original resource file currently used by the target system; and performing a resource file update operation on the original resource file based on the update resource file, while skipping a resource file update operation on a resource file under the target directory. The embodiment of the present application determines whether the update resource file is abnormal in advance by analyzing and judging the update resource file before performing a resource file update on the target system, finds out an abnormal directory causing the update resource file to be abnormal, searches for a target directory corresponding to the abnormal directory in the original resource file currently used by the target system, and locks the target directory, so that the resource file update operation on the original resource file based on the update resource file skips the resource file update operation on the resource file under the target directory. That is, the minimum range of the current abnormal resource is analyzed, and on the basis of normally updating the latest resource, the minimum range is locked in the current correct version, and the remaining normal resource can be updated to the latest version.

[0145] The embodiment of the present application also provides a computer readable storage medium, which stores a computer program, and when the computer program runs on a computer, the computer executes the resource file update method in any of the above embodiments.

[0146] It should be noted that, for the resource file update method of the present application, a person skilled in the art can understand that all or part of the process of implementing the resource file update method of the embodiment of the present application can be completed by a computer program controlling related hardware, the computer program can be stored in a computer readable storage medium, such as a memory of a terminal device, and executed by at least one processor in the terminal device, and in the execution process, the process of the embodiment of the resource file update method can be included. The storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), etc.

[0147] The resource file updating apparatus provided by the embodiments of the present application can integrate each functional module in one processing chip, or each module can exist physically independently, or two or more modules can be integrated in one module. The integrated module can be realized in the form of hardware or in the form of software functional module. When the integrated module is realized in the form of software functional module and sold or used as an independent product, it can also be stored in a computer readable storage medium, such as a read-only memory, a magnetic disk or an optical disk.

[0148] The resource file updating method, apparatus, computer readable storage medium and terminal device provided by the embodiments of the present application are described in detail above. The principles and implementation manners of the present application are described by applying specific examples in this paper, and the above embodiment description is only used to help understand the method of the present application and its core idea; meanwhile, according to the idea of the present application, the specific implementation manner and application range can be changed by those skilled in the art, and the above description should not be understood as a limitation on the present application.

Claims

1. A resource file updating method characterized by comprising: The method comprises: obtaining an update resource file used for updating a target system; if there is an abnormal file in the update resource file, determining an abnormal directory in the abnormal file; finding a target directory corresponding to the abnormal directory in an original resource file currently used by the target system, and locking the target directory; performing a resource file update operation on the original resource file based on the update resource file, while skipping the resource file update operation on the resource file under the locked target directory in the original resource file.

2. The resource file updating method of claim 1, wherein, The update resource file comprises version information, target resource data, and directory attribute information contained in the target resource data; The version information is used to indicate a version number of the update resource file and whether there is an abnormal file in the update resource file; The target resource data is used to provide resources required for a data update operation; The directory attribute information is used to indicate whether a directory contained in the target resource data is abnormal.

3. The resource file updating method of claim 2, wherein, The method further comprises: determining whether there is the abnormal file in the update resource file according to the directory attribute information.

4. The resource file updating method of claim 3, wherein, The method further comprises: receiving a file submission request, and obtaining target resource data carried by the file submission request; analyzing and judging the eligibility of the target resource data, and adding corresponding version information to each of the target resource data according to a judgment result.

5. The resource file updating method of claim 4, wherein, After the analysis and judgment of the eligibility of the target resource data, the method further comprises: when the judgment result corresponding to the target resource data is that the target resource data contains an abnormal file, obtaining a file submitter corresponding to the target resource data; determining the number of occurrences of the same abnormal file from a file submission record, and taking a file submitter corresponding to the abnormal file first appearing in a file submission process as a target submitter; generating reminder information containing the target submitter; recording the reminder information to a database.

6. The resource file updating method of claim 5, wherein, After the when the judgment result corresponding to the target resource data is that the target resource data contains an abnormal file, the method further comprises: obtaining a first directory in the target resource data, the first directory being used to indicate a directory directly causing the update resource file to be abnormal; The determination of the abnormal directory in the abnormal file comprises: determining the first directory as the abnormal directory.

7. The resource file updating method of claim 6, wherein, After the when the judgment result corresponding to the target resource data is that the target resource data contains an abnormal file, the method further comprises: judging whether a second directory having an association relationship exists in a context of the first directory; when it is judged that the second directory exists in the context of the first directory, determining the first directory and the second directory as the abnormal directory.

8. A resource file updating apparatus characterized by comprising: The method comprises: a first obtaining module, configured to obtain an update resource file used for updating a target system; an abnormality determining module, configured to, if there is an abnormal file in the update resource file, determine an abnormal directory in the abnormal file; a target finding module, configured to find a target directory corresponding to the abnormal directory in an original resource file currently used by the target system, and lock the target directory; a resource file updating module, configured to perform a resource file update operation on the original resource file based on the update resource file, while skipping the resource file update operation on the resource file under the locked target directory in the original resource file. The resource updating module is configured to perform a resource file updating operation on the original resource file based on the updated resource file, while skipping the resource file updating operation on the resource file in the target directory which is locked in the original resource file.

9. A computer-readable storage medium, characterized in that, The computer readable storage medium stores a plurality of instructions adapted to be loaded by a processor to perform the resource file updating method of any one of claims 1-7.

10. A terminal device, comprising: A device includes a processor and a memory storing a plurality of instructions, the processor loading the instructions to perform the resource file updating method of any one of claims 1-7.

Citation Information

Patent Citations

  • Immediate updating device and immediate updating method

    CN103136027A

  • Application Resource Updates

    US20090228878A1