Menu data processing method, device, computer equipment and storage medium

By matching file attribute information to update menu data, the problem of low menu data update efficiency in the prior art is solved, rapid and batch menu data update is achieved, and the efficiency of menu data management is improved.

CN114527907BActive Publication Date: 2024-10-18JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210127896.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-11
Publication Date
2024-10-18
Estimated Expiration
2042-02-11

AI Technical Summary

Technical Problem

In the existing technology, menu data update efficiency is low, operations are complex, and it is difficult to update menu data quickly and in batches.

Method used

By obtaining the file attribute information in the specified storage directory and matching the recorded attribute information, if there is no match, the menu data is updated based on the file data, and the menu data is stored in the file form to achieve batch updates.

Benefits of technology

It improves the efficiency of menu data update, realizes fast and batch menu data update, and simplifies the menu data management and maintenance process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114527907B_ABST
    Figure CN114527907B_ABST
Patent Text Reader

Abstract

The present disclosure proposes a method, device, computer equipment and storage medium for processing menu data, which relates to the field of data processing technology. The method includes: obtaining first attribute information of a file currently stored in a designated storage directory; matching the first attribute information with the recorded second attribute information to determine the matching degree between the first attribute information and the second attribute information; when the first attribute information does not match the second attribute information, updating the menu data based on the data in the file corresponding to the first attribute information. Thus, by storing the menu data in the form of a file and storing it in a designated storage directory, the menu data can be updated in batches according to the data in the file contained in the designated storage directory, so that the menu data can be updated quickly and in batches, thereby improving the efficiency of menu data update.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of data processing, and in particular to a method, device, computer equipment and storage medium for processing menu data. Background Art

[0002] With the development of Internet technology, network applications play an increasingly important role in users' lives and work. Among them, menus are an important part of network applications. Menus are lists of options that users can choose from.

[0003] As user needs diversify, menus are becoming more and more complex, and menus may need to be constantly updated. In related technologies, menus are usually created, modified, deleted, etc. by operating the options in the menu one by one. This processing method is complex to operate and has low update efficiency. Therefore, how to update menus simply and efficiently has become a key research direction. Summary of the invention

[0004] The present disclosure aims to solve one of the technical problems in the related art at least to some extent.

[0005] The first aspect of the present disclosure provides a method for processing menu data, including:

[0006] Get the first attribute information of the file currently stored in the specified storage directory;

[0007] Matching the first attribute information with the recorded second attribute information to determine the degree of match between the first attribute information and the second attribute information;

[0008] In a case where the first attribute information does not match the second attribute information, the menu data is updated based on the data in the file corresponding to the first attribute information.

[0009] The second aspect of the present disclosure provides a menu data processing device, including:

[0010] A first acquisition module, used to acquire first attribute information of a file currently stored in a specified storage directory;

[0011] A first determination module, used for matching the first attribute information with the recorded second attribute information to determine the matching degree between the first attribute information and the second attribute information;

[0012] An updating module is used to update menu data based on data in a file corresponding to the first attribute information when the first attribute information does not match the second attribute information.

[0013] The third aspect embodiment of the present disclosure proposes a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the menu data processing method proposed in the first aspect embodiment of the present disclosure is implemented.

[0014] The fourth aspect embodiment of the present disclosure proposes a non-temporary computer-readable storage medium storing a computer program, which, when executed by a processor, implements the menu data processing method proposed in the first aspect embodiment of the present disclosure.

[0015] The fifth aspect of the present disclosure provides a computer program product. When an instruction processor in the computer program product is executed, the menu data processing method provided in the first aspect of the present disclosure is executed.

[0016] The menu data processing method, device, computer equipment and storage medium provided by the present disclosure have the following beneficial effects:

[0017] In the disclosed embodiment, firstly, the first attribute information of the file currently stored in the designated storage directory is obtained, and then the first attribute information is matched with the recorded second attribute information to determine the matching degree between the first attribute information and the second attribute information, and finally, when the first attribute information and the second attribute information do not match, the menu data is updated based on the data in the file corresponding to the first attribute information. Thus, by storing the menu data in the form of files and storing them in the designated storage directory, the menu data can be updated in batches according to the data in the files contained in the designated storage directory, so that the menu data can be updated quickly and in batches, thereby improving the efficiency of updating the menu data.

[0018] Additional aspects and advantages of the present disclosure will be given in part in the following description and in part will be obvious from the following description or learned through practice of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The above and / or additional aspects and advantages of the present disclosure will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0020] Figure 1 A flowchart of a method for processing menu data provided by an embodiment of the present disclosure;

[0021] Figure 2 A flowchart of a method for processing menu data provided by another embodiment of the present disclosure;

[0022] Figure 3 A schematic diagram of the structure of a menu data processing device provided by an embodiment of the present disclosure;

[0023] Figure 4 A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. DETAILED DESCRIPTION

[0024] Embodiments of the present disclosure are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present disclosure, and should not be construed as limiting the present disclosure.

[0025] The following describes the menu data processing method, apparatus, computer device and storage medium according to the embodiments of the present disclosure with reference to the accompanying drawings.

[0026] Figure 1 A flowchart of a method for processing menu data provided in an embodiment of the present disclosure.

[0027] The embodiment of the present disclosure takes the method for processing menu data as an example in which the method is configured in a menu data processing device. The menu data processing device can be applied to any computer device so that the computer device can execute the menu data processing function.

[0028] Among them, the computer device can be a personal computer (PC), a cloud device, a mobile device, etc. The mobile device can be, for example, a mobile phone, a tablet computer, a personal digital assistant, a wearable device, a car device, etc., which are hardware devices with various operating systems, touch screens and / or display screens.

[0029] like Figure 1 As shown, the menu data processing method may include the following steps:

[0030] Step 101, obtaining first attribute information of a file currently stored in a specified storage directory.

[0031] The designated storage directory may be a pre-set directory corresponding to the storage location of the file for storing the menu data. The file under the designated storage directory may be one or more. The present disclosure does not limit this.

[0032] Among them, the files stored in the specified storage directory can all be YAML type files.

[0033] The first attribute information may include the file name, file size, file generation time, file type, etc., which is not limited in the present disclosure.

[0034] Optionally, in order to timely update menu data according to data in updated files when files in a designated storage directory are updated, the files in the designated storage directory may be scanned in real time to obtain and record first attribute information of files currently stored in the storage directory.

[0035] Alternatively, the files in the designated storage directory may be scanned at a preset scanning period to obtain and record the first attribute information of the files currently stored in the storage directory.

[0036] The preset scanning period may be one day, ten days, one month, etc., which is not limited in the present disclosure.

[0037] Optionally, a monitoring program may be started periodically to scan files in a designated storage directory to obtain and record first attribute information of files currently stored in the storage directory.

[0038] It is understandable that scanning the files in the designated storage directory with a preset scanning cycle can not only reduce resource waste, but also update the menu data in a timely manner when the files in the designated storage directory are updated.

[0039] Step 102: Match the first attribute information with the recorded second attribute information to determine the degree of match between the first attribute information and the second attribute information.

[0040] Optionally, the first attribute information corresponding to each file currently stored in the specified storage directory can be matched with the second attribute information corresponding to each recorded file, and the matching degree can be calculated. Then, based on the matching degree, it can be determined whether the recorded files contain files that are identical to the files currently stored in the specified storage directory.

[0041] Optionally, the Euclidean distance, Manhattan distance, etc. can be used to calculate the matching degree between the first attribute information and the second attribute information. Alternatively, the cosine similarity between the first attribute information and the second attribute information can be calculated and the cosine similarity can be used as the matching degree between the first attribute information and the second attribute information. This disclosure does not limit this.

[0042] Step 103: When the first attribute information does not match the second attribute information, the menu data is updated based on the data in the file corresponding to the first attribute information.

[0043] Optionally, updating the menu data based on the data in the file corresponding to the first attribute information may include one or more update operations such as adding, modifying, and deleting the menu data, which is not limited in the present disclosure.

[0044] Optionally, since the menu data is stored in the cache area, the menu data in the cache area may be updated based on the data in the file corresponding to the first attribute information.

[0045] It should be noted that after the menu data in the cache area is updated, if a user interface display request is received, the updated menu data in the cache area can be returned to the client to be displayed in the user interface, thereby saving the time for the client to obtain menu data and improving the speed of client page loading.

[0046] It can be understood that, when the first attribute information matches the second attribute information, the data in the file currently stored in the specified storage directory has been stored in the cache area, and therefore, there is no need to update the menu data in the cache area. When the first attribute information does not match the second attribute information, it means that part of the data in the file currently stored in the specified storage directory is not stored in the cache area, and therefore, the menu data can be updated based on the data in the file corresponding to the first attribute information.

[0047] For example, the first attribute information corresponding to the files currently stored in the specified storage directory are A1, A2, and A3, and the recorded second attribute information are B1, B2, B3, and B4. If it can be seen through matching that the first attribute information A1 matches the second attribute information B1, it can be considered that the data in the file corresponding to the first attribute information A1 has been stored in the menu data in the cache area; if the file name in the first attribute information A2 is the same as the file name in the second attribute information B2, but the file size or file generation time is different, it can be considered that the menu data in the cache area needs to be modified according to the file corresponding to the first attribute information A2; if the first attribute information A3 does not match the second attribute information B3, it is considered that the file corresponding to the first attribute information A3 is a newly added file, and the data in file A3 needs to be added to the cache area, and the files currently stored in the specified storage directory do not contain the file corresponding to the second attribute information B4, then the data corresponding to file B4 in the menu data needs to be deleted.

[0048] It should be noted that the above examples are merely simple illustrative examples and cannot be used as specific limitations on the first attribute information, the second attribute information, and the update in the embodiments of the present disclosure.

[0049] In the disclosed embodiment, firstly, the first attribute information of the file currently stored in the designated storage directory is obtained, and then the first attribute information is matched with the recorded second attribute information to determine the matching degree between the first attribute information and the second attribute information, and finally, when the first attribute information and the second attribute information do not match, the menu data is updated based on the data in the file corresponding to the first attribute information. Thus, by storing the menu data in the form of files and storing them in the designated storage directory, the menu data can be updated in batches according to the data in the files contained in the designated storage directory, so that the menu data can be updated quickly and in batches, thereby improving the efficiency of updating the menu data.

[0050] Figure 2 A flowchart of a method for processing menu data provided by an embodiment of the present disclosure is shown in FIG. Figure 2 As shown, the menu data processing method may include the following steps:

[0051] Step 201: receiving a menu data file update request, wherein the update request includes a menu data file to be updated.

[0052] Optionally, the update request may include one menu data file to be updated, or may include multiple menu data files to be updated, which is not limited in the present disclosure.

[0053] Step 202: based on the menu data file to be updated, update the files in the designated storage directory, and determine the first attribute information of the files stored in the designated storage directory after the update.

[0054] Optionally, if the designated storage directory does not contain any historical files associated with the menu data file to be updated, indicating that the menu data file to be updated is a newly added file, the menu data file to be updated can be directly stored in the designated storage directory, and then the file can be loaded to store the data in the menu data file to be updated in the cache area.

[0055] Alternatively, if the designated storage directory contains a history file associated with the menu data file to be updated, it means that the menu data file to be updated is used to modify the history file associated with it, and therefore, the history file can be replaced by the menu data file to be updated.

[0056] Optionally, if the menu data to be updated is a submenu under a parent menu, it can be stored in association with the parent menu data file. For example, if the designated storage directory does not contain the parent menu data, the menu data file to be updated can be directly stored in a designated location under the designated storage directory.

[0057] Alternatively, in the case where the parent menu data corresponding to the menu data to be updated is included in the designated storage directory, the parent menu data corresponding to the menu data file to be updated can be first determined, and then the second storage level of the menu data file to be updated under the designated storage directory can be determined based on the first storage level of the parent menu data under the designated storage directory, and finally the menu data file to be updated is stored in the storage area corresponding to the second storage level under the designated storage directory. In this way, the menu data file to be updated can be accurately stored in the corresponding storage area.

[0058] Optionally, the parent menu data corresponding to the menu data file to be updated can be determined based on a preset association relationship. Alternatively, if the update request includes a parent menu identifier, the parent menu data corresponding to the menu data file to be updated can also be determined based on the parent menu identifier in the update request. In this way, the parent menu data corresponding to the menu data to be updated can be quickly determined, thereby further improving the update efficiency of the menu data.

[0059] Step 203: Match the first attribute information with the recorded second attribute information to determine the degree of match between the first attribute information and the second attribute information.

[0060] Step 204: When the first attribute information does not match the second attribute information, the menu data is updated based on the data in the file corresponding to the first attribute information.

[0061] Among them, the specific implementation forms of step 203 and step 204 can refer to the detailed steps in other embodiments of the present disclosure, and will not be repeated here.

[0062] In the disclosed embodiment, a menu data file update request is received, wherein the update request includes the menu data file to be updated, and then based on the menu data file to be updated, the file under the designated storage directory is updated, and the first attribute information of the file stored in the designated storage directory after the update is determined, and the first attribute information is matched with the recorded second attribute information to determine the matching degree between the first attribute information and the second attribute information, and finally, when the first attribute information and the second attribute information do not match, the menu data is updated based on the data in the file corresponding to the first attribute information. Thus, the file under the designated storage directory is updated in the form of a file, and then the menu data is updated, so that the menu data can be updated quickly and in batches, and the efficiency of the menu data update is improved.

[0063] In order to implement the above embodiment, the present disclosure also proposes a menu data processing device.

[0064] Figure 3 A schematic diagram of the structure of a menu data processing device provided in an embodiment of the present disclosure.

[0065] like Figure 3 As shown, the menu data processing device 300 may include: a first acquisition module 310 , a first determination module 320 , and an update module 330 .

[0066] The first acquisition module 310 is used to acquire first attribute information of a file currently stored in a specified storage directory;

[0067] A first determination module 320, configured to match the first attribute information with the recorded second attribute information to determine a matching degree between the first attribute information and the second attribute information;

[0068] The updating module 330 is used to update the menu data based on the data in the file corresponding to the first attribute information when the first attribute information does not match the second attribute information.

[0069] Optionally, the first acquisition module 310 is specifically configured to:

[0070] The files in the designated storage directory are scanned at a preset scanning cycle to obtain and record the first attribute information of the files currently stored in the storage directory.

[0071] Optionally, the first acquisition module 310 includes:

[0072] A receiving unit, configured to receive a menu data file update request, wherein the update request includes a menu data file to be updated;

[0073] The determining unit is used to update the files in the designated storage directory based on the menu data file to be updated, and determine the first attribute information of the files stored in the designated storage directory after the update.

[0074] Optionally, the determining unit is specifically configured to:

[0075] Determine the parent menu data corresponding to the menu data file to be updated;

[0076] Determine, according to the first storage level of the parent menu data in the specified storage directory, a second storage level of the menu data file to be updated in the specified storage directory;

[0077] The menu data file to be updated is stored in the storage area corresponding to the second storage level under the designated storage directory.

[0078] Optionally, the determining unit is further configured to:

[0079] Determine the parent menu data corresponding to the menu data file to be updated according to the preset association relationship;

[0080] Alternatively, the parent menu data corresponding to the menu data file to be updated is determined according to the parent menu identifier in the update request.

[0081] Optionally, the updating module 330 is specifically configured to:

[0082] The menu data in the cache area is updated based on the data in the file corresponding to the first attribute information.

[0083] The functions and specific implementation principles of the above modules in the embodiments of the present disclosure can be referred to the above method embodiments, and will not be repeated here.

[0084] The menu data processing device of the disclosed embodiment first obtains the first attribute information of the file currently stored in the designated storage directory, then matches the first attribute information with the recorded second attribute information to determine the matching degree between the first attribute information and the second attribute information, and finally updates the menu data based on the data in the file corresponding to the first attribute information when the first attribute information and the second attribute information do not match. Thus, by storing the menu data in the form of files and storing them in the designated storage directory, the menu data can be updated in batches according to the data in the files contained in the designated storage directory, so that the menu data can be updated quickly and in batches, thereby improving the efficiency of menu data updating.

[0085] In order to implement the above embodiments, the present disclosure further proposes a computer device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the menu data processing method proposed in the above embodiments of the present disclosure is implemented.

[0086] In order to implement the above embodiments, the present disclosure further proposes a non-temporary computer-readable storage medium storing a computer program, which, when executed by a processor, implements the menu data processing method proposed in the above embodiments of the present disclosure.

[0087] In order to implement the above embodiments, the present disclosure further proposes a computer program product. When an instruction processor in the computer program product is executed, the menu data processing method proposed in the above embodiments of the present disclosure is executed.

[0088] Figure 4 A block diagram of an exemplary computer device suitable for implementing embodiments of the present disclosure is shown. Figure 4 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0089] like Figure 4 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0090] The bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor or a local bus using any of a variety of bus structures. For example, these architectures include but are not limited to Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, Enhanced ISA bus, Video Electronics Standards Association (VESA) local bus and Peripheral Component Interconnection (PCI) bus.

[0091] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0092] The memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 4 not shown, usually called a "hard drive"). Although Figure 4Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a compact disc read only memory (CD-ROM), a digital versatile disc read only memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the various embodiments of the present disclosure.

[0093] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 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. The program modules 42 generally perform the functions and / or methods of the embodiments described in the present disclosure.

[0094] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the computer device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0095] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the methods mentioned in the above embodiments.

[0096] The technical solution disclosed in the present invention first obtains the first attribute information of the file currently stored in the designated storage directory, then matches the first attribute information with the recorded second attribute information to determine the matching degree between the first attribute information and the second attribute information, and finally updates the menu data based on the data in the file corresponding to the first attribute information when the first attribute information and the second attribute information do not match. Thus, by storing the menu data in the form of files and storing them in the designated storage directory, the menu data can be updated in batches according to the data in the files contained in the designated storage directory, so that the menu data can be updated quickly and in batches, thereby improving the efficiency of updating the menu data.

[0097] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0098] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0099] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code that includes one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present disclosure includes additional implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present disclosure belong.

[0100] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0101] It should be understood that the various parts of the present disclosure can be implemented in hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used to implement: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0102] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0103] In addition, each functional unit in each embodiment of the present disclosure may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0104] The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present disclosure have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations of the present disclosure. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present disclosure.

Claims

1. A method for processing menu data, characterized in that: include: Acquire first attribute information corresponding to each file currently stored in a designated storage directory, wherein the designated storage directory is a directory corresponding to a storage location of a file for storing menu data; Matching the first attribute information with the second attribute information corresponding to each recorded file in pairs to determine the matching degree between the first attribute information and the second attribute information; In the case where the first attribute information does not match the second attribute information, updating the menu data in the cache area based on the data in the file corresponding to the first attribute information; The obtaining of first attribute information corresponding to each file currently stored in the specified storage directory includes: receiving a menu data file update request, wherein the update request includes a menu data file to be updated; If the designated storage directory does not contain the history file associated with the menu data file to be updated, then storing the menu data file to be updated in the designated storage directory; If the designated storage directory contains the parent menu data corresponding to the menu data to be updated, then determine the parent menu data corresponding to the menu data file to be updated; determine the second storage level of the menu data file to be updated under the designated storage directory according to the first storage level of the parent menu data under the designated storage directory; store the menu data file to be updated in the storage area corresponding to the second storage level under the designated storage directory; Determine the first attribute information of the files stored in the designated storage directory after the update.

2. The method according to claim 1, characterized in that The obtaining of first attribute information of a file currently stored in a specified storage directory includes: The files in the designated storage directory are scanned at a preset scanning cycle to obtain and record the first attribute information of the files currently stored in the storage directory.

3. The method according to claim 1, characterized in that The step of determining the parent menu data corresponding to the menu data file to be updated includes: Determine the parent menu data corresponding to the menu data file to be updated according to the preset association relationship; Alternatively, the parent menu data corresponding to the menu data file to be updated is determined according to the parent menu identifier in the update request.

4. A menu data processing device, characterized in that: include: A first acquisition module, used to acquire first attribute information corresponding to each file currently stored in a specified storage directory; A first determination module, used for matching the first attribute information with the second attribute information corresponding to each recorded file to determine the matching degree between the first attribute information and the second attribute information; an updating module, configured to update the menu data in the cache area based on the data in the file corresponding to the first attribute information when the first attribute information does not match the second attribute information; The first acquisition module includes: A receiving unit, configured to receive a menu data file update request, wherein the update request includes a menu data file to be updated; a determining unit, configured to store the menu data file to be updated in the designated storage directory if the designated storage directory does not contain a history file associated with the menu data file to be updated; If the designated storage directory contains parent menu data corresponding to the menu data to be updated, determine the parent menu data corresponding to the menu data file to be updated; determine the second storage level of the menu data file to be updated under the designated storage directory according to the first storage level of the parent menu data under the designated storage directory; store the menu data file to be updated in the storage area corresponding to the second storage level under the designated storage directory; and determine the first attribute information of the file stored under the designated storage directory after the update.

5. The device according to claim 4, characterized in that The first acquisition module is specifically used to: The files in the designated storage directory are scanned at a preset scanning cycle to obtain and record the first attribute information of the files currently stored in the storage directory.

6. The device according to claim 4, characterized in that The determining unit is further configured to: Determine the parent menu data corresponding to the menu data file to be updated according to the preset association relationship; Alternatively, the parent menu data corresponding to the menu data file to be updated is determined according to the parent menu identifier in the update request.

7. A computer device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for processing menu data as claimed in any one of claims 1 to 3 is implemented.

8. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method for processing menu data as described in any one of claims 1 to 3 is implemented.

9. A computer program product, characterized in that The invention comprises a computer program, which, when executed by a processor, implements the method for processing menu data according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Software menu updating method and device

    CN102129378A

  • Menu generation method and device, electronic equipment and readable storage medium

    CN112347277A