CN112486545A - Application updating method and device, storage medium and electronic device - Google Patents

Application updating method and device, storage medium and electronic device Download PDF

Info

Publication number
CN112486545A
CN112486545A CN202011488951.XA CN202011488951A CN112486545A CN 112486545 A CN112486545 A CN 112486545A CN 202011488951 A CN202011488951 A CN 202011488951A CN 112486545 A CN112486545 A CN 112486545A
Authority
CN
China
Prior art keywords
target
information
application
updated
target application
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011488951.XA
Other languages
Chinese (zh)
Inventor
彭沁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202011488951.XA priority Critical patent/CN112486545A/en
Publication of CN112486545A publication Critical patent/CN112486545A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides an application updating method, an application updating device, a storage medium and an electronic device, wherein the method comprises the following steps: under the condition that the target application is determined to need updating, determining a target function which is included in the target application and needs to be updated; acquiring a front-end resource packet corresponding to the target function, wherein the target application is used for controlling target equipment; and updating the resource packet of the target application by using the front-end resource packet to obtain the updated target application. According to the invention, the problems that the application needs to be updated manually and the user experience is poor in the related technology are solved, the target application is updated automatically, and the effect of improving the user experience is achieved.

Description

Application updating method and device, storage medium and electronic device
Technical Field
The embodiment of the invention relates to the field of communication, in particular to an application updating method, an application updating device, a storage medium and an electronic device.
Background
In the direction of the internet of things, the device list page in the current APP is developed originally. For example, for a device list respectively developed by an iOS system and an Android system, when a new device type is accessed by a device and is released online with a version, the following problems may exist: the access amount of the internet of things equipment is large, the function updating frequency is high, the primary development period is long, and the demand cannot be responded in time; requiring a user to manually update an APP (APPlication) version; the portability is poor, the Android system and the IOS system are developed respectively for the original development, and two sets of the same logic and interface are written; UI presentations are not rich.
Therefore, the related art has the problems that the application needs to be updated manually, and the user experience is poor.
In view of the above problems in the related art, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides an application updating method, an application updating device, a storage medium and an electronic device, and at least solves the problems that different devices cannot be reused and an APP version needs to be manually updated during list display in the related art, and user experience is poor.
According to an embodiment of the present invention, there is provided an update method of an application, including: under the condition that the target application is determined to need updating, determining a target function which is included in the target application and needs to be updated; acquiring a front-end resource packet corresponding to the target function; and updating the resource packet of the target application by using the front-end resource packet to obtain the updated target application.
According to another embodiment of the present invention, there is provided an update apparatus of an application, including: the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a target function which is required to be updated and is included in a target application under the condition that the target application is required to be updated; an obtaining module, configured to obtain a front-end resource packet corresponding to the target function; and the updating module is used for updating the resource package of the target application by utilizing the front-end resource package so as to obtain the updated target application.
According to a further embodiment of the present invention, there is also provided a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above method embodiments when executed.
According to yet another embodiment of the present invention, there is also provided an electronic device, including a memory in which a computer program is stored and a processor configured to execute the computer program to perform the steps in any of the above method embodiments.
According to the method and the device, under the condition that the target application needs to be updated, the target function which needs to be updated and is included in the target application is determined, the front-end resource package corresponding to the target function is obtained, the resource package of the target application is updated according to the front-end resource package, and the updated target application is obtained.
Drawings
Fig. 1 is a block diagram of a hardware configuration of a mobile terminal to which an update method of an application according to an embodiment of the present invention is applied;
FIG. 2 is a flow chart of an update method of an application according to an embodiment of the present invention;
FIG. 3 is a flow diagram of a front-end resource package for obtaining an updated target application upon determining that the target application requires updating, according to an illustrative embodiment of the present invention;
FIG. 4 is a flowchart one of an update method of an application according to an exemplary embodiment of the present invention;
FIG. 5 is a first device card display schematic according to an exemplary embodiment of the present invention;
FIG. 6 is a flowchart of a first device card presenting first target device information, according to an example embodiment of the present invention;
FIG. 7 is an information flow diagram illustrating a first target device using a first device card, according to an illustrative embodiment of the present invention;
FIG. 8 is a flowchart II of an update method of an application according to an exemplary embodiment of the present invention;
FIG. 9 is an internal logic diagram of a first device card according to an exemplary embodiment of the present invention;
fig. 10 is a block diagram of a structure of an update apparatus of an application according to an embodiment of the present invention.
Detailed Description
Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking an example of the application running on a mobile terminal, fig. 1 is a hardware structure block diagram of the mobile terminal of an application updating method according to an embodiment of the present invention. As shown in fig. 1, the mobile terminal may include one or more (only one shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), and a memory 104 for storing data, wherein the mobile terminal may further include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration, and does not limit the structure of the mobile terminal. For example, the mobile terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used for storing computer programs, for example, software programs and modules of application software, such as computer programs corresponding to the update method of the application in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer programs stored in the memory 104, so as to implement the above-mentioned method. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the mobile terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In this embodiment, an application updating method is provided, and fig. 2 is a flowchart of an application updating method according to an embodiment of the present invention, as shown in fig. 2, the flowchart includes the following steps:
step S202, under the condition that the target application is determined to need updating, determining a target function which is included in the target application and needs to be updated;
step S204, acquiring a front-end resource packet corresponding to the target function;
step S206, the resource package of the target application is updated by using the front-end resource package to obtain the updated target application.
In the above embodiment, the target application may be an application installed in a mobile phone, a computer, a tablet computer, or a smart wearable device, and the target application may be an application for controlling the target device. For example, when the target device is an air conditioner, the target application may be an APP integrated with functions of controlling an air conditioner switch, an air conditioner mode, an air conditioner temperature, and the like, when the target device is a washing machine, the target application may be an APP controlling the washing machine, and when the target device is a water heater, the target application may be an APP controlling the water heater. Of course, the target device may also be a body fat scale, a body weight scale, a music player, a sound box, or other smart home devices, or may also be an intelligent office device, or the like, and the target application is a corresponding APP that can control the target device. The front-end resource package may be an H5 (application program interface) resource package.
In the above embodiment, the target function may be a function existing in the target application, or may be a function not existing in the target application. For example, the currently installed target application does not have a function of adjusting the air-conditioning mode, the application of the latest version includes the function of adjusting the air-conditioning mode, and when it is determined that the target application needs to be updated, it can be determined that the function of adjusting the air-conditioning mode needs to be obtained by updating the application. The method comprises the steps that an air conditioning mode adjusting function exists in a currently installed target application, the air conditioning mode adjusting function is subjected to BUG restoration or upgrading in the application of the latest version, and under the condition that the target application is determined to be updated, the air conditioning mode adjusting function which needs to be obtained through updating the application can be determined.
That is, the resource package of the target application may be updated by dynamically issuing the front-end resource package. When no new version of the target application is released. The BUG or upgrade of the target application may be repaired. When a new version is released, the resource package of the update target application can be a partial update, that is, only the resource package of the update part needs to be downloaded and installed during updating, and not all the resource packages.
For example, the main body of the above steps may be a background processor, or other devices with similar processing capabilities, and may also be a machine integrated with at least a data processing device, where the data processing device may include a terminal such as a computer, a mobile phone, and the like, but is not limited thereto.
According to the method and the device, under the condition that the target application needs to be updated, the target function which needs to be updated and is included in the target application is determined, the front-end resource package corresponding to the target function is obtained, the resource package of the target application is updated according to the front-end resource package, and the updated target application is obtained.
In an exemplary embodiment, in a case that it is determined that the target application needs to be updated, a flowchart of the target function obtained by determining that the target application needs to be updated, which is included in the target application, may refer to fig. 3, as shown in fig. 3, where the flowchart includes:
step S302, under the condition that the equipment controlled by the target application is determined to be updated, determining that the target application needs to be updated;
step S304, determining a function for controlling the updated target device as the target function.
In this embodiment, when it is determined that the device controlled by the target application is updated, it may be determined that the target application needs to be updated, and the function of the device obtained after the control update is determined as the target function. When a certain function of the device controlled by the target application allows control through the APP, it may be considered that the device controlled by the target application is updated, or when a new function is integrated with the device controlled by the target application and the function allows control through the APP, it may also be considered that the device controlled by the target application is updated.
In an exemplary embodiment, the obtaining the front-end resource package corresponding to the target function includes: acquiring a resource code of the target function; determining the resource code as the front-end resource. In this embodiment, when it is determined that the device controlled by the target application is updated, the resource code of the target function is determined, and the resource code is determined as the front-end resource. I.e. by downloading and installing resource code to update the target application. Wherein the resource code may be a code required for updating the device.
In one exemplary embodiment, the target application establishes a connection with the target device through a logical engine interface of a target container. In this embodiment, device list display can be realized through H5, a set of codes is shared, the device is controlled through a container logic engine interface at the bottom layer, basic function control and display of the device are realized, a device template can be built by using a react technology at the front end H5, multiplexing is realized in different devices, and quick access and iteration of different devices can be realized.
In an exemplary embodiment, a flowchart of an update method of an application, referring to fig. 4, as shown in fig. 4, includes all the steps shown in fig. 2, in addition to:
step S402, under the condition that a request message for requesting to enter a device list page in the target application is received, acquiring a target list stored in the target application, wherein the target list is a list of target devices controlled by the target application;
step S404, entering the device list page, and displaying the target list in the device list page;
step S406 receives a first display message, where the first display message is used to request to display information of a first target device included in the target list;
step S408, determining a first device class to which the first target device belongs;
step S410, determining a first device card corresponding to the first device class, wherein different device classes correspond to different device cards, and the device cards are used for displaying information of target devices;
step S412, displaying information of the first target device by using the first device card.
In this embodiment, in the case of receiving a request message requesting entry into a device list page in a target application, a target list stored in the target application is acquired. The request message may carry user information, for example, the user information may enter a device list home page of the target application, obtain a device list according to the user information, and display the target list in the device list page. After receiving the first presentation message, information of the first target device included in the target list, for example, a device name, a location, an online/offline status, an alarm status, and the like, may be presented.
In this embodiment, the first device card may include two parts, i.e., a device display unit and a device control unit, and both the device display unit and the device control unit may set corresponding display modes, i.e., the device display unit and the device control unit may have respective display templates to display different UI (User Interface) effects according to different devices. Fig. 5 can be referred to as a first device card display schematic diagram, and the device display unit may include a device broad-class schematic diagram, as shown in a solid-line box portion in fig. 5, that is, the device display unit may display information of the first target device, such as a device name, a location, an online/offline status, an alarm status, and the like. The device control unit can synchronously display some basic information, as shown in a dotted line frame part in fig. 5, and can control real devices, wherein a large class of devices in the first device card can be matched with devices of all models, and the workload of single access can be saved.
In an exemplary embodiment, before obtaining the target list stored in the target application, the method further comprises: receiving a notification message in case of determining that the function of the device list change is subscribed, wherein the notification message is used for indicating that at least one of the following adjustments of the target device controlled by the target application occurs: new target equipment is added, controlled target equipment is reduced, and the information of the controlled target equipment is updated; adjusting a list stored in the target application based on the notification message to obtain the target list; storing the target list in the target application. In this embodiment, before obtaining the target list stored in the target application, a device list change may be subscribed, and when the user binds or unbinds the device at another end, the device list makes a corresponding change. For example, when a new target device is added, an already controlled target device is reduced, or information of the already controlled target device is updated, the list stored in the target application is adjusted according to the notification message.
In this embodiment, a flowchart of displaying the first target device information by the first device card may refer to fig. 6, as shown in fig. 6, where the flowchart includes:
step S602, the device list page is entered.
Step S604, listening to the device list, and when the device list changes, performing step S606.
In step S606, a device list is acquired. This step may be executed after step S602, or may be executed after step S604. That is, after entering the device list page, the device list is obtained, before that, the device list may also be monitored, and when the device list changes, the device list is obtained.
In step S608, the device type is acquired.
Step S610, the device card displays information.
In an exemplary embodiment, a flowchart of information for displaying the first target device by using the first device card may refer to fig. 7, as shown in fig. 7, where the flowchart includes:
step S702, displaying first information of the first target device in a first area of the first device card, where the first information includes at least one of the following information: the name of the first target device, the position of the first target device, the online and offline state of the first target device, and the alarm state of the first target device;
step S704, displaying second information of the first target device in a second area of the first device card, where the second information includes at least one of the following information: current mode information of the first target device, control information for controlling the first target device.
In this embodiment, the first target device information may include first information and second information, the first information may be displayed in a first area of the first device card, the second information may be displayed in a second area of the first device card, for example, the first information may be a name of the first target device, a location of the first target device, an online/offline status of the first target device, an alarm status of the first target device, and the like, and the information may be displayed in an upper half portion of the first device card, as shown in a solid-line frame portion in fig. 5. The second information may be current model information of the first target device. The control information for controlling the first target device may be presented in the lower half of the first device card, as shown in the dashed box portion of fig. 5. The control information may include a switch of the control target device, a mode of the control target device, and the like, for example, when the target device is an air conditioner, the control information may include a switch of controlling a power supply of the air conditioner, a mode of controlling the air conditioner, such as a cooling mode, a heating mode, a dehumidification mode, and the like, and may further include a temperature of the air conditioner, and the like. When the target device is a washing machine, the control information may include a switch for controlling a power supply of the washing machine, a washing mode, a washing time, a washing water amount, and the like.
In an exemplary embodiment, a second flowchart of the update method of the application may refer to fig. 8, and the second flowchart is applied after the information of the first target device is displayed by using the first device card, as shown in fig. 8, the second flowchart includes all the steps shown in fig. 4, in addition to:
step S802, receiving a change message for indicating that the first information and/or the second information of the first target device is changed;
step S804, updating the information of the first target device displayed on the first device card based on the change message.
In this embodiment, after receiving a change message indicating that the first information and/or the second information of the first target device is changed, the information of the first target device displayed on the first device card may be updated according to the change message. That is, when the first information changes, the first information currently displayed in the first device card may be updated to the changed first information according to the first information change message, when the second information changes, the second information currently displayed in the first device card may be updated to the changed second information according to the second information change message, or when both of them change, the first information and the second information currently displayed in the first device card may be updated to the changed second information according to the first information change message or the second information change message. For example, when the target device is an air conditioner, the second information displayed in the first device card includes a dehumidification mode, 24 ℃, and when the mode of the air conditioner is changed to a cooling mode, and the temperature is 26 ℃, the second information displayed in the first device card is updated to a cooling mode, 26 ℃.
In the above embodiment, the internal logic diagram of the first device card can be seen in fig. 9, and the principle of the first device card is as follows: according to the device information obtained from the device list, basic device information (corresponding to the first information) is displayed on a device display unit, a device state is initialized according to a device mac (Media Access Control), a part of the state (corresponding to the first information) is fed back to the device display unit, and other states (corresponding to the second information) to be displayed are displayed on a device Control unit, and the device state is subscribed through a logic engine. When the target device is manually operated, the logic engine changes state and the UI makes changes. The user can also operate the device control unit, the logic engine issues commands to cause the device to respond through internal calculation, the logic engine subscribes the device state, and the device state change is sensed, so that the UI is changed.
In an exemplary embodiment, the front end resource package comprises an H5 resource package.
In the foregoing embodiment, with the development of the internet of things, the future device access amount is large, the demand is updated quickly, the H5 display device list is used for displaying different device templates according to the device categories, different types of devices under each category of devices depend on the logic engine of the container to be accessed in a unified manner, the same functions and UIs are displayed, namely, the H5 development display device list is used in the APP, different functions can be realized for different devices, rich UI effects are displayed, and multi-platform sharing can be realized as long as one set of codes. Therefore, the H5 development display equipment list is used in the APP, the large-scale equipment can be rapidly accessed, the workload of one-by-one access of different types of equipment under the same large-scale equipment is greatly reduced, the use of one set of codes at different terminals is met, the updating can be realized without manual updating of a user, the trouble of frequently sending out versions and upgrading the user is avoided, and the rapid iteration of projects is facilitated. In addition, the method can be transplanted into the WeChat applet and the Payment treasure applet by using different H5 technologies.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
In this embodiment, an application updating apparatus is further provided, and the apparatus is used to implement the foregoing embodiments and preferred embodiments, and the description already made is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 10 is a block diagram of a structure of an update apparatus of an application according to an embodiment of the present invention, as shown in fig. 10, the apparatus including:
a determining module 1002, configured to determine, when it is determined that a target application needs to be updated, a target function included in the target application and needing to be updated;
an obtaining module 1004, configured to obtain a front-end resource package corresponding to the target function;
an updating module 1006, configured to update the resource package of the target application by using the front-end resource package, so as to obtain an updated target application.
In the above embodiment, the target application may be an application installed in a mobile phone, a computer, a tablet computer, or a smart wearable device, and the target application may be an application for controlling the target device. For example, when the target device is an air conditioner, the target application may be an APP integrated with functions of controlling an air conditioner switch, an air conditioner mode, an air conditioner temperature, and the like, when the target device is a washing machine, the target application may be an APP controlling the washing machine, and when the target device is a water heater, the target application may be an APP controlling the water heater. Of course, the target device may also be a body fat scale, a body weight scale, a music player, a sound box, or other smart home devices, or may also be an intelligent office device, or the like, and the target application is a corresponding APP that can control the target device. The front-end resource package may be an H5 (application program interface) resource package.
In the above embodiment, the target function may be a function existing in the target application, or may be a function not existing in the target application. For example, the currently installed target application does not have a function of adjusting the air-conditioning mode, the application of the latest version includes the function of adjusting the air-conditioning mode, and when it is determined that the target application needs to be updated, it can be determined that the function of adjusting the air-conditioning mode needs to be obtained by updating the application. The method comprises the steps that an air conditioning mode adjusting function exists in a currently installed target application, the air conditioning mode adjusting function is subjected to BUG restoration or upgrading in the application of the latest version, and under the condition that the target application is determined to be updated, the air conditioning mode adjusting function which needs to be obtained through updating the application can be determined.
That is, the resource package of the target application may be updated by dynamically issuing the front-end resource package. When no new version of the target application is released. The BUG or upgrade of the target application may be repaired. When a new version is released, the resource package of the update target application can be a partial update, that is, only the resource package of the update part needs to be downloaded and installed during updating, and not all the resource packages.
According to the method and the device, under the condition that the target application needs to be updated, the target function which needs to be updated and is included in the target application is determined, the front-end resource package corresponding to the target function is obtained, the resource package of the target application is updated according to the front-end resource package, and the updated target application is obtained.
In an exemplary embodiment, the determining module 1002 may determine, in a case that it is determined that the target application needs to be updated, a target function included in the target application that needs to be updated, by: determining that the target application needs to be updated under the condition that the device controlled by the target application is determined to be updated; determining a function for controlling the updated target device as the target function. In this embodiment, when it is determined that the device controlled by the target application is updated, it may be determined that the target application needs to be updated, and the function of the device obtained after the control update is determined as the target function. When a certain function of the device controlled by the target application allows control through the APP, it may be considered that the device controlled by the target application is updated, or when a new function is integrated with the device controlled by the target application and the function allows control through the APP, it may also be considered that the device controlled by the target application is updated.
In an exemplary embodiment, the obtaining module 1006 may obtain the front-end resource package corresponding to the target function by: acquiring a resource code of the target function; determining the resource code as the front-end resource. In this embodiment, when it is determined that the device controlled by the target application is updated, the resource code of the target function is determined, and the resource code is determined as the front-end resource. I.e. by downloading and installing resource code to update the target application. Wherein the resource code may be a code required for updating the device.
In one exemplary embodiment, the target application establishes a connection with the target device through a logical engine interface of a target container. In this embodiment, device list display can be realized through H5, a set of codes is shared, the device is controlled through a container logic engine interface at the bottom layer, basic function control and display of the device are realized, a device template can be built by using a react technology at the front end H5, multiplexing is realized in different devices, and quick access and iteration of different devices can be realized.
In an exemplary embodiment, the apparatus may be configured to, in a case that a request message for requesting entry into a device list page in the target application is received, obtain a target list stored in the target application, where the target list is a list of target devices controlled by the target application; entering the device list page and displaying the target list in the device list page; receiving a first display message, wherein the first display message is used for requesting to display information of a first target device included in the target list; determining a first device class to which the first target device belongs; determining a first device card corresponding to the first device class, wherein different device classes correspond to different device cards, and the device cards are used for displaying information of target devices; and displaying the information of the first target device by using the first device card. In this embodiment, in the case of receiving a request message requesting entry into a device list page in a target application, a target list stored in the target application is acquired. The request message may carry user information, for example, the user information may enter a device list home page of the target application, obtain a device list according to the user information, and display the target list in the device list page. After receiving the first presentation message, information of the first target device included in the target list, for example, a device name, a location, an online/offline status, an alarm status, and the like, may be presented.
In this embodiment, the first device card may include two parts, i.e., a device display unit and a device control unit, and both the device display unit and the device control unit may set corresponding display modes, i.e., the device display unit and the device control unit may have respective display templates to display different UI (User Interface) effects according to different devices. Fig. 5 can be referred to as a first device card display schematic diagram, and the device display unit may include a device broad-class schematic diagram, as shown in a solid-line box portion in fig. 5, that is, the device display unit may display information of the first target device, such as a device name, a location, an online/offline status, an alarm status, and the like. The device control unit can synchronously display some basic information, as shown in a dotted line frame part in fig. 5, and can control real devices, wherein a large class of devices in the first device card can be matched with devices of all models, and the workload of single access can be saved.
In an exemplary embodiment, the apparatus may be further configured to receive, before acquiring the target list stored in the target application, a notification message in a case where it is determined that a function of a device list change has been subscribed to, where the notification message is used to indicate that at least one of the following adjustments of a target device controlled by the target application has occurred: new target equipment is added, controlled target equipment is reduced, and the information of the controlled target equipment is updated; adjusting a list stored in the target application based on the notification message to obtain the target list; storing the target list in the target application. In this embodiment, before obtaining the target list stored in the target application, a device list change may be subscribed, and when the user binds or unbinds the device at another end, the device list makes a corresponding change. For example, when a new target device is added, an already controlled target device is reduced, or information of the already controlled target device is updated, the list stored in the target application is adjusted according to the notification message.
In an exemplary embodiment, the apparatus may enable displaying the information of the first target device by using the first device card by: displaying first information of the first target device in a first area of the first device card, wherein the first information includes at least one of the following information: the name of the first target device, the position of the first target device, the online and offline state of the first target device, and the alarm state of the first target device; displaying second information of the first target device in a second area of the first device card, wherein the second information includes at least one of the following information: current mode information of the first target device, control information for controlling the first target device. In this embodiment, the first target device information may include first information and second information, the first information may be displayed in a first area of the first device card, the second information may be displayed in a second area of the first device card, for example, the first information may be a name of the first target device, a location of the first target device, an online/offline status of the first target device, an alarm status of the first target device, and the like, and the information may be displayed in an upper half portion of the first device card, as shown in a solid-line frame portion in fig. 5. The second information may be current model information of the first target device. The control information for controlling the first target device may be presented in the lower half of the first device card, as shown in the dashed box portion of fig. 5. The control information may include a switch of the control target device, a mode of the control target device, and the like, for example, when the target device is an air conditioner, the control information may include a switch of controlling a power supply of the air conditioner, a mode of controlling the air conditioner, such as a cooling mode, a heating mode, a dehumidification mode, and the like, and may further include a temperature of the air conditioner, and the like. When the target device is a washing machine, the control information may include a switch for controlling a power supply of the washing machine, a washing mode, a washing time, a washing water amount, and the like.
In an exemplary embodiment, the apparatus may be further configured to receive a change message indicating that the first information and/or the second information of the first target device is changed after the information of the first target device is displayed by using the first device card; updating information of the first target device shown on the first device card based on the change message. In this embodiment, after receiving a change message indicating that the first information and/or the second information of the first target device is changed, the information of the first target device displayed on the first device card may be updated according to the change message. That is, when the first information changes, the first information currently displayed in the first device card may be updated to the changed first information according to the first information change message, when the second information changes, the second information currently displayed in the first device card may be updated to the changed second information according to the second information change message, or when both of them change, the first information and the second information currently displayed in the first device card may be updated to the changed second information according to the first information change message or the second information change message. For example, when the target device is an air conditioner, the second information displayed in the first device card includes a dehumidification mode, 24 ℃, and when the mode of the air conditioner is changed to a cooling mode, and the temperature is 26 ℃, the second information displayed in the first device card is updated to a cooling mode, 26 ℃.
In an exemplary embodiment, the front end resource package comprises an H5 resource package.
It should be noted that, the above modules may be implemented by software or hardware, and for the latter, the following may be implemented, but not limited to: the modules are all positioned in the same processor; alternatively, the modules are respectively located in different processors in any combination.
Embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, wherein the computer program is arranged to perform the steps of any of the above-mentioned method embodiments when executed.
In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to: various media capable of storing computer programs, such as a usb disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk.
Embodiments of the present invention also provide an electronic device comprising a memory having a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
In an exemplary embodiment, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary embodiments, and details of this embodiment are not repeated herein.
It will be apparent to those skilled in the art that the various modules or steps of the invention described above may be implemented using a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and they may be implemented using program code executable by the computing devices, such that they may be stored in a memory device and executed by the computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into various integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the principle of the present invention should be included in the protection scope of the present invention.

Claims (12)

1. An update method for an application, comprising:
under the condition that the target application is determined to need updating, determining a target function which is included in the target application and needs to be updated;
acquiring a front-end resource packet corresponding to the target function;
and updating the resource packet of the target application by using the front-end resource packet to obtain the updated target application.
2. The method of claim 1, wherein in a case that it is determined that a target application needs to be updated, determining a target function included in the target application that needs to be updated comprises:
determining that the target application needs to be updated under the condition that the device controlled by the target application is determined to be updated;
determining a function for controlling the updated target device as the target function.
3. The method of claim 2, wherein obtaining the front-end resource packet corresponding to the target function comprises:
acquiring a resource code of the target function;
determining the resource code as the front-end resource.
4. The method of claim 2, wherein the target application establishes a connection with the target device through a logical engine interface of a target container.
5. The method of claim 1, further comprising:
under the condition that a request message for requesting to enter a device list page in the target application is received, acquiring a target list stored in the target application, wherein the target list is a list of target devices controlled by the target application;
entering the device list page and displaying the target list in the device list page;
receiving a first display message, wherein the first display message is used for requesting to display information of a first target device included in the target list;
determining a first device class to which the first target device belongs;
determining a first device card corresponding to the first device class, wherein different device classes correspond to different device cards, and the device cards are used for displaying information of target devices;
and displaying the information of the first target device by using the first device card.
6. The method of claim 5, wherein prior to obtaining the target list stored in the target application, the method further comprises:
receiving a notification message in case of determining that the function of the device list change is subscribed, wherein the notification message is used for indicating that at least one of the following adjustments of the target device controlled by the target application occurs: new target equipment is added, controlled target equipment is reduced, and the information of the controlled target equipment is updated;
adjusting a list stored in the target application based on the notification message to obtain the target list;
storing the target list in the target application.
7. The method of claim 5, wherein presenting the information of the first target device with the first device card comprises:
displaying first information of the first target device in a first area of the first device card, wherein the first information includes at least one of the following information: the name of the first target device, the position of the first target device, the online and offline state of the first target device, and the alarm state of the first target device;
displaying second information of the first target device in a second area of the first device card, wherein the second information includes at least one of the following information: current mode information of the first target device, control information for controlling the first target device.
8. The method of claim 5, wherein after presenting the information of the first target device with the first device card, the method further comprises:
receiving a change message for indicating that first information and/or second information of the first target device is changed;
updating information of the first target device shown on the first device card based on the change message.
9. The method of any of claims 1 to 8, wherein the front-end resource package comprises an H5 resource package.
10. An apparatus for updating an application, comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining a target function which is required to be updated and is included in a target application under the condition that the target application is required to be updated;
an obtaining module, configured to obtain a front-end resource packet corresponding to the target function;
and the updating module is used for updating the resource package of the target application by utilizing the front-end resource package so as to obtain the updated target application.
11. A computer-readable storage medium, in which a computer program is stored, wherein the computer program is arranged to perform the method of any of claims 1 to 9 when executed.
12. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, and wherein the processor is arranged to execute the computer program to perform the method of any of claims 1 to 9.
CN202011488951.XA 2020-12-16 2020-12-16 Application updating method and device, storage medium and electronic device Pending CN112486545A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011488951.XA CN112486545A (en) 2020-12-16 2020-12-16 Application updating method and device, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011488951.XA CN112486545A (en) 2020-12-16 2020-12-16 Application updating method and device, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN112486545A true CN112486545A (en) 2021-03-12

Family

ID=74916480

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011488951.XA Pending CN112486545A (en) 2020-12-16 2020-12-16 Application updating method and device, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN112486545A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744008A (en) * 2016-05-11 2016-07-06 百度在线网络技术(北京)有限公司 Intelligent home platform, and system updating method and device applied to intelligent home platform
CN107846465A (en) * 2017-11-13 2018-03-27 北京趣拿软件科技有限公司 Update the method and apparatus of client resource bag
CN110659053A (en) * 2019-10-10 2020-01-07 珠海格力电器股份有限公司 Program updating method, device, storage medium and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105744008A (en) * 2016-05-11 2016-07-06 百度在线网络技术(北京)有限公司 Intelligent home platform, and system updating method and device applied to intelligent home platform
CN107846465A (en) * 2017-11-13 2018-03-27 北京趣拿软件科技有限公司 Update the method and apparatus of client resource bag
CN110659053A (en) * 2019-10-10 2020-01-07 珠海格力电器股份有限公司 Program updating method, device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN111245898B (en) Network equipment online method, device, server and storage medium
CN111371638B (en) Intelligent equipment testing method and device, server and storage medium
CN106897086A (en) Method, apparatus and system for upgraded machine people's operating system
CN103380415A (en) Method and device for updating firmware based on device management command
CN109726108B (en) Front-end code testing method, device, system and medium based on analog data
CN105259806A (en) Controller upgrade method and system, main controller and slave controller
CN111258897A (en) Service platform testing method, device and system
CN111866160B (en) Multi-machine control method, device, equipment and storage medium
CN113407157B (en) Object model determining method and device, storage medium and electronic device
CN112527397A (en) Method and device for modifying basic input output system options and computer equipment
CN112034732B (en) Semi-physical satellite simulation system and simulation method
CN111934956B (en) Equipment configuration method and device, storage medium and electronic device
CN111427602B (en) Method for upgrading firmware on line of intelligent platform management controller of VPX case
CN114510006A (en) Remote testing method, device, equipment and storage medium for cabin domain controller
CN113590101A (en) Intelligent device function page configuration method, server and client
CN113254038A (en) Upgrading confirmation method, server, wire controller and mobile terminal
CN111858364A (en) Parameter configuration method, device and system of test terminal
CN112486545A (en) Application updating method and device, storage medium and electronic device
CN113572816B (en) Equipment control processing method and device, storage medium and electronic device
CN112307379B (en) Page generation method, device and equipment
CN113179181B (en) Data acquisition method, device and system, data processing device and electronic equipment
CN114268650A (en) Configuration method and system for establishing communication connection
CN112817593A (en) Control page display method and device, storage medium and electronic device
CN109901853A (en) A kind of upgrade method and equipment, system
CN112378034A (en) Central air-conditioning control system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210312