CN116248647A - Method and device for sending resource package, storage medium and electronic device - Google Patents

Method and device for sending resource package, storage medium and electronic device Download PDF

Info

Publication number
CN116248647A
CN116248647A CN202211718744.8A CN202211718744A CN116248647A CN 116248647 A CN116248647 A CN 116248647A CN 202211718744 A CN202211718744 A CN 202211718744A CN 116248647 A CN116248647 A CN 116248647A
Authority
CN
China
Prior art keywords
target application
resource
resource package
latest version
accounts
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
CN202211718744.8A
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
Haier Uplus Intelligent Technology Beijing Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Haier Uplus Intelligent Technology Beijing 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, Haier Uplus Intelligent Technology Beijing Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202211718744.8A priority Critical patent/CN116248647A/en
Publication of CN116248647A publication Critical patent/CN116248647A/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/2871Implementation details of single intermediate entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application discloses a method and a device for sending a resource packet, a storage medium and an electronic device, and relates to the technical field of smart families, wherein the method for sending the resource packet comprises the following steps: pushing an update message to a target application under the condition that a first resource package in a server is detected to be updated, wherein the update message is used for indicating the target application to acquire the latest version of the first resource package from the server so as to update the resource package in the target application; and responding to the acquisition request sent by the target application, and sending the first resource package of the latest version to the target application. By adopting the technical scheme, the problem that the application is opened slowly because the latest resource package is checked and acquired only when the application is opened is solved.

Description

Method and device for sending resource package, storage medium and electronic device
Technical Field
The present invention relates to the technical field of smart home, and in particular, to a method and apparatus for sending a resource packet, a storage medium, and an electronic apparatus.
Background
Along with the rapid iteration of Application (APP) version, the user quantity is gradually improved, the access quantity of the user is also larger and larger, but along with the increase of the number of APP daily active users, the user experience of the APP is more important, the new function of the APP is that one project needs to be improved when the user uses the APP for the first time, however, the APP can call the interface to inquire whether the resource package is updated every time the user opens the APP, the latest resource package is downloaded to the local place if the latest resource package is updated, and then the latest resource package is used by the user, and the interface is called if the resource package is not updated, so that the pressure of a server is caused, the loading time of the resource is prolonged, and the user experience is reduced. In addition, if the pressure of the server is exponentially increased under the condition of high concurrency, the downloading speed is low due to the fact that users download in the same time period, and the experience of the users is seriously affected.
Aiming at the problem that in the related art, an application only checks to acquire the latest resource package when being opened, so that the opening time of the application is slower, no effective solution is proposed at present.
Accordingly, there is a need for improvements in the related art to overcome the drawbacks of the related art.
Disclosure of Invention
The embodiment of the invention provides a method and a device for sending a resource package, a storage medium and an electronic device, which are used for at least solving the problem that the application is opened slowly because the latest resource package is checked and acquired only when the application is opened.
According to an aspect of the embodiment of the present invention, there is provided a method for transmitting a resource packet, including: pushing an update message to a target application under the condition that a first resource package in a server is detected to be updated, wherein the update message is used for indicating the target application to acquire the latest version of the first resource package from the server so as to update the resource package in the target application; and responding to the acquisition request sent by the target application, and sending the first resource package of the latest version to the target application.
In one exemplary embodiment, pushing an update message to a target application includes: grouping all the accounts corresponding to the target application according to a preset rule to obtain a plurality of groups of accounts; and pushing an update message to a target application corresponding to each group of accounts in the plurality of groups of accounts according to a preset time interval.
In an exemplary embodiment, grouping all accounts corresponding to the target application according to a preset rule includes: grouping all the accounts corresponding to the target application according to the geographic position corresponding to the account; or grouping all the accounts corresponding to the target application according to the activity degree of the accounts; or grouping all the accounts corresponding to the target application according to the equipment where the target application corresponding to the account is located.
In an exemplary embodiment, pushing an update message to a target application corresponding to each of the plurality of groups of accounts at a preset time interval includes: calling a message pushing service and determining a message middleware; and pushing an update message to a target application corresponding to each group of accounts in the plurality of groups of accounts through the message middleware according to a preset time interval.
In an exemplary embodiment, sending the latest version of the first resource package to the target application includes: determining whether the first resource package of the latest version exists in a cache of a server; under the condition that the first resource package of the latest version exists in the cache, the first resource package of the latest version in the cache is sent to the target application; under the condition that the first resource package of the latest version does not exist in the cache, acquiring the first resource package of the latest version from a database, and transmitting the acquired first resource package of the latest version to the target application; after the first resource package of the latest version is obtained from the database, the first resource package of the latest version is stored in the cache.
In one exemplary embodiment, pushing an update message to a target application includes: pushing a resource package identifier of the first resource package to the target application; wherein the update message includes the resource package identifier; responding to the acquisition request sent by the target application, sending the first resource package of the latest version to the target application, wherein the method comprises the following steps: determining a target downloading address of the first resource package of the latest version according to the resource package identifier carried in the acquisition request; and sending the target download address to the target application.
In an exemplary embodiment, the method further comprises: and under the condition that the existence of a second resource packet in the server is detected, directly sending the second resource packet or a download address of the second resource packet to the target application, wherein the second resource packet is a newly-built resource packet in a preset time.
According to another aspect of the embodiment of the present invention, there is also provided a device for transmitting a resource packet, including: the pushing module is used for pushing an update message to a target application under the condition that the first resource package in the server is detected to be updated, wherein the update message is used for indicating the target application to acquire the first resource package of the latest version from the server so as to update the resource package in the target application; and the sending module is used for responding to the acquisition request sent by the target application and sending the first resource packet of the latest version to the target application.
In an exemplary embodiment, the pushing module is further configured to group all accounts corresponding to the target application according to a preset rule, so as to obtain multiple groups of accounts; and pushing an update message to a target application corresponding to each group of accounts in the plurality of groups of accounts according to a preset time interval.
In an exemplary embodiment, the pushing module is further configured to group all accounts corresponding to the target application according to a preset rule by: grouping all the accounts corresponding to the target application according to the geographic position corresponding to the account; or grouping all the accounts corresponding to the target application according to the activity degree of the accounts; or grouping all the accounts corresponding to the target application according to the equipment where the target application corresponding to the account is located.
In an exemplary embodiment, the pushing module is further configured to invoke a message pushing service and determine a message middleware; and pushing an update message to a target application corresponding to each group of accounts in the plurality of groups of accounts through the message middleware according to a preset time interval.
In an exemplary embodiment, the sending module is further configured to determine whether the latest version of the first resource packet exists in a cache of the server; under the condition that the first resource package of the latest version exists in the cache, the first resource package of the latest version in the cache is sent to the target application; under the condition that the first resource package of the latest version does not exist in the cache, acquiring the first resource package of the latest version from a database, and transmitting the acquired first resource package of the latest version to the target application; after the first resource package of the latest version is obtained from the database, the first resource package of the latest version is stored in the cache.
In an exemplary embodiment, the pushing module is further configured to push, to the target application, a resource package identifier of the first resource package; wherein the update message includes the resource package identifier; the sending module 54 is further configured to determine, according to the resource packet identifier carried in the acquisition request, a target download address of the first resource packet of the latest version; and sending the target download address to the target application.
In an exemplary embodiment, the sending module is further configured to directly send, when it is detected that a second resource packet exists in the server, the second resource packet or a download address of the second resource packet to the target application, where the second resource packet is a resource packet newly created in a preset time.
According to still another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium having a computer program stored therein, wherein the computer program is configured to execute the above-described method for transmitting a resource package when executed.
According to still another aspect of the embodiments of the present invention, there is further provided an electronic device including a memory, a processor, and a computer program stored on the memory and executable on the processor, wherein the processor executes the method for sending a resource packet by using the computer program.
According to the method and the device, under the condition that the first resource package in the server is detected to be updated, an update message is pushed to the target application, the target application is instructed to acquire the first resource package of the latest version from the server to update the resource package in the target application, and then the acquisition request sent by the target application is responded, and the first resource package of the latest version is sent to the target application. Under the condition that the resource package in the server is updated, the application is informed to acquire the latest version of the resource package from the server for updating, so that when the application is opened by a user, the latest version of the resource package in the application is not required to be updated, the problem that the application is slower in opening time because the application is checked and acquired only when the application is opened is solved, and the experience of the user for using the application is improved.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required to be used in the description of the embodiments or the prior art will be briefly described below, and it will be obvious to those skilled in the art that other drawings can be obtained from these drawings without inventive effort.
Fig. 1 is a schematic diagram of a hardware environment of a method for sending a resource packet according to an embodiment of the present application;
fig. 2 is a flowchart of a method of transmitting a resource packet according to an embodiment of the present invention;
fig. 3 is a timing diagram of a method of transmitting a resource packet according to an embodiment of the present invention;
fig. 4 is a frame diagram of a method of transmitting a resource packet according to an embodiment of the present invention;
fig. 5 is a block diagram of a transmission apparatus of a resource packet according to an embodiment of the present invention.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will be made in detail and with reference to the accompanying drawings in the embodiments of the present application, it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
According to one aspect of the embodiments of the present application, a method for sending a resource packet is provided. The resource package sending method is widely applied to full-house intelligent digital control application scenes such as intelligent Home (Smart Home), intelligent Home equipment ecology, intelligent Home (Intelligence House) ecology and the like. Alternatively, in the present embodiment, the above-described method of transmitting the resource packet may be applied to a hardware environment constituted by the terminal device 102 and the server 104 as shown in fig. 1. As shown in fig. 1, the server 104 is connected to the terminal device 102 through a network, and may be used to provide services (such as application services and the like) for a terminal or a client installed on the terminal, a database may be set on the server or independent of the server, for providing data storage services for the server 104, and cloud computing and/or edge computing services may be configured on the server or independent of the server, for providing data computing services for the server 104.
The network may include, but is not limited to, at least one of: wired network, wireless network. The wired network may include, but is not limited to, at least one of: a wide area network, a metropolitan area network, a local area network, and the wireless network may include, but is not limited to, at least one of: WIFI (Wireless Fidelity ), bluetooth. The terminal device 102 may not be limited to a PC, a mobile phone, a tablet computer, an intelligent air conditioner, an intelligent smoke machine, an intelligent refrigerator, an intelligent oven, an intelligent cooking range, an intelligent washing machine, an intelligent water heater, an intelligent washing device, an intelligent dish washer, an intelligent projection device, an intelligent television, an intelligent clothes hanger, an intelligent curtain, an intelligent video, an intelligent socket, an intelligent sound box, an intelligent fresh air device, an intelligent kitchen and toilet device, an intelligent bathroom device, an intelligent sweeping robot, an intelligent window cleaning robot, an intelligent mopping robot, an intelligent air purifying device, an intelligent steam box, an intelligent microwave oven, an intelligent kitchen appliance, an intelligent purifier, an intelligent water dispenser, an intelligent door lock, and the like.
In order to solve the above-mentioned problem, in this embodiment, a method for sending a resource packet is provided, including but not limited to being applied to the server 104, and fig. 2 is a flowchart of a method for sending a resource packet according to an embodiment of the present invention, where the flowchart includes the following steps:
step S202, under the condition that the first resource package in a server is detected to be updated, an update message is pushed to a target application, wherein the update message is used for indicating the target application to acquire the first resource package of the latest version from the server so as to update the resource package in the target application;
it should be noted that, the server in the embodiment of the present application is a server for managing a resource package of a target application.
As an alternative example, the first resource package may be all resource packages required by the target application, and further, the update message is pushed to the target application whenever the resource package has an update. It should be noted that, in the case that the first resource packet is all the resource packets required by the target application, sending the latest version of the first resource packet to the target application includes: and sending all the resource packages of the latest version, and only sending the resource packages updated or newly built.
As an alternative example, the first resource packet may also be one of all the resource packets of the target application, or one of the resource packets that did not exist before the target application.
As an alternative example, in case that the first resource package in the server is detected to be updated, the latest version of the first resource package may also be directly sent to the target application.
As an optional example, after the target application acquires the update message, the interface of the server is called according to the update message, the updated first resource package in the server is acquired, and then the acquired first resource package is installed to update the resource package of the target application.
As an alternative example, the manager may manage the resource packages in the server through the configuration page corresponding to the server, for example, create a new resource package, delete a resource package, update an original resource package, and so on. And then the server sends an update request to the target application when detecting that the self-managed resource package is updated.
It should be noted that, in the embodiment of the present application, the target application is in a state of running in the background on the terminal device where the target application is located, and then after the target application obtains the update message, the target application may immediately obtain the updated resource package from the server.
In an exemplary embodiment, if the update message is directly sent to the target application corresponding to all the accounts when the update of the resource package of the target application is detected, the target application corresponding to all the accounts may request to obtain the updated resource package from the server at the same time, and further the concurrency is too large, so that the server has a larger pressure. And in order to reduce the pressure of the server, grouping all the accounts corresponding to the target applications, pushing update messages to the target applications corresponding to each group of accounts in sequence, and enabling the target applications corresponding to each group of accounts to acquire updated resource packages from the server in sequence. Assuming that the target application corresponds to 100 ten thousand accounts, the 100 ten thousand accounts can be divided into 100 account groups, and update messages are sent to the target application corresponding to each account group in turn.
In one exemplary embodiment, pushing the update message to the target application may be accomplished by the following steps S11-S12:
step S11: grouping all the accounts corresponding to the target application according to a preset rule to obtain a plurality of groups of accounts;
in an exemplary embodiment, the grouping of all the accounts corresponding to the target application according to the preset rule may be implemented in the following manner one, two, or three:
mode one: grouping all the accounts corresponding to the target application according to the geographic position corresponding to the account;
it should be noted that the geographic location may be a city or province where the user corresponding to the account number is located. And then all the accounts corresponding to the target application can be grouped according to the city or the province, so that one city corresponds to one group of accounts or one province corresponds to one group of accounts, and further the target application in the same city or the same province receives the update message at the same time point and updates the resource package at the same time.
Mode two: grouping all the accounts corresponding to the target application according to the activity degree of the accounts;
it should be noted that, in the embodiment of the present application, accounts with the same activity level may be divided into the same group, and the account with high activity level may first receive the update message, and then update the resource package.
Mode three: and grouping all the accounts corresponding to the target application according to the equipment where the target application corresponding to the account is located.
That is, if the target applications corresponding to the two accounts are all running on the same type of device (e.g., refrigerator), the two accounts may be further divided into the same group. And the target application corresponding to each group of account numbers runs on the same type of equipment.
It should be noted that, if the accounts of the account groups corresponding to the devices of the target device type are too many, the account groups corresponding to the devices of the target device type may be further grouped, and specifically, may be grouped according to the first mode or the second mode.
Step S12: and pushing an update message to a target application corresponding to each group of accounts in the plurality of groups of accounts according to a preset time interval.
As an alternative example, the preset time interval may be 10 minutes, 30 minutes, etc. That is, after the update message is sent to all the target applications corresponding to the current account group, the update message is sent to all the target applications corresponding to the next account group at preset time intervals.
In an exemplary embodiment, the above step S12 may be implemented by: calling a message pushing service and determining a message middleware; and pushing an update message to a target application corresponding to each group of accounts in the plurality of groups of accounts through the message middleware according to a preset time interval.
As an alternative example, the message middleware may be kafka. The message pushing service can call a message channel through a message middleware to push update messages to target applications corresponding to each group of accounts
Step S204, in response to the acquisition request sent by the target application, sending the first resource packet of the latest version to the target application.
The target application may immediately send an acquisition request to the target application after acquiring the update message sent by the server. Illustratively, the target application may send the acquisition request to the server by invoking an interface of the server.
In an exemplary embodiment, the step S204 may be implemented by the following steps S21-S23:
step S21: determining whether the first resource package of the latest version exists in a cache of a server;
step S22: under the condition that the first resource package of the latest version exists in the cache, the first resource package of the latest version in the cache is sent to the target application;
step S23: under the condition that the first resource package of the latest version does not exist in the cache, acquiring the first resource package of the latest version from a database, and transmitting the acquired first resource package of the latest version to the target application; after the first resource package of the latest version is obtained from the database, the first resource package of the latest version is stored in the cache.
It should be noted that, because there are multiple target applications corresponding to the accounts, the target applications send the acquisition requests, and are all for acquiring the updated latest version of the first resource packet, so that the server obtains the latest version of the first resource packet from the database after acquiring the first target application and sending the latest version of the first resource packet to the first target application, and then stores the latest version of the first resource packet in the cache after acquiring the acquisition requests of other target applications, so that searching for database acquisition is avoided, and the sending efficiency of the resource packet is improved.
In one exemplary embodiment, pushing an update message to a target application includes: pushing a resource package identifier of the first resource package to the target application; wherein the update message includes the resource package identifier; responding to the acquisition request sent by the target application, sending the first resource package of the latest version to the target application, wherein the method comprises the following steps: determining a target downloading address of the first resource package of the latest version according to the resource package identifier carried in the acquisition request; and sending the target download address to the target application.
That is, the server is provided with the resource package identifier of the first resource package in the update request sent to the target application, so that the target application can access the interface of the server according to the resource package identifier of the resource package, further obtain the target download address sent by the server, and further the target application can download the first resource package of the latest version according to the target download address.
In an exemplary embodiment, in a case that a second resource packet exists in the server, the second resource packet or a download address of the second resource packet is directly sent to the target application, where the second resource packet is a resource packet newly created in a preset time.
That is, if the server detects that the administrator has newly added a second resource package, the second resource package or the download address of the second resource package may be directly transmitted to the target application.
By the steps, under the condition that the first resource package in the server is detected to be updated, an update message is pushed to the target application, the target application is instructed to acquire the first resource package of the latest version from the server to update the first resource package in the target application, and then the first resource package of the latest version is sent to the target application in response to the acquisition request sent by the target application. Under the condition that the resource package in the server is updated, the application is informed to acquire the latest version of the resource package from the server for updating, so that when the application is opened by a user, the latest version of the resource package in the application is not required to be updated, the problem that the application is slower in opening time because the application is checked and acquired only when the application is opened is solved, and the experience of the user for using the application is improved.
It will be apparent that the embodiments described above are merely some, but not all, embodiments of the invention. For better understanding of the above method, the following description will explain the above process with reference to the examples, but is not intended to limit the technical solution of the embodiments of the present invention, specifically:
in an alternative embodiment, fig. 3 is a timing diagram of a method for sending a resource packet according to an embodiment of the present invention, as shown in fig. 3, may mainly include two major parts, where the first part is that an administrator uploads the latest resource packet, and information of the resource packet in a server is changed; the second part is that the server pushes the latest resource package information to the APP through push information (equivalent to the update information), and then the APP calls an interface for pulling the resource package to acquire the latest resource package.
As an alternative example, fig. 4 is a frame diagram of a method for transmitting a resource packet according to an embodiment of the present invention; as shown in fig. 4, the architecture mainly comprises three parts, namely, resource package operation, message pushing and resource package updating. Firstly, an operator can upload an updated resource package to a server, the server monitors that the resource package is updated, then invokes a push service to distribute the updated resource package to a user push message, and after the user receives the push message, the user invokes an interface to pull the latest resource package to update the user, and the whole process is insensitive to the user in the background, so that the use experience of the user is improved, and the pressure of the server is reduced.
It should be noted that, in the embodiment of the present application, the user can use the latest function at the first time by using the push message, and the whole update process is not felt by the user, so that the user experience is improved, the request amount of the service is reduced, the pressure of the server is reduced, and the service stability is improved.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising several instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method of the various embodiments of the present invention.
The embodiment also provides a device for sending a resource packet, which is used for implementing the foregoing embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware, are also possible and contemplated.
Fig. 5 is a block diagram of a transmission apparatus of a resource packet according to an embodiment of the present invention, the apparatus including:
a pushing module 52, configured to, when it is detected that a first resource packet in a server is updated, push an update message to a target application, where the update message is used to instruct the target application to obtain, from the server, the first resource packet of the latest version to update a resource packet in the target application;
and the sending module 54 is configured to send, to the target application, the first resource packet of the latest version in response to the acquisition request sent by the target application.
By the device, under the condition that the first resource package in the server is detected to be updated, an update message is pushed to the target application, the target application is instructed to acquire the first resource package of the latest version from the server to update the first resource package in the target application, and then the acquisition request sent by the target application is responded, and the first resource package of the latest version is sent to the target application. Under the condition that the resource package in the server is updated, the application is informed to acquire the latest version of the resource package from the server for updating, so that when the application is opened by a user, the latest version of the resource package in the application is not required to be updated, the problem that the application is slower in opening time because the application is checked and acquired only when the application is opened is solved, and the experience of the user for using the application is improved.
In an exemplary embodiment, the pushing module 52 is further configured to group all accounts corresponding to the target application according to a preset rule, so as to obtain multiple groups of accounts; and pushing an update message to a target application corresponding to each group of accounts in the plurality of groups of accounts according to a preset time interval.
In an exemplary embodiment, the pushing module 52 is further configured to group all accounts corresponding to the target application according to a preset rule by: grouping all the accounts corresponding to the target application according to the geographic position corresponding to the account; or grouping all the accounts corresponding to the target application according to the activity degree of the accounts; or grouping all the accounts corresponding to the target application according to the equipment where the target application corresponding to the account is located.
In an exemplary embodiment, the pushing module 52 is further configured to invoke a message pushing service to determine message middleware; and pushing an update message to a target application corresponding to each group of accounts in the plurality of groups of accounts through the message middleware according to a preset time interval.
In an exemplary embodiment, the sending module 54 is further configured to determine whether the latest version of the first resource packet exists in the cache of the server; under the condition that the first resource package of the latest version exists in the cache, the first resource package of the latest version in the cache is sent to the target application; under the condition that the first resource package of the latest version does not exist in the cache, acquiring the first resource package of the latest version from a database, and transmitting the acquired first resource package of the latest version to the target application; after the first resource package of the latest version is obtained from the database, the first resource package of the latest version is stored in the cache.
In an exemplary embodiment, the pushing module 52 is further configured to push, to the target application, a resource package identifier of the first resource package; wherein the update message includes the resource package identifier; the sending module 54 is further configured to determine, according to the resource packet identifier carried in the acquisition request, a target download address of the first resource packet of the latest version; and sending the target download address to the target application.
In an exemplary embodiment, the sending module 54 is further configured to directly send, when it is detected that the second resource packet exists in the server, the second resource packet or a download address of the second resource packet to the target application, where the second resource packet is a resource packet newly created in a preset time.
Embodiments of the present invention also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
Alternatively, in the present embodiment, the above-described storage medium may be configured to store a computer program for performing the steps of:
s1, under the condition that a first resource package in a server is detected to be updated, pushing an update message to a target application, wherein the update message is used for indicating the target application to acquire the first resource package of the latest version from the server so as to update the resource package in the target application;
s2, responding to the acquisition request sent by the target application, and sending the first resource package of the latest version to the target application.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
An embodiment of the invention also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
s1, under the condition that a first resource package in a server is detected to be updated, pushing an update message to a target application, wherein the update message is used for indicating the target application to acquire the first resource package of the latest version from the server so as to update the resource package in the target application;
s2, responding to the acquisition request sent by the target application, and sending the first resource package of the latest version to the target application.
In an exemplary embodiment, the electronic apparatus may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps 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 foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application and are intended to be comprehended within the scope of the present application.

Claims (10)

1. A method for transmitting a resource packet, comprising:
pushing an update message to a target application under the condition that a first resource package in a server is detected to be updated, wherein the update message is used for indicating the target application to acquire the latest version of the first resource package from the server so as to update the resource package in the target application;
and responding to the acquisition request sent by the target application, and sending the first resource package of the latest version to the target application.
2. The method for sending a resource packet according to claim 1, wherein pushing the update message to the target application comprises:
grouping all the accounts corresponding to the target application according to a preset rule to obtain a plurality of groups of accounts; and pushing an update message to a target application corresponding to each group of accounts in the plurality of groups of accounts according to a preset time interval.
3. The method for sending a resource package according to claim 2, wherein grouping all accounts corresponding to the target application according to a preset rule includes:
grouping all the accounts corresponding to the target application according to the geographic position corresponding to the account; or alternatively
Grouping all the accounts corresponding to the target application according to the activity degree of the accounts; or alternatively
And grouping all the accounts corresponding to the target application according to the equipment where the target application corresponding to the account is located.
4. The method for sending a resource package according to claim 2, wherein pushing an update message to a target application corresponding to each of the plurality of groups of accounts according to a preset time interval includes:
calling a message pushing service and determining a message middleware;
and pushing an update message to a target application corresponding to each group of accounts in the plurality of groups of accounts through the message middleware according to a preset time interval.
5. The method for sending a resource packet according to claim 1, wherein sending the first resource packet of the latest version to the target application comprises:
determining whether the first resource package of the latest version exists in a cache of a server;
under the condition that the first resource package of the latest version exists in the cache, the first resource package of the latest version in the cache is sent to the target application;
under the condition that the first resource package of the latest version does not exist in the cache, acquiring the first resource package of the latest version from a database, and transmitting the acquired first resource package of the latest version to the target application; after the first resource package of the latest version is obtained from the database, the first resource package of the latest version is stored in the cache.
6. The method for transmitting a resource packet according to claim 1, wherein,
pushing the update message to the target application includes: pushing a resource package identifier of the first resource package to the target application; wherein the update message includes the resource package identifier;
responding to the acquisition request sent by the target application, sending the first resource package of the latest version to the target application, wherein the method comprises the following steps: determining a target downloading address of the first resource package of the latest version according to the resource package identifier carried in the acquisition request; and sending the target download address to the target application.
7. The method for transmitting a resource packet according to claim 1, further comprising: and under the condition that the existence of a second resource packet in the server is detected, directly sending the second resource packet or a download address of the second resource packet to the target application, wherein the second resource packet is a newly-built resource packet in a preset time.
8. A transmission apparatus for a resource packet, comprising:
the pushing module is used for pushing an update message to a target application under the condition that the first resource package in the server is detected to be updated, wherein the update message is used for indicating the target application to acquire the first resource package of the latest version from the server so as to update the resource package in the target application;
and the sending module is used for responding to the acquisition request sent by the target application and sending the first resource packet of the latest version to the target application.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program when run performs the method of any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to execute the method according to any of claims 1 to 7 by means of the computer program.
CN202211718744.8A 2022-12-29 2022-12-29 Method and device for sending resource package, storage medium and electronic device Pending CN116248647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211718744.8A CN116248647A (en) 2022-12-29 2022-12-29 Method and device for sending resource package, storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211718744.8A CN116248647A (en) 2022-12-29 2022-12-29 Method and device for sending resource package, storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN116248647A true CN116248647A (en) 2023-06-09

Family

ID=86632236

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211718744.8A Pending CN116248647A (en) 2022-12-29 2022-12-29 Method and device for sending resource package, storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN116248647A (en)

Similar Documents

Publication Publication Date Title
CN114697150B (en) Command issuing method and device, storage medium and electronic device
CN114641974A (en) Resource subscription method, device and storage medium
CN116248647A (en) Method and device for sending resource package, storage medium and electronic device
CN116614858A (en) Data transmission method and device, storage medium and electronic equipment
CN116107975A (en) Control method and device of equipment, storage medium and electronic device
CN115174512A (en) Message pushing method and device, storage medium and electronic device
CN114938365A (en) Method and device for updating functional module, storage medium and electronic device
CN115277412B (en) Edge gateway upgrading method and device, storage medium and electronic device
CN115174513B (en) Message pushing method and device, storage medium and electronic device
CN115296948B (en) Scene information updating method and device, storage medium and electronic device
CN115296947B (en) Control command response method and device, storage medium and electronic device
CN115174380B (en) Operation updating method and device of gateway equipment, storage medium and electronic device
CN115296945B (en) Control method, system and device of equipment, storage medium and electronic device
CN115484119B (en) Control method and device of equipment, storage medium and electronic device
CN116578618A (en) Method and device for generating target reflow instance, storage medium and electronic device
CN116506247A (en) Equipment state updating method and device, storage medium and electronic device
CN116366479A (en) Method and device for acquiring monitoring data, storage medium and electronic device
CN117784631A (en) Method and device for sending scene execution instruction, storage medium and electronic device
CN116436861A (en) Message sending method and device, storage medium and electronic device
CN116405564A (en) Access request processing method, processing device, storage medium and electronic device
CN115296944A (en) Scene execution system and method, storage medium, and electronic apparatus
CN116980439A (en) Label data adjusting method and device, storage medium and electronic device
CN117176791A (en) Push information sending method and device, storage medium and electronic device
CN117012242A (en) Method and device for acquiring original audio, storage medium and electronic device
CN116418613A (en) Message reflow processing method and device, storage medium and electronic device

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