CN109446443B - Label updating method, device, equipment and storage medium - Google Patents

Label updating method, device, equipment and storage medium Download PDF

Info

Publication number
CN109446443B
CN109446443B CN201811216273.4A CN201811216273A CN109446443B CN 109446443 B CN109446443 B CN 109446443B CN 201811216273 A CN201811216273 A CN 201811216273A CN 109446443 B CN109446443 B CN 109446443B
Authority
CN
China
Prior art keywords
configuration
information
current
determining
configuration information
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.)
Active
Application number
CN201811216273.4A
Other languages
Chinese (zh)
Other versions
CN109446443A (en
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.)
Wuhan Douyu Network Technology Co Ltd
Original Assignee
Wuhan Douyu Network 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 Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201811216273.4A priority Critical patent/CN109446443B/en
Publication of CN109446443A publication Critical patent/CN109446443A/en
Application granted granted Critical
Publication of CN109446443B publication Critical patent/CN109446443B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a label updating method, a label updating device, label updating equipment and a storage medium. The method comprises the following steps: acquiring various configurable information corresponding to a target tag identifier in a current configuration database; determining candidate configuration information meeting preset display conditions from the configurable information according to the displayable time periods in the configurable information; and determining current configuration information corresponding to the current moment according to the preset configuration rule and the number of the candidate configuration information, and performing configuration updating on the target tag according to the current configuration information. By the technical scheme of the embodiment of the invention, the automatic updating of the label can be realized, thereby greatly reducing the website maintenance cost and improving the label updating efficiency.

Description

Label updating method, device, equipment and storage medium
Technical Field
The present invention relates to data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for updating a tag.
Background
In the website development process, developers generally classify website information and set corresponding tags in the website, so that users can directly browse interested pages according to the tag information.
At present, a developer usually writes tag information such as a tag name and a corresponding access link of a tag directly into a development code to display the tag at a preset webpage position. When the tag information of a certain tag needs to be updated, a developer needs to manually modify the development code according to the updated tag information to display the updated tag.
It can be seen that, although the tag configuration mode can more conveniently configure and display tags for common tags that do not change, such as home page tags, live broadcast tags, video tags, classification tags, and the like in a live broadcast website, for active tags that need frequent changes, developers need to manually modify development codes many times, so that the website maintenance cost is greatly increased, and the tag updating efficiency is reduced.
Disclosure of Invention
The embodiment of the invention provides a label updating method, a label updating device, label updating equipment and a storage medium, which are used for realizing automatic updating of labels, greatly reducing the website maintenance cost and improving the label updating efficiency.
In a first aspect, an embodiment of the present invention provides a tag updating method, including:
acquiring various configurable information corresponding to a target tag identifier in a current configuration database;
determining candidate configuration information meeting preset display conditions from each piece of configurable information according to the displayable time period in each piece of configurable information;
and determining current configuration information corresponding to the current moment according to a preset configuration rule and the number of the candidate configuration information, and updating the configuration of the target tag according to the current configuration information.
In a second aspect, an embodiment of the present invention further provides a tag updating apparatus, including:
the configurable information acquisition module is used for acquiring various configurable information corresponding to the target tag identification in the current configuration database;
the candidate configuration information determining module is used for determining candidate configuration information meeting preset display conditions from each piece of configurable information according to the displayable time period in each piece of configurable information;
and the configuration updating module is used for determining the current configuration information corresponding to the current moment according to a preset configuration rule and the number of the candidate configuration information and updating the configuration of the target label according to the current configuration information.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a tag update method as in any embodiment of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the tag updating method according to any embodiment of the present invention.
The method comprises the steps of obtaining all configurable information corresponding to a target tag identifier in a current configuration database, and determining candidate configuration information meeting preset display conditions from all the configurable information according to displayable time periods in all the configurable information; and determining current configuration information corresponding to the current moment according to a preset configuration rule and the number of the candidate configuration information, and performing configuration updating on the target label according to the current configuration information, so that the target label can change in real time along with the change of the activity content, and any code does not need to be modified, thereby realizing automatic updating of the target label, improving the label updating efficiency, and reducing the website maintenance cost.
Drawings
Fig. 1 is a flowchart of a tag updating method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a target tag in a website according to an embodiment of the present invention;
fig. 3 is a flowchart of a tag updating method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a tag updating apparatus according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a tag updating method according to an embodiment of the present invention, which is applicable to a situation where a tag that needs to be frequently changed in a website is updated, and particularly applicable to a scenario where an active tag in a live website is updated, and also applicable to other application scenarios where a tag needs to be updated. The method can be executed by a tag updating device, which can be implemented by software and/or hardware, and can be integrated in a website management server. As shown in fig. 1, the method specifically includes the following steps:
s110, obtaining each configurable information corresponding to the target label identification in the current configuration database.
The configurable information is preset according to requirements and can be used for configuring the tag. Configurable information may include, but is not limited to, a tag name, a picture access link, a tag skip link, a exposable time period, and/or an exposable location. The tag identification may be composed of one or more of letters, numbers, and special symbols for distinguishing each tag in the website so that a certain tag can be updated on a targeted basis. Each tag identification may correspond to one or more configurable information, where each configurable information may configure a respective tag. The target tag may refer to a tag to be updated. The target tag in this embodiment may refer to an activity tag that needs to be changed frequently, and since each activity has a certain timeliness, the activity tag linking the activity needs to be changed frequently according to specific activity content. Illustratively, fig. 2 shows a schematic diagram of a target tag in a website. The "configuration entry" in the black box of fig. 2 is the target tag to be updated, so that the target tag of the "configuration entry" can be changed according to the change of the activity. The configuration database may be configured to store at least one configurable information corresponding to each tag identification. The configuration database in this embodiment may be a MySQL database in MySQL of a relational database management system, so that data may be stored in different tables, instead of storing all data in one large library, thereby improving data acquisition speed and flexibility. The configuration database can store new configurable information at any time according to the requirements of users, so that the current configuration database refers to the configuration database at the current moment.
Specifically, in this embodiment, all the configurable information corresponding to the currently stored target tag identifier may be obtained in the current configuration database according to the corresponding relationship between the tag identifier and the configurable information and the target tag identifier, so as to update the target tag.
And S120, determining candidate configuration information meeting preset display conditions from the configurable information according to the displayable time periods in the configurable information.
The exposable time period in each piece of configurable information refers to the time period of the tag which is displaying the configuration of the configurable information. Illustratively, the exposable time period may refer to a time period in which an event is held. The exposable time periods in each piece of configurable information may or may not have a partial or total time overlap, and may be preset according to user requirements. The exposable time period may include an exposable start time and an exposable end time. The preset display condition refers to a condition that a label can be displayed on a display interface at the current moment. The candidate configuration information refers to configurable information meeting preset display conditions.
Specifically, whether each piece of configurable information meets a preset display condition or not can be detected according to a displayable time period and the current time in the configurable information, and if yes, the configurable information is determined to be candidate configuration information. The candidate configuration information in this embodiment may be determined in real time according to the current time, and the target tag may correspond to one or more candidate configuration information.
It should be noted that if each piece of configurable information does not satisfy the preset display condition, it indicates that the tag does not need to be configured, updated and displayed at the current time, and at this time, the candidate configuration information may be set as a null data.
S130, determining current configuration information corresponding to the current moment according to the preset configuration rule and the number of the candidate configuration information, and updating the configuration of the target label according to the current configuration information.
The preset configuration rule may refer to a preset rule for configuring and displaying the tag. The current configuration information may refer to configuration information currently used for updating the target tag, which is determined from all candidate configuration information.
Specifically, if the number of the candidate configuration information is one, it indicates that only one piece of configurable information that can be used for updating the target tag at the current time exists in the current configuration database, and at this time, the candidate configuration information may be directly determined as the current configuration information. If the number of the candidate configuration information is multiple, it indicates that multiple pieces of configurable information which can be used for updating the target tag at the current time exist in the current configuration database, that is, the exposable time periods in the multiple pieces of candidate configuration information have partial or full time overlap. Since the target tag can be configured with only one piece of configurable information at each display time, one of the candidate configuration information needs to be selected as the current configuration information. The embodiment may randomly select one candidate configuration information as the current configuration information, or select one candidate configuration information meeting a preset display rule as the current configuration information.
After determining the current configuration information, the present embodiment may generate the current configuration information into a static file by calling an SDK (Software Development Kit) of the static file system. Illustratively, when the target tag is configured for the first time, a static file in a json (javascript Object notification) data format may be generated from the current configuration information data by calling an addconfig (data) method in the SDK, so that the front-end device may configure the target tag for the first time according to the static file. When subsequent configuration updating is carried out, the static file can be updated according to the current configuration information data by calling an updata config (data) method in the SDK, so that the target label can be automatically configured and updated according to the updated static file, the updated target label can be displayed in a corresponding displayable time period, and when the display finishing moment is reached, the target label can be automatically replaced, so that the purpose of replacing the target label is achieved, the target label can be changed in real time along with the change of the activity content, any code does not need to be modified, and the label updating efficiency is greatly improved. For example, if the tag name in the current configuration information is "competitive activity", the tag name of the target tag "configuration entry" in fig. 2 may be automatically updated to "competitive activity". In this embodiment, the display position of the target tag may also be configured and updated according to the displayable position in the current configuration information, so that the updated target tag is displayed at the preset displayable position.
It should be noted that, if the current configuration information is null data, it indicates that there is no configurable information corresponding to the target tag identifier in the current configuration database, that is, the generated static file is a null file, and at this time, after the target tag is configured and updated, the target tag will not be displayed in the display interface. The embodiment can determine the current configuration information in real time so as to automatically update the target tag in real time; the current configuration information can be determined once every preset time, so that the target label can be updated regularly every preset time, and the running speed of the system is increased.
According to the technical scheme of the embodiment, the candidate configuration information meeting the preset display condition is determined from the configurable information by acquiring the configurable information corresponding to the target tag identifier in the current configuration database and according to the displayable time period in the configurable information; according to the preset configuration rule and the number of the candidate configuration information, the current configuration information corresponding to the current moment is determined, and the target label is configured and updated according to the current configuration information, so that the target label can change in real time along with the change of the activity content, and any code does not need to be modified, thereby realizing the automatic update of the target label, improving the label updating efficiency, and reducing the website maintenance cost.
On the basis of the above technical solution, S120 may include: determining each piece of configurable information as target configuration information one by one; comparing the displayable starting time and the displayable ending time in the target configuration information with the current time respectively; and if the current time is greater than or equal to the displayable starting time and less than the displayable ending time, determining the target configuration information as candidate configuration information.
Wherein, the preset display condition can be set as: the current time is greater than or equal to the displayable starting time and less than the displayable ending time, so that the corresponding label is displayed in the displayable time period, and the corresponding label is cleared when the displayable ending time is reached.
Specifically, by determining all the configurable information as the target configuration information one by one, it can be determined one by one whether each piece of configurable information satisfies the preset presentation condition based on a manner of detecting whether the target configuration information satisfies the preset presentation condition. The current time is compared with the displayable starting time and the displayable ending time in the target configuration information respectively, when the current time is greater than or equal to the displayable starting time and is less than the displayable ending time, namely the current time is positioned between the displayable time periods, the target label can be configured and updated by using the target configuration information at the current time, and the target configuration information can be directly determined to be candidate configuration information at the moment, so that all candidate configuration information meeting the preset display condition can be determined in real time.
On the basis of the foregoing technical solution, determining the current configuration information corresponding to the current time according to the preset configuration rule and the number of candidate configuration information in S130 may include: if only one candidate configuration information exists, determining the candidate configuration information as the current configuration information corresponding to the current moment; and if at least two candidate configuration information exist, determining the current configuration information corresponding to the current moment according to a preset display rule and the configuration priority corresponding to each candidate configuration information.
The configuration priority is set in advance according to user requirements and can be used for reflecting the importance degree of the configurable information. If the importance degree of a certain configurable information is higher, the corresponding configuration priority is higher. For example, the configuration priorities may include, but are not limited to, a first priority, a second priority, and a third priority, and the degrees of importance are sequentially reduced. The preset display rule may be a rule that is preset according to actual conditions and requirements and determines current configuration information.
Exemplarily, determining the current configuration information corresponding to the current time according to the preset presentation rule and the configuration priority corresponding to each candidate configuration information may include: comparing the configuration priority corresponding to each candidate configuration information; and determining the candidate configuration information corresponding to the highest configuration priority as the current configuration information corresponding to the current moment.
Wherein, the preset display rule may be: and determining the candidate configuration information with the highest configuration priority as the current configuration information. Specifically, since the target tag can be configured and updated only by using one piece of configuration information at the same time, when there are a plurality of candidate configuration information, that is, when there are a plurality of candidate configuration information whose displayable time periods overlap, the candidate configuration information corresponding to the highest configuration priority may be determined as the current configuration information, and thus, in each update, the target tag is configured and updated by using the candidate configuration information with the highest configuration priority.
Exemplarily, determining the current configuration information corresponding to the current time according to the preset presentation rule and the configuration priority corresponding to each candidate configuration information may include: determining a configuration updating sequence according to the configuration priority corresponding to each candidate configuration information; and according to the configuration updating sequence, sequentially determining the candidate configuration information one by one as the current configuration information corresponding to the current moment.
The configuration update sequence may refer to a sequence of performing configuration update on the target tag. The configuration update sequence may also refer to the presentation sequence of the target tags. In this embodiment, the configuration priority corresponding to each candidate configuration information is different.
Specifically, in this embodiment, all candidate configuration information may be sorted according to the order of the configuration priorities from high to low, the configuration update order of the target tag is determined, and all candidate configuration information may be determined as the current configuration information one by one according to the configuration update order, so that cyclic update and display of the target tag may be implemented to increase diversity of tag display. Illustratively, if there are three candidate configuration information A, B and C, the corresponding configuration priorities are: and the third level, the second level and the first level, the determined configuration updating sequence is as follows: C-B-A, so that when the target label is updated for the first time, the candidate configuration information C is determined as the current configuration information; during the second updating, if the current configuration updating sequence is still C-B-A, determining the candidate configuration information B as the current configuration information; during the third updating, if the current configuration updating sequence is still C-B-A, determining the candidate configuration information A as the current configuration information; and during the fourth updating, if the current configuration updating sequence is still C-B-A, determining the candidate configuration information C as the current configuration information again, and executing in a circulating manner in sequence, so that the circulating display of the target label can be realized. It should be noted that, if the configuration update sequence according to the current update is different from the configuration update sequence according to the last update, the current configuration information may be re-determined according to the configuration update sequence according to the current update, so that the target tag performs the configuration cycle update according to the latest configuration update sequence.
Example two
Fig. 3 is a flowchart of a label updating method provided in the second embodiment of the present invention, and the present embodiment performs optimization based on the above embodiment: before acquiring each piece of configurable information corresponding to a target tag identifier in a current configuration database, the method further comprises the following steps: determining information to be configured corresponding to the target label identification; determining a configuration identifier corresponding to the information to be configured according to the information to be configured and each piece of existing configuration information corresponding to the target tag identifier in the current configuration database; and if the configuration identifier is a successful configuration identifier, adding the information to be configured as configurable information into the current configuration database to update the current configuration database. "wherein explanations of the same or corresponding terms as those of the above-described embodiments are omitted.
Referring to fig. 3, the tag updating method provided in this embodiment includes the following specific steps:
s210, determining information to be configured corresponding to the target label identification.
The information to be configured may be information for configuring the target tag according to actual conditions and user requirements. The information to be configured may include, but is not limited to, a tag name, a picture access link, a tag skip link, a exposable time period, and/or an exposable location.
Specifically, in this embodiment, information such as a tag name, a tag skip link, a displayable time period, a displayable position, and the like may be directly written in through a form, and then, by calling an upload (file) method, a configured tag picture is uploaded to a server, and after the upload is successful, a URL (uniform resource Locator) in a returned result of the method is determined as a picture access connection, so that information to be configured may be assembled into an array data. The embodiment can indirectly and manually control the replacement of the target label by determining the information to be configured, so that the label can be more flexibly updated according to different activities.
S220, determining a configuration identifier corresponding to the information to be configured according to the information to be configured and each existing configuration information corresponding to the target label identifier in the current configuration database.
The existing configuration information refers to information which is stored in a configuration database at the current time and is used for configuring the target tag. Each existing configuration information may also include, but is not limited to, a tag name, a picture access link, a tag skip link, a exposable time period, and/or an exposable location. The configuration identifier may include a configuration success identifier and a configuration failure identifier.
Specifically, this embodiment may detect whether the information to be configured has a configuration conflict with existing configuration information according to all existing configuration information corresponding to the target tag identifier in the current configuration database, and if so, determine that the configuration identifier corresponding to the information to be configured is a configuration failure identifier, otherwise, determine that the configuration identifier corresponding to the information to be configured is a configuration success identifier.
And S230, if the configuration identifier is a successful configuration identifier, adding the information to be configured as configurable information into the current configuration database to update the current configuration database.
Specifically, when the configuration identifier of the information to be configured is a configuration success identifier, it indicates that the target tag can be configured by using the information to be configured, and at this time, the information to be configured may be determined as configurable information corresponding to the target tag identifier, and the information to be configured is added to the current configuration data, so as to update the current configuration database. Illustratively, the embodiment may write the information to be configured data into the current configuration database Mysql by calling an insert (data) method.
It should be noted that, if the configuration identifier of the information to be configured is a configuration failure identifier, it indicates that there is a configuration conflict between the existing configuration information in the current configuration database and the information to be configured, and at this time, a configuration failure information may be generated to remind related personnel to perform configuration modification on the information to be configured.
S240, acquiring each configurable information corresponding to the target tag identification in the current configuration database.
And S250, determining candidate configuration information meeting preset display conditions from the configurable information according to the displayable time periods in the configurable information.
S260, determining current configuration information corresponding to the current moment according to the preset configuration rule and the number of the candidate configuration information, and performing configuration updating on the target label according to the current configuration information.
According to the technical scheme of the embodiment, the information to be configured corresponding to the target tag identifier is determined, so that the target tag can be manually set according to different activities and requirements, the configuration flexibility is improved, and when the configuration identifier corresponding to the information to be configured is detected to be a successfully configured identifier, the information to be configured is added to the current configuration database, so that the phenomenon that the target tag cannot be configured and updated due to configuration conflict can be avoided, and the configuration accuracy of the target tag is improved.
On the basis of the above technical solution, S220 may include: comparing the time period to be displayed in the information to be configured with the existing display time period in each existing configuration information corresponding to the target label identification in the current configuration database; if the time period to be displayed does not have time overlap with each existing display time period, determining that the configuration identifier corresponding to the information to be configured is a successful configuration identifier; if the time period to be displayed is overlapped with at least one existing display time period, detecting whether a first configuration priority corresponding to the information to be configured is the same as a second configuration priority corresponding to each existing configuration information with overlapped time; if the first configuration priority is different from each second configuration priority, determining that the configuration identifier corresponding to the information to be configured is a configuration success identifier; and if the first configuration priority is the same as at least one second configuration priority, determining that the configuration identifier corresponding to the information to be configured is a configuration failure identifier.
The embodiment may determine the configuration identifier of the information to be configured by detecting whether the information to be configured and the existing configuration information have conflicts in presentation time and configuration priority. Specifically, the time period to be displayed in the information to be configured and the existing display time period in each existing configuration information are obtained, whether the time period to be displayed is overlapped with the time of each existing display time period is detected, if no time overlap exists, it is indicated that no conflict of display time exists, and at this time, the configuration identifier corresponding to the information to be configured can be directly determined to be a configuration success identifier. If time overlap exists, second configuration priority corresponding to each existing configuration information with time overlap is obtained, whether a first configuration priority corresponding to the information to be configured is the same as each second configuration priority is detected, if the first configuration priority is the same as a certain second configuration priority, it is indicated that conflict of the configuration priorities exists, and at this time, it can be determined that the configuration identifier corresponding to the information to be configured is a configuration failure identifier. If the first configuration priority is different from each second configuration priority, it indicates that there is no conflict of configuration priorities, and at this time, it may be determined that the configuration identifier corresponding to the information to be configured is a successful configuration identifier.
For example, when detecting whether there is a time overlap between the time period to be shown and each existing time period to be shown, the present embodiment may use a getByTime (start _ time, end _ time) method to detect, where the start _ time and the end _ time are respectively a start time to be shown and an end time to be shown in the time period to be shown. The SQL (Structured Query Language) statement in the method may be: the SELECT id FROM table is _ del AND (start _ time > st AND start _ time < et) > OR (start _ time < st AND end _ time >) OR (end _ time > st AND end _ time < et) > OR (start _ time > st AND end _ time < et) >), wherein st AND et respectively refer to the existing presentation starting time AND the existing presentation ending time in a certain existing presentation period. If the returned result is not empty, the method indicates that the existing configuration information which conflicts with the time of the information to be configured exists, and if the returned result is empty, the method indicates that the existing configuration information which conflicts with the time of the information to be configured does not exist.
The following is an embodiment of a tag updating apparatus provided in an embodiment of the present invention, and the apparatus and the tag updating method in the foregoing embodiments belong to the same inventive concept, and details that are not described in detail in the embodiment of the tag updating apparatus may refer to the embodiment of the tag updating method described above.
EXAMPLE III
Fig. 4 is a schematic structural diagram of a tag updating apparatus according to a third embodiment of the present invention, where this embodiment is applicable to a situation where a tag that needs to be frequently changed in a website is updated, and the apparatus specifically includes: a configurable information acquisition module 310, a candidate configuration information determination module 320, and a configuration update module 330.
The configurable information obtaining module 310 is configured to obtain each piece of configurable information corresponding to a target tag identifier in a current configuration database; a candidate configuration information determining module 320, configured to determine, according to the displayable time period in each piece of configurable information, candidate configuration information that meets a preset display condition from each piece of configurable information; the configuration updating module 330 is configured to determine current configuration information corresponding to the current time according to a preset configuration rule and the number of candidate configuration information, and perform configuration updating on the target tag according to the current configuration information.
According to the technical scheme of the embodiment, the candidate configuration information meeting the preset display condition is determined from the configurable information by acquiring the configurable information corresponding to the target tag identifier in the current configuration database and according to the displayable time period in the configurable information; according to the preset configuration rule and the number of the candidate configuration information, the current configuration information corresponding to the current moment is determined, and the target label is configured and updated according to the current configuration information, so that the target label can change in real time along with the change of the activity content, and any code does not need to be modified, thereby realizing the automatic update of the target label, improving the label updating efficiency, and reducing the website maintenance cost.
Optionally, the candidate configuration information determining module 320 is specifically configured to:
determining each piece of configurable information as target configuration information one by one; comparing the displayable starting time and the displayable ending time in the target configuration information with the current time respectively; and if the current time is greater than or equal to the displayable starting time and less than the displayable ending time, determining the target configuration information as candidate configuration information.
Optionally, the configuration updating module 330 further includes:
a first current configuration information determining unit configured to: if only one candidate configuration information exists, determining the candidate configuration information as the current configuration information corresponding to the current moment;
a second current configuration information determining unit configured to: and if at least two candidate configuration information exist, determining the current configuration information corresponding to the current moment according to a preset display rule and the configuration priority corresponding to each candidate configuration information.
Optionally, the second current configuration information determining unit is specifically configured to:
comparing the configuration priority corresponding to each candidate configuration information; and determining the candidate configuration information corresponding to the highest configuration priority as the current configuration information corresponding to the current moment.
Optionally, the second current configuration information determining unit is further specifically configured to:
determining a configuration updating sequence according to the configuration priority corresponding to each candidate configuration information; and according to the configuration updating sequence, sequentially determining the candidate configuration information one by one as the current configuration information corresponding to the current moment.
Optionally, the apparatus further comprises:
the information to be configured determining module is used for determining information to be configured corresponding to the target tag identifier before acquiring each piece of configurable information corresponding to the target tag identifier in the current configuration database;
the configuration identifier determining module is used for determining a configuration identifier corresponding to the information to be configured according to the information to be configured and each piece of existing configuration information corresponding to the target tag identifier in the current configuration database;
and the current configuration database updating module is used for taking the information to be configured as configurable information and adding the configurable information to the current configuration database to update the current configuration database if the configuration identifier is a successful configuration identifier.
Optionally, the configuration identifier determining module is specifically configured to:
comparing the time period to be displayed in the information to be configured with the existing display time period in each existing configuration information corresponding to the target label identification in the current configuration database; if the time period to be displayed does not have time overlap with each existing display time period, determining that the configuration identifier corresponding to the information to be configured is a successful configuration identifier; if the time period to be displayed is overlapped with at least one existing display time period, detecting whether a first configuration priority corresponding to the information to be configured is the same as a second configuration priority corresponding to each existing configuration information with overlapped time; if the first configuration priority is different from each second configuration priority, determining that the configuration identifier corresponding to the information to be configured is a configuration success identifier; and if the first configuration priority is the same as at least one second configuration priority, determining that the configuration identifier corresponding to the information to be configured is a configuration failure identifier.
The tag updating device provided by the embodiment of the invention can execute the tag updating method provided by any embodiment of the invention, and has the corresponding functional module and beneficial effect of executing the tag updating method.
It should be noted that, in the embodiment of the tag updating apparatus, the included units and modules are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional modules and units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
Example four
Fig. 5 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. Referring to fig. 5, the apparatus includes:
one or more processors 410;
a memory 420 for storing one or more programs;
when the one or more programs are executed by the one or more processors 410, the one or more processors 410 are caused to implement a tag update method as set forth in any of the above embodiments, the method comprising:
acquiring various configurable information corresponding to a target tag identifier in a current configuration database;
determining candidate configuration information meeting preset display conditions from the configurable information according to the displayable time periods in the configurable information;
and determining current configuration information corresponding to the current moment according to the preset configuration rule and the number of the candidate configuration information, and performing configuration updating on the target tag according to the current configuration information.
In FIG. 5, a processor 410 is illustrated as an example; the processor 410 and the memory 420 in the device may be connected by a bus or other means, as exemplified by the bus connection in fig. 5.
The memory 420 serves as a computer-readable storage medium, and may be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the tag updating method in the embodiment of the present invention (for example, the configurable information acquisition module 310, the candidate configuration information determination module 320, and the configuration updating module 330 in the tag updating apparatus). The processor 410 executes various functional applications of the device and data processing by executing software programs, instructions and modules stored in the memory 420, that is, implements the tag update method described above.
The memory 420 mainly includes a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 420 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, memory 420 may further include memory located remotely from processor 410, which may be connected to devices through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The apparatus proposed in this embodiment and the tag updating method proposed in the above embodiment belong to the same inventive concept, and the technical details that are not described in detail in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the tag updating method.
EXAMPLE five
This fifth embodiment provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a tag updating method according to any embodiment of the present invention, where the method includes:
acquiring various configurable information corresponding to a target tag identifier in a current configuration database;
determining candidate configuration information meeting preset display conditions from the configurable information according to the displayable time periods in the configurable information;
and determining current configuration information corresponding to the current moment according to the preset configuration rule and the number of the candidate configuration information, and performing configuration updating on the target tag according to the current configuration information.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer-readable storage medium may be, for example but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It will be understood by those skilled in the art that the modules or steps of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of computing devices, and optionally they may be implemented by program code executable by a computing device, such that it may be stored in a memory device and executed by a computing device, or it may be separately fabricated into various integrated circuit modules, or it may be fabricated by fabricating a plurality of modules or steps thereof into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A tag update method, comprising:
acquiring various configurable information corresponding to target label identification in a current configuration database, wherein the label identification is used for distinguishing each label in a website;
determining candidate configuration information meeting preset display conditions from each piece of configurable information according to a displayable time period in each piece of configurable information, wherein the displayable time period is a time period for displaying tags configured by the configurable information;
determining current configuration information corresponding to the current moment according to a preset configuration rule and the number of the candidate configuration information, and performing configuration updating on the target tag according to the current configuration information;
before the obtaining of each piece of configurable information corresponding to the target tag identifier in the current configuration database, the method further includes:
determining information to be configured corresponding to the target label identification;
determining a configuration identifier corresponding to the information to be configured according to the information to be configured and each existing configuration information corresponding to the target tag identifier in the current configuration database;
if the configuration identifier is a successful configuration identifier, adding the information to be configured as configurable information into a current configuration database to update the current configuration database;
if the configuration identifier is a configuration failure identifier, it indicates that there is a configuration conflict between the existing configuration information in the current configuration database and the information to be configured, and at this time, a configuration failure information is generated to remind relevant personnel to modify the configuration of the information to be configured.
2. The method according to claim 1, wherein determining candidate configuration information satisfying a preset presentation condition from each of the configurable information according to the presentable time period in each of the configurable information comprises:
determining each piece of configurable information as target configuration information one by one;
comparing the displayable starting time and the displayable ending time in the target configuration information with the current time respectively;
and if the current time is greater than or equal to the displayable starting time and less than the displayable ending time, determining the target configuration information as candidate configuration information.
3. The method of claim 1, wherein determining the current configuration information corresponding to the current time according to a preset configuration rule and the number of the candidate configuration information comprises:
if only one candidate configuration information exists, determining the candidate configuration information as the current configuration information corresponding to the current moment;
and if at least two pieces of candidate configuration information exist, determining the current configuration information corresponding to the current moment according to a preset display rule and the configuration priority corresponding to each piece of candidate configuration information.
4. The method of claim 3, wherein determining the current configuration information corresponding to the current time according to a preset presentation rule and the configuration priority corresponding to each candidate configuration information comprises:
comparing the configuration priority corresponding to each candidate configuration information;
and determining the candidate configuration information corresponding to the highest configuration priority as the current configuration information corresponding to the current moment.
5. The method of claim 3, wherein determining the current configuration information corresponding to the current time according to a preset presentation rule and the configuration priority corresponding to each candidate configuration information comprises:
determining a configuration updating sequence according to the configuration priority corresponding to each candidate configuration information;
and sequentially determining the candidate configuration information one by one as the current configuration information corresponding to the current moment according to the configuration updating sequence.
6. The method according to claim 1, wherein determining the configuration identifier corresponding to the to-be-configured information according to the to-be-configured information and each existing configuration information corresponding to the target tag identifier in a current configuration database comprises:
comparing the time period to be displayed in the information to be configured with the existing display time period in each existing configuration information corresponding to the target label identification in the current configuration database;
if the time period to be displayed does not overlap with each existing display time period, determining that the configuration identifier corresponding to the information to be configured is a configuration success identifier;
if the time period to be displayed is overlapped with at least one existing display time period, detecting whether a first configuration priority corresponding to the information to be configured is the same as a second configuration priority corresponding to each existing configuration information overlapped with the existing time period;
if the first configuration priority is different from each second configuration priority, determining that the configuration identifier corresponding to the information to be configured is a configuration success identifier;
and if the first configuration priority is the same as at least one second configuration priority, determining that the configuration identifier corresponding to the information to be configured is a configuration failure identifier.
7. A tag updating apparatus, comprising:
the configurable information acquisition module is used for acquiring various configurable information corresponding to the target tag identification in the current configuration database;
the candidate configuration information determining module is used for determining candidate configuration information meeting preset display conditions from each piece of configurable information according to the displayable time period in each piece of configurable information;
the configuration updating module is used for determining current configuration information corresponding to the current moment according to a preset configuration rule and the number of the candidate configuration information and performing configuration updating on the target label according to the current configuration information;
the label identification is used for distinguishing each label in the website; the exposable time period is a time period for which a tag of the configurable information configuration is exposed;
a to-be-configured information determining module, configured to determine to-be-configured information corresponding to a target tag identifier in the current configuration database before the acquisition of each piece of configurable information corresponding to the target tag identifier;
a configuration identifier determining module, configured to determine, according to the information to be configured and each existing configuration information corresponding to the target tag identifier in the current configuration database, a configuration identifier corresponding to the information to be configured;
the current configuration database updating module is used for taking the information to be configured as configurable information and adding the configurable information into the current configuration database to update the current configuration database if the configuration identifier is a successful configuration identifier;
if the configuration identifier is a configuration failure identifier, it indicates that there is a configuration conflict between the existing configuration information in the current configuration database and the information to be configured, and at this time, a configuration failure information is generated to remind relevant personnel to modify the configuration of the information to be configured.
8. An electronic device, characterized in that the device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the tag update method of any one of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the tag updating method according to any one of claims 1-6.
CN201811216273.4A 2018-10-18 2018-10-18 Label updating method, device, equipment and storage medium Active CN109446443B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811216273.4A CN109446443B (en) 2018-10-18 2018-10-18 Label updating method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811216273.4A CN109446443B (en) 2018-10-18 2018-10-18 Label updating method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109446443A CN109446443A (en) 2019-03-08
CN109446443B true CN109446443B (en) 2021-11-09

Family

ID=65546834

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811216273.4A Active CN109446443B (en) 2018-10-18 2018-10-18 Label updating method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109446443B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110457634A (en) * 2019-08-12 2019-11-15 拉扎斯网络科技(上海)有限公司 Information publishing method and device, electronic equipment and computer readable storage medium
CN110647527B (en) * 2019-08-30 2022-11-01 北京百度网讯科技有限公司 Big data-based invalid label clearing method and device, equipment and readable medium
CN111061457A (en) * 2019-12-20 2020-04-24 上海米哈游天命科技有限公司 File uploading control method and device, server and storage medium
CN113297197A (en) * 2020-02-21 2021-08-24 北京沃东天骏信息技术有限公司 Label management system, label operation method and data table operation method and device
CN111651696B (en) * 2020-05-29 2023-06-02 泰康保险集团股份有限公司 Product label customizing method and device, computer storage medium and electronic equipment
CN115474071B (en) * 2022-08-22 2024-05-14 北京达佳互联信息技术有限公司 Content display method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468350A (en) * 2014-09-10 2016-04-06 阿里巴巴集团控股有限公司 Object tag processing method and apparatus
CN105574162A (en) * 2015-12-16 2016-05-11 南京鼎岩信息科技有限公司 Automatic hyperlink method of keyword
CN105991770A (en) * 2016-05-05 2016-10-05 广州阿里巴巴文学信息技术有限公司 Data updating method, client side and server
CN106572173A (en) * 2016-11-07 2017-04-19 网易无尾熊(杭州)科技有限公司 Method, apparatus and system for updating configuration information
CN107797826A (en) * 2017-05-19 2018-03-13 平安科技(深圳)有限公司 A kind of regular collocation method, terminal and the equipment of rule-based engine
CN108427749A (en) * 2018-03-12 2018-08-21 上海哔哩哔哩科技有限公司 Commercial goods labels management method, server and Commercial goods labels manage system

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070100844A1 (en) * 2005-10-28 2007-05-03 International Business Machines Corporation System and method for dynamically updating web pages using messaging-oriented middleware
GB0612673D0 (en) * 2006-06-27 2006-08-09 Gems Tv Ltd Computer system
CN103455582B (en) * 2013-08-26 2016-12-28 小米科技有限责任公司 The display packing of browser navigation page and mobile terminal
CN104346463B (en) * 2014-11-07 2018-07-17 北京奇虎科技有限公司 A kind of loading method of page-tag, device and browser client
CN105824840B (en) * 2015-01-07 2019-07-16 阿里巴巴集团控股有限公司 A kind of method and device for area label management
CN105719156A (en) * 2015-10-15 2016-06-29 深圳市麻省图创科技有限公司 System and method for identifying and promoting goods with labels already added thereto
CN106649374B (en) * 2015-10-30 2021-06-04 北京国双科技有限公司 Navigation tag sequencing method and device
CN105592423B (en) * 2016-03-04 2021-05-04 广州万物信息科技有限公司 Vehicle anti-theft tracking system
CN107861948B (en) * 2017-11-16 2021-09-17 百度在线网络技术(北京)有限公司 Label extraction method, device, equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468350A (en) * 2014-09-10 2016-04-06 阿里巴巴集团控股有限公司 Object tag processing method and apparatus
CN105574162A (en) * 2015-12-16 2016-05-11 南京鼎岩信息科技有限公司 Automatic hyperlink method of keyword
CN105991770A (en) * 2016-05-05 2016-10-05 广州阿里巴巴文学信息技术有限公司 Data updating method, client side and server
CN106572173A (en) * 2016-11-07 2017-04-19 网易无尾熊(杭州)科技有限公司 Method, apparatus and system for updating configuration information
CN107797826A (en) * 2017-05-19 2018-03-13 平安科技(深圳)有限公司 A kind of regular collocation method, terminal and the equipment of rule-based engine
CN108427749A (en) * 2018-03-12 2018-08-21 上海哔哩哔哩科技有限公司 Commercial goods labels management method, server and Commercial goods labels manage system

Also Published As

Publication number Publication date
CN109446443A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN109446443B (en) Label updating method, device, equipment and storage medium
CN109062563B (en) Method and device for generating page
CN110389812B (en) Method, apparatus, and computer-readable storage medium for managing virtual machines
CN110912757B (en) Service monitoring method and server
CN109508912B (en) Service scheduling method, device, equipment and storage medium
US9760349B1 (en) Managing different software dependencies associated with source code
CN112231568B (en) Hotel label automatic configuration method and device, electronic equipment and storage medium
US11200201B2 (en) Metadata storage method, device and server
CN116523457A (en) Workflow processing method, device, equipment and storage medium based on business process
US11169863B2 (en) Dynamic management method for menu, server and system
CN110019179A (en) Update method and device, the electronic equipment, storage medium of index database
CN113220705A (en) Slow query identification method and device
CN115543317A (en) Front-end page development method and device
CN115033592A (en) SQL statement processing method, device, equipment and storage medium based on database
CN115291872A (en) Data processing method, electronic device and storage medium
CN111782373B (en) Job scheduling method and device
CN111444392B (en) Vulnerability library access method, device and equipment
CN113377604B (en) Data processing method, device, equipment and storage medium
CN110223108B (en) Click through rate prediction method, device and equipment
CN109902067B (en) File processing method and device, storage medium and computer equipment
CN108874625B (en) Information processing method and device, electronic equipment and storage medium
US9477448B2 (en) Screen-oriented computing program refactoring
CN110908763A (en) Acceptance method, device, equipment and storage medium
CN111817895B (en) Master control node switching method, device, equipment and storage medium
CN115081233B (en) Flow simulation method and electronic equipment

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
GR01 Patent grant
GR01 Patent grant