Interface resource updating method and device, electronic equipment and medium

By generating runtime snapshots and performing comprehensive verification of updated resource packages, the problem of abnormal operation after the interactive interface is updated in the prior art is solved, ensuring that the interactive interface can run normally after the update.

CN122489098APending Publication Date: 2026-07-31HANGZHOU LIFESMART TECH
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
HANGZHOU LIFESMART TECH
Filing Date
2026-05-12
Publication Date
2026-07-31

AI Technical Summary

Technical Problem

The existing interactive interface update mode only verifies file integrity, which cannot guarantee that the interactive interface will function normally after the update, potentially leading to abnormal interactive operations.

Method used

By generating a snapshot of the target interactive interface, analyzing the updated resource package, verifying the running status of components and the process of device control commands, and ensuring that the updated interactive interface meets the preset conditions before proceeding with the update.

Benefits of technology

It enables a comprehensive check of the user interface before updates, avoiding interface malfunctions caused by resource package issues and ensuring that the user interface can function normally after updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122489098A_ABST
    Figure CN122489098A_ABST
Patent Text Reader

Abstract

This invention relates to the field of interactive interface processing, specifically to a method, apparatus, electronic device, and medium for updating interface resources. By obtaining the target interactive interface update resource package from the terminal device, a corresponding runtime snapshot is first generated, and the update resource package is verified based on the runtime snapshot. This effectively solves the problem in the existing update mode that only verifies file integrity but cannot guarantee the normal operation of the interactive interface after the update.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of interactive interface processing, and more specifically to a method, apparatus, electronic device, and medium for updating interface resources. Background Technology

[0002] Interactive interfaces are widely used in smart terminals, vehicle terminals, home control terminals and other scenarios, and can carry out functions such as information display, status feedback, command input and device linkage. In the field of smart homes, the map interface of the control terminal is usually based on the room space layout, integrating background image, device icons, animation components, control buttons, clickable hotspots and device associations into the same interface. Users can view the status, switch modes and issue control commands for devices such as air conditioners, lights and curtains through interactive methods such as clicking, dragging or long pressing. For such interactive interfaces, version updates are typically implemented by distributing update packages to replace interface resources, adjust component layouts, or add interactive capabilities. However, existing update methods often only check whether the files in the update package are complete or missing. This can easily lead to problems such as the interactive interface failing to function correctly based on the obtained interactive operations even if the update package files are complete. Therefore, there is an urgent need for a technical solution that can reasonably verify the update package to ensure that the interactive interface can function normally after the update. Summary of the Invention

[0003] This invention provides a method, apparatus, electronic device, and medium for updating interface resources, aiming to provide a technical solution for reasonably verifying update packages to ensure that the interactive interface can operate normally after the update.

[0004] In a first aspect, embodiments of this application provide a method for updating interface resources. The method is applied to a terminal device, which is connected to at least one controllable device. The method includes: Obtain an updated resource package for the target interactive interface, wherein the target interactive interface is used to obtain interactive operations and generate device control instructions for the controllable device based on the interactive operations, and the target interactive interface includes multiple components; The updated resource package is analyzed to obtain a running snapshot of the target interactive interface. The running snapshot is used to characterize the running state of the multiple components during the process of obtaining interactive operations, and the running state of the multiple components during the process of generating device control commands. The updated resource package is verified based on the runtime snapshot to obtain the verification result; If the verification result indicates that the running state of the target interactive interface obtained after updating using the update resource package meets the preset update conditions, then the update resource package is used to update and the target interactive interface is obtained.

[0005] In some implementations, analyzing the updated resource package to obtain a snapshot of the target interactive interface includes: For each component, based on the updated resource package, the component type, presentation definition information, interaction information, and associated device information of the component are determined; A snapshot of the target interactive interface is generated using the component types, presentation definition information, interaction information, and associated device information of the multiple components. The component types include interactive components and non-interactive components. The presentation definition information is used to characterize the display state of the component in the target interactive interface and the reference path of the displayed content in the update resource package. The interaction information is used to characterize the response characteristics of the component to the interactive operation. The associated device information is used to characterize the controllable device associated with the component.

[0006] In some embodiments, the method further includes: For each component, the extended definition information of the component is determined according to the updated resource package; After updating using the updated resource package to obtain the target interactive interface, the method further includes: Obtain parameter update information for at least one of the plurality of components, wherein the parameter update information is used to update the presentation definition information and / or the interaction information; Fill the parameter update information into the extended fields included in the extended definition information; When updating the target interactive interface based on the extended definition information, if the extended field of the extended definition information cannot be identified, the importance definition of the extended field in the extended definition information is determined. If the importance definition indicates that the extended field is a necessary identification field, the target interactive interface is marked as a failed interface.

[0007] In some implementations, determining the component type, presentation definition information, interaction information, and associated device information of each component based on the updated resource package includes: For each component, the component type, presentation definition information, and interaction information of the component are determined according to the updated resource package; Based on the device identifier associated with the component in the updated resource package, locate the controllable device associated with the component among the at least one controllable device; If a controllable device associated with the component cannot be found among the at least one controllable device based on the device identifier associated with the component in the updated resource package, the controllable device associated with the component is searched among the at least one controllable device based on the device-related information of the component in the updated resource package. The device-related information includes at least one of the following: the device type of the controllable device associated with the component, the physical space to which the controllable device associated with the component belongs, and the grouping of the controllable device associated with the component.

[0008] In some implementations, the step of verifying the updated resource package based on the runtime snapshot to obtain a verification result includes: Based on the updated resource package, determine the stacking relationship of the multiple components in the target interactive interface; For each component, the interaction area index of the component is determined based on the runtime snapshot, wherein the interaction area index is used to characterize the coordinate point in the target interactive interface corresponding to the response area of ​​the component to the interactive operation; An event routing table is determined based on the runtime snapshot, wherein the event routing table is used to characterize the response method of each component to the interactive operation, and the controllable device controlled by each component in response to the interactive operation; Based on the runtime snapshot, the stacking relationship, the interaction area index of the multiple components, and the event routing table, the updated resource package is verified to obtain the verification result.

[0009] In some implementations, the runtime snapshot includes the component types of the plurality of components, and the component types include interactive components and non-interactive components; After updating using the updated resource package to obtain the target interactive interface, the method further includes: Obtain the target interactive operation, and determine the coordinate point in the target interactive interface to which the target interactive operation is directed as the target coordinate point; Based on the interaction area index of the plurality of components and the target coordinate point, determine the first hit component of the target interaction operation among the plurality of components; When there are multiple first hit components, based on the component types of the multiple first hit components in the runtime snapshot, non-interactive components among the multiple first hit components are filtered out to obtain second hit components; The response method of the second hit component is determined based on the event routing table; When the response mode of the second hit component is the first mode and the second hit component has an associated controllable device, the second hit component is used to respond to the target interactive operation; When the response mode of the second hit component is the second mode, the component covered by the second hit component is determined as the third hit component according to the stacking relationship. When there is an associated controllable device for the third hit component, the target interactive operation is responded to by the third hit component. If the response mode of the second hit component is the third mode, the target interaction operation is marked as non-responsive.

[0010] In some implementations, the preset update conditions include sub-conditions of multiple dimensions; The method further includes: If the verification result indicates that the running state of the target interactive interface obtained when updating using the updated resource package meets the non-preset update conditions, the sub-condition that the verification result does not meet is determined as the target sub-condition. Determine the importance level of the target sub-conditions; If the importance level is at the first level, the updated resource package is marked as an ineffective resource package; When the importance level is the second level, the update resource package is used to update and obtain the target interactive interface. The components involved in the target sub-condition are identified as degraded components in the updated target interactive interface. The degraded components are those that cannot obtain the interactive operation. If the importance level is level three, the update resource package is used to update the interface and obtain the target interactive interface.

[0011] Secondly, embodiments of this application provide an interface resource updating device, which is applied to a terminal device connected to at least one controllable device, and the device includes: The acquisition module is used to acquire the update resource package of the target interactive interface, wherein the target interactive interface is used to acquire interactive operations and generate device control instructions for the controllable device based on the interactive operations, and the target interactive interface includes multiple components. An analysis module is used to analyze the updated resource package to obtain a running snapshot of the target interactive interface, wherein the running snapshot is used to characterize the running status of the multiple components during the process of obtaining interactive operations, and the running status of the multiple components during the process of generating device control commands. The verification module is used to verify the updated resource package based on the running snapshot and obtain the verification result; The update module is used to update the target interactive interface by using the update resource package if the verification result indicates that the running state of the target interactive interface obtained by updating with the update resource package meets the preset update conditions.

[0012] Thirdly, embodiments of this application provide an electronic device, which includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in memory, it implements the steps of the interface resource update method provided in the first aspect of the embodiments of this application.

[0013] Fourthly, embodiments of this application provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the interface resource update method provided in the first aspect of embodiments of this application.

[0014] In this embodiment, after the terminal device obtains the target interactive interface update resource package, a corresponding runtime snapshot is generated first, and the update resource package is verified based on the runtime snapshot. This effectively solves the problem in the existing update mode that only verifies file integrity but cannot guarantee the normal operation of the interactive interface after the update. Specifically, the runtime snapshot fully characterizes the running status of multiple components in the target interactive interface during the process of obtaining interactive operations and generating device control commands. This allows the terminal to comprehensively check the running results that can be obtained after the update resource package is updated before the update, discover potential problems in advance, and allow the resource package update to take effect only after the verification is passed. This achieves the security and reliability of the update operation, avoids abnormal operation of the interactive interface due to problems with the resource update package, and thus ensures that the interactive interface can run normally after the update. Attached Figure Description

[0015] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a flowchart illustrating the interface resource update method provided in an embodiment of this application; Figure 2 This is a schematic diagram of the interface resource updating device provided in the embodiments of this application; Figure 3This is a schematic diagram of the structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0017] The technical solutions of the embodiments of this application will be clearly described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application are within the scope of protection of this application.

[0018] The terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of this application can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first," "second," etc., are generally of the same class and the number of objects is not limited; for example, a first object can be one or more. Furthermore, in the specification and claims, "and / or" indicates at least one of the connected objects, and the character " / " generally indicates that the preceding and following objects are in an "or" relationship.

[0019] The interface resource updating method, apparatus, electronic device, and medium provided in this application will be described in detail below with reference to the accompanying drawings and through specific embodiments and application scenarios.

[0020] Figure 1 This is a flowchart illustrating the interface resource update method provided in an embodiment of this application, as shown below. Figure 1 As shown, the first aspect of this application provides a method for updating interface resources. The method is applied to a terminal device, which is connected to at least one controllable device. The method includes the following steps S100-S400: Step S100: Obtain the update resource package of the target interactive interface, wherein the target interactive interface is used to obtain interactive operations and generate device control instructions for the controllable device based on the interactive operations, and the target interactive interface includes multiple components.

[0021] In this step, the terminal device can obtain the update resource package of the target interactive interface from the server, local storage medium or other resource downloader; the target interactive interface is used to obtain the interactive operation input by the user and generate device control instructions for the controllable device based on the interactive operation; the target interactive interface includes multiple components. Those skilled in the art will understand that "for acquiring user input interactive operations and generating device control instructions for controllable devices based on interactive operations" does not mean that the interface itself independently performs operation acquisition and instruction generation, but rather that the target interactive interface is a visual interface and operation carrier for user operations; in fact, the terminal device is responsible for receiving user interactive operations on the interface, generating corresponding device control instructions based on these operations, and then sending them to the controllable device; that is, the interface itself only provides interactive entry and display functions, while the functions of operation parsing and control instruction generation are undertaken by the terminal device; Specifically, the terminal device can first receive the update resource package, then decompress, read and preliminarily identify the update resource package, and extract the resource files, component description files, layout files, interaction configuration files and associated device information of the target interactive interface; in this way, the complete set of resources to be updated can be obtained, providing a basis for subsequent analysis, verification and updating of the resource package; For example, in a smart home scenario, the terminal device receives an update resource package of a living room map interface. This resource package contains a background image, air conditioner status animation, light control buttons, clickable hot zone configuration, and device control association information. The terminal device first reads the update resource package and prepares for subsequent processing.

[0022] Step S200: Analyze the updated resource package to obtain a running snapshot of the target interactive interface. The running snapshot is used to characterize the running status of multiple components in the process of acquiring interactive operations, and the running status of multiple components in the process of generating device control commands.

[0023] In this step, the terminal device analyzes and interprets the original description in the updated resource package into an intermediate result that reflects the actual operation (the running status of multiple components during the process of acquiring interactive operations, and the running status of multiple components during the process of generating device control commands), which is a running snapshot. Specifically, the terminal device can first identify the component types in the resource package, and then extract information such as the location, size, resource reference, interaction method, associated device, and hierarchical relationship of each component, and organize this information into a unified data structure. In this way, the "static resource description" is transformed into a "preview version of the dynamic running results", allowing the terminal device to see in advance the actual running status of the target interactive interface, which components are hit by interactive operations, and which controllable device is generated after the hit.

[0024] For example, after analyzing the living room map update resource package, the terminal device finds an air conditioner animation component on the left side of the room and a light button component in the lower right corner, each corresponding to its respective device control relationship. The terminal device will organize this information into a runtime snapshot, recording the state of each component during the interaction process and the state during the generation of device control commands.

[0025] Step S300: Verify the updated resource package based on the running snapshot and obtain the verification result.

[0026] In this step, the terminal device verifies the update resource package based on the runtime snapshot. Specifically, the terminal device can check whether the update resource package meets the preset update conditions in actual use based on the component status, hotspot information, associated device information, and runtime relationship information in the runtime snapshot. For example, whether the component resources are available, whether the component running status is normal, whether there are conflicts between multiple components, and whether the components can correctly generate device control commands. The verification here is not just checking whether the file is complete, but further judging whether the running result after the update resource package is interpreted is usable. In this way, the terminal device can detect problems that may cause the target interactive interface to malfunction before the update takes effect, thereby avoiding display abnormalities, click failures, control errors, and other situations after the update.

[0027] For example, the terminal device verifies the operation based on the snapshot and finds that the associated device information corresponding to the light control button is complete and the clickable hot zone of the air conditioner animation component is also within the valid range, thus obtaining a verification result that passes the verification; if it is found that the device control command corresponding to a certain button cannot be generated, the verification result will indicate that the preset update conditions are not met.

[0028] Step S400: If the verification result indicates that the running status of the target interactive interface meets the preset update conditions when updated using the update resource package, then update using the update resource package to obtain the target interactive interface.

[0029] In this step, the terminal device decides whether to perform an update operation based on the verification result. When the verification result indicates that the operating status of the target interactive interface meets the preset update conditions when updated using the update resource package, the terminal device uses the update resource package to replace or upgrade the current target interactive interface, making the updated target interactive interface officially effective. Specifically, the terminal device writes the verified resource package into the currently effective area, replaces the old version resources, and reloads components, hotspots, and device associations, so that the interface can obtain interactive operations according to the updated configuration and generate device control commands for controllable devices. Thus, the update is only performed after confirming that the interface can operate normally after the update, thereby ensuring the stability and availability of the target interactive interface.

[0030] For example, in the living room map interface update scenario, after the terminal device confirms that the background image, air conditioner animation component and light control button are all working properly and the device association is valid, it uses the update resource package to complete the update, so that when the user clicks on the new air conditioner animation hot zone, the air conditioner control command can be issued normally.

[0031] Through steps S100-S400, after the terminal device obtains the target interactive interface update resource package, a corresponding runtime snapshot is generated first, and the update resource package is verified based on the runtime snapshot. This effectively solves the problem in the existing update mode that only verifies file integrity but cannot guarantee the normal operation of the interactive interface after the update. Specifically, the runtime snapshot fully characterizes the running status of multiple components in the target interactive interface during the process of obtaining interactive operations and generating device control commands. This allows the terminal to comprehensively check the running results that can be obtained after the update of the update resource package before the update, discover potential problems in advance, and allow the resource package update to take effect only after the verification is passed. This achieves the security and reliability of the update operation, avoids abnormal operation of the interactive interface due to problems with the resource update package, and thus ensures that the interactive interface can run normally after the update.

[0032] In some implementations, the updated resource package is analyzed to obtain a snapshot of the target user interface, including: For each component, based on the updated resource package, determine the component type, presentation definition information, interaction information, and associated device information; Generate a runtime snapshot of the target interactive interface by utilizing the component types, presentation definition information, interaction information, and associated device information of multiple components; Among them, the component types include interactive components and non-interactive components. The presentation definition information is used to characterize the display state of the component in the target interactive interface and the reference path of the displayed content in the updated resource package. The interaction information is used to characterize the response characteristics of the component to interactive operations. The associated device information is used to characterize the controllable devices associated with the component.

[0033] In this embodiment, the terminal device parses the update resource package to generate a snapshot of the target interactive interface, thereby comprehensively characterizing the display, interaction, and device control status of the components and achieving reliable verification before the update. Specifically, the terminal device first reads the update resource package, identifies the various components within it, and determines the type, presentation definition information, interaction information, and associated device information of each component. Component types can be used to distinguish between interactive and non-interactive components. For example, image type components are mainly used to display static backgrounds or decorations, animation type components can display device or scene status animations, and interactive areas can also exist in the animations. Control type components correspond to interactive elements such as buttons, sliders, and switches. Device control type components are used to display device status and receive control commands. Presentation definition information describes the component's display position, size, resource reference path, and animation-related parameters in the interface. It may also include animation duration, loop mode, playback direction, speed scaling, and state transition intervals, thereby ensuring that the interface rendering matches the design intent. Figure 1 To; Interaction information characterizes the component's response to user actions, including the click hotspot area (interaction area), gesture response method, whether long press or drag is allowed, whether the event is allowed to continue to pass to the lower-level component after clicking, and control entry point identifier, to ensure that the component can respond correctly when the user interacts; The associated device information records the relationship between the component and the controllable device, which is used to ensure that the user can accurately issue control commands. After organizing the above information of each component into a unified data structure, the terminal device generates a snapshot of the target interactive interface. This snapshot includes not only the display and interaction status of the component itself, but also the association between the component and the device, as well as its hierarchy and running order in the interface, providing a complete basis for subsequent verification. In this way, by generating and analyzing snapshots, the display, interaction, and device control status of each component of the target interface can be fully evaluated before the updated resource package officially takes effect. This ensures that the interface can respond normally to user operations and correctly issue device control commands after the update, thereby improving update security and operational reliability and avoiding problems such as abnormal interface display, click failure, or control link errors.

[0034] For example, in a smart home living room map update scenario, the update resource package includes a background image component, an air conditioner status animation component, a curtain control button component, and a light switch component. After parsing, the terminal device generates a runtime snapshot: the background image component is marked as non-interactive, only recording its location and resource path; the air conditioner animation component records animation parameters and multiple clickable hotspots; the curtain control button component records the clicked area, gesture response, and control entry point; the light switch component records both interaction information and associated device information to ensure that clicking can generate the correct device control command. After the runtime snapshot summarizes this information, the terminal can determine whether the display, interaction, and control links of each component are correct without directly updating the interface.

[0035] In some implementations, the method further includes: For each component, determine the extended definition information of the component based on the updated resource package; After updating using the updated resource package and obtaining the target interactive interface, the method also includes: Obtain parameter update information for at least one of a plurality of components, wherein the parameter update information is used to update presentation definition information and / or interaction information; Fill the parameter update information into the extended fields included in the extended definition information; When updating the target interactive interface based on the extended definition information, if the extended fields in the extended definition information cannot be identified, the importance definition of the extended fields in the extended definition information is determined. If the importance definition indicates that the extended field is a necessary identification field, mark the target interactive interface as a failed interface.

[0036] In this embodiment, after the terminal device utilizes the updated resource package and generates the target interactive interface, it further considers the scalability and backward compatibility of the component parameters. By managing the extended definition information, it achieves secure updates and necessity verification of the newly added parameters. Specifically, for each component in the updated resource package, the terminal device first parses its extended definition information. This information is a field area reserved for subsequent versions, used to carry newly added component parameters. The extended definition information can adopt a common format such as key-value pairs, parameter arrays, sub-objects with module names, or extended blocks with version numbers to ensure that different types of parameters can be stored and identified uniformly. After parsing, when the target interactive interface completes the resource package update and takes effect, the terminal device can obtain the parameter update information for at least one component entered by technical personnel, which is used to update the presentation definition information and / or interaction information of that component. Subsequently, the parameter update information is filled into the extended fields in the extended definition information to achieve incremental updates of component functions without modifying the basic fields, thereby ensuring the version compatibility of the resource package. During the update process, if an extended field cannot be recognized by the terminal, the terminal device can determine its importance based on the extended field's definition in the extended field definition information: if the importance definition indicates that the extended field is a required field, the terminal will mark the target interactive interface as a disabled interface, no longer use the target interactive interface to obtain interactive operations, or close the target interactive interface, thereby preventing incorrect configuration or unknown parameters from causing abnormal interface operation; if the extended field is marked as negligible, the terminal device can skip the field or retain the original data without affecting the normal operation of the target interactive interface. That is, while ensuring that the interface update is scalable, it avoids old version terminals from misinterpreting new parameters, ensuring the consistency and stability of the updated interactive interface in terms of presentation, interaction, and device control. In this way, by standardizing the management and necessity verification of the parameters of newly added components through extended definition information, it is possible to ensure that the interface functions are scalable while ensuring that the target interactive interface still responds to user operations and generates device control commands safely and reliably after the update, reducing the risk of interface anomalies or device control errors caused by unknown extended parameters.

[0037] For example, in the smart home living room map interface, the updated resource package adds parameters such as the "loop playback speed multiplier" of the air conditioner animation component and the "long press trigger mode" of the light button. These parameters are filled into the extended definition information of each component. After the terminal device loads the new interface, it reads the extended fields and finds that the speed multiplier field of the air conditioner animation component is an expandable field that can be ignored. In this case, the terminal can temporarily not parse it and still display the animation normally. If the long press trigger mode of the light button is defined as a required recognition field, but the current terminal does not support the parameter, the system will mark the entire living room map as an invalid interface, thereby avoiding functional abnormalities or control command errors when the user clicks.

[0038] In some implementations, for each component, based on the updated resource package, the component type, presentation definition information, interaction information, and associated device information are determined, including: For each component, based on the updated resource package, determine the component type, presentation definition information, and interaction information; Based on the device identifier associated with the component in the updated resource package, locate the controllable device associated with the component in at least one controllable device; If a controllable device associated with a component cannot be found among at least one controllable device based on the device identifier associated with the component in the updated resource package, the controllable device associated with the component shall be found among at least one controllable device based on the device-related information of the component in the updated resource package. Among them, the equipment-related information includes at least one of the following: the equipment type of the controllable equipment associated with the component, the physical space to which the controllable equipment associated with the component belongs, and the grouping of the controllable equipment associated with the component.

[0039] In this embodiment, when the terminal device parses the updated resource package, it performs comprehensive information identification and device association for each component to ensure that the components can be correctly displayed, respond to interactive operations, and control the corresponding controllable devices. Specifically, the terminal device first parses the component type, presentation definition information, and interaction information of each component. After parsing the component's own information, the terminal device searches for the device object corresponding to the component in at least one set of controllable devices based on the device identifier associated with the component in the resource package (those skilled in the art will understand that if the component is a non-interactive component, then the resource package will update to find no device identifier associated with the component). If the corresponding device cannot be found by the device identifier, the terminal device will further search for controllable devices based on the component's device-related information. The device-related information may include at least one of the following: device type, physical space to which the device belongs, and group to which the device belongs. Through this two-layer search mechanism, the terminal can match the association between the component and the actual controllable device as accurately as possible, ensuring that the component's click or operation can correctly issue control commands. When multiple candidate devices are found by searching for controllable devices based on the device information of the component, the terminal will prioritize the device that is consistent with the physical space to which the component belongs (for example, if the component is a control case on the air conditioner in the target interactive interface, then the physical space to which the component belongs is the object on which the air conditioner is placed, which is consistent with the physical space to which the air conditioner belongs in the controllable devices) and the type is matched according to the preset rules. If multiple devices still exist after the filtering is completed, the component will be marked as having association ambiguity. Furthermore, the terminal device can classify multiple components into strongly associated components and weakly associated components: Strongly associated components are those that must be associated with a device to function properly, such as light switches or air conditioning control buttons; if there is ambiguity in the association of a strongly associated component, the update of the entire target interactive interface will be rejected and the update will fail; Weakly associated components are mainly used for display or auxiliary functions, such as animation components or status indicators, and even if there is ambiguity in the association, they can be downgraded to simply displaying the status without affecting the update of the target interactive interface; In this way, by parsing the type, display and interaction information of each component and accurately associating them with device identifiers and related device information, it can be ensured that the components can correctly respond to and control the corresponding controllable devices when users interact. At the same time, the strong and weak association strategy can be used to avoid the abnormal association of a single component affecting the overall interface update, thus achieving the stability, controllability and security of the interface update.

[0040] For example, in the smart home living room map interface, the updated resource package includes a light control button component, an air conditioner status animation component, and a curtain control button component. After parsing each component, the terminal device first identifies the component type, presentation location, click hotspot, and gesture response parameters. The light button component finds the corresponding light device in the controllable device list through the device identifier in the resource package. The device identifier of the air conditioner animation component does not match a specific device, so the terminal searches for candidate devices in the device list based on the air conditioner device type and the room it is in, confirming the unique associated object. The curtain button component fails to be associated, but it is a weakly associated component, so the terminal downgrades it to only display the status. The final generated component device association table ensures that when the user clicks the light button and the air conditioner animation component, the device control command can be correctly triggered, while the overall interface can still be displayed and operated normally.

[0041] Those skilled in the art will understand that in some application scenarios, the associated device information can be obtained after the target interactive interface is updated using the update resource package. Specifically, after the terminal device updates the target interactive interface using the update resource package (at this time, the various components in the target interactive interface have not yet been associated with the controllable device), the terminal device obtains the controllable device that needs to be associated from the user or technician's input through the configuration interface (the terminal device can map the user or technician's input to the corresponding device identifier), and associates it with the components in the target interactive interface. That is, in such scenarios, the entire process of updating the target interactive interface using the update resource package does not involve the step of associating the controllable device with the components.

[0042] In some implementations, the updated resource package is verified based on the runtime snapshot to obtain the verification result, including: Based on the updated resource package, determine the stacking relationship of multiple components in the target interactive interface; For each component, the interaction region index of the component is determined based on the runtime snapshot. The interaction region index is used to represent the coordinate point in the target interactive interface corresponding to the response area of ​​the component to the interactive operation. The event routing table is determined based on the runtime snapshot. The event routing table is used to characterize how each component responds to the interactive operation, and the controllable device controlled by each component in response to the interactive operation. Based on runtime snapshots, stacking relationships, interaction area indexes of multiple components, and event routing tables, the updated resource package is validated to obtain the validation results.

[0043] In this embodiment, when the terminal device verifies the updated resource package, it does not only check whether the files are complete, but also combines the running snapshot to make an overall consistency judgment on the display order, interaction hit and event distribution relationship of multiple components in the target interactive interface. Specifically, the terminal device first determines the stacking relationship of multiple components in the target interactive interface based on the updated resource package, that is, it clarifies which component is on the upper layer and which is on the lower layer when they are displayed overlapping, thus providing a basis for subsequent judgment of click priority and display coordination relationship; Subsequently, for each component, the terminal device determines the interaction area index of the component based on the runtime snapshot. The interaction area index is used to characterize the coordinate point in the target interactive interface corresponding to the response area of ​​the component for the interactive operation. In other words, the terminal device establishes the projection / mapping relationship between the component and the specific coordinate point of the target interactive interface based on the component's actual responsive area (i.e., hot zone, where the interactive operation can only be responded to when it is applied to the response area). Furthermore, the terminal device determines the event routing table based on the runtime snapshot. The event routing table is used to characterize how each component responds to the interactive operation (block or no response, pass it to the next layer component, normal response), as well as the controllable device controlled by each component in response to the interactive operation, thereby distinguishing which component handles the interactive operation, whether the interactive operation continues to pass to the next layer component, and which controllable device is ultimately controlled. Finally, the terminal device performs a comprehensive verification of the updated resource package based on the running snapshot, the stacking relationship, the interaction area index of multiple components, and the event routing table, in order to determine whether the updated resource package can guarantee the normal operation of the target interactive interface display, click and device control process after it actually takes effect; The specific content of the verification can include the following categories: First, there is resource reference verification. The terminal device checks whether the image resources, animation resources or other material resources referenced in the updated resource package actually exist and can be read and loaded by the current terminal device based on the running snapshot. The purpose is to avoid problems such as blank screen, abnormal icons or animations not playing after the interface is updated, even if the component is structurally complete, but the resource files corresponding to its display content are missing, the path is wrong or the format is unrecognizable. Secondly, layout verification is performed. The terminal device checks whether the coordinates, size, and scaling results of the components in the target interactive interface are reasonable, whether they fall completely outside the map's displayable area, or whether there are obvious boundary crossings, occlusions, or overlapping anomalies. The purpose is to ensure that multiple components can be displayed normally in the updated interface according to the expected position, and that layout errors will not cause components to be incompletely displayed, clickable areas to be offset, or some components to be accidentally hidden. The next step is component parameter validation. The terminal device checks whether the parameters of different types of components are within the preset range. For example, whether the animation duration is valid, whether the loop mode is legal, whether the playback direction is consistent with the capabilities supported by the current terminal device, and whether the interaction parameters are within the capabilities supported by the current terminal device. The purpose is to ensure that the component's running behavior can be correctly executed by the current terminal device, and to avoid the component's display logic, interaction logic, or state switching logic from failing due to abnormal parameter values ​​or incompatible parameter capabilities. Next is the extended format verification. The terminal device checks whether the structure and version of the extended field conform to the format that the current terminal device can recognize, and further determines whether the extended content is "required" or "allowed to be ignored (not required to recognize)". If the structure of the extended field is invalid, or the extended version exceeds the range supported by the current terminal device, it may cause the terminal device to be unable to correctly parse the extended definition information of the component. The purpose is to ensure that the component's extension capability is balanced between backward compatibility and forward compatibility, and to avoid old terminals misinterpreting the newly added fields in the new resource package. The next step is device association verification. The terminal device checks whether the interactive component can be associated with a valid controllable device object. If multiple devices are matched, it also checks whether a unique control object can be determined according to preset rules. Here, it is not only necessary to determine whether there is a device, but also whether the association relationship is clear, unique, and meets the requirements of strong or weak association strategies. The purpose is to ensure that after the user performs interactive operations on the component, the device control command for the target controllable device can be correctly generated, without miscontrol, missed control, or association ambiguity. Finally, there is the hit area verification. The terminal device checks whether the clicked area has a legal size, whether it can belong to the corresponding component, whether it is consistent with the interaction characteristics of the component, and whether there are cases where the area is too small, the area is out of bounds, the area is incomplete, or multiple component areas conflict. The purpose is to ensure that the interaction area defined in the runtime snapshot can be correctly hit in the actual interface, thereby ensuring that the user's click, long press or other interactive operation can land on the correct component.

[0044] Therefore, the verification based on runtime snapshots, layering relationships, interactive area indexes, and event routing tables is not a single-point judgment, but a comprehensive confirmation of whether resources are available, whether the layout is reasonable, whether parameters are valid, whether extensions are compatible, whether devices can be associated, and whether the hit is accurate. Only when all these specific verification contents meet the preset conditions is the updated resource package suitable for updating the target interactive interface. In this way, by combining the stacking relationship, interactive area index, event routing table, and runtime snapshot for verification, issues such as overlapping component occlusion, clickable area failure, event routing errors, and abnormal device associations can be detected in advance before the updated resource package officially takes effect. This significantly improves the reliability of the target interactive interface updates, ensuring that the updated interface can still accurately respond to interactive operations and correctly generate control commands for controllable devices.

[0045] For example, a living room map update resource package includes a background image component, an air conditioner status animation component, a curtain control button component, and a semi-transparent mask component. The terminal device first determines, based on the resource package, that the mask component is located on the top layer, the background image is located on the bottom layer, and the air conditioner status animation component and the curtain control button component are located in the middle layer, thus forming a layered relationship of multiple components. Then, the terminal device establishes an interactive area index for each component based on the running snapshot, for example, corresponding the response area (hot zone) of the curtain control button component to a certain coordinate point in the upper left corner of the target interactive interface. Then, the terminal device performs verification based on the stacking relationship, the interaction area index, and the event routing table. If all relationships meet the preset rules, the verification passes, and the updated resource package can be used for interface updates.

[0046] In some implementations, the runtime snapshot includes component types of multiple components, including interactive components and non-interactive components; After updating using the updated resource package and obtaining the target interactive interface, the method also includes: Obtain the target interactive operation and determine the coordinate point in the target interactive interface to which the target interactive operation is directed as the target coordinate point; Based on the interaction area index of multiple components and the target coordinate point, determine the first hit component of the target interaction operation among multiple components; If there are multiple first-hit components, based on the component types of the multiple first-hit components in the running snapshot, filter out the non-interactive components among the multiple first-hit components to obtain the second-hit components; The response method of the second hit component is determined based on the event routing table; When the response method of the second hit component is the first method and the second hit component has an associated controllable device, the second hit component is used to respond to the target interactive operation. When the response method of the second hit component is the second method, the component covered by the second hit component is determined as the third hit component according to the stacking relationship. When there is an associated controllable device for the third hit component, the target interactive operation is responded to by the third hit component. If the response method of the second hit component is the third method, mark the target interaction as non-responsive.

[0047] In this embodiment, a precise user interaction operation processing method is provided for situations where multiple components overlap in the target interactive interface, ensuring that user operations can correctly hit and trigger the response of the corresponding component, while avoiding accidental interception of events by non-interactive or decorative components; in this embodiment, the running snapshot includes the component types of all components, which are distinguished into interactive components and non-interactive components, and are used to filter valid targets during interaction processing; After a user initiates an interactive operation, the terminal device first obtains the coordinates of the target interactive operation, which is called the target coordinates. Then, based on the interaction area index of each component in the runtime snapshot, the terminal device determines which components' response areas cover the target coordinates, thus obtaining the first hit component. If multiple first-hit components exist, the terminal device will filter out non-interactive components based on component type to obtain the second-hit components. Next, the terminal device queries the event routing table to determine the response method of the second-hit components: if the response method is the first method (normal response) and the component has an associated controllable device, then the component will perform the response operation; if the response method is the second method (passing to the next layer component), then the covered lower layer component is searched according to the stacking relationship. If the third-hit component has a valid association, then the third-hit component will respond; if the response method is the third method (blocking or not responding), then the target interactive operation is marked as not responding. That is, the terminal device can ensure that the decorative image or mask component located at the upper layer visually will not mistakenly block the click, while the underlying animation or control component can still respond correctly to the user's operation. In conjunction with the aforementioned implementation methods, the specific content of the verification for the updated resource package may also include checking whether there are explicit display and interaction coordination rules between overlapping components as described above.

[0048] Those skilled in the art will understand that, in application scenarios where the aforementioned associated device information can be obtained after updating the target interactive interface using the updated resource package, the existence of associated controllable devices for the second and third hit components can be determined based on the input from the user or technician to the associated devices after the target interactive interface is obtained following the update.

[0049] In this way, by combining component type, interactive area index, event routing table and stacking relationship for interactive operation processing, it is possible to ensure that user clicks accurately hit the target component in complex interfaces, prevent decorative components or non-interactive components from accidentally intercepting events, and thus achieve reliability and consistency of the updated target interactive interface in terms of display, interaction and device control.

[0050] For example, in a smart home living room map, the interface includes a background image component, an air conditioner status animation component, a light control button component, and a semi-transparent mask component. When a user clicks on the air conditioner animation display area, the terminal device first determines that the mask component, air conditioner animation component, and background image component have all been clicked based on the interaction area index, forming a first list of hit components. Then, it filters out the non-interactive components of the mask and background image to obtain the second hit component—the air conditioner animation component. The terminal device queries the event routing table and finds that the air conditioner animation component's response mode is a normal response and that it has been associated with the air conditioner device control object. Therefore, the air conditioner animation component handles this click and issues a control command. If the user clicks on the light control button area covered by the upper mask, but the mask component's response mode is to pass to the lower layer component, the target interaction operation will penetrate to the lower layer light button component, ensuring that the user's click can still correctly trigger the light control command.

[0051] In some implementations, the preset update conditions include sub-conditions with multiple dimensions; The method also includes: If the verification result indicates that the running state of the target interactive interface meets the non-preset update conditions when updated using the updated resource package, the sub-conditions that the verification result does not meet are determined as the target sub-conditions. Determine the importance level of the target sub-conditions; If the importance level is Level 1, mark the updated resource package as an ineffective resource package; When the importance level is the second level, update the target interactive interface using the updated resource package, and identify the components involved in the target sub-condition as degraded components in the updated target interactive interface. Degraded components are those that cannot obtain interactive operations. If the importance level is level 3, update the resource package to obtain the target interactive interface.

[0052] In this embodiment, a processing mechanism based on multi-dimensional sub-conditions and importance levels is proposed to address different types of problems that may occur during the verification process of updated resource packages, so as to ensure that the target interactive interface is both safe and usable in the updated running state. Specifically, the terminal device will divide the preset update conditions into sub-conditions of multiple dimensions. Each sub-condition corresponds to the specific requirements that the interface update needs to meet, such as the integrity of resource files, the validity of component parameters, the correctness of device association, the legality of interactive areas, and the recognizability of extended fields. When the verification result shows that the updated resource package does not meet the preset update conditions, the terminal device will identify the specific sub-condition that failed the verification, which is called the target sub-condition, and further determine its importance level. Depending on the importance level of the target sub-condition, the terminal device adopts different processing strategies: if the importance level is the first level (must be blocked), such as missing resource files, strong related components cannot find an associated controllable device or cannot be uniquely associated, component type cannot be identified or the extended fields that must be identified are not supported, then the updated resource package is marked as an ineffective resource package and the update operation is terminated. If the importance level is at the second level (can be downgraded), such as a weakly related component that cannot find a related controllable device, or an animated component whose clickable area is invalid but can still be used for display, then the update will still be performed, but the affected components will be marked as downgraded components. That is, these components cannot obtain user interaction operations, but the overall interface can still be displayed and used normally. If the importance level is level three (compatible), and the extended field format is valid and can be ignored but is not currently recognized by the terminal, then the interface will be updated directly using the update resource package, and the overall functionality of the interface will not be affected. Through this hierarchical processing mechanism, the terminal device can adopt different strategies for different problems during the update process, thereby completing the interface update as much as possible while ensuring security. In this way, by associating the verification results with the importance level of the sub-conditions, a hierarchical processing strategy for updating resource packages can be implemented. This can prevent critical issues from causing interface update failures, and can also degrade the functionality of some components or maintain compatibility with non-critical extensions within a controllable range, thereby ensuring the stability, security, and availability of the target interactive interface after the update.

[0053] For example, in a smart home living room map update, the update resource package includes a background image, an air conditioner status animation component, a light control button component, and a curtain control button component. Terminal device verification reveals that: the background image resource is missing (Level 1 issue), the clickable hotspot of the air conditioner animation component is outside the clickable range (Level 2 issue), and the extended fields of the curtain control button component are temporarily unrecognizable (Level 3 issue). Therefore, the missing background image causes the update resource package to be marked as ineffective, and thus it will not replace the current interface. If the background image exists but the clickable area of ​​the air conditioner animation is problematic, the update will proceed, and the air conditioner animation component will be downgraded to unresponsive to interactive operations, but the overall interface will still display normally. The unrecognizable extended fields of the curtain button component will not prevent the update, and users can still operate the components normally.

[0054] Please see Figure 2 This is a schematic diagram of the interface resource updating device provided in the embodiments of this application. A second aspect of this application provides an interface resource updating device 10, which is applied to a terminal device connected to at least one controllable device. The device 10 includes: The acquisition module 11 is used to acquire the update resource package of the target interactive interface. The target interactive interface is used to acquire interactive operations and generate device control instructions for the controllable device based on the interactive operations. The target interactive interface includes multiple components. Analysis module 12 is used to analyze the updated resource package and obtain a running snapshot of the target interactive interface. The running snapshot is used to characterize the running status of multiple components in the process of acquiring interactive operations, and the running status of multiple components in the process of generating device control commands. Verification module 13 is used to verify the updated resource package based on the running snapshot and obtain the verification result; The update module 14 is used to update the target interactive interface by using the update resource package if the verification result indicates that the running status of the target interactive interface meets the preset update conditions when updated using the update resource package.

[0055] The interface resource updating device 10 provided in the second aspect of the present application can implement the various processes implemented in the above method embodiments and achieve the same beneficial effects. To avoid repetition, it will not be described again here.

[0056] Please see Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. A third aspect of this application provides an electronic device 300, including a processor 310 and a memory 320. The memory 320 stores machine-executable instructions that can be executed by the processor 310. The processor 310 can execute the machine-executable instructions to implement the above-mentioned interface resource update method.

[0057] A fourth aspect of this application provides a machine-readable storage medium storing instructions that, when executed by a processor, cause the processor to implement the aforementioned interface resource update method.

[0058] In one embodiment of this application, a computer program product is also provided, including a computer program that, when executed by a processor, implements the interface resource update method according to the above embodiments.

[0059] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0060] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0061] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0062] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, like read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0063] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0064] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0065] The above are merely embodiments of this application and are not intended to limit the scope of this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of the claims of this application.

[0066] Furthermore, various different embodiments of the present invention can be combined in any way, as long as they do not violate the spirit of the present invention, they should also be regarded as the content disclosed by the present invention.

Claims

1. A method for updating interface resources, characterized in that, The method is applied to a terminal device, the terminal device being connected to at least one controllable device, and the method includes: Obtain an updated resource package for the target interactive interface, wherein the target interactive interface is used to obtain interactive operations and generate device control instructions for the controllable device based on the interactive operations, and the target interactive interface includes multiple components; The updated resource package is analyzed to obtain a running snapshot of the target interactive interface. The running snapshot is used to characterize the running state of the multiple components during the process of obtaining the interactive operation, and the running state of the multiple components during the process of generating the device control command. The updated resource package is verified based on the runtime snapshot to obtain the verification result; If the verification result indicates that the running state of the target interactive interface obtained after updating using the update resource package meets the preset update conditions, then the update resource package is used to update and the target interactive interface is obtained.

2. The method according to claim 1, characterized in that, The step of analyzing the updated resource package to obtain a snapshot of the target interactive interface includes: For each component, based on the updated resource package, the component type, presentation definition information, interaction information, and associated device information of the component are determined; A snapshot of the target interactive interface is generated using the component types, presentation definition information, interaction information, and associated device information of the multiple components. The component types include interactive components and non-interactive components. The presentation definition information is used to characterize the display state of the component in the target interactive interface and the reference path of the displayed content in the update resource package. The interaction information is used to characterize the response characteristics of the component to the interactive operation. The associated device information is used to characterize the controllable device associated with the component.

3. The method according to claim 2, characterized in that, The method further includes: For each component, the extended definition information of the component is determined according to the updated resource package; After updating using the updated resource package to obtain the target interactive interface, the method further includes: Obtain parameter update information for at least one of the plurality of components, wherein the parameter update information is used to update the presentation definition information and / or the interaction information; Fill the parameter update information into the extended fields included in the extended definition information; When updating the target interactive interface based on the extended definition information, if the extended field of the extended definition information cannot be identified, the importance definition of the extended field in the extended definition information is determined. If the importance definition indicates that the extended field is a necessary identification field, the target interactive interface is marked as a failed interface.

4. The method according to claim 2, characterized in that, For each component, determining its component type, presentation definition information, interaction information, and associated device information based on the updated resource package includes: For each component, the component type, presentation definition information, and interaction information of the component are determined according to the updated resource package; Based on the device identifier associated with the component in the updated resource package, locate the controllable device associated with the component among the at least one controllable device; If a controllable device associated with the component cannot be found among the at least one controllable device based on the device identifier associated with the component in the updated resource package, the controllable device associated with the component is searched among the at least one controllable device based on the device-related information of the component in the updated resource package. The device-related information includes at least one of the following: the device type of the controllable device associated with the component, the physical space to which the controllable device associated with the component belongs, and the grouping of the controllable device associated with the component.

5. The method according to claim 1, characterized in that, The step of verifying the updated resource package based on the runtime snapshot to obtain the verification result includes: Based on the updated resource package, determine the stacking relationship of the multiple components in the target interactive interface; For each component, the interaction area index of the component is determined based on the runtime snapshot, wherein the interaction area index is used to characterize the coordinate point in the target interactive interface corresponding to the response area of ​​the component to the interactive operation; An event routing table is determined based on the runtime snapshot, wherein the event routing table is used to characterize the response method of each component to the interactive operation, and the controllable device controlled by each component in response to the interactive operation; Based on the runtime snapshot, the stacking relationship, the interaction area index of the multiple components, and the event routing table, the updated resource package is verified to obtain the verification result.

6. The method according to claim 5, characterized in that, The runtime snapshot includes the component types of the plurality of components, and the component types include interactive components and non-interactive components; After updating using the updated resource package to obtain the target interactive interface, the method further includes: Obtain the target interactive operation, and determine the coordinate point in the target interactive interface to which the target interactive operation is directed as the target coordinate point; Based on the interaction area index of the plurality of components and the target coordinate point, determine the first hit component of the target interaction operation among the plurality of components; When there are multiple first hit components, based on the component types of the multiple first hit components in the runtime snapshot, non-interactive components among the multiple first hit components are filtered out to obtain second hit components; The response method of the second hit component is determined based on the event routing table; When the response mode of the second hit component is the first mode and the second hit component has an associated controllable device, the second hit component is used to respond to the target interactive operation; When the response mode of the second hit component is the second mode, the component covered by the second hit component is determined as the third hit component according to the stacking relationship. When there is an associated controllable device for the third hit component, the target interactive operation is responded to by the third hit component. If the response mode of the second hit component is the third mode, the target interaction operation is marked as non-responsive.

7. The method according to claim 1, characterized in that, The preset update conditions include sub-conditions in multiple dimensions; The method further includes: If the verification result indicates that the running state of the target interactive interface obtained when updating using the updated resource package meets the non-preset update conditions, the sub-condition that the verification result does not meet is determined as the target sub-condition. Determine the importance level of the target sub-conditions; If the importance level is at the first level, the updated resource package is marked as an ineffective resource package; When the importance level is the second level, the update resource package is used to update and obtain the target interactive interface. The components involved in the target sub-condition are identified as degraded components in the updated target interactive interface. The degraded components are those that cannot obtain the interactive operation. If the importance level is level three, the update resource package is used to update the interface and obtain the target interactive interface.

8. A device for updating interface resources, characterized in that, The device is applied to a terminal device, the terminal device being connected to at least one controllable device, and the device includes: The acquisition module is used to acquire the update resource package of the target interactive interface, wherein the target interactive interface is used to acquire interactive operations and generate device control instructions for the controllable device based on the interactive operations, and the target interactive interface includes multiple components. An analysis module is used to analyze the updated resource package to obtain a running snapshot of the target interactive interface, wherein the running snapshot is used to characterize the running status of the multiple components during the process of obtaining interactive operations, and the running status of the multiple components during the process of generating device control commands. The verification module is used to verify the updated resource package based on the running snapshot and obtain the verification result; The update module is used to update the target interactive interface by using the update resource package if the verification result indicates that the running state of the target interactive interface obtained by updating with the update resource package meets the preset update conditions.

9. An electronic device, characterized in that, The device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; When a processor executes a program stored in memory, it implements the steps of the interface resource update method according to any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the interface resource update method as described in any one of claims 1-7.