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

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

Info

Publication number
CN112015377A
CN112015377A CN202010866171.8A CN202010866171A CN112015377A CN 112015377 A CN112015377 A CN 112015377A CN 202010866171 A CN202010866171 A CN 202010866171A CN 112015377 A CN112015377 A CN 112015377A
Authority
CN
China
Prior art keywords
style sheet
tag
label
updated
type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010866171.8A
Other languages
Chinese (zh)
Inventor
高春雷
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing 58 Information Technology Co Ltd
Original Assignee
Beijing 58 Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing 58 Information Technology Co Ltd filed Critical Beijing 58 Information Technology Co Ltd
Priority to CN202010866171.8A priority Critical patent/CN112015377A/en
Publication of CN112015377A publication Critical patent/CN112015377A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a label updating method, a label updating device, electronic equipment and a storage medium. The method comprises the following steps: and obtaining the to-be-updated tag style sheet corresponding to the target object from the server, and obtaining the private update contents corresponding to the tags of all types respectively. And determining a target label style sheet according to the label style sheet to be updated and the label style sheet before updating, and generating updated labels according to the target label style sheet and the private updating contents respectively corresponding to the labels of all types. Compared with the mode that developers need to write codes manually to complete label updating in the prior art, the label updating method provided by the embodiment of the application can greatly reduce the workload of the developers for updating labels in version iteration, improve the working efficiency of the developers, further shorten the period of the version iteration and improve the efficiency of label updating.

Description

Label updating method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for updating a tag, an electronic device, and a storage medium.
Background
With the rapid development of information technology, the internet brings great convenience to the life and work of people, and many services which originally need to be performed offline can be performed online through the internet, for example, people can perform various services such as shopping, renting, buying and seeking employment and the like through the internet. In order to facilitate the user to quickly find out the ideal article, the merchant usually generates a label according to the characteristics of the article itself for the user to filter.
Taking a house renting service as an example, as shown in fig. 1, a schematic diagram of a label of the house renting service is shown. According to the characteristics of the house source, the generated labels are as follows: the method comprises the following steps of 'adjacent iron', 'one-to-one pressing', 'complete matching', 'fine decoration', 'central heating', 'elevator' and 'common house'. These labels are not invariable, and as the service requirements change, the labels need to be updated, such as adjusting the fonts, the font sizes, the character colors, the frame intervals, the line heights, and the like of the labels, and for example, adding new operation activities and adding label pictures.
At present, each time of updating of a label needs a developer to manually write codes, so that the problems of more repeated work and lower working efficiency of the developer are easily caused, and the problems of lower label updating efficiency and longer iteration period are further caused.
Based on this, a label method is needed at present to solve the problems that the manual code writing in the prior art easily causes the low label updating efficiency and the long iteration cycle.
Disclosure of Invention
The application provides a label updating method, a label updating device, electronic equipment and a storage medium, which can be used for solving the technical problems that manual code writing in the prior art easily causes low label updating efficiency and long iteration period.
In a first aspect, an embodiment of the present application provides a tag updating method, where the method includes:
the method comprises the steps that a to-be-updated label style sheet corresponding to a target object is obtained from a server, and the to-be-updated label style sheet is determined according to the common update content of all labels belonging to the target object when the target object has a label update requirement;
determining a target label style sheet according to the label style sheet to be updated and the label style sheet before updating;
obtaining private updating contents corresponding to each type of label from a server;
and generating updated labels according to the target label style sheet and the private update contents respectively corresponding to the labels of all types.
With reference to the first aspect, in an implementation manner of the first aspect, the tag style sheet before updating includes a default tag style sheet and a custom tag style sheet; wherein the default tag style sheet is determined according to a default style of a tag before updating; the custom tag style sheet is determined according to the custom style of the tag before updating;
determining a target label style sheet according to the label style sheet to be updated and the label style sheet before updating, wherein the step of determining the target label style sheet comprises the following steps:
merging the to-be-updated tag style sheet and the custom tag style sheet to obtain a merged tag style sheet;
and determining the target label style sheet according to the combined label style sheet and the default label style sheet.
With reference to the first aspect, in an implementation 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:
carrying out rule verification on the combined label style sheet and the default label style sheet, and if the combined label style sheet and the default label style sheet pass the rule verification, combining the combined label style sheet and the default label style sheet to obtain the target label style sheet;
and if the tag style sheet passes the verification, returning a first indication message to the server, wherein the first indication message is used for indicating a developer to adjust the tag style sheet to be updated.
With reference to the first aspect, in an implementation 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:
combining the tag style sheet to be updated and the custom tag style sheet according to the priority of the tag style sheet to be updated and the priority of the custom tag style sheet to obtain a combined tag style sheet; the priority of the to-be-updated tag style sheet is higher than that of the custom tag style sheet.
With reference to the first aspect, in an implementation manner of the first aspect, generating an updated tag according to the target tag style sheet and the private update contents corresponding to the tags of each type respectively includes:
performing rule verification on the target tag style sheet and private update contents corresponding to the first type of tags according to the first type of tags, and if the target tag style sheet and the private update contents corresponding to the first type of tags pass the rule verification, merging the target tag style sheet and the private update contents corresponding to the first type of tags to obtain updated first type of tags; the first type of tag is any one type of tag among the types of tags;
and generating the updated label according to the updated labels of various types.
With reference to the first aspect, in an implementation manner of the first aspect, the method further includes:
and if the private update content is not verified, returning a second indication message to the server, wherein the second indication message is used for indicating a developer to adjust the private update content corresponding to the first type of tag.
With reference to the first aspect, in an implementation manner of the first aspect, the type of the tag includes at least one of a left-image right text type, a right-image left text type, a left-image middle text type, a pad-image type, and a plain text type.
In a second aspect, an embodiment of the present application provides a tag updating apparatus, where the apparatus includes:
the system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring a tag style sheet to be updated corresponding to a target object from a server, and the tag style sheet to be updated is determined according to the common update content of all tags belonging to the target object when the target object has a tag update demand;
the processing unit is used for determining a target label style sheet according to the label style sheet to be updated and the label style sheet before updating;
the acquisition unit is further configured to acquire private update contents corresponding to each type of tag from the server;
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.
With reference to the second aspect, in an implementation manner of the second aspect, the pre-update tag style sheet includes a default tag style sheet and a custom tag style sheet; wherein the default tag style sheet is determined according to a default style of a tag before updating; the custom tag style sheet is determined according to the custom style of the tag before updating;
the processing unit is specifically configured to:
merging the to-be-updated tag style sheet and the custom tag style sheet to obtain a merged tag style sheet; and determining the target label style sheet according to the combined label style sheet and the default label style sheet.
With reference to the second aspect, in an implementable manner of the second aspect, the processing unit is specifically configured to:
carrying out rule verification on the combined label style sheet and the default label style sheet, and if the combined label style sheet and the default label style sheet pass the rule verification, combining the combined label style sheet and the default label style sheet to obtain the target label style sheet; and if the tag style sheet is not verified, returning a first indication message to the server, wherein the first indication message is used for indicating a developer to adjust the tag style sheet to be updated.
With reference to the second aspect, in an implementable manner of the second aspect, the processing unit is specifically configured to:
combining the tag style sheet to be updated and the custom tag style sheet according to the priority of the tag style sheet to be updated and the priority of the custom tag style sheet to obtain a combined tag style sheet; the priority of the to-be-updated tag style sheet is higher than that of the custom tag style sheet.
With reference to the second aspect, in an implementable manner of the second aspect, the processing unit is specifically configured to:
performing rule verification on the target tag style sheet and private update contents corresponding to the first type of tags according to the first type of tags, and if the target tag style sheet and the private update contents corresponding to the first type of tags pass the rule verification, merging the target tag style sheet and the private update contents corresponding to the first type of tags to obtain updated first type of tags; the first type of tag is any one type of tag among the types of tags; and generating the updated label according to the updated labels of various types.
With reference to the second aspect, in an implementable manner of the second aspect, the processing unit is further configured to:
and if the private update content is not verified, returning a second indication message to the server, wherein the second indication message is used for indicating a developer to adjust the private update content corresponding to the first type of tag.
With reference to the second aspect, in an implementable manner of the second aspect, the type of the tag includes at least one of a left-image right-text type, a right-image left-text type, a left-image middle-text type, a fill-map type, and a plain-text type.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory for storing program instructions;
a processor for calling and executing the program instructions in the memory to implement the tag update method described above.
In a fourth aspect, an embodiment of the present application provides a storage medium, where a computer program is stored, and when at least one processor of a tag updating apparatus executes the computer program, the tag updating apparatus executes the tag updating method described above.
In the embodiment of the application, the to-be-updated tag style sheet corresponding to the target object can be obtained from the server, and the private update contents corresponding to each type of tag can be obtained. According to the tag style sheet to be updated and the tag style sheet before updating, the target tag style sheet can be determined, and then according to the target tag style sheet and the private updating contents respectively corresponding to the tags of all types, the updated tag can be generated. By adopting the method, when the target object has a label updating requirement, the updated label can be automatically generated only by acquiring the label style sheet to be updated and the label updating data from the server, and compared with the mode that developers need to write codes manually to complete label updating in the prior art, the label updating method provided by the embodiment of the application can greatly reduce the workload of the developers for updating the label in version iteration, improve the working efficiency of the developers, further shorten the period of the version iteration and improve the efficiency of label updating.
Drawings
Fig. 1 is a schematic diagram of a label of a rental service;
FIG. 2a is one of the schematic diagrams of a tag provided by an embodiment of the present application;
FIG. 2b is a second schematic diagram of a tag provided in an embodiment of the present application;
FIG. 2c is a third schematic diagram of a tag provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of a tag updating method according to an embodiment of the present disclosure;
fig. 4a is a schematic diagram of a left-image right-text type label according to an embodiment of the present application;
fig. 4b is a schematic diagram of a label of a right-image left-text type according to an embodiment of the present application;
FIG. 4c is a schematic diagram of a left-right graph middle text type label according to an embodiment of the present application;
FIG. 4d is a schematic diagram of a label of the type of a fill map provided by an embodiment of the present application;
fig. 4e is a schematic diagram of a label of a plain text type according to an embodiment of the present application;
fig. 5 is a schematic flowchart illustrating integrity corresponding to a tag updating method according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a tag updating apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The label is a portrait capable of intuitively and quickly presenting the value of the article. Tags are widely used in the internet, and have the image of the tag, whether it is an Application (APP) or a World Wide Web (Web). Taking a house renting service as an example, the most visual portrait of a house source is the label of the house source, and the label can appear on a quick screening bar of the house source, can also appear on a list page of the house source, and can also appear on a detail page of the house source.
The tag can support functions of click call-back, flexible extension type and the like. When the tag is clicked, the user can call back to the set page.
As shown in fig. 2a, which is one of the schematic diagrams of the tags provided in the embodiment of the present application, it can be seen from fig. 2a that the tags "1200 + 1500 yuan", "1500 + 2000 yuan", "2000 + 2400 yuan", "nine trees", "riverside", "jade bridge", "arbor house", "earth bridge", "co-tenant horizontal" and "co-tenant horizontal" can appear in the quick filter bar (i.e., the area corresponding to the priority recommendation shown in fig. 2 a).
As shown in fig. 2b, a second schematic diagram of the tags provided in the embodiment of the present application, as can be seen from fig. 2b, a plurality of house sources appear on the list page, each house source has a corresponding tag, and the tags corresponding to the house sources, for example, the first house source, include "pick and place", "600 yuan vertical subtraction", "adjacent subway", "pay-as-you-go" and "north-south through", which can be regarded as the tags appearing on the list page.
As shown in fig. 2c, a third schematic diagram of the tags provided in the embodiment of the present application can be seen from fig. 2c, and the following tags, "independent", "adjacent iron", "one-for-one-press", "complete", "independent", "smart door lock", "fine decoration", and "24H security" appear on the detail page of the house source.
With the development of services, the popularization of operational activities, or the change of market regulatory requirements, the tags need to be updated. At present, the label is updated by adopting an open-loop mechanism, that is, a fixed style layout is adopted in App or Web, and a mechanism that a server issues a label with a specified color is added to update the label. The updating method easily causes frequent version iteration of developers, and increases the iteration period, thereby reducing the efficiency of label updating.
Based on this, an embodiment of the present application provides a tag updating method, and specifically please refer to fig. 3, which schematically shows a flowchart corresponding to the tag updating method provided in the embodiment of the present application, and includes the following steps:
step 301, obtaining a to-be-updated tag style sheet corresponding to a target object from a server.
Step 302, determining a target label style sheet according to the label style sheet to be updated and the label style sheet before updating.
Step 303, obtaining the private update contents corresponding to each type of tag from the server.
And 304, generating updated labels according to the target label style sheet and the private update contents respectively corresponding to the labels of all types.
It should be noted that the step number is only an exemplary representation of an execution flow, and the sequence of each step is not specifically limited in the present application, for example, in step 301 and step 203, the private update contents corresponding to each type of tag may be obtained from the server first, then the to-be-updated tag style sheet corresponding to the target object is obtained from the server, and then the target tag style sheet is determined according to the to-be-updated tag style sheet and the tag style sheet before updating.
In the embodiment of the application, the to-be-updated tag style sheet corresponding to the target object can be obtained from the server, and the private update contents corresponding to each type of tag can be obtained. According to the tag style sheet to be updated and the tag style sheet before updating, the target tag style sheet can be determined, and then according to the target tag style sheet and the private updating contents respectively corresponding to the tags of all types, the updated tag can be generated. By adopting the method, when the target object has a label updating requirement, the updated label can be automatically generated only by acquiring the label style sheet to be updated and the label updating data from the server, and compared with the mode that developers need to write codes manually to complete label updating in the prior art, the label updating method provided by the embodiment of the application can greatly reduce the workload of the developers for updating the label in version iteration, improve the working efficiency of the developers, further shorten the period of the version iteration and improve the efficiency of label updating.
Specifically, in step 301, the target object may be different according to the service type. For example, in a house renting service, the target object may be a house source; for another example, in a shopping business, the target object may be a commodity; as another example, in a job hunting service, the target object may be a work post.
For the same target object, the type of the tag corresponding to the target object may be various. In the embodiment of the application, the type of the label may include at least one of a left-image right-character type, a right-image left-character type, a left-image middle-character type, a fill-image type, and a plain-character type.
The label of the left-image right-character type means that the label is in the form of a left-image and a right-image. Reference may be made to fig. 4a, which is a schematic diagram illustrating a left-right text type label provided by an embodiment of the present application.
Labels of the right-image left-text type refer to labels in the form of a right image with text on the left. Reference may be made to fig. 4b, which is a schematic diagram illustrating a label of a right-left text type provided by an embodiment of the present application.
The label of the character type in the middle of the left and right figures means that the label is in the form of a figure on the left, a figure on the right and a character in the middle. Reference may be made to fig. 4c, which is a schematic diagram illustrating a left-right diagram lettered type label provided by an embodiment of the application.
A label of the fill-map type means that the form of the label includes only pictures. Reference may be made to fig. 4d, which is a schematic diagram that illustrates a label of a type of a fill map provided by an embodiment of the present application. The picture may be a character type picture or a non-character type picture, and is not limited specifically. The label of the filling graph type can adapt to characteristic requirements, such as characteristic characters, striking pictures and the like.
The plain text type means that the form of the label includes only text. Reference may be made to fig. 4e, which schematically illustrates a schematic diagram of a label of a plain text type provided by an embodiment of the present application.
It should be noted that the types of the tags shown above are merely exemplary, and those skilled in the art may add the types of the tags or delete the types of the tags according to actual situations, and are not limited specifically.
When the target object has a label updating requirement, the attribute information of the label is updated. The attribute information of the label comprises attribute information such as frame thickness, frame color, character color, font size, picture starting position, line height, frame interval, picture-text interval, vertical interval, horizontal interval and the like.
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.
The updated content common to all the tags may include common attribute information of the tags, such as attribute information of fonts, word sizes, character colors, frame intervals, line heights, and the like of the tags. The updated content common to all the tags is not differentiated by the difference of the individual tags.
The private update contents corresponding to each type of tag may include the private attribute information of each type of tag, that is, the private update contents may be differentiated according to differences between tags, for example, the private update content corresponding to the type a tag may be to update the attribute a, and the private update content corresponding to the type B tag may be to update the attribute B.
For example, for a label of a left image and a right character type, attribute information such as a picture size, a picture source, a picture starting position and the like of the label of the type can be updated; similarly, for the label of the text type in the middle of the left and right images, the attribute information of the label of the type, such as the left image size, the left image source, the left image start position, the right image size, the right image source, and the right image start position, may be updated.
In the embodiment of the application, the tag style sheet to be updated may be determined according to the update content common to all tags belonging to the target object when the target object has a tag update requirement.
For example, the tag update requirement of the target object is to update the fonts of all tags to sons, the update content common to all tags is to update the fonts of the tags to sons, and the tag style sheet to be updated may include a logic code for updating the fonts of the tags to sons.
For another example, the tag update requirement of the target object is to update the text color of all tags to blue, and the update content common to all tags is to update the text color of the tags to blue, and further, the tag style sheet to be updated may include a logic code for updating the text color of the tags to blue.
It should be noted that the tag style sheet to be updated is generated to solve the instant operation characteristic activity and adapt to the dynamic characteristics of the tag, and the tag style sheet to be updated can be issued by the server to satisfy the mechanism of dynamic update of the tag. The to-be-updated label style sheet is generated according to the updating requirement, and when the updating requirement does not have the common updating content of all the labels, the server does not issue the to-be-updated label style sheet, namely, the to-be-updated label style sheet can be lost.
In step 302, the pre-update tab style sheet may include a default tab style sheet and a custom tab style sheet.
The default tag style sheet can be determined according to the default style of the tag before updating, and the custom tag style sheet can be determined according to the custom style of the tag before updating.
It should be noted that the default tag style sheet is a built-in template style sheet, and is not indispensable. Even in the case of missing custom tag stylesheets and tag stylesheets to be updated, developers can still provide integrity rules for the layout and presentation of tags according to the default tag stylesheets. The default tag style sheet can reduce repeated configuration of style rules by developers, thereby reducing repetitive work of the developers.
It should also be noted that the custom tag style sheet is a built-in custom style specification, and can be finely adjusted on the basis of a default tag style sheet, and the custom tag style sheet can also be absent.
Furthermore, when the current tag style sheet is determined, the tag style sheet to be updated and the custom tag style sheet can be merged to obtain a merged tag style sheet; and determining a target label style sheet according to the combined label style sheet and the default label style sheet.
Considering that logic codes in the to-be-updated tag style sheet and the custom tag style sheet may be different for the same attribute information, for example, the to-be-updated tag style sheet requires that fonts of all tags are modified to sons, and the custom tag style sheet requires that fonts of all tags are modified to regular fonts, at this time, the to-be-updated tag style sheet and the custom tag style sheet may be merged according to a priority of the to-be-updated tag style sheet and a priority of the custom tag style sheet, so as to merge the merged tag style sheet; wherein the priority of the updating tag style sheet is higher than the priority of the self-defining tag style sheet.
That is, for the same attribute information, when the logic code in the tag style sheet to be updated is different from the logic code in the custom tag style sheet, the tag style sheet to be updated may be used as the standard.
In order to reduce the error probability of the target style sheet, after the combined label style sheet is obtained, the combined label style sheet and the default label style sheet can be subjected to rule verification, and if the combined label style sheet and the default label style sheet pass the verification, the combined label style sheet and the default label style sheet are combined to obtain the target label style sheet; if the tag style sheet fails to be verified, a first indication message may be returned to the server, where the first indication message may be used to indicate the developer to adjust the tag style sheet to be updated.
Through rule verification, a target tag style sheet formed by the tag style sheet to be updated, the user-defined tag style sheet and the default tag style sheet can be prevented from exceeding hard specifications of a platform, client hardware and the like.
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.
For example, the tag update requirement of the target object is to update the picture size in the tag of the left-image right-character type to 5 × 5, and then the private attribute information corresponding to the tag of the left-image right-character type is to update the picture size to 5 × 5, and further, the private update content corresponding to the tag of the left-image right-character type may include a logic code for updating the picture size to 5 × 5.
In step 304, it is considered that the private update contents corresponding to each type of tag are different, so that in the process of generating the updated tag, tag updating can be performed for each type of tag.
Specifically, rule verification is performed on the target tag style sheet and the private update content corresponding to the first type of tag aiming at the first type of tag, and if the rule verification is passed, the target tag style sheet and the private update content corresponding to the first type of tag are combined to obtain an updated first type of tag; and if the private update content is not verified, returning a second indication message to the server, wherein the second indication message can be used for indicating the developer to adjust the private update content corresponding to the first type of tag. The first type of tag may be any one of various types of tags.
Further, from each type of updated tag, an updated tag can be generated.
In the embodiment of the present application, the above process may be implemented by a Model factory. The server issues private updating contents corresponding to each type of label respectively in order to meet the requirements of business requirements and operation popularization, the private updating contents corresponding to each type of label are input into a Model factory, polymorphic data Model arrays of different data types are reflected under the mechanism of the Model factory, and the polymorphic data Model array of each data type comprises the private updating contents corresponding to one type of label. And then, receiving the target label style sheet and the polymorphic data model array by using the view generator, and generating an updated label according to the target label style sheet and the polymorphic data model array.
In order to more clearly describe the tag updating method provided by the embodiment of the present application, the following will fully describe the tag updating method related to the embodiment of the present application with reference to fig. 5. As shown in fig. 5, the method specifically includes the following steps:
step 501, obtaining a to-be-updated label style sheet corresponding to a target object from a server.
Step 502, obtaining a custom tag style sheet.
Step 503, obtain the default label style sheet.
And step 504, combining the tag style sheet to be updated and the user-defined tag style sheet according to the priority of the tag style sheet to be updated and the priority of the user-defined tag style sheet to obtain a combined tag style sheet.
Step 505, performing rule verification on the combined tag style sheet and the default tag style sheet, judging whether the combined tag style sheet and the default tag style sheet pass the verification, and if the combined tag style sheet and the default tag style sheet pass the rule verification, executing step 506; otherwise, go to step 507.
And step 506, merging the merged label style sheet and the default label style sheet to obtain a target label style sheet.
Step 507, returning the first indication message to the server.
And step 508, obtaining the private update contents respectively corresponding to the tags of each type from the server.
In step 509, the private update contents corresponding to each type of tag are input into the Model factory.
Step 510, reflecting polymorphic data Model arrays of different data types under the Model factory mechanism.
And 511, performing rule verification by using the view generator according to the target label style sheet and the polymorphic data model array of any data type, and generating the view of the data type.
It should be noted that, the process of rule checking in step 511 may refer to step 505, and if the rule checking is not passed, a second indication message may be returned to the server.
And step 512, performing rule verification according to the plurality of data model arrays of all data types, and generating an updated label.
The process of rule checking in step 512 may include multiple rows of rules, margin rules, horizontal rules, vertical rules, view layout rules, and the like.
It should be noted that the step numbers are only exemplary representations of execution flows, and the sequence of each step is not specifically limited in this application.
Therefore, when a target object has a label updating requirement, only the private updating contents corresponding to the label style sheet to be updated and each type of label are required to be acquired from the server, and then the updated label can be automatically generated.
Furthermore, due to popularization of operation activities, when operators have new label requirements, labels can be dynamically and flexibly configured by modifying the label style sheet to be updated. Furthermore, by adopting the method of the embodiment of the application to update the label, the user can quickly acquire the portrait of the target object, the perception usefulness of the user to the target house source is increased, the user can be helped to quickly screen out the articles meeting the requirement, and the satisfaction degree of the user is improved.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 6 schematically illustrates a structural diagram of a tag updating apparatus provided in an embodiment of the present application. As shown in fig. 6, the apparatus has a function of implementing the above tag updating method, and the function may be implemented by hardware, or by hardware executing corresponding software. The apparatus may include: an acquisition unit 601 and a processing unit 602.
An obtaining unit 601, configured to obtain, from a server, a to-be-updated tag style sheet corresponding to a target object, where the to-be-updated tag style sheet is determined according to update contents common to all tags of private update contents corresponding to respective types of tags when the target object has a tag update demand;
a processing unit 602, configured to determine a target tag style sheet according to the tag style sheet to be updated and the tag style sheet before update;
the obtaining unit 601 is further configured to obtain, from a server, tag update data corresponding to the target object, where the tag update data includes private update contents corresponding to each type of tag;
the processing unit 602 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.
Optionally, the pre-update tag style sheet comprises a default tag style sheet and a custom tag style sheet; wherein the default tag style sheet is determined according to a default style of a tag before updating; the custom tag style sheet is determined according to the custom style of the tag before updating;
the processing unit is specifically configured to:
merging the to-be-updated tag style sheet and the custom tag style sheet to obtain a merged tag style sheet; and determining the target label style sheet according to the combined label style sheet and the default label style sheet.
Optionally, the processing unit is specifically configured to:
carrying out rule verification on the combined label style sheet and the default label style sheet, and if the combined label style sheet and the default label style sheet pass the rule verification, combining the combined label style sheet and the default label style sheet to obtain the target label style sheet; and if the tag style sheet is not verified, returning a first indication message to the server, wherein the first indication message is used for indicating a developer to adjust the tag style sheet to be updated.
Optionally, the processing unit is specifically configured to:
combining the tag style sheet to be updated and the custom tag style sheet according to the priority of the tag style sheet to be updated and the priority of the custom tag style sheet to obtain a combined tag style sheet; the priority of the to-be-updated tag style sheet is higher than that of the custom tag style sheet.
Optionally, the processing unit is specifically configured to:
performing rule verification on the target tag style sheet and private update contents corresponding to the first type of tags according to the first type of tags, and if the target tag style sheet and the private update contents corresponding to the first type of tags pass the rule verification, merging the target tag style sheet and the private update contents corresponding to the first type of tags to obtain updated first type of tags; the first type of tag is any one type of tag among the types of tags; and generating the updated label according to the updated labels of various types.
Optionally, the processing unit is further configured to:
and if the private update content is not verified, returning a second indication message to the server, wherein the second indication message is used for indicating a developer to adjust the private update content corresponding to the first type of tag.
Optionally, the type of the label includes at least one of a left-image right-text type, a right-image left-text type, a left-image middle-text type, a fill-image type, and a plain-text type.
So, when the target object has the label to update the demand, only need obtain from the server and wait to update label style sheet and label updating data, just can the automatic generation label after the update, compare in prior art need the developer to write the code in order to accomplish the mode that the label was updated by the manual work, the label updating device that this application embodiment provided can significantly reduce the developer and update the work load of label in the version iteration, improve developer's work efficiency, and then can shorten the cycle of version iteration, improve the efficiency of label update.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 7, an electronic device provided in an embodiment of the present application includes: a memory 701 for storing program instructions; the processor 702 is configured to call and execute the program instructions in the memory to implement the tag updating method according to the foregoing embodiment.
In the embodiment of the present application, the processor 502 and the memory 501 may be connected by 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 embodiments of the present invention. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
The present embodiment also provides a storage medium, in which a computer program is stored, and when at least one processor of the tag updating apparatus executes the computer program, the tag updating apparatus executes the tag updating method according to the foregoing embodiment.
The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will readily appreciate that the techniques of the embodiments of the present application may be implemented as software plus a required general purpose hardware platform. With this understanding in mind, the technical solutions in the embodiments of the present application may be essentially implemented or partially contributed to by the prior art, and the computer software product may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the methods in the embodiments or some parts of the embodiments of the present application.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, for the embodiments of the service construction apparatus and the service loading apparatus, since they are substantially similar to the embodiments of the method, the description is simple, and the relevant points can be referred to the description in the embodiments of the method.
The above-described embodiments of the present invention should not be construed as limiting the scope of the present invention.

Claims (12)

1. A tag update method, the method comprising:
the method comprises the steps that a to-be-updated label style sheet corresponding to a target object is obtained from a server, and the to-be-updated label style sheet is determined according to the common update content of all labels belonging to the target object when the target object has a label update requirement;
determining a target label style sheet according to the label style sheet to be updated and the label style sheet before updating;
obtaining private updating contents corresponding to each type of label from a server;
and generating updated labels according to the target label style sheet and the private update contents respectively corresponding to the labels of all types.
2. The method of claim 1, wherein the pre-update tag style sheet comprises a default tag style sheet and a custom tag style sheet; 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;
determining a target label style sheet according to the label style sheet to be updated and the label style sheet before updating, wherein the step of determining the target label style sheet comprises the following steps:
merging the to-be-updated tag style sheet and the custom tag style sheet to obtain a merged tag style sheet;
and determining the target label style sheet according to the combined label style sheet and the default label style sheet.
3. The method of claim 2, wherein determining the target tag style sheet from the merged tag style sheet and the default tag style sheet comprises:
carrying out rule verification on the combined label style sheet and the default label style sheet, and if the combined label style sheet and the default label style sheet pass the rule verification, combining the combined label style sheet and the default label style sheet to obtain the target label style sheet;
and if the tag style sheet passes the verification, returning a first indication message to the server, wherein the first indication message is used for indicating a developer to adjust the tag style sheet to be updated.
4. The method according to claim 2, wherein merging the to-be-updated tag style sheet and the custom tag style sheet to obtain a merged tag style sheet comprises:
combining the tag style sheet to be updated and the custom tag style sheet according to the priority of the tag style sheet to be updated and the priority of the custom tag style sheet to obtain a combined tag style sheet; the priority of the to-be-updated tag style sheet is higher than that of the custom tag style sheet.
5. The method according to claim 1, wherein generating updated tags according to the target tag style sheet and the private update contents respectively corresponding to the tags of each type comprises:
performing rule verification on the target tag style sheet and private update contents corresponding to the first type of tags according to the first type of tags, and if the target tag style sheet and the private update contents corresponding to the first type of tags pass the rule verification, merging the target tag style sheet and the private update contents corresponding to the first type of tags to obtain updated first type of tags; the first type of tag is any one type of tag among the types of tags;
and generating the updated label according to the updated labels of various types.
6. The method of claim 5, further comprising:
and if the private update content is not verified, returning a second indication message to the server, wherein the second indication message is used for indicating a developer to adjust the private update content corresponding to the first type of tag.
7. The method of any one of claims 1 to 6, wherein the type of label comprises at least one of a left-image right text type, a right-image left text type, a left-image middle text type, a fill-image type, and a plain text type.
8. A tag updating apparatus, the apparatus comprising:
the system comprises an acquisition unit, a storage unit and a processing unit, wherein the acquisition unit is used for acquiring a tag style sheet to be updated corresponding to a target object from a server, and the tag style sheet to be updated is determined according to the common update content of all tags belonging to the target object when the target object has a tag update demand;
the processing unit is used for determining a target label style sheet according to the label style sheet to be updated and the label style sheet before updating;
the acquisition unit is further configured to acquire private update contents corresponding to each type of tag from the server;
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.
9. The apparatus of claim 8, wherein the pre-update tag style sheet comprises a default tag style sheet and a custom tag style sheet; wherein the default tag style sheet is determined according to a default style of a tag before updating; the custom tag style sheet is determined according to the custom style of the tag before updating;
the processing unit is specifically configured to:
merging the to-be-updated tag style sheet and the custom tag style sheet to obtain a merged tag style sheet; and determining the target label style sheet according to the combined label style sheet and the default label style sheet.
10. The apparatus according to claim 9, wherein the processing unit is specifically configured to:
carrying out rule verification on the combined label style sheet and the default label style sheet, and if the combined label style sheet and the default label style sheet pass the rule verification, combining the combined label style sheet and the default label style sheet to obtain the target label style sheet; and if the tag style sheet is not verified, returning a first indication message to the server, wherein the first indication message is used for indicating a developer to adjust the tag style sheet to be updated.
11. An electronic device, comprising:
a memory for storing program instructions;
a processor for calling and executing program instructions in said memory to implement the tag update method of any of claims 1 to 7.
12. A storage medium, characterized in that the storage medium has stored therein a computer program which, when executed by at least one processor of a tag updating apparatus, causes the tag updating apparatus to execute the tag updating method according to any one of claims 1 to 7.
CN202010866171.8A 2020-08-25 2020-08-25 Label updating method and device, electronic equipment and storage medium Pending CN112015377A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010866171.8A CN112015377A (en) 2020-08-25 2020-08-25 Label updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010866171.8A CN112015377A (en) 2020-08-25 2020-08-25 Label updating method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112015377A true CN112015377A (en) 2020-12-01

Family

ID=73502261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010866171.8A Pending CN112015377A (en) 2020-08-25 2020-08-25 Label updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112015377A (en)

Similar Documents

Publication Publication Date Title
CN109614424B (en) Page layout generation method, device, computing equipment and medium
CN110705237B (en) Automatic document generation method, data processing device and storage medium
CN109710528B (en) Test script generation method, device, equipment and medium
CN111243061B (en) Commodity picture generation method, device and system
CN114217795A (en) Page generation method and device, electronic equipment and readable storage medium
CN114296660A (en) Label printing method based on Vue framework
CN114416056A (en) Page generation method, system, computer equipment and readable storage medium
CN114489625A (en) Method and device for converting JSON format text into visual configuration tool
CN114661286A (en) Large-screen visual code generation method, system and storage medium
CN112052157B (en) Method, device and system for constructing test message
CN111931475A (en) Dynamic subscription book generation method, system, computer equipment and storage medium
CN112015377A (en) Label updating method and device, electronic equipment and storage medium
CN115858049A (en) RPA flow componentization arrangement method, device, equipment and medium
CN112558957B (en) Method and device for generating webpage form, electronic equipment and readable storage medium
CN102099806B (en) Information output apparatus, information output method, and recording medium
CN109582411A (en) Graphical user interface creating method, device, computer equipment and storage medium
CN114724170A (en) BOM generation method and device, electronic equipment and storage medium
CN115268873A (en) Low-code file development method based on multi-person cooperation
CN113742559A (en) Keyword detection method and device, electronic equipment and storage medium
CN114387429A (en) Vehicle property right processing method, device, equipment and medium based on RPA and AI
CN112882665A (en) Method and device for generating printing template, electronic equipment and storage medium
CN114169306A (en) Method, device and equipment for generating electronic receipt and readable storage medium
US20200272688A1 (en) Information processing apparatus and non-transitory computer readable medium
CN113312104A (en) Advertisement conversion method and system based on small program
CN110837371A (en) Document designer, document designing method and document input system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination