CN111209009B - Content distribution method and device, storage medium and electronic equipment - Google Patents
Content distribution method and device, storage medium and electronic equipment Download PDFInfo
- Publication number
- CN111209009B CN111209009B CN201811392740.9A CN201811392740A CN111209009B CN 111209009 B CN111209009 B CN 111209009B CN 201811392740 A CN201811392740 A CN 201811392740A CN 111209009 B CN111209009 B CN 111209009B
- Authority
- CN
- China
- Prior art keywords
- content
- distributed
- object component
- component
- component library
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a content issuing method and device, which are used for acquiring content to be issued when an issuing instruction is received; judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object; when the object component corresponding to the content to be distributed exists in the object component library, determining a configuration file corresponding to the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed so as to realize the distribution of the content to be distributed in the target object. According to the content to be distributed, the configuration parameters corresponding to the object components in the configuration file are updated according to the content to be distributed, so that efficient and automatic distribution and updating of the target object are realized.
Description
Technical Field
The present invention relates to the field of network technologies, and in particular, to a content publishing method and apparatus, a storage medium, and an electronic device.
Background
With the continuous development of society, under the influence of various high and new technologies, the development of network technology is faster and faster, and network products developed by applying the network technology become indispensable use tools in people's life.
In the prior art, development of network products can be realized by writing codes such as hypertext markup Language (html), cascading style sheets (Cascading Style Sheets, css) or an interpreted script Language (JavaScript, js).
Thus, when it is desired to release new content on a network product, then the html, css, or js code needs to be written or altered. That is, the new content to be released by the network product cannot be released and updated without writing new or changing html, css or js codes.
Disclosure of Invention
In view of this, the embodiment of the invention provides a content publishing method and device, so as to achieve the purpose of efficient and automatic publishing and updating of a target object.
In order to achieve the above object, the embodiment of the present invention provides the following technical solutions:
the first aspect of the invention discloses a content distribution method, which comprises the following steps:
when an issue command is received, acquiring content to be issued;
judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object;
when the object component exists, determining a configuration file corresponding to the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed so as to realize the distribution of the content to be distributed in the target object.
Preferably, the determining whether the object component corresponding to the content to be distributed exists in the object component library corresponding to the target object includes:
determining the content attribute of the object content currently realized in the target object by each object component in the object component library;
when the content attribute of the content to be distributed is the same as the content attribute of any object content currently realized by the object components, judging that the object components corresponding to the content to be distributed exist in the object component library.
Preferably, the updating the configuration parameters corresponding to the object components in the configuration file according to the content to be distributed includes:
determining content release parameters corresponding to the content to be released;
and updating the configuration parameters corresponding to the object content currently realized in the target object by the object component in the configuration file into the content release parameters.
Preferably, the object component library is a component library which is pre-established and corresponds to the target object;
the pre-establishment process of the object component library comprises the following steps:
when the target object is created, acquiring each object content contained in the target object;
writing an object component corresponding to each object content, wherein the object component contains component codes for realizing the object content;
and associating each written object component according to the association relation among the object contents so as to establish the object component library.
Preferably, the method further comprises:
when the object components corresponding to the content to be distributed do not exist in the object component library, creating the object components corresponding to the content to be distributed, and associating the object components corresponding to the content to be distributed to the object component library.
Preferably, the associating the object component corresponding to the content to be distributed to the object component library includes:
determining the release position of the content to be released in the target object;
according to the release position, determining each adjacent object content with an adjacent relation with the content to be released in the target object, and determining an object component corresponding to each adjacent object content in the object component library;
and associating the object components corresponding to the content to be distributed with the object components corresponding to each adjacent object content according to the adjacent relation between the content to be distributed and each adjacent object content.
Preferably, the method further comprises:
and when the content to be distributed is distributed, sending a notification message of the distribution completion to the user.
The second aspect of the present invention discloses a content distribution apparatus comprising:
the acquisition unit is used for acquiring the content to be distributed when receiving the distribution instruction;
the judging unit is used for judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object;
and the issuing unit is used for determining a configuration file corresponding to the object component library when the object component corresponding to the content to be issued exists in the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be issued so as to issue the content to be issued in the target object.
A third aspect of the present invention discloses a storage medium including a stored program, wherein the program, when executed, controls a device in which the storage medium resides to execute the content distribution method disclosed in the first aspect of the present invention described above.
A fourth aspect of the invention discloses an electronic device comprising a memory and one or more instructions stored in the memory and configured to be executed by one or more processors by the content distribution method as disclosed in the first aspect of the invention described above.
Based on the content issuing method provided by the embodiment of the invention, when an issuing instruction is received, the content to be issued is obtained; judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object; when the object component corresponding to the content to be distributed exists in the object component library, determining a configuration file corresponding to the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed so as to realize the distribution of the content to be distributed in the target object. According to the content to be distributed, the configuration parameters corresponding to the object components in the configuration file are updated according to the content to be distributed, so that efficient and automatic distribution and updating of the target object are realized.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for content distribution according to an embodiment of the present invention;
FIG. 2 is a flowchart of a method for distributing content according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an exemplary content distribution method according to an embodiment of the present invention;
FIG. 4 is a diagram illustrating an exemplary content distribution method according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating an exemplary content distribution method according to an embodiment of the present invention;
FIG. 6 is a diagram illustrating an exemplary content distribution method according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a content distribution apparatus according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In this application, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The embodiment of the invention discloses a content publishing method which can be applied to processors of various objects such as websites, webpages and APP, and the method comprises the following steps:
step S101: and when receiving the issuing instruction, acquiring the content to be issued.
According to the method provided by the embodiment of the invention, when the processor receives the issuing instruction, the processor acquires the content to be issued.
In the method provided by the embodiment of the invention, when a user needs to issue new content in a target object, an issue instruction is sent to a processor, and when the processor receives the issue instruction sent by the user, the processor acquires the content to be issued.
In the method provided by the embodiment of the invention, the target object can be a website, a webpage or any type of APP, etc., and the website, the webpage or the APP can be generated by writing modularized or unitized component codes. In the method provided by the embodiment of the present invention, the content to be distributed may be an object frame, an object color, etc. in the target object, and the specific content is set according to practical applications, which is not limited in the embodiment of the present invention.
Step S102: and judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object.
In a specific implementation process, determining a content attribute of object content currently implemented in the target object by each object component in the object component library; and when the content attribute of the content to be distributed is the same as the content attribute of any object component currently realizing the object content, judging that the object component corresponding to the content to be distributed exists in the object components.
It should be noted that, the object component library is a component library pre-established corresponding to the target object, and the specific process includes:
first, when creating the object, each object content contained in the object is acquired.
Then, writing an object component corresponding to each object content, wherein the object component contains component codes for realizing the object content.
And finally, associating each written object component according to the association relation among the object contents so as to establish the object component library.
In the specific implementation process, when component codes of the object content corresponding to each object content are written, the component codes can be written in languages such as JavaScript, CSS or HTML, and the component codes can be used according to practical applications, so that the embodiment of the invention is not limited.
Further, when the object components corresponding to the content to be distributed are associated with the object components corresponding to each adjacent object content, the composed object components are linked with the object components in the object component library by using json files, which can be used according to practical applications, and the embodiment of the invention is not limited.
Step S103: when the object component exists, determining a configuration file corresponding to the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed so as to realize the distribution of the content to be distributed in a target object.
It should be noted that, the configuration file and the object component library are related to each other, and the configuration file also contains corresponding configuration parameters.
Further, updating the configuration parameters corresponding to the object components according to the content to be distributed, and the specific process comprises the following steps:
firstly, determining content release parameters corresponding to the content to be released.
And then, updating the configuration parameters corresponding to the object content currently realized in the target object by the object component in the configuration file into the content release parameters.
According to the content issuing method disclosed by the embodiment of the invention, when an issuing instruction is received, the content to be issued is obtained; judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object; when the object component corresponding to the content to be distributed exists in the object component library, determining a configuration file corresponding to the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed so as to realize the distribution of the content to be distributed in the target object. According to the content to be distributed, the configuration parameters corresponding to the object components in the configuration file are updated according to the content to be distributed, so that efficient and automatic distribution and updating of the target object are realized.
Further, as shown in fig. 2, a flow chart of another content distribution method disclosed in the embodiment of the present invention is shown. Specifically, the content distribution method can be applied to the running environment of a processor, and comprises the following steps:
step S201: and when receiving the issuing instruction, acquiring the content to be issued.
According to the method provided by the embodiment of the invention, when the processor receives the issuing instruction, the processor acquires the content to be issued.
It should be noted that, the target object may be a website, a web page, or any type of APP, etc., and may be set according to practical applications, which is not limited to this embodiment.
It should be noted that the content to be distributed may be a structure of a replacement website, a content or a layout of an updated web page, and so on. That is, when a background server connected to a web page receives an issue instruction to update the web page content, the background server acquires the content to be updated and issued. The content to be distributed can be set according to practical application, and the embodiment of the invention is not limited.
Step S202: and judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object.
If there is an object component corresponding to the content to be distributed in the object component library corresponding to the target object, step S203 is executed.
If the object component corresponding to the target object does not exist in the object component library corresponding to the content to be distributed, step S204 is executed.
In a specific implementation process, determining a content attribute of object content currently implemented in the target object by each object component in the object component library; and when the content attribute of the content to be distributed is the same as the content attribute of any object component currently realizing the object content, judging that the object component corresponding to the content to be distributed exists in the object components.
In the method provided by the embodiment of the invention, the object component library contains a plurality of object components. Each object component corresponds to a content attribute. The content attribute may be a text attribute, a color attribute, a layout attribute, or the like. This embodiment is not limited.
It should be noted that, the object component library is a component library pre-established corresponding to the target object, and the specific process includes:
first, when creating the object, each object content contained in the object is acquired.
Then, writing an object component corresponding to each object content, wherein the object component contains component codes for realizing the object content.
And finally, associating each written object component according to the association relation among the object contents so as to establish the object component library.
It should be noted that, the object component may be a website component, a web page component, or any type of APP component, etc., which may be specifically set according to practical applications, and the embodiment of the present invention is not limited.
In the method provided by the embodiment of the present invention, preferably, when the object component is a web page component:
firstly, when a webpage is created, acquiring each webpage content contained in the webpage. And then, writing a webpage component corresponding to each webpage content, wherein the webpage component comprises component codes for realizing the webpage content. And finally, associating each written webpage component according to the association relation among the webpage contents so as to establish a webpage component library.
In the specific implementation process, when component codes of the object content corresponding to each object content are written, the component codes can be written in languages such as JavaScript, CSS or HTML, and the component codes can be used according to practical applications, so that the embodiment of the invention is not limited.
Further, when the object components corresponding to the content to be distributed are associated with the object components corresponding to each adjacent object content, the composed object components are linked with the object components in the object component library by using json files, which can be used according to practical applications, and the embodiment is not limited.
Step S203: when the object component exists, determining a configuration file corresponding to the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed so as to realize the distribution of the content to be distributed in a target object.
It should be noted that, the configuration file and the object component library are related to each other, for example, the configuration file contains a corresponding first configuration parameter, and the object component contains a corresponding second configuration parameter. The first configuration parameters in the configuration file are different from the second configuration parameters in the object component. When the second configuration parameters in the object component are required to be updated, only the corresponding configuration first parameters in the corresponding configuration files are required to be changed. There is a relationship between the object component and the configuration file between calls and invoked.
Further, updating the configuration parameters corresponding to the object components according to the content to be distributed, and the specific process comprises the following steps:
firstly, determining content release parameters corresponding to the content to be released.
And then, updating the configuration parameters corresponding to the object content currently realized in the target object by the object component in the configuration file into the content release parameters.
It should be noted that, the object component may be a website component, a web page component, or any type of APP component, etc., which may be specifically set according to practical applications, and the embodiment of the present invention is not limited.
In the method provided by the embodiment of the present invention, the content distribution parameters may be color parameters, position parameters, etc., and specific content parameters are set according to practical applications, which is not limited in the embodiment of the present invention.
Preferably, when the object component is a web page component, for more clearly describing the foregoing, a specific example is provided in the embodiment of the present invention, and the foregoing is described in detail, specifically as shown in fig. 3, there is a five-pointed star pattern in the current web page, and the color of the five-pointed star pattern needs to be replaced by a green five-pointed star pattern. The method comprises the following specific steps:
and determining corresponding content release parameters of the green five-pointed star pattern in the webpage.
And changing the configuration parameters of the five-pointed star pattern in the corresponding configuration file into corresponding content release parameters #00FF00 of the green five-pointed star pattern, and changing the configuration parameters in the webpage component corresponding to the configuration file.
Preferably, when the object component is a web page component, for more clarity of description of the foregoing, a specific example is provided in the embodiment of the present invention, and the foregoing is described in detail, specifically as shown in fig. 4, the pattern of the cross currently located in the left column of the web page is moved to the right column. The method comprises the following specific steps:
and determining content release parameters corresponding to the right column in the webpage.
And changing the left configuration parameter leftframe in the corresponding configuration file into the right content release parameter ritthframe, and changing the configuration parameter in the webpage component corresponding to the configuration file.
Step S204: when the object components corresponding to the content to be distributed do not exist in the object component library, creating the object components corresponding to the content to be distributed, and associating the object components of the content to be distributed to the object component library.
Further, the specific process of associating the object component corresponding to the content to be distributed with the object component library includes:
first, a distribution position of the content to be distributed in the object is determined.
And then, according to the release position, determining each adjacent object content with adjacent relation with the content to be released in the target object, and determining an object component corresponding to each adjacent object content in the object component library.
And finally, associating the object components corresponding to the content to be distributed with the object components corresponding to each adjacent object content according to the adjacent relation between the content to be distributed and each adjacent object content.
It should be noted that, the object component may be a website component, a web page component, or any type of APP component, etc., which may be specifically set according to practical applications, and the embodiment of the present invention is not limited.
Preferably, when the object component is a web page component, for more clearly describing the foregoing, a specific example is provided in the embodiment of the present invention, and the foregoing is described in detail, as shown in fig. 5 to 6, where there are two modules a and B in the current web page, the module a is located on the left side of the web page, the module B is located on the right side of the web page, and a module C needs to be added between the modules a and B. The method comprises the following specific steps:
first, the release location of the module C in the web page is determined. And then determining the position relation among the module A, the module B and the module C according to the release position of the module C, and determining the corresponding webpage components of the module A and the module B in a webpage component library. Finally, according to the position relation between the module A and the module B and the module C, the webpage components corresponding to the module C are associated with the webpage components corresponding to the module A and the module B.
It should be noted that, when the object components corresponding to the content to be distributed are associated with the object components corresponding to each adjacent object content, the object components corresponding to the content to be distributed are associated with the object components corresponding to each adjacent object content by using a json file, which may be used according to practical applications, and the embodiment of the present invention is not limited.
Step S205: and when the content to be distributed is distributed, sending a notification message of the completion to the user.
According to the content issuing method disclosed by the embodiment of the invention, when an issuing instruction is received, the content to be issued is obtained; judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object; when the object component corresponding to the content to be distributed exists in the object component library, determining a configuration file corresponding to the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed so as to realize the distribution of the content to be distributed in the target object. According to the content to be distributed, the configuration parameters corresponding to the object components in the configuration file are updated according to the content to be distributed, so that efficient and automatic distribution and updating of the target object are realized.
Based on the content distribution method disclosed in the above embodiment of the present invention, the embodiment of the present invention correspondingly discloses a content distribution device, as shown in fig. 7, the content distribution device 300 includes:
the acquiring unit 301 is configured to acquire content to be distributed when an issue instruction is received.
The specific structure and implementation principle of the obtaining unit 301 are identical to those of the step S101 shown in fig. 1, and will not be described herein.
And the judging unit 302 is configured to judge whether an object component corresponding to the content to be distributed exists in the object component library corresponding to the target object.
The specific structure and implementation principle of the judging unit 302 are identical to those of the step S102 shown in fig. 1, and will not be described herein.
And the updating unit 303 is configured to determine a configuration file corresponding to the object component library when the object component corresponding to the content to be distributed exists in the object component library, and update configuration parameters corresponding to the object component in the configuration file according to the content to be distributed.
The specific structure and implementation principle of the updating unit 303 are identical to those of the step S103 shown in fig. 1, and will not be described herein.
And the publishing unit 304 is configured to publish the content to be published in the target object.
Further, the content distribution apparatus 300 further includes:
and the sending unit 305 is used for sending a notification message of completion of the release to the user when the release of the content to be released is completed.
The embodiment of the invention discloses a content release device, which comprises the steps that firstly, when a release instruction is received, a content to be released is obtained through an obtaining unit; secondly, judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object through a judging unit; then, when an object component corresponding to the content to be distributed exists in the object component library, determining a configuration file corresponding to the object component library through an updating unit, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed; and finally, the content to be distributed is distributed in the target object through a distribution unit. According to the content publishing device, the configuration parameters corresponding to the object components in the configuration file are updated through the updating unit according to the content to be published, so that efficient and automatic publishing and updating of the target object are achieved.
Based on the content distribution method disclosed by the embodiment of the invention, each module can be realized by a hardware device composed of an electronic device and a memory. The method comprises the following steps: the above modules are stored in a memory as program units, and the processor executes the above program units stored in the memory to realize updating of configuration parameters corresponding to the object components in the configuration file.
The processor comprises a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one, and the updating and the release of the website are realized by adjusting the kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
Further, the embodiment of the invention provides a processor, which is used for running a program, wherein the content release method is executed when the program runs.
Further, an embodiment of the present invention provides an electronic device, including a processor, a memory, and a program stored in the memory and executable on the processor, where the processor executes the program to implement the following steps: acquiring content to be issued when receiving an issue instruction; judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object; when the object component corresponding to the content to be distributed exists in the object component library, determining a configuration file corresponding to the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed so as to realize the distribution of the content to be distributed in the target object. According to the content to be distributed, the configuration parameters corresponding to the object components in the configuration file are updated according to the content to be distributed, so that efficient and automatic distribution and updating of the target object are realized.
The device disclosed in the embodiment of the invention can be a PC, a PAD, a mobile phone and the like.
Further, the embodiment of the invention also provides a storage medium, on which a program is stored, which when executed by a processor, realizes the release of the content to be released in the target object.
The present application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with the method steps of:
when an issue command is received, acquiring content to be issued; judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object; when the object component corresponding to the content to be distributed exists in the object component library, determining a configuration file corresponding to the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed so as to realize the distribution of the content to be distributed in the target object. According to the content to be distributed, the configuration parameters corresponding to the object components in the configuration file are updated according to the content to be distributed, so that efficient and automatic distribution and updating of the target object are realized.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as a method, apparatus, client, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The embodiment of the invention discloses a content publishing method, a content publishing device, a storage medium and electronic equipment. Acquiring content to be issued when receiving an issue instruction; judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object; when the object component corresponding to the content to be distributed exists in the object component library, determining a configuration file corresponding to the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed so as to realize the distribution of the content to be distributed in the target object. According to the content to be distributed, the configuration parameters corresponding to the object components in the configuration file are updated according to the content to be distributed, so that efficient and automatic distribution and updating of the target object are realized.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program implementations may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically erasable programmable read only memory (EFPROM), flash memory or other memory technology, read only memory (CD-ROM), digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices, or any other non-transmission medium which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
In this specification, each embodiment is described in a progressive manner, and identical and similar parts of each embodiment are all referred to each other, and each embodiment mainly describes differences from other embodiments. In particular, for a system or system embodiment, since it is substantially similar to a method embodiment, the description is relatively simple, with reference to the description of the method embodiment being made in part. The systems and system embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (8)
1. A content distribution method, comprising:
when an issuing instruction is received, acquiring content to be issued, wherein the content to be issued is new content issued in a target object;
judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object;
when the object component library exists, determining a configuration file corresponding to the object component library, and updating configuration parameters corresponding to the object component in the configuration file according to the content to be distributed so as to realize the distribution of the content to be distributed in the target object, wherein the configuration file is associated with the object component library, and a relation between calling and called exists between the object component and the configuration file;
the object component library is a component library which is pre-established and corresponds to the target object;
the pre-establishment process of the object component library comprises the following steps:
when the target object is created, acquiring each object content contained in the target object;
writing an object component corresponding to each object content, wherein the object component contains component codes for realizing the object content;
according to the association relation among the object contents, associating each written object component to establish the object component library;
and updating the configuration parameters corresponding to the object components in the configuration file according to the content to be distributed, wherein the updating comprises the following steps:
determining content release parameters corresponding to the content to be released;
and updating the configuration parameters corresponding to the object content currently realized in the target object by the object component in the configuration file into the content release parameters.
2. The method according to claim 1, wherein determining whether the object component corresponding to the content to be distributed exists in the object component library corresponding to the target object includes:
determining the content attribute of the object content currently realized in the target object by each object component in the object component library;
when the content attribute of the content to be distributed is the same as the content attribute of any object content currently realized by the object components, judging that the object components corresponding to the content to be distributed exist in the object component library.
3. The method as recited in claim 1, further comprising:
when the object components corresponding to the content to be distributed do not exist in the object component library, creating the object components corresponding to the content to be distributed, and associating the object components corresponding to the content to be distributed to the object component library.
4. A method according to claim 3, wherein said associating the object component corresponding to the content to be distributed to the object component library comprises:
determining the release position of the content to be released in the target object;
according to the release position, determining each adjacent object content with an adjacent relation with the content to be released in the target object, and determining an object component corresponding to each adjacent object content in the object component library;
and associating the object components corresponding to the content to be distributed with the object components corresponding to each adjacent object content according to the adjacent relation between the content to be distributed and each adjacent object content.
5. The method of any one of claims 1-4, further comprising:
and when the content to be distributed is distributed, sending a notification message of the distribution completion to the user.
6. A content distribution apparatus, comprising:
the acquisition unit is used for acquiring content to be distributed when receiving a distribution instruction, wherein the content to be distributed is new content distributed in a target object;
the judging unit is used for judging whether an object component corresponding to the content to be distributed exists in an object component library corresponding to the target object;
the issuing unit is used for determining a configuration file corresponding to the object component library when the object component corresponding to the content to be issued exists in the object component library, updating configuration parameters corresponding to the object component in the configuration file according to the content to be issued so as to issue the content to be issued in the target object, wherein the configuration file is associated with the object component library, and a relation between calling and called exists between the object component and the configuration file;
the publishing unit is used for updating the configuration parameters corresponding to the object components in the configuration file according to the content to be published, and is specifically used for: determining content release parameters corresponding to the content to be released; updating configuration parameters corresponding to the object content currently realized in the target object by the object component in the configuration file into the content release parameters;
the object component library is a component library which is pre-established and corresponds to the target object;
the pre-establishment process of the object component library comprises the following steps:
when the target object is created, acquiring each object content contained in the target object;
writing an object component corresponding to each object content, wherein the object component contains component codes for realizing the object content;
and associating each written object component according to the association relation among the object contents so as to establish the object component library.
7. A storage medium comprising a stored program, wherein the program, when run, controls a device on which the storage medium resides to perform the content distribution method according to any one of claims 1-5.
8. An electronic device comprising a memory and one or more instructions, wherein the one or more instructions are stored in the memory and configured to be executed by the one or more processors to perform the content distribution method of any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811392740.9A CN111209009B (en) | 2018-11-21 | 2018-11-21 | Content distribution method and device, storage medium and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811392740.9A CN111209009B (en) | 2018-11-21 | 2018-11-21 | Content distribution method and device, storage medium and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111209009A CN111209009A (en) | 2020-05-29 |
CN111209009B true CN111209009B (en) | 2024-02-13 |
Family
ID=70786633
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811392740.9A Active CN111209009B (en) | 2018-11-21 | 2018-11-21 | Content distribution method and device, storage medium and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111209009B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112817623B (en) * | 2021-01-26 | 2021-10-08 | 北京自如信息科技有限公司 | Method and device for publishing application program, mobile terminal and readable storage medium |
CN115550303B (en) * | 2022-09-19 | 2023-11-17 | 中国建设银行股份有限公司 | Notification message sending method, device, equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6128599A (en) * | 1997-10-09 | 2000-10-03 | Walker Asset Management Limited Partnership | Method and apparatus for processing customized group reward offers |
CN105677452A (en) * | 2014-11-19 | 2016-06-15 | 腾讯科技(上海)有限公司 | Task processing method and device for task platform |
CN108197257A (en) * | 2017-12-29 | 2018-06-22 | 深圳乐信软件技术有限公司 | Html page generation method, device, equipment and storage medium |
CN108764605A (en) * | 2018-04-04 | 2018-11-06 | 北京潘达互娱科技有限公司 | A kind of task dissemination method, device, electronic equipment and storage medium |
-
2018
- 2018-11-21 CN CN201811392740.9A patent/CN111209009B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6128599A (en) * | 1997-10-09 | 2000-10-03 | Walker Asset Management Limited Partnership | Method and apparatus for processing customized group reward offers |
CN105677452A (en) * | 2014-11-19 | 2016-06-15 | 腾讯科技(上海)有限公司 | Task processing method and device for task platform |
CN108197257A (en) * | 2017-12-29 | 2018-06-22 | 深圳乐信软件技术有限公司 | Html page generation method, device, equipment and storage medium |
CN108764605A (en) * | 2018-04-04 | 2018-11-06 | 北京潘达互娱科技有限公司 | A kind of task dissemination method, device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN111209009A (en) | 2020-05-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10325012B2 (en) | Filtered stylesheets | |
EP2909998B1 (en) | Webpages with onboard hardware functions | |
CN108399088B (en) | Page display method, user terminal, page server and style configuration server | |
US10908928B2 (en) | Rules-based workflow messaging | |
US20160062963A1 (en) | Synchronizing DOM Element References | |
CN107092473B (en) | Desktop application development method and device | |
CN106528578B (en) | Information display method and device | |
US10949331B1 (en) | Integration testing of web applications utilizing dynamically generated automation identifiers | |
CN108874379B (en) | Page processing method and device | |
CN109857964B (en) | Thermodynamic diagram drawing method and device for page operation, storage medium and processor | |
CN109460546A (en) | List generation method, device and electronic equipment | |
CN104375812A (en) | Webpage content modifying template construction method and webpage content modifying method and system | |
CN112068911A (en) | Method, device, system, equipment and medium for generating electronic form | |
CN111209009B (en) | Content distribution method and device, storage medium and electronic equipment | |
CN112346761A (en) | Front-end resource online method, equipment, system and storage medium | |
CN113486280A (en) | Page rendering display method, device, equipment, storage medium and program product | |
CN110941428B (en) | Website creation method and device | |
CN115758016A (en) | Webpage content staticizing processing method and system | |
CN110020343B (en) | Method and device for determining webpage coding format | |
CN110851746B (en) | Crawler seed generation method and device | |
CN112560403A (en) | Text processing method and device and electronic equipment | |
CN112036974A (en) | Service commodity online method, device, equipment and storage medium | |
CN109558549B (en) | Method for eliminating CSS style redundancy and related product | |
CN108572900B (en) | Blank pit position monitoring method, system, electronic equipment and storage medium | |
CN110968810A (en) | Webpage data processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |