CN111736890A - Data updating method and device, electronic equipment and storage medium - Google Patents

Data updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111736890A
CN111736890A CN202010536176.4A CN202010536176A CN111736890A CN 111736890 A CN111736890 A CN 111736890A CN 202010536176 A CN202010536176 A CN 202010536176A CN 111736890 A CN111736890 A CN 111736890A
Authority
CN
China
Prior art keywords
configuration information
service template
template
information
target service
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
CN202010536176.4A
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.)
Beijing Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet Information Technology 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 Beijing Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202010536176.4A priority Critical patent/CN111736890A/en
Publication of CN111736890A publication Critical patent/CN111736890A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

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)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to a data updating method, apparatus, electronic device, and storage medium. The data updating method comprises the following steps: receiving a heartbeat message sent by a service template terminal; acquiring second configuration information corresponding to the target service template identifier; comparing the first configuration information with the second configuration information; and if the first configuration information is different from the second configuration information, updating the second configuration information into the first configuration information to obtain target template information. Therefore, by receiving the heartbeat message sent by the service template terminal, under the condition that the first configuration information in the heartbeat message is different from the second configuration information in the first electronic device, the second configuration information is updated according to the first configuration information, and the target template information is obtained, so that the latest template information corresponding to the service template is always stored in the first electronic device, a basis is provided for a configuration system to timely and comprehensively obtain the latest target template information, and the aim of timely and correctly displaying the latest template content to a user is fulfilled.

Description

Data updating method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of data processing technologies, and in particular, to a data updating method and apparatus, an electronic device, and a storage medium.
Background
With the development of internet technology, the demand of internet engineering projects is increasing, and in various business demands of internet engineering projects, various exquisite cards are often required to be manufactured to show some information to users, for example, commodities are shown or recommended to users in a pop-up window notification mode. Generally, a set of service templates is designed in advance, the service templates include various contents to be filled, and then the server issues corresponding data to fill the contents in the service templates. When the contents in the service template are filled, a configuration system is usually required to configure the contents to be filled, so as to present the contents of the service template to the user. In general, a service template is adjusted according to a user's requirement and some other image factors, and after the service template is adjusted, a developer needs to perform corresponding adjustment in a configuration system according to specific adjustment information, so that the configuration system configures content to be filled.
However, developers may perform corresponding adjustments in the configuration system according to specific adjustment information, which often causes missed or wrong changes to part of information, fails to obtain the latest and most accurate service template information, and fails to timely and correctly display the latest template content to users.
Disclosure of Invention
The present disclosure provides a data updating method, an apparatus, an electronic device, and a storage medium, to at least solve the problem of missing or mistakenly changing part of information in the related art. The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a data updating method applied to a first electronic device, including:
receiving a heartbeat message sent by a service template terminal; the heartbeat message comprises a target service template identifier and corresponding first configuration information, wherein the first configuration information comprises information for performing template configuration on the target service template;
acquiring second configuration information corresponding to the target service template identifier; the second configuration information is stored in the first electronic device, and the second configuration information includes information for performing template configuration on the target service template;
comparing the first configuration information with the second configuration information;
if the first configuration information is different from the second configuration information, updating the second configuration information to be the first configuration information to obtain target template information; wherein the target template information includes the target service template identifier and the updated second configuration information.
In an exemplary embodiment, after receiving the heartbeat message sent by the service template terminal, the method includes:
detecting the sending frequency of the heartbeat message;
and if the sending frequency is less than a preset threshold value, sending an alarm notice that the sending frequency is less than the preset threshold value.
In an exemplary embodiment, the obtaining second configuration information corresponding to the target service template identifier includes:
searching a service template identifier corresponding to the target service template identifier in a preset service template identifier set to obtain second configuration information; the preset service template identifier set is stored in the first electronic device, and each service template identifier in the preset service template identifier set corresponds to a group of configuration information.
In an exemplary embodiment, before the searching for the service template identifier corresponding to the target service template identifier in the preset service template identifier set to obtain the second configuration information, the method includes:
if the preset service template identification set does not have a service template identification corresponding to the target service template identification, the heartbeat message is applied to carry out service template registration to obtain target template information corresponding to the target service template identification; wherein the target template information is stored in the first electronic device.
In an exemplary embodiment, the comparing the first configuration information and the second configuration information comprises:
if the first configuration information is the same as the second configuration information, obtaining target template information corresponding to the target service template identifier; the target template information includes the target service template identifier and corresponding second configuration information.
According to a second aspect of the embodiments of the present disclosure, there is provided a data updating method applied to a second electronic device, including:
acquiring target template information corresponding to a target service template from first electronic equipment;
analyzing the target template information to obtain a corresponding target service template identifier and target service template configuration information; the target service template configuration information comprises information for performing template configuration on the target service template;
and configuring the target service template according to the target service template identification and the target service template configuration information.
In an exemplary embodiment, the configuring the target service template according to the target service template identifier and the target service template configuration information includes:
generating a configuration item according to the target service template identification and the target service template configuration information; the configuration items are stored in the second electronic equipment, and the configuration items correspond to the target service template;
and configuring the target service template according to the configuration item.
In an exemplary embodiment, the target traffic template comprises a pop-up window template;
the configuring the target service template according to the configuration item includes:
configuring the popup template according to the configuration item to obtain a popup notice; wherein the popup notification is used for showing the content corresponding to the configuration item.
According to a third aspect of the embodiments of the present disclosure, there is provided a data updating apparatus applied to a first electronic device, including:
a heartbeat message receiving unit configured to execute receiving a heartbeat message sent by a service template terminal; the heartbeat message comprises a target service template identifier and corresponding first configuration information, wherein the first configuration information comprises information for performing template configuration on the target service template;
a configuration information obtaining unit configured to perform obtaining of second configuration information corresponding to the target service template identifier; the second configuration information is stored in the first electronic device, and the second configuration information includes information for performing template configuration on the target service template;
a configuration information comparison unit configured to perform comparison of the first configuration information and the second configuration information;
the template information updating unit is configured to update the second configuration information to the first configuration information if the first configuration information is different from the second configuration information, so as to obtain target template information; wherein the target template information includes the target service template identifier and the updated second configuration information.
In an exemplary embodiment, the apparatus further includes an exception notification unit configured to perform:
detecting the sending frequency of the heartbeat message;
and if the sending frequency is less than a preset threshold value, sending an alarm notice that the sending frequency is less than the preset threshold value.
In an exemplary embodiment, the configuration information obtaining unit is further configured to perform:
searching a service template identifier corresponding to the target service template identifier in a preset service template identifier set to obtain second configuration information; the preset service template identifier set is stored in the first electronic device, and each service template identifier in the preset service template identifier set corresponds to a group of configuration information.
In an exemplary embodiment, the apparatus further includes a first template information determination unit configured to perform:
if the preset service template identification set does not have a service template identification corresponding to the target service template identification, the heartbeat message is applied to carry out service template registration to obtain target template information corresponding to the target service template identification; wherein the target template information is stored in the first electronic device.
In an exemplary embodiment, the apparatus further includes a second template information determination unit configured to perform:
if the first configuration information is the same as the second configuration information, obtaining target template information corresponding to the target service template identifier; the target template information includes the target service template identifier and corresponding second configuration information.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a data updating apparatus applied to a second electronic device, including:
the target template information acquisition unit is configured to acquire target template information corresponding to the target service template from the first electronic equipment;
the target template information analysis unit is configured to analyze the target template information to obtain a corresponding target service template identifier and target service template configuration information; the target service template configuration information comprises information for performing template configuration on the target service template;
and the target service template configuration unit is configured to execute configuration on the target service template according to the target service template identification and the target service template configuration information.
In an exemplary embodiment, the target traffic template configuration unit is further configured to perform:
generating a configuration item according to the target service template identification and the target service template configuration information; the configuration items are stored in the second electronic equipment, and the configuration items correspond to the target service template;
and configuring the target service template according to the configuration item.
In an exemplary embodiment, the target traffic template comprises a pop-up window template;
the target service template configuration unit is further configured to perform:
configuring the popup template according to the configuration item to obtain a popup notice; wherein the popup notification is used for showing the content corresponding to the configuration item.
According to a fifth aspect of embodiments of the present disclosure, there is provided an electronic apparatus including:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data updating method described in any of the above embodiments of the first aspect and/or to implement the data updating method described in any of the above embodiments of the second aspect.
According to a sixth aspect of the embodiments of the present disclosure, there is provided a storage medium, wherein instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the data updating method described in any one of the above first aspects and/or implement the data updating method described in any one of the above second aspects.
According to a seventh aspect of embodiments of the present disclosure, there is provided a computer program product, the program product comprising a computer program, the computer program being stored in a readable storage medium, from which the computer program is read and executed by at least one processor of a device, so that the device performs the data updating method described in any one of the above first aspects, and/or implements the data updating method described in any one of the above second aspects.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
receiving a heartbeat message sent by a service template terminal; the heartbeat message comprises a target service template identifier and corresponding first configuration information, wherein the first configuration information comprises information for performing template configuration on the target service template; acquiring second configuration information corresponding to the target service template identifier; the second configuration information is stored in the first electronic device, and the second configuration information comprises information for performing template configuration on the target service template; comparing the first configuration information with the second configuration information; if the first configuration information is different from the second configuration information, updating the second configuration information into the first configuration information to obtain target template information; the target template information comprises a target service template identifier and updated second configuration information. The heartbeat message sent by the service template terminal is received, and under the condition that the first configuration information in the heartbeat message is different from the second configuration information in the first electronic device, the second configuration information is updated according to the first configuration information, and the target template information is obtained, so that the latest template information corresponding to the service template is always stored in the first electronic device, a basis is provided for a configuration system to timely and comprehensively obtain the latest target template information, and the purpose of timely and correctly displaying the latest template content to a user is achieved. It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
FIG. 1 is a diagram illustrating an application environment for a data update method, according to an exemplary embodiment.
FIG. 2 is a flow diagram illustrating a data update method according to an example embodiment.
FIG. 3 is a flow diagram illustrating a data update method according to an example embodiment.
FIG. 4 is a flow chart illustrating a method of data update according to a particular illustrative embodiment.
Fig. 5 is a block diagram illustrating a data update apparatus according to an example embodiment.
Fig. 6 is a block diagram illustrating a data update apparatus according to an example embodiment.
FIG. 7 is an internal block diagram of an electronic device for data update shown in accordance with an exemplary embodiment.
FIG. 8 is an internal block diagram of an electronic device for data updating, shown in accordance with an exemplary embodiment.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
The data updating method provided by the application can be applied to the application environment shown in fig. 1. Wherein the first electronic device 110 interacts with the second electronic device 120 through the network. The first electronic device 110 receives a heartbeat message sent by a service template terminal; the heartbeat message comprises a target service template identifier and corresponding first configuration information, wherein the first configuration information comprises information for performing template configuration on the target service template; acquiring second configuration information corresponding to the target service template identifier; the second configuration information is stored in the first electronic device 110, and the second configuration information includes information for performing template configuration on the target service template; comparing the first configuration information with the second configuration information; if the first configuration information is different from the second configuration information, updating the second configuration information into the first configuration information to obtain target template information; the target template information includes a target service template identifier and updated second configuration information, so that the first electronic device 110 always stores the template information corresponding to the latest service template, and a basis is provided for a configuration system (the second electronic device 120) to timely and comprehensively acquire the latest target template information. The first electronic device 110 may be implemented by an independent server or a server cluster composed of a plurality of servers, and the second electronic device 120 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
Fig. 2 is a flowchart illustrating a data updating method according to an exemplary embodiment, which is illustrated in fig. 2 by taking the data updating method as an example applied to the first electronic device 110 in fig. 1, and includes the following steps:
in step S100, receiving a heartbeat message sent by a service template terminal; the heartbeat message comprises a target service template identifier and corresponding first configuration information, wherein the first configuration information comprises information for performing template configuration on the target service template.
In step S200, second configuration information corresponding to the target service template identifier is obtained; and the second configuration information is stored in the first electronic equipment, and the second configuration information comprises information for template configuration of the target service template.
In step S300, the first configuration information is compared with the second configuration information.
In step S400, if the first configuration information is different from the second configuration information, updating the second configuration information to be the first configuration information to obtain target template information; the target template information comprises a target service template identifier and updated second configuration information.
The business template refers to a presentation template corresponding to a style and content of a card that needs to be presented to a user in an engineering project, for example, a style and content of a pop-up notice, a style and content of a certain area of a page, and the like. The service template terminal refers to a terminal for developing a service template, and the service template terminal can add, delete or modify the service template. A Heartbeat Message (Heartbeat Message) is a Message that a sending source sends to a receiving source that allows the receiving source to determine if and when the sending source has failed or terminated. The heartbeat information refers specifically to various information related to the service template, including a service template identifier and corresponding first configuration information. The heartbeat message is transmitted from the starting of the transmission source until the transmission source is closed, the transmission source can continuously transmit periodic or repeated messages, and when the receiving party does not receive the messages in a certain message receiving period, the receiving party can think that the transmission source can be closed, has faults or is not available currently. Heartbeat messages are often used where there is high availability or fault tolerance processing. The target service template identification refers to a unique identification for identifying the template by the project name, the module name and the template name in the project. The configuration information refers to information for configuring the service template, for example, the service template is a pop-up window notification, the pop-up window notification needs to display the length, width and height of a specific object, and the configuration information is specific data of the length, width and height, a display form in the pop-up window, and the like. The first configuration information refers to configuration information corresponding to the target service template identifier in the heartbeat information. The second configuration information refers to configuration information stored in the first electronic device and corresponding to the target service template identifier.
Specifically, a heartbeat message sent by a service template terminal is received, whether a corresponding target service template identifier exists is searched in the first electronic device according to the target service template identifier in the heartbeat message, if an identifier corresponding to the target service template identifier exists in the first electronic device, configuration information stored in the first electronic device corresponding to the identifier is acquired, and the configuration information is determined as second configuration information. And comparing the first configuration information in the heartbeat message with the second configuration information stored in the first electronic equipment, if the first configuration information is different from the second configuration information, replacing the second configuration information corresponding to the target service template identifier in the first electronic equipment with the first configuration information, and storing the updated second configuration information (the first configuration information) and the target service template identifier in the first electronic equipment together to obtain the target template information corresponding to the target service template identifier. And the configuration system configures the service template displayed to the user according to the target template information.
The data updating method receives heartbeat messages sent by a service template terminal; the heartbeat message comprises a target service template identifier and corresponding first configuration information, wherein the first configuration information comprises information for performing template configuration on the target service template; acquiring second configuration information corresponding to the target service template identifier; the second configuration information is stored in the first electronic device, and the second configuration information comprises information for performing template configuration on the target service template; comparing the first configuration information with the second configuration information; if the first configuration information is different from the second configuration information, updating the second configuration information into the first configuration information to obtain target template information; the target template information comprises a target service template identifier and updated second configuration information. The heartbeat message sent by the service template terminal is received, and under the condition that the first configuration information in the heartbeat message is different from the second configuration information in the first electronic device, the second configuration information is updated according to the first configuration information, and the target template information is obtained, so that the latest template information corresponding to the service template is always stored in the first electronic device, a basis is provided for a configuration system to timely and comprehensively obtain the latest target template information, and the purpose of timely and correctly displaying the latest template content to a user is achieved.
In an exemplary embodiment, step S100, after receiving the heartbeat message sent by the service template terminal, includes:
detecting the sending frequency of the heartbeat message; and if the sending frequency is less than the preset threshold value, sending an alarm notice that the sending frequency is less than the preset threshold value.
The preset threshold is a small value determined according to specific situations or user needs, development requirements, and the like, for example, 1 time per year or 1 time per month, and may be other values, which are merely exemplary and not specifically limited herein.
Specifically, generally, according to specific engineering project requirements, the format or content of the service template presented to the user is constantly adjusted according to specific requirements, and therefore the service template needs to be updated periodically or aperiodically (condition triggered condition), and therefore, the service template terminal sends heartbeat information to the first electronic device periodically or aperiodically correspondingly, so that the target template information stored in the first electronic device is always kept up-to-date. When a service template loses the actual use value, the service template may be deleted, and the heartbeat information of the service template will not be sent to the first electronic device, that is, the sending frequency of the heartbeat message will become smaller and smaller with the passage of time. Therefore, when the sending frequency is less than a certain threshold, the service template is considered to be deleted or invalid, an alarm notification that the sending frequency is less than a preset threshold is sent out to inform a system administrator, and the system administrator is requested to update in time.
Optionally, if the sending frequency is greater than or equal to the preset value, an alarm notification that the sending frequency is greater than or equal to the preset value is sent.
The preset value is a larger value determined according to specific situations, user needs, development requirements, and the like, for example, 10 times per day or 1 time per hour, and may be other values, which are only exemplary and not specifically limited herein.
Specifically, generally, according to specific engineering project requirements, the format or content of the service template presented to the user is adjusted according to specific requirements, and therefore the service template needs to be updated periodically or aperiodically (condition triggered condition), and therefore, the service template terminal sends heartbeat information to the first electronic device periodically or aperiodically correspondingly, so that the target template information stored in the first electronic device is always kept up-to-date. When a service template terminal frequently sends heartbeat information to the first electronic equipment, the service template is considered to be possibly in an abnormal state. Therefore, when the sending frequency is greater than or equal to the preset value, an alarm notification that the sending frequency is greater than or equal to the preset value is sent out to inform a system administrator, and the system administrator is requested to perform maintenance.
In the above exemplary embodiment, the transmission frequency of the heartbeat message is detected; and if the sending frequency is less than the preset threshold value, sending an alarm notice that the sending frequency is less than the preset threshold value. The method and the system can inform a system administrator in time after the service template is deleted or invalid, so that the system administrator can perform corresponding processing on the service template in time, avoid pushing the content of the deleted and invalid service template to a user, and inform the system administrator in time under the condition that the service template is possibly in an abnormal state, thereby improving user experience, reducing the number of service templates needing to be maintained by a project operation system, and improving the stability and response rate of the system.
In an exemplary embodiment, step S200, acquiring second configuration information corresponding to the target service template identifier includes:
searching a service template identifier corresponding to the target service template identifier in a preset service template identifier set to obtain second configuration information; the method comprises the steps that a preset service template identification set is stored in first electronic equipment, and each service template identification in the preset service template identification set corresponds to a group of configuration information.
The preset service template identifier set is a set formed by at least one service template identifier stored in the first electronic device, and each service template identifier in the preset service template identifier set corresponds to a group of configuration information.
Specifically, according to a target service template identifier for identifying a target service template, corresponding service template identifier information is searched in a preset service template identifier set, if the corresponding service template identifier information is found, it is indicated that information of the service template corresponding to the target service template identifier is originally stored in the service template identifier set in the first electronic device, configuration information corresponding to the service template identifier information is determined as second configuration information, and a data basis is provided for subsequently comparing the first configuration information with the second configuration information and obtaining the target template information.
Optionally, if a preset service template identifier set does not have a service template identifier corresponding to the target service template identifier, performing service template registration by using heartbeat messages to obtain target template information corresponding to the target service template identifier; the target template information is stored in the first electronic equipment.
Specifically, if the corresponding identification information cannot be found in the preset service template identifier set in the first electronic device, it is indicated that the preset service template identifier set in the first electronic device does not have information of the service template corresponding to the target service template identifier, at this time, in order to provide information required for configuration to the configuration system (the second electronic device), the target service template needs to be registered in the first electronic device, and the registration manner includes storing and recording the target service template identifier in the heartbeat information and the first configuration information in the first electronic device, and determining the target service template identifier and the first configuration information as the target template information corresponding to the target service template identifier. And the configuration system configures the service template displayed to the user according to the target template information.
In the above exemplary embodiment, the service template identifier corresponding to the target service template identifier is searched in the preset service template identifier set to obtain the second configuration information; the method comprises the steps that a preset service template identification set is stored in first electronic equipment, and each service template identification in the preset service template identification set corresponds to a group of configuration information. Or, if the preset service template identifier set does not have a service template identifier corresponding to the target service template identifier, performing service template registration by applying heartbeat messages to obtain target template information corresponding to the target service template identifier; the target template information is stored in the first electronic equipment. The method can provide a basis for timely and comprehensively acquiring the latest target template information for the configuration system so as to achieve the aim of timely and correctly displaying the latest template content to the user.
In an exemplary embodiment, the step S300, after comparing the first configuration information with the second configuration information, includes:
if the first configuration information is the same as the second configuration information, target template information corresponding to the target service template identifier is obtained; the target template information includes a target service template identifier and corresponding second configuration information.
Specifically, if the first configuration information is the same as the second configuration information, it is described that the first electronic device stores information of a service template corresponding to the target service template identifier, and the form and content of the target service template are not changed, and it is not necessary to update the configuration information of the target service template, the original template information is maintained, and the template information corresponding to the second configuration information is determined as the target template information.
In the above exemplary embodiment, if the first configuration information is the same as the second configuration information, the template information corresponding to the second configuration information is determined as the target template information. The method provides a basis for timely and comprehensively acquiring the latest target template information by a configuration system so as to achieve the aim of timely and correctly displaying the latest template content to the user.
Fig. 3 is a flowchart illustrating a data updating method according to an exemplary embodiment, which is illustrated in fig. 3 by taking the data updating method as an example applied to the second electronic device 120 in fig. 1, and includes the following steps:
in step S10, target template information corresponding to the target service template is obtained from the first electronic device.
In step S20, analyzing the target template information to obtain a corresponding target service template identifier and target service template configuration information; the target service template configuration information includes information for performing template configuration on the target service template.
In step S30, the target service template is configured according to the target service template identifier and the target service template configuration information.
The business template refers to the style and content of a card that needs to be presented to a user in an engineering project, for example, the style and content of a popup notification, the style and content of a certain area of a page, and the like. The target template information refers to information in the target service template, and includes target service template identification and target service template configuration information. The target service template identification refers to a unique identification for identifying the template by the project name, the module name and the template name in the project. The target service template configuration information refers to information for configuring the service template, for example, the service template is a pop-up window notification, and the pop-up window notification needs to display the length, width, and height of a specific object, and the configuration information is specific data of the length, width, and height, a display form in the pop-up window, and the like.
Specifically, target template information corresponding to a target service template is obtained, and the target template information is analyzed to obtain a corresponding target service template identifier and target service template configuration information, where the target service template configuration information includes information for performing template configuration on the target service template. And configuring the target service template according to the target service template identification and the target service template configuration information, and displaying the target service template to a user.
The data updating method comprises the steps of obtaining target template information corresponding to a target service template from first electronic equipment; analyzing the target template information to obtain a corresponding target service template identifier and target service template configuration information; the target service template configuration information comprises information for performing template configuration on the target service template; and configuring the target service template according to the target service template identification and the target service template configuration information. The target template information is information of a careful service template displayed to a user and stored in the first electronic device, and the target service template is configured according to the target template information, so that the second electronic device (configuration system) can timely and comprehensively acquire the latest target template information to provide a basis, and the purpose of timely and correctly displaying the latest template content to the user is achieved.
In an exemplary embodiment, step S30, configuring the target service template according to the target service template identifier and the target service template configuration information, includes:
generating a configuration item according to the target service template identification and the target service template configuration information; the configuration items are stored in the second electronic equipment and correspond to the target service template; and configuring the target service template according to the configuration item.
Specifically, a configuration item or a configuration form for configuring the target service template is generated according to the target service template identifier and the target service template configuration information, and the configuration item or the configuration form corresponds to the corresponding target service template one to one, including the form and the content for configuring the target service template. And configuring the target service template according to the configuration item or the configuration form, and displaying the target service template to a user. Optionally, the configuration item or configuration form is used to configure the page display of the target service template, for example, the display size, display position, and the like of the picture or text.
Optionally, the target service template comprises a pop-up window template; configuring the popup template according to the configuration item to obtain a popup notice; wherein, the popup notice is used for showing the content corresponding to the configuration item
Specifically, when the target service template is a popup template, the display form, content and style of a popup page are configured according to a configuration item or a configuration form, and a required popup notification is obtained to remind a user.
In the above exemplary embodiment, the configuration item is generated according to the target service template identifier and the target service template configuration information; the configuration items are stored in the second electronic equipment and correspond to the target service template; and configuring the target service template according to the configuration item. The method and the device can acquire the template information corresponding to the latest target service template from the first electronic equipment, and configure the target service template according to the template information corresponding to the latest target service template, so as to achieve the purpose of timely and correctly displaying the latest template content to the user.
FIG. 4 is a flow diagram illustrating a data update method, according to a specific example embodiment, as shown in FIG. 4, including:
and identifying the template according to the project name, the module name and the template name to obtain a template ID. When a template of a C-terminal (user terminal, facing a client) is initialized in a development environment, heartbeat information is sent to a system (first electronic equipment). The system (first electronic equipment) registers the template in the system (first electronic equipment) when judging that the template is detected for the first time, template information sent by the heartbeat comprises a template ID, configuration information and the like, and the system compares the received heartbeat information every time and judges whether the template information needs to be updated. When the B terminal (second electronic equipment facing to operators) starts, the project is carried out, the template information supported by the C terminal (user terminal) is pulled from the system by the module name, and a corresponding configuration form is generated according to the configuration information. Alternatively, a template with no heartbeat information for a long time, which may have been deleted from the project or which is not actively maintained, is notified to the system administrator.
The above exemplary embodiment can realize that the template can be updated at will by the C-side (user terminal), and the automatic updating of the configuration function can be realized by the B-side (second electronic device), so that the C-side (user terminal) can conveniently update the extended template in an iterative manner.
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, which are not necessarily performed in sequence, but may be performed in turn or alternately with other steps or at least some of the other steps.
FIG. 5 is a block diagram illustrating a data update apparatus according to an example embodiment. Referring to fig. 5, the apparatus includes a heartbeat message receiving unit 501, a heartbeat message receiving unit 502, a configuration information comparing unit 503, and a template information updating unit 504:
a heartbeat message receiving unit 501 configured to execute receiving a heartbeat message sent by a service template terminal; the heartbeat message comprises a target service template identifier and corresponding first configuration information, wherein the first configuration information comprises information for performing template configuration on the target service template;
a configuration information obtaining unit 502 configured to perform obtaining of second configuration information corresponding to the target service template identifier; the second configuration information is stored in the first electronic device, and the second configuration information comprises information for performing template configuration on the target service template;
a configuration information comparison unit 503 configured to perform comparison of the first configuration information and the second configuration information;
a template information updating unit 504 configured to update the second configuration information to the first configuration information if the first configuration information is different from the second configuration information, so as to obtain target template information; the target template information comprises a target service template identifier and updated second configuration information.
In an exemplary embodiment, the apparatus further comprises an exception notification unit configured to perform: detecting the sending frequency of the heartbeat message; and if the sending frequency is less than the preset threshold value, sending an alarm notice that the sending frequency is less than the preset threshold value.
In an exemplary embodiment, the configuration information obtaining unit 502 is further configured to perform: searching a service template identifier corresponding to the target service template identifier in a preset service template identifier set to obtain second configuration information; the method comprises the steps that a preset service template identification set is stored in first electronic equipment, and each service template identification in the preset service template identification set corresponds to a group of configuration information.
In an exemplary embodiment, the apparatus further includes a first template information determination unit configured to perform: if the preset service template identification set does not have a service template identification corresponding to the target service template identification, performing service template registration by using heartbeat messages to obtain target template information corresponding to the target service template identification; the target template information is stored in the first electronic equipment.
In an exemplary embodiment, the apparatus further includes a second template information determination unit configured to perform: if the first configuration information is the same as the second configuration information, target template information corresponding to the target service template identifier is obtained; the target template information includes a target service template identifier and corresponding second configuration information.
FIG. 6 is a block diagram illustrating a data update apparatus according to an example embodiment. Referring to fig. 6, the apparatus includes a target template information acquisition unit 601, a target template information parsing unit 602, and a target service template configuration unit 603:
a target template information obtaining unit 601 configured to perform obtaining target template information corresponding to a target service template from a first electronic device;
a target template information parsing unit 602 configured to perform parsing on the target template information to obtain a corresponding target service template identifier and target service template configuration information; the target service template configuration information comprises information for performing template configuration on the target service template;
a target service template configuration unit 603 configured to perform configuration on the target service template according to the target service template identifier and the target service template configuration information.
In an exemplary embodiment, the target traffic template configuration unit 603 is further configured to perform: generating a configuration item according to the target service template identification and the target service template configuration information; the configuration items are stored in the second electronic equipment and correspond to the target service template; and configuring the target service template according to the configuration item.
In an exemplary embodiment, the target traffic template comprises a pop-up window template; the target service template configuration unit 603 is further configured to perform: configuring the popup template according to the configuration item to obtain a popup notice; and the popup notice is used for showing the content corresponding to the configuration item.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 7 is a block diagram illustrating an apparatus 700 for data updating, according to an example embodiment. For example, the device 700 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to fig. 7, device 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, and a communication component 716.
The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 702 may include one or more processors 720 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 702 may include one or more modules that facilitate interaction between the processing component 702 and other components. For example, the processing component 702 may include a multimedia module to facilitate interaction between the multimedia component 708 and the processing component 702.
The memory 704 is configured to store various types of data to support operation at the device 700. Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 704 may be implemented by any type or combination of volatile or non-volatile storage devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 706 provides power to the various components of the device 700. The power components 706 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 700.
The multimedia component 708 includes a screen that provides an output interface between the device 700 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 708 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 700 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 710 is configured to output and/or input audio signals. For example, the audio component 710 includes a Microphone (MIC) configured to receive external audio signals when the device 700 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 704 or transmitted via the communication component 716. In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
The I/O interface 712 provides an interface between the processing component 702 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of the device 700. For example, the sensor assembly 714 may detect an open/closed state of the device 700, the relative positioning of components, such as a display and keypad of the device 700, the sensor assembly 714 may also detect a change in the position of the device 700 or a component of the device 700, the presence or absence of user contact with the device 700, orientation or acceleration/deceleration of the device 700, and a change in the temperature of the device 700. The sensor assembly 714 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 716 is configured to facilitate wired or wireless communication between the device 700 and other devices. The device 700 may access a wireless network based on a communication standard, such as WiFi, an operator network (such as 2G, 3G, 4G, or 5G), or a combination thereof. In an exemplary embodiment, the communication component 716 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel.
In an exemplary embodiment, the device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 704 comprising instructions, executable by the processor 720 of the device 700 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
FIG. 8 is a block diagram illustrating an apparatus 800 for data updating according to an example embodiment. For example, the device 800 may be a server. Referring to fig. 8, device 800 includes a processing component 820 that further includes one or more processors and memory resources, represented by memory 822, for storing instructions, such as applications, that are executable by processing component 820. The application programs stored in memory 822 may include one or more modules that each correspond to a set of instructions. Further, the processing component 820 is configured to execute instructions to perform the above-described method of data updating.
The device 800 may also include a power component 824 configured to perform power management for the device 800, a wired or wireless network interface 826 configured to connect the device 800 to a network, and an input/output (I/O) interface 828.
In an exemplary embodiment, a storage medium comprising instructions, such as the memory 822 comprising instructions, executable by the processor of the device 800 to perform the method described above is also provided. The storage medium may be a non-transitory computer readable storage medium, which may be, for example, a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A data updating method is applied to a first electronic device and comprises the following steps:
receiving a heartbeat message sent by a service template terminal; the heartbeat message comprises a target service template identifier and corresponding first configuration information, wherein the first configuration information comprises information for performing template configuration on the target service template;
acquiring second configuration information corresponding to the target service template identifier; the second configuration information is stored in the first electronic device, and the second configuration information includes information for performing template configuration on the target service template;
comparing the first configuration information with the second configuration information;
if the first configuration information is different from the second configuration information, updating the second configuration information to be the first configuration information to obtain target template information; wherein the target template information includes the target service template identifier and the updated second configuration information.
2. The method according to claim 1, wherein after receiving the heartbeat message sent by the traffic template terminal, the method comprises:
detecting the sending frequency of the heartbeat message;
and if the sending frequency is less than a preset threshold value, sending an alarm notice that the sending frequency is less than the preset threshold value.
3. The method of claim 1, wherein the obtaining second configuration information corresponding to the target service template identifier comprises:
searching a service template identifier corresponding to the target service template identifier in a preset service template identifier set to obtain second configuration information; the preset service template identifier set is stored in the first electronic device, and each service template identifier in the preset service template identifier set corresponds to a group of configuration information.
4. The method according to claim 3, wherein before searching for the service template identifier corresponding to the target service template identifier in the preset service template identifier set to obtain the second configuration information, the method includes:
if the preset service template identification set does not have a service template identification corresponding to the target service template identification, the heartbeat message is applied to carry out service template registration to obtain target template information corresponding to the target service template identification; wherein the target template information is stored in the first electronic device.
5. The method of claim 1, wherein comparing the first configuration information with the second configuration information comprises:
if the first configuration information is the same as the second configuration information, obtaining target template information corresponding to the target service template identifier; the target template information includes the target service template identifier and corresponding second configuration information.
6. A data updating method is applied to a second electronic device and comprises the following steps:
acquiring target template information corresponding to a target service template from first electronic equipment;
analyzing the target template information to obtain a corresponding target service template identifier and target service template configuration information; the target service template configuration information comprises information for performing template configuration on the target service template;
and configuring the target service template according to the target service template identification and the target service template configuration information.
7. The method of claim 6, wherein the configuring the target service template according to the target service template identifier and the target service template configuration information comprises:
generating a configuration item according to the target service template identification and the target service template configuration information; the configuration items are stored in the second electronic equipment, and the configuration items correspond to the target service template;
and configuring the target service template according to the configuration item.
8. A data updating device applied to a first electronic device comprises:
a heartbeat message receiving unit configured to execute receiving a heartbeat message sent by a service template terminal; the heartbeat message comprises a target service template identifier and corresponding first configuration information, wherein the first configuration information comprises information for performing template configuration on the target service template;
a configuration information obtaining unit configured to perform obtaining of second configuration information corresponding to the target service template identifier; the second configuration information is stored in the first electronic device, and the second configuration information includes information for performing template configuration on the target service template;
a configuration information comparison unit configured to perform comparison of the first configuration information and the second configuration information;
the template information updating unit is configured to update the second configuration information to the first configuration information if the first configuration information is different from the second configuration information, so as to obtain target template information; wherein the target template information includes the target service template identifier and the updated second configuration information.
9. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the data update method of any one of claims 1 to 5 and/or to implement the data update method of any one of claims 6 to 7.
10. A storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform a data update method as claimed in any one of claims 1 to 5 and/or implement a data update method as claimed in any one of claims 6 to 7.
CN202010536176.4A 2020-06-12 2020-06-12 Data updating method and device, electronic equipment and storage medium Pending CN111736890A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010536176.4A CN111736890A (en) 2020-06-12 2020-06-12 Data updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010536176.4A CN111736890A (en) 2020-06-12 2020-06-12 Data updating method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111736890A true CN111736890A (en) 2020-10-02

Family

ID=72648985

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010536176.4A Pending CN111736890A (en) 2020-06-12 2020-06-12 Data updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111736890A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113689223A (en) * 2021-09-01 2021-11-23 北京京东振世信息技术有限公司 Information generation method and device, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844310A (en) * 2017-10-24 2018-03-27 北京奇艺世纪科技有限公司 A kind of configuration information update method and system
CN108021586A (en) * 2016-10-31 2018-05-11 阿里巴巴集团控股有限公司 A kind of page generation method and device
CN108171610A (en) * 2017-12-28 2018-06-15 中国平安人寿保险股份有限公司 Page generation method, page generation equipment, storage medium and device
CN109325729A (en) * 2018-08-21 2019-02-12 平安科技(深圳)有限公司 A kind of method and server generating electronic contract
CN109388397A (en) * 2018-09-26 2019-02-26 中国平安财产保险股份有限公司 Product page generation method, system, computer equipment and storage medium
CN110597508A (en) * 2019-08-14 2019-12-20 平安国际智慧城市科技股份有限公司 Interface dynamic configuration method, device and storage medium
CN110647346A (en) * 2018-06-26 2020-01-03 北京京东尚科信息技术有限公司 Method and device for updating bill of dough

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108021586A (en) * 2016-10-31 2018-05-11 阿里巴巴集团控股有限公司 A kind of page generation method and device
CN107844310A (en) * 2017-10-24 2018-03-27 北京奇艺世纪科技有限公司 A kind of configuration information update method and system
CN108171610A (en) * 2017-12-28 2018-06-15 中国平安人寿保险股份有限公司 Page generation method, page generation equipment, storage medium and device
CN110647346A (en) * 2018-06-26 2020-01-03 北京京东尚科信息技术有限公司 Method and device for updating bill of dough
CN109325729A (en) * 2018-08-21 2019-02-12 平安科技(深圳)有限公司 A kind of method and server generating electronic contract
CN109388397A (en) * 2018-09-26 2019-02-26 中国平安财产保险股份有限公司 Product page generation method, system, computer equipment and storage medium
CN110597508A (en) * 2019-08-14 2019-12-20 平安国际智慧城市科技股份有限公司 Interface dynamic configuration method, device and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113689223A (en) * 2021-09-01 2021-11-23 北京京东振世信息技术有限公司 Information generation method and device, electronic equipment and storage medium
CN113689223B (en) * 2021-09-01 2023-08-08 北京京东振世信息技术有限公司 Information generation method, device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN105068976B (en) Ticket information display method and device
CN106547547B (en) data acquisition method and device
CN113259226B (en) Information synchronization method and device, electronic equipment and storage medium
CN112269556A (en) Information display method, device, system, equipment, server and storage medium
CN112291631A (en) Information acquisition method, device, terminal and storage medium
CN107402767B (en) Method and device for displaying push message
CN107493366B (en) Address book information updating method and device and storage medium
CN104951522B (en) Method and device for searching
CN105095296B (en) File management method and device
CN110968492B (en) Information processing method and device and storage medium
CN111736890A (en) Data updating method and device, electronic equipment and storage medium
CN109842688B (en) Content recommendation method and device, electronic equipment and storage medium
CN108012258B (en) Data traffic management method and device for virtual SIM card, terminal and server
CN111368329A (en) Message display method and device, electronic equipment and storage medium
CN114239531A (en) Template recommendation method and device, electronic equipment and storage medium
CN106851418B (en) Video recommendation method and device
CN110457084B (en) Loading method and device
CN112819061B (en) Password information identification method, device, equipment and storage medium
CN107257384B (en) Service state monitoring method and device
CN112102009A (en) Advertisement display method, device, equipment and storage medium
CN108804181B (en) Control content obtaining method and device and storage medium
US20160119259A1 (en) Method, terminal device and server for pushing message through light application
CN107241432B (en) Message receiving method and device, electronic equipment and computer storage medium
CN111131000A (en) Information transmission method, device, server and terminal
CN111143184B (en) Data processing method, device and system

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