CN113362111A - Content sending method and device and electronic equipment - Google Patents

Content sending method and device and electronic equipment Download PDF

Info

Publication number
CN113362111A
CN113362111A CN202110624192.3A CN202110624192A CN113362111A CN 113362111 A CN113362111 A CN 113362111A CN 202110624192 A CN202110624192 A CN 202110624192A CN 113362111 A CN113362111 A CN 113362111A
Authority
CN
China
Prior art keywords
target
content
variable parameter
information
configuration file
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.)
Granted
Application number
CN202110624192.3A
Other languages
Chinese (zh)
Other versions
CN113362111B (en
Inventor
张凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202110624192.3A priority Critical patent/CN113362111B/en
Publication of CN113362111A publication Critical patent/CN113362111A/en
Application granted granted Critical
Publication of CN113362111B publication Critical patent/CN113362111B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0277Online advertisement

Abstract

The disclosure provides a content sending method, a content sending device and electronic equipment, relates to the technical field of computers, and particularly relates to the technical fields of big data, information flow and the like. The specific scheme is as follows: acquiring information filtering conditions from a target configuration file, wherein the target configuration file is a file generated based on a target requirement document sent by a content requirement party; acquiring first information meeting information filtering conditions; acquiring the content of a target variable parameter in a target configuration file according to the target configuration file and the first information; and sending a target request to a content demand side, wherein the target request comprises the content of the target variable parameter. The stability of content transmission can be improved.

Description

Content sending method and device and electronic equipment
Technical Field
The present disclosure relates to the technical field of information flow, big data, and the like in computer technology, and in particular, to a content sending method, device, and electronic device.
Background
After advertisement delivery or content marketing, the generated information needs to be sent to a system (e.g., CRM (Customer Relationship Management) system) of a content demander (e.g., an advertiser or a content marketer), so as to meet timely follow-up and processing of information by the content demander.
Different content demanders have larger differences in CRM systems, and currently, customized development is carried out on each different content demander, namely, a set of content sending logic is developed for each different content demander, so that corresponding content is sent to different content demanders.
Disclosure of Invention
The disclosure provides a content sending method and device and an electronic device.
In a first aspect, an embodiment of the present disclosure provides a content sending method, where the method includes:
acquiring information filtering conditions from a target configuration file, wherein the target configuration file is a file generated based on a target requirement document sent by a content requirement party;
acquiring first information meeting the information filtering condition;
acquiring the content of a target variable parameter in the target configuration file according to the target configuration file and the first information;
and sending a target request to the content demander, wherein the target request comprises the content of the target variable parameter.
In this embodiment, different content push logics do not need to be customized and developed for different content demanders, content sending does not need to be performed through different content push logics for different content demanders, only a target demand document sent by a content demander needs to be generated for different content demanders based on the sent target demand document, information filtering conditions are obtained from the target configuration document, first information meeting the information filtering conditions is obtained, content of a target variable parameter in the target configuration document is obtained according to the target configuration document and the first information, and the logic of a target request for sending the content carrying the target variable parameter to the content demander realizes sending of the content, so that the stability of sending of the content can be improved.
In a second aspect, an embodiment of the present disclosure provides a content transmitting apparatus, including:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring information filtering conditions from a target configuration file, and the target configuration file is a file generated based on a target demand document sent by a content demand side;
the second acquisition module is used for acquiring the first information meeting the information filtering condition;
a third obtaining module, configured to obtain, according to the target configuration file and the first information, content of a target variable parameter in the target configuration file;
and the sending module is used for sending a target request to the content demander, wherein the target request comprises the content of the target variable parameter.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of content delivery as provided by the first aspect of the disclosure.
In a fourth aspect, an embodiment of the present disclosure further provides a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the content transmission method provided by the first aspect of the present disclosure.
In a fifth aspect, an embodiment of the present disclosure provides a computer program product comprising a computer program, which when executed by a processor, implements the content transmission method provided by the present disclosure as the first aspect.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not to be construed as limiting the present disclosure. Wherein:
fig. 1 is one of the flow diagrams of a content transmission method according to an embodiment provided by the present disclosure;
fig. 2 is a second flowchart of a content transmission method according to an embodiment of the disclosure;
fig. 3 is a flowchart of an information filtering process in a content transmission method according to an embodiment provided in the present disclosure;
fig. 4 is a schematic diagram of expression parsing in a content transmission method according to an embodiment provided by the present disclosure;
fig. 5 is a flowchart illustrating a method for sending content to obtain content of a target variable parameter in a target configuration file according to an embodiment of the disclosure;
FIG. 6 is a graph of processing function relationships for one embodiment provided by the present disclosure;
FIG. 7 is a flow diagram of URL assembly in a content delivery method according to an embodiment of the disclosure;
fig. 8 is a schematic diagram of traffic recording and traffic playback in a content transmission method according to an embodiment provided in the present disclosure;
fig. 9 is a third flowchart of a content transmitting method according to an embodiment provided by the present disclosure;
fig. 10 is a block diagram of a content transmitting apparatus of one embodiment provided by the present disclosure;
fig. 11 is a block diagram of an electronic device for implementing a content transmission method according to an embodiment of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, in which various details of the embodiments of the disclosure are included to assist understanding, and which are to be considered as merely exemplary. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
As shown in fig. 1, according to an embodiment of the present disclosure, the present disclosure provides a content transmission method, including:
step S101: and acquiring the information filtering condition from a target configuration file, wherein the target configuration file is a file generated based on a target requirement document sent by a content demander.
The information generated by a user for a certain advertisement or marketing content may include a set of information generated by the user for the advertisement or marketing content. Because there are multiple advertisers or content marketers, there are many users who need to deliver advertisements of multiple advertisers or marketing content of multiple content marketers, and along with the delivery of advertisements or marketing content, there are many users who perform related behaviors for different advertisements or marketing content to generate related information, and the generated information corresponding to different advertisements or marketing content needs to be sent to corresponding content demanders, i.e., advertisers or content marketers, and the like, for example, for a content demander a, the delivered advertisement is G1, the information generated for the advertisement G1 needs to be sent to the content demander a, and for a content demander B, the delivered advertisement is G2, the information generated for the advertisement G2 needs to be sent to the content demander B. Therefore, in this embodiment, first, the information filtering condition needs to be obtained based on a target configuration file, that is, a file generated based on a target requirement document sent by a content demander, where target requirement documents of different content demanders are different, and it can be understood that the target requirement document may include requirements of the content demanders for the sent content, and the like.
The method comprises the steps that one advertisement or one marketing content corresponds to one target demand document, the target demand document is associated with the target advertisement or the target marketing content, the target demand document is associated with a content demand party, and a target configuration file associated with the target advertisement or the target marketing content is generated according to the target demand document associated with the target advertisement or the target marketing content and sent by the content demand party. The target configuration file can comprise the identification of content demanders, rule identification, information filtering conditions and the like, wherein the identification of one content demander corresponds to one target configuration file, the identification of one rule corresponds to one target configuration file, and the rule identification is associated with the advertisement or marketing content. Information filtering conditions may be obtained based on the target profile.
Step S102: first information meeting information filtering conditions is obtained.
After the information filtering condition is obtained, first information meeting the filtering condition can be obtained from an information base, and the information base comprises information correspondingly generated by advertisements or marketing contents put by a plurality of content demanders. As an example, for example, the information filtering condition includes that the content demander identifier is a target identifier, and the like, then the first information is information associated with the content demander corresponding to the target identifier, and may be information generated for a target advertisement or a target marketing content associated with a target requirement document corresponding to the content demander. As an example, the target configuration file is a target JS object notation JSON file, and the first information is information in a JSON format.
Step S103: and acquiring the content of the target variable parameter in the target configuration file according to the target configuration file and the first information.
And configuring target variable parameters in the target configuration file according to the target requirement document, wherein the target variable parameters can be understood as variable parameters of contents required by the content demander. After the first information is obtained, the content of the target variable parameter in the target configuration file can be obtained according to the target configuration file and the first information, wherein the content of the target variable parameter can be obtained from the target configuration file and the first information. As one example, the target variable parameters may include, but are not limited to, phone parameters, name parameters, source parameters, channel parameters, and the like.
Step S104: and sending a target request to a content demand side, wherein the target request comprises the content of the target variable parameter.
After the content of the target variable parameter is determined, a target request carrying the content of the target variable parameter can be sent to the content demand side, and the content of the target variable parameter is pushed to the content demand side.
In the content push method of this embodiment, first, an information filtering condition may be obtained from a target configuration file generated according to a target requirement document sent by a content demander, then first information meeting the information filtering condition is obtained, then, according to the target configuration file and the first information, content of a target variable parameter in the target configuration file is obtained, a target request carrying the content of the target variable parameter is sent to the content demander, and the content of the target variable parameter is pushed to the content demander. That is, in this embodiment, it is not necessary to customize and develop different content push logics for different content demanders, it is not necessary to transmit content through different content push logics for different content demanders, it is only necessary to generate corresponding target configuration files based on the target requirement files transmitted by the content demanders for different content demanders, acquire information filtering conditions from the target configuration files, acquire first information satisfying the information filtering conditions, acquire content of target variable parameters in the target configuration files according to the target configuration files and the first information, and transmit logic of a target request carrying the content of the target variable parameters to the content demanders to implement transmission of the content, so that stability of content transmission can be improved.
In one embodiment, obtaining the content of the target variable parameter in the target configuration file according to the target configuration file and the first information includes:
acquiring a target processing function according to a processing function identifier of a target variable parameter in a target configuration file, wherein the target processing function comprises a target class and a target method;
instantiating a target class;
and determining the content of the target variable parameter in the target configuration file through the target method, the target variable parameter and the first information in the instantiated target class.
The processing function can also be called a flow type function, a plurality of processing functions are configured in the content sending system, each processing function has a corresponding identifier, each target variable parameter in the target configuration file has a corresponding processing function identifier, and thus, the corresponding target processing function can be determined according to the processing function identifier of the target variable parameter in the target configuration file, and therefore, a target class and a target method can be obtained. And then instantiating the target class, and determining the content of the target variable parameter in the target configuration file through the target method, the target variable parameter and the first information in the instantiated target class.
In other words, in this embodiment, the target processing function is located through the processing function identifier of the target variable parameter in the target configuration file, the target method in the instantiated target class is called through the instantiation of the target class in the target processing function, and the content of the target variable parameter in the target configuration file is determined through the target method, the target variable parameter and the first information in the instantiated target class, so as to improve the accuracy of determining the parameter content.
In one embodiment, the target variable parameters include a first variable parameter and a second variable parameter, wherein the target configuration file includes a value corresponding to the first variable parameter, the target configuration file does not include a value corresponding to the second variable parameter, the target class includes a first class and a second class, and the target method includes a first method and a second method;
determining the content of the target variable parameter in the target configuration file through the target method, the target variable parameter and the first information in the instantiated target class, wherein the method comprises the following steps:
inputting the first variable parameter and the value of the first variable parameter into a first method in an instantiated first class for analysis to obtain the content corresponding to the first variable parameter;
and inputting the second variable parameter into a second method in the instantiated second class, and determining the content corresponding to the second variable parameter from the first information through the second method.
That is, the target variable parameter may include different types of parameters, the first variable parameter may be understood as a first type of variable parameter, the second variable parameter may be understood as a second type of variable parameter, and the contents of the different types of variable parameters are determined in different manners, for example, for the first variable parameter, the values of the first variable parameter and the first variable parameter are input into a first method in an instantiated first class for analysis to obtain the content corresponding to the first variable parameter, and it may be understood that the content of the first variable parameter is the value (i.e., value) of the first variable parameter in the target configuration file. And for the second variable parameter, inputting the second variable parameter into a second method in the instantiated second class, determining the content corresponding to the second variable parameter from the first information through the second method, and extracting the content of the second variable parameter from the first information by calling the second method. In this way, the flexibility of content determination of the variable parameters may be improved.
In one embodiment, before sending the target request to the content demander, the method further comprises:
and assembling the host domain name of the content demand party into the uniform resource locator URL of the initial request, and assembling the head of the initial request and the main body of the initial request according to the content of the target variable parameter to generate the target request.
The request in this embodiment may be an HTTP (HyperText Transfer Protocol) request. A request may be initiated to obtain an initial request, which may include three parts, e.g., a URL, a header, and a body, which may be populated or assembled within the initial request structure to generate a target request. In this embodiment, the host domain name of the content demander is assembled into the URL of the initial request, and the header of the initial request and the main body of the initial request are assembled according to the content of the target variable parameter to generate the target request, so that the generated target request may include the content of the target variable parameter, and the content of the target variable parameter is transmitted by transmitting the target request to the content demander, so that the stability of transmitting the content may be improved.
In one embodiment, after sending the target request to the content demander, the method further includes:
receiving response information of the target request;
and under the condition that the content of the first parameter in the response information is inconsistent with the content of the first parameter in the target configuration file, outputting prompt information, wherein the prompt information is used for prompting the resending request.
After the target request is sent, if response information sent by the content demander is received, the response information can be analyzed, the content of the first parameter in the response information is compared with the content of the first parameter in the target configuration file, the request can be output without resending under the condition that the content of the first parameter is consistent, and prompt information can be output to remind of resending the request by indicating that the content of the first parameter returned by the content demander has a problem under the condition that the content of the first parameter is consistent.
In one embodiment, before obtaining the information filtering condition from the target configuration file, the method further includes:
carrying out flow recording;
after the target request is sent to the content demander, the method further comprises the following steps:
and stopping the flow recording.
That is, in this embodiment, the entire process of the content transmission method may be recorded, that is, the entire process is recorded, and after the recording of the traffic is stopped, a traffic recording file is obtained, which may provide guarantees for subsequent tests and the like, and may subsequently perform traffic playback and the like based on the traffic recording file.
The above method is described in detail with reference to an embodiment. Take the content demander as the advertiser for example.
The essence of content delivery is an HTTP request, based on HTTP request structure, unifying flow description language and introducing a flow engine and a rule engine. As shown in fig. 2, the overall flow of the content transmission method includes first generating a target configuration file, then filtering information, then determining the content of a target variable parameter, then assembling an HTTP request, generating a target request, transmitting the target request to an advertiser, receiving response information corresponding to the target request transmitted by the advertiser, and analyzing the response information.
Firstly, a target requirement document sent by an advertiser is received, and a target configuration file, namely a target JSON (JavaScript Object Notation) file of the advertiser can be generated by inputting relevant configuration content in a configuration interface based on the target requirement document. For example, the target configuration file may include an advertiser identifier (user _ id), a rule identifier (rule _ id), a filter condition (e.g., a "format"), a target variable parameter (variables), a processing function identifier of the target variable parameter (e.g., "process _ type": form _ data _ extract _ mapping ", which means that the processing function identifier is form _ data _ extract _ mapping), a content description of the request, and a content description of the response.
The advertisement corresponding to the advertiser is delivered, and the user can input user information or perform related behaviors in the display interface of the advertisement by viewing the advertisement, so that related information is generated and can be recorded in the information base.
Information filtering conditions can be obtained based on the target configuration file, the information filtering conditions can be understood as a filtering expression, information generated aiming at advertisements delivered by a plurality of advertisers can be recorded in the information base, and the generated information can be filtered through the information filtering conditions to obtain first information meeting the information filtering conditions obtained based on the target configuration file. As shown in fig. 3 and 4, the information filtering process is as follows:
step S301: acquiring a filtering expression;
step S302: traversing the filtering expression;
step S303: generating an expression parser;
step S304: analyzing the expression;
step S305: generating an expression object;
step S306: and performing information filtering by using the expression object to determine first information.
Writing an expressStr according to a syntactic structure supported by SpEL, preparing an expression parser expressParser, calling a method ParseExpression () to parse the expressor, for example, using a special word breaker Tokenizer to split a filtering expression (character string) into a data format which can be recognized by Spring; generating a corresponding grammar structure according to an operation result processed by the word segmentation device, carrying out error detection (grammar format detection and the like) on the Expression, defining the processed Expression into a special object Expression and analyzing to obtain an Expression object; since there may be placeholders within the expression, e.g., $, { } etc., it is not yet well suited to get value (), directly at once (which would also result if the placeholder did not need to be resolved). An expression context object 'eventualcontext' can be set before calculation; and after replacing the placeholder content, performing information filtering by using the expression object to determine first information.
Secondly, obtaining the content of the target variable parameter in the target configuration file, wherein the step is mainly used for constructing the variable of the HTTP request, initializing a relevant model according to the processing function identification (process _ type) defined by different variable parameters in the target configuration file, and executing the analysis of the corresponding variable parameter to obtain the corresponding content. As shown in fig. 5, the process of obtaining the content of the target variable parameter in the target configuration file is as follows:
step S501: processing function identification according to the target variable parameter in the target configuration file;
step S502: acquiring a corresponding target processing function according to the processing function identifier;
step S503: instantiating a target class in a target processing function;
step S504: and determining the content of the target variable parameter in the target configuration file through the target method, the target variable parameter and the first information in the instantiated target class.
It is to be understood that the processing function identifies a positioning target processing function, and the determination of the contents of the target variable parameters in the target configuration file is performed by the target class and the target method therein. As shown in fig. 6, processing functions identified by several processing functions (for example, processing function F1, processing function F2, processing function F3, etc.) and inheritance relationships between the processing functions, etc. are exemplified.
And moreover, Request (Request) assembly is carried out, the link mainly comprises data assembly of the URL link, the Header link and the Body link, a target Request is generated, and the target Request is sent to the advertiser.
The URL link includes two nodes, namely a host _ port (host domain name) and a queryParam (query parameter), and as shown in fig. 7, URL configuration information is acquired, wherein the URL configuration information includes the host domain name, field resolution is performed if the queryParam exists, and a link appended to the host _ port after being assembled is used as a request link by using content corresponding to the queryParam in the content of the target configuration file and the target variable parameter, and if the queryParam does not exist, the host _ port can be directly used as the request link;
a Header link mainly comprises some signature related configurations, and the Header only needs to assemble the results of the signature parameters in the acquired target variable parameters;
the Body link mainly includes Body _ format (Body format, which may be JSON/xml) and template (i.e., template, which is mainly JSON nested tree structure or xml (abbreviation of eXtensible Markup Language) mapping template), and is assembled by using the content of the target variable parameter.
Receiving response information of a target request sent by an advertiser, acquiring the content of a first parameter in the response information, comparing the content of the first parameter in the response information with the content of the first parameter in the target configuration file, and if the content of the first parameter in the response information is not consistent with the content of the first parameter in the target configuration file, outputting prompt information for carrying out retry and alarm of the next step. For example, for the HTTP status code (HTTP code) parameter, the HTTP status code in the target configuration file is 200, and it is determined whether the HTTP status code in the received response message is 200, if 200, it indicates agreement, and if not 200, it indicates inconsistency in content, and prompt information may be output.
As shown in fig. 8, the flow recording and flow playback may be performed in the content transmission process in the present application. And the log format is standardized, online logs can be asynchronously and offline collected and put in storage, and the flow recording and playback functions are performed based on an xstp platform in a factory.
As shown in fig. 9, which is an overall flowchart of a content transmission method, after an advertisement is delivered, a piece of information related to the advertisement generated by a certain user, which may include, for example, telephone call, consultation information, etc., may be formed and put into an information base, and may be distributed to a content transmission system through an API (application program interface), the content transmission system receives the piece of information, performs data preprocessing such as field completion by alignment, and then the content transmission system obtains a filtering condition of a corresponding target configuration file to perform information filtering, and if the piece of information satisfies the filtering condition, stores the piece of information into a database. And then, acquiring the content of the target variable parameter in the target configuration file according to the target configuration file and the piece of information. Then, URL assembly, Header assembly and Body assembly are performed to generate an HTTP request, the HTTP request is transmitted to the advertiser, and then Response information (Response) returned by the advertiser is received and analyzed. After the response message is analyzed, some post operations may also be performed, for example, whether the content of the first parameter in the response message is consistent with the content of the first parameter in the target configuration file is compared, and if not, a prompt message may be output, where the prompt message is used to prompt the resending request. In addition, as shown in fig. 9, the flow recording may be performed on the entire content sending process to obtain a flow recording file, the flow playback may be performed in the processes of development, testing, online and the like, the data diff (difference) is found, and based on the online flow recording and diff functions, the accuracy of each modification may be guaranteed, and the service stability may be improved.
In the content sending method according to the embodiment of the application, the configuration is mainly for RD (research and development engineer) and PM (product manager), and is not directly facing to the advertiser, and the advertiser only needs to provide a docking document, i.e., a target demand document, and does not need to learn and use a configuration template to configure a target configuration file, so that the learning cost of the advertiser is reduced. And the data field mapping is uniformly collected into a specific function, each rule of each advertiser only corresponds to one JSON file, and the processing function can be reused, so that the subsequent function expansion only needs to pay attention to specific function realization, and the system maintenance cost is reduced.
As shown in fig. 10, the present disclosure also provides a content transmitting apparatus 1000 according to an embodiment of the present disclosure, the apparatus including:
a first obtaining module 1001, configured to obtain an information filtering condition from a target configuration file, where the target configuration file is a file generated based on a target requirement document sent by a content demander;
a second obtaining module 1002, configured to obtain first information that meets an information filtering condition;
a third obtaining module 1003, configured to obtain, according to the target configuration file and the first information, content of the target variable parameter in the target configuration file;
the sending module 1004 is configured to send a target request to a content demander, where the target request includes content of a target variable parameter.
In one embodiment, the third obtaining module 1003 includes:
the function acquisition module is used for acquiring a target processing function according to the processing function identification of the target variable parameter in the target configuration file, wherein the target processing function comprises a target class and a target method;
the instantiation module is used for instantiating the target class;
and the content determining module is used for determining the content of the target variable parameter in the target configuration file through the target method, the target variable parameter and the first information in the instantiated target class.
In one embodiment, the target variable parameters include a first variable parameter and a second variable parameter, wherein the target configuration file includes a value corresponding to the first variable parameter, the target configuration file does not include a value corresponding to the second variable parameter, the target class includes a first class and a second class, and the target method includes a first method and a second method;
a content determination module comprising:
the first determining module is used for inputting the first variable parameter and the value of the first variable parameter into a first method in an instantiated first class for analysis to obtain the content corresponding to the first variable parameter;
and the second determining module is used for inputting the second variable parameter into a second method in the instantiated second class and determining the content corresponding to the second variable parameter from the first information through the second method.
In one embodiment, the apparatus 1000 further comprises:
and the request generation module is used for assembling the host domain name of the content demand party into the uniform resource locator URL of the initial request, and assembling the head of the initial request and the main body of the initial request according to the content of the target variable parameter to generate the target request.
In one embodiment, the apparatus 1000 further comprises:
the receiving module is used for receiving response information of the target request;
and the output module is used for outputting prompt information under the condition that the content of the first parameter in the response information is inconsistent with the content of the first parameter in the target configuration file, wherein the prompt information is used for prompting the resending request.
In one embodiment, the target configuration file is a target JS object numbered musical notation JSON file, and the first information is information in a JSON format.
In one embodiment, the apparatus 1000 further comprises:
the recording module is used for recording the flow before acquiring the information filtering condition from the target configuration file;
and the stopping module is used for stopping the flow recording after sending the target request to the content demander.
The content transmitting apparatus in each of the embodiments is an apparatus for implementing the content transmitting method in each of the embodiments, and the technical features and technical effects correspond to each other, and are not described herein again.
The present disclosure also provides an electronic device, a readable storage medium, and a computer program product according to embodiments of the present disclosure.
The non-transitory computer-readable storage medium of the embodiments of the present disclosure stores computer instructions for causing a computer to perform a content transmission method provided by the present disclosure.
The computer program product of the embodiments of the present disclosure includes a computer program for causing a computer to execute a content transmission method provided by the embodiments of the present disclosure.
FIG. 11 shows a schematic block diagram of an example electronic device 1100 that may be used to implement embodiments of the present disclosure. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the disclosure described and/or claimed herein.
As shown in fig. 11, the electronic device 1100 includes a computing unit 1101, which can perform various appropriate actions and processes according to a computer program stored in a Read Only Memory (ROM)1102 or a computer program loaded from a storage unit 1108 into a Random Access Memory (RAM) 1103. In the RAM1103, various programs and data necessary for the operation of the device 1100 may also be stored. The calculation unit 1101, the ROM 1102, and the RAM1103 are connected to each other by a bus 1104. An input/output (I/O) interface 1105 is also connected to bus 1104.
A number of components in electronic device 1100 connect to I/O interface 1105, including: an input unit 1106 such as a keyboard, a mouse, and the like; an output unit 1107 such as various types of displays, speakers, and the like; a storage unit 1108 such as a magnetic disk, optical disk, or the like; and a communication unit 1104 such as a network card, modem, wireless communication transceiver, etc. The communication unit 1104 allows the electronic device 1100 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 1101 can be a variety of general purpose and/or special purpose processing components having processing and computing capabilities. Some examples of the computing unit 1101 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated artificial intelligence (I) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and the like. The calculation unit 1101 performs the respective methods and processes described above, such as the content transmission method. For example, in some embodiments, the content delivery method may be implemented as a computer software program tangibly embodied in a machine-readable medium, such as storage unit 1108. In some embodiments, some or all of the computer program may be loaded and/or installed onto device 1100 via ROM 1102 and/or communications unit 1104. When the computer program is loaded into RAM1103 and executed by computing unit 1101, one or more steps of the content transmission method described above may be performed. Alternatively, in other embodiments, the computing unit 1101 may be configured to perform the content transmission method by any other suitable means (e.g., by means of firmware). Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), the internet, and blockchain networks.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved.
The above detailed description should not be construed as limiting the scope of the disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present disclosure should be included in the scope of protection of the present disclosure.

Claims (17)

1. A method of content delivery, the method comprising:
acquiring information filtering conditions from a target configuration file, wherein the target configuration file is a file generated based on a target requirement document sent by a content requirement party;
acquiring first information meeting the information filtering condition;
acquiring the content of a target variable parameter in the target configuration file according to the target configuration file and the first information;
and sending a target request to the content demander, wherein the target request comprises the content of the target variable parameter.
2. The method of claim 1, wherein the obtaining the content of the target variable parameter in the target configuration file according to the target configuration file and the first information comprises:
acquiring a target processing function according to the processing function identification of the target variable parameter in the target configuration file, wherein the target processing function comprises a target class and a target method;
instantiating the target class;
determining the content of the target variable parameter in the target configuration file through the target method, the target variable parameter and the first information in the instantiated target class.
3. The method of claim 2, wherein the target variable parameter comprises a first variable parameter and a second variable parameter, wherein the target configuration file comprises a value corresponding to the first variable parameter, the target configuration file does not comprise a value corresponding to the second variable parameter, the target class comprises a first class and a second class, and the target method comprises a first method and a second method;
the determining the content of the target variable parameter in the target configuration file through the target method, the target variable parameter and the first information in the instantiated target class includes:
inputting the first variable parameter and the value of the first variable parameter into a first method in the instantiated first class for analysis, and obtaining the content corresponding to the first variable parameter;
inputting the second variable parameter into a second method in the instantiated second class, and determining the content corresponding to the second variable parameter from the first information through the second method.
4. The method of claim 1, wherein prior to sending the target request to the content demander, further comprising:
and assembling the host domain name of the content demand party into a Uniform Resource Locator (URL) of an initial request, and assembling the head of the initial request and the main body of the initial request according to the content of the target variable parameter to generate the target request.
5. The method of claim 1, wherein after sending the target request to the content demander, further comprising:
receiving response information of the target request;
and under the condition that the content of the first parameter in the response information is inconsistent with the content of the first parameter in the target configuration file, outputting prompt information, wherein the prompt information is used for prompting a resending request.
6. The method of claim 1, wherein the target configuration file is a target JS object notation JSON file and the first information is information in JSON format.
7. The method of claim 1, wherein before obtaining the information filtering condition from the target configuration file, the method further comprises:
carrying out flow recording;
after the target request is sent to the content demander, the method further includes:
and stopping the flow recording.
8. A content transmission apparatus, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring information filtering conditions from a target configuration file, and the target configuration file is a file generated based on a target demand document sent by a content demand side;
the second acquisition module is used for acquiring the first information meeting the information filtering condition;
a third obtaining module, configured to obtain, according to the target configuration file and the first information, content of a target variable parameter in the target configuration file;
and the sending module is used for sending a target request to the content demander, wherein the target request comprises the content of the target variable parameter.
9. The apparatus of claim 8, wherein the third obtaining means comprises:
a function obtaining module, configured to obtain a target processing function according to the processing function identifier of the target variable parameter in the target configuration file, where the target processing function includes a target class and a target method;
an instantiation module for instantiating the target class;
a content determining module, configured to determine, through the instantiated target method, the target variable parameter, and the first information in the target class, a content of the target variable parameter in the target configuration file.
10. The apparatus of claim 9, wherein the target variable parameter comprises a first variable parameter and a second variable parameter, wherein a value corresponding to the first variable parameter is included in the target configuration file, a value corresponding to the second variable parameter is not included in the target configuration file, the target class comprises a first class and a second class, and the target method comprises a first method and a second method;
the content determination module includes:
a first determining module, configured to input the first variable parameter and a value of the first variable parameter into a first method in the instantiated first class for analysis, so as to obtain a content corresponding to the first variable parameter;
and the second determining module is used for inputting the second variable parameter into a second method in the instantiated second class, and determining the content corresponding to the second variable parameter from the first information through the second method.
11. The apparatus of claim 8, further comprising:
and the request generation module is used for assembling the host domain name of the content demand party into a Uniform Resource Locator (URL) of the initial request, assembling the head of the initial request and the main body of the initial request according to the content of the target variable parameter, and generating the target request.
12. The apparatus of claim 8, further comprising:
the receiving module is used for receiving response information of the target request;
and the output module is used for outputting prompt information under the condition that the content of the first parameter in the response information is inconsistent with the content of the first parameter in the target configuration file, wherein the prompt information is used for prompting a resending request.
13. The apparatus of claim 8, wherein the target configuration file is a target JS object notation JSON file and the first information is information in JSON format.
14. The apparatus of claim 8, further comprising:
the recording module is used for recording the flow before the information filtering condition is obtained from the target configuration file;
and the stopping module is used for stopping the flow recording after the target request is sent to the content demander.
15. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
16. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the content transmission method according to any one of claims 1 to 7.
17. A computer program product comprising a computer program which, when executed by a processor, implements a content transmission method according to any one of claims 1-7.
CN202110624192.3A 2021-06-04 2021-06-04 Content sending method and device and electronic equipment Active CN113362111B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110624192.3A CN113362111B (en) 2021-06-04 2021-06-04 Content sending method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110624192.3A CN113362111B (en) 2021-06-04 2021-06-04 Content sending method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113362111A true CN113362111A (en) 2021-09-07
CN113362111B CN113362111B (en) 2023-07-28

Family

ID=77532119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110624192.3A Active CN113362111B (en) 2021-06-04 2021-06-04 Content sending method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113362111B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629954A (en) * 2022-03-16 2022-06-14 上海哔哩哔哩科技有限公司 Content distribution method and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132299A1 (en) * 2011-11-22 2013-05-23 International Business Machines Corporation Using non-textual notation for describing service related human experience based on a hierarchal model of human needs
CN103412853A (en) * 2013-08-05 2013-11-27 北京信息科技大学 Method for automatically generating test cases aiming at document converters
CN111104100A (en) * 2018-10-29 2020-05-05 大陆汽车电子(连云港)有限公司 Method, system and storage medium for logic control
CN112084410A (en) * 2020-09-10 2020-12-15 北京百度网讯科技有限公司 Document type recommendation method and device, electronic equipment and readable storage medium
CN112148509A (en) * 2020-10-16 2020-12-29 腾讯科技(深圳)有限公司 Data processing method, device, server and computer readable storage medium
CN112580363A (en) * 2020-12-24 2021-03-30 平安普惠企业管理有限公司 Requirement document processing method and device, computer equipment and storage medium
CN112882844A (en) * 2021-02-07 2021-06-01 成都新希望金融信息有限公司 Network front-end and back-end based joint debugging method and device and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130132299A1 (en) * 2011-11-22 2013-05-23 International Business Machines Corporation Using non-textual notation for describing service related human experience based on a hierarchal model of human needs
CN103412853A (en) * 2013-08-05 2013-11-27 北京信息科技大学 Method for automatically generating test cases aiming at document converters
CN111104100A (en) * 2018-10-29 2020-05-05 大陆汽车电子(连云港)有限公司 Method, system and storage medium for logic control
CN112084410A (en) * 2020-09-10 2020-12-15 北京百度网讯科技有限公司 Document type recommendation method and device, electronic equipment and readable storage medium
CN112148509A (en) * 2020-10-16 2020-12-29 腾讯科技(深圳)有限公司 Data processing method, device, server and computer readable storage medium
CN112580363A (en) * 2020-12-24 2021-03-30 平安普惠企业管理有限公司 Requirement document processing method and device, computer equipment and storage medium
CN112882844A (en) * 2021-02-07 2021-06-01 成都新希望金融信息有限公司 Network front-end and back-end based joint debugging method and device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114629954A (en) * 2022-03-16 2022-06-14 上海哔哩哔哩科技有限公司 Content distribution method and system

Also Published As

Publication number Publication date
CN113362111B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN109344170B (en) Stream data processing method, system, electronic device and readable storage medium
US11531914B2 (en) Artificial intelligence (AI) based automatic rule generation
CN107634947A (en) Limitation malice logs in or the method and apparatus of registration
CN113377372A (en) Business rule analysis method and device, computer equipment and storage medium
CN113568626B (en) Dynamic packaging and application package opening method and device and electronic equipment
CN114398138A (en) Interface generation method and device, computer equipment and storage medium
CN113362111B (en) Content sending method and device and electronic equipment
CN116720489B (en) Page filling method and device, electronic equipment and computer readable storage medium
CN108768742B (en) Network construction method and device, electronic equipment and storage medium
CN115858345A (en) Application service module verification method and device, electronic equipment and storage medium
CN116302218A (en) Function information adding method, device, equipment and storage medium
CN116450723A (en) Data extraction method, device, computer equipment and storage medium
CN113590447B (en) Buried point processing method and device
CN114218313A (en) Data management method, device, electronic equipment, storage medium and product
CN115222444A (en) Method, apparatus, device, medium and product for outputting model information
CN113901316A (en) Information pushing method and device, electronic equipment and storage medium
CN113469732A (en) Content understanding-based auditing method and device and electronic equipment
CN114118937A (en) Information recommendation method and device based on task, electronic equipment and storage medium
CN113360672A (en) Methods, apparatus, devices, media and products for generating a knowledge graph
CN113806522A (en) Abstract generation method, device, equipment and storage medium
CN112560462B (en) Event extraction service generation method, device, server and medium
CN116431108B (en) Object type processing method and device, electronic equipment and storage medium
CN113342990A (en) Knowledge graph construction method and device
CN116382640A (en) Method, device, equipment and storage medium for managing micro-service
CN115543271A (en) Class model construction method and device based on SVG technology

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