Label updating method, device, electronic device and storage medium

By obtaining the tag style sheet to be updated from the server and automatically merging and generating updated tags, the problems of low tag update efficiency and long iteration cycle caused by manual code writing are solved, and an efficient tag update process is achieved.

CN112015377BActive Publication Date: 2024-11-05BEIJING 58 INFORMATION TTECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010866171.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-25
Publication Date
2024-11-05
Estimated Expiration
2040-08-25

AI Technical Summary

Technical Problem

In the prior art, manual writing of code leads to low tag update efficiency and long iteration cycles.

Method used

By obtaining the tag style sheet to be updated and private update content of the target object from the server, and merging and generating updated tags, reducing the repetitive workload of developers, improving work efficiency and iteration speed.

Benefits of technology

It realizes automated tag updates, shortens version iteration cycles, improves label update efficiency, and reduces the workload of developers.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112015377B_ABST
    Figure CN112015377B_ABST
Patent Text Reader

Abstract

The present application provides a label update method, device, electronic device and storage medium. The method includes: obtaining a label style sheet to be updated corresponding to the target object from a server, and obtaining private update content corresponding to each type of label. According to the label style sheet to be updated and the label style sheet before updating, the target label style sheet is determined, and then according to the target label style sheet and the private update content corresponding to each type of label, the updated label is generated. Compared with the method in the prior art that requires developers to manually write code to complete label updates, the label update method provided in the embodiment of the present application can greatly reduce the workload of developers in updating labels during version iterations, improve the work efficiency of developers, and thus shorten the version iteration cycle and improve the efficiency of label updates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet technology, and in particular to a tag updating method, device, electronic device and storage medium. Background Art

[0002] With the rapid development of information technology, the Internet has brought great convenience to people's lives and work. Many businesses that originally needed to be conducted offline can now be conducted online. For example, people can use the Internet to shop, rent, buy houses, and find jobs. In order to help users quickly find ideal items, merchants usually generate tags based on the characteristics of the items themselves for users to filter.

[0003] Take the rental business as an example. Figure 1 The following is a schematic diagram of labels for the rental business. Based on the characteristics of the house, the generated labels are as follows: "near the subway", "one deposit and one payment", "complete supporting facilities", "fine decoration", "central heating", "elevator" and "ordinary residence". These labels are not static. As business needs change, the labels need to be updated, such as adjusting the label font, font size, text color, border spacing and line height, adding new operating activities and adding label pictures.

[0004] Currently, every update of a label requires developers to manually write code, which easily leads to problems such as a lot of repetitive work and low work efficiency for developers, which in turn leads to problems such as low label update efficiency and long iteration cycle.

[0005] Based on this, there is an urgent need for a labeling method to solve the problem in the prior art that manual code writing easily leads to low label update efficiency and long iteration cycle. Summary of the invention

[0006] The present application provides a label update method, device, electronic device and storage medium, which can be used to solve the technical problem in the prior art that manual code writing easily leads to low label update efficiency and long iteration cycle.

[0007] In a first aspect, an embodiment of the present application provides a label updating method, the method comprising:

[0008] Acquire a tag style sheet to be updated corresponding to the target object from the server, wherein the tag style sheet to be updated is determined according to update content common to all tags belonging to the target object when the target object has a tag update requirement;

[0009] Determine a target tag style sheet according to the tag style sheet to be updated and the tag style sheet before updating;

[0010] Obtain the private update content corresponding to each type of tag from the server;

[0011] An updated tag is generated according to the target tag style sheet and the private update contents respectively corresponding to the tags of each type.

[0012] In combination with the first aspect, in an implementation manner of the first aspect, the label style sheet before the update includes a default label style sheet and a custom label style sheet; wherein the default label style sheet is determined according to the default style of the label before the update; and the custom label style sheet is determined according to the custom style of the label before the update;

[0013] Determining a target tag style sheet according to the tag style sheet to be updated and the tag style sheet before updating includes:

[0014] Merging the tag style sheet to be updated and the custom tag style sheet to obtain a merged tag style sheet;

[0015] The target tag style sheet is determined according to the merged tag style sheet and the default tag style sheet.

[0016] In combination with the first aspect, in an implementable manner of the first aspect, determining the target tag style sheet according to the merged tag style sheet and the default tag style sheet includes:

[0017] Performing rule verification on the merged tag style sheet and the default tag style sheet, and if they pass the verification, merging the merged tag style sheet and the default tag style sheet to obtain the target tag style sheet;

[0018] If the verification fails, a first instruction message is returned to the server, where the first instruction message is used to instruct the developer to adjust the tag style sheet to be updated.

[0019] In combination with the first aspect, in an implementable manner of the first aspect, merging the to-be-updated tag style sheet and the custom tag style sheet to obtain a merged tag style sheet includes:

[0020] According to the priority of the tag style sheet to be updated and the priority of the custom tag style sheet, the tag style sheet to be updated and the custom tag style sheet are merged to obtain a merged tag style sheet; the priority of the tag style sheet to be updated is higher than the priority of the custom tag style sheet.

[0021] In combination with the first aspect, in an implementable manner of the first aspect, generating updated tags according to the target tag style sheet and the private update contents respectively corresponding to the tags of each type includes:

[0022] For a first type of tag, a rule check is performed on the target tag style sheet and the private update content corresponding to the first type of tag. If the check passes, the target tag style sheet and the private update content corresponding to the first type of tag are merged to obtain an updated first type of tag; the first type of tag is any type of tag among the various types of tags;

[0023] The updated labels are generated according to the updated labels of each type.

[0024] In combination with the first aspect, in an implementation manner of the first aspect, the method further includes:

[0025] If the verification fails, a second instruction message is returned to the server, where the second instruction message is used to instruct the developer to adjust the private update content corresponding to the first type of tag.

[0026] In combination with the first aspect, in an implementation method of the first aspect, the type of the label includes at least one of a left image and right text type, a right image and left text type, a left and right image middle text type, a filled image type, and a pure text type.

[0027] In a second aspect, an embodiment of the present application provides a label updating device, the device comprising:

[0028] An acquisition unit, configured to acquire a tag style sheet to be updated corresponding to a target object from a server, wherein the tag style sheet to be updated is determined according to update contents common to all tags belonging to the target object when the target object has a tag update requirement;

[0029] A processing unit, configured to determine a target tag style sheet according to the tag style sheet to be updated and the tag style sheet before updating;

[0030] The acquisition unit is further used to acquire private update contents corresponding to each type of tag from the server;

[0031] The processing unit is further configured to generate updated tags according to the target tag style sheet and the private update contents respectively corresponding to the tags of each type.

[0032] In conjunction with the second aspect, in an implementation of the second aspect, the label style sheet before the update includes a default label style sheet and a custom label style sheet; wherein the default label style sheet is determined according to the default style of the label before the update; and the custom label style sheet is determined according to the custom style of the label before the update;

[0033] The processing unit is specifically used for:

[0034] The tag style sheet to be updated and the custom tag style sheet are merged to obtain a merged tag style sheet; and the target tag style sheet is determined according to the merged tag style sheet and the default tag style sheet.

[0035] In conjunction with the second aspect, in an implementation manner of the second aspect, the processing unit is specifically configured to:

[0036] Performing rule verification on the merged tag style sheet and the default tag style sheet, if the verification passes, merging the merged tag style sheet and the default tag style sheet to obtain the target tag style sheet; and if the verification fails, returning a first indication message to the server, wherein the first indication message is used to instruct the developer to adjust the tag style sheet to be updated.

[0037] In conjunction with the second aspect, in an implementation manner of the second aspect, the processing unit is specifically configured to:

[0038] According to the priority of the tag style sheet to be updated and the priority of the custom tag style sheet, the tag style sheet to be updated and the custom tag style sheet are merged to obtain a merged tag style sheet; the priority of the tag style sheet to be updated is higher than the priority of the custom tag style sheet.

[0039] In conjunction with the second aspect, in an implementation manner of the second aspect, the processing unit is specifically configured to:

[0040] For the first type of tag, the target tag style sheet and the private update content corresponding to the first type of tag are subjected to rule verification. If the verification passes, the target tag style sheet and the private update content corresponding to the first type of tag are merged to obtain an updated first type of tag; the first type of tag is any one type of tag among the various types of tags; and, based on the updated types of tags, the updated tags are generated.

[0041] In conjunction with the second aspect, in an implementation manner of the second aspect, the processing unit is further used to:

[0042] If the verification fails, a second instruction message is returned to the server, where the second instruction message is used to instruct the developer to adjust the private update content corresponding to the first type of tag.

[0043] In combination with the second aspect, in an implementation method of the second aspect, the type of the label includes at least one of a left image and right text type, a right image and left text type, a left and right image middle text type, a filled image type, and a pure text type.

[0044] In a third aspect, an embodiment of the present application provides an electronic device, including:

[0045] A memory for storing program instructions;

[0046] The processor is used to call and execute the program instructions in the memory to implement the label updating method described above.

[0047] In a fourth aspect, an embodiment of the present application provides a storage medium, wherein the storage medium stores a computer program. When at least one processor of a label update device executes the computer program, the label update device executes the label update method described above.

[0048] In the embodiment of the present application, the label style sheet to be updated corresponding to the target object can be obtained from the server, and the private update content corresponding to each type of label can be obtained. According to the label style sheet to be updated and the label style sheet before updating, the target label style sheet can be determined, and then according to the target label style sheet and the private update content corresponding to each type of label, the updated label can be generated. Using the above method, when the target object has a label update requirement, it only needs to obtain the label style sheet to be updated and the label update data from the server, and the updated label can be automatically generated. Compared with the method in the prior art that requires developers to manually write code to complete label updates, the label update method provided in the embodiment of the present application can greatly reduce the workload of developers in updating labels in version iterations, improve the work efficiency of developers, and thus shorten the version iteration cycle and improve the efficiency of label updates. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] Figure 1 A schematic diagram of a label for a rental business;

[0050] Figure 2a One of the schematic diagrams of the label provided in the embodiment of the present application;

[0051] Figure 2b The second schematic diagram of the label provided in the embodiment of the present application;

[0052] Figure 2c The third schematic diagram of the label provided in the embodiment of the present application;

[0053] Figure 3 A flowchart corresponding to a label updating method provided in an embodiment of the present application;

[0054] Figure 4a A schematic diagram of a label with a left-picture and right-text type provided in an embodiment of the present application;

[0055] Figure 4bA schematic diagram of a label of the right-image-left-text type provided in an embodiment of the present application;

[0056] Figure 4c A schematic diagram of a label with text between left and right images provided in an embodiment of the present application;

[0057] Figure 4d A schematic diagram of a label of a fill-in type provided in an embodiment of the present application;

[0058] Figure 4e A schematic diagram of a text-only label provided in an embodiment of the present application;

[0059] Figure 5 A flowchart showing the integrity of a label updating method provided in an embodiment of the present application;

[0060] Figure 6 A schematic diagram of the structure of a label updating device provided in an embodiment of the present application;

[0061] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0062] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0063] Tags are a kind of image that can intuitively and quickly present the value of an item. Tags are widely used on the Internet, whether it is an application (Application, APP) or a web page (World Wide Web, Web). Taking the rental business as an example, the most intuitive image of a house is its tag. Tags can appear in the quick filter bar of the house, the list page of the house, and the detail page of the house.

[0064] Tags can support click callback, flexible extension type and other functions. When clicking a tag, it can be called back to the set page.

[0065] like Figure 2a As shown, it is one of the schematic diagrams of the label provided in the embodiment of the present application, from Figure 2a As can be seen from the figure, the labels "1200-1500 yuan", "1500-2000 yuan", "2000-2400 yuan", "Jiukeshu", "Linheli", "Yuqiao", "Qiaozhuang", "Tuqiao", "Shared master bedroom" and "Shared second bedroom" can appear in the quick filter column (i.e. Figure 2a The priority recommendation corresponding area shown in FIG.

[0066] like Figure 2b As shown, it is a second schematic diagram of a label provided in an embodiment of the present application, from Figure 2b It can be seen that there are multiple properties on the list page, and each property has a corresponding label. Taking the first property as an example, the corresponding labels for this property include "Anxuan", "Instant discount of 600 yuan", "Close to subway", "Deposit one and pay one" and "North-South transparent". These labels can be seen as labels appearing on the list page.

[0067] like Figure 2c As shown, it is the third schematic diagram of the label provided in the embodiment of the present application, from Figure 2c It can be seen that the following labels appear on the property details page: "Single-family", "Close to subway", "Deposit one and pay one", "Fully equipped", "Private bathroom", "Smart door lock", "Finely decorated" and "24-hour security".

[0068] With the development of business, promotion of operational activities or changes in market supervision requirements, labels need to be updated. At present, the industry generally adopts an open-loop mechanism to update labels, that is, a fixed style layout is used in the App or Web, and the server sends a mechanism for specifying color labels to update the labels. This update method easily causes developers to frequently iterate versions, increase the iteration cycle, and thus reduce the efficiency of label updates.

[0069] Based on this, this application embodiment provides a label update method, please refer to Figure 3 , which exemplarily shows a flow chart corresponding to a label updating method provided in an embodiment of the present application, including the following steps:

[0070] Step 301: Obtain the tag style sheet to be updated corresponding to the target object from the server.

[0071] Step 302: determine a target tag style sheet according to the tag style sheet to be updated and the tag style sheet before updating.

[0072] Step 303: Obtain private update content corresponding to each type of tag from the server.

[0073] Step 304: Generate updated tags according to the target tag style sheet and the private update contents corresponding to each type of tag.

[0074] It should be noted that the above step numbers are only an exemplary representation of an execution process, and the present application does not specifically limit the sequence of the steps. For example, in the above steps 301 and 203, the private update content corresponding to each type of tag can be obtained from the server first, and then the tag style sheet to be updated corresponding to the target object can be obtained from the server, and then the target tag style sheet can be determined based on the tag style sheet to be updated and the tag style sheet before the update.

[0075] In the embodiment of the present application, the label style sheet to be updated corresponding to the target object can be obtained from the server, and the private update content corresponding to each type of label can be obtained. According to the label style sheet to be updated and the label style sheet before updating, the target label style sheet can be determined, and then according to the target label style sheet and the private update content corresponding to each type of label, the updated label can be generated. Using the above method, when the target object has a label update requirement, it only needs to obtain the label style sheet to be updated and the label update data from the server, and the updated label can be automatically generated. Compared with the method in the prior art that requires developers to manually write code to complete label updates, the label update method provided in the embodiment of the present application can greatly reduce the workload of developers in updating labels in version iterations, improve the work efficiency of developers, and thus shorten the version iteration cycle and improve the efficiency of label updates.

[0076] Specifically, in step 301, the target object may be different depending on the type of business. For example, in a rental business, the target object may be a house; in a shopping business, the target object may be a commodity; in a job search business, the target object may be a job position.

[0077] For the same target object, the type of label corresponding to the target object can be multiple. In the embodiment of the present application, the type of label can include at least one of left image and right text type, right image and left text type, left and right image middle text type, filled image type and pure text type.

[0078] Among them, the label of the left image and right text type refers to the label format with an image on the left and text on the right. Figure 4a , which exemplarily shows a schematic diagram of a label of the left-image-right-text type provided in an embodiment of the present application.

[0079] The right image and left text type of label means that the label has an image on the right and text on the left. Figure 4b , which exemplarily shows a schematic diagram of a label of the right-image-left-text type provided in an embodiment of the present application.

[0080] The text type label in the middle of the left and right images refers to the form of the label with an image on the left, an image on the right, and text in the middle. Figure 4c , which exemplarily shows a schematic diagram of a label of the text type between the left and right images provided in an embodiment of the present application.

[0081] Filled image type labels are labels that only include images. Figure 4d, which exemplarily shows a schematic diagram of a fill-in-picture type label provided in an embodiment of the present application. The picture can be a text-type picture or a non-text-type picture, and is not specifically limited. The fill-in-picture type label can meet special requirements, such as highlighting special text, highlighting eye-catching pictures, and other special requirements.

[0082] The plain text type means that the label only includes text. Figure 4e , which exemplarily shows a schematic diagram of a pure text type label provided in an embodiment of the present application.

[0083] It should be noted that the types of labels shown above are only exemplary. Those skilled in the art can add or delete the types of labels according to actual conditions, and there is no specific limitation.

[0084] When the target object needs to update the label, the label attribute information is updated. The label attribute information includes border thickness, border color, text color, font, font size, image size, image start position, line height, border spacing, image and text spacing, vertical spacing, and horizontal spacing.

[0085] The specific update content may include update content common to all tags belonging to the target object and private update content corresponding to each type of tag.

[0086] The updated content shared by all tags may include the shared attribute information of the tags, such as the font of the tag, the font size of the tag, the text color of the tag, the border spacing of the tag, and the line height of the tag. The updated content shared by all tags will not be different due to the difference between individual tags.

[0087] The private update content corresponding to each type of tag may include the private attribute information of each type of tag. That is to say, the private update content may differ due to the differences between individual tags. For example, the private update content corresponding to type A tag may be an update to attribute a, and the private update content corresponding to type B tag may be an update to attribute b.

[0088] For example, for a label of the type of left image and right text, you can update the attribute information such as the image size, image source, and image starting position of this type of label; similarly, for a label of the type of left and right images and text in the middle, you can update the attribute information such as the left image size, left image source, left image starting position, right image size, right image source, and right image starting position of this type of label.

[0089] In the embodiment of the present application, the tag style sheet to be updated may be determined based on the update content shared by all tags belonging to the target object when there is a tag update requirement for the target object.

[0090] For example, if the label update requirement of the target object is to update the fonts of all labels to Songti, then the common update content of all labels is updating the fonts of the labels to Songti. Therefore, the label style sheet to be updated may include the logic code for updating the fonts of the labels to Songti.

[0091] For another example, the label update requirement of the target object is to update the text color of all labels to blue. Then the common update content of all labels is updating the text color of the labels to blue. Therefore, the label style sheet to be updated may include the logic code for updating the text color of the labels to blue.

[0092] It should be noted that the tag style sheet to be updated is generated to solve the problem of real-time operation of special activities and adapt to the dynamic characteristics of tags. The tag style sheet to be updated can be sent by the server to meet the mechanism of dynamic tag update. The tag style sheet to be updated is generated according to the update requirements. When there is no update content shared by all tags in the update requirements, the server may not send the tag style sheet to be updated. In other words, the tag style sheet to be updated is missing.

[0093] In step 302, the tag style sheet before updating may include a default tag style sheet and a custom tag style sheet.

[0094] The default tag style sheet may be determined based on the default style of the tag before updating, and the custom tag style sheet may be determined based on the custom style of the tag before updating.

[0095] It should be noted that the default tag style sheet is a built-in template style sheet and is indispensable. Even in the absence of custom tag style sheets and tag style sheets to be updated, developers can still provide integrity rules for the layout and display of tags based on the default tag style sheet. The default tag style sheet can reduce developers' repeated configuration of style rules, thereby reducing developers' repetitive work.

[0096] It should also be noted that the custom tag style sheet is a built-in custom style specification, which can be fine-tuned based on the default tag style sheet, and the custom tag style sheet is also optional.

[0097] Furthermore, when determining the current tag style sheet, the embodiment of the present application may merge the tag style sheet to be updated and the custom tag style sheet to obtain a merged tag style sheet; and determine the target tag style sheet based on the merged tag style sheet and the default tag style sheet.

[0098] Among them, considering that for the same attribute information, the logical codes in the label style sheet to be updated and the custom label style sheet may be different, for example, the label style sheet to be updated requires that the fonts of all labels be changed to Songti, while the custom label style sheet requires that the fonts of all labels be changed to Kaiti. At this time, the label style sheet to be updated and the custom label style sheet can be merged according to the priority of the label style sheet to be updated and the priority of the custom label style sheet, thereby forming a merged label style sheet; among them, the priority of the updated label style sheet is higher than the priority of the custom label style sheet.

[0099] That is to say, for the same attribute information, when the logic codes in the tag style sheet to be updated and the custom tag style sheet are different, the tag style sheet to be updated may prevail.

[0100] In order to reduce the probability of errors in the target style sheet, after obtaining the merged tag style sheet, the embodiment of the present application can also perform rule verification on the merged tag style sheet and the default tag style sheet. If the verification passes, the merged tag style sheet and the default tag style sheet are merged to obtain the target tag style sheet; if the verification fails, a first indication message can be returned to the server, wherein the first indication message can be used to instruct the developer to make adjustments to the tag style sheet to be updated.

[0101] Through rule verification, it is possible to prevent the target tag style sheet formed by the tag style sheet to be updated, the custom tag style sheet and the default tag style sheet from exceeding the rigid specifications of the platform, client hardware and the like.

[0102] In step 303, as described above, the private update content corresponding to each type of tag refers to the private attribute information of each type of tag.

[0103] For example, the label update requirement of the target object is to update the image size in the label of the left image and right text type to 5×5, then the private attribute information corresponding to the label of the left image and right text type is that the image size is updated to 5×5. Furthermore, the private update content corresponding to the label of the left image and right text type may include the logic code for updating the image size to 5×5.

[0104] In step 304, considering that the private update contents corresponding to each type of label are different, in the process of generating updated labels, label updates can be performed for each type of label respectively.

[0105] Specifically, for the first type of tag, the target tag style sheet and the private update content corresponding to the first type of tag are checked by rules. If the check passes, the target tag style sheet and the private update content corresponding to the first type of tag are merged to obtain an updated first type of tag; if the check fails, a second instruction message is returned to the server, and the second instruction message can be used to instruct the developer to adjust the private update content corresponding to the first type of tag. The first type of tag can be any type of tag among various types of tags.

[0106] Furthermore, based on the updated labels of each type, updated labels can be generated.

[0107] In the embodiment of the present application, the above process can be implemented through the Model factory. In order to meet business needs and operational promotion requirements, the server issues private update content corresponding to each type of label, and inputs the private update content corresponding to each type of label into the Model factory. Under the mechanism of the Model factory, polymorphic data model arrays of different data types are reflected. The polymorphic data model array of each data type includes private update content corresponding to one type of label. Then, the view generator is used to receive the target label style sheet and the polymorphic data model array, and the updated label is generated according to the target label style sheet and the polymorphic data model array.

[0108] In order to more clearly describe the label updating method provided in the embodiment of the present application, Figure 5 , a complete description of the label update method involved in the embodiment of the present application is given. Figure 5 As shown, the method specifically comprises the following steps:

[0109] Step 501: Obtain the tag style sheet to be updated corresponding to the target object from the server.

[0110] Step 502, obtaining a custom tag style sheet.

[0111] Step 503: Obtain a default tag style sheet.

[0112] Step 504 , according to the priority of the tag style sheet to be updated and the priority of the custom tag style sheet, merge the tag style sheet to be updated and the custom tag style sheet to obtain a merged tag style sheet.

[0113] Step 505 , perform rule verification on the merged tag style sheet and the default tag style sheet to determine whether they pass the verification. If they pass the rule verification, execute step 506 ; otherwise, execute step 507 .

[0114] Step 506: merge the merged tag style sheet and the default tag style sheet to obtain a target tag style sheet.

[0115] Step 507: Return a first indication message to the server.

[0116] Step 508: Obtain private update content corresponding to each type of tag from the server.

[0117] Step 509: Input the private update content corresponding to each type of tag into the Model factory.

[0118] Step 510, reflecting polymorphic data model arrays of different data types under the mechanism of the Model factory.

[0119] Step 511 , using a view generator to perform rule verification based on a target tag style sheet and a polymorphic data model array of any data type, a view of the data type is generated.

[0120] It should be noted that the rule verification process in step 511 may refer to step 505. If the rule verification fails, a second indication message may be returned to the server.

[0121] Step 512, after performing rule verification based on multiple data model arrays of all data types, an updated label is generated.

[0122] The rule checking process in step 512 may include multi-line rules, margin rules, horizontal rules, vertical rules, view layout rules, and the like.

[0123] It should be noted that the above step numbers are only an exemplary representation of an execution process, and this application does not specifically limit the sequence of the steps.

[0124] In this way, when the target object has a label update requirement, it only needs to obtain the label style sheet to be updated and the private update content corresponding to each type of label from the server to automatically generate the updated label. Compared with the prior art method that requires developers to manually write code to complete label updates, the label update method provided in the embodiment of the present application can greatly reduce the workload of developers in updating labels during version iterations, improve the work efficiency of developers, and thus shorten the version iteration cycle and improve the efficiency of label updates.

[0125] Furthermore, in the promotion of operation activities, when the operation personnel have new label requirements, they can dynamically and flexibly configure labels by modifying the label style sheet to be updated. Furthermore, by using the method of the embodiment of the present application to update labels, users can quickly obtain the portrait of the target object, increase the user's perceived usefulness of the target house, and then help users quickly filter out items that meet the requirements, thereby improving user satisfaction.

[0126] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0127] Figure 6 The following is a schematic diagram showing the structure of a label updating device provided in an embodiment of the present application. Figure 6 As shown, the device has the function of implementing the above label update method, and the function can be implemented by hardware, or by hardware executing corresponding software. The device may include: an acquisition unit 601 and a processing unit 602.

[0128] The acquisition unit 601 is used to acquire from the server a tag style sheet to be updated corresponding to the target object, wherein the tag style sheet to be updated is determined according to the private update content corresponding to each type of tag and the update content shared by all tags when the target object has a tag update requirement;

[0129] The processing unit 602 is used to determine a target tag style sheet according to the tag style sheet to be updated and the tag style sheet before updating;

[0130] The acquisition unit 601 is further configured to acquire tag update data corresponding to the target object from a server, wherein the tag update data includes private update content corresponding to each type of tag;

[0131] The processing unit 602 is further configured to generate an updated tag according to the target tag style sheet and the private update contents respectively corresponding to the tags of each type.

[0132] Optionally, the label style sheet before the update includes a default label style sheet and a custom label style sheet; wherein the default label style sheet is determined according to the default style of the label before the update; and the custom label style sheet is determined according to the custom style of the label before the update;

[0133] The processing unit is specifically used for:

[0134] The tag style sheet to be updated and the custom tag style sheet are merged to obtain a merged tag style sheet; and the target tag style sheet is determined according to the merged tag style sheet and the default tag style sheet.

[0135] Optionally, the processing unit is specifically configured to:

[0136] Performing rule verification on the merged tag style sheet and the default tag style sheet, if the verification passes, merging the merged tag style sheet and the default tag style sheet to obtain the target tag style sheet; and if the verification fails, returning a first indication message to the server, wherein the first indication message is used to instruct the developer to adjust the tag style sheet to be updated.

[0137] Optionally, the processing unit is specifically configured to:

[0138] According to the priority of the tag style sheet to be updated and the priority of the custom tag style sheet, the tag style sheet to be updated and the custom tag style sheet are merged to obtain a merged tag style sheet; the priority of the tag style sheet to be updated is higher than the priority of the custom tag style sheet.

[0139] Optionally, the processing unit is specifically configured to:

[0140] For the first type of tag, the target tag style sheet and the private update content corresponding to the first type of tag are subjected to rule verification. If the verification passes, the target tag style sheet and the private update content corresponding to the first type of tag are merged to obtain an updated first type of tag; the first type of tag is any one type of tag among the various types of tags; and, based on the updated types of tags, the updated tags are generated.

[0141] Optionally, the processing unit is further configured to:

[0142] If the verification fails, a second instruction message is returned to the server, where the second instruction message is used to instruct the developer to adjust the private update content corresponding to the first type of tag.

[0143] Optionally, the type of the label includes at least one of a left image and right text type, a right image and left text type, a left and right image middle text type, a filled image type, and a pure text type.

[0144] In this way, when the target object has a label update requirement, it only needs to obtain the label style sheet to be updated and the label update data from the server to automatically generate the updated label. Compared with the prior art method that requires developers to manually write code to complete label updates, the label update device provided in the embodiment of the present application can greatly reduce the workload of developers in updating labels during version iterations, improve the work efficiency of developers, and thus shorten the version iteration cycle and improve the efficiency of label updates.

[0145] Figure 7 This is a schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device provided in the embodiment of the present application includes: a memory 701 for storing program instructions; a processor 702 for calling and executing the program instructions in the memory to implement the label updating method described in the above embodiment.

[0146] In the embodiment of the present application, the processor 502 and the memory 501 may be connected via a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application-specific integrated circuit, or one or more integrated circuits configured to implement the embodiment of the present invention. The memory may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk, or a solid-state drive.

[0147] The present embodiment further provides a storage medium, in which a computer program is stored. When at least one processor of the label updating device executes the computer program, the label updating device executes the label updating method described in the above embodiment.

[0148] The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM).

[0149] Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be implemented by means of software plus a necessary general hardware platform. Based on this understanding, the technical solution in the embodiments of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application or some parts of the embodiments.

[0150] In this specification, the same or similar parts between the various embodiments can be referred to each other. In particular, for the service construction device and service loading device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

[0151] The above-described implementation modes of the present application do not constitute a limitation on the protection scope of the present invention.

Claims

1. A label updating method, characterized in that: The method comprises: Acquire a tag style sheet to be updated corresponding to the target object from the server, wherein the tag style sheet to be updated is determined according to update content common to all tags belonging to the target object when the target object has a tag update requirement; Determine a target tag style sheet according to the tag style sheet to be updated and the tag style sheet before updating, wherein the tag style sheet before updating includes a default tag style sheet and a custom tag style sheet; merge the tag style sheet to be updated and the custom tag style sheet to obtain a merged tag style sheet; merge the merged tag style sheet and the default tag style sheet to obtain the target tag style sheet; Obtain the private update content corresponding to each type of tag from the server; For a first type of tag, a rule check is performed on the target tag style sheet and the private update content corresponding to the first type of tag. If the check passes, the target tag style sheet and the private update content corresponding to the first type of tag are merged to obtain an updated first type of tag; the first type of tag is any type of tag among the various types of tags; The updated labels are generated according to the updated labels of each type.

2. The method according to claim 1, characterized in that The default tag style sheet is determined according to the default style of the tag before updating, and the custom tag style sheet is determined according to the custom style of the tag before updating.

3. The method according to claim 1, characterized in that: The merged tag style sheet and the default tag style sheet are merged to obtain the target tag style sheet, including: Performing rule verification on the merged tag style sheet and the default tag style sheet, and if they pass the verification, merging the merged tag style sheet and the default tag style sheet to obtain the target tag style sheet; If the verification fails, a first instruction message is returned to the server, where the first instruction message is used to instruct the developer to adjust the tag style sheet to be updated.

4. The method according to claim 1, characterized in that: The tag style sheet to be updated and the custom tag style sheet are merged to obtain a merged tag style sheet, including: According to the priority of the tag style sheet to be updated and the priority of the custom tag style sheet, the tag style sheet to be updated and the custom tag style sheet are merged to obtain a merged tag style sheet; the priority of the tag style sheet to be updated is higher than the priority of the custom tag style sheet.

5. The method according to claim 1, characterized in that The method further comprises: If the verification fails, a second instruction message is returned to the server, where the second instruction message is used to instruct the developer to adjust the private update content corresponding to the first type of tag.

6. The method according to any one of claims 1 to 5, characterized in that The type of the label includes at least one of a left image and right text type, a right image and left text type, a left and right image and middle text type, a filled image type, and a pure text type.

7. A label updating device, characterized in that: The device comprises: An acquisition unit, configured to acquire a tag style sheet to be updated corresponding to a target object from a server, wherein the tag style sheet to be updated is determined according to update contents common to all tags belonging to the target object when the target object has a tag update requirement; A processing unit is used to determine a target tag style sheet according to the tag style sheet to be updated and the tag style sheet before updating, wherein the tag style sheet before updating includes a default tag style sheet and a custom tag style sheet; merge the tag style sheet to be updated and the custom tag style sheet to obtain a merged tag style sheet; merge the merged tag style sheet and the default tag style sheet to obtain the target tag style sheet; The acquisition unit is further used to acquire private update contents corresponding to each type of tag from the server; The processing unit is also used to perform rule verification on the target tag style sheet and the private update content corresponding to the first type of tag. If the verification is passed, the target tag style sheet and the private update content corresponding to the first type of tag are merged to obtain an updated first type of tag; and, based on the updated tags of each type, the updated tags are generated, wherein the first type of tag is any type of tag among the various types of tags.

8. The device according to claim 7, characterized in that The default label style sheet is determined according to the default style of the label before updating; the custom label style sheet is determined according to the custom style of the label before updating.

9. The device according to claim 7, characterized in that The processing unit is specifically used for: Performing rule verification on the merged tag style sheet and the default tag style sheet, and if they pass the verification, merging the merged tag style sheet and the default tag style sheet to obtain the target tag style sheet; And, if the verification fails, a first instruction message is returned to the server, where the first instruction message is used to instruct the developer to adjust the tag style sheet to be updated.

10. An electronic device, characterized in that: include: A memory for storing program instructions; A processor, configured to call and execute program instructions in the memory to implement the label updating method according to any one of claims 1 to 6.

11. A storage medium, characterized in that: The storage medium stores a computer program. When at least one processor of the label updating device executes the computer program, the label updating device executes the label updating method according to any one of claims 1 to 6.